@breign/client 1.0.68 → 1.0.70

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.
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ChatMessageWithFlowNodeUio } from './ChatMessageWithFlowNodeUio';
13
12
  import type { ChatContextUio } from './ChatContextUio';
13
+ import type { ChatMessageUio } from './ChatMessageUio';
14
14
  /**
15
15
  *
16
16
  * @export
@@ -79,10 +79,10 @@ export interface ChatUio {
79
79
  init?: string;
80
80
  /**
81
81
  *
82
- * @type {Array<ChatMessageWithFlowNodeUio>}
82
+ * @type {Array<ChatMessageUio>}
83
83
  * @memberof ChatUio
84
84
  */
85
- messages: Array<ChatMessageWithFlowNodeUio>;
85
+ messages: Array<ChatMessageUio>;
86
86
  /**
87
87
  *
88
88
  * @type {string}
@@ -18,8 +18,8 @@ exports.ChatUioFromJSON = ChatUioFromJSON;
18
18
  exports.ChatUioFromJSONTyped = ChatUioFromJSONTyped;
19
19
  exports.ChatUioToJSON = ChatUioToJSON;
20
20
  exports.ChatUioToJSONTyped = ChatUioToJSONTyped;
21
- const ChatMessageWithFlowNodeUio_1 = require("./ChatMessageWithFlowNodeUio");
22
21
  const ChatContextUio_1 = require("./ChatContextUio");
22
+ const ChatMessageUio_1 = require("./ChatMessageUio");
23
23
  /**
24
24
  * Check if a given object implements the ChatUio interface.
25
25
  */
