@breign/client 1.0.20 → 1.0.22
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.
- package/dist/apis/EngineApi.d.ts +13 -0
- package/dist/apis/EngineApi.js +29 -0
- package/dist/apis/ToolsApi.d.ts +63 -1
- package/dist/apis/ToolsApi.js +152 -0
- package/dist/models/AgentModuleUio.d.ts +1 -1
- package/dist/models/AgentModuleUio.js +3 -3
- package/dist/models/AgentToolUio.d.ts +9 -1
- package/dist/models/AgentToolUio.js +4 -2
- package/dist/models/GuardianEngineUio.d.ts +1 -1
- package/dist/models/GuardianEngineUio.js +3 -3
- package/dist/models/RevealTokenRequestUio.d.ts +32 -0
- package/dist/models/RevealTokenRequestUio.js +50 -0
- package/dist/models/RevealTokenResponseUio.d.ts +32 -0
- package/dist/models/RevealTokenResponseUio.js +50 -0
- package/dist/models/SetTokenRequestUio.d.ts +32 -0
- package/dist/models/SetTokenRequestUio.js +50 -0
- package/dist/models/ToolCreateRequestUio.d.ts +66 -0
- package/dist/models/ToolCreateRequestUio.js +66 -0
- package/dist/models/ToolSecureConfigurationUio.d.ts +75 -0
- package/dist/models/ToolSecureConfigurationUio.js +61 -0
- package/dist/models/ToolSecureManifestUio.d.ts +35 -0
- package/dist/models/ToolSecureManifestUio.js +50 -0
- package/dist/models/ToolSecureMcpDefinitionUio.d.ts +51 -0
- package/dist/models/ToolSecureMcpDefinitionUio.js +56 -0
- package/dist/models/ToolSecureMcpUio.d.ts +46 -0
- package/dist/models/ToolSecureMcpUio.js +55 -0
- package/dist/models/ToolSecureUio.d.ts +86 -0
- package/dist/models/ToolSecureUio.js +85 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/openapi.json +456 -0
- package/package.json +1 -1
package/dist/apis/EngineApi.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ export interface DeleteProviderRequest {
|
|
|
19
19
|
providerId: string;
|
|
20
20
|
organizationId: string;
|
|
21
21
|
}
|
|
22
|
+
export interface GetProviderRequest {
|
|
23
|
+
providerId: string;
|
|
24
|
+
}
|
|
22
25
|
export interface GetProvidersRequest {
|
|
23
26
|
organizationId: string;
|
|
24
27
|
}
|
|
@@ -59,6 +62,16 @@ export declare class EngineApi extends runtime.BaseAPI {
|
|
|
59
62
|
* Delete a provider for an organization
|
|
60
63
|
*/
|
|
61
64
|
deleteProvider(providerId: string, organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
|
|
65
|
+
/**
|
|
66
|
+
* Get a provider by id
|
|
67
|
+
* Get a provider
|
|
68
|
+
*/
|
|
69
|
+
getProviderRaw(requestParameters: GetProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProviderUio>>;
|
|
70
|
+
/**
|
|
71
|
+
* Get a provider by id
|
|
72
|
+
* Get a provider
|
|
73
|
+
*/
|
|
74
|
+
getProvider(providerId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProviderUio>;
|
|
62
75
|
/**
|
|
63
76
|
* Get providers for an organization
|
|
64
77
|
* Get providers for an organization
|
package/dist/apis/EngineApi.js
CHANGED
|
@@ -122,6 +122,35 @@ class EngineApi extends runtime.BaseAPI {
|
|
|
122
122
|
const response = await this.deleteProviderRaw({ providerId: providerId, organizationId: organizationId }, initOverrides);
|
|
123
123
|
return await response.value();
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Get a provider by id
|
|
127
|
+
* Get a provider
|
|
128
|
+
*/
|
|
129
|
+
async getProviderRaw(requestParameters, initOverrides) {
|
|
130
|
+
if (requestParameters['providerId'] == null) {
|
|
131
|
+
throw new runtime.RequiredError('providerId', 'Required parameter "providerId" was null or undefined when calling getProvider().');
|
|
132
|
+
}
|
|
133
|
+
const queryParameters = {};
|
|
134
|
+
const headerParameters = {};
|
|
135
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
136
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
137
|
+
}
|
|
138
|
+
const response = await this.request({
|
|
139
|
+
path: `/engines/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(requestParameters['providerId']))),
|
|
140
|
+
method: 'GET',
|
|
141
|
+
headers: headerParameters,
|
|
142
|
+
query: queryParameters,
|
|
143
|
+
}, initOverrides);
|
|
144
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProviderUioFromJSON)(jsonValue));
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Get a provider by id
|
|
148
|
+
* Get a provider
|
|
149
|
+
*/
|
|
150
|
+
async getProvider(providerId, initOverrides) {
|
|
151
|
+
const response = await this.getProviderRaw({ providerId: providerId }, initOverrides);
|
|
152
|
+
return await response.value();
|
|
153
|
+
}
|
|
125
154
|
/**
|
|
126
155
|
* Get providers for an organization
|
|
127
156
|
* Get providers for an organization
|
package/dist/apis/ToolsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { STTResponseUio, TTSRequestUio, TTSResponseUio } from '../models/index';
|
|
13
|
+
import type { AgentToolUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, TTSRequestUio, TTSResponseUio, ToolCreateRequestUio, ToolSecureUio } from '../models/index';
|
|
14
14
|
export interface ConvertSpeechToTextRequest {
|
|
15
15
|
body: Blob;
|
|
16
16
|
language?: string;
|
|
@@ -20,6 +20,24 @@ export interface ConvertTextToSpeechRequest {
|
|
|
20
20
|
tTSRequestUio: TTSRequestUio;
|
|
21
21
|
dry?: boolean;
|
|
22
22
|
}
|
|
23
|
+
export interface CreateToolRequest {
|
|
24
|
+
organizationId: string;
|
|
25
|
+
toolCreateRequestUio: ToolCreateRequestUio;
|
|
26
|
+
}
|
|
27
|
+
export interface DeleteToolRequest {
|
|
28
|
+
toolId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface GetToolSecureRequest {
|
|
31
|
+
toolId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface RevealToolTokenRequest {
|
|
34
|
+
toolId: string;
|
|
35
|
+
revealTokenRequestUio: RevealTokenRequestUio;
|
|
36
|
+
}
|
|
37
|
+
export interface SetToolTokenRequest {
|
|
38
|
+
toolId: string;
|
|
39
|
+
setTokenRequestUio: SetTokenRequestUio;
|
|
40
|
+
}
|
|
23
41
|
/**
|
|
24
42
|
*
|
|
25
43
|
*/
|
|
@@ -44,4 +62,48 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
44
62
|
* Convert text to speech
|
|
45
63
|
*/
|
|
46
64
|
convertTextToSpeech(tTSRequestUio: TTSRequestUio, dry?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TTSResponseUio>;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a tool in an organization (admin only)
|
|
67
|
+
* Create a new tool
|
|
68
|
+
*/
|
|
69
|
+
createToolRaw(requestParameters: CreateToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentToolUio>>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates a tool in an organization (admin only)
|
|
72
|
+
* Create a new tool
|
|
73
|
+
*/
|
|
74
|
+
createTool(organizationId: string, toolCreateRequestUio: ToolCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentToolUio>;
|
|
75
|
+
/**
|
|
76
|
+
* Delete a tool
|
|
77
|
+
*/
|
|
78
|
+
deleteToolRaw(requestParameters: DeleteToolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Delete a tool
|
|
81
|
+
*/
|
|
82
|
+
deleteTool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Get a specific tool (UI-safe)
|
|
85
|
+
*/
|
|
86
|
+
getToolSecureRaw(requestParameters: GetToolSecureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolSecureUio>>;
|
|
87
|
+
/**
|
|
88
|
+
* Get a specific tool (UI-safe)
|
|
89
|
+
*/
|
|
90
|
+
getToolSecure(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolSecureUio>;
|
|
91
|
+
/**
|
|
92
|
+
* Returns the raw token if it exists and the caller is authorized.
|
|
93
|
+
* Reveal stored tool token (masked in GET)
|
|
94
|
+
*/
|
|
95
|
+
revealToolTokenRaw(requestParameters: RevealToolTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevealTokenResponseUio>>;
|
|
96
|
+
/**
|
|
97
|
+
* Returns the raw token if it exists and the caller is authorized.
|
|
98
|
+
* Reveal stored tool token (masked in GET)
|
|
99
|
+
*/
|
|
100
|
+
revealToolToken(toolId: string, revealTokenRequestUio: RevealTokenRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevealTokenResponseUio>;
|
|
101
|
+
/**
|
|
102
|
+
* Set or update the tool secret token
|
|
103
|
+
*/
|
|
104
|
+
setToolTokenRaw(requestParameters: SetToolTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
105
|
+
/**
|
|
106
|
+
* Set or update the tool secret token
|
|
107
|
+
*/
|
|
108
|
+
setToolToken(toolId: string, setTokenRequestUio: SetTokenRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
47
109
|
}
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -124,5 +124,157 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
124
124
|
const response = await this.convertTextToSpeechRaw({ tTSRequestUio: tTSRequestUio, dry: dry }, initOverrides);
|
|
125
125
|
return await response.value();
|
|
126
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Creates a tool in an organization (admin only)
|
|
129
|
+
* Create a new tool
|
|
130
|
+
*/
|
|
131
|
+
async createToolRaw(requestParameters, initOverrides) {
|
|
132
|
+
if (requestParameters['organizationId'] == null) {
|
|
133
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createTool().');
|
|
134
|
+
}
|
|
135
|
+
if (requestParameters['toolCreateRequestUio'] == null) {
|
|
136
|
+
throw new runtime.RequiredError('toolCreateRequestUio', 'Required parameter "toolCreateRequestUio" was null or undefined when calling createTool().');
|
|
137
|
+
}
|
|
138
|
+
const queryParameters = {};
|
|
139
|
+
const headerParameters = {};
|
|
140
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
141
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
143
|
+
}
|
|
144
|
+
const response = await this.request({
|
|
145
|
+
path: `/tools`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
146
|
+
method: 'POST',
|
|
147
|
+
headers: headerParameters,
|
|
148
|
+
query: queryParameters,
|
|
149
|
+
body: (0, index_1.ToolCreateRequestUioToJSON)(requestParameters['toolCreateRequestUio']),
|
|
150
|
+
}, initOverrides);
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentToolUioFromJSON)(jsonValue));
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Creates a tool in an organization (admin only)
|
|
155
|
+
* Create a new tool
|
|
156
|
+
*/
|
|
157
|
+
async createTool(organizationId, toolCreateRequestUio, initOverrides) {
|
|
158
|
+
const response = await this.createToolRaw({ organizationId: organizationId, toolCreateRequestUio: toolCreateRequestUio }, initOverrides);
|
|
159
|
+
return await response.value();
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Delete a tool
|
|
163
|
+
*/
|
|
164
|
+
async deleteToolRaw(requestParameters, initOverrides) {
|
|
165
|
+
if (requestParameters['toolId'] == null) {
|
|
166
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling deleteTool().');
|
|
167
|
+
}
|
|
168
|
+
const queryParameters = {};
|
|
169
|
+
const headerParameters = {};
|
|
170
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
171
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
172
|
+
}
|
|
173
|
+
const response = await this.request({
|
|
174
|
+
path: `/tools/{toolId}`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
175
|
+
method: 'DELETE',
|
|
176
|
+
headers: headerParameters,
|
|
177
|
+
query: queryParameters,
|
|
178
|
+
}, initOverrides);
|
|
179
|
+
return new runtime.VoidApiResponse(response);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Delete a tool
|
|
183
|
+
*/
|
|
184
|
+
async deleteTool(toolId, initOverrides) {
|
|
185
|
+
await this.deleteToolRaw({ toolId: toolId }, initOverrides);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Get a specific tool (UI-safe)
|
|
189
|
+
*/
|
|
190
|
+
async getToolSecureRaw(requestParameters, initOverrides) {
|
|
191
|
+
if (requestParameters['toolId'] == null) {
|
|
192
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling getToolSecure().');
|
|
193
|
+
}
|
|
194
|
+
const queryParameters = {};
|
|
195
|
+
const headerParameters = {};
|
|
196
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
197
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
198
|
+
}
|
|
199
|
+
const response = await this.request({
|
|
200
|
+
path: `/tools/{toolId}`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
201
|
+
method: 'GET',
|
|
202
|
+
headers: headerParameters,
|
|
203
|
+
query: queryParameters,
|
|
204
|
+
}, initOverrides);
|
|
205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolSecureUioFromJSON)(jsonValue));
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Get a specific tool (UI-safe)
|
|
209
|
+
*/
|
|
210
|
+
async getToolSecure(toolId, initOverrides) {
|
|
211
|
+
const response = await this.getToolSecureRaw({ toolId: toolId }, initOverrides);
|
|
212
|
+
return await response.value();
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Returns the raw token if it exists and the caller is authorized.
|
|
216
|
+
* Reveal stored tool token (masked in GET)
|
|
217
|
+
*/
|
|
218
|
+
async revealToolTokenRaw(requestParameters, initOverrides) {
|
|
219
|
+
if (requestParameters['toolId'] == null) {
|
|
220
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling revealToolToken().');
|
|
221
|
+
}
|
|
222
|
+
if (requestParameters['revealTokenRequestUio'] == null) {
|
|
223
|
+
throw new runtime.RequiredError('revealTokenRequestUio', 'Required parameter "revealTokenRequestUio" was null or undefined when calling revealToolToken().');
|
|
224
|
+
}
|
|
225
|
+
const queryParameters = {};
|
|
226
|
+
const headerParameters = {};
|
|
227
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
228
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
229
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
230
|
+
}
|
|
231
|
+
const response = await this.request({
|
|
232
|
+
path: `/tools/{toolId}/configuration/token`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
233
|
+
method: 'POST',
|
|
234
|
+
headers: headerParameters,
|
|
235
|
+
query: queryParameters,
|
|
236
|
+
body: (0, index_1.RevealTokenRequestUioToJSON)(requestParameters['revealTokenRequestUio']),
|
|
237
|
+
}, initOverrides);
|
|
238
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RevealTokenResponseUioFromJSON)(jsonValue));
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Returns the raw token if it exists and the caller is authorized.
|
|
242
|
+
* Reveal stored tool token (masked in GET)
|
|
243
|
+
*/
|
|
244
|
+
async revealToolToken(toolId, revealTokenRequestUio, initOverrides) {
|
|
245
|
+
const response = await this.revealToolTokenRaw({ toolId: toolId, revealTokenRequestUio: revealTokenRequestUio }, initOverrides);
|
|
246
|
+
return await response.value();
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Set or update the tool secret token
|
|
250
|
+
*/
|
|
251
|
+
async setToolTokenRaw(requestParameters, initOverrides) {
|
|
252
|
+
if (requestParameters['toolId'] == null) {
|
|
253
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling setToolToken().');
|
|
254
|
+
}
|
|
255
|
+
if (requestParameters['setTokenRequestUio'] == null) {
|
|
256
|
+
throw new runtime.RequiredError('setTokenRequestUio', 'Required parameter "setTokenRequestUio" was null or undefined when calling setToolToken().');
|
|
257
|
+
}
|
|
258
|
+
const queryParameters = {};
|
|
259
|
+
const headerParameters = {};
|
|
260
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
261
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
262
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
263
|
+
}
|
|
264
|
+
const response = await this.request({
|
|
265
|
+
path: `/tools/{toolId}/token`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
266
|
+
method: 'PUT',
|
|
267
|
+
headers: headerParameters,
|
|
268
|
+
query: queryParameters,
|
|
269
|
+
body: (0, index_1.SetTokenRequestUioToJSON)(requestParameters['setTokenRequestUio']),
|
|
270
|
+
}, initOverrides);
|
|
271
|
+
return new runtime.VoidApiResponse(response);
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Set or update the tool secret token
|
|
275
|
+
*/
|
|
276
|
+
async setToolToken(toolId, setTokenRequestUio, initOverrides) {
|
|
277
|
+
await this.setToolTokenRaw({ toolId: toolId, setTokenRequestUio: setTokenRequestUio }, initOverrides);
|
|
278
|
+
}
|
|
127
279
|
}
|
|
128
280
|
exports.ToolsApi = ToolsApi;
|
|
@@ -27,7 +27,7 @@ function instanceOfAgentModuleUio(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('
|
|
30
|
+
if (!('configuration' in value) || value['configuration'] === undefined)
|
|
31
31
|
return false;
|
|
32
32
|
return true;
|
|
33
33
|
}
|
|
@@ -41,7 +41,7 @@ function AgentModuleUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return {
|
|
42
42
|
'type': (0, AgentModuleTypeUio_1.AgentModuleTypeUioFromJSON)(json['type']),
|
|
43
43
|
'name': json['name'],
|
|
44
|
-
'
|
|
44
|
+
'configuration': json['configuration'],
|
|
45
45
|
'restricted': json['restricted'] == null ? undefined : json['restricted'],
|
|
46
46
|
};
|
|
47
47
|
}
|
|
@@ -55,7 +55,7 @@ function AgentModuleUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
55
|
return {
|
|
56
56
|
'type': (0, AgentModuleTypeUio_1.AgentModuleTypeUioToJSON)(value['type']),
|
|
57
57
|
'name': value['name'],
|
|
58
|
-
'configuration': value['
|
|
58
|
+
'configuration': value['configuration'],
|
|
59
59
|
'restricted': value['restricted'],
|
|
60
60
|
};
|
|
61
61
|
}
|
|
@@ -50,7 +50,7 @@ export interface AgentToolUio {
|
|
|
50
50
|
* @type {{ [key: string]: any; }}
|
|
51
51
|
* @memberof AgentToolUio
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
configuration?: {
|
|
54
54
|
[key: string]: any;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
@@ -61,6 +61,14 @@ export interface AgentToolUio {
|
|
|
61
61
|
manifest?: {
|
|
62
62
|
[key: string]: any;
|
|
63
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {{ [key: string]: any; }}
|
|
67
|
+
* @memberof AgentToolUio
|
|
68
|
+
*/
|
|
69
|
+
mcp?: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
64
72
|
/**
|
|
65
73
|
*
|
|
66
74
|
* @type {boolean}
|
|
@@ -47,8 +47,9 @@ function AgentToolUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'type': json['type'],
|
|
48
48
|
'orgId': json['orgId'],
|
|
49
49
|
'description': json['description'],
|
|
50
|
-
'
|
|
50
|
+
'configuration': json['configuration'] == null ? undefined : json['configuration'],
|
|
51
51
|
'manifest': json['manifest'] == null ? undefined : json['manifest'],
|
|
52
|
+
'mcp': json['mcp'] == null ? undefined : json['mcp'],
|
|
52
53
|
'restricted': json['restricted'] == null ? undefined : json['restricted'],
|
|
53
54
|
};
|
|
54
55
|
}
|
|
@@ -65,8 +66,9 @@ function AgentToolUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
66
|
'type': value['type'],
|
|
66
67
|
'orgId': value['orgId'],
|
|
67
68
|
'description': value['description'],
|
|
68
|
-
'configuration': value['
|
|
69
|
+
'configuration': value['configuration'],
|
|
69
70
|
'manifest': value['manifest'],
|
|
71
|
+
'mcp': value['mcp'],
|
|
70
72
|
'restricted': value['restricted'],
|
|
71
73
|
};
|
|
72
74
|
}
|
|
@@ -22,7 +22,7 @@ exports.GuardianEngineUioToJSONTyped = GuardianEngineUioToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the GuardianEngineUio interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfGuardianEngineUio(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('configuration' in value) || value['configuration'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
@@ -34,7 +34,7 @@ function GuardianEngineUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
|
-
'
|
|
37
|
+
'configuration': json['configuration'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
function GuardianEngineUioToJSON(json) {
|
|
@@ -45,6 +45,6 @@ function GuardianEngineUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
45
|
return value;
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
|
-
'configuration': value['
|
|
48
|
+
'configuration': value['configuration'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 RevealTokenRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface RevealTokenRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
* Must be true to reveal the stored token
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof RevealTokenRequestUio
|
|
22
|
+
*/
|
|
23
|
+
confirm: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RevealTokenRequestUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRevealTokenRequestUio(value: object): value is RevealTokenRequestUio;
|
|
29
|
+
export declare function RevealTokenRequestUioFromJSON(json: any): RevealTokenRequestUio;
|
|
30
|
+
export declare function RevealTokenRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): RevealTokenRequestUio;
|
|
31
|
+
export declare function RevealTokenRequestUioToJSON(json: any): RevealTokenRequestUio;
|
|
32
|
+
export declare function RevealTokenRequestUioToJSONTyped(value?: RevealTokenRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfRevealTokenRequestUio = instanceOfRevealTokenRequestUio;
|
|
17
|
+
exports.RevealTokenRequestUioFromJSON = RevealTokenRequestUioFromJSON;
|
|
18
|
+
exports.RevealTokenRequestUioFromJSONTyped = RevealTokenRequestUioFromJSONTyped;
|
|
19
|
+
exports.RevealTokenRequestUioToJSON = RevealTokenRequestUioToJSON;
|
|
20
|
+
exports.RevealTokenRequestUioToJSONTyped = RevealTokenRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RevealTokenRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRevealTokenRequestUio(value) {
|
|
25
|
+
if (!('confirm' in value) || value['confirm'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RevealTokenRequestUioFromJSON(json) {
|
|
30
|
+
return RevealTokenRequestUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RevealTokenRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'confirm': json['confirm'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function RevealTokenRequestUioToJSON(json) {
|
|
41
|
+
return RevealTokenRequestUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function RevealTokenRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'confirm': value['confirm'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 RevealTokenResponseUio
|
|
16
|
+
*/
|
|
17
|
+
export interface RevealTokenResponseUio {
|
|
18
|
+
/**
|
|
19
|
+
* Raw secret token
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RevealTokenResponseUio
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the RevealTokenResponseUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfRevealTokenResponseUio(value: object): value is RevealTokenResponseUio;
|
|
29
|
+
export declare function RevealTokenResponseUioFromJSON(json: any): RevealTokenResponseUio;
|
|
30
|
+
export declare function RevealTokenResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): RevealTokenResponseUio;
|
|
31
|
+
export declare function RevealTokenResponseUioToJSON(json: any): RevealTokenResponseUio;
|
|
32
|
+
export declare function RevealTokenResponseUioToJSONTyped(value?: RevealTokenResponseUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfRevealTokenResponseUio = instanceOfRevealTokenResponseUio;
|
|
17
|
+
exports.RevealTokenResponseUioFromJSON = RevealTokenResponseUioFromJSON;
|
|
18
|
+
exports.RevealTokenResponseUioFromJSONTyped = RevealTokenResponseUioFromJSONTyped;
|
|
19
|
+
exports.RevealTokenResponseUioToJSON = RevealTokenResponseUioToJSON;
|
|
20
|
+
exports.RevealTokenResponseUioToJSONTyped = RevealTokenResponseUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RevealTokenResponseUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRevealTokenResponseUio(value) {
|
|
25
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RevealTokenResponseUioFromJSON(json) {
|
|
30
|
+
return RevealTokenResponseUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RevealTokenResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'token': json['token'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function RevealTokenResponseUioToJSON(json) {
|
|
41
|
+
return RevealTokenResponseUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function RevealTokenResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'token': value['token'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 SetTokenRequestUio
|
|
16
|
+
*/
|
|
17
|
+
export interface SetTokenRequestUio {
|
|
18
|
+
/**
|
|
19
|
+
* New raw secret token to store
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SetTokenRequestUio
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SetTokenRequestUio interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSetTokenRequestUio(value: object): value is SetTokenRequestUio;
|
|
29
|
+
export declare function SetTokenRequestUioFromJSON(json: any): SetTokenRequestUio;
|
|
30
|
+
export declare function SetTokenRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetTokenRequestUio;
|
|
31
|
+
export declare function SetTokenRequestUioToJSON(json: any): SetTokenRequestUio;
|
|
32
|
+
export declare function SetTokenRequestUioToJSONTyped(value?: SetTokenRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfSetTokenRequestUio = instanceOfSetTokenRequestUio;
|
|
17
|
+
exports.SetTokenRequestUioFromJSON = SetTokenRequestUioFromJSON;
|
|
18
|
+
exports.SetTokenRequestUioFromJSONTyped = SetTokenRequestUioFromJSONTyped;
|
|
19
|
+
exports.SetTokenRequestUioToJSON = SetTokenRequestUioToJSON;
|
|
20
|
+
exports.SetTokenRequestUioToJSONTyped = SetTokenRequestUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SetTokenRequestUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSetTokenRequestUio(value) {
|
|
25
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SetTokenRequestUioFromJSON(json) {
|
|
30
|
+
return SetTokenRequestUioFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SetTokenRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'token': json['token'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SetTokenRequestUioToJSON(json) {
|
|
41
|
+
return SetTokenRequestUioToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SetTokenRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'token': value['token'],
|
|
49
|
+
};
|
|
50
|
+
}
|