@breign/client 1.0.204 → 1.0.205

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.
@@ -0,0 +1,82 @@
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 ToolPresetConfigOptionInputUio
16
+ */
17
+ export interface ToolPresetConfigOptionInputUio {
18
+ /**
19
+ * Variable name, used as {{key}} in the preset URL
20
+ * @type {string}
21
+ * @memberof ToolPresetConfigOptionInputUio
22
+ */
23
+ key: string;
24
+ /**
25
+ * url: base http(s) address without query or fragment, which must start the preset URL. text: URL-encoded value, allowed anywhere.
26
+ * @type {string}
27
+ * @memberof ToolPresetConfigOptionInputUio
28
+ */
29
+ type: ToolPresetConfigOptionInputUioTypeEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ToolPresetConfigOptionInputUio
34
+ */
35
+ labelEn: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ToolPresetConfigOptionInputUio
40
+ */
41
+ labelFr?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ToolPresetConfigOptionInputUio
46
+ */
47
+ descriptionEn?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ToolPresetConfigOptionInputUio
52
+ */
53
+ descriptionFr?: string;
54
+ /**
55
+ * Used when the organization leaves the field empty
56
+ * @type {string}
57
+ * @memberof ToolPresetConfigOptionInputUio
58
+ */
59
+ defaultValue?: string;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof ToolPresetConfigOptionInputUio
64
+ */
65
+ required?: boolean;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const ToolPresetConfigOptionInputUioTypeEnum: {
71
+ readonly Url: "url";
72
+ readonly Text: "text";
73
+ };
74
+ export type ToolPresetConfigOptionInputUioTypeEnum = typeof ToolPresetConfigOptionInputUioTypeEnum[keyof typeof ToolPresetConfigOptionInputUioTypeEnum];
75
+ /**
76
+ * Check if a given object implements the ToolPresetConfigOptionInputUio interface.
77
+ */
78
+ export declare function instanceOfToolPresetConfigOptionInputUio(value: object): value is ToolPresetConfigOptionInputUio;
79
+ export declare function ToolPresetConfigOptionInputUioFromJSON(json: any): ToolPresetConfigOptionInputUio;
80
+ export declare function ToolPresetConfigOptionInputUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolPresetConfigOptionInputUio;
81
+ export declare function ToolPresetConfigOptionInputUioToJSON(json: any): ToolPresetConfigOptionInputUio;
82
+ export declare function ToolPresetConfigOptionInputUioToJSONTyped(value?: ToolPresetConfigOptionInputUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.ToolPresetConfigOptionInputUioTypeEnum = void 0;
17
+ exports.instanceOfToolPresetConfigOptionInputUio = instanceOfToolPresetConfigOptionInputUio;
18
+ exports.ToolPresetConfigOptionInputUioFromJSON = ToolPresetConfigOptionInputUioFromJSON;
19
+ exports.ToolPresetConfigOptionInputUioFromJSONTyped = ToolPresetConfigOptionInputUioFromJSONTyped;
20
+ exports.ToolPresetConfigOptionInputUioToJSON = ToolPresetConfigOptionInputUioToJSON;
21
+ exports.ToolPresetConfigOptionInputUioToJSONTyped = ToolPresetConfigOptionInputUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ToolPresetConfigOptionInputUioTypeEnum = {
26
+ Url: 'url',
27
+ Text: 'text'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ToolPresetConfigOptionInputUio interface.
31
+ */
32
+ function instanceOfToolPresetConfigOptionInputUio(value) {
33
+ if (!('key' in value) || value['key'] === undefined)
34
+ return false;
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('labelEn' in value) || value['labelEn'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function ToolPresetConfigOptionInputUioFromJSON(json) {
42
+ return ToolPresetConfigOptionInputUioFromJSONTyped(json, false);
43
+ }
44
+ function ToolPresetConfigOptionInputUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'key': json['key'],
50
+ 'type': json['type'],
51
+ 'labelEn': json['labelEn'],
52
+ 'labelFr': json['labelFr'] == null ? undefined : json['labelFr'],
53
+ 'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
54
+ 'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
55
+ 'defaultValue': json['defaultValue'] == null ? undefined : json['defaultValue'],
56
+ 'required': json['required'] == null ? undefined : json['required'],
57
+ };
58
+ }
59
+ function ToolPresetConfigOptionInputUioToJSON(json) {
60
+ return ToolPresetConfigOptionInputUioToJSONTyped(json, false);
61
+ }
62
+ function ToolPresetConfigOptionInputUioToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'key': value['key'],
68
+ 'type': value['type'],
69
+ 'labelEn': value['labelEn'],
70
+ 'labelFr': value['labelFr'],
71
+ 'descriptionEn': value['descriptionEn'],
72
+ 'descriptionFr': value['descriptionFr'],
73
+ 'defaultValue': value['defaultValue'],
74
+ 'required': value['required'],
75
+ };
76
+ }
@@ -0,0 +1,82 @@
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 ToolPresetConfigOptionUio
16
+ */
17
+ export interface ToolPresetConfigOptionUio {
18
+ /**
19
+ * Variable name, used as {{key}} in the preset URL
20
+ * @type {string}
21
+ * @memberof ToolPresetConfigOptionUio
22
+ */
23
+ key: string;
24
+ /**
25
+ * url: base http(s) address without query or fragment, which must start the preset URL. text: URL-encoded value, allowed anywhere.
26
+ * @type {string}
27
+ * @memberof ToolPresetConfigOptionUio
28
+ */
29
+ type: ToolPresetConfigOptionUioTypeEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ToolPresetConfigOptionUio
34
+ */
35
+ labelEn: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ToolPresetConfigOptionUio
40
+ */
41
+ labelFr: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ToolPresetConfigOptionUio
46
+ */
47
+ descriptionEn: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ToolPresetConfigOptionUio
52
+ */
53
+ descriptionFr: string;
54
+ /**
55
+ * Used when the organization leaves the field empty
56
+ * @type {string}
57
+ * @memberof ToolPresetConfigOptionUio
58
+ */
59
+ defaultValue: string;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof ToolPresetConfigOptionUio
64
+ */
65
+ required: boolean;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const ToolPresetConfigOptionUioTypeEnum: {
71
+ readonly Url: "url";
72
+ readonly Text: "text";
73
+ };
74
+ export type ToolPresetConfigOptionUioTypeEnum = typeof ToolPresetConfigOptionUioTypeEnum[keyof typeof ToolPresetConfigOptionUioTypeEnum];
75
+ /**
76
+ * Check if a given object implements the ToolPresetConfigOptionUio interface.
77
+ */
78
+ export declare function instanceOfToolPresetConfigOptionUio(value: object): value is ToolPresetConfigOptionUio;
79
+ export declare function ToolPresetConfigOptionUioFromJSON(json: any): ToolPresetConfigOptionUio;
80
+ export declare function ToolPresetConfigOptionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolPresetConfigOptionUio;
81
+ export declare function ToolPresetConfigOptionUioToJSON(json: any): ToolPresetConfigOptionUio;
82
+ export declare function ToolPresetConfigOptionUioToJSONTyped(value?: ToolPresetConfigOptionUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,86 @@
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.ToolPresetConfigOptionUioTypeEnum = void 0;
17
+ exports.instanceOfToolPresetConfigOptionUio = instanceOfToolPresetConfigOptionUio;
18
+ exports.ToolPresetConfigOptionUioFromJSON = ToolPresetConfigOptionUioFromJSON;
19
+ exports.ToolPresetConfigOptionUioFromJSONTyped = ToolPresetConfigOptionUioFromJSONTyped;
20
+ exports.ToolPresetConfigOptionUioToJSON = ToolPresetConfigOptionUioToJSON;
21
+ exports.ToolPresetConfigOptionUioToJSONTyped = ToolPresetConfigOptionUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ToolPresetConfigOptionUioTypeEnum = {
26
+ Url: 'url',
27
+ Text: 'text'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ToolPresetConfigOptionUio interface.
31
+ */
32
+ function instanceOfToolPresetConfigOptionUio(value) {
33
+ if (!('key' in value) || value['key'] === undefined)
34
+ return false;
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('labelEn' in value) || value['labelEn'] === undefined)
38
+ return false;
39
+ if (!('labelFr' in value) || value['labelFr'] === undefined)
40
+ return false;
41
+ if (!('descriptionEn' in value) || value['descriptionEn'] === undefined)
42
+ return false;
43
+ if (!('descriptionFr' in value) || value['descriptionFr'] === undefined)
44
+ return false;
45
+ if (!('defaultValue' in value) || value['defaultValue'] === undefined)
46
+ return false;
47
+ if (!('required' in value) || value['required'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function ToolPresetConfigOptionUioFromJSON(json) {
52
+ return ToolPresetConfigOptionUioFromJSONTyped(json, false);
53
+ }
54
+ function ToolPresetConfigOptionUioFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'key': json['key'],
60
+ 'type': json['type'],
61
+ 'labelEn': json['labelEn'],
62
+ 'labelFr': json['labelFr'],
63
+ 'descriptionEn': json['descriptionEn'],
64
+ 'descriptionFr': json['descriptionFr'],
65
+ 'defaultValue': json['defaultValue'],
66
+ 'required': json['required'],
67
+ };
68
+ }
69
+ function ToolPresetConfigOptionUioToJSON(json) {
70
+ return ToolPresetConfigOptionUioToJSONTyped(json, false);
71
+ }
72
+ function ToolPresetConfigOptionUioToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'key': value['key'],
78
+ 'type': value['type'],
79
+ 'labelEn': value['labelEn'],
80
+ 'labelFr': value['labelFr'],
81
+ 'descriptionEn': value['descriptionEn'],
82
+ 'descriptionFr': value['descriptionFr'],
83
+ 'defaultValue': value['defaultValue'],
84
+ 'required': value['required'],
85
+ };
86
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
13
13
  import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
14
+ import type { ToolPresetConfigOptionInputUio } from './ToolPresetConfigOptionInputUio';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -47,6 +48,12 @@ export interface ToolPresetCreateRequestUio {
47
48
  * @memberof ToolPresetCreateRequestUio
48
49
  */
49
50
  url: string;
51
+ /**
52
+ *
53
+ * @type {Array<ToolPresetConfigOptionInputUio>}
54
+ * @memberof ToolPresetCreateRequestUio
55
+ */
56
+ configOptions?: Array<ToolPresetConfigOptionInputUio>;
50
57
  /**
51
58
  *
52
59
  * @type {string}
@@ -20,6 +20,7 @@ exports.ToolPresetCreateRequestUioToJSON = ToolPresetCreateRequestUioToJSON;
20
20
  exports.ToolPresetCreateRequestUioToJSONTyped = ToolPresetCreateRequestUioToJSONTyped;
21
21
  const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
22
22
  const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
23
+ const ToolPresetConfigOptionInputUio_1 = require("./ToolPresetConfigOptionInputUio");
23
24
  /**
24
25
  * Check if a given object implements the ToolPresetCreateRequestUio interface.
25
26
  */
@@ -47,6 +48,7 @@ function ToolPresetCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
47
48
  'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
48
49
  'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
49
50
  'url': json['url'],
51
+ 'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioFromJSON)),
50
52
  'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
51
53
  'transport': json['transport'] == null ? undefined : (0, ToolPresetTransportUio_1.ToolPresetTransportUioFromJSON)(json['transport']),
52
54
  'authMethods': json['authMethods'] == null ? undefined : json['authMethods'],
@@ -72,6 +74,7 @@ function ToolPresetCreateRequestUioToJSONTyped(value, ignoreDiscriminator = fals
72
74
  'descriptionEn': value['descriptionEn'],
73
75
  'descriptionFr': value['descriptionFr'],
74
76
  'url': value['url'],
77
+ 'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioToJSON)),
75
78
  'logoUrl': value['logoUrl'],
76
79
  'transport': (0, ToolPresetTransportUio_1.ToolPresetTransportUioToJSON)(value['transport']),
77
80
  'authMethods': value['authMethods'],
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
13
13
  import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
14
+ import type { ToolPresetConfigOptionInputUio } from './ToolPresetConfigOptionInputUio';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -65,6 +66,12 @@ export interface ToolPresetImportItemUio {
65
66
  * @memberof ToolPresetImportItemUio
66
67
  */
67
68
  url: string;
69
+ /**
70
+ *
71
+ * @type {Array<ToolPresetConfigOptionInputUio>}
72
+ * @memberof ToolPresetImportItemUio
73
+ */
74
+ configOptions?: Array<ToolPresetConfigOptionInputUio>;
68
75
  /**
69
76
  *
70
77
  * @type {string}
@@ -20,6 +20,7 @@ exports.ToolPresetImportItemUioToJSON = ToolPresetImportItemUioToJSON;
20
20
  exports.ToolPresetImportItemUioToJSONTyped = ToolPresetImportItemUioToJSONTyped;
21
21
  const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
22
22
  const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
23
+ const ToolPresetConfigOptionInputUio_1 = require("./ToolPresetConfigOptionInputUio");
23
24
  /**
24
25
  * Check if a given object implements the ToolPresetImportItemUio interface.
25
26
  */
@@ -50,6 +51,7 @@ function ToolPresetImportItemUioFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
51
52
  'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
52
53
  'url': json['url'],
54
+ 'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioFromJSON)),
53
55
  'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
54
56
  'transport': json['transport'] == null ? undefined : (0, ToolPresetTransportUio_1.ToolPresetTransportUioFromJSON)(json['transport']),
55
57
  'authMethods': json['authMethods'] == null ? undefined : json['authMethods'],
@@ -78,6 +80,7 @@ function ToolPresetImportItemUioToJSONTyped(value, ignoreDiscriminator = false)
78
80
  'descriptionEn': value['descriptionEn'],
79
81
  'descriptionFr': value['descriptionFr'],
80
82
  'url': value['url'],
83
+ 'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioToJSON)),
81
84
  'logoUrl': value['logoUrl'],
82
85
  'transport': (0, ToolPresetTransportUio_1.ToolPresetTransportUioToJSON)(value['transport']),
83
86
  'authMethods': value['authMethods'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
13
+ import type { ToolPresetConfigOptionUio } from './ToolPresetConfigOptionUio';
13
14
  import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
14
15
  /**
15
16
  *
@@ -48,11 +49,17 @@ export interface ToolPresetUio {
48
49
  */
49
50
  descriptionFr: string;
50
51
  /**
51
- * MCP server URL
52
+ * MCP server URL, possibly with {{key}} variables declared in configOptions
52
53
  * @type {string}
53
54
  * @memberof ToolPresetUio
54
55
  */
55
56
  url: string;
57
+ /**
58
+ * Options the organization fills in when adding the tool. Optional so that a client talking to an API without this field keeps working.
59
+ * @type {Array<ToolPresetConfigOptionUio>}
60
+ * @memberof ToolPresetUio
61
+ */
62
+ configOptions?: Array<ToolPresetConfigOptionUio>;
56
63
  /**
57
64
  *
58
65
  * @type {string}
@@ -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 ToolPresetConfigOptionUio_1 = require("./ToolPresetConfigOptionUio");
22
23
  const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
23
24
  /**
24
25
  * Check if a given object implements the ToolPresetUio interface.
@@ -68,6 +69,7 @@ function ToolPresetUioFromJSONTyped(json, ignoreDiscriminator) {
68
69
  'descriptionEn': json['descriptionEn'],
69
70
  'descriptionFr': json['descriptionFr'],
70
71
  'url': json['url'],
72
+ 'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionUio_1.ToolPresetConfigOptionUioFromJSON)),
71
73
  'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
72
74
  'transport': (0, ToolPresetTransportUio_1.ToolPresetTransportUioFromJSON)(json['transport']),
73
75
  'authMethods': json['authMethods'],
@@ -96,6 +98,7 @@ function ToolPresetUioToJSONTyped(value, ignoreDiscriminator = false) {
96
98
  'descriptionEn': value['descriptionEn'],
97
99
  'descriptionFr': value['descriptionFr'],
98
100
  'url': value['url'],
101
+ 'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionUio_1.ToolPresetConfigOptionUioToJSON)),
99
102
  'logoUrl': value['logoUrl'],
100
103
  'transport': (0, ToolPresetTransportUio_1.ToolPresetTransportUioToJSON)(value['transport']),
101
104
  'authMethods': value['authMethods'],
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { ToolPresetTransportUio } from './ToolPresetTransportUio';
13
13
  import type { ToolPresetOAuthRegistrationUio } from './ToolPresetOAuthRegistrationUio';
14
+ import type { ToolPresetConfigOptionInputUio } from './ToolPresetConfigOptionInputUio';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -47,6 +48,12 @@ export interface ToolPresetUpdateRequestUio {
47
48
  * @memberof ToolPresetUpdateRequestUio
48
49
  */
49
50
  url?: string;
51
+ /**
52
+ *
53
+ * @type {Array<ToolPresetConfigOptionInputUio>}
54
+ * @memberof ToolPresetUpdateRequestUio
55
+ */
56
+ configOptions?: Array<ToolPresetConfigOptionInputUio>;
50
57
  /**
51
58
  *
52
59
  * @type {string}
@@ -20,6 +20,7 @@ exports.ToolPresetUpdateRequestUioToJSON = ToolPresetUpdateRequestUioToJSON;
20
20
  exports.ToolPresetUpdateRequestUioToJSONTyped = ToolPresetUpdateRequestUioToJSONTyped;
21
21
  const ToolPresetTransportUio_1 = require("./ToolPresetTransportUio");
22
22
  const ToolPresetOAuthRegistrationUio_1 = require("./ToolPresetOAuthRegistrationUio");
23
+ const ToolPresetConfigOptionInputUio_1 = require("./ToolPresetConfigOptionInputUio");
23
24
  /**
24
25
  * Check if a given object implements the ToolPresetUpdateRequestUio interface.
25
26
  */
@@ -39,6 +40,7 @@ function ToolPresetUpdateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'descriptionEn': json['descriptionEn'] == null ? undefined : json['descriptionEn'],
40
41
  'descriptionFr': json['descriptionFr'] == null ? undefined : json['descriptionFr'],
41
42
  'url': json['url'] == null ? undefined : json['url'],
43
+ 'configOptions': json['configOptions'] == null ? undefined : (json['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioFromJSON)),
42
44
  'logoUrl': json['logoUrl'] == null ? undefined : json['logoUrl'],
43
45
  'transport': json['transport'] == null ? undefined : (0, ToolPresetTransportUio_1.ToolPresetTransportUioFromJSON)(json['transport']),
44
46
  'authMethods': json['authMethods'] == null ? undefined : json['authMethods'],
@@ -64,6 +66,7 @@ function ToolPresetUpdateRequestUioToJSONTyped(value, ignoreDiscriminator = fals
64
66
  'descriptionEn': value['descriptionEn'],
65
67
  'descriptionFr': value['descriptionFr'],
66
68
  'url': value['url'],
69
+ 'configOptions': value['configOptions'] == null ? undefined : (value['configOptions'].map(ToolPresetConfigOptionInputUio_1.ToolPresetConfigOptionInputUioToJSON)),
67
70
  'logoUrl': value['logoUrl'],
68
71
  'transport': (0, ToolPresetTransportUio_1.ToolPresetTransportUioToJSON)(value['transport']),
69
72
  'authMethods': value['authMethods'],
@@ -741,6 +741,8 @@ export * from './ToolOpenApiReimportRequestUio';
741
741
  export * from './ToolOpenApiReimportResponseUio';
742
742
  export * from './ToolOpenApiSourceUio';
743
743
  export * from './ToolOpenApiUio';
744
+ export * from './ToolPresetConfigOptionInputUio';
745
+ export * from './ToolPresetConfigOptionUio';
744
746
  export * from './ToolPresetCreateRequestUio';
745
747
  export * from './ToolPresetDeleteAllResponseUio';
746
748
  export * from './ToolPresetImportItemUio';
@@ -759,6 +759,8 @@ __exportStar(require("./ToolOpenApiReimportRequestUio"), exports);
759
759
  __exportStar(require("./ToolOpenApiReimportResponseUio"), exports);
760
760
  __exportStar(require("./ToolOpenApiSourceUio"), exports);
761
761
  __exportStar(require("./ToolOpenApiUio"), exports);
762
+ __exportStar(require("./ToolPresetConfigOptionInputUio"), exports);
763
+ __exportStar(require("./ToolPresetConfigOptionUio"), exports);
762
764
  __exportStar(require("./ToolPresetCreateRequestUio"), exports);
763
765
  __exportStar(require("./ToolPresetDeleteAllResponseUio"), exports);
764
766
  __exportStar(require("./ToolPresetImportItemUio"), exports);
package/dist/openapi.json CHANGED
@@ -39149,9 +39149,16 @@
39149
39149
  "type" : "string"
39150
39150
  },
39151
39151
  "url" : {
39152
- "description" : "MCP server URL",
39152
+ "description" : "MCP server URL, possibly with {{key}} variables declared in configOptions",
39153
39153
  "type" : "string"
39154
39154
  },
39155
+ "configOptions" : {
39156
+ "description" : "Options the organization fills in when adding the tool. Optional so that a client talking to an API without this field keeps working.",
39157
+ "items" : {
39158
+ "$ref" : "#/components/schemas/ToolPresetConfigOption"
39159
+ },
39160
+ "type" : "array"
39161
+ },
39155
39162
  "logoUrl" : {
39156
39163
  "nullable" : true,
39157
39164
  "type" : "string"
@@ -39205,6 +39212,41 @@
39205
39212
  "title" : "ToolPreset",
39206
39213
  "type" : "object"
39207
39214
  },
39215
+ "ToolPresetConfigOption" : {
39216
+ "properties" : {
39217
+ "key" : {
39218
+ "description" : "Variable name, used as {{key}} in the preset URL",
39219
+ "type" : "string"
39220
+ },
39221
+ "type" : {
39222
+ "description" : "url: base http(s) address without query or fragment, which must start the preset URL. text: URL-encoded value, allowed anywhere.",
39223
+ "enum" : [ "url", "text" ],
39224
+ "type" : "string"
39225
+ },
39226
+ "labelEn" : {
39227
+ "type" : "string"
39228
+ },
39229
+ "labelFr" : {
39230
+ "type" : "string"
39231
+ },
39232
+ "descriptionEn" : {
39233
+ "type" : "string"
39234
+ },
39235
+ "descriptionFr" : {
39236
+ "type" : "string"
39237
+ },
39238
+ "defaultValue" : {
39239
+ "description" : "Used when the organization leaves the field empty",
39240
+ "type" : "string"
39241
+ },
39242
+ "required" : {
39243
+ "type" : "boolean"
39244
+ }
39245
+ },
39246
+ "required" : [ "defaultValue", "descriptionEn", "descriptionFr", "key", "labelEn", "labelFr", "required", "type" ],
39247
+ "title" : "ToolPresetConfigOption",
39248
+ "type" : "object"
39249
+ },
39208
39250
  "ToolPresetCreateRequest" : {
39209
39251
  "properties" : {
39210
39252
  "slug" : {
@@ -39222,6 +39264,12 @@
39222
39264
  "url" : {
39223
39265
  "type" : "string"
39224
39266
  },
39267
+ "configOptions" : {
39268
+ "items" : {
39269
+ "$ref" : "#/components/schemas/ToolPresetConfigOptionInput"
39270
+ },
39271
+ "type" : "array"
39272
+ },
39225
39273
  "logoUrl" : {
39226
39274
  "nullable" : true,
39227
39275
  "type" : "string"
@@ -39264,6 +39312,41 @@
39264
39312
  "title" : "ToolPresetCreateRequest",
39265
39313
  "type" : "object"
39266
39314
  },
39315
+ "ToolPresetConfigOptionInput" : {
39316
+ "properties" : {
39317
+ "key" : {
39318
+ "description" : "Variable name, used as {{key}} in the preset URL",
39319
+ "type" : "string"
39320
+ },
39321
+ "type" : {
39322
+ "description" : "url: base http(s) address without query or fragment, which must start the preset URL. text: URL-encoded value, allowed anywhere.",
39323
+ "enum" : [ "url", "text" ],
39324
+ "type" : "string"
39325
+ },
39326
+ "labelEn" : {
39327
+ "type" : "string"
39328
+ },
39329
+ "labelFr" : {
39330
+ "type" : "string"
39331
+ },
39332
+ "descriptionEn" : {
39333
+ "type" : "string"
39334
+ },
39335
+ "descriptionFr" : {
39336
+ "type" : "string"
39337
+ },
39338
+ "defaultValue" : {
39339
+ "description" : "Used when the organization leaves the field empty",
39340
+ "type" : "string"
39341
+ },
39342
+ "required" : {
39343
+ "type" : "boolean"
39344
+ }
39345
+ },
39346
+ "required" : [ "key", "labelEn", "type" ],
39347
+ "title" : "ToolPresetConfigOptionInput",
39348
+ "type" : "object"
39349
+ },
39267
39350
  "ToolPresetDeleteAllResponse" : {
39268
39351
  "properties" : {
39269
39352
  "deleted" : {
@@ -39314,6 +39397,12 @@
39314
39397
  "url" : {
39315
39398
  "type" : "string"
39316
39399
  },
39400
+ "configOptions" : {
39401
+ "items" : {
39402
+ "$ref" : "#/components/schemas/ToolPresetConfigOptionInput"
39403
+ },
39404
+ "type" : "array"
39405
+ },
39317
39406
  "logoUrl" : {
39318
39407
  "nullable" : true,
39319
39408
  "type" : "string"
@@ -39388,6 +39477,12 @@
39388
39477
  "url" : {
39389
39478
  "type" : "string"
39390
39479
  },
39480
+ "configOptions" : {
39481
+ "items" : {
39482
+ "$ref" : "#/components/schemas/ToolPresetConfigOptionInput"
39483
+ },
39484
+ "type" : "array"
39485
+ },
39391
39486
  "logoUrl" : {
39392
39487
  "nullable" : true,
39393
39488
  "type" : "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.204",
3
+ "version": "1.0.205",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",