@@ -58,7 +58,7 @@ function ChatUioFromJSONTyped(json, ignoreDiscriminator) {
58
58
  'customUserId': json['customUserId'] == null ? undefined : json['customUserId'],
59
59
  'summary': json['summary'] == null ? undefined : json['summary'],
60
60
  'init': json['init'] == null ? undefined : json['init'],
61
- 'messages': (json['messages'].map(ChatMessageWithFlowNodeUio_1.ChatMessageWithFlowNodeUioFromJSON)),
61
+ 'messages': (json['messages'].map(ChatMessageUio_1.ChatMessageUioFromJSON)),
62
62
  'createdAt': json['createdAt'],
63
63
  'updatedAt': json['updatedAt'],
64
64
  'context': (0, ChatContextUio_1.ChatContextUioFromJSON)(json['context']),
@@ -82,7 +82,7 @@ function ChatUioToJSONTyped(value, ignoreDiscriminator = false) {
82
82
  'customUserId': value['customUserId'],
83
83
  'summary': value['summary'],
84
84
  'init': value['init'],
85
- 'messages': (value['messages'].map(ChatMessageWithFlowNodeUio_1.ChatMessageWithFlowNodeUioToJSON)),
85
+ 'messages': (value['messages'].map(ChatMessageUio_1.ChatMessageUioToJSON)),
86
86
  'createdAt': value['createdAt'],
87
87
  'updatedAt': value['updatedAt'],
88
88
  'context': (0, ChatContextUio_1.ChatContextUioToJSON)(value['context']),
@@ -38,7 +38,7 @@ export interface EphemeralInstanceUio {
38
38
  * @type {string}
39
39
  * @memberof EphemeralInstanceUio
40
40
  */
41
- urlWebsite: string;
41
+ urlWebsite?: string;
42
42
  /**
43
43
  *
44
44
  * @type {string}
@@ -28,8 +28,6 @@ function instanceOfEphemeralInstanceUio(value) {
28
28
  return false;
29
29
  if (!('name' in value) || value['name'] === undefined)
30
30
  return false;
31
- if (!('urlWebsite' in value) || value['urlWebsite'] === undefined)
32
- return false;
33
31
  if (!('token' in value) || value['token'] === undefined)
34
32
  return false;
35
33
  if (!('active' in value) || value['active'] === undefined)
@@ -51,7 +49,7 @@ function EphemeralInstanceUioFromJSONTyped(json, ignoreDiscriminator) {
51
49
  'id': json['id'],
52
50
  'appId': json['appId'],
53
51
  'name': json['name'],
54
- 'urlWebsite': json['urlWebsite'],
52
+ 'urlWebsite': json['urlWebsite'] == null ? undefined : json['urlWebsite'],
55
53
  'token': json['token'],
56
54
  'active': json['active'],
57
55
  'createdAt': json['createdAt'],
@@ -20,6 +20,7 @@ export declare const ProviderTypeUio: {
20
20
  readonly Other: "other";
21
21
  readonly Gemini: "gemini";
22
22
  readonly Vllm: "vllm";
23
+ readonly VllmResponses: "vllm-responses";
23
24
  };
24
25
  export type ProviderTypeUio = typeof ProviderTypeUio[keyof typeof ProviderTypeUio];
25
26
  export declare function instanceOfProviderTypeUio(value: any): boolean;
@@ -29,7 +29,8 @@ exports.ProviderTypeUio = {
29
29
  Mistral: 'mistral',
30
30
  Other: 'other',
31
31
  Gemini: 'gemini',
32
- Vllm: 'vllm'
32
+ Vllm: 'vllm',
33
+ VllmResponses: 'vllm-responses'
33
34
  };
34
35
  function instanceOfProviderTypeUio(value) {
35
36
  for (const key in exports.ProviderTypeUio) {
@@ -72,7 +72,6 @@ export * from './ChatMessageAudioInnerUio';
72
72
  export * from './ChatMessageRoleUio';
73
73
  export * from './ChatMessageStreamUio';
74
74
  export * from './ChatMessageUio';
75
- export * from './ChatMessageWithFlowNodeUio';
76
75
  export * from './ChatUio';
77
76
  export * from './ChunkContentCreateUio';
78
77
  export * from './ChunkContentUio';
@@ -90,7 +90,6 @@ __exportStar(require("./ChatMessageAudioInnerUio"), exports);
90
90
  __exportStar(require("./ChatMessageRoleUio"), exports);
91
91
  __exportStar(require("./ChatMessageStreamUio"), exports);
92
92
  __exportStar(require("./ChatMessageUio"), exports);
93
- __exportStar(require("./ChatMessageWithFlowNodeUio"), exports);
94
93
  __exportStar(require("./ChatUio"), exports);
95
94
  __exportStar(require("./ChunkContentCreateUio"), exports);
96
95
  __exportStar(require("./ChunkContentUio"), exports);
package/dist/openapi.json CHANGED
@@ -7730,7 +7730,7 @@
7730
7730
  },
7731
7731
  "messages" : {
7732
7732
  "items" : {
7733
- "$ref" : "#/components/schemas/ChatMessageWithFlowNode"
7733
+ "$ref" : "#/components/schemas/ChatMessage"
7734
7734
  },
7735
7735
  "type" : "array"
7736
7736
  },
@@ -7747,18 +7747,6 @@
7747
7747
  "required" : [ "agentId", "context", "createdAt", "id", "lang", "messages", "updatedAt" ],
7748
7748
  "type" : "object"
7749
7749
  },
7750
- "ChatMessageWithFlowNode" : {
7751
- "allOf" : [ {
7752
- "$ref" : "#/components/schemas/ChatMessage"
7753
- }, {
7754
- "properties" : {
7755
- "flowNode" : {
7756
- "$ref" : "#/components/schemas/AgentFlow"
7757
- }
7758
- },
7759
- "type" : "object"
7760
- } ]
7761
- },
7762
7750
  "ChatMessage" : {
7763
7751
  "properties" : {
7764
7752
  "id" : {
@@ -8220,7 +8208,7 @@
8220
8208
  "type" : "string"
8221
8209
  }
8222
8210
  },
8223
- "required" : [ "active", "active", "appId", "createdAt", "id", "lastActivity", "name", "token", "type", "urlWebsite" ],
8211
+ "required" : [ "active", "active", "appId", "createdAt", "id", "lastActivity", "name", "token", "type" ],
8224
8212
  "type" : "object"
8225
8213
  },
8226
8214
  "AppConfiguration" : {
@@ -9966,7 +9954,7 @@
9966
9954
  "type" : "object"
9967
9955
  },
9968
9956
  "ProviderType" : {
9969
- "enum" : [ "ollama", "openai", "mistral", "other", "gemini", "vllm" ],
9957
+ "enum" : [ "ollama", "openai", "mistral", "other", "gemini", "vllm", "vllm-responses" ],
9970
9958
  "type" : "string"
9971
9959
  },
9972
9960
  "GuardianType" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -1,142 +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
- import type { ToolActionUio } from './ToolActionUio';
13
- import type { AgentFlowUio } from './AgentFlowUio';
14
- import type { ChatMessageStreamUio } from './ChatMessageStreamUio';
15
- import type { SuggestionUio } from './SuggestionUio';
16
- import type { ChatMessageRoleUio } from './ChatMessageRoleUio';
17
- import type { FileAttachmentUio } from './FileAttachmentUio';
18
- import type { ChatMessageAudioInnerUio } from './ChatMessageAudioInnerUio';
19
- import type { ToolResultsUio } from './ToolResultsUio';
20
- /**
21
- *
22
- * @export
23
- * @interface ChatMessageWithFlowNodeUio
24
- */
25
- export interface ChatMessageWithFlowNodeUio {
26
- /**
27
- *
28
- * @type {string}
29
- * @memberof ChatMessageWithFlowNodeUio
30
- */
31
- id: string;
32
- /**
33
- *
34
- * @type {ChatMessageRoleUio}
35
- * @memberof ChatMessageWithFlowNodeUio
36
- */
37
- role: ChatMessageRoleUio;
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof ChatMessageWithFlowNodeUio
42
- */
43
- content: string;
44
- /**
45
- *
46
- * @type {boolean}
47
- * @memberof ChatMessageWithFlowNodeUio
48
- */
49
- askConfirmation?: boolean;
50
- /**
51
- *
52
- * @type {string}
53
- * @memberof ChatMessageWithFlowNodeUio
54
- */
55
- confirmationLink?: string;
56
- /**
57
- *
58
- * @type {Array<ToolResultsUio>}
59
- * @memberof ChatMessageWithFlowNodeUio
60
- */
61
- toolResults?: Array<ToolResultsUio>;
62
- /**
63
- *
64
- * @type {Array<SuggestionUio>}
65
- * @memberof ChatMessageWithFlowNodeUio
66
- */
67
- suggestions?: Array<SuggestionUio>;
68
- /**
69
- *
70
- * @type {AgentFlowUio}
71
- * @memberof ChatMessageWithFlowNodeUio
72
- */
73
- flowNode?: AgentFlowUio;
74
- /**
75
- *
76
- * @type {boolean}
77
- * @memberof ChatMessageWithFlowNodeUio
78
- */
79
- flowNodeRequirementsChecked?: boolean;
80
- /**
81
- *
82
- * @type {boolean}
83
- * @memberof ChatMessageWithFlowNodeUio
84
- */
85
- flowNodeRequirementsMet?: boolean;
86
- /**
87
- *
88
- * @type {string}
89
- * @memberof ChatMessageWithFlowNodeUio
90
- */
91
- flowNodeRequirementsCheckReason?: string;
92
- /**
93
- *
94
- * @type {number}
95
- * @memberof ChatMessageWithFlowNodeUio
96
- */
97
- flowNodeIterations?: number;
98
- /**
99
- *
100
- * @type {string}
101
- * @memberof ChatMessageWithFlowNodeUio
102
- */
103
- timestamp: string;
104
- /**
105
- *
106
- * @type {Array<ToolActionUio>}
107
- * @memberof ChatMessageWithFlowNodeUio
108
- */
109
- actions?: Array<ToolActionUio>;
110
- /**
111
- *
112
- * @type {Array<FileAttachmentUio>}
113
- * @memberof ChatMessageWithFlowNodeUio
114
- */
115
- attachments?: Array<FileAttachmentUio>;
116
- /**
117
- *
118
- * @type {Array<ChatMessageAudioInnerUio>}
119
- * @memberof ChatMessageWithFlowNodeUio
120
- */
121
- audio?: Array<ChatMessageAudioInnerUio>;
122
- /**
123
- *
124
- * @type {ChatMessageStreamUio}
125
- * @memberof ChatMessageWithFlowNodeUio
126
- */
127
- stream?: ChatMessageStreamUio | null;
128
- /**
129
- *
130
- * @type {string}
131
- * @memberof ChatMessageWithFlowNodeUio
132
- */
133
- reasoning?: string | null;
134
- }
135
- /**
136
- * Check if a given object implements the ChatMessageWithFlowNodeUio interface.
137
- */
138
- export declare function instanceOfChatMessageWithFlowNodeUio(value: object): value is ChatMessageWithFlowNodeUio;
139
- export declare function ChatMessageWithFlowNodeUioFromJSON(json: any): ChatMessageWithFlowNodeUio;
140
- export declare function ChatMessageWithFlowNodeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatMessageWithFlowNodeUio;
141
- export declare function ChatMessageWithFlowNodeUioToJSON(json: any): ChatMessageWithFlowNodeUio;
142
- export declare function ChatMessageWithFlowNodeUioToJSONTyped(value?: ChatMessageWithFlowNodeUio | null, ignoreDiscriminator?: boolean): any;
@@ -1,98 +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.instanceOfChatMessageWithFlowNodeUio = instanceOfChatMessageWithFlowNodeUio;
17
- exports.ChatMessageWithFlowNodeUioFromJSON = ChatMessageWithFlowNodeUioFromJSON;
18
- exports.ChatMessageWithFlowNodeUioFromJSONTyped = ChatMessageWithFlowNodeUioFromJSONTyped;
19
- exports.ChatMessageWithFlowNodeUioToJSON = ChatMessageWithFlowNodeUioToJSON;
20
- exports.ChatMessageWithFlowNodeUioToJSONTyped = ChatMessageWithFlowNodeUioToJSONTyped;
21
- const ToolActionUio_1 = require("./ToolActionUio");
22
- const AgentFlowUio_1 = require("./AgentFlowUio");
23
- const ChatMessageStreamUio_1 = require("./ChatMessageStreamUio");
24
- const SuggestionUio_1 = require("./SuggestionUio");
25
- const ChatMessageRoleUio_1 = require("./ChatMessageRoleUio");
26
- const FileAttachmentUio_1 = require("./FileAttachmentUio");
27
- const ChatMessageAudioInnerUio_1 = require("./ChatMessageAudioInnerUio");
28
- const ToolResultsUio_1 = require("./ToolResultsUio");
29
- /**
30
- * Check if a given object implements the ChatMessageWithFlowNodeUio interface.
31
- */
32
- function instanceOfChatMessageWithFlowNodeUio(value) {
33
- if (!('id' in value) || value['id'] === undefined)
34
- return false;
35
- if (!('role' in value) || value['role'] === undefined)
36
- return false;
37
- if (!('content' in value) || value['content'] === undefined)
38
- return false;
39
- if (!('timestamp' in value) || value['timestamp'] === undefined)
40
- return false;
41
- return true;
42
- }
43
- function ChatMessageWithFlowNodeUioFromJSON(json) {
44
- return ChatMessageWithFlowNodeUioFromJSONTyped(json, false);
45
- }
46
- function ChatMessageWithFlowNodeUioFromJSONTyped(json, ignoreDiscriminator) {
47
- if (json == null) {
48
- return json;
49
- }
50
- return {
51
- 'id': json['id'],
52
- 'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioFromJSON)(json['role']),
53
- 'content': json['content'],
54
- 'askConfirmation': json['askConfirmation'] == null ? undefined : json['askConfirmation'],
55
- 'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
56
- 'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
57
- 'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
58
- 'flowNode': json['flowNode'] == null ? undefined : (0, AgentFlowUio_1.AgentFlowUioFromJSON)(json['flowNode']),
59
- 'flowNodeRequirementsChecked': json['flowNodeRequirementsChecked'] == null ? undefined : json['flowNodeRequirementsChecked'],
60
- 'flowNodeRequirementsMet': json['flowNodeRequirementsMet'] == null ? undefined : json['flowNodeRequirementsMet'],
61
- 'flowNodeRequirementsCheckReason': json['flowNodeRequirementsCheckReason'] == null ? undefined : json['flowNodeRequirementsCheckReason'],
62
- 'flowNodeIterations': json['flowNodeIterations'] == null ? undefined : json['flowNodeIterations'],
63
- 'timestamp': json['timestamp'],
64
- 'actions': json['actions'] == null ? undefined : (json['actions'].map(ToolActionUio_1.ToolActionUioFromJSON)),
65
- 'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(FileAttachmentUio_1.FileAttachmentUioFromJSON)),
66
- 'audio': json['audio'] == null ? undefined : (json['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioFromJSON)),
67
- 'stream': json['stream'] == null ? undefined : (0, ChatMessageStreamUio_1.ChatMessageStreamUioFromJSON)(json['stream']),
68
- 'reasoning': json['reasoning'] == null ? undefined : json['reasoning'],
69
- };
70
- }
71
- function ChatMessageWithFlowNodeUioToJSON(json) {
72
- return ChatMessageWithFlowNodeUioToJSONTyped(json, false);
73
- }
74
- function ChatMessageWithFlowNodeUioToJSONTyped(value, ignoreDiscriminator = false) {
75
- if (value == null) {
76
- return value;
77
- }
78
- return {
79
- 'id': value['id'],
80
- 'role': (0, ChatMessageRoleUio_1.ChatMessageRoleUioToJSON)(value['role']),
81
- 'content': value['content'],
82
- 'askConfirmation': value['askConfirmation'],
83
- 'confirmationLink': value['confirmationLink'],
84
- 'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
85
- 'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
86
- 'flowNode': (0, AgentFlowUio_1.AgentFlowUioToJSON)(value['flowNode']),
87
- 'flowNodeRequirementsChecked': value['flowNodeRequirementsChecked'],
88
- 'flowNodeRequirementsMet': value['flowNodeRequirementsMet'],
89
- 'flowNodeRequirementsCheckReason': value['flowNodeRequirementsCheckReason'],
90
- 'flowNodeIterations': value['flowNodeIterations'],
91
- 'timestamp': value['timestamp'],
92
- 'actions': value['actions'] == null ? undefined : (value['actions'].map(ToolActionUio_1.ToolActionUioToJSON)),
93
- 'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(FileAttachmentUio_1.FileAttachmentUioToJSON)),
94
- 'audio': value['audio'] == null ? undefined : (value['audio'].map(ChatMessageAudioInnerUio_1.ChatMessageAudioInnerUioToJSON)),
95
- 'stream': (0, ChatMessageStreamUio_1.ChatMessageStreamUioToJSON)(value['stream']),
96
- 'reasoning': value['reasoning'],
97
- };
98
- }