@breign/client 1.0.96 → 1.0.98

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AnimationCreateRequestUio, AppChatCreateRequestUio, AppChatCreateResponseUio, AppChatSayRequestUio, AppChatSayResponseUio, AppChatSubmitMessageRequestUio, AppConfigurationUio, AppCreateRequestUio, AppFlowCreateRequestUio, AppInstanceCreateRequestUio, AppInstanceListItemUio, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, AppVoiceValidateRequestUio, AppVoiceValidateResponseUio, AudioFileUio, AudioFillerExistsResponseUio, BodyWithIdUio, BodyWithMessageUio, ConversationUio, DeleteMessageAudio200ResponseUio, FileCreationRequestUio, FileCreationResponseUio, FillersArrayInnerUio, FlowUio, S3UploadBodyUio, SequenceCreateRequestUio } from '../models/index';
13
+ import type { AnimationCreateRequestUio, AppChatCreateRequestUio, AppChatCreateResponseUio, AppChatSayRequestUio, AppChatSayResponseUio, AppChatSubmitMessageRequestUio, AppConfigurationUio, AppCreateRequestUio, AppFlowCreateRequestUio, AppInstanceCreateRequestUio, AppInstanceListItemUio, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, AudioFileUio, AudioFillerExistsResponseUio, BodyWithIdUio, BodyWithMessageUio, ConversationUio, DeleteMessageAudio200ResponseUio, FileCreationRequestUio, FileCreationResponseUio, FillersArrayInnerUio, FlowUio, S3UploadBodyUio, SequenceCreateRequestUio } from '../models/index';
14
14
  export interface AddAnimationRequest {
15
15
  appId: string;
16
16
  animationCreateRequestUio: AnimationCreateRequestUio;
@@ -156,10 +156,6 @@ export interface UpdateAppProfilePictureRequest {
156
156
  appId: string;
157
157
  fileCreationRequestUio: FileCreationRequestUio;
158
158
  }
159
- export interface ValidateAppVoiceRequest {
160
- appId: string;
161
- appVoiceValidateRequestUio: AppVoiceValidateRequestUio;
162
- }
163
159
  /**
164
160
  *
165
161
  */
@@ -496,14 +492,4 @@ export declare class AppApi extends runtime.BaseAPI {
496
492
  * Update profile picture for an app
497
493
  */
498
494
  updateAppProfilePicture(appId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<S3UploadBodyUio>;
499
- /**
500
- * Validate voice provider, model and voice id without persisting app settings
501
- * Validate app voice settings
502
- */
503
- validateAppVoiceRaw(requestParameters: ValidateAppVoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppVoiceValidateResponseUio>>;
504
- /**
505
- * Validate voice provider, model and voice id without persisting app settings
506
- * Validate app voice settings
507
- */
508
- validateAppVoice(appId: string, appVoiceValidateRequestUio: AppVoiceValidateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppVoiceValidateResponseUio>;
509
495
  }
@@ -1178,39 +1178,5 @@ class AppApi extends runtime.BaseAPI {
1178
1178
  const response = await this.updateAppProfilePictureRaw({ appId: appId, fileCreationRequestUio: fileCreationRequestUio }, initOverrides);
1179
1179
  return await response.value();
1180
1180
  }
1181
- /**
1182
- * Validate voice provider, model and voice id without persisting app settings
1183
- * Validate app voice settings
1184
- */
1185
- async validateAppVoiceRaw(requestParameters, initOverrides) {
1186
- if (requestParameters['appId'] == null) {
1187
- throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling validateAppVoice().');
1188
- }
1189
- if (requestParameters['appVoiceValidateRequestUio'] == null) {
1190
- throw new runtime.RequiredError('appVoiceValidateRequestUio', 'Required parameter "appVoiceValidateRequestUio" was null or undefined when calling validateAppVoice().');
1191
- }
1192
- const queryParameters = {};
1193
- const headerParameters = {};
1194
- headerParameters['Content-Type'] = 'application/json';
1195
- if (this.configuration && this.configuration.apiKey) {
1196
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
1197
- }
1198
- const response = await this.request({
1199
- path: `/apps/{appId}/voice/validate`.replace(`{${"appId"}}`, encodeURIComponent(String(requestParameters['appId']))),
1200
- method: 'POST',
1201
- headers: headerParameters,
1202
- query: queryParameters,
1203
- body: (0, index_1.AppVoiceValidateRequestUioToJSON)(requestParameters['appVoiceValidateRequestUio']),
1204
- }, initOverrides);
1205
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AppVoiceValidateResponseUioFromJSON)(jsonValue));
1206
- }
1207
- /**
1208
- * Validate voice provider, model and voice id without persisting app settings
1209
- * Validate app voice settings
1210
- */
1211
- async validateAppVoice(appId, appVoiceValidateRequestUio, initOverrides) {
1212
- const response = await this.validateAppVoiceRaw({ appId: appId, appVoiceValidateRequestUio: appVoiceValidateRequestUio }, initOverrides);
1213
- return await response.value();
1214
- }
1215
1181
  }
1216
1182
  exports.AppApi = AppApi;
@@ -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
+ }
@@ -61,8 +61,6 @@ export * from './AppTextToSpeechRequestUio';
61
61
  export * from './AppTextToSpeechResponseUio';
