@openfilz-sdk/typescript 1.2.20 → 1.2.21
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/.openapi-generator/FILES +16 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +17 -3
- package/api/aichat-api.ts +341 -0
- package/api/aisettings-api.ts +335 -0
- package/api/settings-api.ts +8 -8
- package/api.ts +2 -0
- package/dist/api/aichat-api.d.ts +161 -0
- package/dist/api/aichat-api.js +332 -0
- package/dist/api/aisettings-api.d.ts +157 -0
- package/dist/api/aisettings-api.js +326 -0
- package/dist/api/settings-api.d.ts +4 -4
- package/dist/api/settings-api.js +8 -8
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/aichat-api.d.ts +161 -0
- package/dist/esm/api/aichat-api.js +325 -0
- package/dist/esm/api/aisettings-api.d.ts +157 -0
- package/dist/esm/api/aisettings-api.js +319 -0
- package/dist/esm/api/settings-api.d.ts +4 -4
- package/dist/esm/api/settings-api.js +8 -8
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/ai-chat-conversation.d.ts +18 -0
- package/dist/esm/models/ai-chat-conversation.js +14 -0
- package/dist/esm/models/ai-chat-request.d.ts +15 -0
- package/dist/esm/models/ai-chat-request.js +14 -0
- package/dist/esm/models/ai-chat-response.d.ts +23 -0
- package/dist/esm/models/ai-chat-response.js +18 -0
- package/dist/esm/models/ai-connection-test-result.d.ts +16 -0
- package/dist/esm/models/ai-connection-test-result.js +14 -0
- package/dist/esm/models/ai-settings-response.d.ts +21 -0
- package/dist/esm/models/ai-settings-response.js +14 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/save-ai-settings-request.d.ts +36 -0
- package/dist/esm/models/save-ai-settings-request.js +19 -0
- package/dist/models/ai-chat-conversation.d.ts +18 -0
- package/dist/models/ai-chat-conversation.js +15 -0
- package/dist/models/ai-chat-request.d.ts +15 -0
- package/dist/models/ai-chat-request.js +15 -0
- package/dist/models/ai-chat-response.d.ts +23 -0
- package/dist/models/ai-chat-response.js +21 -0
- package/dist/models/ai-connection-test-result.d.ts +16 -0
- package/dist/models/ai-connection-test-result.js +15 -0
- package/dist/models/ai-settings-response.d.ts +21 -0
- package/dist/models/ai-settings-response.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/save-ai-settings-request.d.ts +36 -0
- package/dist/models/save-ai-settings-request.js +22 -0
- package/docs/AIChatApi.md +209 -0
- package/docs/AISettingsApi.md +203 -0
- package/docs/AiChatConversation.md +28 -0
- package/docs/AiChatRequest.md +22 -0
- package/docs/AiChatResponse.md +26 -0
- package/docs/AiConnectionTestResult.md +24 -0
- package/docs/AiSettingsResponse.md +34 -0
- package/docs/SaveAiSettingsRequest.md +26 -0
- package/docs/SettingsApi.md +4 -4
- package/models/ai-chat-conversation.ts +24 -0
- package/models/ai-chat-request.ts +21 -0
- package/models/ai-chat-response.ts +32 -0
- package/models/ai-connection-test-result.ts +22 -0
- package/models/ai-settings-response.ts +27 -0
- package/models/index.ts +6 -0
- package/models/save-ai-settings-request.ts +45 -0
- package/package.json +1 -1
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* AISettingsApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const AISettingsApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* Remove my chat-LLM override and go back to the server default model.
|
|
36
|
+
* @summary Reset my AI settings
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
deleteSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
41
|
+
const localVarPath = `/api/v1/settings/ai`;
|
|
42
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44
|
+
let baseOptions;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
}
|
|
48
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
49
|
+
const localVarHeaderParameter = {};
|
|
50
|
+
const localVarQueryParameter = {};
|
|
51
|
+
// authentication keycloak_auth required
|
|
52
|
+
// http bearer authentication required
|
|
53
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
54
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
57
|
+
return {
|
|
58
|
+
url: toPathString(localVarUrlObj),
|
|
59
|
+
options: localVarRequestOptions,
|
|
60
|
+
};
|
|
61
|
+
}),
|
|
62
|
+
/**
|
|
63
|
+
* Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters.
|
|
64
|
+
* @summary Get my AI settings
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
getSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
69
|
+
const localVarPath = `/api/v1/settings/ai`;
|
|
70
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
71
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
72
|
+
let baseOptions;
|
|
73
|
+
if (configuration) {
|
|
74
|
+
baseOptions = configuration.baseOptions;
|
|
75
|
+
}
|
|
76
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
77
|
+
const localVarHeaderParameter = {};
|
|
78
|
+
const localVarQueryParameter = {};
|
|
79
|
+
// authentication keycloak_auth required
|
|
80
|
+
// http bearer authentication required
|
|
81
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
82
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
83
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
84
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
86
|
+
return {
|
|
87
|
+
url: toPathString(localVarUrlObj),
|
|
88
|
+
options: localVarRequestOptions,
|
|
89
|
+
};
|
|
90
|
+
}),
|
|
91
|
+
/**
|
|
92
|
+
* Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
|
|
93
|
+
* @summary Save my AI settings
|
|
94
|
+
* @param {SaveAiSettingsRequest} saveAiSettingsRequest
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
saveSettings: (saveAiSettingsRequest_1, ...args_1) => __awaiter(this, [saveAiSettingsRequest_1, ...args_1], void 0, function* (saveAiSettingsRequest, options = {}) {
|
|
99
|
+
// verify required parameter 'saveAiSettingsRequest' is not null or undefined
|
|
100
|
+
assertParamExists('saveSettings', 'saveAiSettingsRequest', saveAiSettingsRequest);
|
|
101
|
+
const localVarPath = `/api/v1/settings/ai`;
|
|
102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
|
+
let baseOptions;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
}
|
|
108
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
109
|
+
const localVarHeaderParameter = {};
|
|
110
|
+
const localVarQueryParameter = {};
|
|
111
|
+
// authentication keycloak_auth required
|
|
112
|
+
// http bearer authentication required
|
|
113
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
114
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
115
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
116
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
118
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
119
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveAiSettingsRequest, localVarRequestOptions, configuration);
|
|
120
|
+
return {
|
|
121
|
+
url: toPathString(localVarUrlObj),
|
|
122
|
+
options: localVarRequestOptions,
|
|
123
|
+
};
|
|
124
|
+
}),
|
|
125
|
+
/**
|
|
126
|
+
* Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted).
|
|
127
|
+
* @summary Test AI provider connection
|
|
128
|
+
* @param {SaveAiSettingsRequest} saveAiSettingsRequest
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
testConnection: (saveAiSettingsRequest_1, ...args_1) => __awaiter(this, [saveAiSettingsRequest_1, ...args_1], void 0, function* (saveAiSettingsRequest, options = {}) {
|
|
133
|
+
// verify required parameter 'saveAiSettingsRequest' is not null or undefined
|
|
134
|
+
assertParamExists('testConnection', 'saveAiSettingsRequest', saveAiSettingsRequest);
|
|
135
|
+
const localVarPath = `/api/v1/settings/ai/test`;
|
|
136
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
138
|
+
let baseOptions;
|
|
139
|
+
if (configuration) {
|
|
140
|
+
baseOptions = configuration.baseOptions;
|
|
141
|
+
}
|
|
142
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
143
|
+
const localVarHeaderParameter = {};
|
|
144
|
+
const localVarQueryParameter = {};
|
|
145
|
+
// authentication keycloak_auth required
|
|
146
|
+
// http bearer authentication required
|
|
147
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
148
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
149
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
150
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
153
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveAiSettingsRequest, localVarRequestOptions, configuration);
|
|
154
|
+
return {
|
|
155
|
+
url: toPathString(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
};
|
|
158
|
+
}),
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* AISettingsApi - functional programming interface
|
|
163
|
+
*/
|
|
164
|
+
export const AISettingsApiFp = function (configuration) {
|
|
165
|
+
const localVarAxiosParamCreator = AISettingsApiAxiosParamCreator(configuration);
|
|
166
|
+
return {
|
|
167
|
+
/**
|
|
168
|
+
* Remove my chat-LLM override and go back to the server default model.
|
|
169
|
+
* @summary Reset my AI settings
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
*/
|
|
173
|
+
deleteSettings(options) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
var _a, _b, _c;
|
|
176
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSettings(options);
|
|
177
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
178
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISettingsApi.deleteSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
179
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
* Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters.
|
|
184
|
+
* @summary Get my AI settings
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
getSettings(options) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
var _a, _b, _c;
|
|
191
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettings(options);
|
|
192
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
193
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISettingsApi.getSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
194
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
* Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
|
|
199
|
+
* @summary Save my AI settings
|
|
200
|
+
* @param {SaveAiSettingsRequest} saveAiSettingsRequest
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
saveSettings(saveAiSettingsRequest, options) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
var _a, _b, _c;
|
|
207
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.saveSettings(saveAiSettingsRequest, options);
|
|
208
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
209
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISettingsApi.saveSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
210
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
211
|
+
});
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
* Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted).
|
|
215
|
+
* @summary Test AI provider connection
|
|
216
|
+
* @param {SaveAiSettingsRequest} saveAiSettingsRequest
|
|
217
|
+
* @param {*} [options] Override http request option.
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
testConnection(saveAiSettingsRequest, options) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
var _a, _b, _c;
|
|
223
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.testConnection(saveAiSettingsRequest, options);
|
|
224
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
225
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISettingsApi.testConnection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
226
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
227
|
+
});
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* AISettingsApi - factory interface
|
|
233
|
+
*/
|
|
234
|
+
export const AISettingsApiFactory = function (configuration, basePath, axios) {
|
|
235
|
+
const localVarFp = AISettingsApiFp(configuration);
|
|
236
|
+
return {
|
|
237
|
+
/**
|
|
238
|
+
* Remove my chat-LLM override and go back to the server default model.
|
|
239
|
+
* @summary Reset my AI settings
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
deleteSettings(options) {
|
|
244
|
+
return localVarFp.deleteSettings(options).then((request) => request(axios, basePath));
|
|
245
|
+
},
|
|
246
|
+
/**
|
|
247
|
+
* Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters.
|
|
248
|
+
* @summary Get my AI settings
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
getSettings(options) {
|
|
253
|
+
return localVarFp.getSettings(options).then((request) => request(axios, basePath));
|
|
254
|
+
},
|
|
255
|
+
/**
|
|
256
|
+
* Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
|
|
257
|
+
* @summary Save my AI settings
|
|
258
|
+
* @param {SaveAiSettingsRequest} saveAiSettingsRequest
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
saveSettings(saveAiSettingsRequest, options) {
|
|
263
|
+
return localVarFp.saveSettings(saveAiSettingsRequest, options).then((request) => request(axios, basePath));
|
|
264
|
+
},
|
|
265
|
+
/**
|
|
266
|
+
* Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted).
|
|
267
|
+
* @summary Test AI provider connection
|
|
268
|
+
* @param {SaveAiSettingsRequest} saveAiSettingsRequest
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
testConnection(saveAiSettingsRequest, options) {
|
|
273
|
+
return localVarFp.testConnection(saveAiSettingsRequest, options).then((request) => request(axios, basePath));
|
|
274
|
+
},
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* AISettingsApi - object-oriented interface
|
|
279
|
+
*/
|
|
280
|
+
export class AISettingsApi extends BaseAPI {
|
|
281
|
+
/**
|
|
282
|
+
* Remove my chat-LLM override and go back to the server default model.
|
|
283
|
+
* @summary Reset my AI settings
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
*/
|
|
287
|
+
deleteSettings(options) {
|
|
288
|
+
return AISettingsApiFp(this.configuration).deleteSettings(options).then((request) => request(this.axios, this.basePath));
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters.
|
|
292
|
+
* @summary Get my AI settings
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
getSettings(options) {
|
|
297
|
+
return AISettingsApiFp(this.configuration).getSettings(options).then((request) => request(this.axios, this.basePath));
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
|
|
301
|
+
* @summary Save my AI settings
|
|
302
|
+
* @param {SaveAiSettingsRequest} saveAiSettingsRequest
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
saveSettings(saveAiSettingsRequest, options) {
|
|
307
|
+
return AISettingsApiFp(this.configuration).saveSettings(saveAiSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted).
|
|
311
|
+
* @summary Test AI provider connection
|
|
312
|
+
* @param {SaveAiSettingsRequest} saveAiSettingsRequest
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
testConnection(saveAiSettingsRequest, options) {
|
|
317
|
+
return AISettingsApiFp(this.configuration).testConnection(saveAiSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
318
|
+
}
|
|
319
|
+
}
|
|
@@ -23,7 +23,7 @@ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
23
23
|
* @param {*} [options] Override http request option.
|
|
24
24
|
* @throws {RequiredError}
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
getSettings1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* SettingsApi - functional programming interface
|
|
@@ -35,7 +35,7 @@ export declare const SettingsApiFp: (configuration?: Configuration) => {
|
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
getSettings1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Settings>>;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* SettingsApi - factory interface
|
|
@@ -47,7 +47,7 @@ export declare const SettingsApiFactory: (configuration?: Configuration, basePat
|
|
|
47
47
|
* @param {*} [options] Override http request option.
|
|
48
48
|
* @throws {RequiredError}
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
getSettings1(options?: RawAxiosRequestConfig): AxiosPromise<Settings>;
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* SettingsApi - object-oriented interface
|
|
@@ -59,5 +59,5 @@ export declare class SettingsApi extends BaseAPI {
|
|
|
59
59
|
* @param {*} [options] Override http request option.
|
|
60
60
|
* @throws {RequiredError}
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
getSettings1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Settings, any, {}>>;
|
|
63
63
|
}
|
|
@@ -37,7 +37,7 @@ export const SettingsApiAxiosParamCreator = function (configuration) {
|
|
|
37
37
|
* @param {*} [options] Override http request option.
|
|
38
38
|
* @throws {RequiredError}
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
getSettings1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
41
41
|
const localVarPath = `/api/v1/settings`;
|
|
42
42
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
43
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -74,12 +74,12 @@ export const SettingsApiFp = function (configuration) {
|
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
75
75
|
* @throws {RequiredError}
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
getSettings1(options) {
|
|
78
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
79
|
var _a, _b, _c;
|
|
80
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
80
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSettings1(options);
|
|
81
81
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SettingsApi.
|
|
82
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SettingsApi.getSettings1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
83
83
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
84
84
|
});
|
|
85
85
|
},
|
|
@@ -97,8 +97,8 @@ export const SettingsApiFactory = function (configuration, basePath, axios) {
|
|
|
97
97
|
* @param {*} [options] Override http request option.
|
|
98
98
|
* @throws {RequiredError}
|
|
99
99
|
*/
|
|
100
|
-
|
|
101
|
-
return localVarFp.
|
|
100
|
+
getSettings1(options) {
|
|
101
|
+
return localVarFp.getSettings1(options).then((request) => request(axios, basePath));
|
|
102
102
|
},
|
|
103
103
|
};
|
|
104
104
|
};
|
|
@@ -112,7 +112,7 @@ export class SettingsApi extends BaseAPI {
|
|
|
112
112
|
* @param {*} [options] Override http request option.
|
|
113
113
|
* @throws {RequiredError}
|
|
114
114
|
*/
|
|
115
|
-
|
|
116
|
-
return SettingsApiFp(this.configuration).
|
|
115
|
+
getSettings1(options) {
|
|
116
|
+
return SettingsApiFp(this.configuration).getSettings1(options).then((request) => request(this.axios, this.basePath));
|
|
117
117
|
}
|
|
118
118
|
}
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
export * from './api/aichat-api';
|
|
13
|
+
export * from './api/aisettings-api';
|
|
12
14
|
export * from './api/audit-controller-api';
|
|
13
15
|
export * from './api/dashboard-api';
|
|
14
16
|
export * from './api/document-controller-api';
|
package/dist/esm/api.js
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
export * from './api/aichat-api';
|
|
15
|
+
export * from './api/aisettings-api';
|
|
14
16
|
export * from './api/audit-controller-api';
|
|
15
17
|
export * from './api/dashboard-api';
|
|
16
18
|
export * from './api/document-controller-api';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
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
|
+
export interface AiChatConversation {
|
|
13
|
+
'id'?: string;
|
|
14
|
+
'title'?: string;
|
|
15
|
+
'createdBy'?: string;
|
|
16
|
+
'createdAt'?: string;
|
|
17
|
+
'updatedAt'?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
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
|
+
export interface AiChatRequest {
|
|
13
|
+
'message': string;
|
|
14
|
+
'conversationId'?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
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
|
+
export interface AiChatResponse {
|
|
13
|
+
'conversationId'?: string;
|
|
14
|
+
'content'?: string;
|
|
15
|
+
'type'?: AiChatResponseTypeEnum;
|
|
16
|
+
'modifiedFolderIds'?: Array<string>;
|
|
17
|
+
}
|
|
18
|
+
export declare const AiChatResponseTypeEnum: {
|
|
19
|
+
readonly Message: "MESSAGE";
|
|
20
|
+
readonly Done: "DONE";
|
|
21
|
+
readonly Error: "ERROR";
|
|
22
|
+
};
|
|
23
|
+
export type AiChatResponseTypeEnum = typeof AiChatResponseTypeEnum[keyof typeof AiChatResponseTypeEnum];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
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
|
+
export const AiChatResponseTypeEnum = {
|
|
15
|
+
Message: 'MESSAGE',
|
|
16
|
+
Done: 'DONE',
|
|
17
|
+
Error: 'ERROR',
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
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
|
+
export interface AiConnectionTestResult {
|
|
13
|
+
'ok'?: boolean;
|
|
14
|
+
'message'?: string;
|
|
15
|
+
'latencyMs'?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
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
|
+
export interface AiSettingsResponse {
|
|
13
|
+
'enabled'?: boolean;
|
|
14
|
+
'provider'?: string;
|
|
15
|
+
'model'?: string;
|
|
16
|
+
'baseUrl'?: string;
|
|
17
|
+
'hasApiKey'?: boolean;
|
|
18
|
+
'keySuffix'?: string;
|
|
19
|
+
'defaultProvider'?: string;
|
|
20
|
+
'defaultModel'?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
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
|
+
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from './ai-chat-conversation';
|
|
2
|
+
export * from './ai-chat-request';
|
|
3
|
+
export * from './ai-chat-response';
|
|
4
|
+
export * from './ai-connection-test-result';
|
|
5
|
+
export * from './ai-settings-response';
|
|
1
6
|
export * from './ancestor-info';
|
|
2
7
|
export * from './audit-log';
|
|
3
8
|
export * from './audit-log-details';
|
|
@@ -30,6 +35,7 @@ export * from './rename-request';
|
|
|
30
35
|
export * from './replace-audit';
|
|
31
36
|
export * from './restore-version-audit';
|
|
32
37
|
export * from './restore-version-response';
|
|
38
|
+
export * from './save-ai-settings-request';
|
|
33
39
|
export * from './search-by-audit-log-request';
|
|
34
40
|
export * from './search-by-metadata-request';
|
|
35
41
|
export * from './search-metadata-request';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from './ai-chat-conversation';
|
|
2
|
+
export * from './ai-chat-request';
|
|
3
|
+
export * from './ai-chat-response';
|
|
4
|
+
export * from './ai-connection-test-result';
|
|
5
|
+
export * from './ai-settings-response';
|
|
1
6
|
export * from './ancestor-info';
|
|
2
7
|
export * from './audit-log';
|
|
3
8
|
export * from './audit-log-details';
|
|
@@ -30,6 +35,7 @@ export * from './rename-request';
|
|
|
30
35
|
export * from './replace-audit';
|
|
31
36
|
export * from './restore-version-audit';
|
|
32
37
|
export * from './restore-version-response';
|
|
38
|
+
export * from './save-ai-settings-request';
|
|
33
39
|
export * from './search-by-audit-log-request';
|
|
34
40
|
export * from './search-by-metadata-request';
|
|
35
41
|
export * from './search-metadata-request';
|