@breign/client 1.0.62 → 1.0.63
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/dist/apis/ConversationsApi.d.ts +13 -1
- package/dist/apis/ConversationsApi.js +32 -0
- package/dist/models/UpdateConversationTitleRequestUio.d.ts +32 -0
- package/dist/models/UpdateConversationTitleRequestUio.js +50 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/openapi.json +46 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, BodyWithMessageUio, ContextUio, ConversationSummaryUio } from '../models/index';
|
|
13
|
+
import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, BodyWithMessageUio, ContextUio, ConversationSummaryUio, UpdateConversationTitleRequestUio } from '../models/index';
|
|
14
14
|
export interface ArchiveConversationByIdRequest {
|
|
15
15
|
conversationId: string;
|
|
16
16
|
}
|
|
@@ -53,6 +53,10 @@ export interface UpdateAttachmentStatusRequest {
|
|
|
53
53
|
conversationId: string;
|
|
54
54
|
attachmentId: string;
|
|
55
55
|
}
|
|
56
|
+
export interface UpdateConversationTitleRequest {
|
|
57
|
+
conversationId: string;
|
|
58
|
+
updateConversationTitleRequestUio: UpdateConversationTitleRequestUio;
|
|
59
|
+
}
|
|
56
60
|
export interface UploadAttachmentRequest {
|
|
57
61
|
conversationId: string;
|
|
58
62
|
attachmentCreateRequestUio: AttachmentCreateRequestUio;
|
|
@@ -177,6 +181,14 @@ export declare class ConversationsApi extends runtime.BaseAPI {
|
|
|
177
181
|
* Update the status of an uploaded attachment
|
|
178
182
|
*/
|
|
179
183
|
updateAttachmentStatus(conversationId: string, attachmentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
184
|
+
/**
|
|
185
|
+
* Update conversation title
|
|
186
|
+
*/
|
|
187
|
+
updateConversationTitleRaw(requestParameters: UpdateConversationTitleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationSummaryUio>>;
|
|
188
|
+
/**
|
|
189
|
+
* Update conversation title
|
|
190
|
+
*/
|
|
191
|
+
updateConversationTitle(conversationId: string, updateConversationTitleRequestUio: UpdateConversationTitleRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationSummaryUio>;
|
|
180
192
|
/**
|
|
181
193
|
* Upload one file attachment to the context of a specific conversation.
|
|
182
194
|
* Upload attachment to a conversation context.
|
|
@@ -392,6 +392,38 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
392
392
|
const response = await this.updateAttachmentStatusRaw({ conversationId: conversationId, attachmentId: attachmentId }, initOverrides);
|
|
393
393
|
return await response.value();
|
|
394
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* Update conversation title
|
|
397
|
+
*/
|
|
398
|
+
async updateConversationTitleRaw(requestParameters, initOverrides) {
|
|
399
|
+
if (requestParameters['conversationId'] == null) {
|
|
400
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling updateConversationTitle().');
|
|
401
|
+
}
|
|
402
|
+
if (requestParameters['updateConversationTitleRequestUio'] == null) {
|
|
403
|
+
throw new runtime.RequiredError('updateConversationTitleRequestUio', 'Required parameter "updateConversationTitleRequestUio" was null or undefined when calling updateConversationTitle().');
|
|
404
|
+
}
|
|
405
|
+
const queryParameters = {};
|
|
406
|
+
const headerParameters = {};
|
|
407
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
408
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
409
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
410
|
+
}
|
|
411
|
+
const response = await this.request({
|
|
412
|
+
path: `/conversations/{conversationId}/title`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
413
|
+
method: 'PATCH',
|
|
414
|
+
headers: headerParameters,
|
|
415
|
+
query: queryParameters,
|
|
416
|
+
body: (0, index_1.UpdateConversationTitleRequestUioToJSON)(requestParameters['updateConversationTitleRequestUio']),
|
|
417
|
+
}, initOverrides);
|
|
418
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConversationSummaryUioFromJSON)(jsonValue));
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Update conversation title
|
|
422
|
+
*/
|
|
423
|
+
async updateConversationTitle(conversationId, updateConversationTitleRequestUio, initOverrides) {
|
|
424
|
+
const response = await this.updateConversationTitleRaw({ conversationId: conversationId, updateConversationTitleRequestUio: updateConversationTitleRequestUio }, initOverrides);
|
|
425
|
+
return await response.value();
|
|
426
|
+
}
|
|
395
427
|
/**
|
|
396
428
|
* Upload one file attachment to the context of a specific conversation.
|
|
397
429
|
* Upload attachment to a conversation context.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateConversationTitleRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateConversationTitleRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateConversationTitleRequestUio
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateConversationTitleRequestUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateConversationTitleRequestUio(value: object): value is UpdateConversationTitleRequestUio;
|
|
29
|
+
export declare function UpdateConversationTitleRequestUioFromJSON(json: any): UpdateConversationTitleRequestUio;
|
|
30
|
+
export declare function UpdateConversationTitleRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateConversationTitleRequestUio;
|
|
31
|
+
export declare function UpdateConversationTitleRequestUioToJSON(json: any): UpdateConversationTitleRequestUio;
|
|
32
|
+
export declare function UpdateConversationTitleRequestUioToJSONTyped(value?: UpdateConversationTitleRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
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.instanceOfUpdateConversationTitleRequestUio = instanceOfUpdateConversationTitleRequestUio;
|
|
17
|
+
exports.UpdateConversationTitleRequestUioFromJSON = UpdateConversationTitleRequestUioFromJSON;
|
|
18
|
+
exports.UpdateConversationTitleRequestUioFromJSONTyped = UpdateConversationTitleRequestUioFromJSONTyped;
|
|
19
|
+
exports.UpdateConversationTitleRequestUioToJSON = UpdateConversationTitleRequestUioToJSON;
|
|
20
|
+
exports.UpdateConversationTitleRequestUioToJSONTyped = UpdateConversationTitleRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateConversationTitleRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateConversationTitleRequestUio(value) {
|
|
25
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateConversationTitleRequestUioFromJSON(json) {
|
|
30
|
+
return UpdateConversationTitleRequestUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateConversationTitleRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'title': json['title'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateConversationTitleRequestUioToJSON(json) {
|
|
41
|
+
return UpdateConversationTitleRequestUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateConversationTitleRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'title': value['title'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -200,5 +200,6 @@ export * from './ToolSecureMcpUio';
|
|
|
200
200
|
export * from './ToolSecureUio';
|
|
201
201
|
export * from './ToolUsedUio';
|
|
202
202
|
export * from './TransactionUio';
|
|
203
|
+
export * from './UpdateConversationTitleRequestUio';
|
|
203
204
|
export * from './UserUio';
|
|
204
205
|
export * from './UserUserUio';
|
package/dist/models/index.js
CHANGED
|
@@ -218,5 +218,6 @@ __exportStar(require("./ToolSecureMcpUio"), exports);
|
|
|
218
218
|
__exportStar(require("./ToolSecureUio"), exports);
|
|
219
219
|
__exportStar(require("./ToolUsedUio"), exports);
|
|
220
220
|
__exportStar(require("./TransactionUio"), exports);
|
|
221
|
+
__exportStar(require("./UpdateConversationTitleRequestUio"), exports);
|
|
221
222
|
__exportStar(require("./UserUio"), exports);
|
|
222
223
|
__exportStar(require("./UserUserUio"), exports);
|
package/dist/openapi.json
CHANGED
|
@@ -2939,6 +2939,43 @@
|
|
|
2939
2939
|
"tags" : [ "conversations" ]
|
|
2940
2940
|
}
|
|
2941
2941
|
},
|
|
2942
|
+
"/conversations/{conversationId}/title" : {
|
|
2943
|
+
"patch" : {
|
|
2944
|
+
"operationId" : "updateConversationTitle",
|
|
2945
|
+
"parameters" : [ {
|
|
2946
|
+
"in" : "path",
|
|
2947
|
+
"name" : "conversationId",
|
|
2948
|
+
"required" : true,
|
|
2949
|
+
"schema" : {
|
|
2950
|
+
"type" : "string"
|
|
2951
|
+
}
|
|
2952
|
+
} ],
|
|
2953
|
+
"requestBody" : {
|
|
2954
|
+
"content" : {
|
|
2955
|
+
"application/json" : {
|
|
2956
|
+
"schema" : {
|
|
2957
|
+
"$ref" : "#/components/schemas/updateConversationTitle_request"
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
},
|
|
2961
|
+
"required" : true
|
|
2962
|
+
},
|
|
2963
|
+
"responses" : {
|
|
2964
|
+
"200" : {
|
|
2965
|
+
"content" : {
|
|
2966
|
+
"application/json" : {
|
|
2967
|
+
"schema" : {
|
|
2968
|
+
"$ref" : "#/components/schemas/ConversationSummary"
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
},
|
|
2972
|
+
"description" : "Updated conversation summary."
|
|
2973
|
+
}
|
|
2974
|
+
},
|
|
2975
|
+
"summary" : "Update conversation title",
|
|
2976
|
+
"tags" : [ "conversations" ]
|
|
2977
|
+
}
|
|
2978
|
+
},
|
|
2942
2979
|
"/conversations/{conversationId}/context" : {
|
|
2943
2980
|
"get" : {
|
|
2944
2981
|
"description" : "Retrieve the context of a specific conversation by its ID.",
|
|
@@ -9978,6 +10015,15 @@
|
|
|
9978
10015
|
"enum" : [ "ELEVENLABS" ],
|
|
9979
10016
|
"type" : "string"
|
|
9980
10017
|
},
|
|
10018
|
+
"updateConversationTitle_request" : {
|
|
10019
|
+
"properties" : {
|
|
10020
|
+
"title" : {
|
|
10021
|
+
"type" : "string"
|
|
10022
|
+
}
|
|
10023
|
+
},
|
|
10024
|
+
"required" : [ "title" ],
|
|
10025
|
+
"type" : "object"
|
|
10026
|
+
},
|
|
9981
10027
|
"importFileToAgentKnowledge_request" : {
|
|
9982
10028
|
"properties" : {
|
|
9983
10029
|
"file" : {
|