@breign/client 1.0.207 → 1.0.208

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,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
13
+ import type { ToolPresetTypeUio } from './ToolPresetTypeUio';
13
14
  import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
14
15
  import type { ToolPresetConfigOptionInputUio } from './ToolPresetConfigOptionInputUio';
15
16
  /**
@@ -42,6 +43,12 @@ export interface ToolPresetCreateRequestUio {
42
43
  * @memberof ToolPresetCreateRequestUio
43
44
  */
44
45
  descriptionFr?: string;
46
+ /**
47
+ *
48
+ * @type {ToolPresetTypeUio}
49
+ * @memberof ToolPresetCreateRequestUio
50
+ */
51
+ type?: ToolPresetTypeUio;
45
52
  /**
46
53
  *
47
54
  * @type {string}
@@ -19,6 +19,7 @@ exports.ToolPresetCreateRequestUioFromJSONTyped = ToolPresetCreateRequestUioFrom
19
19
  exports.ToolPresetCreateRequestUioToJSON = ToolPresetCreateRequestUioToJSON;
20
20
  exports.ToolPresetCreateRequestUioToJSONTyped = ToolPresetCreateRequestUioToJSONTyped;
21
21
  const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
22
+ const ToolPresetTypeUio_1 = require("./ToolPresetTypeUio");
22
23
  const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
23
24
  const ToolPresetConfigOptionInputUio_1 = require("./ToolPresetConfigOptionInputUio");
24
25
  /**
@@ -47,6 +48,7 @@ function ToolPresetCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'name': json['name'],
48
49
  'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
49
50
  'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
51
+ 'type': json['type'] == null ? undefined : (0, ToolPresetTypeUio_1.ToolPresetTypeUioFromJSON)(json['type']),
50
52
  'url': json['url'],
51
53
  'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioFromJSON)),
52
54
  'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
@@ -73,6 +75,7 @@ function ToolPresetCreateRequestUioToJSONTyped(value, ignoreDiscriminator = fals
73
75
  'name': value['name'],
74
76
  'descriptionEn': value['descriptionEn'],
75
77
  'descriptionFr': value['descriptionFr'],
78
+ 'type': (0, ToolPresetTypeUio_1.ToolPresetTypeUioToJSON)(value['type']),
76
79
  'url': value['url'],
77
80
  'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioToJSON)),
78
81
  'logoUrl': value['logoUrl'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
13
+ import type { ToolPresetTypeUio } from './ToolPresetTypeUio';
13
14
  import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
14
15
  import type { ToolPresetConfigOptionInputUio } from './ToolPresetConfigOptionInputUio';
15
16
  /**
@@ -60,6 +61,12 @@ export interface ToolPresetImportItemUio {
60
61
  * @memberof ToolPresetImportItemUio
61
62
  */
62
63
  descriptionFr?: string;
