@openfilz-sdk/typescript 1.2.19 → 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 (72) 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/esm/models/settings.d.ts +1 -0
  39. package/dist/models/ai-chat-conversation.d.ts +18 -0
  40. package/dist/models/ai-chat-conversation.js +15 -0
  41. package/dist/models/ai-chat-request.d.ts +15 -0
  42. package/dist/models/ai-chat-request.js +15 -0
  43. package/dist/models/ai-chat-response.d.ts +23 -0
  44. package/dist/models/ai-chat-response.js +21 -0
  45. package/dist/models/ai-connection-test-result.d.ts +16 -0
  46. package/dist/models/ai-connection-test-result.js +15 -0
  47. package/dist/models/ai-settings-response.d.ts +21 -0
  48. package/dist/models/ai-settings-response.js +15 -0
  49. package/dist/models/index.d.ts +6 -0
  50. package/dist/models/index.js +6 -0
  51. package/dist/models/save-ai-settings-request.d.ts +36 -0
  52. package/dist/models/save-ai-settings-request.js +22 -0
  53. package/dist/models/settings.d.ts +1 -0
  54. package/docs/AIChatApi.md +209 -0
  55. package/docs/AISettingsApi.md +203 -0
  56. package/docs/AiChatConversation.md +28 -0
  57. package/docs/AiChatRequest.md +22 -0
  58. package/docs/AiChatResponse.md +26 -0
  59. package/docs/AiConnectionTestResult.md +24 -0
  60. package/docs/AiSettingsResponse.md +34 -0
  61. package/docs/SaveAiSettingsRequest.md +26 -0
  62. package/docs/Settings.md +2 -0
  63. package/docs/SettingsApi.md +4 -4
  64. package/models/ai-chat-conversation.ts +24 -0
  65. package/models/ai-chat-request.ts +21 -0
  66. package/models/ai-chat-response.ts +32 -0
  67. package/models/ai-connection-test-result.ts +22 -0
  68. package/models/ai-settings-response.ts +27 -0
  69. package/models/index.ts +6 -0
  70. package/models/save-ai-settings-request.ts +45 -0
  71. package/models/settings.ts +1 -0
  72. package/package.json +1 -1
