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