@breign/client 1.0.24 → 1.0.25

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.
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { SuggestionUio } from './SuggestionUio';
13
13
  import type { InputUio } from './InputUio';
14
+ import type { ToolUsedUio } from './ToolUsedUio';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -47,6 +48,12 @@ export interface PromptCreateResponseUio {
47
48
  * @memberof PromptCreateResponseUio
48
49
  */
49
50
  input: InputUio;
51
+ /**
52
+ *
53
+ * @type {Array<ToolUsedUio>}
54
+ * @memberof PromptCreateResponseUio
55
+ */
56
+ toolsUsed?: Array<ToolUsedUio> | null;
50
57
  }
51
58
  /**
52
59
  * Check if a given object implements the PromptCreateResponseUio interface.
@@ -20,6 +20,7 @@ exports.PromptCreateResponseUioToJSON = PromptCreateResponseUioToJSON;
20
20
  exports.PromptCreateResponseUioToJSONTyped = PromptCreateResponseUioToJSONTyped;
21
21
  const SuggestionUio_1 = require("./SuggestionUio");
22
22
  const InputUio_1 = require("./InputUio");
23
+ const ToolUsedUio_1 = require("./ToolUsedUio");
23
24
  /**
24
25
  * Check if a given object implements the PromptCreateResponseUio interface.
25
26
  */
@@ -47,6 +48,7 @@ function PromptCreateResponseUioFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'text': json['text'],
48
49
  'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
49
50
  'input': (0, InputUio_1.InputUioFromJSON)(json['input']),
51
+ 'toolsUsed': json['toolsUsed'] == null ? undefined : (json['toolsUsed'].map(ToolUsedUio_1.ToolUsedUioFromJSON)),
50
52
  };
51
53
  }
52
54
  function PromptCreateResponseUioToJSON(json) {
@@ -62,5 +64,6 @@ function PromptCreateResponseUioToJSONTyped(value, ignoreDiscriminator = false)
62
64
  'text': value['text'],
63
65
  'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
64
66
  'input': (0, InputUio_1.InputUioToJSON)(value['input']),
67
+ 'toolsUsed': value['toolsUsed'] == null ? undefined : (value['toolsUsed'].map(ToolUsedUio_1.ToolUsedUioToJSON)),
65
68
  };
66
69
  }
@@ -0,0 +1,52 @@
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 ToolUsedUio
16
+ */
17
+ export interface ToolUsedUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ToolUsedUio
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof ToolUsedUio
28
+ */
29
+ params?: {
30
+ [key: string]: any;
31
+ } | null;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof ToolUsedUio
36
+ */
37
+ askConfirmation?: boolean | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ToolUsedUio
42
+ */
43
+ confirmationLink?: string | null;
44
+ }
45
+ /**
46
+ * Check if a given object implements the ToolUsedUio interface.
47
+ */
48
+ export declare function instanceOfToolUsedUio(value: object): value is ToolUsedUio;
49
+ export declare function ToolUsedUioFromJSON(json: any): ToolUsedUio;
50
+ export declare function ToolUsedUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolUsedUio;
51
+ export declare function ToolUsedUioToJSON(json: any): ToolUsedUio;
52
+ export declare function ToolUsedUioToJSONTyped(value?: ToolUsedUio | 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.instanceOfToolUsedUio = instanceOfToolUsedUio;
17
+ exports.ToolUsedUioFromJSON = ToolUsedUioFromJSON;
18
+ exports.ToolUsedUioFromJSONTyped = ToolUsedUioFromJSONTyped;
19
+ exports.ToolUsedUioToJSON = ToolUsedUioToJSON;
20
+ exports.ToolUsedUioToJSONTyped = ToolUsedUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ToolUsedUio interface.
23
+ */
24
+ function instanceOfToolUsedUio(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ToolUsedUioFromJSON(json) {
30
+ return ToolUsedUioFromJSONTyped(json, false);
31
+ }
32
+ function ToolUsedUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'params': json['params'] == null ? undefined : json['params'],
39
+ 'askConfirmation': json['askConfirmation'] == null ? undefined : json['askConfirmation'],
40
+ 'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
41
+ };
42
+ }
43
+ function ToolUsedUioToJSON(json) {
44
+ return ToolUsedUioToJSONTyped(json, false);
45
+ }
46
+ function ToolUsedUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'params': value['params'],
53
+ 'askConfirmation': value['askConfirmation'],
54
+ 'confirmationLink': value['confirmationLink'],
55
+ };
56
+ }
@@ -163,6 +163,7 @@ export * from './ToolSecureManifestUio';
163
163
  export * from './ToolSecureMcpDefinitionUio';
164
164
  export * from './ToolSecureMcpUio';
165
165
  export * from './ToolSecureUio';
166
+ export * from './ToolUsedUio';
166
167
  export * from './TransactionUio';
167
168
  export * from './UserUio';
168
169
  export * from './UserUserUio';
@@ -181,6 +181,7 @@ __exportStar(require("./ToolSecureManifestUio"), exports);
181
181
  __exportStar(require("./ToolSecureMcpDefinitionUio"), exports);
182
182
  __exportStar(require("./ToolSecureMcpUio"), exports);
183
183
  __exportStar(require("./ToolSecureUio"), exports);
184
+ __exportStar(require("./ToolUsedUio"), exports);
184
185
  __exportStar(require("./TransactionUio"), exports);
185
186
  __exportStar(require("./UserUio"), exports);
186
187
  __exportStar(require("./UserUserUio"), exports);
package/dist/openapi.json CHANGED
@@ -8077,6 +8077,13 @@
8077
8077
  },
8078
8078
  "input" : {
8079
8079
  "$ref" : "#/components/schemas/Input"
8080
+ },
8081
+ "toolsUsed" : {
8082
+ "items" : {
8083
+ "$ref" : "#/components/schemas/ToolUsed"
8084
+ },
8085
+ "nullable" : true,
8086
+ "type" : "array"
8080
8087
  }
8081
8088
  },
8082
8089
  "required" : [ "conversationId", "input", "messageId", "text" ],
@@ -8094,6 +8101,28 @@
8094
8101
  "required" : [ "id", "message" ],
8095
8102
  "type" : "object"
8096
8103
  },
8104
+ "ToolUsed" : {
8105
+ "properties" : {
8106
+ "name" : {
8107
+ "type" : "string"
8108
+ },
8109
+ "params" : {
8110
+ "additionalProperties" : true,
8111
+ "nullable" : true,
8112
+ "type" : "object"
8113
+ },
8114
+ "askConfirmation" : {
8115
+ "nullable" : true,
8116
+ "type" : "boolean"
8117
+ },
8118
+ "confirmationLink" : {
8119
+ "nullable" : true,
8120
+ "type" : "string"
8121
+ }
8122
+ },
8123
+ "required" : [ "name" ],
8124
+ "type" : "object"
8125
+ },
8097
8126
  "Conversation" : {
8098
8127
  "properties" : {
8099
8128
  "id" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",