62
62
  export * from './AppUio';
63
63
  export * from './AppUpdateRequestUio';
64
- export * from './AppVoiceValidateRequestUio';
65
- export * from './AppVoiceValidateResponseUio';
66
64
  export * from './AttachmentCreateRequestUio';
67
65
  export * from './AttachmentCreateResponseUio';
68
66
  export * from './AttachmentDetailsResponseUio';
@@ -97,6 +95,8 @@ export * from './ConfigurationDefaultFillerPhrasesUio';
97
95
  export * from './ConnectOAuth2Tool200ResponseUio';
98
96
  export * from './ContentsToolsUio';
99
97
  export * from './ContextUio';
98
+ export * from './ContextualKnowledgeConversationEmbeddingUio';
99
+ export * from './ContextualKnowledgeConversationUio';
100
100
  export * from './Conversation1Uio';
101
101
  export * from './ConversationAttachmentDownloadUrlUio';
102
102
  export * from './ConversationMessagesInnerFlowNodeEntrypointsUio';
@@ -79,8 +79,6 @@ __exportStar(require("./AppTextToSpeechRequestUio"), exports);
79
79
  __exportStar(require("./AppTextToSpeechResponseUio"), exports);
80
80
  __exportStar(require("./AppUio"), exports);
81
81
  __exportStar(require("./AppUpdateRequestUio"), exports);
82
- __exportStar(require("./AppVoiceValidateRequestUio"), exports);
83
- __exportStar(require("./AppVoiceValidateResponseUio"), exports);
84
82
  __exportStar(require("./AttachmentCreateRequestUio"), exports);
85
83
  __exportStar(require("./AttachmentCreateResponseUio"), exports);
86
84
  __exportStar(require("./AttachmentDetailsResponseUio"), exports);
@@ -115,6 +113,8 @@ __exportStar(require("./ConfigurationDefaultFillerPhrasesUio"), exports);
115
113
  __exportStar(require("./ConnectOAuth2Tool200ResponseUio"), exports);
116
114
  __exportStar(require("./ContentsToolsUio"), exports);
117
115
  __exportStar(require("./ContextUio"), exports);
116
+ __exportStar(require("./ContextualKnowledgeConversationEmbeddingUio"), exports);
117
+ __exportStar(require("./ContextualKnowledgeConversationUio"), exports);
118
118
  __exportStar(require("./Conversation1Uio"), exports);
119
119
  __exportStar(require("./ConversationAttachmentDownloadUrlUio"), exports);
120
120
  __exportStar(require("./ConversationMessagesInnerFlowNodeEntrypointsUio"), exports);
package/dist/openapi.json CHANGED
@@ -2573,51 +2573,6 @@
2573
2573
  "tags" : [ "app" ]
2574
2574
  }
2575
2575
  },
2576
- "/apps/{appId}/voice/validate" : {
2577
- "post" : {
2578
- "description" : "Validate voice provider, model and voice id without persisting app settings",
2579
- "operationId" : "validateAppVoice",
2580
- "parameters" : [ {
2581
- "description" : "ID of the app",
2582
- "in" : "path",
2583
- "name" : "appId",
2584
- "required" : true,
2585
- "schema" : {
2586
- "type" : "string"
2587
- }
2588
- } ],
2589
- "requestBody" : {
2590
- "content" : {
2591
- "application/json" : {
2592
- "schema" : {
2593
- "$ref" : "#/components/schemas/AppVoiceValidateRequest"
2594
- }
2595
- }
2596
- },
2597
- "required" : true
2598
- },
2599
- "responses" : {
2600
- "200" : {
2601
- "content" : {
2602
- "application/json" : {
2603
- "schema" : {
2604
- "$ref" : "#/components/schemas/AppVoiceValidateResponse"
2605
- }
2606
- }
2607
- },
2608
- "description" : "Voice settings are valid"
2609
- },
2610
- "400" : {
2611
- "description" : "Invalid voice settings"
2612
- },
2613
- "404" : {
2614
- "description" : "App not found"
2615
- }
2616
- },
2617
- "summary" : "Validate app voice settings",
2618
- "tags" : [ "app" ]
2619
- }
2620
- },
2621
2576
  "/apps/{appId}/instances" : {
2622
2577
  "get" : {
2623
2578
  "description" : "List persisted instances for an app (excludes ephemeral instances)",
@@ -9226,6 +9181,9 @@
9226
9181
  "minimum" : 1,
9227
9182
  "type" : "integer"
9228
9183
  },
9184
+ "contextualKnowledgeConversation" : {
9185
+ "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
9186
+ },
9229
9187
  "creator" : {
9230
9188
  "$ref" : "#/components/schemas/Agent_creator"
9231
9189
  },
@@ -9348,6 +9306,42 @@
9348
9306
  "required" : [ "amountForPrice", "currency", "price" ],
9349
9307
  "type" : "object"
9350
9308
  },
