@openfilz-sdk/typescript 1.2.25 → 1.2.26

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.
@@ -24,6 +24,7 @@ docs/AiChatConversation.md
24
24
  docs/AiChatRequest.md
25
25
  docs/AiChatResponse.md
26
26
  docs/AiConnectionTestResult.md
27
+ docs/AiModelsResponse.md
27
28
  docs/AiSettingsResponse.md
28
29
  docs/AncestorInfo.md
29
30
  docs/AuditControllerApi.md
@@ -58,6 +59,7 @@ docs/FilterInput.md
58
59
  docs/FolderControllerApi.md
59
60
  docs/FolderElementInfo.md
60
61
  docs/FolderResponse.md
62
+ docs/ListAiModelsRequest.md
61
63
  docs/MoveAudit.md
62
64
  docs/MoveRequest.md
63
65
  docs/RenameAudit.md
@@ -88,6 +90,7 @@ models/ai-chat-conversation.ts
88
90
  models/ai-chat-request.ts
89
91
  models/ai-chat-response.ts
90
92
  models/ai-connection-test-result.ts
93
+ models/ai-models-response.ts
91
94
  models/ai-settings-response.ts
92
95
  models/ancestor-info.ts
93
96
  models/audit-log-details-one-of.ts
@@ -115,6 +118,7 @@ models/filter-input.ts
115
118
  models/folder-element-info.ts
116
119
  models/folder-response.ts
117
120
  models/index.ts
121
+ models/list-ai-models-request.ts
118
122
  models/move-audit.ts
119
123
  models/move-request.ts
120
124
  models/rename-audit.ts
