@breign/client 1.0.23 → 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.
@@ -72,6 +72,12 @@ export interface FileCreationResponseUio {
72
72
  * @memberof FileCreationResponseUio
73
73
  */
74
74
  createdAt?: string;
75
+ /**
76
+ *
77
+ * @type {string}
78
+ * @memberof FileCreationResponseUio
79
+ */
80
+ updatedAt?: string;
75
81
  /**
76
82
  *
77
83
  * @type {FileStatusUio}
@@ -48,6 +48,7 @@ function FileCreationResponseUioFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'postURL': json['postURL'],
49
49
  'formData': json['formData'],
50
50
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
51
+ 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
51
52
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
52
53
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
53
54
  };
@@ -69,6 +70,7 @@ function FileCreationResponseUioToJSONTyped(value, ignoreDiscriminator = false)
69
70
  'postURL': value['postURL'],
70
71
  'formData': value['formData'],
71
72
  'createdAt': value['createdAt'],
73
+ 'updatedAt': value['updatedAt'],
72
74
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
73
75
  'isActive': value['isActive'],
74
76
  };
@@ -71,6 +71,12 @@ export interface FileUio {
71
71
  * @memberof FileUio
72
72
  */
73
73
  createdAt?: string;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof FileUio
78
+ */
79
+ updatedAt?: string;
74
80
  /**
75
81
  *
76
82
  * @type {FileStatusUio}
@@ -45,6 +45,7 @@ function FileUioFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'postURL': json['postURL'] == null ? undefined : json['postURL'],
46
46
  'formData': json['formData'] == null ? undefined : (0, FileFormDataUio_1.FileFormDataUioFromJSON)(json['formData']),
47
47
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
48
+ 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
48
49
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
49
50
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
50
51
  };
@@ -66,6 +67,7 @@ function FileUioToJSONTyped(value, ignoreDiscriminator = false) {
66
67
  'postURL': value['postURL'],
67
68
  'formData': (0, FileFormDataUio_1.FileFormDataUioToJSON)(value['formData']),
68
69
  'createdAt': value['createdAt'],
70
+ 'updatedAt': value['updatedAt'],
69
71
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
70
72
  'isActive': value['isActive'],
71
73
  };
@@ -71,6 +71,12 @@ export interface FileWithDownloadUrlUio {
71
71
  * @memberof FileWithDownloadUrlUio
72
72
  */
73
73
  createdAt?: string;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof FileWithDownloadUrlUio
78
+ */
79
+ updatedAt?: string;
74
80
  /**
75
81
  *
76
82
  * @type {FileStatusUio}
@@ -47,6 +47,7 @@ function FileWithDownloadUrlUioFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'postURL': json['postURL'] == null ? undefined : json['postURL'],
48
48
  'formData': json['formData'] == null ? undefined : (0, FileFormDataUio_1.FileFormDataUioFromJSON)(json['formData']),
49
49
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
50
+ 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
50
51
  'status': json['status'] == null ? undefined : (0, FileStatusUio_1.FileStatusUioFromJSON)(json['status']),
51
52
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
52
53
  'downloadURL': json['downloadURL'],
@@ -69,6 +70,7 @@ function FileWithDownloadUrlUioToJSONTyped(value, ignoreDiscriminator = false) {
69
70
  'postURL': value['postURL'],
70
71
  'formData': (0, FileFormDataUio_1.FileFormDataUioToJSON)(value['formData']),
71
72
  'createdAt': value['createdAt'],
73
+ 'updatedAt': value['updatedAt'],
72
74
  'status': (0, FileStatusUio_1.FileStatusUioToJSON)(value['status']),
73
75
  'isActive': value['isActive'],
74
76
  'downloadURL': value['downloadURL'],
@@ -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
@@ -6334,6 +6334,9 @@
6334
6334
  "createdAt" : {
6335
6335
  "type" : "string"
6336
6336
  },
6337
+ "updatedAt" : {
6338
+ "type" : "string"
6339
+ },
6337
6340
  "status" : {
6338
6341
  "$ref" : "#/components/schemas/FileStatus"
6339
6342
  },
@@ -8074,6 +8077,13 @@
8074
8077
  },
8075
8078
  "input" : {
8076
8079
  "$ref" : "#/components/schemas/Input"
8080
+ },
8081
+ "toolsUsed" : {
8082
+ "items" : {
8083
+ "$ref" : "#/components/schemas/ToolUsed"
8084
+ },
8085
+ "nullable" : true,
8086
+ "type" : "array"
8077
8087
  }
8078
8088
  },
8079
8089
  "required" : [ "conversationId", "input", "messageId", "text" ],
@@ -8091,6 +8101,28 @@
8091
8101
  "required" : [ "id", "message" ],
8092
8102
  "type" : "object"
8093
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
+ },
8094
8126
  "Conversation" : {
8095
8127
  "properties" : {
8096
8128
  "id" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",