@iblai/iblai-api 4.127.0-ai → 4.127.1-ai

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.
@@ -49,6 +49,7 @@ import type { UserDeleteAPIRequest } from '../models/UserDeleteAPIRequest';
49
49
  import type { UserDeleteAPIResponse } from '../models/UserDeleteAPIResponse';
50
50
  import type { UserGroup } from '../models/UserGroup';
51
51
  import type { UserGroupAccess } from '../models/UserGroupAccess';
52
+ import type { UserGroupPolicy } from '../models/UserGroupPolicy';
52
53
  import type { UserPlatformLink } from '../models/UserPlatformLink';
53
54
  import type { UserPlatformManagementListViewGetResponse } from '../models/UserPlatformManagementListViewGetResponse';
54
55
  import type { UserPlatformSelfLinkRequest } from '../models/UserPlatformSelfLinkRequest';
@@ -2214,6 +2215,63 @@ export class CoreService {
2214
2215
  },
2215
2216
  });
2216
2217
  }
2218
+ /**
2219
+ * Get usergroup access status
2220
+ * Retrieve current access information for a specific usergroup, including all groups and users that have access with their respective roles.
2221
+ * @returns UserGroupPolicy
2222
+ * @throws ApiError
2223
+ */
2224
+ public static coreRbacTeamsAccessList({
2225
+ platformKey,
2226
+ usergroupId,
2227
+ }: {
2228
+ /**
2229
+ * Platform key where the usergroup belongs
2230
+ */
2231
+ platformKey: string,
2232
+ /**
2233
+ * ID of the usergroup to get access information for
2234
+ */
2235
+ usergroupId: number,
2236
+ }): CancelablePromise<Array<UserGroupPolicy>> {
2237
+ return __request(OpenAPI, {
2238
+ method: 'GET',
2239
+ url: '/api/core/rbac/teams/access/',
2240
+ query: {
2241
+ 'platform_key': platformKey,
2242
+ 'usergroup_id': usergroupId,
2243
+ },
2244
+ errors: {
2245
+ 400: `Missing or invalid query parameters`,
2246
+ 403: `Permission denied - ShareUserGroups permission required`,
2247
+ 404: `Platform not found`,
2248
+ 500: `Internal server error`,
2249
+ },
2250
+ });
2251
+ }
2252
+ /**
2253
+ * Control which RbacGroups and/or Users have access to a UserGroup (team) and with what Role
2254
+ * Create or update RBAC policies to manage group and user access to specific UserGroups (teams). Creates role-specific policies and handles adding/removing groups and users. Automatically adds users/groups to appropriate secondary policies as needed.
2255
+ * @returns UserGroupPolicy
2256
+ * @throws ApiError
2257
+ */
2258
+ public static coreRbacTeamsAccessCreate({
2259
+ requestBody,
2260
+ }: {
2261
+ requestBody: UserGroupPolicy,
2262
+ }): CancelablePromise<UserGroupPolicy> {
2263
+ return __request(OpenAPI, {
2264
+ method: 'POST',
2265
+ url: '/api/core/rbac/teams/access/',
2266
+ body: requestBody,
2267
+ mediaType: 'application/json',
2268
+ errors: {
2269
+ 400: `Invalid request data or validation errors`,
2270
+ 403: `Permission denied - ShareUserGroups permission required`,
2271
+ 404: `Platform or usergroup not found`,
2272
+ },
2273
+ });
2274
+ }
2217
2275
  /**
2218
2276
  * Get user group access status
2219
2277
  * Retrieve current group access information for a specific user, including all groups the user has access to and whether they have mentor management permissions.
@@ -2333,6 +2391,7 @@ export class CoreService {
2333
2391
  page,
2334
2392
  pageSize,
2335
2393
  platformKey,
2394
+ requiredAction = 'Ibl.Core/UserGroups/read',
2336
2395
  withPermissions = false,
2337
2396
  }: {
2338
2397
  /**
@@ -2355,6 +2414,10 @@ export class CoreService {
2355
2414
  * Filter groups by platform key
2356
2415
  */
2357
2416
  platformKey?: string,
2417
+ /**
2418
+ * Return user groups (teams) you have this action on
2419
+ */
2420
+ requiredAction?: string,
2358
2421
  /**
2359
2422
  * Include object-level permissions in response
2360
2423
  */
@@ -2369,6 +2432,7 @@ export class CoreService {
2369
2432
  'page': page,
2370
2433
  'page_size': pageSize,
2371
2434
  'platform_key': platformKey,
2435
+ 'required_action': requiredAction,
2372
2436
  'with_permissions': withPermissions,
2373
2437
  },
2374
2438
  });