@breign/client 1.0.102 → 1.0.104
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/OrganizationsApi.d.ts +175 -1
- package/dist/apis/OrganizationsApi.js +433 -0
- package/dist/apis/ToolsApi.d.ts +28 -1
- package/dist/apis/ToolsApi.js +63 -0
- package/dist/models/AccessRoleCreateRequestUio.d.ts +45 -0
- package/dist/models/AccessRoleCreateRequestUio.js +55 -0
- package/dist/models/AccessRolePermissionsRequestUio.d.ts +33 -0
- package/dist/models/AccessRolePermissionsRequestUio.js +51 -0
- package/dist/models/AccessRoleUio.d.ts +75 -0
- package/dist/models/AccessRoleUio.js +75 -0
- package/dist/models/AccessRoleUpdateRequestUio.d.ts +38 -0
- package/dist/models/AccessRoleUpdateRequestUio.js +52 -0
- package/dist/models/AgentToolUio.d.ts +14 -0
- package/dist/models/AgentToolUio.js +10 -0
- package/dist/models/OrganizationMemberUio.d.ts +51 -0
- package/dist/models/OrganizationMemberUio.js +63 -0
- package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
- package/dist/models/OrganizationMemberUserUio.js +50 -0
- package/dist/models/OrganizationPermissionKeyUio.d.ts +59 -0
- package/dist/models/OrganizationPermissionKeyUio.js +85 -0
- package/dist/models/OrganizationUserInviteRequestUio.d.ts +38 -0
- package/dist/models/OrganizationUserInviteRequestUio.js +52 -0
- package/dist/models/OrganizationUserInviteResponseUio.d.ts +32 -0
- package/dist/models/OrganizationUserInviteResponseUio.js +50 -0
- package/dist/models/PermissionEntryUio.d.ts +39 -0
- package/dist/models/PermissionEntryUio.js +55 -0
- package/dist/models/ProviderValiationRequestUio.d.ts +6 -0
- package/dist/models/ProviderValiationRequestUio.js +4 -0
- package/dist/models/ToolAllowedToolsRequestUio.d.ts +32 -0
- package/dist/models/ToolAllowedToolsRequestUio.js +50 -0
- package/dist/models/ToolAllowedToolsResponseUio.d.ts +32 -0
- package/dist/models/ToolAllowedToolsResponseUio.js +50 -0
- package/dist/models/ToolConnectionStatusResponseUio.d.ts +46 -0
- package/dist/models/ToolConnectionStatusResponseUio.js +62 -0
- package/dist/models/ToolCreateRequestUio.d.ts +14 -0
- package/dist/models/ToolCreateRequestUio.js +10 -0
- package/dist/models/ToolSecureUio.d.ts +14 -0
- package/dist/models/ToolSecureUio.js +10 -1
- package/dist/models/UserAccessRolesRequestUio.d.ts +32 -0
- package/dist/models/UserAccessRolesRequestUio.js +50 -0
- package/dist/models/UserAccessUio.d.ts +39 -0
- package/dist/models/UserAccessUio.js +55 -0
- package/dist/models/UserAgentAccessAgentUio.d.ts +38 -0
- package/dist/models/UserAgentAccessAgentUio.js +54 -0
- package/dist/models/UserAgentAccessRequestUio.d.ts +38 -0
- package/dist/models/UserAgentAccessRequestUio.js +54 -0
- package/dist/models/UserAgentAccessUio.d.ts +45 -0
- package/dist/models/UserAgentAccessUio.js +59 -0
- package/dist/models/UserDirectPermissionsRequestUio.d.ts +33 -0
- package/dist/models/UserDirectPermissionsRequestUio.js +51 -0
- package/dist/models/UserUio.d.ts +3 -3
- package/dist/models/UserUio.js +3 -3
- package/dist/models/index.d.ts +19 -1
- package/dist/models/index.js +19 -1
- package/dist/openapi.json +985 -30
- package/package.json +1 -1
- package/dist/models/UserUserUio.d.ts +0 -32
- package/dist/models/UserUserUio.js +0 -50
|
@@ -53,6 +53,38 @@ const index_1 = require("../models/index");
|
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
class OrganizationsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Create an access role in an organization
|
|
58
|
+
*/
|
|
59
|
+
async createOrganizationAccessRoleRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['organizationId'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createOrganizationAccessRole().');
|
|
62
|
+
}
|
|
63
|
+
if (requestParameters['accessRoleCreateRequestUio'] == null) {
|
|
64
|
+
throw new runtime.RequiredError('accessRoleCreateRequestUio', 'Required parameter "accessRoleCreateRequestUio" was null or undefined when calling createOrganizationAccessRole().');
|
|
65
|
+
}
|
|
66
|
+
const queryParameters = {};
|
|
67
|
+
const headerParameters = {};
|
|
68
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
71
|
+
}
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: `/organizations/{organizationId}/access-roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
74
|
+
method: 'POST',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
body: (0, index_1.AccessRoleCreateRequestUioToJSON)(requestParameters['accessRoleCreateRequestUio']),
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccessRoleUioFromJSON)(jsonValue));
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Create an access role in an organization
|
|
83
|
+
*/
|
|
84
|
+
async createOrganizationAccessRole(organizationId, accessRoleCreateRequestUio, initOverrides) {
|
|
85
|
+
const response = await this.createOrganizationAccessRoleRaw({ organizationId: organizationId, accessRoleCreateRequestUio: accessRoleCreateRequestUio }, initOverrides);
|
|
86
|
+
return await response.value();
|
|
87
|
+
}
|
|
56
88
|
/**
|
|
57
89
|
* Creates a new agent role in the specified organization
|
|
58
90
|
* Create a role in an organization
|
|
@@ -87,6 +119,35 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
87
119
|
const response = await this.createOrganizationRoleRaw({ organizationId: organizationId, roleCreateRequestUio: roleCreateRequestUio }, initOverrides);
|
|
88
120
|
return await response.value();
|
|
89
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Delete an access role from an organization
|
|
124
|
+
*/
|
|
125
|
+
async deleteOrganizationAccessRoleRaw(requestParameters, initOverrides) {
|
|
126
|
+
if (requestParameters['organizationId'] == null) {
|
|
127
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteOrganizationAccessRole().');
|
|
128
|
+
}
|
|
129
|
+
if (requestParameters['roleId'] == null) {
|
|
130
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling deleteOrganizationAccessRole().');
|
|
131
|
+
}
|
|
132
|
+
const queryParameters = {};
|
|
133
|
+
const headerParameters = {};
|
|
134
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
135
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
136
|
+
}
|
|
137
|
+
const response = await this.request({
|
|
138
|
+
path: `/organizations/{organizationId}/access-roles/{roleId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId']))),
|
|
139
|
+
method: 'DELETE',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.VoidApiResponse(response);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Delete an access role from an organization
|
|
147
|
+
*/
|
|
148
|
+
async deleteOrganizationAccessRole(organizationId, roleId, initOverrides) {
|
|
149
|
+
await this.deleteOrganizationAccessRoleRaw({ organizationId: organizationId, roleId: roleId }, initOverrides);
|
|
150
|
+
}
|
|
90
151
|
/**
|
|
91
152
|
* Deletes an agent role from the specified organization
|
|
92
153
|
* Delete a role from an organization
|
|
@@ -118,6 +179,35 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
118
179
|
async deleteOrganizationRole(organizationId, roleId, initOverrides) {
|
|
119
180
|
await this.deleteOrganizationRoleRaw({ organizationId: organizationId, roleId: roleId }, initOverrides);
|
|
120
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Remove a user from an organization
|
|
184
|
+
*/
|
|
185
|
+
async deleteOrganizationUserRaw(requestParameters, initOverrides) {
|
|
186
|
+
if (requestParameters['organizationId'] == null) {
|
|
187
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteOrganizationUser().');
|
|
188
|
+
}
|
|
189
|
+
if (requestParameters['userId'] == null) {
|
|
190
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteOrganizationUser().');
|
|
191
|
+
}
|
|
192
|
+
const queryParameters = {};
|
|
193
|
+
const headerParameters = {};
|
|
194
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
195
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
196
|
+
}
|
|
197
|
+
const response = await this.request({
|
|
198
|
+
path: `/organizations/{organizationId}/users/{userId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
199
|
+
method: 'DELETE',
|
|
200
|
+
headers: headerParameters,
|
|
201
|
+
query: queryParameters,
|
|
202
|
+
}, initOverrides);
|
|
203
|
+
return new runtime.VoidApiResponse(response);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Remove a user from an organization
|
|
207
|
+
*/
|
|
208
|
+
async deleteOrganizationUser(organizationId, userId, initOverrides) {
|
|
209
|
+
await this.deleteOrganizationUserRaw({ organizationId: organizationId, userId: userId }, initOverrides);
|
|
210
|
+
}
|
|
121
211
|
/**
|
|
122
212
|
* Retrieves an organization by its ID
|
|
123
213
|
* Get an organization by ID
|
|
@@ -205,6 +295,152 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
205
295
|
const response = await this.getOrganizationEngineRaw({ organizationId: organizationId }, initOverrides);
|
|
206
296
|
return await response.value();
|
|
207
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Get current member resolved permissions
|
|
300
|
+
*/
|
|
301
|
+
async getOrganizationMemberPermissionsRaw(requestParameters, initOverrides) {
|
|
302
|
+
if (requestParameters['organizationId'] == null) {
|
|
303
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationMemberPermissions().');
|
|
304
|
+
}
|
|
305
|
+
const queryParameters = {};
|
|
306
|
+
const headerParameters = {};
|
|
307
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
308
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
309
|
+
}
|
|
310
|
+
const response = await this.request({
|
|
311
|
+
path: `/organizations/{organizationId}/members/me/permissions`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
312
|
+
method: 'GET',
|
|
313
|
+
headers: headerParameters,
|
|
314
|
+
query: queryParameters,
|
|
315
|
+
}, initOverrides);
|
|
316
|
+
return new runtime.JSONApiResponse(response);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Get current member resolved permissions
|
|
320
|
+
*/
|
|
321
|
+
async getOrganizationMemberPermissions(organizationId, initOverrides) {
|
|
322
|
+
const response = await this.getOrganizationMemberPermissionsRaw({ organizationId: organizationId }, initOverrides);
|
|
323
|
+
return await response.value();
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Get user access roles and direct permissions
|
|
327
|
+
*/
|
|
328
|
+
async getOrganizationUserAccessRaw(requestParameters, initOverrides) {
|
|
329
|
+
if (requestParameters['organizationId'] == null) {
|
|
330
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationUserAccess().');
|
|
331
|
+
}
|
|
332
|
+
if (requestParameters['userId'] == null) {
|
|
333
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getOrganizationUserAccess().');
|
|
334
|
+
}
|
|
335
|
+
const queryParameters = {};
|
|
336
|
+
const headerParameters = {};
|
|
337
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
338
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
339
|
+
}
|
|
340
|
+
const response = await this.request({
|
|
341
|
+
path: `/organizations/{organizationId}/users/{userId}/access`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
342
|
+
method: 'GET',
|
|
343
|
+
headers: headerParameters,
|
|
344
|
+
query: queryParameters,
|
|
345
|
+
}, initOverrides);
|
|
346
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserAccessUioFromJSON)(jsonValue));
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Get user access roles and direct permissions
|
|
350
|
+
*/
|
|
351
|
+
async getOrganizationUserAccess(organizationId, userId, initOverrides) {
|
|
352
|
+
const response = await this.getOrganizationUserAccessRaw({ organizationId: organizationId, userId: userId }, initOverrides);
|
|
353
|
+
return await response.value();
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Get user agent access configuration
|
|
357
|
+
*/
|
|
358
|
+
async getOrganizationUserAgentsAccessRaw(requestParameters, initOverrides) {
|
|
359
|
+
if (requestParameters['organizationId'] == null) {
|
|
360
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationUserAgentsAccess().');
|
|
361
|
+
}
|
|
362
|
+
if (requestParameters['userId'] == null) {
|
|
363
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getOrganizationUserAgentsAccess().');
|
|
364
|
+
}
|
|
365
|
+
const queryParameters = {};
|
|
366
|
+
const headerParameters = {};
|
|
367
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
368
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
369
|
+
}
|
|
370
|
+
const response = await this.request({
|
|
371
|
+
path: `/organizations/{organizationId}/users/{userId}/agents-access`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
372
|
+
method: 'GET',
|
|
373
|
+
headers: headerParameters,
|
|
374
|
+
query: queryParameters,
|
|
375
|
+
}, initOverrides);
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserAgentAccessUioFromJSON)(jsonValue));
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Get user agent access configuration
|
|
380
|
+
*/
|
|
381
|
+
async getOrganizationUserAgentsAccess(organizationId, userId, initOverrides) {
|
|
382
|
+
const response = await this.getOrganizationUserAgentsAccessRaw({ organizationId: organizationId, userId: userId }, initOverrides);
|
|
383
|
+
return await response.value();
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Invite a user to an organization
|
|
387
|
+
*/
|
|
388
|
+
async inviteOrganizationUserRaw(requestParameters, initOverrides) {
|
|
389
|
+
if (requestParameters['organizationId'] == null) {
|
|
390
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling inviteOrganizationUser().');
|
|
391
|
+
}
|
|
392
|
+
if (requestParameters['organizationUserInviteRequestUio'] == null) {
|
|
393
|
+
throw new runtime.RequiredError('organizationUserInviteRequestUio', 'Required parameter "organizationUserInviteRequestUio" was null or undefined when calling inviteOrganizationUser().');
|
|
394
|
+
}
|
|
395
|
+
const queryParameters = {};
|
|
396
|
+
const headerParameters = {};
|
|
397
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
398
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
399
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
400
|
+
}
|
|
401
|
+
const response = await this.request({
|
|
402
|
+
path: `/organizations/{organizationId}/users`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
403
|
+
method: 'POST',
|
|
404
|
+
headers: headerParameters,
|
|
405
|
+
query: queryParameters,
|
|
406
|
+
body: (0, index_1.OrganizationUserInviteRequestUioToJSON)(requestParameters['organizationUserInviteRequestUio']),
|
|
407
|
+
}, initOverrides);
|
|
408
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationUserInviteResponseUioFromJSON)(jsonValue));
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Invite a user to an organization
|
|
412
|
+
*/
|
|
413
|
+
async inviteOrganizationUser(organizationId, organizationUserInviteRequestUio, initOverrides) {
|
|
414
|
+
const response = await this.inviteOrganizationUserRaw({ organizationId: organizationId, organizationUserInviteRequestUio: organizationUserInviteRequestUio }, initOverrides);
|
|
415
|
+
return await response.value();
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* List access roles of an organization
|
|
419
|
+
*/
|
|
420
|
+
async listOrganizationAccessRolesRaw(requestParameters, initOverrides) {
|
|
421
|
+
if (requestParameters['organizationId'] == null) {
|
|
422
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationAccessRoles().');
|
|
423
|
+
}
|
|
424
|
+
const queryParameters = {};
|
|
425
|
+
const headerParameters = {};
|
|
426
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
427
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
428
|
+
}
|
|
429
|
+
const response = await this.request({
|
|
430
|
+
path: `/organizations/{organizationId}/access-roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
431
|
+
method: 'GET',
|
|
432
|
+
headers: headerParameters,
|
|
433
|
+
query: queryParameters,
|
|
434
|
+
}, initOverrides);
|
|
435
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AccessRoleUioFromJSON));
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* List access roles of an organization
|
|
439
|
+
*/
|
|
440
|
+
async listOrganizationAccessRoles(organizationId, initOverrides) {
|
|
441
|
+
const response = await this.listOrganizationAccessRolesRaw({ organizationId: organizationId }, initOverrides);
|
|
442
|
+
return await response.value();
|
|
443
|
+
}
|
|
208
444
|
/**
|
|
209
445
|
* Retrieves all roles configured for the given organization
|
|
210
446
|
* List roles of an organization
|
|
@@ -234,6 +470,33 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
234
470
|
const response = await this.listOrganizationRolesRaw({ organizationId: organizationId }, initOverrides);
|
|
235
471
|
return await response.value();
|
|
236
472
|
}
|
|
473
|
+
/**
|
|
474
|
+
* List users of an organization
|
|
475
|
+
*/
|
|
476
|
+
async listOrganizationUsersRaw(requestParameters, initOverrides) {
|
|
477
|
+
if (requestParameters['organizationId'] == null) {
|
|
478
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationUsers().');
|
|
479
|
+
}
|
|
480
|
+
const queryParameters = {};
|
|
481
|
+
const headerParameters = {};
|
|
482
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
483
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
484
|
+
}
|
|
485
|
+
const response = await this.request({
|
|
486
|
+
path: `/organizations/{organizationId}/users`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
487
|
+
method: 'GET',
|
|
488
|
+
headers: headerParameters,
|
|
489
|
+
query: queryParameters,
|
|
490
|
+
}, initOverrides);
|
|
491
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OrganizationMemberUioFromJSON));
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* List users of an organization
|
|
495
|
+
*/
|
|
496
|
+
async listOrganizationUsers(organizationId, initOverrides) {
|
|
497
|
+
const response = await this.listOrganizationUsersRaw({ organizationId: organizationId }, initOverrides);
|
|
498
|
+
return await response.value();
|
|
499
|
+
}
|
|
237
500
|
/**
|
|
238
501
|
* Lists all organizations for the current user. Admins see all organizations.
|
|
239
502
|
* List organizations
|
|
@@ -260,6 +523,176 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
260
523
|
const response = await this.listOrganizationsRaw(initOverrides);
|
|
261
524
|
return await response.value();
|
|
262
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* Set permissions for an access role
|
|
528
|
+
*/
|
|
529
|
+
async setOrganizationAccessRolePermissionsRaw(requestParameters, initOverrides) {
|
|
530
|
+
if (requestParameters['organizationId'] == null) {
|
|
531
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setOrganizationAccessRolePermissions().');
|
|
532
|
+
}
|
|
533
|
+
if (requestParameters['roleId'] == null) {
|
|
534
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling setOrganizationAccessRolePermissions().');
|
|
535
|
+
}
|
|
536
|
+
if (requestParameters['accessRolePermissionsRequestUio'] == null) {
|
|
537
|
+
throw new runtime.RequiredError('accessRolePermissionsRequestUio', 'Required parameter "accessRolePermissionsRequestUio" was null or undefined when calling setOrganizationAccessRolePermissions().');
|
|
538
|
+
}
|
|
539
|
+
const queryParameters = {};
|
|
540
|
+
const headerParameters = {};
|
|
541
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
542
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
543
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
544
|
+
}
|
|
545
|
+
const response = await this.request({
|
|
546
|
+
path: `/organizations/{organizationId}/access-roles/{roleId}/permissions`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId']))),
|
|
547
|
+
method: 'PUT',
|
|
548
|
+
headers: headerParameters,
|
|
549
|
+
query: queryParameters,
|
|
550
|
+
body: (0, index_1.AccessRolePermissionsRequestUioToJSON)(requestParameters['accessRolePermissionsRequestUio']),
|
|
551
|
+
}, initOverrides);
|
|
552
|
+
return new runtime.VoidApiResponse(response);
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Set permissions for an access role
|
|
556
|
+
*/
|
|
557
|
+
async setOrganizationAccessRolePermissions(organizationId, roleId, accessRolePermissionsRequestUio, initOverrides) {
|
|
558
|
+
await this.setOrganizationAccessRolePermissionsRaw({ organizationId: organizationId, roleId: roleId, accessRolePermissionsRequestUio: accessRolePermissionsRequestUio }, initOverrides);
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Set user access roles
|
|
562
|
+
*/
|
|
563
|
+
async setOrganizationUserAccessRolesRaw(requestParameters, initOverrides) {
|
|
564
|
+
if (requestParameters['organizationId'] == null) {
|
|
565
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setOrganizationUserAccessRoles().');
|
|
566
|
+
}
|
|
567
|
+
if (requestParameters['userId'] == null) {
|
|
568
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling setOrganizationUserAccessRoles().');
|
|
569
|
+
}
|
|
570
|
+
if (requestParameters['userAccessRolesRequestUio'] == null) {
|
|
571
|
+
throw new runtime.RequiredError('userAccessRolesRequestUio', 'Required parameter "userAccessRolesRequestUio" was null or undefined when calling setOrganizationUserAccessRoles().');
|
|
572
|
+
}
|
|
573
|
+
const queryParameters = {};
|
|
574
|
+
const headerParameters = {};
|
|
575
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
576
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
577
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
578
|
+
}
|
|
579
|
+
const response = await this.request({
|
|
580
|
+
path: `/organizations/{organizationId}/users/{userId}/access-roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
581
|
+
method: 'PUT',
|
|
582
|
+
headers: headerParameters,
|
|
583
|
+
query: queryParameters,
|
|
584
|
+
body: (0, index_1.UserAccessRolesRequestUioToJSON)(requestParameters['userAccessRolesRequestUio']),
|
|
585
|
+
}, initOverrides);
|
|
586
|
+
return new runtime.VoidApiResponse(response);
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Set user access roles
|
|
590
|
+
*/
|
|
591
|
+
async setOrganizationUserAccessRoles(organizationId, userId, userAccessRolesRequestUio, initOverrides) {
|
|
592
|
+
await this.setOrganizationUserAccessRolesRaw({ organizationId: organizationId, userId: userId, userAccessRolesRequestUio: userAccessRolesRequestUio }, initOverrides);
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Set user agent access configuration
|
|
596
|
+
*/
|
|
597
|
+
async setOrganizationUserAgentsAccessRaw(requestParameters, initOverrides) {
|
|
598
|
+
if (requestParameters['organizationId'] == null) {
|
|
599
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setOrganizationUserAgentsAccess().');
|
|
600
|
+
}
|
|
601
|
+
if (requestParameters['userId'] == null) {
|
|
602
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling setOrganizationUserAgentsAccess().');
|
|
603
|
+
}
|
|
604
|
+
if (requestParameters['userAgentAccessRequestUio'] == null) {
|
|
605
|
+
throw new runtime.RequiredError('userAgentAccessRequestUio', 'Required parameter "userAgentAccessRequestUio" was null or undefined when calling setOrganizationUserAgentsAccess().');
|
|
606
|
+
}
|
|
607
|
+
const queryParameters = {};
|
|
608
|
+
const headerParameters = {};
|
|
609
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
610
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
611
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
612
|
+
}
|
|
613
|
+
const response = await this.request({
|
|
614
|
+
path: `/organizations/{organizationId}/users/{userId}/agents-access`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
615
|
+
method: 'PUT',
|
|
616
|
+
headers: headerParameters,
|
|
617
|
+
query: queryParameters,
|
|
618
|
+
body: (0, index_1.UserAgentAccessRequestUioToJSON)(requestParameters['userAgentAccessRequestUio']),
|
|
619
|
+
}, initOverrides);
|
|
620
|
+
return new runtime.VoidApiResponse(response);
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Set user agent access configuration
|
|
624
|
+
*/
|
|
625
|
+
async setOrganizationUserAgentsAccess(organizationId, userId, userAgentAccessRequestUio, initOverrides) {
|
|
626
|
+
await this.setOrganizationUserAgentsAccessRaw({ organizationId: organizationId, userId: userId, userAgentAccessRequestUio: userAgentAccessRequestUio }, initOverrides);
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Set user direct permissions
|
|
630
|
+
*/
|
|
631
|
+
async setOrganizationUserDirectPermissionsRaw(requestParameters, initOverrides) {
|
|
632
|
+
if (requestParameters['organizationId'] == null) {
|
|
633
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setOrganizationUserDirectPermissions().');
|
|
634
|
+
}
|
|
635
|
+
if (requestParameters['userId'] == null) {
|
|
636
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling setOrganizationUserDirectPermissions().');
|
|
637
|
+
}
|
|
638
|
+
if (requestParameters['userDirectPermissionsRequestUio'] == null) {
|
|
639
|
+
throw new runtime.RequiredError('userDirectPermissionsRequestUio', 'Required parameter "userDirectPermissionsRequestUio" was null or undefined when calling setOrganizationUserDirectPermissions().');
|
|
640
|
+
}
|
|
641
|
+
const queryParameters = {};
|
|
642
|
+
const headerParameters = {};
|
|
643
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
644
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
645
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
646
|
+
}
|
|
647
|
+
const response = await this.request({
|
|
648
|
+
path: `/organizations/{organizationId}/users/{userId}/permissions`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
649
|
+
method: 'PUT',
|
|
650
|
+
headers: headerParameters,
|
|
651
|
+
query: queryParameters,
|
|
652
|
+
body: (0, index_1.UserDirectPermissionsRequestUioToJSON)(requestParameters['userDirectPermissionsRequestUio']),
|
|
653
|
+
}, initOverrides);
|
|
654
|
+
return new runtime.VoidApiResponse(response);
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Set user direct permissions
|
|
658
|
+
*/
|
|
659
|
+
async setOrganizationUserDirectPermissions(organizationId, userId, userDirectPermissionsRequestUio, initOverrides) {
|
|
660
|
+
await this.setOrganizationUserDirectPermissionsRaw({ organizationId: organizationId, userId: userId, userDirectPermissionsRequestUio: userDirectPermissionsRequestUio }, initOverrides);
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Update an access role in an organization
|
|
664
|
+
*/
|
|
665
|
+
async updateOrganizationAccessRoleRaw(requestParameters, initOverrides) {
|
|
666
|
+
if (requestParameters['organizationId'] == null) {
|
|
667
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateOrganizationAccessRole().');
|
|
668
|
+
}
|
|
669
|
+
if (requestParameters['roleId'] == null) {
|
|
670
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling updateOrganizationAccessRole().');
|
|
671
|
+
}
|
|
672
|
+
if (requestParameters['accessRoleUpdateRequestUio'] == null) {
|
|
673
|
+
throw new runtime.RequiredError('accessRoleUpdateRequestUio', 'Required parameter "accessRoleUpdateRequestUio" was null or undefined when calling updateOrganizationAccessRole().');
|
|
674
|
+
}
|
|
675
|
+
const queryParameters = {};
|
|
676
|
+
const headerParameters = {};
|
|
677
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
678
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
679
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
680
|
+
}
|
|
681
|
+
const response = await this.request({
|
|
682
|
+
path: `/organizations/{organizationId}/access-roles/{roleId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId']))),
|
|
683
|
+
method: 'PUT',
|
|
684
|
+
headers: headerParameters,
|
|
685
|
+
query: queryParameters,
|
|
686
|
+
body: (0, index_1.AccessRoleUpdateRequestUioToJSON)(requestParameters['accessRoleUpdateRequestUio']),
|
|
687
|
+
}, initOverrides);
|
|
688
|
+
return new runtime.VoidApiResponse(response);
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Update an access role in an organization
|
|
692
|
+
*/
|
|
693
|
+
async updateOrganizationAccessRole(organizationId, roleId, accessRoleUpdateRequestUio, initOverrides) {
|
|
694
|
+
await this.updateOrganizationAccessRoleRaw({ organizationId: organizationId, roleId: roleId, accessRoleUpdateRequestUio: accessRoleUpdateRequestUio }, initOverrides);
|
|
695
|
+
}
|
|
263
696
|
/**
|
|
264
697
|
* Updates an existing agent role in the specified organization
|
|
265
698
|
* Update a role in 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 { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio } from '../models/index';
|
|
13
|
+
import type { AgentToolUio, ConnectOAuth2Tool200ResponseUio, IntrospectMcpTool200ResponseUio, RevealTokenRequestUio, RevealTokenResponseUio, STTResponseUio, SetTokenRequestUio, SetupToolRequestUio, TTSRequestUio, TTSResponseUio, ToolAllowedToolsRequestUio, ToolAllowedToolsResponseUio, ToolConnectionStatusResponseUio, ToolCreateRequestUio, ToolSecureUio, ToolUpdateRequestUio } from '../models/index';
|
|
14
14
|
export interface ConnectOAuth2ToolRequest {
|
|
15
15
|
toolId: string;
|
|
16
16
|
}
|
|
@@ -33,6 +33,9 @@ export interface DeleteToolRequest {
|
|
|
33
33
|
export interface DisconnectOAuth2ToolRequest {
|
|
34
34
|
toolId: string;
|
|
35
35
|
}
|
|
36
|
+
export interface GetToolConnectionStatusRequest {
|
|
37
|
+
toolId: string;
|
|
38
|
+
}
|
|
36
39
|
export interface GetToolSecureRequest {
|
|
37
40
|
toolId: string;
|
|
38
41
|
}
|
|
@@ -58,6 +61,10 @@ export interface SetupToolRequest {
|
|
|
58
61
|
toolId: string;
|
|
59
62
|
setupToolRequestUio?: SetupToolRequestUio;
|
|
60
63
|
}
|
|
64
|
+
export interface UpdateMcpAllowedToolsRequest {
|
|
65
|
+
toolId: string;
|
|
66
|
+
toolAllowedToolsRequestUio: ToolAllowedToolsRequestUio;
|
|
67
|
+
}
|
|
61
68
|
export interface UpdateToolRequest {
|
|
62
69
|
toolId: string;
|
|
63
70
|
toolUpdateRequestUio: ToolUpdateRequestUio;
|
|
@@ -122,6 +129,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
122
129
|
* Disconnect OAuth2 from a tool
|
|
123
130
|
*/
|
|
124
131
|
disconnectOAuth2Tool(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* For organization-scoped tools, returns whether the shared connection is set up. For user-scoped tools, returns whether the caller has connected their own account.
|
|
134
|
+
* Get the current user\'s connection status for a tool
|
|
135
|
+
*/
|
|
136
|
+
getToolConnectionStatusRaw(requestParameters: GetToolConnectionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolConnectionStatusResponseUio>>;
|
|
137
|
+
/**
|
|
138
|
+
* For organization-scoped tools, returns whether the shared connection is set up. For user-scoped tools, returns whether the caller has connected their own account.
|
|
139
|
+
* Get the current user\'s connection status for a tool
|
|
140
|
+
*/
|
|
141
|
+
getToolConnectionStatus(toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolConnectionStatusResponseUio>;
|
|
125
142
|
/**
|
|
126
143
|
* Get a specific tool (UI-safe)
|
|
127
144
|
*/
|
|
@@ -174,6 +191,16 @@ export declare class ToolsApi extends runtime.BaseAPI {
|
|
|
174
191
|
* Complete the setup of a tool (oauth2 configuration)
|
|
175
192
|
*/
|
|
176
193
|
setupTool(toolId: string, setupToolRequestUio?: SetupToolRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
194
|
+
/**
|
|
195
|
+
* Admins can adjust the catalog of MCP actions exposed to agents at any time. Each name must exist in the tool\'s introspection result.
|
|
196
|
+
* Replace the list of allowed MCP tools for an MCP tool
|
|
197
|
+
*/
|
|
198
|
+
updateMcpAllowedToolsRaw(requestParameters: UpdateMcpAllowedToolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ToolAllowedToolsResponseUio>>;
|
|
199
|
+
/**
|
|
200
|
+
* Admins can adjust the catalog of MCP actions exposed to agents at any time. Each name must exist in the tool\'s introspection result.
|
|
201
|
+
* Replace the list of allowed MCP tools for an MCP tool
|
|
202
|
+
*/
|
|
203
|
+
updateMcpAllowedTools(toolId: string, toolAllowedToolsRequestUio: ToolAllowedToolsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ToolAllowedToolsResponseUio>;
|
|
177
204
|
/**
|
|
178
205
|
* Update a tool
|
|
179
206
|
*/
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -239,6 +239,35 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
239
239
|
async disconnectOAuth2Tool(toolId, initOverrides) {
|
|
240
240
|
await this.disconnectOAuth2ToolRaw({ toolId: toolId }, initOverrides);
|
|
241
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* For organization-scoped tools, returns whether the shared connection is set up. For user-scoped tools, returns whether the caller has connected their own account.
|
|
244
|
+
* Get the current user\'s connection status for a tool
|
|
245
|
+
*/
|
|
246
|
+
async getToolConnectionStatusRaw(requestParameters, initOverrides) {
|
|
247
|
+
if (requestParameters['toolId'] == null) {
|
|
248
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling getToolConnectionStatus().');
|
|
249
|
+
}
|
|
250
|
+
const queryParameters = {};
|
|
251
|
+
const headerParameters = {};
|
|
252
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
253
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
254
|
+
}
|
|
255
|
+
const response = await this.request({
|
|
256
|
+
path: `/tools/{toolId}/connection-status`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
257
|
+
method: 'GET',
|
|
258
|
+
headers: headerParameters,
|
|
259
|
+
query: queryParameters,
|
|
260
|
+
}, initOverrides);
|
|
261
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolConnectionStatusResponseUioFromJSON)(jsonValue));
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* For organization-scoped tools, returns whether the shared connection is set up. For user-scoped tools, returns whether the caller has connected their own account.
|
|
265
|
+
* Get the current user\'s connection status for a tool
|
|
266
|
+
*/
|
|
267
|
+
async getToolConnectionStatus(toolId, initOverrides) {
|
|
268
|
+
const response = await this.getToolConnectionStatusRaw({ toolId: toolId }, initOverrides);
|
|
269
|
+
return await response.value();
|
|
270
|
+
}
|
|
242
271
|
/**
|
|
243
272
|
* Get a specific tool (UI-safe)
|
|
244
273
|
*/
|
|
@@ -430,6 +459,40 @@ class ToolsApi extends runtime.BaseAPI {
|
|
|
430
459
|
async setupTool(toolId, setupToolRequestUio, initOverrides) {
|
|
431
460
|
await this.setupToolRaw({ toolId: toolId, setupToolRequestUio: setupToolRequestUio }, initOverrides);
|
|
432
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* Admins can adjust the catalog of MCP actions exposed to agents at any time. Each name must exist in the tool\'s introspection result.
|
|
464
|
+
* Replace the list of allowed MCP tools for an MCP tool
|
|
465
|
+
*/
|
|
466
|
+
async updateMcpAllowedToolsRaw(requestParameters, initOverrides) {
|
|
467
|
+
if (requestParameters['toolId'] == null) {
|
|
468
|
+
throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling updateMcpAllowedTools().');
|
|
469
|
+
}
|
|
470
|
+
if (requestParameters['toolAllowedToolsRequestUio'] == null) {
|
|
471
|
+
throw new runtime.RequiredError('toolAllowedToolsRequestUio', 'Required parameter "toolAllowedToolsRequestUio" was null or undefined when calling updateMcpAllowedTools().');
|
|
472
|
+
}
|
|
473
|
+
const queryParameters = {};
|
|
474
|
+
const headerParameters = {};
|
|
475
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
476
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
477
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
478
|
+
}
|
|
479
|
+
const response = await this.request({
|
|
480
|
+
path: `/tools/{toolId}/mcp/allowed-tools`.replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
|
|
481
|
+
method: 'PUT',
|
|
482
|
+
headers: headerParameters,
|
|
483
|
+
query: queryParameters,
|
|
484
|
+
body: (0, index_1.ToolAllowedToolsRequestUioToJSON)(requestParameters['toolAllowedToolsRequestUio']),
|
|
485
|
+
}, initOverrides);
|
|
486
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ToolAllowedToolsResponseUioFromJSON)(jsonValue));
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Admins can adjust the catalog of MCP actions exposed to agents at any time. Each name must exist in the tool\'s introspection result.
|
|
490
|
+
* Replace the list of allowed MCP tools for an MCP tool
|
|
491
|
+
*/
|
|
492
|
+
async updateMcpAllowedTools(toolId, toolAllowedToolsRequestUio, initOverrides) {
|
|
493
|
+
const response = await this.updateMcpAllowedToolsRaw({ toolId: toolId, toolAllowedToolsRequestUio: toolAllowedToolsRequestUio }, initOverrides);
|
|
494
|
+
return await response.value();
|
|
495
|
+
}
|
|
433
496
|
/**
|
|
434
497
|
* Update a tool
|
|
435
498
|
*/
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { PermissionEntryUio } from './PermissionEntryUio';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccessRoleCreateRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AccessRoleCreateRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AccessRoleCreateRequestUio
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AccessRoleCreateRequestUio
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<PermissionEntryUio>}
|
|
34
|
+
* @memberof AccessRoleCreateRequestUio
|
|
35
|
+
*/
|
|
36
|
+
permissions?: Array<PermissionEntryUio>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AccessRoleCreateRequestUio interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAccessRoleCreateRequestUio(value: object): value is AccessRoleCreateRequestUio;
|
|
42
|
+
export declare function AccessRoleCreateRequestUioFromJSON(json: any): AccessRoleCreateRequestUio;
|
|
43
|
+
export declare function AccessRoleCreateRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessRoleCreateRequestUio;
|
|
44
|
+
export declare function AccessRoleCreateRequestUioToJSON(json: any): AccessRoleCreateRequestUio;
|
|
45
|
+
export declare function AccessRoleCreateRequestUioToJSONTyped(value?: AccessRoleCreateRequestUio | null, ignoreDiscriminator?: boolean): any;
|