@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,434 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.PhonebookApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class PhonebookApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Delete a phonebook entry
|
|
34
|
+
*/
|
|
35
|
+
organizationsOrganizationIdPhonebookEntriesEntryIdDeleteRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['organizationId'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesEntryIdDelete().');
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['entryId'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesEntryIdDelete().');
|
|
42
|
+
}
|
|
43
|
+
const queryParameters = {};
|
|
44
|
+
const headerParameters = {};
|
|
45
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
46
|
+
const token = this.configuration.accessToken;
|
|
47
|
+
const tokenString = yield token("bearerAuth", []);
|
|
48
|
+
if (tokenString) {
|
|
49
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
let urlPath = `/organizations/{organizationId}/phonebook/entries/{entryId}`;
|
|
53
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
54
|
+
urlPath = urlPath.replace(`{${"entryId"}}`, encodeURIComponent(String(requestParameters['entryId'])));
|
|
55
|
+
const response = yield this.request({
|
|
56
|
+
path: urlPath,
|
|
57
|
+
method: 'DELETE',
|
|
58
|
+
headers: headerParameters,
|
|
59
|
+
query: queryParameters,
|
|
60
|
+
}, initOverrides);
|
|
61
|
+
return new runtime.VoidApiResponse(response);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Delete a phonebook entry
|
|
66
|
+
*/
|
|
67
|
+
organizationsOrganizationIdPhonebookEntriesEntryIdDelete(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
yield this.organizationsOrganizationIdPhonebookEntriesEntryIdDeleteRaw(requestParameters, initOverrides);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get a phonebook entry by ID
|
|
74
|
+
*/
|
|
75
|
+
organizationsOrganizationIdPhonebookEntriesEntryIdGetRaw(requestParameters, initOverrides) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
if (requestParameters['organizationId'] == null) {
|
|
78
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesEntryIdGet().');
|
|
79
|
+
}
|
|
80
|
+
if (requestParameters['entryId'] == null) {
|
|
81
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesEntryIdGet().');
|
|
82
|
+
}
|
|
83
|
+
const queryParameters = {};
|
|
84
|
+
const headerParameters = {};
|
|
85
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
86
|
+
const token = this.configuration.accessToken;
|
|
87
|
+
const tokenString = yield token("bearerAuth", []);
|
|
88
|
+
if (tokenString) {
|
|
89
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
let urlPath = `/organizations/{organizationId}/phonebook/entries/{entryId}`;
|
|
93
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
94
|
+
urlPath = urlPath.replace(`{${"entryId"}}`, encodeURIComponent(String(requestParameters['entryId'])));
|
|
95
|
+
const response = yield this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'GET',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
}, initOverrides);
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PhonebookEntryFromJSON)(jsonValue));
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get a phonebook entry by ID
|
|
106
|
+
*/
|
|
107
|
+
organizationsOrganizationIdPhonebookEntriesEntryIdGet(requestParameters, initOverrides) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const response = yield this.organizationsOrganizationIdPhonebookEntriesEntryIdGetRaw(requestParameters, initOverrides);
|
|
110
|
+
return yield response.value();
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Update a phonebook entry
|
|
115
|
+
*/
|
|
116
|
+
organizationsOrganizationIdPhonebookEntriesEntryIdPatchRaw(requestParameters, initOverrides) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
if (requestParameters['organizationId'] == null) {
|
|
119
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesEntryIdPatch().');
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters['entryId'] == null) {
|
|
122
|
+
throw new runtime.RequiredError('entryId', 'Required parameter "entryId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesEntryIdPatch().');
|
|
123
|
+
}
|
|
124
|
+
if (requestParameters['phonebookEntryUpdate'] == null) {
|
|
125
|
+
throw new runtime.RequiredError('phonebookEntryUpdate', 'Required parameter "phonebookEntryUpdate" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesEntryIdPatch().');
|
|
126
|
+
}
|
|
127
|
+
const queryParameters = {};
|
|
128
|
+
const headerParameters = {};
|
|
129
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
130
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
131
|
+
const token = this.configuration.accessToken;
|
|
132
|
+
const tokenString = yield token("bearerAuth", []);
|
|
133
|
+
if (tokenString) {
|
|
134
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
let urlPath = `/organizations/{organizationId}/phonebook/entries/{entryId}`;
|
|
138
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
139
|
+
urlPath = urlPath.replace(`{${"entryId"}}`, encodeURIComponent(String(requestParameters['entryId'])));
|
|
140
|
+
const response = yield this.request({
|
|
141
|
+
path: urlPath,
|
|
142
|
+
method: 'PATCH',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
body: (0, index_1.PhonebookEntryUpdateToJSON)(requestParameters['phonebookEntryUpdate']),
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PhonebookEntryFromJSON)(jsonValue));
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Update a phonebook entry
|
|
152
|
+
*/
|
|
153
|
+
organizationsOrganizationIdPhonebookEntriesEntryIdPatch(requestParameters, initOverrides) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
const response = yield this.organizationsOrganizationIdPhonebookEntriesEntryIdPatchRaw(requestParameters, initOverrides);
|
|
156
|
+
return yield response.value();
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Export phonebook entries as CSV
|
|
161
|
+
*/
|
|
162
|
+
organizationsOrganizationIdPhonebookEntriesExportGetRaw(requestParameters, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
if (requestParameters['organizationId'] == null) {
|
|
165
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesExportGet().');
|
|
166
|
+
}
|
|
167
|
+
const queryParameters = {};
|
|
168
|
+
const headerParameters = {};
|
|
169
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
170
|
+
const token = this.configuration.accessToken;
|
|
171
|
+
const tokenString = yield token("bearerAuth", []);
|
|
172
|
+
if (tokenString) {
|
|
173
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
let urlPath = `/organizations/{organizationId}/phonebook/entries/export`;
|
|
177
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
178
|
+
const response = yield this.request({
|
|
179
|
+
path: urlPath,
|
|
180
|
+
method: 'GET',
|
|
181
|
+
headers: headerParameters,
|
|
182
|
+
query: queryParameters,
|
|
183
|
+
}, initOverrides);
|
|
184
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
185
|
+
return new runtime.JSONApiResponse(response);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
return new runtime.TextApiResponse(response);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Export phonebook entries as CSV
|
|
194
|
+
*/
|
|
195
|
+
organizationsOrganizationIdPhonebookEntriesExportGet(requestParameters, initOverrides) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
const response = yield this.organizationsOrganizationIdPhonebookEntriesExportGetRaw(requestParameters, initOverrides);
|
|
198
|
+
return yield response.value();
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* List phonebook entries
|
|
203
|
+
*/
|
|
204
|
+
organizationsOrganizationIdPhonebookEntriesGetRaw(requestParameters, initOverrides) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
if (requestParameters['organizationId'] == null) {
|
|
207
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesGet().');
|
|
208
|
+
}
|
|
209
|
+
const queryParameters = {};
|
|
210
|
+
if (requestParameters['search'] != null) {
|
|
211
|
+
queryParameters['search'] = requestParameters['search'];
|
|
212
|
+
}
|
|
213
|
+
if (requestParameters['limit'] != null) {
|
|
214
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
215
|
+
}
|
|
216
|
+
if (requestParameters['offset'] != null) {
|
|
217
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
218
|
+
}
|
|
219
|
+
const headerParameters = {};
|
|
220
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
221
|
+
const token = this.configuration.accessToken;
|
|
222
|
+
const tokenString = yield token("bearerAuth", []);
|
|
223
|
+
if (tokenString) {
|
|
224
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
let urlPath = `/organizations/{organizationId}/phonebook/entries`;
|
|
228
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
229
|
+
const response = yield this.request({
|
|
230
|
+
path: urlPath,
|
|
231
|
+
method: 'GET',
|
|
232
|
+
headers: headerParameters,
|
|
233
|
+
query: queryParameters,
|
|
234
|
+
}, initOverrides);
|
|
235
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.PhonebookEntryFromJSON));
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* List phonebook entries
|
|
240
|
+
*/
|
|
241
|
+
organizationsOrganizationIdPhonebookEntriesGet(requestParameters, initOverrides) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
+
const response = yield this.organizationsOrganizationIdPhonebookEntriesGetRaw(requestParameters, initOverrides);
|
|
244
|
+
return yield response.value();
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Upload a CSV file. The header row is required and must contain at least `phone` and `name` columns. Optional columns: `company`, `email`. Header aliases (case-insensitive): phone/phone_number/number, name/full_name/contact, company/organization, email/email_address. Existing entries with the same phone are updated; new ones are inserted.
|
|
249
|
+
* Import phonebook entries from a CSV file
|
|
250
|
+
*/
|
|
251
|
+
organizationsOrganizationIdPhonebookEntriesImportPostRaw(requestParameters, initOverrides) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
if (requestParameters['organizationId'] == null) {
|
|
254
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesImportPost().');
|
|
255
|
+
}
|
|
256
|
+
if (requestParameters['file'] == null) {
|
|
257
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesImportPost().');
|
|
258
|
+
}
|
|
259
|
+
const queryParameters = {};
|
|
260
|
+
const headerParameters = {};
|
|
261
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
262
|
+
const token = this.configuration.accessToken;
|
|
263
|
+
const tokenString = yield token("bearerAuth", []);
|
|
264
|
+
if (tokenString) {
|
|
265
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
const consumes = [
|
|
269
|
+
{ contentType: 'multipart/form-data' },
|
|
270
|
+
];
|
|
271
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
272
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
273
|
+
let formParams;
|
|
274
|
+
let useForm = false;
|
|
275
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
276
|
+
useForm = canConsumeForm;
|
|
277
|
+
if (useForm) {
|
|
278
|
+
formParams = new FormData();
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
formParams = new URLSearchParams();
|
|
282
|
+
}
|
|
283
|
+
if (requestParameters['file'] != null) {
|
|
284
|
+
formParams.append('file', requestParameters['file']);
|
|
285
|
+
}
|
|
286
|
+
let urlPath = `/organizations/{organizationId}/phonebook/entries/import`;
|
|
287
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
288
|
+
const response = yield this.request({
|
|
289
|
+
path: urlPath,
|
|
290
|
+
method: 'POST',
|
|
291
|
+
headers: headerParameters,
|
|
292
|
+
query: queryParameters,
|
|
293
|
+
body: formParams,
|
|
294
|
+
}, initOverrides);
|
|
295
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PhonebookImportResultFromJSON)(jsonValue));
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Upload a CSV file. The header row is required and must contain at least `phone` and `name` columns. Optional columns: `company`, `email`. Header aliases (case-insensitive): phone/phone_number/number, name/full_name/contact, company/organization, email/email_address. Existing entries with the same phone are updated; new ones are inserted.
|
|
300
|
+
* Import phonebook entries from a CSV file
|
|
301
|
+
*/
|
|
302
|
+
organizationsOrganizationIdPhonebookEntriesImportPost(requestParameters, initOverrides) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
const response = yield this.organizationsOrganizationIdPhonebookEntriesImportPostRaw(requestParameters, initOverrides);
|
|
305
|
+
return yield response.value();
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Create a phonebook entry
|
|
310
|
+
*/
|
|
311
|
+
organizationsOrganizationIdPhonebookEntriesPostRaw(requestParameters, initOverrides) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
if (requestParameters['organizationId'] == null) {
|
|
314
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesPost().');
|
|
315
|
+
}
|
|
316
|
+
if (requestParameters['phonebookEntryCreate'] == null) {
|
|
317
|
+
throw new runtime.RequiredError('phonebookEntryCreate', 'Required parameter "phonebookEntryCreate" was null or undefined when calling organizationsOrganizationIdPhonebookEntriesPost().');
|
|
318
|
+
}
|
|
319
|
+
const queryParameters = {};
|
|
320
|
+
const headerParameters = {};
|
|
321
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
322
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
323
|
+
const token = this.configuration.accessToken;
|
|
324
|
+
const tokenString = yield token("bearerAuth", []);
|
|
325
|
+
if (tokenString) {
|
|
326
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
let urlPath = `/organizations/{organizationId}/phonebook/entries`;
|
|
330
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
331
|
+
const response = yield this.request({
|
|
332
|
+
path: urlPath,
|
|
333
|
+
method: 'POST',
|
|
334
|
+
headers: headerParameters,
|
|
335
|
+
query: queryParameters,
|
|
336
|
+
body: (0, index_1.PhonebookEntryCreateToJSON)(requestParameters['phonebookEntryCreate']),
|
|
337
|
+
}, initOverrides);
|
|
338
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PhonebookEntryFromJSON)(jsonValue));
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Create a phonebook entry
|
|
343
|
+
*/
|
|
344
|
+
organizationsOrganizationIdPhonebookEntriesPost(requestParameters, initOverrides) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
346
|
+
const response = yield this.organizationsOrganizationIdPhonebookEntriesPostRaw(requestParameters, initOverrides);
|
|
347
|
+
return yield response.value();
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Returns the phonebook record (lazily created on first access).
|
|
352
|
+
* Get the organization\'s phonebook settings
|
|
353
|
+
*/
|
|
354
|
+
organizationsOrganizationIdPhonebookGetRaw(requestParameters, initOverrides) {
|
|
355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
+
if (requestParameters['organizationId'] == null) {
|
|
357
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdPhonebookGet().');
|
|
358
|
+
}
|
|
359
|
+
const queryParameters = {};
|
|
360
|
+
const headerParameters = {};
|
|
361
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
362
|
+
const token = this.configuration.accessToken;
|
|
363
|
+
const tokenString = yield token("bearerAuth", []);
|
|
364
|
+
if (tokenString) {
|
|
365
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
let urlPath = `/organizations/{organizationId}/phonebook`;
|
|
369
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
370
|
+
const response = yield this.request({
|
|
371
|
+
path: urlPath,
|
|
372
|
+
method: 'GET',
|
|
373
|
+
headers: headerParameters,
|
|
374
|
+
query: queryParameters,
|
|
375
|
+
}, initOverrides);
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PhonebookFromJSON)(jsonValue));
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Returns the phonebook record (lazily created on first access).
|
|
381
|
+
* Get the organization\'s phonebook settings
|
|
382
|
+
*/
|
|
383
|
+
organizationsOrganizationIdPhonebookGet(requestParameters, initOverrides) {
|
|
384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
+
const response = yield this.organizationsOrganizationIdPhonebookGetRaw(requestParameters, initOverrides);
|
|
386
|
+
return yield response.value();
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Update phonebook settings such as the auto_populate flag.
|
|
391
|
+
* Update phonebook settings
|
|
392
|
+
*/
|
|
393
|
+
organizationsOrganizationIdPhonebookPatchRaw(requestParameters, initOverrides) {
|
|
394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
395
|
+
if (requestParameters['organizationId'] == null) {
|
|
396
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdPhonebookPatch().');
|
|
397
|
+
}
|
|
398
|
+
if (requestParameters['phonebookUpdate'] == null) {
|
|
399
|
+
throw new runtime.RequiredError('phonebookUpdate', 'Required parameter "phonebookUpdate" was null or undefined when calling organizationsOrganizationIdPhonebookPatch().');
|
|
400
|
+
}
|
|
401
|
+
const queryParameters = {};
|
|
402
|
+
const headerParameters = {};
|
|
403
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
404
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
405
|
+
const token = this.configuration.accessToken;
|
|
406
|
+
const tokenString = yield token("bearerAuth", []);
|
|
407
|
+
if (tokenString) {
|
|
408
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
let urlPath = `/organizations/{organizationId}/phonebook`;
|
|
412
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
413
|
+
const response = yield this.request({
|
|
414
|
+
path: urlPath,
|
|
415
|
+
method: 'PATCH',
|
|
416
|
+
headers: headerParameters,
|
|
417
|
+
query: queryParameters,
|
|
418
|
+
body: (0, index_1.PhonebookUpdateToJSON)(requestParameters['phonebookUpdate']),
|
|
419
|
+
}, initOverrides);
|
|
420
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PhonebookFromJSON)(jsonValue));
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Update phonebook settings such as the auto_populate flag.
|
|
425
|
+
* Update phonebook settings
|
|
426
|
+
*/
|
|
427
|
+
organizationsOrganizationIdPhonebookPatch(requestParameters, initOverrides) {
|
|
428
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
429
|
+
const response = yield this.organizationsOrganizationIdPhonebookPatchRaw(requestParameters, initOverrides);
|
|
430
|
+
return yield response.value();
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
exports.PhonebookApi = PhonebookApi;
|
package/dist/apis/RAGApi.d.ts
CHANGED
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { RagConfig, RagConfigCreate, RagDocument, RagDocumentChunkList, RagDocumentList } from '../models/index';
|
|
14
|
+
export interface DownloadDocumentFileRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
ragConfigName: string;
|
|
17
|
+
documentId: string;
|
|
18
|
+
}
|
|
14
19
|
export interface OrganizationsOrganizationIdRagGetRequest {
|
|
15
20
|
organizationId: string;
|
|
16
21
|
}
|
|
@@ -32,11 +37,6 @@ export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdG
|
|
|
32
37
|
ragConfigName: string;
|
|
33
38
|
documentId: string;
|
|
34
39
|
}
|
|
35
|
-
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGetRequest {
|
|
36
|
-
organizationId: string;
|
|
37
|
-
ragConfigName: string;
|
|
38
|
-
documentId: string;
|
|
39
|
-
}
|
|
40
40
|
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRequest {
|
|
41
41
|
organizationId: string;
|
|
42
42
|
ragConfigName: string;
|
|
@@ -60,6 +60,16 @@ export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsPostRequest
|
|
|
60
60
|
*
|
|
61
61
|
*/
|
|
62
62
|
export declare class RAGApi extends runtime.BaseAPI {
|
|
63
|
+
/**
|
|
64
|
+
* Downloads the original uploaded document file from object storage. Requires S3-compatible object storage to be configured on the server.
|
|
65
|
+
* Download original document file
|
|
66
|
+
*/
|
|
67
|
+
downloadDocumentFileRaw(requestParameters: DownloadDocumentFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
68
|
+
/**
|
|
69
|
+
* Downloads the original uploaded document file from object storage. Requires S3-compatible object storage to be configured on the server.
|
|
70
|
+
* Download original document file
|
|
71
|
+
*/
|
|
72
|
+
downloadDocumentFile(requestParameters: DownloadDocumentFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
63
73
|
/**
|
|
64
74
|
* List all RAG configurations for an organization
|
|
65
75
|
*/
|
|
@@ -100,14 +110,6 @@ export declare class RAGApi extends runtime.BaseAPI {
|
|
|
100
110
|
* Get document chunks
|
|
101
111
|
*/
|
|
102
112
|
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocumentChunkList>;
|
|
103
|
-
/**
|
|
104
|
-
* Download original document file
|
|
105
|
-
*/
|
|
106
|
-
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGetRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
107
|
-
/**
|
|
108
|
-
* Download original document file
|
|
109
|
-
*/
|
|
110
|
-
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGet(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
111
113
|
/**
|
|
112
114
|
* Replace a document in a RAG configuration
|
|
113
115
|
*/
|
package/dist/apis/RAGApi.js
CHANGED
|
@@ -29,6 +29,53 @@ const index_1 = require("../models/index");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class RAGApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Downloads the original uploaded document file from object storage. Requires S3-compatible object storage to be configured on the server.
|
|
34
|
+
* Download original document file
|
|
35
|
+
*/
|
|
36
|
+
downloadDocumentFileRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['organizationId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling downloadDocumentFile().');
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
42
|
+
throw new runtime.RequiredError('ragConfigName', 'Required parameter "ragConfigName" was null or undefined when calling downloadDocumentFile().');
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters['documentId'] == null) {
|
|
45
|
+
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling downloadDocumentFile().');
|
|
46
|
+
}
|
|
47
|
+
const queryParameters = {};
|
|
48
|
+
const headerParameters = {};
|
|
49
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
50
|
+
const token = this.configuration.accessToken;
|
|
51
|
+
const tokenString = yield token("bearerAuth", []);
|
|
52
|
+
if (tokenString) {
|
|
53
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents/{documentId}/file`;
|
|
57
|
+
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
58
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
59
|
+
urlPath = urlPath.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
60
|
+
const response = yield this.request({
|
|
61
|
+
path: urlPath,
|
|
62
|
+
method: 'GET',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
return new runtime.BlobApiResponse(response);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Downloads the original uploaded document file from object storage. Requires S3-compatible object storage to be configured on the server.
|
|
71
|
+
* Download original document file
|
|
72
|
+
*/
|
|
73
|
+
downloadDocumentFile(requestParameters, initOverrides) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const response = yield this.downloadDocumentFileRaw(requestParameters, initOverrides);
|
|
76
|
+
return yield response.value();
|
|
77
|
+
});
|
|
78
|
+
}
|
|
32
79
|
/**
|
|
33
80
|
* List all RAG configurations for an organization
|
|
34
81
|
*/
|
|
@@ -237,51 +284,6 @@ class RAGApi extends runtime.BaseAPI {
|
|
|
237
284
|
return yield response.value();
|
|
238
285
|
});
|
|
239
286
|
}
|
|
240
|
-
/**
|
|
241
|
-
* Download original document file
|
|
242
|
-
*/
|
|
243
|
-
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGetRaw(requestParameters, initOverrides) {
|
|
244
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
245
|
-
if (requestParameters['organizationId'] == null) {
|
|
246
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGet().');
|
|
247
|
-
}
|
|
248
|
-
if (requestParameters['ragConfigName'] == null) {
|
|
249
|
-
throw new runtime.RequiredError('ragConfigName', 'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGet().');
|
|
250
|
-
}
|
|
251
|
-
if (requestParameters['documentId'] == null) {
|
|
252
|
-
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGet().');
|
|
253
|
-
}
|
|
254
|
-
const queryParameters = {};
|
|
255
|
-
const headerParameters = {};
|
|
256
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
257
|
-
const token = this.configuration.accessToken;
|
|
258
|
-
const tokenString = yield token("bearerAuth", []);
|
|
259
|
-
if (tokenString) {
|
|
260
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents/{documentId}/file`;
|
|
264
|
-
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
265
|
-
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
266
|
-
urlPath = urlPath.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
267
|
-
const response = yield this.request({
|
|
268
|
-
path: urlPath,
|
|
269
|
-
method: 'GET',
|
|
270
|
-
headers: headerParameters,
|
|
271
|
-
query: queryParameters,
|
|
272
|
-
}, initOverrides);
|
|
273
|
-
return new runtime.BlobApiResponse(response);
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Download original document file
|
|
278
|
-
*/
|
|
279
|
-
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGet(requestParameters, initOverrides) {
|
|
280
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
281
|
-
const response = yield this.organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdFileGetRaw(requestParameters, initOverrides);
|
|
282
|
-
return yield response.value();
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
287
|
/**
|
|
286
288
|
* Replace a document in a RAG configuration
|
|
287
289
|
*/
|
|
@@ -0,0 +1,68 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { AgentTool, AgentToolUpsert, Tool } from '../models/index';
|
|
14
|
+
export interface OrganizationsOrganizationIdToolsGetRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsGetRequest {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
voiceAgentId: string;
|
|
20
|
+
}
|
|
21
|
+
export interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNameDeleteRequest {
|
|
22
|
+
organizationId: string;
|
|
23
|
+
voiceAgentId: string;
|
|
24
|
+
toolName: string;
|
|
25
|
+
}
|
|
26
|
+
export interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNamePutRequest {
|
|
27
|
+
organizationId: string;
|
|
28
|
+
voiceAgentId: string;
|
|
29
|
+
toolName: string;
|
|
30
|
+
agentToolUpsert: AgentToolUpsert;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class ToolsApi extends runtime.BaseAPI {
|
|
36
|
+
/**
|
|
37
|
+
* List available tools in the catalog
|
|
38
|
+
*/
|
|
39
|
+
organizationsOrganizationIdToolsGetRaw(requestParameters: OrganizationsOrganizationIdToolsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Tool>>>;
|
|
40
|
+
/**
|
|
41
|
+
* List available tools in the catalog
|
|
42
|
+
*/
|
|
43
|
+
organizationsOrganizationIdToolsGet(requestParameters: OrganizationsOrganizationIdToolsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Tool>>;
|
|
44
|
+
/**
|
|
45
|
+
* List tools enabled (or previously configured) for a voice agent
|
|
46
|
+
*/
|
|
47
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsGetRaw(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentTool>>>;
|
|
48
|
+
/**
|
|
49
|
+
* List tools enabled (or previously configured) for a voice agent
|
|
50
|
+
*/
|
|
51
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsGet(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentTool>>;
|
|
52
|
+
/**
|
|
53
|
+
* Remove a tool configuration from a voice agent
|
|
54
|
+
*/
|
|
55
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNameDeleteRaw(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
56
|
+
/**
|
|
57
|
+
* Remove a tool configuration from a voice agent
|
|
58
|
+
*/
|
|
59
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNameDelete(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Enable or update a tool for a voice agent
|
|
62
|
+
*/
|
|
63
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNamePutRaw(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNamePutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentTool>>;
|
|
64
|
+
/**
|
|
65
|
+
* Enable or update a tool for a voice agent
|
|
66
|
+
*/
|
|
67
|
+
organizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNamePut(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdToolsToolNamePutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentTool>;
|
|
68
|
+
}
|