@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,36 @@
|
|
|
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 SaveAiSettingsRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Chat LLM provider
|
|
15
|
+
*/
|
|
16
|
+
'provider': SaveAiSettingsRequestProviderEnum;
|
|
17
|
+
/**
|
|
18
|
+
* Model id, e.g. claude-opus-5, gpt-4o, gemini-2.5-flash
|
|
19
|
+
*/
|
|
20
|
+
'model'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Base URL — required for OPENAI_COMPATIBLE, ignored otherwise
|
|
23
|
+
*/
|
|
24
|
+
'baseUrl'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* API key (write-only). Omit to keep the stored key.
|
|
27
|
+
*/
|
|
28
|
+
'apiKey'?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const SaveAiSettingsRequestProviderEnum: {
|
|
31
|
+
readonly Openai: "OPENAI";
|
|
32
|
+
readonly Anthropic: "ANTHROPIC";
|
|
33
|
+
readonly Google: "GOOGLE";
|
|
34
|
+
readonly OpenaiCompatible: "OPENAI_COMPATIBLE";
|
|
35
|
+
};
|
|
36
|
+
export type SaveAiSettingsRequestProviderEnum = typeof SaveAiSettingsRequestProviderEnum[keyof typeof SaveAiSettingsRequestProviderEnum];
|
|
@@ -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 SaveAiSettingsRequestProviderEnum = {
|
|
15
|
+
Openai: 'OPENAI',
|
|
16
|
+
Anthropic: 'ANTHROPIC',
|
|
17
|
+
Google: 'GOOGLE',
|
|
18
|
+
OpenaiCompatible: 'OPENAI_COMPATIBLE',
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 AiChatConversation {
|
|
13
|
+
'id'?: string;
|
|
14
|
+
'title'?: string;
|
|
15
|
+
'createdBy'?: string;
|
|
16
|
+
'createdAt'?: string;
|
|
17
|
+
'updatedAt'?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 AiChatRequest {
|
|
13
|
+
'message': string;
|
|
14
|
+
'conversationId'?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,23 @@
|
|
|
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 AiChatResponse {
|
|
13
|
+
'conversationId'?: string;
|
|
14
|
+
'content'?: string;
|
|
15
|
+
'type'?: AiChatResponseTypeEnum;
|
|
16
|
+
'modifiedFolderIds'?: Array<string>;
|
|
17
|
+
}
|
|
18
|
+
export declare const AiChatResponseTypeEnum: {
|
|
19
|
+
readonly Message: "MESSAGE";
|
|
20
|
+
readonly Done: "DONE";
|
|
21
|
+
readonly Error: "ERROR";
|
|
22
|
+
};
|
|
23
|
+
export type AiChatResponseTypeEnum = typeof AiChatResponseTypeEnum[keyof typeof AiChatResponseTypeEnum];
|
|
@@ -0,0 +1,21 @@
|
|
|
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.AiChatResponseTypeEnum = void 0;
|
|
17
|
+
exports.AiChatResponseTypeEnum = {
|
|
18
|
+
Message: 'MESSAGE',
|
|
19
|
+
Done: 'DONE',
|
|
20
|
+
Error: 'ERROR',
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 AiConnectionTestResult {
|
|
13
|
+
'ok'?: boolean;
|
|
14
|
+
'message'?: string;
|
|
15
|
+
'latencyMs'?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,21 @@
|
|
|
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 AiSettingsResponse {
|
|
13
|
+
'enabled'?: boolean;
|
|
14
|
+
'provider'?: string;
|
|
15
|
+
'model'?: string;
|
|
16
|
+
'baseUrl'?: string;
|
|
17
|
+
'hasApiKey'?: boolean;
|
|
18
|
+
'keySuffix'?: string;
|
|
19
|
+
'defaultProvider'?: string;
|
|
20
|
+
'defaultModel'?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
package/dist/models/index.d.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';
|
package/dist/models/index.js
CHANGED
|
@@ -14,6 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai-chat-conversation"), exports);
|
|
18
|
+
__exportStar(require("./ai-chat-request"), exports);
|
|
19
|
+
__exportStar(require("./ai-chat-response"), exports);
|
|
20
|
+
__exportStar(require("./ai-connection-test-result"), exports);
|
|
21
|
+
__exportStar(require("./ai-settings-response"), exports);
|
|
17
22
|
__exportStar(require("./ancestor-info"), exports);
|
|
18
23
|
__exportStar(require("./audit-log"), exports);
|
|
19
24
|
__exportStar(require("./audit-log-details"), exports);
|
|
@@ -46,6 +51,7 @@ __exportStar(require("./rename-request"), exports);
|
|
|
46
51
|
__exportStar(require("./replace-audit"), exports);
|
|
47
52
|
__exportStar(require("./restore-version-audit"), exports);
|
|
48
53
|
__exportStar(require("./restore-version-response"), exports);
|
|
54
|
+
__exportStar(require("./save-ai-settings-request"), exports);
|
|
49
55
|
__exportStar(require("./search-by-audit-log-request"), exports);
|
|
50
56
|
__exportStar(require("./search-by-metadata-request"), exports);
|
|
51
57
|
__exportStar(require("./search-metadata-request"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
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 SaveAiSettingsRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Chat LLM provider
|
|
15
|
+
*/
|
|
16
|
+
'provider': SaveAiSettingsRequestProviderEnum;
|
|
17
|
+
/**
|
|
18
|
+
* Model id, e.g. claude-opus-5, gpt-4o, gemini-2.5-flash
|
|
19
|
+
*/
|
|
20
|
+
'model'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Base URL — required for OPENAI_COMPATIBLE, ignored otherwise
|
|
23
|
+
*/
|
|
24
|
+
'baseUrl'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* API key (write-only). Omit to keep the stored key.
|
|
27
|
+
*/
|
|
28
|
+
'apiKey'?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const SaveAiSettingsRequestProviderEnum: {
|
|
31
|
+
readonly Openai: "OPENAI";
|
|
32
|
+
readonly Anthropic: "ANTHROPIC";
|
|
33
|
+
readonly Google: "GOOGLE";
|
|
34
|
+
readonly OpenaiCompatible: "OPENAI_COMPATIBLE";
|
|
35
|
+
};
|
|
36
|
+
export type SaveAiSettingsRequestProviderEnum = typeof SaveAiSettingsRequestProviderEnum[keyof typeof SaveAiSettingsRequestProviderEnum];
|
|
@@ -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.SaveAiSettingsRequestProviderEnum = void 0;
|
|
17
|
+
exports.SaveAiSettingsRequestProviderEnum = {
|
|
18
|
+
Openai: 'OPENAI',
|
|
19
|
+
Anthropic: 'ANTHROPIC',
|
|
20
|
+
Google: 'GOOGLE',
|
|
21
|
+
OpenaiCompatible: 'OPENAI_COMPATIBLE',
|
|
22
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# AIChatApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**chat**](#chat) | **POST** /api/v1/ai/chat | Chat with AI assistant|
|
|
8
|
+
|[**deleteConversation**](#deleteconversation) | **DELETE** /api/v1/ai/conversations/{conversationId} | Delete conversation|
|
|
9
|
+
|[**getConversationHistory**](#getconversationhistory) | **GET** /api/v1/ai/conversations/{conversationId} | Get conversation history|
|
|
10
|
+
|[**listConversations**](#listconversations) | **GET** /api/v1/ai/conversations | List conversations|
|
|
11
|
+
|
|
12
|
+
# **chat**
|
|
13
|
+
> Array<AiChatResponse> chat(aiChatRequest)
|
|
14
|
+
|
|
15
|
+
Send a message and receive a streaming response. The AI can answer questions about documents, search, summarize, and reorganize files.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
AIChatApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
AiChatRequest
|
|
24
|
+
} from '@openfilz-sdk/typescript';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new AIChatApi(configuration);
|
|
28
|
+
|
|
29
|
+
let aiChatRequest: AiChatRequest; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.chat(
|
|
32
|
+
aiChatRequest
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **aiChatRequest** | **AiChatRequest**| | |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**Array<AiChatResponse>**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: text/event-stream
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | OK | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **deleteConversation**
|
|
65
|
+
> deleteConversation()
|
|
66
|
+
|
|
67
|
+
Delete a conversation and all its messages
|
|
68
|
+
|
|
69
|
+
### Example
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import {
|
|
73
|
+
AIChatApi,
|
|
74
|
+
Configuration
|
|
75
|
+
} from '@openfilz-sdk/typescript';
|
|
76
|
+
|
|
77
|
+
const configuration = new Configuration();
|
|
78
|
+
const apiInstance = new AIChatApi(configuration);
|
|
79
|
+
|
|
80
|
+
let conversationId: string; // (default to undefined)
|
|
81
|
+
|
|
82
|
+
const { status, data } = await apiInstance.deleteConversation(
|
|
83
|
+
conversationId
|
|
84
|
+
);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
|Name | Type | Description | Notes|
|
|
90
|
+
|------------- | ------------- | ------------- | -------------|
|
|
91
|
+
| **conversationId** | [**string**] | | defaults to undefined|
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Return type
|
|
95
|
+
|
|
96
|
+
void (empty response body)
|
|
97
|
+
|
|
98
|
+
### Authorization
|
|
99
|
+
|
|
100
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
101
|
+
|
|
102
|
+
### HTTP request headers
|
|
103
|
+
|
|
104
|
+
- **Content-Type**: Not defined
|
|
105
|
+
- **Accept**: Not defined
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### HTTP response details
|
|
109
|
+
| Status code | Description | Response headers |
|
|
110
|
+
|-------------|-------------|------------------|
|
|
111
|
+
|**200** | OK | - |
|
|
112
|
+
|
|
113
|
+
[[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)
|
|
114
|
+
|
|
115
|
+
# **getConversationHistory**
|
|
116
|
+
> Array<AiChatResponse> getConversationHistory()
|
|
117
|
+
|
|
118
|
+
Get all messages in a conversation
|
|
119
|
+
|
|
120
|
+
### Example
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import {
|
|
124
|
+
AIChatApi,
|
|
125
|
+
Configuration
|
|
126
|
+
} from '@openfilz-sdk/typescript';
|
|
127
|
+
|
|
128
|
+
const configuration = new Configuration();
|
|
129
|
+
const apiInstance = new AIChatApi(configuration);
|
|
130
|
+
|
|
131
|
+
let conversationId: string; // (default to undefined)
|
|
132
|
+
|
|
133
|
+
const { status, data } = await apiInstance.getConversationHistory(
|
|
134
|
+
conversationId
|
|
135
|
+
);
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Parameters
|
|
139
|
+
|
|
140
|
+
|Name | Type | Description | Notes|
|
|
141
|
+
|------------- | ------------- | ------------- | -------------|
|
|
142
|
+
| **conversationId** | [**string**] | | defaults to undefined|
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Return type
|
|
146
|
+
|
|
147
|
+
**Array<AiChatResponse>**
|
|
148
|
+
|
|
149
|
+
### Authorization
|
|
150
|
+
|
|
151
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
152
|
+
|
|
153
|
+
### HTTP request headers
|
|
154
|
+
|
|
155
|
+
- **Content-Type**: Not defined
|
|
156
|
+
- **Accept**: application/json
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### HTTP response details
|
|
160
|
+
| Status code | Description | Response headers |
|
|
161
|
+
|-------------|-------------|------------------|
|
|
162
|
+
|**200** | OK | - |
|
|
163
|
+
|
|
164
|
+
[[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)
|
|
165
|
+
|
|
166
|
+
# **listConversations**
|
|
167
|
+
> Array<AiChatConversation> listConversations()
|
|
168
|
+
|
|
169
|
+
Get all AI chat conversations for the current user
|
|
170
|
+
|
|
171
|
+
### Example
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
import {
|
|
175
|
+
AIChatApi,
|
|
176
|
+
Configuration
|
|
177
|
+
} from '@openfilz-sdk/typescript';
|
|
178
|
+
|
|
179
|
+
const configuration = new Configuration();
|
|
180
|
+
const apiInstance = new AIChatApi(configuration);
|
|
181
|
+
|
|
182
|
+
const { status, data } = await apiInstance.listConversations();
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Parameters
|
|
186
|
+
This endpoint does not have any parameters.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Return type
|
|
190
|
+
|
|
191
|
+
**Array<AiChatConversation>**
|
|
192
|
+
|
|
193
|
+
### Authorization
|
|
194
|
+
|
|
195
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
196
|
+
|
|
197
|
+
### HTTP request headers
|
|
198
|
+
|
|
199
|
+
- **Content-Type**: Not defined
|
|
200
|
+
- **Accept**: application/json
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### HTTP response details
|
|
204
|
+
| Status code | Description | Response headers |
|
|
205
|
+
|-------------|-------------|------------------|
|
|
206
|
+
|**200** | OK | - |
|
|
207
|
+
|
|
208
|
+
[[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)
|
|
209
|
+
|