9309
+ "ContextualKnowledgeConversation" : {
9310
+ "properties" : {
9311
+ "enabled" : {
9312
+ "type" : "boolean"
9313
+ },
9314
+ "backend" : {
9315
+ "enum" : [ "weaviate", "qdrant", "colpali" ],
9316
+ "type" : "string"
9317
+ },
9318
+ "sizeThresholdBytes" : {
9319
+ "minimum" : 1,
9320
+ "type" : "integer"
9321
+ },
9322
+ "ttlDays" : {
9323
+ "maximum" : 365,
9324
+ "minimum" : 1,
9325
+ "type" : "integer"
9326
+ },
9327
+ "scoreThreshold" : {
9328
+ "type" : "number"
9329
+ },
9330
+ "maxDocuments" : {
9331
+ "minimum" : 1,
9332
+ "type" : "integer"
9333
+ },
9334
+ "maxRetrievalLength" : {
9335
+ "minimum" : 1,
9336
+ "type" : "integer"
9337
+ },
9338
+ "embedding" : {
9339
+ "$ref" : "#/components/schemas/ContextualKnowledgeConversation_embedding"
9340
+ }
9341
+ },
9342
+ "required" : [ "backend", "enabled", "sizeThresholdBytes", "ttlDays" ],
9343
+ "type" : "object"
9344
+ },
9351
9345
  "AgentRequest" : {
9352
9346
  "properties" : {
9353
9347
  "name" : {
@@ -9499,6 +9493,9 @@
9499
9493
  "maximum" : 50,
9500
9494
  "minimum" : 1,
9501
9495
  "type" : "integer"
9496
+ },
9497
+ "contextualKnowledgeConversation" : {
9498
+ "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
9502
9499
  }
9503
9500
  },
9504
9501
  "type" : "object"
@@ -10914,30 +10911,6 @@
10914
10911
  "required" : [ "audio" ],
10915
10912
  "type" : "object"
10916
10913
  },
