@openfilz-sdk/typescript-ee 1.7.4 → 1.8.0

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 (113) hide show
  1. package/.openapi-generator/FILES +16 -1
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +16 -2
  4. package/api/aichat-api.ts +341 -0
  5. package/api/aisettings-api.ts +335 -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 +157 -0
  11. package/dist/api/aisettings-api.js +326 -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 +157 -0
  40. package/dist/esm/api/aisettings-api.js +319 -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-settings-response.d.ts +21 -0
  75. package/dist/esm/models/ai-settings-response.js +14 -0
  76. package/dist/esm/models/index.d.ts +6 -0
  77. package/dist/esm/models/index.js +6 -0
  78. package/dist/esm/models/save-ai-settings-request.d.ts +36 -0
  79. package/dist/esm/models/save-ai-settings-request.js +19 -0
  80. package/dist/esm/models/settings.d.ts +2 -0
  81. package/dist/models/ai-chat-conversation.d.ts +18 -0
  82. package/dist/models/ai-chat-conversation.js +15 -0
  83. package/dist/models/ai-chat-request.d.ts +15 -0
  84. package/dist/models/ai-chat-request.js +15 -0
  85. package/dist/models/ai-chat-response.d.ts +23 -0
  86. package/dist/models/ai-chat-response.js +21 -0
  87. package/dist/models/ai-connection-test-result.d.ts +16 -0
  88. package/dist/models/ai-connection-test-result.js +15 -0
  89. package/dist/models/ai-settings-response.d.ts +21 -0
  90. package/dist/models/ai-settings-response.js +15 -0
  91. package/dist/models/index.d.ts +6 -0
  92. package/dist/models/index.js +6 -0
  93. package/dist/models/save-ai-settings-request.d.ts +36 -0
  94. package/dist/models/save-ai-settings-request.js +22 -0
  95. package/dist/models/settings.d.ts +2 -0
  96. package/docs/AIChatApi.md +209 -0
  97. package/docs/AISettingsApi.md +203 -0
  98. package/docs/AiChatConversation.md +28 -0
  99. package/docs/AiChatRequest.md +22 -0
  100. package/docs/AiChatResponse.md +26 -0
  101. package/docs/AiConnectionTestResult.md +24 -0
  102. package/docs/AiSettingsResponse.md +34 -0
  103. package/docs/SaveAiSettingsRequest.md +26 -0
  104. package/docs/Settings.md +4 -0
  105. package/models/ai-chat-conversation.ts +24 -0
  106. package/models/ai-chat-request.ts +21 -0
  107. package/models/ai-chat-response.ts +32 -0
  108. package/models/ai-connection-test-result.ts +22 -0
  109. package/models/ai-settings-response.ts +27 -0
  110. package/models/index.ts +6 -0
  111. package/models/save-ai-settings-request.ts +45 -0
  112. package/models/settings.ts +2 -0
  113. package/package.json +1 -1
@@ -84,7 +84,7 @@ export declare class UserPrivacyApi extends BaseAPI {
84
84
  * @param {*} [options] Override http request option.
85
85
  * @throws {RequiredError}
86
86
  */
87
- get(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPrivacyDTO, any, {}>>;
87
+ get(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPrivacyDTO, any, {}, any>>;
88
88
  /**
89
89
  * Idempotent. Audits ADMIN_MONITORING_OPT_OUT_CHANGED only when the value actually changes — repeated PUTs with the same flag are silent.
90
90
  * @summary Update my privacy preferences
@@ -92,5 +92,5 @@ export declare class UserPrivacyApi extends BaseAPI {
92
92
  * @param {*} [options] Override http request option.
93
93
  * @throws {RequiredError}
94
94
  */
95
- update(updateUserPrivacyRequest: UpdateUserPrivacyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPrivacyDTO, any, {}>>;
95
+ update(updateUserPrivacyRequest: UpdateUserPrivacyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPrivacyDTO, any, {}, any>>;
96
96
  }
@@ -184,47 +184,47 @@ export declare class WebhookProxyControllerApi extends BaseAPI {
184
184
  * @param {*} [options] Override http request option.
185
185
  * @throws {RequiredError}
186
186
  */
187
- proxy(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
187
+ proxy(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
188
188
  /**
189
189
  *
190
190
  * @param {string} [body]
191
191
  * @param {*} [options] Override http request option.
192
192
  * @throws {RequiredError}
193
193
  */
194
- proxy1(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
194
+ proxy1(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
195
195
  /**
196
196
  *
197
197
  * @param {string} [body]
198
198
  * @param {*} [options] Override http request option.
199
199
  * @throws {RequiredError}
200
200
  */
201
- proxy2(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
201
+ proxy2(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
202
202
  /**
203
203
  *
204
204
  * @param {string} [body]
205
205
  * @param {*} [options] Override http request option.
206
206
  * @throws {RequiredError}
207
207
  */
208
- proxy3(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
208
+ proxy3(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
209
209
  /**
210
210
  *
211
211
  * @param {string} [body]
212
212
  * @param {*} [options] Override http request option.
213
213
  * @throws {RequiredError}
214
214
  */
215
- proxy4(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
215
+ proxy4(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
216
216
  /**
217
217
  *
218
218
  * @param {string} [body]
219
219
  * @param {*} [options] Override http request option.
220
220
  * @throws {RequiredError}
221
221
  */
222
- proxy5(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
222
+ proxy5(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
223
223
  /**
224
224
  *
225
225
  * @param {string} [body]
226
226
  * @param {*} [options] Override http request option.
227
227
  * @throws {RequiredError}
228
228
  */
229
- proxy6(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
229
+ proxy6(body?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
230
230
  }
package/dist/api.d.ts CHANGED
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/aichat-api';
13
+ export * from './api/aisettings-api';
12
14
  export * from './api/collaboration-audit-controller-api';
13
15
  export * from './api/collaboration-controller-api';
14
16
  export * from './api/comments-api';
package/dist/api.js CHANGED
@@ -27,6 +27,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/aichat-api"), exports);
31
+ __exportStar(require("./api/aisettings-api"), exports);
30
32
  __exportStar(require("./api/collaboration-audit-controller-api"), exports);
31
33
  __exportStar(require("./api/collaboration-controller-api"), exports);
32
34
  __exportStar(require("./api/comments-api"), exports);
@@ -0,0 +1,161 @@
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 { AiChatConversation } from '../models';
16
+ import type { AiChatRequest } from '../models';
17
+ import type { AiChatResponse } from '../models';
18
+ /**
19
+ * AIChatApi - axios parameter creator
20
+ */
21
+ export declare const AIChatApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
24
+ * @summary Chat with AI assistant
25
+ * @param {AiChatRequest} aiChatRequest
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ chat: (aiChatRequest: AiChatRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30
+ /**
31
+ * Delete a conversation and all its messages
32
+ * @summary Delete conversation
33
+ * @param {string} conversationId
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ deleteConversation: (conversationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
+ /**
39
+ * Get all messages in a conversation
40
+ * @summary Get conversation history
41
+ * @param {string} conversationId
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getConversationHistory: (conversationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
46
+ /**
47
+ * Get all AI chat conversations for the current user
48
+ * @summary List conversations
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ listConversations: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
+ };
54
+ /**
55
+ * AIChatApi - functional programming interface
56
+ */
57
+ export declare const AIChatApiFp: (configuration?: Configuration) => {
58
+ /**
59
+ * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
60
+ * @summary Chat with AI assistant
61
+ * @param {AiChatRequest} aiChatRequest
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ chat(aiChatRequest: AiChatRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AiChatResponse>>>;
66
+ /**
67
+ * Delete a conversation and all its messages
68
+ * @summary Delete conversation
69
+ * @param {string} conversationId
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ deleteConversation(conversationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
74
+ /**
75
+ * Get all messages in a conversation
76
+ * @summary Get conversation history
77
+ * @param {string} conversationId
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ getConversationHistory(conversationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AiChatResponse>>>;
82
+ /**
83
+ * Get all AI chat conversations for the current user
84
+ * @summary List conversations
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ listConversations(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AiChatConversation>>>;
89
+ };
90
+ /**
91
+ * AIChatApi - factory interface
92
+ */
93
+ export declare const AIChatApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
94
+ /**
95
+ * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
96
+ * @summary Chat with AI assistant
97
+ * @param {AiChatRequest} aiChatRequest
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ chat(aiChatRequest: AiChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AiChatResponse>>;
102
+ /**
103
+ * Delete a conversation and all its messages
104
+ * @summary Delete conversation
105
+ * @param {string} conversationId
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ deleteConversation(conversationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
110
+ /**
111
+ * Get all messages in a conversation
112
+ * @summary Get conversation history
113
+ * @param {string} conversationId
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ getConversationHistory(conversationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AiChatResponse>>;
118
+ /**
119
+ * Get all AI chat conversations for the current user
120
+ * @summary List conversations
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ listConversations(options?: RawAxiosRequestConfig): AxiosPromise<Array<AiChatConversation>>;
125
+ };
126
+ /**
127
+ * AIChatApi - object-oriented interface
128
+ */
129
+ export declare class AIChatApi extends BaseAPI {
130
+ /**
131
+ * Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
132
+ * @summary Chat with AI assistant
133
+ * @param {AiChatRequest} aiChatRequest
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ chat(aiChatRequest: AiChatRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiChatResponse[], any, {}, any>>;
138
+ /**
139
+ * Delete a conversation and all its messages
140
+ * @summary Delete conversation
141
+ * @param {string} conversationId
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ deleteConversation(conversationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
146
+ /**
147
+ * Get all messages in a conversation
148
+ * @summary Get conversation history
149
+ * @param {string} conversationId
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ getConversationHistory(conversationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiChatResponse[], any, {}, any>>;
154
+ /**
155
+ * Get all AI chat conversations for the current user
156
+ * @summary List conversations
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ listConversations(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiChatConversation[], any, {}, any>>;
161
+ }
@@ -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
+ }