@l7mp/tivadar-ai-api-sdk 0.1.1 → 0.1.3
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/README.md +1213 -172
- package/dist/api-client.d.ts +7 -7
- package/dist/api-client.js +6 -6
- package/dist/apis/RAGApi.d.ts +27 -27
- package/dist/apis/RAGApi.js +55 -55
- package/dist/esm/api-client.d.ts +7 -7
- package/dist/esm/api-client.js +6 -6
- package/dist/esm/apis/RAGApi.d.ts +27 -27
- package/dist/esm/apis/RAGApi.js +54 -54
- package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.d.ts +6 -5
- package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.js +7 -6
- package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner.d.ts +56 -0
- package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner.js +49 -0
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.d.ts +6 -6
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.js +7 -7
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner.d.ts +51 -0
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner.js +48 -0
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerVoicesInner.d.ts +50 -0
- package/dist/esm/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerVoicesInner.js +47 -0
- package/dist/esm/models/VoiceAgent.d.ts +1 -1
- package/dist/esm/models/VoiceAgent.js +3 -1
- package/dist/esm/models/VoiceAgentCreate.d.ts +1 -1
- package/dist/esm/models/VoiceAgentCreate.js +3 -1
- package/dist/esm/models/VoiceAgentWithSipTrunks.d.ts +1 -1
- package/dist/esm/models/VoiceAgentWithSipTrunks.js +3 -1
- package/dist/esm/models/index.d.ts +3 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.d.ts +6 -5
- package/dist/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.js +7 -6
- package/dist/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner.d.ts +56 -0
- package/dist/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner.js +56 -0
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.d.ts +6 -6
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.js +7 -7
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner.d.ts +51 -0
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner.js +55 -0
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerVoicesInner.d.ts +50 -0
- package/dist/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerVoicesInner.js +54 -0
- package/dist/models/VoiceAgent.d.ts +1 -1
- package/dist/models/VoiceAgent.js +3 -1
- package/dist/models/VoiceAgentCreate.d.ts +1 -1
- package/dist/models/VoiceAgentCreate.js +3 -1
- package/dist/models/VoiceAgentWithSipTrunks.d.ts +1 -1
- package/dist/models/VoiceAgentWithSipTrunks.js +3 -1
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
- package/src/api-client.ts +13 -13
- package/src/apis/RAGApi.ts +74 -74
- package/src/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInner.ts +19 -11
- package/src/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner.ts +97 -0
- package/src/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInner.ts +17 -17
- package/src/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner.ts +97 -0
- package/src/models/OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerVoicesInner.ts +89 -0
- package/src/models/VoiceAgent.ts +3 -2
- package/src/models/VoiceAgentCreate.ts +3 -2
- package/src/models/VoiceAgentWithSipTrunks.ts +3 -2
- package/src/models/index.ts +3 -1
package/src/apis/RAGApi.ts
CHANGED
|
@@ -43,40 +43,40 @@ export interface OrganizationsOrganizationIdRagPostRequest {
|
|
|
43
43
|
ragConfigCreate: RagConfigCreate;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export interface
|
|
46
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDeleteRequest {
|
|
47
47
|
organizationId: string;
|
|
48
|
-
|
|
48
|
+
ragConfigName: string;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export interface
|
|
51
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRequest {
|
|
52
52
|
organizationId: string;
|
|
53
|
-
|
|
53
|
+
ragConfigName: string;
|
|
54
54
|
documentId: string;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export interface
|
|
57
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRequest {
|
|
58
58
|
organizationId: string;
|
|
59
|
-
|
|
59
|
+
ragConfigName: string;
|
|
60
60
|
documentId: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export interface
|
|
63
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRequest {
|
|
64
64
|
organizationId: string;
|
|
65
|
-
|
|
65
|
+
ragConfigName: string;
|
|
66
66
|
documentId: string;
|
|
67
67
|
file: Blob;
|
|
68
68
|
sourceUrl?: string;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export interface
|
|
71
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsGetRequest {
|
|
72
72
|
organizationId: string;
|
|
73
|
-
|
|
74
|
-
status?:
|
|
73
|
+
ragConfigName: string;
|
|
74
|
+
status?: OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
export interface
|
|
77
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsPostRequest {
|
|
78
78
|
organizationId: string;
|
|
79
|
-
|
|
79
|
+
ragConfigName: string;
|
|
80
80
|
file: Blob;
|
|
81
81
|
sourceUrl?: string;
|
|
82
82
|
metadata?: string;
|
|
@@ -190,18 +190,18 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
190
190
|
/**
|
|
191
191
|
* Delete a RAG configuration
|
|
192
192
|
*/
|
|
193
|
-
async
|
|
193
|
+
async organizationsOrganizationIdRagRagConfigNameDeleteRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
194
194
|
if (requestParameters['organizationId'] == null) {
|
|
195
195
|
throw new runtime.RequiredError(
|
|
196
196
|
'organizationId',
|
|
197
|
-
'Required parameter "organizationId" was null or undefined when calling
|
|
197
|
+
'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDelete().'
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
if (requestParameters['
|
|
201
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
202
202
|
throw new runtime.RequiredError(
|
|
203
|
-
'
|
|
204
|
-
'Required parameter "
|
|
203
|
+
'ragConfigName',
|
|
204
|
+
'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDelete().'
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
207
|
|
|
@@ -218,9 +218,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
221
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}`;
|
|
222
222
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
223
|
-
urlPath = urlPath.replace(`{${"
|
|
223
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
224
224
|
|
|
225
225
|
const response = await this.request({
|
|
226
226
|
path: urlPath,
|
|
@@ -235,32 +235,32 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
235
235
|
/**
|
|
236
236
|
* Delete a RAG configuration
|
|
237
237
|
*/
|
|
238
|
-
async
|
|
239
|
-
await this.
|
|
238
|
+
async organizationsOrganizationIdRagRagConfigNameDelete(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
239
|
+
await this.organizationsOrganizationIdRagRagConfigNameDeleteRaw(requestParameters, initOverrides);
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
243
|
* Delete a document from a RAG configuration
|
|
244
244
|
*/
|
|
245
|
-
async
|
|
245
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
246
246
|
if (requestParameters['organizationId'] == null) {
|
|
247
247
|
throw new runtime.RequiredError(
|
|
248
248
|
'organizationId',
|
|
249
|
-
'Required parameter "organizationId" was null or undefined when calling
|
|
249
|
+
'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDelete().'
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
if (requestParameters['
|
|
253
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
254
254
|
throw new runtime.RequiredError(
|
|
255
|
-
'
|
|
256
|
-
'Required parameter "
|
|
255
|
+
'ragConfigName',
|
|
256
|
+
'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDelete().'
|
|
257
257
|
);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
if (requestParameters['documentId'] == null) {
|
|
261
261
|
throw new runtime.RequiredError(
|
|
262
262
|
'documentId',
|
|
263
|
-
'Required parameter "documentId" was null or undefined when calling
|
|
263
|
+
'Required parameter "documentId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDelete().'
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
|
|
@@ -277,9 +277,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
280
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents/{documentId}`;
|
|
281
281
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
282
|
-
urlPath = urlPath.replace(`{${"
|
|
282
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
283
283
|
urlPath = urlPath.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
284
284
|
|
|
285
285
|
const response = await this.request({
|
|
@@ -295,32 +295,32 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
295
295
|
/**
|
|
296
296
|
* Delete a document from a RAG configuration
|
|
297
297
|
*/
|
|
298
|
-
async
|
|
299
|
-
await this.
|
|
298
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDelete(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
299
|
+
await this.organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRaw(requestParameters, initOverrides);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
303
|
* Get document chunks
|
|
304
304
|
*/
|
|
305
|
-
async
|
|
305
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocumentChunkList>> {
|
|
306
306
|
if (requestParameters['organizationId'] == null) {
|
|
307
307
|
throw new runtime.RequiredError(
|
|
308
308
|
'organizationId',
|
|
309
|
-
'Required parameter "organizationId" was null or undefined when calling
|
|
309
|
+
'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet().'
|
|
310
310
|
);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
if (requestParameters['
|
|
313
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
314
314
|
throw new runtime.RequiredError(
|
|
315
|
-
'
|
|
316
|
-
'Required parameter "
|
|
315
|
+
'ragConfigName',
|
|
316
|
+
'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet().'
|
|
317
317
|
);
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
if (requestParameters['documentId'] == null) {
|
|
321
321
|
throw new runtime.RequiredError(
|
|
322
322
|
'documentId',
|
|
323
|
-
'Required parameter "documentId" was null or undefined when calling
|
|
323
|
+
'Required parameter "documentId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet().'
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
326
|
|
|
@@ -337,9 +337,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
340
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents/{documentId}`;
|
|
341
341
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
342
|
-
urlPath = urlPath.replace(`{${"
|
|
342
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
343
343
|
urlPath = urlPath.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
344
344
|
|
|
345
345
|
const response = await this.request({
|
|
@@ -355,40 +355,40 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
355
355
|
/**
|
|
356
356
|
* Get document chunks
|
|
357
357
|
*/
|
|
358
|
-
async
|
|
359
|
-
const response = await this.
|
|
358
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocumentChunkList> {
|
|
359
|
+
const response = await this.organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRaw(requestParameters, initOverrides);
|
|
360
360
|
return await response.value();
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
/**
|
|
364
364
|
* Replace a document in a RAG configuration
|
|
365
365
|
*/
|
|
366
|
-
async
|
|
366
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocument>> {
|
|
367
367
|
if (requestParameters['organizationId'] == null) {
|
|
368
368
|
throw new runtime.RequiredError(
|
|
369
369
|
'organizationId',
|
|
370
|
-
'Required parameter "organizationId" was null or undefined when calling
|
|
370
|
+
'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut().'
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
if (requestParameters['
|
|
374
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
375
375
|
throw new runtime.RequiredError(
|
|
376
|
-
'
|
|
377
|
-
'Required parameter "
|
|
376
|
+
'ragConfigName',
|
|
377
|
+
'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut().'
|
|
378
378
|
);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
if (requestParameters['documentId'] == null) {
|
|
382
382
|
throw new runtime.RequiredError(
|
|
383
383
|
'documentId',
|
|
384
|
-
'Required parameter "documentId" was null or undefined when calling
|
|
384
|
+
'Required parameter "documentId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut().'
|
|
385
385
|
);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
if (requestParameters['file'] == null) {
|
|
389
389
|
throw new runtime.RequiredError(
|
|
390
390
|
'file',
|
|
391
|
-
'Required parameter "file" was null or undefined when calling
|
|
391
|
+
'Required parameter "file" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut().'
|
|
392
392
|
);
|
|
393
393
|
}
|
|
394
394
|
|
|
@@ -429,9 +429,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
|
|
432
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
432
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents/{documentId}`;
|
|
433
433
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
434
|
-
urlPath = urlPath.replace(`{${"
|
|
434
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
435
435
|
urlPath = urlPath.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
436
436
|
|
|
437
437
|
const response = await this.request({
|
|
@@ -448,26 +448,26 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
448
448
|
/**
|
|
449
449
|
* Replace a document in a RAG configuration
|
|
450
450
|
*/
|
|
451
|
-
async
|
|
452
|
-
const response = await this.
|
|
451
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocument> {
|
|
452
|
+
const response = await this.organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRaw(requestParameters, initOverrides);
|
|
453
453
|
return await response.value();
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
/**
|
|
457
457
|
* List documents in a RAG configuration
|
|
458
458
|
*/
|
|
459
|
-
async
|
|
459
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsGetRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocumentList>> {
|
|
460
460
|
if (requestParameters['organizationId'] == null) {
|
|
461
461
|
throw new runtime.RequiredError(
|
|
462
462
|
'organizationId',
|
|
463
|
-
'Required parameter "organizationId" was null or undefined when calling
|
|
463
|
+
'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsGet().'
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
if (requestParameters['
|
|
467
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
468
468
|
throw new runtime.RequiredError(
|
|
469
|
-
'
|
|
470
|
-
'Required parameter "
|
|
469
|
+
'ragConfigName',
|
|
470
|
+
'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsGet().'
|
|
471
471
|
);
|
|
472
472
|
}
|
|
473
473
|
|
|
@@ -488,9 +488,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
491
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents`;
|
|
492
492
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
493
|
-
urlPath = urlPath.replace(`{${"
|
|
493
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
494
494
|
|
|
495
495
|
const response = await this.request({
|
|
496
496
|
path: urlPath,
|
|
@@ -505,33 +505,33 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
505
505
|
/**
|
|
506
506
|
* List documents in a RAG configuration
|
|
507
507
|
*/
|
|
508
|
-
async
|
|
509
|
-
const response = await this.
|
|
508
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsGet(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocumentList> {
|
|
509
|
+
const response = await this.organizationsOrganizationIdRagRagConfigNameDocumentsGetRaw(requestParameters, initOverrides);
|
|
510
510
|
return await response.value();
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
514
|
* Upload a document to a RAG configuration
|
|
515
515
|
*/
|
|
516
|
-
async
|
|
516
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsPostRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocument>> {
|
|
517
517
|
if (requestParameters['organizationId'] == null) {
|
|
518
518
|
throw new runtime.RequiredError(
|
|
519
519
|
'organizationId',
|
|
520
|
-
'Required parameter "organizationId" was null or undefined when calling
|
|
520
|
+
'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsPost().'
|
|
521
521
|
);
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
if (requestParameters['
|
|
524
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
525
525
|
throw new runtime.RequiredError(
|
|
526
|
-
'
|
|
527
|
-
'Required parameter "
|
|
526
|
+
'ragConfigName',
|
|
527
|
+
'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsPost().'
|
|
528
528
|
);
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
if (requestParameters['file'] == null) {
|
|
532
532
|
throw new runtime.RequiredError(
|
|
533
533
|
'file',
|
|
534
|
-
'Required parameter "file" was null or undefined when calling
|
|
534
|
+
'Required parameter "file" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsPost().'
|
|
535
535
|
);
|
|
536
536
|
}
|
|
537
537
|
|
|
@@ -576,9 +576,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
|
|
579
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
579
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents`;
|
|
580
580
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
581
|
-
urlPath = urlPath.replace(`{${"
|
|
581
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
582
582
|
|
|
583
583
|
const response = await this.request({
|
|
584
584
|
path: urlPath,
|
|
@@ -594,8 +594,8 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
594
594
|
/**
|
|
595
595
|
* Upload a document to a RAG configuration
|
|
596
596
|
*/
|
|
597
|
-
async
|
|
598
|
-
const response = await this.
|
|
597
|
+
async organizationsOrganizationIdRagRagConfigNameDocumentsPost(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocument> {
|
|
598
|
+
const response = await this.organizationsOrganizationIdRagRagConfigNameDocumentsPostRaw(requestParameters, initOverrides);
|
|
599
599
|
return await response.value();
|
|
600
600
|
}
|
|
601
601
|
|
|
@@ -604,10 +604,10 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
604
604
|
/**
|
|
605
605
|
* @export
|
|
606
606
|
*/
|
|
607
|
-
export const
|
|
607
|
+
export const OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum = {
|
|
608
608
|
Pending: 'pending',
|
|
609
609
|
Processing: 'processing',
|
|
610
610
|
Completed: 'completed',
|
|
611
611
|
Failed: 'failed'
|
|
612
612
|
} as const;
|
|
613
|
-
export type
|
|
613
|
+
export type OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum = typeof OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum[keyof typeof OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum];
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner } from './OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner';
|
|
17
|
+
import {
|
|
18
|
+
OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSON,
|
|
19
|
+
OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSONTyped,
|
|
20
|
+
OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSON,
|
|
21
|
+
OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSONTyped,
|
|
22
|
+
} from './OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -24,19 +32,19 @@ export interface OrganizationsOrganizationIdSttProvidersGet200ResponseInner {
|
|
|
24
32
|
* @type {string}
|
|
25
33
|
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInner
|
|
26
34
|
*/
|
|
27
|
-
|
|
35
|
+
id?: string;
|
|
28
36
|
/**
|
|
29
37
|
*
|
|
30
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
31
39
|
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInner
|
|
32
40
|
*/
|
|
33
|
-
|
|
41
|
+
label?: string;
|
|
34
42
|
/**
|
|
35
43
|
*
|
|
36
|
-
* @type {Array<
|
|
44
|
+
* @type {Array<OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner>}
|
|
37
45
|
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInner
|
|
38
46
|
*/
|
|
39
|
-
|
|
47
|
+
models?: Array<OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner>;
|
|
40
48
|
}
|
|
41
49
|
|
|
42
50
|
/**
|
|
@@ -56,9 +64,9 @@ export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerFromJS
|
|
|
56
64
|
}
|
|
57
65
|
return {
|
|
58
66
|
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
67
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
68
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
69
|
+
'models': json['models'] == null ? undefined : ((json['models'] as Array<any>).map(OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSON)),
|
|
62
70
|
};
|
|
63
71
|
}
|
|
64
72
|
|
|
@@ -73,9 +81,9 @@ export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerToJSON
|
|
|
73
81
|
|
|
74
82
|
return {
|
|
75
83
|
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
84
|
+
'id': value['id'],
|
|
85
|
+
'label': value['label'],
|
|
86
|
+
'models': value['models'] == null ? undefined : ((value['models'] as Array<any>).map(OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSON)),
|
|
79
87
|
};
|
|
80
88
|
}
|
|
81
89
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
32
|
+
*/
|
|
33
|
+
label?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
38
|
+
*/
|
|
39
|
+
supportedLanguages?: Array<string>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
44
|
+
*/
|
|
45
|
+
streaming?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
50
|
+
*/
|
|
51
|
+
batch?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfOrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner(value: object): value is OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSON(json: any): OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner {
|
|
62
|
+
return OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
72
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
73
|
+
'supportedLanguages': json['supportedLanguages'] == null ? undefined : json['supportedLanguages'],
|
|
74
|
+
'streaming': json['streaming'] == null ? undefined : json['streaming'],
|
|
75
|
+
'batch': json['batch'] == null ? undefined : json['batch'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSON(json: any): OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner {
|
|
80
|
+
return OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSONTyped(value?: OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': value['id'],
|
|
91
|
+
'label': value['label'],
|
|
92
|
+
'supportedLanguages': value['supportedLanguages'],
|
|
93
|
+
'streaming': value['streaming'],
|
|
94
|
+
'batch': value['batch'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner } from './OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerFromJSON,
|
|
19
|
+
OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerFromJSONTyped,
|
|
20
|
+
OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerToJSON,
|
|
21
|
+
OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerToJSONTyped,
|
|
22
|
+
} from './OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -32,19 +32,19 @@ export interface OrganizationsOrganizationIdTtsProvidersGet200ResponseInner {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof OrganizationsOrganizationIdTtsProvidersGet200ResponseInner
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
id?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof OrganizationsOrganizationIdTtsProvidersGet200ResponseInner
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
label?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {Array<
|
|
44
|
+
* @type {Array<OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner>}
|
|
45
45
|
* @memberof OrganizationsOrganizationIdTtsProvidersGet200ResponseInner
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
models?: Array<OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner>;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -64,9 +64,9 @@ export function OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerFromJS
|
|
|
64
64
|
}
|
|
65
65
|
return {
|
|
66
66
|
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
67
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
68
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
69
|
+
'models': json['models'] == null ? undefined : ((json['models'] as Array<any>).map(OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerFromJSON)),
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -81,9 +81,9 @@ export function OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerToJSON
|
|
|
81
81
|
|
|
82
82
|
return {
|
|
83
83
|
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
84
|
+
'id': value['id'],
|
|
85
|
+
'label': value['label'],
|
|
86
|
+
'models': value['models'] == null ? undefined : ((value['models'] as Array<any>).map(OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInnerToJSON)),
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
|