10917
- "AppVoiceValidateRequest" : {
10918
- "properties" : {
10919
- "voiceProvider" : {
10920
- "type" : "string"
10921
- },
10922
- "voiceModelId" : {
10923
- "type" : "string"
10924
- },
10925
- "voiceId" : {
10926
- "type" : "string"
10927
- }
10928
- },
10929
- "required" : [ "voiceId", "voiceModelId", "voiceProvider" ],
10930
- "type" : "object"
10931
- },
10932
- "AppVoiceValidateResponse" : {
10933
- "properties" : {
10934
- "ok" : {
10935
- "type" : "boolean"
10936
- }
10937
- },
10938
- "required" : [ "ok" ],
10939
- "type" : "object"
10940
- },
10941
10914
  "AppInstanceListItem" : {
10942
10915
  "properties" : {
10943
10916
  "id" : {
@@ -13240,6 +13213,22 @@
13240
13213
  "required" : [ "additional", "included" ],
13241
13214
  "type" : "object"
13242
13215
  },
13216
+ "ContextualKnowledgeConversation_embedding" : {
13217
+ "properties" : {
13218
+ "providerId" : {
13219
+ "type" : "string"
13220
+ },
13221
+ "modelId" : {
13222
+ "type" : "string"
13223
+ },
13224
+ "dimensions" : {
13225
+ "minimum" : 1,
13226
+ "type" : "integer"
13227
+ }
13228
+ },
13229
+ "required" : [ "modelId", "providerId" ],
13230
+ "type" : "object"
13231
+ },
13243
13232
  "AgentRequest_profilePicture" : {
13244
13233
  "properties" : {
13245
13234
  "hash" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -1,44 +0,0 @@
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 AppVoiceValidateRequestUio
16
- */
17
- export interface AppVoiceValidateRequestUio {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AppVoiceValidateRequestUio
22
- */
23
- voiceProvider: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof AppVoiceValidateRequestUio
28
- */
29
- voiceModelId: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof AppVoiceValidateRequestUio
34
- */
35
- voiceId: string;
36
- }
37
- /**
38
- * Check if a given object implements the AppVoiceValidateRequestUio interface.
39
- */
40
- export declare function instanceOfAppVoiceValidateRequestUio(value: object): value is AppVoiceValidateRequestUio;
41
- export declare function AppVoiceValidateRequestUioFromJSON(json: any): AppVoiceValidateRequestUio;
42
- export declare function AppVoiceValidateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppVoiceValidateRequestUio;
43
- export declare function AppVoiceValidateRequestUioToJSON(json: any): AppVoiceValidateRequestUio;
44
- export declare function AppVoiceValidateRequestUioToJSONTyped(value?: AppVoiceValidateRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -1,58 +0,0 @@
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.instanceOfAppVoiceValidateRequestUio = instanceOfAppVoiceValidateRequestUio;
17
- exports.AppVoiceValidateRequestUioFromJSON = AppVoiceValidateRequestUioFromJSON;
18
- exports.AppVoiceValidateRequestUioFromJSONTyped = AppVoiceValidateRequestUioFromJSONTyped;
19
- exports.AppVoiceValidateRequestUioToJSON = AppVoiceValidateRequestUioToJSON;
20
- exports.AppVoiceValidateRequestUioToJSONTyped = AppVoiceValidateRequestUioToJSONTyped;
21
- /**
22
- * Check if a given object implements the AppVoiceValidateRequestUio interface.
23
- */
24
- function instanceOfAppVoiceValidateRequestUio(value) {
25
- if (!('voiceProvider' in value) || value['voiceProvider'] === undefined)
26
- return false;
27
- if (!('voiceModelId' in value) || value['voiceModelId'] === undefined)
28
- return false;
29
- if (!('voiceId' in value) || value['voiceId'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function AppVoiceValidateRequestUioFromJSON(json) {
34
- return AppVoiceValidateRequestUioFromJSONTyped(json, false);
35
- }
36
- function AppVoiceValidateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'voiceProvider': json['voiceProvider'],
42
- 'voiceModelId': json['voiceModelId'],
43
- 'voiceId': json['voiceId'],
44
- };
45
- }
46
- function AppVoiceValidateRequestUioToJSON(json) {
47
- return AppVoiceValidateRequestUioToJSONTyped(json, false);
48
- }
49
- function AppVoiceValidateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'voiceProvider': value['voiceProvider'],
55
- 'voiceModelId': value['voiceModelId'],
56
- 'voiceId': value['voiceId'],
57
- };
58
- }
@@ -1,32 +0,0 @@
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 AppVoiceValidateResponseUio
16
- */
17
- export interface AppVoiceValidateResponseUio {
18
- /**
19
- *
20
- * @type {boolean}
21
- * @memberof AppVoiceValidateResponseUio
22
- */
23
- ok: boolean;
24
- }
25
- /**
26
- * Check if a given object implements the AppVoiceValidateResponseUio interface.
27
- */
28
- export declare function instanceOfAppVoiceValidateResponseUio(value: object): value is AppVoiceValidateResponseUio;
29
- export declare function AppVoiceValidateResponseUioFromJSON(json: any): AppVoiceValidateResponseUio;
30
- export declare function AppVoiceValidateResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppVoiceValidateResponseUio;
31
- export declare function AppVoiceValidateResponseUioToJSON(json: any): AppVoiceValidateResponseUio;
32
- export declare function AppVoiceValidateResponseUioToJSONTyped(value?: AppVoiceValidateResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
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.instanceOfAppVoiceValidateResponseUio = instanceOfAppVoiceValidateResponseUio;
17
- exports.AppVoiceValidateResponseUioFromJSON = AppVoiceValidateResponseUioFromJSON;
18
- exports.AppVoiceValidateResponseUioFromJSONTyped = AppVoiceValidateResponseUioFromJSONTyped;
19
- exports.AppVoiceValidateResponseUioToJSON = AppVoiceValidateResponseUioToJSON;
20
- exports.AppVoiceValidateResponseUioToJSONTyped = AppVoiceValidateResponseUioToJSONTyped;
21
- /**
22
- * Check if a given object implements the AppVoiceValidateResponseUio interface.
23
- */
24
- function instanceOfAppVoiceValidateResponseUio(value) {
25
- if (!('ok' in value) || value['ok'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function AppVoiceValidateResponseUioFromJSON(json) {
30
- return AppVoiceValidateResponseUioFromJSONTyped(json, false);
31
- }
32
- function AppVoiceValidateResponseUioFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'ok': json['ok'],
38
- };
39
- }
40
- function AppVoiceValidateResponseUioToJSON(json) {
41
- return AppVoiceValidateResponseUioToJSONTyped(json, false);
42
- }
43
- function AppVoiceValidateResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'ok': value['ok'],
49
- };
50
- }