@breign/client 1.0.114 → 1.0.116

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.
@@ -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
@@ -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
  /**
@@ -0,0 +1,44 @@
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 AgentMemoryConfigurationUio
16
+ */
17
+ export interface AgentMemoryConfigurationUio {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof AgentMemoryConfigurationUio
22
+ */
23
+ userMemoryEnabled?: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof AgentMemoryConfigurationUio
28
+ */
29
+ agentMemoryEnabled?: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof AgentMemoryConfigurationUio
34
+ */
35
+ organizationMemoryEnabled?: boolean;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AgentMemoryConfigurationUio interface.
39
+ */
40
+ export declare function instanceOfAgentMemoryConfigurationUio(value: object): value is AgentMemoryConfigurationUio;
41
+ export declare function AgentMemoryConfigurationUioFromJSON(json: any): AgentMemoryConfigurationUio;
42
+ export declare function AgentMemoryConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentMemoryConfigurationUio;
43
+ export declare function AgentMemoryConfigurationUioToJSON(json: any): AgentMemoryConfigurationUio;
44
+ export declare function AgentMemoryConfigurationUioToJSONTyped(value?: AgentMemoryConfigurationUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfAgentMemoryConfigurationUio = instanceOfAgentMemoryConfigurationUio;
17
+ exports.AgentMemoryConfigurationUioFromJSON = AgentMemoryConfigurationUioFromJSON;
18
+ exports.AgentMemoryConfigurationUioFromJSONTyped = AgentMemoryConfigurationUioFromJSONTyped;
19
+ exports.AgentMemoryConfigurationUioToJSON = AgentMemoryConfigurationUioToJSON;
20
+ exports.AgentMemoryConfigurationUioToJSONTyped = AgentMemoryConfigurationUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentMemoryConfigurationUio interface.
23
+ */
24
+ function instanceOfAgentMemoryConfigurationUio(value) {
25
+ return true;
26
+ }
27
+ function AgentMemoryConfigurationUioFromJSON(json) {
28
+ return AgentMemoryConfigurationUioFromJSONTyped(json, false);
29
+ }
30
+ function AgentMemoryConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'userMemoryEnabled': json['userMemoryEnabled'] == null ? undefined : json['userMemoryEnabled'],
36
+ 'agentMemoryEnabled': json['agentMemoryEnabled'] == null ? undefined : json['agentMemoryEnabled'],
37
+ 'organizationMemoryEnabled': json['organizationMemoryEnabled'] == null ? undefined : json['organizationMemoryEnabled'],
38
+ };
39
+ }
40
+ function AgentMemoryConfigurationUioToJSON(json) {
41
+ return AgentMemoryConfigurationUioToJSONTyped(json, false);
42
+ }
43
+ function AgentMemoryConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'userMemoryEnabled': value['userMemoryEnabled'],
49
+ 'agentMemoryEnabled': value['agentMemoryEnabled'],
50
+ 'organizationMemoryEnabled': value['organizationMemoryEnabled'],
51
+ };
52
+ }
@@ -13,6 +13,7 @@ import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
13
13
  import type { ContextualKnowledgeConversationUio } from './ContextualKnowledgeConversationUio';
14
14
  import type { PersonaUio } from './PersonaUio';
15
15
  import type { PromptInitUio } from './PromptInitUio';
16
+ import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
16
17
  import type { AgentPatchEngineUio } from './AgentPatchEngineUio';
17
18
  import type { AgentTypeUio } from './AgentTypeUio';
18
19
  /**
@@ -181,6 +182,12 @@ export interface AgentPatchUio {
181
182
  * @memberof AgentPatchUio
182
183
  */
183
184
  maxToolSteps?: number;
185
+ /**
186
+ *
187
+ * @type {AgentMemoryConfigurationUio}
188
+ * @memberof AgentPatchUio
189
+ */
190
+ memoryConfiguration?: AgentMemoryConfigurationUio | null;
184
191
  /**
185
192
  *
186
193
  * @type {ContextualKnowledgeConversationUio}
@@ -22,6 +22,7 @@ const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
22
22
  const ContextualKnowledgeConversationUio_1 = require("./ContextualKnowledgeConversationUio");
23
23
  const PersonaUio_1 = require("./PersonaUio");
24
24
  const PromptInitUio_1 = require("./PromptInitUio");
25
+ const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
25
26
  const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
26
27
  const AgentTypeUio_1 = require("./AgentTypeUio");
27
28
  /**
@@ -64,6 +65,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
64
65
  'personal': json['personal'] == null ? undefined : json['personal'],
65
66
  'hideConversationsInHistory': json['hideConversationsInHistory'] == null ? undefined : json['hideConversationsInHistory'],
66
67
  'maxToolSteps': json['maxToolSteps'] == null ? undefined : json['maxToolSteps'],
68
+ 'memoryConfiguration': json['memoryConfiguration'] == null ? undefined : (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioFromJSON)(json['memoryConfiguration']),
67
69
  'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
68
70
  };
69
71
  }
@@ -101,6 +103,7 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
101
103
  'personal': value['personal'],
102
104
  'hideConversationsInHistory': value['hideConversationsInHistory'],
103
105
  'maxToolSteps': value['maxToolSteps'],
106
+ 'memoryConfiguration': (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioToJSON)(value['memoryConfiguration']),
104
107
  'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
105
108
  };
106
109
  }
@@ -17,6 +17,7 @@ import type { PersonaUio } from './PersonaUio';
17
17
  import type { AgentCreatorUio } from './AgentCreatorUio';
18
18
  import type { EngineUio } from './EngineUio';
19
19
  import type { PromptInitUio } from './PromptInitUio';
20
+ import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
20
21
  import type { AgentTypeUio } from './AgentTypeUio';
21
22
  /**
22
23
  *
@@ -216,6 +217,12 @@ export interface AgentUio {
216
217
  * @memberof AgentUio
217
218
  */
