@openfilz-sdk/typescript 1.2.19 → 1.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +16 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +17 -3
- package/api/aichat-api.ts +341 -0
- package/api/aisettings-api.ts +335 -0
- package/api/settings-api.ts +8 -8
- package/api.ts +2 -0
- package/dist/api/aichat-api.d.ts +161 -0
- package/dist/api/aichat-api.js +332 -0
- package/dist/api/aisettings-api.d.ts +157 -0
- package/dist/api/aisettings-api.js +326 -0
- package/dist/api/settings-api.d.ts +4 -4
- package/dist/api/settings-api.js +8 -8
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/aichat-api.d.ts +161 -0
- package/dist/esm/api/aichat-api.js +325 -0
- package/dist/esm/api/aisettings-api.d.ts +157 -0
- package/dist/esm/api/aisettings-api.js +319 -0
- package/dist/esm/api/settings-api.d.ts +4 -4
- package/dist/esm/api/settings-api.js +8 -8
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/ai-chat-conversation.d.ts +18 -0
- package/dist/esm/models/ai-chat-conversation.js +14 -0
- package/dist/esm/models/ai-chat-request.d.ts +15 -0
- package/dist/esm/models/ai-chat-request.js +14 -0
- package/dist/esm/models/ai-chat-response.d.ts +23 -0
- package/dist/esm/models/ai-chat-response.js +18 -0
- package/dist/esm/models/ai-connection-test-result.d.ts +16 -0
- package/dist/esm/models/ai-connection-test-result.js +14 -0
- package/dist/esm/models/ai-settings-response.d.ts +21 -0
- package/dist/esm/models/ai-settings-response.js +14 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/save-ai-settings-request.d.ts +36 -0
- package/dist/esm/models/save-ai-settings-request.js +19 -0
- package/dist/esm/models/settings.d.ts +1 -0
- package/dist/models/ai-chat-conversation.d.ts +18 -0
- package/dist/models/ai-chat-conversation.js +15 -0
- package/dist/models/ai-chat-request.d.ts +15 -0
- package/dist/models/ai-chat-request.js +15 -0
- package/dist/models/ai-chat-response.d.ts +23 -0
- package/dist/models/ai-chat-response.js +21 -0
- package/dist/models/ai-connection-test-result.d.ts +16 -0
- package/dist/models/ai-connection-test-result.js +15 -0
- package/dist/models/ai-settings-response.d.ts +21 -0
- package/dist/models/ai-settings-response.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/save-ai-settings-request.d.ts +36 -0
- package/dist/models/save-ai-settings-request.js +22 -0
- package/dist/models/settings.d.ts +1 -0
- package/docs/AIChatApi.md +209 -0
- package/docs/AISettingsApi.md +203 -0
- package/docs/AiChatConversation.md +28 -0
- package/docs/AiChatRequest.md +22 -0
- package/docs/AiChatResponse.md +26 -0
- package/docs/AiConnectionTestResult.md +24 -0
- package/docs/AiSettingsResponse.md +34 -0
- package/docs/SaveAiSettingsRequest.md +26 -0
- package/docs/Settings.md +2 -0
- package/docs/SettingsApi.md +4 -4
- package/models/ai-chat-conversation.ts +24 -0
- package/models/ai-chat-request.ts +21 -0
- package/models/ai-chat-response.ts +32 -0
- package/models/ai-connection-test-result.ts +22 -0
- package/models/ai-settings-response.ts +27 -0
- package/models/index.ts +6 -0
- package/models/save-ai-settings-request.ts +45 -0
- package/models/settings.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# AISettingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteSettings**](#deletesettings) | **DELETE** /api/v1/settings/ai | Reset my AI settings|
|
|
8
|
+
|[**getSettings**](#getsettings) | **GET** /api/v1/settings/ai | Get my AI settings|
|
|
9
|
+
|[**saveSettings**](#savesettings) | **PUT** /api/v1/settings/ai | Save my AI settings|
|
|
10
|
+
|[**testConnection**](#testconnection) | **POST** /api/v1/settings/ai/test | Test AI provider connection|
|
|
11
|
+
|
|
12
|
+
# **deleteSettings**
|
|
13
|
+
> deleteSettings()
|
|
14
|
+
|
|
15
|
+
Remove my chat-LLM override and go back to the server default model.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
AISettingsApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@openfilz-sdk/typescript';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new AISettingsApi(configuration);
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.deleteSettings();
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
This endpoint does not have any parameters.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Return type
|
|
36
|
+
|
|
37
|
+
void (empty response body)
|
|
38
|
+
|
|
39
|
+
### Authorization
|
|
40
|
+
|
|
41
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
42
|
+
|
|
43
|
+
### HTTP request headers
|
|
44
|
+
|
|
45
|
+
- **Content-Type**: Not defined
|
|
46
|
+
- **Accept**: Not defined
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### HTTP response details
|
|
50
|
+
| Status code | Description | Response headers |
|
|
51
|
+
|-------------|-------------|------------------|
|
|
52
|
+
|**200** | OK | - |
|
|
53
|
+
|
|
54
|
+
[[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)
|
|
55
|
+
|
|
56
|
+
# **getSettings**
|
|
57
|
+
> AiSettingsResponse getSettings()
|
|
58
|
+
|
|
59
|
+
Current user\'s chat-LLM override. The API key is never returned — only hasApiKey and its last characters.
|
|
60
|
+
|
|
61
|
+
### Example
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
import {
|
|
65
|
+
AISettingsApi,
|
|
66
|
+
Configuration
|
|
67
|
+
} from '@openfilz-sdk/typescript';
|
|
68
|
+
|
|
69
|
+
const configuration = new Configuration();
|
|
70
|
+
const apiInstance = new AISettingsApi(configuration);
|
|
71
|
+
|
|
72
|
+
const { status, data } = await apiInstance.getSettings();
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Parameters
|
|
76
|
+
This endpoint does not have any parameters.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### Return type
|
|
80
|
+
|
|
81
|
+
**AiSettingsResponse**
|
|
82
|
+
|
|
83
|
+
### Authorization
|
|
84
|
+
|
|
85
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
86
|
+
|
|
87
|
+
### HTTP request headers
|
|
88
|
+
|
|
89
|
+
- **Content-Type**: Not defined
|
|
90
|
+
- **Accept**: application/json
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### HTTP response details
|
|
94
|
+
| Status code | Description | Response headers |
|
|
95
|
+
|-------------|-------------|------------------|
|
|
96
|
+
|**200** | OK | - |
|
|
97
|
+
|
|
98
|
+
[[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)
|
|
99
|
+
|
|
100
|
+
# **saveSettings**
|
|
101
|
+
> AiSettingsResponse saveSettings(saveAiSettingsRequest)
|
|
102
|
+
|
|
103
|
+
Set the chat LLM to use for my conversations. Omit apiKey to keep the previously stored key.
|
|
104
|
+
|
|
105
|
+
### Example
|
|
106
|
+
|
|
107
|
+
```typescript
|
|
108
|
+
import {
|
|
109
|
+
AISettingsApi,
|
|
110
|
+
Configuration,
|
|
111
|
+
SaveAiSettingsRequest
|
|
112
|
+
} from '@openfilz-sdk/typescript';
|
|
113
|
+
|
|
114
|
+
const configuration = new Configuration();
|
|
115
|
+
const apiInstance = new AISettingsApi(configuration);
|
|
116
|
+
|
|
117
|
+
let saveAiSettingsRequest: SaveAiSettingsRequest; //
|
|
118
|
+
|
|
119
|
+
const { status, data } = await apiInstance.saveSettings(
|
|
120
|
+
saveAiSettingsRequest
|
|
121
|
+
);
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Parameters
|
|
125
|
+
|
|
126
|
+
|Name | Type | Description | Notes|
|
|
127
|
+
|------------- | ------------- | ------------- | -------------|
|
|
128
|
+
| **saveAiSettingsRequest** | **SaveAiSettingsRequest**| | |
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Return type
|
|
132
|
+
|
|
133
|
+
**AiSettingsResponse**
|
|
134
|
+
|
|
135
|
+
### Authorization
|
|
136
|
+
|
|
137
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
138
|
+
|
|
139
|
+
### HTTP request headers
|
|
140
|
+
|
|
141
|
+
- **Content-Type**: application/json
|
|
142
|
+
- **Accept**: application/json
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### HTTP response details
|
|
146
|
+
| Status code | Description | Response headers |
|
|
147
|
+
|-------------|-------------|------------------|
|
|
148
|
+
|**200** | OK | - |
|
|
149
|
+
|
|
150
|
+
[[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)
|
|
151
|
+
|
|
152
|
+
# **testConnection**
|
|
153
|
+
> AiConnectionTestResult testConnection(saveAiSettingsRequest)
|
|
154
|
+
|
|
155
|
+
Send a minimal completion request with the submitted settings (falls back to the stored key when apiKey is omitted).
|
|
156
|
+
|
|
157
|
+
### Example
|
|
158
|
+
|
|
159
|
+
```typescript
|
|
160
|
+
import {
|
|
161
|
+
AISettingsApi,
|
|
162
|
+
Configuration,
|
|
163
|
+
SaveAiSettingsRequest
|
|
164
|
+
} from '@openfilz-sdk/typescript';
|
|
165
|
+
|
|
166
|
+
const configuration = new Configuration();
|
|
167
|
+
const apiInstance = new AISettingsApi(configuration);
|
|
168
|
+
|
|
169
|
+
let saveAiSettingsRequest: SaveAiSettingsRequest; //
|
|
170
|
+
|
|
171
|
+
const { status, data } = await apiInstance.testConnection(
|
|
172
|
+
saveAiSettingsRequest
|
|
173
|
+
);
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Parameters
|
|
177
|
+
|
|
178
|
+
|Name | Type | Description | Notes|
|
|
179
|
+
|------------- | ------------- | ------------- | -------------|
|
|
180
|
+
| **saveAiSettingsRequest** | **SaveAiSettingsRequest**| | |
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Return type
|
|
184
|
+
|
|
185
|
+
**AiConnectionTestResult**
|
|
186
|
+
|
|
187
|
+
### Authorization
|
|
188
|
+
|
|
189
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
190
|
+
|
|
191
|
+
### HTTP request headers
|
|
192
|
+
|
|
193
|
+
- **Content-Type**: application/json
|
|
194
|
+
- **Accept**: application/json
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
### HTTP response details
|
|
198
|
+
| Status code | Description | Response headers |
|
|
199
|
+
|-------------|-------------|------------------|
|
|
200
|
+
|**200** | OK | - |
|
|
201
|
+
|
|
202
|
+
[[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)
|
|
203
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# AiChatConversation
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**createdBy** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { AiChatConversation } from '@openfilz-sdk/typescript';
|
|
18
|
+
|
|
19
|
+
const instance: AiChatConversation = {
|
|
20
|
+
id,
|
|
21
|
+
title,
|
|
22
|
+
createdBy,
|
|
23
|
+
createdAt,
|
|
24
|
+
updatedAt,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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,22 @@
|
|
|
1
|
+
# AiChatRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [default to undefined]
|
|
9
|
+
**conversationId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AiChatRequest } from '@openfilz-sdk/typescript';
|
|
15
|
+
|
|
16
|
+
const instance: AiChatRequest = {
|
|
17
|
+
message,
|
|
18
|
+
conversationId,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,26 @@
|
|
|
1
|
+
# AiChatResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**conversationId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**content** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**modifiedFolderIds** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AiChatResponse } from '@openfilz-sdk/typescript';
|
|
17
|
+
|
|
18
|
+
const instance: AiChatResponse = {
|
|
19
|
+
conversationId,
|
|
20
|
+
content,
|
|
21
|
+
type,
|
|
22
|
+
modifiedFolderIds,
|
|
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
|
+
# AiConnectionTestResult
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**ok** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**latencyMs** | **number** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { AiConnectionTestResult } from '@openfilz-sdk/typescript';
|
|
16
|
+
|
|
17
|
+
const instance: AiConnectionTestResult = {
|
|
18
|
+
ok,
|
|
19
|
+
message,
|
|
20
|
+
latencyMs,
|
|
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,34 @@
|
|
|
1
|
+
# AiSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
**provider** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**model** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**baseUrl** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**hasApiKey** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
**keySuffix** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**defaultProvider** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**defaultModel** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { AiSettingsResponse } from '@openfilz-sdk/typescript';
|
|
21
|
+
|
|
22
|
+
const instance: AiSettingsResponse = {
|
|
23
|
+
enabled,
|
|
24
|
+
provider,
|
|
25
|
+
model,
|
|
26
|
+
baseUrl,
|
|
27
|
+
hasApiKey,
|
|
28
|
+
keySuffix,
|
|
29
|
+
defaultProvider,
|
|
30
|
+
defaultModel,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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,26 @@
|
|
|
1
|
+
# SaveAiSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**provider** | **string** | Chat LLM provider | [default to undefined]
|
|
9
|
+
**model** | **string** | Model id, e.g. claude-opus-5, gpt-4o, gemini-2.5-flash | [optional] [default to undefined]
|
|
10
|
+
**baseUrl** | **string** | Base URL — required for OPENAI_COMPATIBLE, ignored otherwise | [optional] [default to undefined]
|
|
11
|
+
**apiKey** | **string** | API key (write-only). Omit to keep the stored key. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { SaveAiSettingsRequest } from '@openfilz-sdk/typescript';
|
|
17
|
+
|
|
18
|
+
const instance: SaveAiSettingsRequest = {
|
|
19
|
+
provider,
|
|
20
|
+
model,
|
|
21
|
+
baseUrl,
|
|
22
|
+
apiKey,
|
|
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)
|
package/docs/Settings.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**theme** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**thumbnailsActive** | **boolean** | | [optional] [default to undefined]
|
|
14
14
|
**aiActive** | **boolean** | | [optional] [default to undefined]
|
|
15
|
+
**aiUserSettingsEnabled** | **boolean** | | [optional] [default to undefined]
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const instance: Settings = {
|
|
|
26
27
|
theme,
|
|
27
28
|
thumbnailsActive,
|
|
28
29
|
aiActive,
|
|
30
|
+
aiUserSettingsEnabled,
|
|
29
31
|
};
|
|
30
32
|
```
|
|
31
33
|
|
package/docs/SettingsApi.md
CHANGED
|
@@ -4,10 +4,10 @@ All URIs are relative to *http://localhost:8081*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**getSettings1**](#getsettings1) | **GET** /api/v1/settings | Get user\'s settings|
|
|
8
8
|
|
|
9
|
-
# **
|
|
10
|
-
> Settings
|
|
9
|
+
# **getSettings1**
|
|
10
|
+
> Settings getSettings1()
|
|
11
11
|
|
|
12
12
|
Retrieve user\'s settings : global settings and user\'s preferences
|
|
13
13
|
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
const configuration = new Configuration();
|
|
23
23
|
const apiInstance = new SettingsApi(configuration);
|
|
24
24
|
|
|
25
|
-
const { status, data } = await apiInstance.
|
|
25
|
+
const { status, data } = await apiInstance.getSettings1();
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### Parameters
|
|
@@ -0,0 +1,24 @@
|
|
|
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 AiChatConversation {
|
|
18
|
+
'id'?: string;
|
|
19
|
+
'title'?: string;
|
|
20
|
+
'createdBy'?: string;
|
|
21
|
+
'createdAt'?: string;
|
|
22
|
+
'updatedAt'?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
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 AiChatRequest {
|
|
18
|
+
'message': string;
|
|
19
|
+
'conversationId'?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AiChatResponse {
|
|
18
|
+
'conversationId'?: string;
|
|
19
|
+
'content'?: string;
|
|
20
|
+
'type'?: AiChatResponseTypeEnum;
|
|
21
|
+
'modifiedFolderIds'?: Array<string>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const AiChatResponseTypeEnum = {
|
|
25
|
+
Message: 'MESSAGE',
|
|
26
|
+
Done: 'DONE',
|
|
27
|
+
Error: 'ERROR',
|
|
28
|
+
} as const;
|
|
29
|
+
|
|
30
|
+
export type AiChatResponseTypeEnum = typeof AiChatResponseTypeEnum[keyof typeof AiChatResponseTypeEnum];
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
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 AiConnectionTestResult {
|
|
18
|
+
'ok'?: boolean;
|
|
19
|
+
'message'?: string;
|
|
20
|
+
'latencyMs'?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
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 AiSettingsResponse {
|
|
18
|
+
'enabled'?: boolean;
|
|
19
|
+
'provider'?: string;
|
|
20
|
+
'model'?: string;
|
|
21
|
+
'baseUrl'?: string;
|
|
22
|
+
'hasApiKey'?: boolean;
|
|
23
|
+
'keySuffix'?: string;
|
|
24
|
+
'defaultProvider'?: string;
|
|
25
|
+
'defaultModel'?: string;
|
|
26
|
+
}
|
|
27
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from './ai-chat-conversation';
|
|
2
|
+
export * from './ai-chat-request';
|
|
3
|
+
export * from './ai-chat-response';
|
|
4
|
+
export * from './ai-connection-test-result';
|
|
5
|
+
export * from './ai-settings-response';
|
|
1
6
|
export * from './ancestor-info';
|
|
2
7
|
export * from './audit-log';
|
|
3
8
|
export * from './audit-log-details';
|
|
@@ -30,6 +35,7 @@ export * from './rename-request';
|
|
|
30
35
|
export * from './replace-audit';
|
|
31
36
|
export * from './restore-version-audit';
|
|
32
37
|
export * from './restore-version-response';
|
|
38
|
+
export * from './save-ai-settings-request';
|
|
33
39
|
export * from './search-by-audit-log-request';
|
|
34
40
|
export * from './search-by-metadata-request';
|
|
35
41
|
export * from './search-metadata-request';
|
|
@@ -0,0 +1,45 @@
|
|
|
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 SaveAiSettingsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Chat LLM provider
|
|
20
|
+
*/
|
|
21
|
+
'provider': SaveAiSettingsRequestProviderEnum;
|
|
22
|
+
/**
|
|
23
|
+
* Model id, e.g. claude-opus-5, gpt-4o, gemini-2.5-flash
|
|
24
|
+
*/
|
|
25
|
+
'model'?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Base URL — required for OPENAI_COMPATIBLE, ignored otherwise
|
|
28
|
+
*/
|
|
29
|
+
'baseUrl'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* API key (write-only). Omit to keep the stored key.
|
|
32
|
+
*/
|
|
33
|
+
'apiKey'?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export const SaveAiSettingsRequestProviderEnum = {
|
|
37
|
+
Openai: 'OPENAI',
|
|
38
|
+
Anthropic: 'ANTHROPIC',
|
|
39
|
+
Google: 'GOOGLE',
|
|
40
|
+
OpenaiCompatible: 'OPENAI_COMPATIBLE',
|
|
41
|
+
} as const;
|
|
42
|
+
|
|
43
|
+
export type SaveAiSettingsRequestProviderEnum = typeof SaveAiSettingsRequestProviderEnum[keyof typeof SaveAiSettingsRequestProviderEnum];
|
|
44
|
+
|
|
45
|
+
|
package/models/settings.ts
CHANGED