@@ -1 +1 @@
1
- 16767acdf52f83d8d9be2f184bb1d2b871ceda1708440ebb01f7cd0aeb259968
1
+ 09d42a7dfa720ba7939f38c0eaa1061637c31aac6f31b2c577d909d202036ea1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @openfilz-sdk/typescript@1.2.25
1
+ ## @openfilz-sdk/typescript@1.2.26
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @openfilz-sdk/typescript@1.2.25 --save
39
+ npm install @openfilz-sdk/typescript@1.2.26 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -57,6 +57,7 @@ Class | Method | HTTP request | Description
57
57
  *AIChatApi* | [**listConversations**](docs/AIChatApi.md#listconversations) | **GET** /api/v1/ai/conversations | List conversations
58
58
  *AISettingsApi* | [**deleteSettings**](docs/AISettingsApi.md#deletesettings) | **DELETE** /api/v1/settings/ai | Reset my AI settings
59
59
  *AISettingsApi* | [**getSettings**](docs/AISettingsApi.md#getsettings) | **GET** /api/v1/settings/ai | Get my AI settings
60
+ *AISettingsApi* | [**listModels**](docs/AISettingsApi.md#listmodels) | **POST** /api/v1/settings/ai/models | List the provider\'s chat models
60
61
  *AISettingsApi* | [**saveSettings**](docs/AISettingsApi.md#savesettings) | **PUT** /api/v1/settings/ai | Save my AI settings
61
62
  *AISettingsApi* | [**testConnection**](docs/AISettingsApi.md#testconnection) | **POST** /api/v1/settings/ai/test | Test AI provider connection
62
63
  *AuditControllerApi* | [**getAuditTrail**](docs/AuditControllerApi.md#getaudittrail) | **GET** /api/v1/audit/{id} | Get audit trail for a resource
@@ -115,6 +116,7 @@ Class | Method | HTTP request | Description
115
116
  - [AiChatRequest](docs/AiChatRequest.md)
116
117
  - [AiChatResponse](docs/AiChatResponse.md)
117
118
  - [AiConnectionTestResult](docs/AiConnectionTestResult.md)
119
+ - [AiModelsResponse](docs/AiModelsResponse.md)
118
120
  - [AiSettingsResponse](docs/AiSettingsResponse.md)
119
121
  - [AncestorInfo](docs/AncestorInfo.md)
120
122
  - [AuditLog](docs/AuditLog.md)
@@ -141,6 +143,7 @@ Class | Method | HTTP request | Description
141
143
  - [FilterInput](docs/FilterInput.md)
142
144
  - [FolderElementInfo](docs/FolderElementInfo.md)
143
145
  - [FolderResponse](docs/FolderResponse.md)
146
+ - [ListAiModelsRequest](docs/ListAiModelsRequest.md)
144
147
  - [MoveAudit](docs/MoveAudit.md)
145
148
  - [MoveRequest](docs/MoveRequest.md)
146
149
  - [RenameAudit](docs/RenameAudit.md)
@@ -24,8 +24,12 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
24
24
  // @ts-ignore
25
25
  import type { AiConnectionTestResult } from '../models';
26
26
  // @ts-ignore
27
+ import type { AiModelsResponse } from '../models';
28
+ // @ts-ignore
27
29
  import type { AiSettingsResponse } from '../models';
28
30
  // @ts-ignore
31
+ import type { ListAiModelsRequest } from '../models';
32
+ // @ts-ignore
29
33
  import type { SaveAiSettingsRequest } from '../models';
30
34
  /**
31
35
  * AISettingsApi - axios parameter creator
@@ -99,6 +103,45 @@ export const AISettingsApiAxiosParamCreator = function (configuration?: Configur
99
103
  options: localVarRequestOptions,
100
104
  };
101
105
  },
106
+ /**
107
+ * 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.
108
+ * @summary List the provider\'s chat models
109
+ * @param {ListAiModelsRequest} listAiModelsRequest
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ listModels: async (listAiModelsRequest: ListAiModelsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
114
+ // verify required parameter 'listAiModelsRequest' is not null or undefined
115
+ assertParamExists('listModels', 'listAiModelsRequest', listAiModelsRequest)
116
+ const localVarPath = `/api/v1/settings/ai/models`;
117
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
119
+ let baseOptions;
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ }
123
+
124
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
125
+ const localVarHeaderParameter = {} as any;
126
+ const localVarQueryParameter = {} as any;
127
+
128
+ // authentication keycloak_auth required
129
+ // http bearer authentication required
130
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
131
+
132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
133
+ localVarHeaderParameter['Accept'] = 'application/json';
134
+
135
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
138
+ localVarRequestOptions.data = serializeDataIfNeeded(listAiModelsRequest, localVarRequestOptions, configuration)
139
+
140
+ return {
141
+ url: toPathString(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ };
144
+ },
102
145
  /**
103
146
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
104
147
  * @summary Save my AI settings
@@ -210,6 +253,19 @@ export const AISettingsApiFp = function(configuration?: Configuration) {
210
253
  const localVarOperationServerBasePath = operationServerMap['AISettingsApi.getSettings']?.[localVarOperationServerIndex]?.url;
211
254
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
212
255
  },
256
+ /**
257
+ * 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.
258
+ * @summary List the provider\'s chat models
259
+ * @param {ListAiModelsRequest} listAiModelsRequest
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ async listModels(listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiModelsResponse>> {
264
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listModels(listAiModelsRequest, options);
265
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
266
+ const localVarOperationServerBasePath = operationServerMap['AISettingsApi.listModels']?.[localVarOperationServerIndex]?.url;
267
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
268
+ },
213
269
  /**
214
270
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
215
271
  * @summary Save my AI settings
@@ -263,6 +319,16 @@ export const AISettingsApiFactory = function (configuration?: Configuration, bas
263
319
  getSettings(options?: RawAxiosRequestConfig): AxiosPromise<AiSettingsResponse> {
264
320
  return localVarFp.getSettings(options).then((request) => request(axios, basePath));
265
321
  },
322
+ /**
323
+ * 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.
324
+ * @summary List the provider\'s chat models
325
+ * @param {ListAiModelsRequest} listAiModelsRequest
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ listModels(listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiModelsResponse> {
330
+ return localVarFp.listModels(listAiModelsRequest, options).then((request) => request(axios, basePath));
331
+ },
266
332
  /**
267
333
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
268
334
  * @summary Save my AI settings
@@ -310,6 +376,17 @@ export class AISettingsApi extends BaseAPI {
310
376
  return AISettingsApiFp(this.configuration).getSettings(options).then((request) => request(this.axios, this.basePath));
311
377
  }
312
378
 
379
+ /**
380
+ * 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.
381
+ * @summary List the provider\'s chat models
382
+ * @param {ListAiModelsRequest} listAiModelsRequest
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ public listModels(listAiModelsRequest: ListAiModelsRequest, options?: RawAxiosRequestConfig) {
387
+ return AISettingsApiFp(this.configuration).listModels(listAiModelsRequest, options).then((request) => request(this.axios, this.basePath));
388
+ }
389
+
313
390
  /**
314
391
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
315
392
  * @summary Save my AI settings
@@ -13,7 +13,9 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { AiConnectionTestResult } from '../models';
16
+ import type { AiModelsResponse } from '../models';
16
17
  import type { AiSettingsResponse } from '../models';
18
+ import type { ListAiModelsRequest } from '../models';
17
19
  import type { SaveAiSettingsRequest } from '../models';
18
20
  /**
19
21
  * AISettingsApi - axios parameter creator
@@ -33,6 +35,14 @@ export declare const AISettingsApiAxiosParamCreator: (configuration?: Configurat
33
35
  * @throws {RequiredError}
34
36
  */
35
37
  getSettings: (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>;
36
46
  /**
37
47
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
38
48
  * @summary Save my AI settings
@@ -68,6 +78,14 @@ export declare const AISettingsApiFp: (configuration?: Configuration) => {
68
78
  * @throws {RequiredError}
69
79
  */
70
80
  getSettings(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>>;
71
89
  /**
72
90
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
73
91
  * @summary Save my AI settings
@@ -103,6 +121,14 @@ export declare const AISettingsApiFactory: (configuration?: Configuration, baseP
103
121
  * @throws {RequiredError}
104
122
  */
105
123
  getSettings(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>;
106
132
  /**
107
133
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
108
134
  * @summary Save my AI settings
@@ -138,6 +164,14 @@ export declare class AISettingsApi extends BaseAPI {
138
164
  * @throws {RequiredError}
139
165
  */
140
166
  getSettings(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiSettingsResponse, 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, {}>>;
141
175
  /**
142
176
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
143
177
  * @summary Save my AI settings
@@ -91,6 +91,40 @@ const AISettingsApiAxiosParamCreator = function (configuration) {
91
91
  options: localVarRequestOptions,
92
92
  };
93
93
  }),
94
+ /**
95
+ * 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.
96
+ * @summary List the provider\'s chat models
97
+ * @param {ListAiModelsRequest} listAiModelsRequest
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ listModels: (listAiModelsRequest_1, ...args_1) => __awaiter(this, [listAiModelsRequest_1, ...args_1], void 0, function* (listAiModelsRequest, options = {}) {
102
+ // verify required parameter 'listAiModelsRequest' is not null or undefined
103
+ (0, common_1.assertParamExists)('listModels', 'listAiModelsRequest', listAiModelsRequest);
104
+ const localVarPath = `/api/v1/settings/ai/models`;
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ }
111
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
112
+ const localVarHeaderParameter = {};
113
+ const localVarQueryParameter = {};
114
+ // authentication keycloak_auth required
115
+ // http bearer authentication required
116
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
117
+ localVarHeaderParameter['Content-Type'] = 'application/json';
118
+ localVarHeaderParameter['Accept'] = 'application/json';
119
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
120
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
122
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(listAiModelsRequest, localVarRequestOptions, configuration);
123
+ return {
124
+ url: (0, common_1.toPathString)(localVarUrlObj),
125
+ options: localVarRequestOptions,
126
+ };
127
+ }),
94
128
  /**
95
129
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
96
130
  * @summary Save my AI settings
@@ -198,6 +232,22 @@ const AISettingsApiFp = function (configuration) {
198
232
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
199
233
  });
200
234
  },
235
+ /**
236
+ * 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.
237
+ * @summary List the provider\'s chat models
238
+ * @param {ListAiModelsRequest} listAiModelsRequest
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ listModels(listAiModelsRequest, options) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ var _a, _b, _c;
245
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listModels(listAiModelsRequest, options);
246
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
247
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISettingsApi.listModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
248
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
249
+ });
250
+ },
201
251
  /**
202
252
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
203
253
  * @summary Save my AI settings
@@ -257,6 +307,16 @@ const AISettingsApiFactory = function (configuration, basePath, axios) {
257
307
  getSettings(options) {
258
308
  return localVarFp.getSettings(options).then((request) => request(axios, basePath));
259
309
  },
310
+ /**
311
+ * 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.
312
+ * @summary List the provider\'s chat models
313
+ * @param {ListAiModelsRequest} listAiModelsRequest
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ */
317
+ listModels(listAiModelsRequest, options) {
318
+ return localVarFp.listModels(listAiModelsRequest, options).then((request) => request(axios, basePath));
319
+ },
260
320
  /**
261
321
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
262
322
  * @summary Save my AI settings
@@ -302,6 +362,16 @@ class AISettingsApi extends base_1.BaseAPI {
302
362
  getSettings(options) {
303
363
  return (0, exports.AISettingsApiFp)(this.configuration).getSettings(options).then((request) => request(this.axios, this.basePath));
304
364
  }
365
+ /**
366
+ * 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.
367
+ * @summary List the provider\'s chat models
368
+ * @param {ListAiModelsRequest} listAiModelsRequest
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ listModels(listAiModelsRequest, options) {
373
+ return (0, exports.AISettingsApiFp)(this.configuration).listModels(listAiModelsRequest, options).then((request) => request(this.axios, this.basePath));
374
+ }
305
375
  /**
306
376
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
307
377
  * @summary Save my AI settings
@@ -13,7 +13,9 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { AiConnectionTestResult } from '../models';
16
+ import type { AiModelsResponse } from '../models';
16
17
  import type { AiSettingsResponse } from '../models';
18
+ import type { ListAiModelsRequest } from '../models';
17
19
  import type { SaveAiSettingsRequest } from '../models';
18
20
  /**
19
21
  * AISettingsApi - axios parameter creator
@@ -33,6 +35,14 @@ export declare const AISettingsApiAxiosParamCreator: (configuration?: Configurat
33
35
  * @throws {RequiredError}
34
36
  */
35
37
  getSettings: (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>;
36
46
  /**
37
47
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
38
48
  * @summary Save my AI settings
@@ -68,6 +78,14 @@ export declare const AISettingsApiFp: (configuration?: Configuration) => {
68
78
  * @throws {RequiredError}
69
79
  */
70
80
  getSettings(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>>;
71
89
  /**
72
90
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
73
91
  * @summary Save my AI settings
@@ -103,6 +121,14 @@ export declare const AISettingsApiFactory: (configuration?: Configuration, baseP
103
121
  * @throws {RequiredError}
104
122
  */
105
123
  getSettings(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>;
106
132
  /**
107
133
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
108
134
  * @summary Save my AI settings
@@ -138,6 +164,14 @@ export declare class AISettingsApi extends BaseAPI {
138
164
  * @throws {RequiredError}
139
165
  */
140
166
  getSettings(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiSettingsResponse, 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, {}>>;
141
175
  /**
142
176
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
143
177
  * @summary Save my AI settings
@@ -88,6 +88,40 @@ export const AISettingsApiAxiosParamCreator = function (configuration) {
88
88
  options: localVarRequestOptions,
89
89
  };
90
90
  }),
91
+ /**
92
+ * 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.
93
+ * @summary List the provider\'s chat models
94
+ * @param {ListAiModelsRequest} listAiModelsRequest
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ listModels: (listAiModelsRequest_1, ...args_1) => __awaiter(this, [listAiModelsRequest_1, ...args_1], void 0, function* (listAiModelsRequest, options = {}) {
99
+ // verify required parameter 'listAiModelsRequest' is not null or undefined
100
+ assertParamExists('listModels', 'listAiModelsRequest', listAiModelsRequest);
101
+ const localVarPath = `/api/v1/settings/ai/models`;
102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ }
108
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
109
+ const localVarHeaderParameter = {};
110
+ const localVarQueryParameter = {};
111
+ // authentication keycloak_auth required
112
+ // http bearer authentication required
113
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
114
+ localVarHeaderParameter['Content-Type'] = 'application/json';
115
+ localVarHeaderParameter['Accept'] = 'application/json';
116
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
119
+ localVarRequestOptions.data = serializeDataIfNeeded(listAiModelsRequest, localVarRequestOptions, configuration);
120
+ return {
121
+ url: toPathString(localVarUrlObj),
122
+ options: localVarRequestOptions,
123
+ };
124
+ }),
91
125
  /**
92
126
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
93
127
  * @summary Save my AI settings
@@ -194,6 +228,22 @@ export const AISettingsApiFp = function (configuration) {
194
228
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
195
229
  });
196
230
  },
231
+ /**
232
+ * 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.
233
+ * @summary List the provider\'s chat models
234
+ * @param {ListAiModelsRequest} listAiModelsRequest
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ listModels(listAiModelsRequest, options) {
239
+ return __awaiter(this, void 0, void 0, function* () {
240
+ var _a, _b, _c;
241
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listModels(listAiModelsRequest, options);
242
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
243
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISettingsApi.listModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
244
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
245
+ });
246
+ },
197
247
  /**
198
248
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
199
249
  * @summary Save my AI settings
@@ -252,6 +302,16 @@ export const AISettingsApiFactory = function (configuration, basePath, axios) {
252
302
  getSettings(options) {
253
303
  return localVarFp.getSettings(options).then((request) => request(axios, basePath));
254
304
  },
305
+ /**
306
+ * 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.
307
+ * @summary List the provider\'s chat models
308
+ * @param {ListAiModelsRequest} listAiModelsRequest
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ listModels(listAiModelsRequest, options) {
313
+ return localVarFp.listModels(listAiModelsRequest, options).then((request) => request(axios, basePath));
314
+ },
255
315
  /**
256
316
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
257
317
  * @summary Save my AI settings
@@ -296,6 +356,16 @@ export class AISettingsApi extends BaseAPI {
296
356
  getSettings(options) {
297
357
  return AISettingsApiFp(this.configuration).getSettings(options).then((request) => request(this.axios, this.basePath));
298
358
  }
359
+ /**
360
+ * 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.
361
+ * @summary List the provider\'s chat models
362
+ * @param {ListAiModelsRequest} listAiModelsRequest
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ listModels(listAiModelsRequest, options) {
367
+ return AISettingsApiFp(this.configuration).listModels(listAiModelsRequest, options).then((request) => request(this.axios, this.basePath));
368
+ }
299
369
  /**
300
370
  * Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
301
371
  * @summary Save my AI settings
@@ -0,0 +1,41 @@
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
+ export interface AiModelsResponse {
13
+ /**
14
+ * Provider the list belongs to
15
+ */
16
+ 'provider'?: AiModelsResponseProviderEnum;
17
+ /**
18
+ * Model ids, best default first
19
+ */
20
+ 'models'?: Array<string>;
21
+ /**
22
+ * LIVE or FALLBACK
23
+ */
24
+ 'source'?: AiModelsResponseSourceEnum;
25
+ /**
26
+ * Why the provider list is unavailable, when source is FALLBACK
27
+ */
28
+ 'message'?: string;
29
+ }
30
+ export declare const AiModelsResponseProviderEnum: {
31
+ readonly Openai: "OPENAI";
32
+ readonly Anthropic: "ANTHROPIC";
33
+ readonly Google: "GOOGLE";
34
+ readonly OpenaiCompatible: "OPENAI_COMPATIBLE";
35
+ };
36
+ export type AiModelsResponseProviderEnum = typeof AiModelsResponseProviderEnum[keyof typeof AiModelsResponseProviderEnum];
37
+ export declare const AiModelsResponseSourceEnum: {
38
+ readonly Live: "LIVE";
39
+ readonly Fallback: "FALLBACK";
40
+ };
41
+ export type AiModelsResponseSourceEnum = typeof AiModelsResponseSourceEnum[keyof typeof AiModelsResponseSourceEnum];
@@ -0,0 +1,23 @@
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
+ export const AiModelsResponseProviderEnum = {
15
+ Openai: 'OPENAI',
16
+ Anthropic: 'ANTHROPIC',
17
+ Google: 'GOOGLE',
18
+ OpenaiCompatible: 'OPENAI_COMPATIBLE',
19
+ };
20
+ export const AiModelsResponseSourceEnum = {
21
+ Live: 'LIVE',
22
+ Fallback: 'FALLBACK',
23
+ };
@@ -2,6 +2,7 @@ export * from './ai-chat-conversation';
2
2
  export * from './ai-chat-request';
3
3
  export * from './ai-chat-response';
4
4
  export * from './ai-connection-test-result';
5
+ export * from './ai-models-response';
5
6
  export * from './ai-settings-response';
6
7
  export * from './ancestor-info';
7
8
  export * from './audit-log';
@@ -28,6 +29,7 @@ export * from './file-type-stats';
28
29
  export * from './filter-input';
29
30
  export * from './folder-element-info';
30
31
  export * from './folder-response';
32
+ export * from './list-ai-models-request';
31
33
  export * from './move-audit';
32
34
  export * from './move-request';
33
35
  export * from './rename-audit';
@@ -2,6 +2,7 @@ export * from './ai-chat-conversation';
2
2
  export * from './ai-chat-request';
3
3
  export * from './ai-chat-response';
4
4
  export * from './ai-connection-test-result';
5
+ export * from './ai-models-response';
5
6
  export * from './ai-settings-response';
6
7
  export * from './ancestor-info';
7
8
  export * from './audit-log';
@@ -28,6 +29,7 @@ export * from './file-type-stats';
28
29
  export * from './filter-input';
29
30
  export * from './folder-element-info';
30
31
  export * from './folder-response';
32
+ export * from './list-ai-models-request';
31
33
  export * from './move-audit';
32
34
  export * from './move-request';
33
35
  export * from './rename-audit';
@@ -0,0 +1,32 @@
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
+ export interface ListAiModelsRequest {
13
+ /**
14
+ * Chat LLM provider
15
+ */
16
+ 'provider': ListAiModelsRequestProviderEnum;
17
+ /**
18
+ * Base URL — required for OPENAI_COMPATIBLE, ignored otherwise
19
+ */
20
+ 'baseUrl'?: string;
21
+ /**
22
+ * API key (write-only). Omit to use the stored key.
23
+ */
24
+ 'apiKey'?: string;
25
+ }
26
+ export declare const ListAiModelsRequestProviderEnum: {
27
+ readonly Openai: "OPENAI";
28
+ readonly Anthropic: "ANTHROPIC";
29
+ readonly Google: "GOOGLE";
30
+ readonly OpenaiCompatible: "OPENAI_COMPATIBLE";
31
+ };
32
+ export type ListAiModelsRequestProviderEnum = typeof ListAiModelsRequestProviderEnum[keyof typeof ListAiModelsRequestProviderEnum];
@@ -0,0 +1,19 @@
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
+ export const ListAiModelsRequestProviderEnum = {
15
+ Openai: 'OPENAI',
16
+ Anthropic: 'ANTHROPIC',
17
+ Google: 'GOOGLE',
18
+ OpenaiCompatible: 'OPENAI_COMPATIBLE',
19
+ };
@@ -0,0 +1,41 @@
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
+ export interface AiModelsResponse {
13
+ /**
14
+ * Provider the list belongs to
15
+ */
16
+ 'provider'?: AiModelsResponseProviderEnum;
17
+ /**
18
+ * Model ids, best default first
19
+ */
20
+ 'models'?: Array<string>;
21
+ /**
22
+ * LIVE or FALLBACK
23
+ */
24
+ 'source'?: AiModelsResponseSourceEnum;
25
+ /**
26
+ * Why the provider list is unavailable, when source is FALLBACK
27
+ */
28
+ 'message'?: string;
29
+ }
30
+ export declare const AiModelsResponseProviderEnum: {
31
+ readonly Openai: "OPENAI";
32
+ readonly Anthropic: "ANTHROPIC";
33
+ readonly Google: "GOOGLE";
34
+ readonly OpenaiCompatible: "OPENAI_COMPATIBLE";
35
+ };
36
+ export type AiModelsResponseProviderEnum = typeof AiModelsResponseProviderEnum[keyof typeof AiModelsResponseProviderEnum];
37
+ export declare const AiModelsResponseSourceEnum: {
38
+ readonly Live: "LIVE";
39
+ readonly Fallback: "FALLBACK";
40
+ };
41
+ export type AiModelsResponseSourceEnum = typeof AiModelsResponseSourceEnum[keyof typeof AiModelsResponseSourceEnum];
@@ -0,0 +1,26 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AiModelsResponseSourceEnum = exports.AiModelsResponseProviderEnum = void 0;
17
+ exports.AiModelsResponseProviderEnum = {
18
+ Openai: 'OPENAI',
19
+ Anthropic: 'ANTHROPIC',
20
+ Google: 'GOOGLE',
21
+ OpenaiCompatible: 'OPENAI_COMPATIBLE',
22
+ };
23
+ exports.AiModelsResponseSourceEnum = {
24
+ Live: 'LIVE',
25
+ Fallback: 'FALLBACK',
26
+ };
@@ -2,6 +2,7 @@ export * from './ai-chat-conversation';
2
2
  export * from './ai-chat-request';
3
3
  export * from './ai-chat-response';
4
4
  export * from './ai-connection-test-result';
5
+ export * from './ai-models-response';
5
6
  export * from './ai-settings-response';
6
7
  export * from './ancestor-info';
7
8
  export * from './audit-log';
@@ -28,6 +29,7 @@ export * from './file-type-stats';
28
29
  export * from './filter-input';
29
30
  export * from './folder-element-info';
30
31
  export * from './folder-response';
32
+ export * from './list-ai-models-request';
31
33
  export * from './move-audit';
32
34
  export * from './move-request';
33
35
  export * from './rename-audit';
@@ -18,6 +18,7 @@ __exportStar(require("./ai-chat-conversation"), exports);
18
18
  __exportStar(require("./ai-chat-request"), exports);
19
19
  __exportStar(require("./ai-chat-response"), exports);
20
20
  __exportStar(require("./ai-connection-test-result"), exports);
21
+ __exportStar(require("./ai-models-response"), exports);
21
22
  __exportStar(require("./ai-settings-response"), exports);
22
23
  __exportStar(require("./ancestor-info"), exports);
23
24
  __exportStar(require("./audit-log"), exports);
@@ -44,6 +45,7 @@ __exportStar(require("./file-type-stats"), exports);
44
45
  __exportStar(require("./filter-input"), exports);
45
46
  __exportStar(require("./folder-element-info"), exports);
46
47
  __exportStar(require("./folder-response"), exports);
48
+ __exportStar(require("./list-ai-models-request"), exports);
47
49
  __exportStar(require("./move-audit"), exports);
48
50
  __exportStar(require("./move-request"), exports);
49
51
  __exportStar(require("./rename-audit"), exports);
@@ -0,0 +1,32 @@
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
+ export interface ListAiModelsRequest {
13
+ /**
14
+ * Chat LLM provider
15
+ */
16
+ 'provider': ListAiModelsRequestProviderEnum;
17
+ /**
18
+ * Base URL — required for OPENAI_COMPATIBLE, ignored otherwise
19
+ */
20
+ 'baseUrl'?: string;
21
+ /**
22
+ * API key (write-only). Omit to use the stored key.
23
+ */
24
+ 'apiKey'?: string;
25
+ }
26
+ export declare const ListAiModelsRequestProviderEnum: {
27
+ readonly Openai: "OPENAI";
28
+ readonly Anthropic: "ANTHROPIC";
29
+ readonly Google: "GOOGLE";
30
+ readonly OpenaiCompatible: "OPENAI_COMPATIBLE";
31
+ };
32
+ export type ListAiModelsRequestProviderEnum = typeof ListAiModelsRequestProviderEnum[keyof typeof ListAiModelsRequestProviderEnum];
@@ -0,0 +1,22 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListAiModelsRequestProviderEnum = void 0;
17
+ exports.ListAiModelsRequestProviderEnum = {
18
+ Openai: 'OPENAI',
19
+ Anthropic: 'ANTHROPIC',
20
+ Google: 'GOOGLE',
21
+ OpenaiCompatible: 'OPENAI_COMPATIBLE',
22
+ };
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost:8081*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**deleteSettings**](#deletesettings) | **DELETE** /api/v1/settings/ai | Reset my AI settings|
8
8
  |[**getSettings**](#getsettings) | **GET** /api/v1/settings/ai | Get my AI settings|
9
+ |[**listModels**](#listmodels) | **POST** /api/v1/settings/ai/models | List the provider\&#39;s chat models|
9
10
  |[**saveSettings**](#savesettings) | **PUT** /api/v1/settings/ai | Save my AI settings|
10
11
  |[**testConnection**](#testconnection) | **POST** /api/v1/settings/ai/test | Test AI provider connection|
11
12
 
@@ -90,6 +91,58 @@ This endpoint does not have any parameters.
90
91
  - **Accept**: application/json
91
92
 
92
93
 
94
+ ### HTTP response details
95
+ | Status code | Description | Response headers |
96
+ |-------------|-------------|------------------|
97
+ |**200** | OK | - |
98
+
99
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
100
+
101
+ # **listModels**
102
+ > AiModelsResponse listModels(listAiModelsRequest)
103
+
104
+ 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.
105
+
106
+ ### Example
107
+
108
+ ```typescript
109
+ import {
110
+ AISettingsApi,
111
+ Configuration,
112
+ ListAiModelsRequest
113
+ } from '@openfilz-sdk/typescript';
114
+
115
+ const configuration = new Configuration();
116
+ const apiInstance = new AISettingsApi(configuration);
117
+
118
+ let listAiModelsRequest: ListAiModelsRequest; //
119
+
120
+ const { status, data } = await apiInstance.listModels(
121
+ listAiModelsRequest
122
+ );
123
+ ```
124
+
125
+ ### Parameters
126
+
127
+ |Name | Type | Description | Notes|
128
+ |------------- | ------------- | ------------- | -------------|
129
+ | **listAiModelsRequest** | **ListAiModelsRequest**| | |
130
+
131
+
132
+ ### Return type
133
+
134
+ **AiModelsResponse**
135
+
136
+ ### Authorization
137
+
138
+ [keycloak_auth](../README.md#keycloak_auth)
139
+
140
+ ### HTTP request headers
141
+
142
+ - **Content-Type**: application/json
143
+ - **Accept**: application/json
144
+
145
+
93
146
  ### HTTP response details
94
147
  | Status code | Description | Response headers |
95
148
  |-------------|-------------|------------------|
@@ -0,0 +1,26 @@
1
+ # AiModelsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **provider** | **string** | Provider the list belongs to | [optional] [default to undefined]
9
+ **models** | **Array&lt;string&gt;** | Model ids, best default first | [optional] [default to undefined]
10
+ **source** | **string** | LIVE or FALLBACK | [optional] [default to undefined]
11
+ **message** | **string** | Why the provider list is unavailable, when source is FALLBACK | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { AiModelsResponse } from '@openfilz-sdk/typescript';
17
+
18
+ const instance: AiModelsResponse = {
19
+ provider,
20
+ models,
21
+ source,
22
+ message,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # ListAiModelsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **provider** | **string** | Chat LLM provider | [default to undefined]
9
+ **baseUrl** | **string** | Base URL — required for OPENAI_COMPATIBLE, ignored otherwise | [optional] [default to undefined]
10
+ **apiKey** | **string** | API key (write-only). Omit to use the stored key. | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ListAiModelsRequest } from '@openfilz-sdk/typescript';
16
+
17
+ const instance: ListAiModelsRequest = {
18
+ provider,
19
+ baseUrl,
20
+ apiKey,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,51 @@
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
+
15
+
16
+
17
+ export interface AiModelsResponse {
18
+ /**
19
+ * Provider the list belongs to
20
+ */
21
+ 'provider'?: AiModelsResponseProviderEnum;
22
+ /**
23
+ * Model ids, best default first
24
+ */
25
+ 'models'?: Array<string>;
26
+ /**
27
+ * LIVE or FALLBACK
28
+ */
29
+ 'source'?: AiModelsResponseSourceEnum;
30
+ /**
31
+ * Why the provider list is unavailable, when source is FALLBACK
32
+ */
33
+ 'message'?: string;
34
+ }
35
+
36
+ export const AiModelsResponseProviderEnum = {
37
+ Openai: 'OPENAI',
38
+ Anthropic: 'ANTHROPIC',
39
+ Google: 'GOOGLE',
40
+ OpenaiCompatible: 'OPENAI_COMPATIBLE',
41
+ } as const;
42
+
43
+ export type AiModelsResponseProviderEnum = typeof AiModelsResponseProviderEnum[keyof typeof AiModelsResponseProviderEnum];
44
+ export const AiModelsResponseSourceEnum = {
45
+ Live: 'LIVE',
46
+ Fallback: 'FALLBACK',
47
+ } as const;
48
+
49
+ export type AiModelsResponseSourceEnum = typeof AiModelsResponseSourceEnum[keyof typeof AiModelsResponseSourceEnum];
50
+
51
+
package/models/index.ts CHANGED
@@ -2,6 +2,7 @@ export * from './ai-chat-conversation';
2
2
  export * from './ai-chat-request';
3
3
  export * from './ai-chat-response';
4
4
  export * from './ai-connection-test-result';
5
+ export * from './ai-models-response';
5
6
  export * from './ai-settings-response';
6
7
  export * from './ancestor-info';
7
8
  export * from './audit-log';
@@ -28,6 +29,7 @@ export * from './file-type-stats';
28
29
  export * from './filter-input';
29
30
  export * from './folder-element-info';
30
31
  export * from './folder-response';
32
+ export * from './list-ai-models-request';
31
33
  export * from './move-audit';
32
34
  export * from './move-request';
33
35
  export * from './rename-audit';
@@ -0,0 +1,41 @@
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
+
15
+
16
+
17
+ export interface ListAiModelsRequest {
18
+ /**
19
+ * Chat LLM provider
20
+ */
21
+ 'provider': ListAiModelsRequestProviderEnum;
22
+ /**
23
+ * Base URL — required for OPENAI_COMPATIBLE, ignored otherwise
24
+ */
25
+ 'baseUrl'?: string;
26
+ /**
27
+ * API key (write-only). Omit to use the stored key.
28
+ */
29
+ 'apiKey'?: string;
30
+ }
31
+
32
+ export const ListAiModelsRequestProviderEnum = {
33
+ Openai: 'OPENAI',
34
+ Anthropic: 'ANTHROPIC',
35
+ Google: 'GOOGLE',
36
+ OpenaiCompatible: 'OPENAI_COMPATIBLE',
37
+ } as const;
38
+
39
+ export type ListAiModelsRequestProviderEnum = typeof ListAiModelsRequestProviderEnum[keyof typeof ListAiModelsRequestProviderEnum];
40
+
41
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfilz-sdk/typescript",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "OpenAPI client for @openfilz-sdk/typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {