@breign/client 1.0.97 → 1.0.99

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.
@@ -80,6 +80,7 @@ export interface GetConversationsForAgentRequest {
80
80
  instanceId?: string;
81
81
  lastMessageFrom?: Date;
82
82
  lastMessageTo?: Date;
83
+ sortOrder?: GetConversationsForAgentSortOrderEnum;
83
84
  }
84
85
  export interface GetFlowRequest {
85
86
  agentId: string;
@@ -311,7 +312,7 @@ export declare class AgentApi extends runtime.BaseAPI {
311
312
  * Get conversations for an agent
312
313
  * Get conversations for an agent
313
314
  */
314
- getConversationsForAgent(agentId: string, page?: number, search?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
315
+ getConversationsForAgent(agentId: string, page?: number, search?: string, appId?: string, instanceId?: string, lastMessageFrom?: Date, lastMessageTo?: Date, sortOrder?: GetConversationsForAgentSortOrderEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ChatUio>>;
315
316
  /**
316
317
  * Retrieves a specific conversation flow by ID
317
318
  * Get a specific flow
@@ -493,6 +494,14 @@ export declare const GetAgentsProviderSourceEnum: {
493
494
  readonly Internal: "INTERNAL";
494
495
  };
495
496
  export type GetAgentsProviderSourceEnum = typeof GetAgentsProviderSourceEnum[keyof typeof GetAgentsProviderSourceEnum];
497
+ /**
498
+ * @export
499
+ */
500
+ export declare const GetConversationsForAgentSortOrderEnum: {
501
+ readonly Asc: "asc";
502
+ readonly Desc: "desc";
503
+ };
504
+ export type GetConversationsForAgentSortOrderEnum = typeof GetConversationsForAgentSortOrderEnum[keyof typeof GetConversationsForAgentSortOrderEnum];
496
505
  /**
497
506
  * @export
498
507
  */
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
46
46
  };
47
47
  })();
48
48
  Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.ListOrganizationAgentsProviderSourceEnum = exports.GetAgentsProviderSourceEnum = exports.AgentApi = void 0;
49
+ exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.AgentApi = void 0;
50
50
  const runtime = __importStar(require("../runtime"));
51
51
  const index_1 = require("../models/index");
52
52
  /**
@@ -566,6 +566,9 @@ class AgentApi extends runtime.BaseAPI {
566
566
  if (requestParameters['lastMessageTo'] != null) {
567
567
  queryParameters['lastMessageTo'] = requestParameters['lastMessageTo'].toISOString();
568
568
  }
569
+ if (requestParameters['sortOrder'] != null) {
570
+ queryParameters['sortOrder'] = requestParameters['sortOrder'];
571
+ }
569
572
  const headerParameters = {};
570
573
  if (this.configuration && this.configuration.apiKey) {
571
574
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
@@ -582,8 +585,8 @@ class AgentApi extends runtime.BaseAPI {
582
585
  * Get conversations for an agent
583
586
  * Get conversations for an agent
584
587
  */
585
- async getConversationsForAgent(agentId, page, search, appId, instanceId, lastMessageFrom, lastMessageTo, initOverrides) {
586
- const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo }, initOverrides);
588
+ async getConversationsForAgent(agentId, page, search, appId, instanceId, lastMessageFrom, lastMessageTo, sortOrder, initOverrides) {
589
+ const response = await this.getConversationsForAgentRaw({ agentId: agentId, page: page, search: search, appId: appId, instanceId: instanceId, lastMessageFrom: lastMessageFrom, lastMessageTo: lastMessageTo, sortOrder: sortOrder }, initOverrides);
587
590
  return await response.value();
588
591
  }
589
592
  /**
@@ -1161,6 +1164,13 @@ exports.GetAgentsProviderSourceEnum = {
1161
1164
  External: 'EXTERNAL',
1162
1165
  Internal: 'INTERNAL'
1163
1166
  };
1167
+ /**
1168
+ * @export
1169
+ */
1170
+ exports.GetConversationsForAgentSortOrderEnum = {
1171
+ Asc: 'asc',
1172
+ Desc: 'desc'
1173
+ };
1164
1174
  /**
1165
1175
  * @export
1166
1176
  */
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
13
+ import type { ContextualKnowledgeConversationUio } from './ContextualKnowledgeConversationUio';
13
14
  import type { PersonaUio } from './PersonaUio';
14
15
  import type { PromptInitUio } from './PromptInitUio';
15
16
  import type { AgentPatchEngineUio } from './AgentPatchEngineUio';
@@ -180,6 +181,12 @@ export interface AgentPatchUio {
180
181
  * @memberof AgentPatchUio
181
182
  */
182
183
  maxToolSteps?: number;
184
+ /**
185
+ *
186
+ * @type {ContextualKnowledgeConversationUio}
187
+ * @memberof AgentPatchUio
188
+ */
189
+ contextualKnowledgeConversation?: ContextualKnowledgeConversationUio;
183
190
  }
184
191
  /**
185
192
  * Check if a given object implements the AgentPatchUio interface.
@@ -19,6 +19,7 @@ exports.AgentPatchUioFromJSONTyped = AgentPatchUioFromJSONTyped;
19
19
  exports.AgentPatchUioToJSON = AgentPatchUioToJSON;
20
20
  exports.AgentPatchUioToJSONTyped = AgentPatchUioToJSONTyped;
21
21
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
22
+ const ContextualKnowledgeConversationUio_1 = require("./ContextualKnowledgeConversationUio");
22
23
  const PersonaUio_1 = require("./PersonaUio");
23
24
  const PromptInitUio_1 = require("./PromptInitUio");
24
25
  const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
@@ -63,6 +64,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
63
64
  'personal': json['personal'] == null ? undefined : json['personal'],
64
65
  'hideConversationsInHistory': json['hideConversationsInHistory'] == null ? undefined : json['hideConversationsInHistory'],
65
66
  'maxToolSteps': json['maxToolSteps'] == null ? undefined : json['maxToolSteps'],
67
+ 'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
66
68
  };
67
69
  }
68
70
  function AgentPatchUioToJSON(json) {
@@ -99,5 +101,6 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
99
101
  'personal': value['personal'],
100
102
  'hideConversationsInHistory': value['hideConversationsInHistory'],
101
103
  'maxToolSteps': value['maxToolSteps'],
104
+ 'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
102
105
  };
103
106
  }
@@ -12,6 +12,7 @@
12
12
  import type { AgentRoleDetailsUio } from './AgentRoleDetailsUio';
13
13
  import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
14
14
  import type { AgentToolUio } from './AgentToolUio';
15
+ import type { ContextualKnowledgeConversationUio } from './ContextualKnowledgeConversationUio';
15
16
  import type { PersonaUio } from './PersonaUio';
16
17
  import type { AgentCreatorUio } from './AgentCreatorUio';
17
18
  import type { EngineUio } from './EngineUio';
@@ -215,6 +216,12 @@ export interface AgentUio {
215
216
  * @memberof AgentUio
216
217
  */
217
218
  maxToolSteps?: number;
219
+ /**
220
+ *
221
+ * @type {ContextualKnowledgeConversationUio}
222
+ * @memberof AgentUio
223
+ */
224
+ contextualKnowledgeConversation?: ContextualKnowledgeConversationUio;
218
225
  /**
219
226
  *
220
227
  * @type {AgentCreatorUio}
@@ -22,6 +22,7 @@ exports.AgentUioToJSONTyped = AgentUioToJSONTyped;
22
22
  const AgentRoleDetailsUio_1 = require("./AgentRoleDetailsUio");
23
23
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
24
24
  const AgentToolUio_1 = require("./AgentToolUio");
25
+ const ContextualKnowledgeConversationUio_1 = require("./ContextualKnowledgeConversationUio");
25
26
  const PersonaUio_1 = require("./PersonaUio");
26
27
  const AgentCreatorUio_1 = require("./AgentCreatorUio");
27
28
  const EngineUio_1 = require("./EngineUio");
@@ -98,6 +99,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
98
99
  'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
99
100
  'hideConversationsInHistory': json['hideConversationsInHistory'] == null ? undefined : json['hideConversationsInHistory'],
100
101
  'maxToolSteps': json['maxToolSteps'] == null ? undefined : json['maxToolSteps'],
102
+ 'contextualKnowledgeConversation': json['contextualKnowledgeConversation'] == null ? undefined : (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioFromJSON)(json['contextualKnowledgeConversation']),
101
103
  'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
102
104
  'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
103
105
  'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
@@ -142,6 +144,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
142
144
  'createdBy': value['createdBy'],
143
145
  'hideConversationsInHistory': value['hideConversationsInHistory'],
144
146
  'maxToolSteps': value['maxToolSteps'],
147
+ 'contextualKnowledgeConversation': (0, ContextualKnowledgeConversationUio_1.ContextualKnowledgeConversationUioToJSON)(value['contextualKnowledgeConversation']),
145
148
  'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
146
149
  'engineSource': value['engineSource'],
147
150
  'providerSource': value['providerSource'],
@@ -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 ContextualKnowledgeConversationEmbeddingUio
16
+ */
17
+ export interface ContextualKnowledgeConversationEmbeddingUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ContextualKnowledgeConversationEmbeddingUio
22
+ */
23
+ providerId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ContextualKnowledgeConversationEmbeddingUio
28
+ */
29
+ modelId: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ContextualKnowledgeConversationEmbeddingUio
34
+ */
35
+ dimensions?: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ContextualKnowledgeConversationEmbeddingUio interface.
39
+ */
40
+ export declare function instanceOfContextualKnowledgeConversationEmbeddingUio(value: object): value is ContextualKnowledgeConversationEmbeddingUio;
41
+ export declare function ContextualKnowledgeConversationEmbeddingUioFromJSON(json: any): ContextualKnowledgeConversationEmbeddingUio;
42
+ export declare function ContextualKnowledgeConversationEmbeddingUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContextualKnowledgeConversationEmbeddingUio;
43
+ export declare function ContextualKnowledgeConversationEmbeddingUioToJSON(json: any): ContextualKnowledgeConversationEmbeddingUio;
44
+ export declare function ContextualKnowledgeConversationEmbeddingUioToJSONTyped(value?: ContextualKnowledgeConversationEmbeddingUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfContextualKnowledgeConversationEmbeddingUio = instanceOfContextualKnowledgeConversationEmbeddingUio;
17
+ exports.ContextualKnowledgeConversationEmbeddingUioFromJSON = ContextualKnowledgeConversationEmbeddingUioFromJSON;
18
+ exports.ContextualKnowledgeConversationEmbeddingUioFromJSONTyped = ContextualKnowledgeConversationEmbeddingUioFromJSONTyped;
19
+ exports.ContextualKnowledgeConversationEmbeddingUioToJSON = ContextualKnowledgeConversationEmbeddingUioToJSON;
20
+ exports.ContextualKnowledgeConversationEmbeddingUioToJSONTyped = ContextualKnowledgeConversationEmbeddingUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ContextualKnowledgeConversationEmbeddingUio interface.
23
+ */
24
+ function instanceOfContextualKnowledgeConversationEmbeddingUio(value) {
25
+ if (!('providerId' in value) || value['providerId'] === undefined)
26
+ return false;
27
+ if (!('modelId' in value) || value['modelId'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ContextualKnowledgeConversationEmbeddingUioFromJSON(json) {
32
+ return ContextualKnowledgeConversationEmbeddingUioFromJSONTyped(json, false);
33
+ }
34
+ function ContextualKnowledgeConversationEmbeddingUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'providerId': json['providerId'],
40
+ 'modelId': json['modelId'],
41
+ 'dimensions': json['dimensions'] == null ? undefined : json['dimensions'],
42
+ };
43
+ }
44
+ function ContextualKnowledgeConversationEmbeddingUioToJSON(json) {
45
+ return ContextualKnowledgeConversationEmbeddingUioToJSONTyped(json, false);
46
+ }
47
+ function ContextualKnowledgeConversationEmbeddingUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'providerId': value['providerId'],
53
+ 'modelId': value['modelId'],
54
+ 'dimensions': value['dimensions'],
55
+ };
56
+ }
@@ -0,0 +1,84 @@
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
+ import type { ContextualKnowledgeConversationEmbeddingUio } from './ContextualKnowledgeConversationEmbeddingUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ContextualKnowledgeConversationUio
17
+ */
18
+ export interface ContextualKnowledgeConversationUio {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ContextualKnowledgeConversationUio
23
+ */
24
+ enabled: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ContextualKnowledgeConversationUio
29
+ */
30
+ backend: ContextualKnowledgeConversationUioBackendEnum;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ContextualKnowledgeConversationUio
35
+ */
36
+ sizeThresholdBytes: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ContextualKnowledgeConversationUio
41
+ */
42
+ ttlDays: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof ContextualKnowledgeConversationUio
47
+ */
48
+ scoreThreshold?: number;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof ContextualKnowledgeConversationUio
53
+ */
54
+ maxDocuments?: number;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof ContextualKnowledgeConversationUio
59
+ */
60
+ maxRetrievalLength?: number;
61
+ /**
62
+ *
63
+ * @type {ContextualKnowledgeConversationEmbeddingUio}
64
+ * @memberof ContextualKnowledgeConversationUio
65
+ */
66
+ embedding?: ContextualKnowledgeConversationEmbeddingUio;
67
+ }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const ContextualKnowledgeConversationUioBackendEnum: {
72
+ readonly Weaviate: "weaviate";
73
+ readonly Qdrant: "qdrant";
74
+ readonly Colpali: "colpali";
75
+ };
76
+ export type ContextualKnowledgeConversationUioBackendEnum = typeof ContextualKnowledgeConversationUioBackendEnum[keyof typeof ContextualKnowledgeConversationUioBackendEnum];
77
+ /**
78
+ * Check if a given object implements the ContextualKnowledgeConversationUio interface.
79
+ */
80
+ export declare function instanceOfContextualKnowledgeConversationUio(value: object): value is ContextualKnowledgeConversationUio;
81
+ export declare function ContextualKnowledgeConversationUioFromJSON(json: any): ContextualKnowledgeConversationUio;
82
+ export declare function ContextualKnowledgeConversationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContextualKnowledgeConversationUio;
83
+ export declare function ContextualKnowledgeConversationUioToJSON(json: any): ContextualKnowledgeConversationUio;
84
+ export declare function ContextualKnowledgeConversationUioToJSONTyped(value?: ContextualKnowledgeConversationUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
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.ContextualKnowledgeConversationUioBackendEnum = void 0;
17
+ exports.instanceOfContextualKnowledgeConversationUio = instanceOfContextualKnowledgeConversationUio;
18
+ exports.ContextualKnowledgeConversationUioFromJSON = ContextualKnowledgeConversationUioFromJSON;
19
+ exports.ContextualKnowledgeConversationUioFromJSONTyped = ContextualKnowledgeConversationUioFromJSONTyped;
20
+ exports.ContextualKnowledgeConversationUioToJSON = ContextualKnowledgeConversationUioToJSON;
21
+ exports.ContextualKnowledgeConversationUioToJSONTyped = ContextualKnowledgeConversationUioToJSONTyped;
22
+ const ContextualKnowledgeConversationEmbeddingUio_1 = require("./ContextualKnowledgeConversationEmbeddingUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ContextualKnowledgeConversationUioBackendEnum = {
27
+ Weaviate: 'weaviate',
28
+ Qdrant: 'qdrant',
29
+ Colpali: 'colpali'
30
+ };
31
+ /**
32
+ * Check if a given object implements the ContextualKnowledgeConversationUio interface.
33
+ */
34
+ function instanceOfContextualKnowledgeConversationUio(value) {
35
+ if (!('enabled' in value) || value['enabled'] === undefined)
36
+ return false;
37
+ if (!('backend' in value) || value['backend'] === undefined)
38
+ return false;
39
+ if (!('sizeThresholdBytes' in value) || value['sizeThresholdBytes'] === undefined)
40
+ return false;
41
+ if (!('ttlDays' in value) || value['ttlDays'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function ContextualKnowledgeConversationUioFromJSON(json) {
46
+ return ContextualKnowledgeConversationUioFromJSONTyped(json, false);
47
+ }
48
+ function ContextualKnowledgeConversationUioFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'enabled': json['enabled'],
54
+ 'backend': json['backend'],
55
+ 'sizeThresholdBytes': json['sizeThresholdBytes'],
56
+ 'ttlDays': json['ttlDays'],
57
+ 'scoreThreshold': json['scoreThreshold'] == null ? undefined : json['scoreThreshold'],
58
+ 'maxDocuments': json['maxDocuments'] == null ? undefined : json['maxDocuments'],
59
+ 'maxRetrievalLength': json['maxRetrievalLength'] == null ? undefined : json['maxRetrievalLength'],
60
+ 'embedding': json['embedding'] == null ? undefined : (0, ContextualKnowledgeConversationEmbeddingUio_1.ContextualKnowledgeConversationEmbeddingUioFromJSON)(json['embedding']),
61
+ };
62
+ }
63
+ function ContextualKnowledgeConversationUioToJSON(json) {
64
+ return ContextualKnowledgeConversationUioToJSONTyped(json, false);
65
+ }
66
+ function ContextualKnowledgeConversationUioToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'enabled': value['enabled'],
72
+ 'backend': value['backend'],
73
+ 'sizeThresholdBytes': value['sizeThresholdBytes'],
74
+ 'ttlDays': value['ttlDays'],
75
+ 'scoreThreshold': value['scoreThreshold'],
76
+ 'maxDocuments': value['maxDocuments'],
77
+ 'maxRetrievalLength': value['maxRetrievalLength'],
78
+ 'embedding': (0, ContextualKnowledgeConversationEmbeddingUio_1.ContextualKnowledgeConversationEmbeddingUioToJSON)(value['embedding']),
79
+ };
80
+ }
@@ -95,6 +95,8 @@ export * from './ConfigurationDefaultFillerPhrasesUio';
95
95
  export * from './ConnectOAuth2Tool200ResponseUio';
96
96
  export * from './ContentsToolsUio';
97
97
  export * from './ContextUio';
98
+ export * from './ContextualKnowledgeConversationEmbeddingUio';
99
+ export * from './ContextualKnowledgeConversationUio';
98
100
  export * from './Conversation1Uio';
99
101
  export * from './ConversationAttachmentDownloadUrlUio';
100
102
  export * from './ConversationMessagesInnerFlowNodeEntrypointsUio';
@@ -113,6 +113,8 @@ __exportStar(require("./ConfigurationDefaultFillerPhrasesUio"), exports);
113
113
  __exportStar(require("./ConnectOAuth2Tool200ResponseUio"), exports);
114
114
  __exportStar(require("./ContentsToolsUio"), exports);
115
115
  __exportStar(require("./ContextUio"), exports);
116
+ __exportStar(require("./ContextualKnowledgeConversationEmbeddingUio"), exports);
117
+ __exportStar(require("./ContextualKnowledgeConversationUio"), exports);
116
118
  __exportStar(require("./Conversation1Uio"), exports);
117
119
  __exportStar(require("./ConversationAttachmentDownloadUrlUio"), exports);
118
120
  __exportStar(require("./ConversationMessagesInnerFlowNodeEntrypointsUio"), exports);
package/dist/openapi.json CHANGED
@@ -1496,6 +1496,15 @@
1496
1496
  "format" : "date-time",
1497
1497
  "type" : "string"
1498
1498
  }
1499
+ }, {
1500
+ "description" : "Sort conversations by last activity (asc = oldest first, desc = most recent first)",
1501
+ "in" : "query",
1502
+ "name" : "sortOrder",
1503
+ "schema" : {
1504
+ "default" : "desc",
1505
+ "enum" : [ "asc", "desc" ],
1506
+ "type" : "string"
1507
+ }
1499
1508
  } ],
1500
1509
  "responses" : {
1501
1510
  "200" : {
@@ -8536,6 +8545,16 @@
8536
8545
  "type" : "string"
8537
8546
  }
8538
8547
  },
8548
+ "sortOrder" : {
8549
+ "description" : "Sort conversations by last activity (asc = oldest first, desc = most recent first)",
8550
+ "in" : "query",
8551
+ "name" : "sortOrder",
8552
+ "schema" : {
8553
+ "default" : "desc",
8554
+ "enum" : [ "asc", "desc" ],
8555
+ "type" : "string"
8556
+ }
8557
+ },
8539
8558
  "ephemeral" : {
8540
8559
  "description" : "If true, the resource will not appear in history and will be deleted after a certain time.",
8541
8560
  "in" : "query",
@@ -9181,6 +9200,9 @@
9181
9200
  "minimum" : 1,
9182
9201
  "type" : "integer"
9183
9202
  },
