@breign/client 1.0.206 → 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.
@@ -0,0 +1,157 @@
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 { AiGatewayRequestLogStatusUio } from './AiGatewayRequestLogStatusUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AiGatewayRequestLogUio
17
+ */
18
+ export interface AiGatewayRequestLogUio {
19
+ /**
20
+ * Identifiant de génération (`gen_<ulid>`), celui que le client a reçu.
21
+ * @type {string}
22
+ * @memberof AiGatewayRequestLogUio
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AiGatewayRequestLogUio
29
+ */
30
+ organizationId: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof AiGatewayRequestLogUio
35
+ */
36
+ userId: string | null;
37
+ /**
38
+ * Renseigné pour un tour d'agent sur un nœud.
39
+ * @type {string}
40
+ * @memberof AiGatewayRequestLogUio
41
+ */
42
+ agentId: string | null;
43
+ /**
44
+ * Renseigné pour un tour d'agent sur un nœud.
45
+ * @type {string}
46
+ * @memberof AiGatewayRequestLogUio
47
+ */
48
+ conversationId: string | null;
49
+ /**
50
+ * chat/completions, embeddings, systemone ou openai/chat/completions.
51
+ * @type {string}
52
+ * @memberof AiGatewayRequestLogUio
53
+ */
54
+ route: string;
55
+ /**
56
+ *
57
+ * @type {boolean}
58
+ * @memberof AiGatewayRequestLogUio
59
+ */
60
+ streamed: boolean;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof AiGatewayRequestLogUio
65
+ */
66
+ model: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof AiGatewayRequestLogUio
71
+ */
72
+ providerId: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof AiGatewayRequestLogUio
77
+ */
78
+ providerName: string;
79
+ /**
80
+ *
81
+ * @type {AiGatewayRequestLogStatusUio}
82
+ * @memberof AiGatewayRequestLogUio
83
+ */
84
+ status: AiGatewayRequestLogStatusUio;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof AiGatewayRequestLogUio
89
+ */
90
+ errorMessage: string | null;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof AiGatewayRequestLogUio
95
+ */
96
+ finishReason: string | null;
97
+ /**
98
+ *
99
+ * @type {number}
100
+ * @memberof AiGatewayRequestLogUio
101
+ */
102
+ durationMs: number;
103
+ /**
104
+ *
105
+ * @type {number}
106
+ * @memberof AiGatewayRequestLogUio
107
+ */
108
+ promptTokens: number | null;
109
+ /**
110
+ *
111
+ * @type {number}
112
+ * @memberof AiGatewayRequestLogUio
113
+ */
114
+ completionTokens: number | null;
115
+ /**
116
+ *
117
+ * @type {string}
118
+ * @memberof AiGatewayRequestLogUio
119
+ */
120
+ reportingUser: string | null;
121
+ /**
122
+ *
123
+ * @type {Array<string>}
124
+ * @memberof AiGatewayRequestLogUio
125
+ */
126
+ tags: Array<string>;
127
+ /**
128
+ *
129
+ * @type {string}
130
+ * @memberof AiGatewayRequestLogUio
131
+ */
132
+ createdAt: string;
133
+ /**
134
+ * Corps de la requête du client. Les images en base64 sont omises et les contenus très volumineux tronqués.
135
+ * @type {{ [key: string]: any; }}
136
+ * @memberof AiGatewayRequestLogUio
137
+ */
138
+ request: {
139
+ [key: string]: any;
140
+ } | null;
141
+ /**
142
+ * Réponse au format OpenAI ; partielle si un flux a échoué en route, nulle sans réponse. Pour un embedding, seuls le nombre et la dimension des vecteurs sont conservés.
143
+ * @type {{ [key: string]: any; }}
144
+ * @memberof AiGatewayRequestLogUio
145
+ */
146
+ response: {
147
+ [key: string]: any;
148
+ } | null;
149
+ }
150
+ /**
151
+ * Check if a given object implements the AiGatewayRequestLogUio interface.
152
+ */
153
+ export declare function instanceOfAiGatewayRequestLogUio(value: object): value is AiGatewayRequestLogUio;
154
+ export declare function AiGatewayRequestLogUioFromJSON(json: any): AiGatewayRequestLogUio;
155
+ export declare function AiGatewayRequestLogUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayRequestLogUio;
156
+ export declare function AiGatewayRequestLogUioToJSON(json: any): AiGatewayRequestLogUio;
157
+ export declare function AiGatewayRequestLogUioToJSONTyped(value?: AiGatewayRequestLogUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,131 @@
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.instanceOfAiGatewayRequestLogUio = instanceOfAiGatewayRequestLogUio;
17
+ exports.AiGatewayRequestLogUioFromJSON = AiGatewayRequestLogUioFromJSON;
18
+ exports.AiGatewayRequestLogUioFromJSONTyped = AiGatewayRequestLogUioFromJSONTyped;
19
+ exports.AiGatewayRequestLogUioToJSON = AiGatewayRequestLogUioToJSON;
20
+ exports.AiGatewayRequestLogUioToJSONTyped = AiGatewayRequestLogUioToJSONTyped;
21
+ const AiGatewayRequestLogStatusUio_1 = require("./AiGatewayRequestLogStatusUio");
22
+ /**
23
+ * Check if a given object implements the AiGatewayRequestLogUio interface.
24
+ */
25
+ function instanceOfAiGatewayRequestLogUio(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
29
+ return false;
30
+ if (!('userId' in value) || value['userId'] === undefined)
31
+ return false;
32
+ if (!('agentId' in value) || value['agentId'] === undefined)
33
+ return false;
34
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
35
+ return false;
36
+ if (!('route' in value) || value['route'] === undefined)
37
+ return false;
38
+ if (!('streamed' in value) || value['streamed'] === undefined)
39
+ return false;
40
+ if (!('model' in value) || value['model'] === undefined)
41
+ return false;
42
+ if (!('providerId' in value) || value['providerId'] === undefined)
43
+ return false;
44
+ if (!('providerName' in value) || value['providerName'] === undefined)
45
+ return false;
46
+ if (!('status' in value) || value['status'] === undefined)
47
+ return false;
48
+ if (!('errorMessage' in value) || value['errorMessage'] === undefined)
49
+ return false;
50
+ if (!('finishReason' in value) || value['finishReason'] === undefined)
51
+ return false;
52
+ if (!('durationMs' in value) || value['durationMs'] === undefined)
53
+ return false;
54
+ if (!('promptTokens' in value) || value['promptTokens'] === undefined)
55
+ return false;
56
+ if (!('completionTokens' in value) || value['completionTokens'] === undefined)
57
+ return false;
58
+ if (!('reportingUser' in value) || value['reportingUser'] === undefined)
59
+ return false;
60
+ if (!('tags' in value) || value['tags'] === undefined)
61
+ return false;
62
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
63
+ return false;
64
+ if (!('request' in value) || value['request'] === undefined)
65
+ return false;
66
+ if (!('response' in value) || value['response'] === undefined)
67
+ return false;
68
+ return true;
69
+ }
70
+ function AiGatewayRequestLogUioFromJSON(json) {
71
+ return AiGatewayRequestLogUioFromJSONTyped(json, false);
72
+ }
73
+ function AiGatewayRequestLogUioFromJSONTyped(json, ignoreDiscriminator) {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+ 'id': json['id'],
79
+ 'organizationId': json['organizationId'],
80
+ 'userId': json['userId'],
81
+ 'agentId': json['agentId'],
82
+ 'conversationId': json['conversationId'],
83
+ 'route': json['route'],
84
+ 'streamed': json['streamed'],
85
+ 'model': json['model'],
86
+ 'providerId': json['providerId'],
87
+ 'providerName': json['providerName'],
88
+ 'status': (0, AiGatewayRequestLogStatusUio_1.AiGatewayRequestLogStatusUioFromJSON)(json['status']),
89
+ 'errorMessage': json['errorMessage'],
90
+ 'finishReason': json['finishReason'],
91
+ 'durationMs': json['durationMs'],
92
+ 'promptTokens': json['promptTokens'],
93
+ 'completionTokens': json['completionTokens'],
94
+ 'reportingUser': json['reportingUser'],
95
+ 'tags': json['tags'],
96
+ 'createdAt': json['createdAt'],
97
+ 'request': json['request'],
98
+ 'response': json['response'],
99
+ };
100
+ }
101
+ function AiGatewayRequestLogUioToJSON(json) {
102
+ return AiGatewayRequestLogUioToJSONTyped(json, false);
103
+ }
104
+ function AiGatewayRequestLogUioToJSONTyped(value, ignoreDiscriminator = false) {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+ return {
109
+ 'id': value['id'],
110
+ 'organizationId': value['organizationId'],
111
+ 'userId': value['userId'],
112
+ 'agentId': value['agentId'],
113
+ 'conversationId': value['conversationId'],
114
+ 'route': value['route'],
115
+ 'streamed': value['streamed'],
116
+ 'model': value['model'],
117
+ 'providerId': value['providerId'],
118
+ 'providerName': value['providerName'],
119
+ 'status': (0, AiGatewayRequestLogStatusUio_1.AiGatewayRequestLogStatusUioToJSON)(value['status']),
120
+ 'errorMessage': value['errorMessage'],
121
+ 'finishReason': value['finishReason'],
122
+ 'durationMs': value['durationMs'],
123
+ 'promptTokens': value['promptTokens'],
124
+ 'completionTokens': value['completionTokens'],
125
+ 'reportingUser': value['reportingUser'],
126
+ 'tags': value['tags'],
127
+ 'createdAt': value['createdAt'],
128
+ 'request': value['request'],
129
+ 'response': value['response'],
130
+ };
131
+ }
@@ -0,0 +1,46 @@
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 { AiGatewayRequestLogSummaryUio } from './AiGatewayRequestLogSummaryUio';
13
+ import type { AiGatewayRequestLogCursorUio } from './AiGatewayRequestLogCursorUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AiGatewayRequestLogsResponseUio
18
+ */
19
+ export interface AiGatewayRequestLogsResponseUio {
20
+ /**
21
+ *
22
+ * @type {Array<AiGatewayRequestLogSummaryUio>}
23
+ * @memberof AiGatewayRequestLogsResponseUio
24
+ */
25
+ logs: Array<AiGatewayRequestLogSummaryUio>;
26
+ /**
27
+ * Null une fois la dernière page servie.
28
+ * @type {AiGatewayRequestLogCursorUio}
29
+ * @memberof AiGatewayRequestLogsResponseUio
30
+ */
31
+ nextCursor: AiGatewayRequestLogCursorUio | null;
32
+ /**
33
+ * Durée de conservation des requêtes, en jours.
34
+ * @type {number}
35
+ * @memberof AiGatewayRequestLogsResponseUio
36
+ */
37
+ retentionDays: number;
38
+ }
39
+ /**
40
+ * Check if a given object implements the AiGatewayRequestLogsResponseUio interface.
41
+ */
42
+ export declare function instanceOfAiGatewayRequestLogsResponseUio(value: object): value is AiGatewayRequestLogsResponseUio;
43
+ export declare function AiGatewayRequestLogsResponseUioFromJSON(json: any): AiGatewayRequestLogsResponseUio;
44
+ export declare function AiGatewayRequestLogsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayRequestLogsResponseUio;
45
+ export declare function AiGatewayRequestLogsResponseUioToJSON(json: any): AiGatewayRequestLogsResponseUio;
46
+ export declare function AiGatewayRequestLogsResponseUioToJSONTyped(value?: AiGatewayRequestLogsResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfAiGatewayRequestLogsResponseUio = instanceOfAiGatewayRequestLogsResponseUio;
17
+ exports.AiGatewayRequestLogsResponseUioFromJSON = AiGatewayRequestLogsResponseUioFromJSON;
18
+ exports.AiGatewayRequestLogsResponseUioFromJSONTyped = AiGatewayRequestLogsResponseUioFromJSONTyped;
19
+ exports.AiGatewayRequestLogsResponseUioToJSON = AiGatewayRequestLogsResponseUioToJSON;
20
+ exports.AiGatewayRequestLogsResponseUioToJSONTyped = AiGatewayRequestLogsResponseUioToJSONTyped;
21
+ const AiGatewayRequestLogSummaryUio_1 = require("./AiGatewayRequestLogSummaryUio");
22
+ const AiGatewayRequestLogCursorUio_1 = require("./AiGatewayRequestLogCursorUio");
23
+ /**
24
+ * Check if a given object implements the AiGatewayRequestLogsResponseUio interface.
25
+ */
26
+ function instanceOfAiGatewayRequestLogsResponseUio(value) {
27
+ if (!('logs' in value) || value['logs'] === undefined)
28
+ return false;
29
+ if (!('nextCursor' in value) || value['nextCursor'] === undefined)
30
+ return false;
31
+ if (!('retentionDays' in value) || value['retentionDays'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AiGatewayRequestLogsResponseUioFromJSON(json) {
36
+ return AiGatewayRequestLogsResponseUioFromJSONTyped(json, false);
37
+ }
38
+ function AiGatewayRequestLogsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'logs': (json['logs'].map(AiGatewayRequestLogSummaryUio_1.AiGatewayRequestLogSummaryUioFromJSON)),
44
+ 'nextCursor': (0, AiGatewayRequestLogCursorUio_1.AiGatewayRequestLogCursorUioFromJSON)(json['nextCursor']),
45
+ 'retentionDays': json['retentionDays'],
46
+ };
47
+ }
48
+ function AiGatewayRequestLogsResponseUioToJSON(json) {
49
+ return AiGatewayRequestLogsResponseUioToJSONTyped(json, false);
50
+ }
51
+ function AiGatewayRequestLogsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'logs': (value['logs'].map(AiGatewayRequestLogSummaryUio_1.AiGatewayRequestLogSummaryUioToJSON)),
57
+ 'nextCursor': (0, AiGatewayRequestLogCursorUio_1.AiGatewayRequestLogCursorUioToJSON)(value['nextCursor']),
58
+ 'retentionDays': value['retentionDays'],
59
+ };
60
+ }
@@ -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'],