@breign/client 1.0.102 → 1.0.103
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/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/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/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 +16 -1
- package/dist/models/index.js +16 -1
- package/dist/openapi.json +824 -11
- 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
|
|
@@ -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;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfAccessRoleCreateRequestUio = instanceOfAccessRoleCreateRequestUio;
|
|
17
|
+
exports.AccessRoleCreateRequestUioFromJSON = AccessRoleCreateRequestUioFromJSON;
|
|
18
|
+
exports.AccessRoleCreateRequestUioFromJSONTyped = AccessRoleCreateRequestUioFromJSONTyped;
|
|
19
|
+
exports.AccessRoleCreateRequestUioToJSON = AccessRoleCreateRequestUioToJSON;
|
|
20
|
+
exports.AccessRoleCreateRequestUioToJSONTyped = AccessRoleCreateRequestUioToJSONTyped;
|
|
21
|
+
const PermissionEntryUio_1 = require("./PermissionEntryUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AccessRoleCreateRequestUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAccessRoleCreateRequestUio(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AccessRoleCreateRequestUioFromJSON(json) {
|
|
31
|
+
return AccessRoleCreateRequestUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AccessRoleCreateRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
40
|
+
'permissions': json['permissions'] == null ? undefined : (json['permissions'].map(PermissionEntryUio_1.PermissionEntryUioFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AccessRoleCreateRequestUioToJSON(json) {
|
|
44
|
+
return AccessRoleCreateRequestUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AccessRoleCreateRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'description': value['description'],
|
|
53
|
+
'permissions': value['permissions'] == null ? undefined : (value['permissions'].map(PermissionEntryUio_1.PermissionEntryUioToJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 AccessRolePermissionsRequestUio
|
|
17
|
+
*/
|
|
18
|
+
export interface AccessRolePermissionsRequestUio {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PermissionEntryUio>}
|
|
22
|
+
* @memberof AccessRolePermissionsRequestUio
|
|
23
|
+
*/
|
|
24
|
+
permissions: Array<PermissionEntryUio>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AccessRolePermissionsRequestUio interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAccessRolePermissionsRequestUio(value: object): value is AccessRolePermissionsRequestUio;
|
|
30
|
+
export declare function AccessRolePermissionsRequestUioFromJSON(json: any): AccessRolePermissionsRequestUio;
|
|
31
|
+
export declare function AccessRolePermissionsRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessRolePermissionsRequestUio;
|
|
32
|
+
export declare function AccessRolePermissionsRequestUioToJSON(json: any): AccessRolePermissionsRequestUio;
|
|
33
|
+
export declare function AccessRolePermissionsRequestUioToJSONTyped(value?: AccessRolePermissionsRequestUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAccessRolePermissionsRequestUio = instanceOfAccessRolePermissionsRequestUio;
|
|
17
|
+
exports.AccessRolePermissionsRequestUioFromJSON = AccessRolePermissionsRequestUioFromJSON;
|
|
18
|
+
exports.AccessRolePermissionsRequestUioFromJSONTyped = AccessRolePermissionsRequestUioFromJSONTyped;
|
|
19
|
+
exports.AccessRolePermissionsRequestUioToJSON = AccessRolePermissionsRequestUioToJSON;
|
|
20
|
+
exports.AccessRolePermissionsRequestUioToJSONTyped = AccessRolePermissionsRequestUioToJSONTyped;
|
|
21
|
+
const PermissionEntryUio_1 = require("./PermissionEntryUio");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AccessRolePermissionsRequestUio interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAccessRolePermissionsRequestUio(value) {
|
|
26
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AccessRolePermissionsRequestUioFromJSON(json) {
|
|
31
|
+
return AccessRolePermissionsRequestUioFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AccessRolePermissionsRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'permissions': (json['permissions'].map(PermissionEntryUio_1.PermissionEntryUioFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AccessRolePermissionsRequestUioToJSON(json) {
|
|
42
|
+
return AccessRolePermissionsRequestUioToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AccessRolePermissionsRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'permissions': (value['permissions'].map(PermissionEntryUio_1.PermissionEntryUioToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|