@breign/client 1.0.113 → 1.0.115
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/AgentApi.d.ts +4 -1
- package/dist/apis/AgentApi.js +11 -2
- package/dist/models/KnowledgeBaseConfigurationUio.d.ts +12 -0
- package/dist/models/KnowledgeBaseConfigurationUio.js +4 -0
- package/dist/models/SearchKnowledgeBase200ResponseInnerUio.d.ts +6 -0
- package/dist/models/SearchKnowledgeBase200ResponseInnerUio.js +2 -0
- package/dist/openapi.json +57 -0
- package/package.json +1 -1
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -92,6 +92,9 @@ export interface GetConversationsForAgentRequest {
|
|
|
92
92
|
agentId: string;
|
|
93
93
|
page?: number;
|
|
94
94
|
search?: string;
|
|
95
|
+
messageSearch?: string;
|
|
96
|
+
conversationId?: string;
|
|
97
|
+
messageId?: string;
|
|
95
98
|
appId?: string;
|
|
96
99
|
instanceId?: string;
|
|
97
100
|
lastMessageFrom?: Date;
|
|
@@ -359,7 +362,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
359
362
|
* Get conversations for an agent
|
|
360
363
|
* Get conversations for an agent
|
|
361
364
|
*/
|
|
362
|
-
getConversationsForAgent(agentId: string, page?: number, search?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, sortOrder?: GetConversationsForAgentSortOrderEnum, messageReaction?: GetConversationsForAgentMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
365
|
+
getConversationsForAgent(agentId: string, page?: number, search?: string, messageSearch?: string, conversationId?: string, messageId?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, sortOrder?: GetConversationsForAgentSortOrderEnum, messageReaction?: GetConversationsForAgentMessageReactionEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
|
|
363
366
|
/**
|
|
364
367
|
* Retrieves a specific conversation flow by ID
|
|
365
368
|
* Get a specific flow
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -662,6 +662,15 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
662
662
|
if (requestParameters['search'] != null) {
|
|
663
663
|
queryParameters['search'] = requestParameters['search'];
|
|
664
664
|
}
|
|
665
|
+
if (requestParameters['messageSearch'] != null) {
|
|
666
|
+
queryParameters['messageSearch'] = requestParameters['messageSearch'];
|
|
667
|
+
}
|
|
668
|
+
if (requestParameters['conversationId'] != null) {
|
|
669
|
+
queryParameters['conversationId'] = requestParameters['conversationId'];
|
|
670
|
+
}
|
|
671
|
+
if (requestParameters['messageId'] != null) {
|
|
672
|
+
queryParameters['messageId'] = requestParameters['messageId'];
|
|
673
|
+
}
|
|
665
674
|
if (requestParameters['appId'] != null) {
|
|
666
675
|
queryParameters['appId'] = requestParameters['appId'];
|
|
667
676
|
}
|
|
@@ -696,8 +705,8 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
696
705
|
* Get conversations for an agent
|
|
697
706
|
* Get conversations for an agent
|
|
698
707
|
*/
|
|
699
|
-
async getConversationsForAgent(agentId, page, search, appId, instanceId, lastMessageFrom, lastMessageTo, sortOrder, messageReaction, initOverrides) {
|
|
700
|
-
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo, sortOrder: sortOrder, messageReaction: messageReaction }, initOverrides);
|
|
708
|
+
async getConversationsForAgent(agentId, page, search, messageSearch, conversationId, messageId, appId, instanceId, lastMessageFrom, lastMessageTo, sortOrder, messageReaction, initOverrides) {
|
|
709
|
+
const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, messageSearch: messageSearch, conversationId: conversationId, messageId: messageId, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo, sortOrder: sortOrder, messageReaction: messageReaction }, initOverrides);
|
|
701
710
|
return await response.value();
|
|
702
711
|
}
|
|
703
712
|
/**
|
|
@@ -94,6 +94,18 @@ export interface KnowledgeBaseConfigurationUio {
|
|
|
94
94
|
* @memberof KnowledgeBaseConfigurationUio
|
|
95
95
|
*/
|
|
96
96
|
maxRetrievalLength?: number | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
101
|
+
*/
|
|
102
|
+
isChunkingEnriched?: boolean | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof KnowledgeBaseConfigurationUio
|
|
107
|
+
*/
|
|
108
|
+
boostScore?: number | null;
|
|
97
109
|
/**
|
|
98
110
|
*
|
|
99
111
|
* @type {string}
|
|
@@ -61,6 +61,8 @@ function KnowledgeBaseConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'scoreThreshold': json['scoreThreshold'] == null ? undefined : json['scoreThreshold'],
|
|
62
62
|
'maxDocuments': json['maxDocuments'] == null ? undefined : json['maxDocuments'],
|
|
63
63
|
'maxRetrievalLength': json['maxRetrievalLength'] == null ? undefined : json['maxRetrievalLength'],
|
|
64
|
+
'isChunkingEnriched': json['isChunkingEnriched'] == null ? undefined : json['isChunkingEnriched'],
|
|
65
|
+
'boostScore': json['boostScore'] == null ? undefined : json['boostScore'],
|
|
64
66
|
'vectorizerModel': json['vectorizerModel'] == null ? undefined : json['vectorizerModel'],
|
|
65
67
|
'vectorizerModelDimensions': json['vectorizerModelDimensions'] == null ? undefined : json['vectorizerModelDimensions'],
|
|
66
68
|
'embeddingProviderId': json['embeddingProviderId'] == null ? undefined : json['embeddingProviderId'],
|
|
@@ -89,6 +91,8 @@ function KnowledgeBaseConfigurationUioToJSONTyped(value, ignoreDiscriminator = f
|
|
|
89
91
|
'scoreThreshold': value['scoreThreshold'],
|
|
90
92
|
'maxDocuments': value['maxDocuments'],
|
|
91
93
|
'maxRetrievalLength': value['maxRetrievalLength'],
|
|
94
|
+
'isChunkingEnriched': value['isChunkingEnriched'],
|
|
95
|
+
'boostScore': value['boostScore'],
|
|
92
96
|
'vectorizerModel': value['vectorizerModel'],
|
|
93
97
|
'vectorizerModelDimensions': value['vectorizerModelDimensions'],
|
|
94
98
|
'embeddingProviderId': value['embeddingProviderId'],
|
|
@@ -33,6 +33,12 @@ export interface SearchKnowledgeBase200ResponseInnerUio {
|
|
|
33
33
|
* @memberof SearchKnowledgeBase200ResponseInnerUio
|
|
34
34
|
*/
|
|
35
35
|
score: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SearchKnowledgeBase200ResponseInnerUio
|
|
40
|
+
*/
|
|
41
|
+
breadcrumb?: string | null;
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
44
|
* @type {{ [key: string]: any; }}
|
|
@@ -41,6 +41,7 @@ function SearchKnowledgeBase200ResponseInnerUioFromJSONTyped(json, ignoreDiscrim
|
|
|
41
41
|
'id': json['id'],
|
|
42
42
|
'content': json['content'],
|
|
43
43
|
'score': json['score'],
|
|
44
|
+
'breadcrumb': json['breadcrumb'] == null ? undefined : json['breadcrumb'],
|
|
44
45
|
'file': json['file'] == null ? undefined : json['file'],
|
|
45
46
|
};
|
|
46
47
|
}
|
|
@@ -55,6 +56,7 @@ function SearchKnowledgeBase200ResponseInnerUioToJSONTyped(value, ignoreDiscrimi
|
|
|
55
56
|
'id': value['id'],
|
|
56
57
|
'content': value['content'],
|
|
57
58
|
'score': value['score'],
|
|
59
|
+
'breadcrumb': value['breadcrumb'],
|
|
58
60
|
'file': value['file'],
|
|
59
61
|
};
|
|
60
62
|
}
|
package/dist/openapi.json
CHANGED
|
@@ -1593,6 +1593,27 @@
|
|
|
1593
1593
|
"schema" : {
|
|
1594
1594
|
"type" : "string"
|
|
1595
1595
|
}
|
|
1596
|
+
}, {
|
|
1597
|
+
"description" : "Search conversations by message content",
|
|
1598
|
+
"in" : "query",
|
|
1599
|
+
"name" : "messageSearch",
|
|
1600
|
+
"schema" : {
|
|
1601
|
+
"type" : "string"
|
|
1602
|
+
}
|
|
1603
|
+
}, {
|
|
1604
|
+
"description" : "Filter by conversation id (exact or partial match)",
|
|
1605
|
+
"in" : "query",
|
|
1606
|
+
"name" : "conversationId",
|
|
1607
|
+
"schema" : {
|
|
1608
|
+
"type" : "string"
|
|
1609
|
+
}
|
|
1610
|
+
}, {
|
|
1611
|
+
"description" : "Filter conversations containing a message with this id (exact or partial match)",
|
|
1612
|
+
"in" : "query",
|
|
1613
|
+
"name" : "messageId",
|
|
1614
|
+
"schema" : {
|
|
1615
|
+
"type" : "string"
|
|
1616
|
+
}
|
|
1596
1617
|
}, {
|
|
1597
1618
|
"description" : "App id",
|
|
1598
1619
|
"in" : "query",
|
|
@@ -11442,6 +11463,30 @@
|
|
|
11442
11463
|
"type" : "string"
|
|
11443
11464
|
}
|
|
11444
11465
|
},
|
|
11466
|
+
"messageSearch" : {
|
|
11467
|
+
"description" : "Search conversations by message content",
|
|
11468
|
+
"in" : "query",
|
|
11469
|
+
"name" : "messageSearch",
|
|
11470
|
+
"schema" : {
|
|
11471
|
+
"type" : "string"
|
|
11472
|
+
}
|
|
11473
|
+
},
|
|
11474
|
+
"conversationId" : {
|
|
11475
|
+
"description" : "Filter by conversation id (exact or partial match)",
|
|
11476
|
+
"in" : "query",
|
|
11477
|
+
"name" : "conversationId",
|
|
11478
|
+
"schema" : {
|
|
11479
|
+
"type" : "string"
|
|
11480
|
+
}
|
|
11481
|
+
},
|
|
11482
|
+
"messageId" : {
|
|
11483
|
+
"description" : "Filter conversations containing a message with this id (exact or partial match)",
|
|
11484
|
+
"in" : "query",
|
|
11485
|
+
"name" : "messageId",
|
|
11486
|
+
"schema" : {
|
|
11487
|
+
"type" : "string"
|
|
11488
|
+
}
|
|
11489
|
+
},
|
|
11445
11490
|
"appId" : {
|
|
11446
11491
|
"description" : "App id",
|
|
11447
11492
|
"in" : "query",
|
|
@@ -16166,6 +16211,14 @@
|
|
|
16166
16211
|
"nullable" : true,
|
|
16167
16212
|
"type" : "number"
|
|
16168
16213
|
},
|
|
16214
|
+
"isChunkingEnriched" : {
|
|
16215
|
+
"nullable" : true,
|
|
16216
|
+
"type" : "boolean"
|
|
16217
|
+
},
|
|
16218
|
+
"boostScore" : {
|
|
16219
|
+
"nullable" : true,
|
|
16220
|
+
"type" : "number"
|
|
16221
|
+
},
|
|
16169
16222
|
"vectorizerModel" : {
|
|
16170
16223
|
"nullable" : true,
|
|
16171
16224
|
"type" : "string"
|
|
@@ -17438,6 +17491,10 @@
|
|
|
17438
17491
|
"score" : {
|
|
17439
17492
|
"type" : "number"
|
|
17440
17493
|
},
|
|
17494
|
+
"breadcrumb" : {
|
|
17495
|
+
"nullable" : true,
|
|
17496
|
+
"type" : "string"
|
|
17497
|
+
},
|
|
17441
17498
|
"file" : {
|
|
17442
17499
|
"additionalProperties" : true,
|
|
17443
17500
|
"type" : "object"
|