218
219
  maxToolSteps?: number;
220
+ /**
221
+ *
222
+ * @type {AgentMemoryConfigurationUio}
223
+ * @memberof AgentUio
224
+ */
225
+ memoryConfiguration?: AgentMemoryConfigurationUio | null;
219
226
  /**
220
227
  *
221
228
  * @type {ContextualKnowledgeConversationUio}
@@ -27,6 +27,7 @@ const PersonaUio_1 = require("./PersonaUio");
27
27
  const AgentCreatorUio_1 = require("./AgentCreatorUio");
28
28
  const EngineUio_1 = require("./EngineUio");
29
29
  const PromptInitUio_1 = require("./PromptInitUio");
30
+ const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
30
31
  const AgentTypeUio_1 = require("./AgentTypeUio");
31
32
  /**
32
33
  * @export
@@ -99,6 +100,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
99
100
  'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
100
101
  'hideConversationsInHistory': json['hideConversationsInHistory'] == null ? undefined : json['hideConversationsInHistory'],
101
102
  'maxToolSteps': json['maxToolSteps'] == null ? undefined : json['maxToolSteps'],
103
+ 'memoryConfiguration': json['memoryConfiguration'] == null ? undefined : (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioFromJSON)(json['memoryConfiguration']),
102
104
  'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
103
105
  'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
104
106
  'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
@@ -144,6 +146,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
144
146
  'createdBy': value['createdBy'],
145
147
  'hideConversationsInHistory': value['hideConversationsInHistory'],
146
148
  'maxToolSteps': value['maxToolSteps'],
149
+ 'memoryConfiguration': (0, AgentMemoryConfigurationUio_1.AgentMemoryConfigurationUioToJSON)(value['memoryConfiguration']),
147
150
  'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
148
151
  'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
149
152
  'engineSource': value['engineSource'],
@@ -17,6 +17,7 @@ export * from './AgentDuplicateRequestUio';
17
17
  export * from './AgentFeedbackMetricsUio';
18
18
  export * from './AgentFlowCreateUio';
19
19
  export * from './AgentFlowUio';
20
+ export * from './AgentMemoryConfigurationUio';
20
21
  export * from './AgentMetricsByAppUio';
21
22
  export * from './AgentMetricsEventUio';
22
23
  export * from './AgentMetricsOverviewUio';
@@ -35,6 +35,7 @@ __exportStar(require("./AgentDuplicateRequestUio"), exports);
35
35
  __exportStar(require("./AgentFeedbackMetricsUio"), exports);
36
36
  __exportStar(require("./AgentFlowCreateUio"), exports);
37
37
  __exportStar(require("./AgentFlowUio"), exports);
38
+ __exportStar(require("./AgentMemoryConfigurationUio"), exports);
38
39
  __exportStar(require("./AgentMetricsByAppUio"), exports);
39
40
  __exportStar(require("./AgentMetricsEventUio"), exports);
40
41
  __exportStar(require("./AgentMetricsOverviewUio"), exports);
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",
@@ -12167,6 +12212,12 @@
12167
12212
  "minimum" : 1,
12168
12213
  "type" : "integer"
12169
12214
  },
12215
+ "memoryConfiguration" : {
12216
+ "allOf" : [ {
12217
+ "$ref" : "#/components/schemas/AgentMemoryConfiguration"
12218
+ } ],
12219
+ "nullable" : true
12220
+ },
12170
12221
  "contextualKnowledgeConversation" : {
12171
12222
  "allOf" : [ {
12172
12223
  "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
@@ -12302,6 +12353,20 @@
12302
12353
  "required" : [ "amountForPrice", "currency", "price" ],
12303
12354
  "type" : "object"
12304
12355
  },
12356
+ "AgentMemoryConfiguration" : {
12357
+ "properties" : {
12358
+ "userMemoryEnabled" : {
12359
+ "type" : "boolean"
12360
+ },
12361
+ "agentMemoryEnabled" : {
12362
+ "type" : "boolean"
12363
+ },
12364
+ "organizationMemoryEnabled" : {
12365
+ "type" : "boolean"
12366
+ }
12367
+ },
12368
+ "type" : "object"
12369
+ },
12305
12370
  "ContextualKnowledgeConversation" : {
12306
12371
  "properties" : {
12307
12372
  "enabled" : {
@@ -12490,6 +12555,12 @@
12490
12555
  "minimum" : 1,
12491
12556
  "type" : "integer"
12492
12557
  },
12558
+ "memoryConfiguration" : {
12559
+ "allOf" : [ {
12560
+ "$ref" : "#/components/schemas/AgentMemoryConfiguration"
12561
+ } ],
12562
+ "nullable" : true
12563
+ },
12493
12564
  "contextualKnowledgeConversation" : {
12494
12565
  "allOf" : [ {
12495
12566
  "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.114",
3
+ "version": "1.0.116",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",