@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,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,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
+ }