@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
|
@@ -18,35 +18,35 @@ export interface OrganizationsOrganizationIdRagPostRequest {
|
|
|
18
18
|
organizationId: string;
|
|
19
19
|
ragConfigCreate: RagConfigCreate;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
21
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDeleteRequest {
|
|
22
22
|
organizationId: string;
|
|
23
|
-
|
|
23
|
+
ragConfigName: string;
|
|
24
24
|
}
|
|
25
|
-
export interface
|
|
25
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRequest {
|
|
26
26
|
organizationId: string;
|
|
27
|
-
|
|
27
|
+
ragConfigName: string;
|
|
28
28
|
documentId: string;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRequest {
|
|
31
31
|
organizationId: string;
|
|
32
|
-
|
|
32
|
+
ragConfigName: string;
|
|
33
33
|
documentId: string;
|
|
34
34
|
}
|
|
35
|
-
export interface
|
|
35
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRequest {
|
|
36
36
|
organizationId: string;
|
|
37
|
-
|
|
37
|
+
ragConfigName: string;
|
|
38
38
|
documentId: string;
|
|
39
39
|
file: Blob;
|
|
40
40
|
sourceUrl?: string;
|
|
41
41
|
}
|
|
42
|
-
export interface
|
|
42
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsGetRequest {
|
|
43
43
|
organizationId: string;
|
|
44
|
-
|
|
45
|
-
status?:
|
|
44
|
+
ragConfigName: string;
|
|
45
|
+
status?: OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum;
|
|
46
46
|
}
|
|
47
|
-
export interface
|
|
47
|
+
export interface OrganizationsOrganizationIdRagRagConfigNameDocumentsPostRequest {
|
|
48
48
|
organizationId: string;
|
|
49
|
-
|
|
49
|
+
ragConfigName: string;
|
|
50
50
|
file: Blob;
|
|
51
51
|
sourceUrl?: string;
|
|
52
52
|
metadata?: string;
|
|
@@ -74,59 +74,59 @@ export declare class RAGApi extends runtime.BaseAPI {
|
|
|
74
74
|
/**
|
|
75
75
|
* Delete a RAG configuration
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
organizationsOrganizationIdRagRagConfigNameDeleteRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
78
78
|
/**
|
|
79
79
|
* Delete a RAG configuration
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
organizationsOrganizationIdRagRagConfigNameDelete(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
82
82
|
/**
|
|
83
83
|
* Delete a document from a RAG configuration
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
86
86
|
/**
|
|
87
87
|
* Delete a document from a RAG configuration
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDelete(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
90
90
|
/**
|
|
91
91
|
* Get document chunks
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocumentChunkList>>;
|
|
94
94
|
/**
|
|
95
95
|
* Get document chunks
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocumentChunkList>;
|
|
98
98
|
/**
|
|
99
99
|
* Replace a document in a RAG configuration
|
|
100
100
|
*/
|
|
101
|
-
|
|
101
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocument>>;
|
|
102
102
|
/**
|
|
103
103
|
* Replace a document in a RAG configuration
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocument>;
|
|
106
106
|
/**
|
|
107
107
|
* List documents in a RAG configuration
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsGetRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocumentList>>;
|
|
110
110
|
/**
|
|
111
111
|
* List documents in a RAG configuration
|
|
112
112
|
*/
|
|
113
|
-
|
|
113
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsGet(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocumentList>;
|
|
114
114
|
/**
|
|
115
115
|
* Upload a document to a RAG configuration
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsPostRaw(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RagDocument>>;
|
|
118
118
|
/**
|
|
119
119
|
* Upload a document to a RAG configuration
|
|
120
120
|
*/
|
|
121
|
-
|
|
121
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsPost(requestParameters: OrganizationsOrganizationIdRagRagConfigNameDocumentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RagDocument>;
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* @export
|
|
125
125
|
*/
|
|
126
|
-
export declare const
|
|
126
|
+
export declare const OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum: {
|
|
127
127
|
readonly Pending: "pending";
|
|
128
128
|
readonly Processing: "processing";
|
|
129
129
|
readonly Completed: "completed";
|
|
130
130
|
readonly Failed: "failed";
|
|
131
131
|
};
|
|
132
|
-
export type
|
|
132
|
+
export type OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum = typeof OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum[keyof typeof OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum];
|
package/dist/esm/apis/RAGApi.js
CHANGED
|
@@ -108,13 +108,13 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
108
108
|
/**
|
|
109
109
|
* Delete a RAG configuration
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
organizationsOrganizationIdRagRagConfigNameDeleteRaw(requestParameters, initOverrides) {
|
|
112
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
113
|
if (requestParameters['organizationId'] == null) {
|
|
114
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling
|
|
114
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDelete().');
|
|
115
115
|
}
|
|
116
|
-
if (requestParameters['
|
|
117
|
-
throw new runtime.RequiredError('
|
|
116
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
117
|
+
throw new runtime.RequiredError('ragConfigName', 'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDelete().');
|
|
118
118
|
}
|
|
119
119
|
const queryParameters = {};
|
|
120
120
|
const headerParameters = {};
|
|
@@ -125,9 +125,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
125
125
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
128
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}`;
|
|
129
129
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
130
|
-
urlPath = urlPath.replace(`{${"
|
|
130
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
131
131
|
const response = yield this.request({
|
|
132
132
|
path: urlPath,
|
|
133
133
|
method: 'DELETE',
|
|
@@ -140,24 +140,24 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
140
140
|
/**
|
|
141
141
|
* Delete a RAG configuration
|
|
142
142
|
*/
|
|
143
|
-
|
|
143
|
+
organizationsOrganizationIdRagRagConfigNameDelete(requestParameters, initOverrides) {
|
|
144
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
-
yield this.
|
|
145
|
+
yield this.organizationsOrganizationIdRagRagConfigNameDeleteRaw(requestParameters, initOverrides);
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* Delete a document from a RAG configuration
|
|
150
150
|
*/
|
|
151
|
-
|
|
151
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRaw(requestParameters, initOverrides) {
|
|
152
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
153
153
|
if (requestParameters['organizationId'] == null) {
|
|
154
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling
|
|
154
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDelete().');
|
|
155
155
|
}
|
|
156
|
-
if (requestParameters['
|
|
157
|
-
throw new runtime.RequiredError('
|
|
156
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
157
|
+
throw new runtime.RequiredError('ragConfigName', 'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDelete().');
|
|
158
158
|
}
|
|
159
159
|
if (requestParameters['documentId'] == null) {
|
|
160
|
-
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling
|
|
160
|
+
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDelete().');
|
|
161
161
|
}
|
|
162
162
|
const queryParameters = {};
|
|
163
163
|
const headerParameters = {};
|
|
@@ -168,9 +168,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
168
168
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
171
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents/{documentId}`;
|
|
172
172
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
173
|
-
urlPath = urlPath.replace(`{${"
|
|
173
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
174
174
|
urlPath = urlPath.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
175
175
|
const response = yield this.request({
|
|
176
176
|
path: urlPath,
|
|
@@ -184,24 +184,24 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
184
184
|
/**
|
|
185
185
|
* Delete a document from a RAG configuration
|
|
186
186
|
*/
|
|
187
|
-
|
|
187
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDelete(requestParameters, initOverrides) {
|
|
188
188
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
-
yield this.
|
|
189
|
+
yield this.organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdDeleteRaw(requestParameters, initOverrides);
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* Get document chunks
|
|
194
194
|
*/
|
|
195
|
-
|
|
195
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRaw(requestParameters, initOverrides) {
|
|
196
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
197
197
|
if (requestParameters['organizationId'] == null) {
|
|
198
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling
|
|
198
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet().');
|
|
199
199
|
}
|
|
200
|
-
if (requestParameters['
|
|
201
|
-
throw new runtime.RequiredError('
|
|
200
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
201
|
+
throw new runtime.RequiredError('ragConfigName', 'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet().');
|
|
202
202
|
}
|
|
203
203
|
if (requestParameters['documentId'] == null) {
|
|
204
|
-
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling
|
|
204
|
+
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet().');
|
|
205
205
|
}
|
|
206
206
|
const queryParameters = {};
|
|
207
207
|
const headerParameters = {};
|
|
@@ -212,9 +212,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
212
212
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
215
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents/{documentId}`;
|
|
216
216
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
217
|
-
urlPath = urlPath.replace(`{${"
|
|
217
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
218
218
|
urlPath = urlPath.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
219
219
|
const response = yield this.request({
|
|
220
220
|
path: urlPath,
|
|
@@ -228,28 +228,28 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
228
228
|
/**
|
|
229
229
|
* Get document chunks
|
|
230
230
|
*/
|
|
231
|
-
|
|
231
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGet(requestParameters, initOverrides) {
|
|
232
232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
-
const response = yield this.
|
|
233
|
+
const response = yield this.organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdGetRaw(requestParameters, initOverrides);
|
|
234
234
|
return yield response.value();
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
238
|
* Replace a document in a RAG configuration
|
|
239
239
|
*/
|
|
240
|
-
|
|
240
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRaw(requestParameters, initOverrides) {
|
|
241
241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
242
242
|
if (requestParameters['organizationId'] == null) {
|
|
243
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling
|
|
243
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut().');
|
|
244
244
|
}
|
|
245
|
-
if (requestParameters['
|
|
246
|
-
throw new runtime.RequiredError('
|
|
245
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
246
|
+
throw new runtime.RequiredError('ragConfigName', 'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut().');
|
|
247
247
|
}
|
|
248
248
|
if (requestParameters['documentId'] == null) {
|
|
249
|
-
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling
|
|
249
|
+
throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut().');
|
|
250
250
|
}
|
|
251
251
|
if (requestParameters['file'] == null) {
|
|
252
|
-
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling
|
|
252
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut().');
|
|
253
253
|
}
|
|
254
254
|
const queryParameters = {};
|
|
255
255
|
const headerParameters = {};
|
|
@@ -281,9 +281,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
281
281
|
if (requestParameters['sourceUrl'] != null) {
|
|
282
282
|
formParams.append('source_url', requestParameters['sourceUrl']);
|
|
283
283
|
}
|
|
284
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
284
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents/{documentId}`;
|
|
285
285
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
286
|
-
urlPath = urlPath.replace(`{${"
|
|
286
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
287
287
|
urlPath = urlPath.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId'])));
|
|
288
288
|
const response = yield this.request({
|
|
289
289
|
path: urlPath,
|
|
@@ -298,22 +298,22 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
298
298
|
/**
|
|
299
299
|
* Replace a document in a RAG configuration
|
|
300
300
|
*/
|
|
301
|
-
|
|
301
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPut(requestParameters, initOverrides) {
|
|
302
302
|
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
-
const response = yield this.
|
|
303
|
+
const response = yield this.organizationsOrganizationIdRagRagConfigNameDocumentsDocumentIdPutRaw(requestParameters, initOverrides);
|
|
304
304
|
return yield response.value();
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
/**
|
|
308
308
|
* List documents in a RAG configuration
|
|
309
309
|
*/
|
|
310
|
-
|
|
310
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsGetRaw(requestParameters, initOverrides) {
|
|
311
311
|
return __awaiter(this, void 0, void 0, function* () {
|
|
312
312
|
if (requestParameters['organizationId'] == null) {
|
|
313
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling
|
|
313
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsGet().');
|
|
314
314
|
}
|
|
315
|
-
if (requestParameters['
|
|
316
|
-
throw new runtime.RequiredError('
|
|
315
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
316
|
+
throw new runtime.RequiredError('ragConfigName', 'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsGet().');
|
|
317
317
|
}
|
|
318
318
|
const queryParameters = {};
|
|
319
319
|
if (requestParameters['status'] != null) {
|
|
@@ -327,9 +327,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
327
327
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
330
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents`;
|
|
331
331
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
332
|
-
urlPath = urlPath.replace(`{${"
|
|
332
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
333
333
|
const response = yield this.request({
|
|
334
334
|
path: urlPath,
|
|
335
335
|
method: 'GET',
|
|
@@ -342,25 +342,25 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
342
342
|
/**
|
|
343
343
|
* List documents in a RAG configuration
|
|
344
344
|
*/
|
|
345
|
-
|
|
345
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsGet(requestParameters, initOverrides) {
|
|
346
346
|
return __awaiter(this, void 0, void 0, function* () {
|
|
347
|
-
const response = yield this.
|
|
347
|
+
const response = yield this.organizationsOrganizationIdRagRagConfigNameDocumentsGetRaw(requestParameters, initOverrides);
|
|
348
348
|
return yield response.value();
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
/**
|
|
352
352
|
* Upload a document to a RAG configuration
|
|
353
353
|
*/
|
|
354
|
-
|
|
354
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsPostRaw(requestParameters, initOverrides) {
|
|
355
355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
356
356
|
if (requestParameters['organizationId'] == null) {
|
|
357
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling
|
|
357
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsPost().');
|
|
358
358
|
}
|
|
359
|
-
if (requestParameters['
|
|
360
|
-
throw new runtime.RequiredError('
|
|
359
|
+
if (requestParameters['ragConfigName'] == null) {
|
|
360
|
+
throw new runtime.RequiredError('ragConfigName', 'Required parameter "ragConfigName" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsPost().');
|
|
361
361
|
}
|
|
362
362
|
if (requestParameters['file'] == null) {
|
|
363
|
-
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling
|
|
363
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling organizationsOrganizationIdRagRagConfigNameDocumentsPost().');
|
|
364
364
|
}
|
|
365
365
|
const queryParameters = {};
|
|
366
366
|
const headerParameters = {};
|
|
@@ -395,9 +395,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
395
395
|
if (requestParameters['metadata'] != null) {
|
|
396
396
|
formParams.append('metadata', requestParameters['metadata']);
|
|
397
397
|
}
|
|
398
|
-
let urlPath = `/organizations/{organizationId}/rag/{
|
|
398
|
+
let urlPath = `/organizations/{organizationId}/rag/{ragConfigName}/documents`;
|
|
399
399
|
urlPath = urlPath.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId'])));
|
|
400
|
-
urlPath = urlPath.replace(`{${"
|
|
400
|
+
urlPath = urlPath.replace(`{${"ragConfigName"}}`, encodeURIComponent(String(requestParameters['ragConfigName'])));
|
|
401
401
|
const response = yield this.request({
|
|
402
402
|
path: urlPath,
|
|
403
403
|
method: 'POST',
|
|
@@ -411,9 +411,9 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
411
411
|
/**
|
|
412
412
|
* Upload a document to a RAG configuration
|
|
413
413
|
*/
|
|
414
|
-
|
|
414
|
+
organizationsOrganizationIdRagRagConfigNameDocumentsPost(requestParameters, initOverrides) {
|
|
415
415
|
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
-
const response = yield this.
|
|
416
|
+
const response = yield this.organizationsOrganizationIdRagRagConfigNameDocumentsPostRaw(requestParameters, initOverrides);
|
|
417
417
|
return yield response.value();
|
|
418
418
|
});
|
|
419
419
|
}
|
|
@@ -421,7 +421,7 @@ export class RAGApi extends runtime.BaseAPI {
|
|
|
421
421
|
/**
|
|
422
422
|
* @export
|
|
423
423
|
*/
|
|
424
|
-
export const
|
|
424
|
+
export const OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum = {
|
|
425
425
|
Pending: 'pending',
|
|
426
426
|
Processing: 'processing',
|
|
427
427
|
Completed: 'completed',
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner } from './OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -20,19 +21,19 @@ export interface OrganizationsOrganizationIdSttProvidersGet200ResponseInner {
|
|
|
20
21
|
* @type {string}
|
|
21
22
|
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInner
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
id?: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
|
-
* @type {
|
|
27
|
+
* @type {string}
|
|
27
28
|
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInner
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
|
+
label?: string;
|
|
30
31
|
/**
|
|
31
32
|
*
|
|
32
|
-
* @type {Array<
|
|
33
|
+
* @type {Array<OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner>}
|
|
33
34
|
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInner
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
models?: Array<OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner>;
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* Check if a given object implements the OrganizationsOrganizationIdSttProvidersGet200ResponseInner interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSON, OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSON, } from './OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the OrganizationsOrganizationIdSttProvidersGet200ResponseInner interface.
|
|
16
17
|
*/
|
|
@@ -25,9 +26,9 @@ export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerFromJS
|
|
|
25
26
|
return json;
|
|
26
27
|
}
|
|
27
28
|
return {
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
29
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
30
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
31
|
+
'models': json['models'] == null ? undefined : (json['models'].map(OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSON)),
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerToJSON(json) {
|
|
@@ -38,8 +39,8 @@ export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerToJSON
|
|
|
38
39
|
return value;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
42
|
+
'id': value['id'],
|
|
43
|
+
'label': value['label'],
|
|
44
|
+
'models': value['models'] == null ? undefined : (value['models'].map(OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSON)),
|
|
44
45
|
};
|
|
45
46
|
}
|
package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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 OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
28
|
+
*/
|
|
29
|
+
label?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
34
|
+
*/
|
|
35
|
+
supportedLanguages?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
40
|
+
*/
|
|
41
|
+
streaming?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner
|
|
46
|
+
*/
|
|
47
|
+
batch?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfOrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner(value: object): value is OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner;
|
|
53
|
+
export declare function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSON(json: any): OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner;
|
|
54
|
+
export declare function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner;
|
|
55
|
+
export declare function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSON(json: any): OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner;
|
|
56
|
+
export declare function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSONTyped(value?: OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner | null, ignoreDiscriminator?: boolean): any;
|
package/dist/esm/models/OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInner(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSON(json) {
|
|
21
|
+
return OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
30
|
+
'supportedLanguages': json['supportedLanguages'] == null ? undefined : json['supportedLanguages'],
|
|
31
|
+
'streaming': json['streaming'] == null ? undefined : json['streaming'],
|
|
32
|
+
'batch': json['batch'] == null ? undefined : json['batch'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSON(json) {
|
|
36
|
+
return OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function OrganizationsOrganizationIdSttProvidersGet200ResponseInnerModelsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': value['id'],
|
|
44
|
+
'label': value['label'],
|
|
45
|
+
'supportedLanguages': value['supportedLanguages'],
|
|
46
|
+
'streaming': value['streaming'],
|
|
47
|
+
'batch': value['batch'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner } from './OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -21,19 +21,19 @@ export interface OrganizationsOrganizationIdTtsProvidersGet200ResponseInner {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof OrganizationsOrganizationIdTtsProvidersGet200ResponseInner
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {string}
|
|
28
28
|
* @memberof OrganizationsOrganizationIdTtsProvidersGet200ResponseInner
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
label?: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {Array<
|
|
33
|
+
* @type {Array<OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner>}
|
|
34
34
|
* @memberof OrganizationsOrganizationIdTtsProvidersGet200ResponseInner
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
models?: Array<OrganizationsOrganizationIdTtsProvidersGet200ResponseInnerModelsInner>;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Check if a given object implements the OrganizationsOrganizationIdTtsProvidersGet200ResponseInner interface.
|