@@ -0,0 +1,325 @@
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
+ * AIChatApi - axios parameter creator
31
+ */
32
+ export const AIChatApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
36
+ * @summary Chat with AI assistant
37
+ * @param {AiChatRequest} aiChatRequest
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ chat: (aiChatRequest_1, ...args_1) => __awaiter(this, [aiChatRequest_1, ...args_1], void 0, function* (aiChatRequest, options = {}) {
42
+ // verify required parameter 'aiChatRequest' is not null or undefined
43
+ assertParamExists('chat', 'aiChatRequest', aiChatRequest);
44
+ const localVarPath = `/api/v1/ai/chat`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication keycloak_auth required
55
+ // http bearer authentication required
56
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
57
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58
+ localVarHeaderParameter['Accept'] = 'text/event-stream';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.data = serializeDataIfNeeded(aiChatRequest, localVarRequestOptions, configuration);
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ }),
68
+ /**
69
+ * Delete a conversation and all its messages
70
+ * @summary Delete conversation
71
+ * @param {string} conversationId
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ deleteConversation: (conversationId_1, ...args_1) => __awaiter(this, [conversationId_1, ...args_1], void 0, function* (conversationId, options = {}) {
76
+ // verify required parameter 'conversationId' is not null or undefined
77
+ assertParamExists('deleteConversation', 'conversationId', conversationId);
78
+ const localVarPath = `/api/v1/ai/conversations/{conversationId}`
79
+ .replace('{conversationId}', encodeURIComponent(String(conversationId)));
80
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
81
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
82
+ let baseOptions;
83
+ if (configuration) {
84
+ baseOptions = configuration.baseOptions;
85
+ }
86
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
87
+ const localVarHeaderParameter = {};
88
+ const localVarQueryParameter = {};
89
+ // authentication keycloak_auth required
90
+ // http bearer authentication required
91
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ }),
100
+ /**
101
+ * Get all messages in a conversation
102
+ * @summary Get conversation history
103
+ * @param {string} conversationId
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ getConversationHistory: (conversationId_1, ...args_1) => __awaiter(this, [conversationId_1, ...args_1], void 0, function* (conversationId, options = {}) {
108
+ // verify required parameter 'conversationId' is not null or undefined
109
+ assertParamExists('getConversationHistory', 'conversationId', conversationId);
110
+ const localVarPath = `/api/v1/ai/conversations/{conversationId}`
111
+ .replace('{conversationId}', encodeURIComponent(String(conversationId)));
112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
114
+ let baseOptions;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ }
118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
119
+ const localVarHeaderParameter = {};
120
+ const localVarQueryParameter = {};
121
+ // authentication keycloak_auth required
122
+ // http bearer authentication required
123
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
124
+ localVarHeaderParameter['Accept'] = 'application/json';
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ }),
133
+ /**
134
+ * Get all AI chat conversations for the current user
135
+ * @summary List conversations
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ listConversations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
140
+ const localVarPath = `/api/v1/ai/conversations`;
141
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
142
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
143
+ let baseOptions;
144
+ if (configuration) {
145
+ baseOptions = configuration.baseOptions;
146
+ }
147
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
148
+ const localVarHeaderParameter = {};
149
+ const localVarQueryParameter = {};
150
+ // authentication keycloak_auth required
151
+ // http bearer authentication required
152
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
153
+ localVarHeaderParameter['Accept'] = 'application/json';
154
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
155
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
156
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
157
+ return {
158
+ url: toPathString(localVarUrlObj),
159
+ options: localVarRequestOptions,
160
+ };
161
+ }),
162
+ };
163
+ };
164
+ /**
165
+ * AIChatApi - functional programming interface
166
+ */
167
+ export const AIChatApiFp = function (configuration) {
168
+ const localVarAxiosParamCreator = AIChatApiAxiosParamCreator(configuration);
169
+ return {
170
+ /**
171
+ * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
172
+ * @summary Chat with AI assistant
173
+ * @param {AiChatRequest} aiChatRequest
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ chat(aiChatRequest, options) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ var _a, _b, _c;
180
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.chat(aiChatRequest, options);
181
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
182
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIChatApi.chat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
183
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
184
+ });
185
+ },
186
+ /**
187
+ * Delete a conversation and all its messages
188
+ * @summary Delete conversation
189
+ * @param {string} conversationId
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ deleteConversation(conversationId, options) {
194
+ return __awaiter(this, void 0, void 0, function* () {
195
+ var _a, _b, _c;
196
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteConversation(conversationId, options);
197
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
198
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIChatApi.deleteConversation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
199
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
200
+ });
201
+ },
202
+ /**
203
+ * Get all messages in a conversation
204
+ * @summary Get conversation history
205
+ * @param {string} conversationId
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ getConversationHistory(conversationId, options) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ var _a, _b, _c;
212
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getConversationHistory(conversationId, options);
213
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
214
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIChatApi.getConversationHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
215
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
216
+ });
217
+ },
218
+ /**
219
+ * Get all AI chat conversations for the current user
220
+ * @summary List conversations
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ listConversations(options) {
225
+ return __awaiter(this, void 0, void 0, function* () {
226
+ var _a, _b, _c;
227
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listConversations(options);
228
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
229
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIChatApi.listConversations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
230
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
231
+ });
232
+ },
233
+ };
234
+ };
235
+ /**
236
+ * AIChatApi - factory interface
237
+ */
238
+ export const AIChatApiFactory = function (configuration, basePath, axios) {
239
+ const localVarFp = AIChatApiFp(configuration);
240
+ return {
241
+ /**
242
+ * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
243
+ * @summary Chat with AI assistant
244
+ * @param {AiChatRequest} aiChatRequest
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ chat(aiChatRequest, options) {
249
+ return localVarFp.chat(aiChatRequest, options).then((request) => request(axios, basePath));
250
+ },
251
+ /**
252
+ * Delete a conversation and all its messages
253
+ * @summary Delete conversation
254
+ * @param {string} conversationId
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ deleteConversation(conversationId, options) {
259
+ return localVarFp.deleteConversation(conversationId, options).then((request) => request(axios, basePath));
260
+ },
261
+ /**
262
+ * Get all messages in a conversation
263
+ * @summary Get conversation history
264
+ * @param {string} conversationId
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ getConversationHistory(conversationId, options) {
269
+ return localVarFp.getConversationHistory(conversationId, options).then((request) => request(axios, basePath));
270
+ },
271
+ /**
272
+ * Get all AI chat conversations for the current user
273
+ * @summary List conversations
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ listConversations(options) {
278
+ return localVarFp.listConversations(options).then((request) => request(axios, basePath));
279
+ },
280
+ };
281
+ };
282
+ /**
283
+ * AIChatApi - object-oriented interface
284
+ */
285
+ export class AIChatApi extends BaseAPI {
286
+ /**
287
+ * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
288
+ * @summary Chat with AI assistant
289
+ * @param {AiChatRequest} aiChatRequest
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ chat(aiChatRequest, options) {
294
+ return AIChatApiFp(this.configuration).chat(aiChatRequest, options).then((request) => request(this.axios, this.basePath));
295
+ }
296
+ /**
297
+ * Delete a conversation and all its messages
298
+ * @summary Delete conversation
299
+ * @param {string} conversationId
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ deleteConversation(conversationId, options) {
304
+ return AIChatApiFp(this.configuration).deleteConversation(conversationId, options).then((request) => request(this.axios, this.basePath));
305
+ }
306
+ /**
307
+ * Get all messages in a conversation
308
+ * @summary Get conversation history
309
+ * @param {string} conversationId
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ getConversationHistory(conversationId, options) {
314
+ return AIChatApiFp(this.configuration).getConversationHistory(conversationId, options).then((request) => request(this.axios, this.basePath));
315
+ }
316
+ /**
317
+ * Get all AI chat conversations for the current user
318
+ * @summary List conversations
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ */
322
+ listConversations(options) {
323
+ return AIChatApiFp(this.configuration).listConversations(options).then((request) => request(this.axios, this.basePath));
324
+ }
325
+ }
@@ -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
+ }