@openfilz-sdk/typescript-ee 1.7.5 → 1.8.1

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 (125) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +19 -2
  4. package/api/aichat-api.ts +341 -0
  5. package/api/aisettings-api.ts +412 -0
  6. package/api.ts +2 -0
  7. package/common.ts +2 -2
  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 +191 -0
  11. package/dist/api/aisettings-api.js +396 -0
  12. package/dist/api/collaboration-audit-controller-api.d.ts +3 -3
  13. package/dist/api/collaboration-controller-api.d.ts +15 -15
  14. package/dist/api/comments-api.d.ts +3 -3
  15. package/dist/api/dashboard-api.d.ts +1 -1
  16. package/dist/api/delegated-browse-grants-admin-api.d.ts +5 -5
  17. package/dist/api/delegated-browse-grants-end-user-api.d.ts +5 -5
  18. package/dist/api/digital-signature-api.d.ts +6 -6
  19. package/dist/api/digital-signature-public-api.d.ts +5 -5
  20. package/dist/api/document-controller-api.d.ts +15 -15
  21. package/dist/api/document-suggestion-controller-api.d.ts +1 -1
  22. package/dist/api/document-version-controller-api.d.ts +3 -3
  23. package/dist/api/favorites-api.d.ts +4 -4
  24. package/dist/api/file-controller-api.d.ts +4 -4
  25. package/dist/api/folder-controller-api.d.ts +7 -7
  26. package/dist/api/notifications-api.d.ts +5 -5
  27. package/dist/api/scan-agent-api.d.ts +2 -2
  28. package/dist/api/scanner-proxy-api.d.ts +5 -5
  29. package/dist/api/search-administration-api.d.ts +4 -4
  30. package/dist/api/settings-api.d.ts +2 -2
  31. package/dist/api/tus-controller-api.d.ts +9 -9
  32. package/dist/api/upload-token-controller-api.d.ts +2 -2
  33. package/dist/api/user-privacy-api.d.ts +2 -2
  34. package/dist/api/webhook-proxy-controller-api.d.ts +7 -7
  35. package/dist/api.d.ts +2 -0
  36. package/dist/api.js +2 -0
  37. package/dist/esm/api/aichat-api.d.ts +161 -0
  38. package/dist/esm/api/aichat-api.js +325 -0
  39. package/dist/esm/api/aisettings-api.d.ts +191 -0
  40. package/dist/esm/api/aisettings-api.js +389 -0
  41. package/dist/esm/api/collaboration-audit-controller-api.d.ts +3 -3
  42. package/dist/esm/api/collaboration-controller-api.d.ts +15 -15
  43. package/dist/esm/api/comments-api.d.ts +3 -3
  44. package/dist/esm/api/dashboard-api.d.ts +1 -1
  45. package/dist/esm/api/delegated-browse-grants-admin-api.d.ts +5 -5
  46. package/dist/esm/api/delegated-browse-grants-end-user-api.d.ts +5 -5
  47. package/dist/esm/api/digital-signature-api.d.ts +6 -6
  48. package/dist/esm/api/digital-signature-public-api.d.ts +5 -5
  49. package/dist/esm/api/document-controller-api.d.ts +15 -15
  50. package/dist/esm/api/document-suggestion-controller-api.d.ts +1 -1
  51. package/dist/esm/api/document-version-controller-api.d.ts +3 -3
  52. package/dist/esm/api/favorites-api.d.ts +4 -4
  53. package/dist/esm/api/file-controller-api.d.ts +4 -4
  54. package/dist/esm/api/folder-controller-api.d.ts +7 -7
  55. package/dist/esm/api/notifications-api.d.ts +5 -5
  56. package/dist/esm/api/scan-agent-api.d.ts +2 -2
  57. package/dist/esm/api/scanner-proxy-api.d.ts +5 -5
  58. package/dist/esm/api/search-administration-api.d.ts +4 -4
  59. package/dist/esm/api/settings-api.d.ts +2 -2
  60. package/dist/esm/api/tus-controller-api.d.ts +9 -9
  61. package/dist/esm/api/upload-token-controller-api.d.ts +2 -2
  62. package/dist/esm/api/user-privacy-api.d.ts +2 -2
  63. package/dist/esm/api/webhook-proxy-controller-api.d.ts +7 -7
  64. package/dist/esm/api.d.ts +2 -0
  65. package/dist/esm/api.js +2 -0
  66. package/dist/esm/models/ai-chat-conversation.d.ts +18 -0
  67. package/dist/esm/models/ai-chat-conversation.js +14 -0
  68. package/dist/esm/models/ai-chat-request.d.ts +15 -0
  69. package/dist/esm/models/ai-chat-request.js +14 -0
  70. package/dist/esm/models/ai-chat-response.d.ts +23 -0
  71. package/dist/esm/models/ai-chat-response.js +18 -0
  72. package/dist/esm/models/ai-connection-test-result.d.ts +16 -0
  73. package/dist/esm/models/ai-connection-test-result.js +14 -0
  74. package/dist/esm/models/ai-models-response.d.ts +41 -0
  75. package/dist/esm/models/ai-models-response.js +23 -0
  76. package/dist/esm/models/ai-settings-response.d.ts +21 -0
  77. package/dist/esm/models/ai-settings-response.js +14 -0
  78. package/dist/esm/models/index.d.ts +8 -0
  79. package/dist/esm/models/index.js +8 -0
  80. package/dist/esm/models/list-ai-models-request.d.ts +32 -0
  81. package/dist/esm/models/list-ai-models-request.js +19 -0
  82. package/dist/esm/models/save-ai-settings-request.d.ts +36 -0
  83. package/dist/esm/models/save-ai-settings-request.js +19 -0
  84. package/dist/esm/models/settings.d.ts +2 -0
  85. package/dist/models/ai-chat-conversation.d.ts +18 -0
  86. package/dist/models/ai-chat-conversation.js +15 -0
  87. package/dist/models/ai-chat-request.d.ts +15 -0
  88. package/dist/models/ai-chat-request.js +15 -0
  89. package/dist/models/ai-chat-response.d.ts +23 -0
  90. package/dist/models/ai-chat-response.js +21 -0
  91. package/dist/models/ai-connection-test-result.d.ts +16 -0
  92. package/dist/models/ai-connection-test-result.js +15 -0
  93. package/dist/models/ai-models-response.d.ts +41 -0
  94. package/dist/models/ai-models-response.js +26 -0
  95. package/dist/models/ai-settings-response.d.ts +21 -0
  96. package/dist/models/ai-settings-response.js +15 -0
  97. package/dist/models/index.d.ts +8 -0
  98. package/dist/models/index.js +8 -0
  99. package/dist/models/list-ai-models-request.d.ts +32 -0
  100. package/dist/models/list-ai-models-request.js +22 -0
  101. package/dist/models/save-ai-settings-request.d.ts +36 -0
  102. package/dist/models/save-ai-settings-request.js +22 -0
  103. package/dist/models/settings.d.ts +2 -0
  104. package/docs/AIChatApi.md +209 -0
  105. package/docs/AISettingsApi.md +256 -0
  106. package/docs/AiChatConversation.md +28 -0
  107. package/docs/AiChatRequest.md +22 -0
  108. package/docs/AiChatResponse.md +26 -0
  109. package/docs/AiConnectionTestResult.md +24 -0
  110. package/docs/AiModelsResponse.md +26 -0
  111. package/docs/AiSettingsResponse.md +34 -0
  112. package/docs/ListAiModelsRequest.md +24 -0
  113. package/docs/SaveAiSettingsRequest.md +26 -0
  114. package/docs/Settings.md +4 -0
  115. package/models/ai-chat-conversation.ts +24 -0
  116. package/models/ai-chat-request.ts +21 -0
  117. package/models/ai-chat-response.ts +32 -0
  118. package/models/ai-connection-test-result.ts +22 -0
  119. package/models/ai-models-response.ts +51 -0
  120. package/models/ai-settings-response.ts +27 -0
  121. package/models/index.ts +8 -0
  122. package/models/list-ai-models-request.ts +41 -0
  123. package/models/save-ai-settings-request.ts +45 -0
  124. package/models/settings.ts +2 -0
  125. 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,191 @@
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 { AiModelsResponse } from '../models';
17
+ import type { AiSettingsResponse } from '../models';
18
+ import type { ListAiModelsRequest } from '../models';
19
+ import type { SaveAiSettingsRequest } from '../models';
20
+ /**
21
+ * AISettingsApi - axios parameter creator
22
+ */
23
+ export declare const AISettingsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * Remove my chat-LLM override and go back to the server default model.
26
+ * @summary Reset my AI settings
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ deleteSettings: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters.
33
+ * @summary Get my AI settings
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ getSettings1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ * Ask the provider which chat models this key can use, so the picker reflects what exists today rather than a list baked into a release. Falls back to a built-in list (source=FALLBACK) when the provider cannot be reached. POST rather than GET because the key travels in the body, never in a query string; omit apiKey to use the stored key.
40
+ * @summary List the provider\'s chat models
41
+ * @param {ListAiModelsRequest} listAiModelsRequest
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ listModels: (listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
46
+ /**
47
+ * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
48
+ * @summary Save my AI settings
49
+ * @param {SaveAiSettingsRequest} saveAiSettingsRequest
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ saveSettings1: (saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
54
+ /**
55
+ * Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted).
56
+ * @summary Test AI provider connection
57
+ * @param {SaveAiSettingsRequest} saveAiSettingsRequest
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ testConnection: (saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
62
+ };
63
+ /**
64
+ * AISettingsApi - functional programming interface
65
+ */
66
+ export declare const AISettingsApiFp: (configuration?: Configuration) => {
67
+ /**
68
+ * Remove my chat-LLM override and go back to the server default model.
69
+ * @summary Reset my AI settings
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ deleteSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
74
+ /**
75
+ * Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters.
76
+ * @summary Get my AI settings
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ getSettings1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiSettingsResponse>>;
81
+ /**
82
+ * Ask the provider which chat models this key can use, so the picker reflects what exists today rather than a list baked into a release. Falls back to a built-in list (source=FALLBACK) when the provider cannot be reached. POST rather than GET because the key travels in the body, never in a query string; omit apiKey to use the stored key.
83
+ * @summary List the provider\'s chat models
84
+ * @param {ListAiModelsRequest} listAiModelsRequest
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ listModels(listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiModelsResponse>>;
89
+ /**
90
+ * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
91
+ * @summary Save my AI settings
92
+ * @param {SaveAiSettingsRequest} saveAiSettingsRequest
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ saveSettings1(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiSettingsResponse>>;
97
+ /**
98
+ * Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted).
99
+ * @summary Test AI provider connection
100
+ * @param {SaveAiSettingsRequest} saveAiSettingsRequest
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ testConnection(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiConnectionTestResult>>;
105
+ };
106
+ /**
107
+ * AISettingsApi - factory interface
108
+ */
109
+ export declare const AISettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
110
+ /**
111
+ * Remove my chat-LLM override and go back to the server default model.
112
+ * @summary Reset my AI settings
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ deleteSettings(options?: RawAxiosRequestConfig): AxiosPromise<void>;
117
+ /**
118
+ * Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters.
119
+ * @summary Get my AI settings
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ getSettings1(options?: RawAxiosRequestConfig): AxiosPromise<AiSettingsResponse>;
124
+ /**
125
+ * Ask the provider which chat models this key can use, so the picker reflects what exists today rather than a list baked into a release. Falls back to a built-in list (source=FALLBACK) when the provider cannot be reached. POST rather than GET because the key travels in the body, never in a query string; omit apiKey to use the stored key.
126
+ * @summary List the provider\'s chat models
127
+ * @param {ListAiModelsRequest} listAiModelsRequest
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ listModels(listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiModelsResponse>;
132
+ /**
133
+ * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
134
+ * @summary Save my AI settings
135
+ * @param {SaveAiSettingsRequest} saveAiSettingsRequest
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ saveSettings1(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiSettingsResponse>;
140
+ /**
141
+ * Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted).
142
+ * @summary Test AI provider connection
143
+ * @param {SaveAiSettingsRequest} saveAiSettingsRequest
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ testConnection(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiConnectionTestResult>;
148
+ };
149
+ /**
150
+ * AISettingsApi - object-oriented interface
151
+ */
152
+ export declare class AISettingsApi extends BaseAPI {
153
+ /**
154
+ * Remove my chat-LLM override and go back to the server default model.
155
+ * @summary Reset my AI settings
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ deleteSettings(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
160
+ /**
161
+ * Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters.
162
+ * @summary Get my AI settings
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ getSettings1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiSettingsResponse, any, {}, any>>;
167
+ /**
168
+ * Ask the provider which chat models this key can use, so the picker reflects what exists today rather than a list baked into a release. Falls back to a built-in list (source=FALLBACK) when the provider cannot be reached. POST rather than GET because the key travels in the body, never in a query string; omit apiKey to use the stored key.
169
+ * @summary List the provider\'s chat models
170
+ * @param {ListAiModelsRequest} listAiModelsRequest
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ listModels(listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiModelsResponse, any, {}, any>>;
175
+ /**
176
+ * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
177
+ * @summary Save my AI settings
178
+ * @param {SaveAiSettingsRequest} saveAiSettingsRequest
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ saveSettings1(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiSettingsResponse, any, {}, any>>;
183
+ /**
184
+ * Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted).
185
+ * @summary Test AI provider connection
186
+ * @param {SaveAiSettingsRequest} saveAiSettingsRequest
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ testConnection(saveAiSettingsRequest: SaveAiSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiConnectionTestResult, any, {}, any>>;
191
+ }