64
+ /**
65
+ *
66
+ * @type {ToolPresetTypeUio}
67
+ * @memberof ToolPresetImportItemUio
68
+ */
69
+ type?: ToolPresetTypeUio;
63
70
  /**
64
71
  *
65
72
  * @type {string}
@@ -19,6 +19,7 @@ exports.ToolPresetImportItemUioFromJSONTyped = ToolPresetImportItemUioFromJSONTy
19
19
  exports.ToolPresetImportItemUioToJSON = ToolPresetImportItemUioToJSON;
20
20
  exports.ToolPresetImportItemUioToJSONTyped = ToolPresetImportItemUioToJSONTyped;
21
21
  const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
22
+ const ToolPresetTypeUio_1 = require("./ToolPresetTypeUio");
22
23
  const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
23
24
  const ToolPresetConfigOptionInputUio_1 = require("./ToolPresetConfigOptionInputUio");
24
25
  /**
@@ -50,6 +51,7 @@ function ToolPresetImportItemUioFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'name': json['name'],
51
52
  'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
52
53
  'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
54
+ 'type': json['type'] == null ? undefined : (0, ToolPresetTypeUio_1.ToolPresetTypeUioFromJSON)(json['type']),
53
55
  'url': json['url'],
54
56
  'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioFromJSON)),
55
57
  'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
@@ -79,6 +81,7 @@ function ToolPresetImportItemUioToJSONTyped(value, ignoreDiscriminator = false)
79
81
  'name': value['name'],
80
82
  'descriptionEn': value['descriptionEn'],
81
83
  'descriptionFr': value['descriptionFr'],
84
+ 'type': (0, ToolPresetTypeUio_1.ToolPresetTypeUioToJSON)(value['type']),
82
85
  'url': value['url'],
83
86
  'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioToJSON)),
84
87
  'logoUrl': value['logoUrl'],
@@ -0,0 +1,26 @@
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
+ */
16
+ export declare const ToolPresetTypeUio: {
17
+ readonly Mcp: "mcp";
18
+ readonly ToolApi: "tool_api";
19
+ readonly Openapi: "openapi";
20
+ };
21
+ export type ToolPresetTypeUio = typeof ToolPresetTypeUio[keyof typeof ToolPresetTypeUio];
22
+ export declare function instanceOfToolPresetTypeUio(value: any): boolean;
23
+ export declare function ToolPresetTypeUioFromJSON(json: any): ToolPresetTypeUio;
24
+ export declare function ToolPresetTypeUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolPresetTypeUio;
25
+ export declare function ToolPresetTypeUioToJSON(value?: ToolPresetTypeUio | null): any;
26
+ export declare function ToolPresetTypeUioToJSONTyped(value: any, ignoreDiscriminator: boolean): ToolPresetTypeUio;
@@ -0,0 +1,52 @@
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.ToolPresetTypeUio = void 0;
17
+ exports.instanceOfToolPresetTypeUio = instanceOfToolPresetTypeUio;
18
+ exports.ToolPresetTypeUioFromJSON = ToolPresetTypeUioFromJSON;
19
+ exports.ToolPresetTypeUioFromJSONTyped = ToolPresetTypeUioFromJSONTyped;
20
+ exports.ToolPresetTypeUioToJSON = ToolPresetTypeUioToJSON;
21
+ exports.ToolPresetTypeUioToJSONTyped = ToolPresetTypeUioToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ToolPresetTypeUio = {
27
+ Mcp: 'mcp',
28
+ ToolApi: 'tool_api',
29
+ Openapi: 'openapi'
30
+ };
31
+ function instanceOfToolPresetTypeUio(value) {
32
+ for (const key in exports.ToolPresetTypeUio) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.ToolPresetTypeUio, key)) {
34
+ if (exports.ToolPresetTypeUio[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function ToolPresetTypeUioFromJSON(json) {
42
+ return ToolPresetTypeUioFromJSONTyped(json, false);
43
+ }
44
+ function ToolPresetTypeUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function ToolPresetTypeUioToJSON(value) {
48
+ return value;
49
+ }
50
+ function ToolPresetTypeUioToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
13
+ import type { ToolPresetTypeUio } from './ToolPresetTypeUio';
13
14
  import type { ToolPresetConfigOptionUio } from './ToolPresetConfigOptionUio';
14
15
  import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
15
16
  /**
@@ -49,7 +50,13 @@ export interface ToolPresetUio {
49
50
  */
50
51
  descriptionFr: string;
51
52
  /**
52
- * MCP server URL, possibly with {{key}} variables declared in configOptions
53
+ * Kind of tool created from the preset. Optional so that a client talking to an API without this field keeps working: absent means mcp.
54
+ * @type {ToolPresetTypeUio}
55
+ * @memberof ToolPresetUio
56
+ */
57
+ type?: ToolPresetTypeUio;
58
+ /**
59
+ * MCP server URL (mcp), ai-plugin manifest URL (tool_api) or OpenAPI definition URL (openapi), possibly with {{key}} variables declared in configOptions
53
60
  * @type {string}
54
61
  * @memberof ToolPresetUio
55
62
  */
@@ -19,6 +19,7 @@ exports.ToolPresetUioFromJSONTyped = ToolPresetUioFromJSONTyped;
19
19
  exports.ToolPresetUioToJSON = ToolPresetUioToJSON;
20
20
  exports.ToolPresetUioToJSONTyped = ToolPresetUioToJSONTyped;
21
21
  const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
22
+ const ToolPresetTypeUio_1 = require("./ToolPresetTypeUio");
22
23
  const ToolPresetConfigOptionUio_1 = require("./ToolPresetConfigOptionUio");
23
24
  const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
24
25
  /**
@@ -68,6 +69,7 @@ function ToolPresetUioFromJSONTyped(json, ignoreDiscriminator) {
68
69
  'name': json['name'],
69
70
  'descriptionEn': json['descriptionEn'],
70
71
  'descriptionFr': json['descriptionFr'],
72
+ 'type': json['type'] == null ? undefined : (0, ToolPresetTypeUio_1.ToolPresetTypeUioFromJSON)(json['type']),
71
73
  'url': json['url'],
72
74
  'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionUio_1.ToolPresetConfigOptionUioFromJSON)),
73
75
  'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
@@ -97,6 +99,7 @@ function ToolPresetUioToJSONTyped(value, ignoreDiscriminator = false) {
97
99
  'name': value['name'],
98
100
  'descriptionEn': value['descriptionEn'],
99
101
  'descriptionFr': value['descriptionFr'],
102
+ 'type': (0, ToolPresetTypeUio_1.ToolPresetTypeUioToJSON)(value['type']),
100
103
  'url': value['url'],
101
104
  'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionUio_1.ToolPresetConfigOptionUioToJSON)),
102
105
  'logoUrl': value['logoUrl'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
13
+ import type { ToolPresetTypeUio } from './ToolPresetTypeUio';
13
14
  import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
14
15
  import type { ToolPresetConfigOptionInputUio } from './ToolPresetConfigOptionInputUio';
15
16
  /**
@@ -42,6 +43,12 @@ export interface ToolPresetUpdateRequestUio {
42
43
  * @memberof ToolPresetUpdateRequestUio
43
44
  */
44
45
  descriptionFr?: string;
46
+ /**
47
+ *
48
+ * @type {ToolPresetTypeUio}
49
+ * @memberof ToolPresetUpdateRequestUio
50
+ */
51
+ type?: ToolPresetTypeUio;
45
52
  /**
46
53
  *
47
54
  * @type {string}
@@ -19,6 +19,7 @@ exports.ToolPresetUpdateRequestUioFromJSONTyped = ToolPresetUpdateRequestUioFrom
19
19
  exports.ToolPresetUpdateRequestUioToJSON = ToolPresetUpdateRequestUioToJSON;
20
20
  exports.ToolPresetUpdateRequestUioToJSONTyped = ToolPresetUpdateRequestUioToJSONTyped;
21
21
  const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
22
+ const ToolPresetTypeUio_1 = require("./ToolPresetTypeUio");
22
23
  const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
23
24
  const ToolPresetConfigOptionInputUio_1 = require("./ToolPresetConfigOptionInputUio");
24
25
  /**
@@ -39,6 +40,7 @@ function ToolPresetUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'name': json['name'] == null ? undefined : json['name'],
40
41
  'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
41
42
  'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
43
+ 'type': json['type'] == null ? undefined : (0, ToolPresetTypeUio_1.ToolPresetTypeUioFromJSON)(json['type']),
42
44
  'url': json['url'] == null ? undefined : json['url'],
43
45
  'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioFromJSON)),
44
46
  'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
@@ -65,6 +67,7 @@ function ToolPresetUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = fals
65
67
  'name': value['name'],
66
68
  'descriptionEn': value['descriptionEn'],
67
69
  'descriptionFr': value['descriptionFr'],
70
+ 'type': (0, ToolPresetTypeUio_1.ToolPresetTypeUioToJSON)(value['type']),
68
71
  'url': value['url'],
69
72
  'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioToJSON)),
70
73
  'logoUrl': value['logoUrl'],
@@ -759,6 +759,7 @@ export * from './ToolPresetImportResponseUio';
759
759
  export * from './ToolPresetOAuthRegistrationUio';
760
760
  export * from './ToolPresetPageUio';
761
761
  export * from './ToolPresetTransportUio';
762
+ export * from './ToolPresetTypeUio';
762
763
  export * from './ToolPresetUio';
763
764
  export * from './ToolPresetUpdateRequestUio';
764
765
  export * from './ToolResultUio';
@@ -777,6 +777,7 @@ __exportStar(require("./ToolPresetImportResponseUio"), exports);
777
777
  __exportStar(require("./ToolPresetOAuthRegistrationUio"), exports);
778
778
  __exportStar(require("./ToolPresetPageUio"), exports);
779
779
  __exportStar(require("./ToolPresetTransportUio"), exports);
780
+ __exportStar(require("./ToolPresetTypeUio"), exports);
780
781
  __exportStar(require("./ToolPresetUio"), exports);
781
782
  __exportStar(require("./ToolPresetUpdateRequestUio"), exports);
782
783
  __exportStar(require("./ToolResultUio"), exports);
package/dist/openapi.json CHANGED
@@ -39823,8 +39823,14 @@
39823
39823
  "descriptionFr" : {
39824
39824
  "type" : "string"
39825
39825
  },
39826
+ "type" : {
39827
+ "allOf" : [ {
39828
+ "$ref" : "#/components/schemas/ToolPresetType"
39829
+ } ],
39830
+ "description" : "Kind of tool created from the preset. Optional so that a client talking to an API without this field keeps working: absent means mcp."
39831
+ },
39826
39832
  "url" : {
39827
- "description" : "MCP server URL, possibly with {{key}} variables declared in configOptions",
39833
+ "description" : "MCP server URL (mcp), ai-plugin manifest URL (tool_api) or OpenAPI definition URL (openapi), possibly with {{key}} variables declared in configOptions",
39828
39834
  "type" : "string"
39829
39835
  },
39830
39836
  "configOptions" : {
@@ -39936,6 +39942,9 @@
39936
39942
  "descriptionFr" : {
39937
39943
  "type" : "string"
39938
39944
  },
39945
+ "type" : {
39946
+ "$ref" : "#/components/schemas/ToolPresetType"
39947
+ },
39939
39948
  "url" : {
39940
39949
  "type" : "string"
39941
39950
  },
@@ -40069,6 +40078,9 @@
40069
40078
  "descriptionFr" : {
40070
40079
  "type" : "string"
40071
40080
  },
40081
+ "type" : {
40082
+ "$ref" : "#/components/schemas/ToolPresetType"
40083
+ },
40072
40084
  "url" : {
40073
40085
  "type" : "string"
40074
40086
  },
@@ -40149,6 +40161,9 @@
40149
40161
  "descriptionFr" : {
40150
40162
  "type" : "string"
40151
40163
  },
40164
+ "type" : {
40165
+ "$ref" : "#/components/schemas/ToolPresetType"
40166
+ },
40152
40167
  "url" : {
40153
40168
  "type" : "string"
40154
40169
  },
@@ -40544,6 +40559,10 @@
40544
40559
  "enum" : [ "pending", "done" ],
40545
40560
  "type" : "string"
40546
40561
  },
40562
+ "ToolPresetType" : {
40563
+ "enum" : [ "mcp", "tool_api", "openapi" ],
40564
+ "type" : "string"
40565
+ },
40547
40566
  "ToolPresetTransport" : {
40548
40567
  "enum" : [ "http", "sse" ],
40549
40568
  "type" : "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.207",
3
+ "version": "1.0.208",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",