9203
+ "contextualKnowledgeConversation" : {
9204
+ "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
9205
+ },
9184
9206
  "creator" : {
9185
9207
  "$ref" : "#/components/schemas/Agent_creator"
9186
9208
  },
@@ -9303,6 +9325,42 @@
9303
9325
  "required" : [ "amountForPrice", "currency", "price" ],
9304
9326
  "type" : "object"
9305
9327
  },
9328
+ "ContextualKnowledgeConversation" : {
9329
+ "properties" : {
9330
+ "enabled" : {
9331
+ "type" : "boolean"
9332
+ },
9333
+ "backend" : {
9334
+ "enum" : [ "weaviate", "qdrant", "colpali" ],
9335
+ "type" : "string"
9336
+ },
9337
+ "sizeThresholdBytes" : {
9338
+ "minimum" : 1,
9339
+ "type" : "integer"
9340
+ },
9341
+ "ttlDays" : {
9342
+ "maximum" : 365,
9343
+ "minimum" : 1,
9344
+ "type" : "integer"
9345
+ },
9346
+ "scoreThreshold" : {
9347
+ "type" : "number"
9348
+ },
9349
+ "maxDocuments" : {
9350
+ "minimum" : 1,
9351
+ "type" : "integer"
9352
+ },
9353
+ "maxRetrievalLength" : {
9354
+ "minimum" : 1,
9355
+ "type" : "integer"
9356
+ },
9357
+ "embedding" : {
9358
+ "$ref" : "#/components/schemas/ContextualKnowledgeConversation_embedding"
9359
+ }
9360
+ },
9361
+ "required" : [ "backend", "enabled", "sizeThresholdBytes", "ttlDays" ],
9362
+ "type" : "object"
9363
+ },
9306
9364
  "AgentRequest" : {
9307
9365
  "properties" : {
9308
9366
  "name" : {
@@ -9454,6 +9512,9 @@
9454
9512
  "maximum" : 50,
9455
9513
  "minimum" : 1,
9456
9514
  "type" : "integer"
9515
+ },
9516
+ "contextualKnowledgeConversation" : {
9517
+ "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
9457
9518
  }
9458
9519
  },
9459
9520
  "type" : "object"
@@ -13171,6 +13232,22 @@
13171
13232
  "required" : [ "additional", "included" ],
13172
13233
  "type" : "object"
13173
13234
  },
13235
+ "ContextualKnowledgeConversation_embedding" : {
13236
+ "properties" : {
13237
+ "providerId" : {
13238
+ "type" : "string"
13239
+ },
13240
+ "modelId" : {
13241
+ "type" : "string"
13242
+ },
13243
+ "dimensions" : {
13244
+ "minimum" : 1,
13245
+ "type" : "integer"
13246
+ }
13247
+ },
13248
+ "required" : [ "modelId", "providerId" ],
13249
+ "type" : "object"
13250
+ },
13174
13251
  "AgentRequest_profilePicture" : {
13175
13252
  "properties" : {
13176
13253
  "hash" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",