@iblai/iblai-api 3.47.2-core → 3.48.0-core
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/index.cjs.js +512 -72
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +512 -72
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +512 -72
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +17 -3
- package/dist/types/models/PaginatedRbacGroupList.d.ts +7 -0
- package/dist/types/models/PaginatedRbacGroupRoleList.d.ts +7 -0
- package/dist/types/models/PaginatedRbacPolicyList.d.ts +7 -0
- package/dist/types/models/PaginatedRbacRoleList.d.ts +7 -0
- package/dist/types/models/PaginatedRbacUserRoleList.d.ts +7 -0
- package/dist/types/models/PatchedRbacGroup.d.ts +34 -0
- package/dist/types/models/PatchedRbacGroupRole.d.ts +13 -0
- package/dist/types/models/PatchedRbacPolicy.d.ts +28 -0
- package/dist/types/models/PatchedRbacRole.d.ts +20 -0
- package/dist/types/models/PatchedRbacUserRole.d.ts +28 -0
- package/dist/types/models/RbacGroup.d.ts +34 -0
- package/dist/types/models/RbacGroupRole.d.ts +13 -0
- package/dist/types/models/RbacPlatform.d.ts +14 -0
- package/dist/types/models/RbacPolicy.d.ts +28 -0
- package/dist/types/models/RbacRole.d.ts +20 -0
- package/dist/types/models/RbacUser.d.ts +13 -0
- package/dist/types/models/RbacUserRole.d.ts +28 -0
- package/dist/types/services/CoreService.d.ts +232 -43
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +17 -3
- package/src/models/PaginatedRbacGroupList.ts +12 -0
- package/src/models/PaginatedRbacGroupRoleList.ts +12 -0
- package/src/models/PaginatedRbacPolicyList.ts +12 -0
- package/src/models/PaginatedRbacRoleList.ts +12 -0
- package/src/models/PaginatedRbacUserRoleList.ts +12 -0
- package/src/models/PatchedRbacGroup.ts +39 -0
- package/src/models/PatchedRbacGroupRole.ts +18 -0
- package/src/models/PatchedRbacPolicy.ts +33 -0
- package/src/models/PatchedRbacRole.ts +25 -0
- package/src/models/PatchedRbacUserRole.ts +33 -0
- package/src/models/RbacGroup.ts +39 -0
- package/src/models/RbacGroupRole.ts +18 -0
- package/src/models/RbacPlatform.ts +19 -0
- package/src/models/RbacPolicy.ts +33 -0
- package/src/models/RbacRole.ts +25 -0
- package/src/models/RbacUser.ts +18 -0
- package/src/models/RbacUserRole.ts +33 -0
- package/src/services/CoreService.ts +610 -80
- package/dist/types/models/CheckPermissionRequest.d.ts +0 -22
- package/dist/types/models/RolePermissions.d.ts +0 -17
- package/dist/types/models/UserRole.d.ts +0 -25
- package/src/models/CheckPermissionRequest.ts +0 -27
- package/src/models/RolePermissions.ts +0 -22
- package/src/models/UserRole.ts +0 -30
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { RbacPlatform } from './RbacPlatform';
|
|
6
|
+
import type { RbacUser } from './RbacUser';
|
|
7
|
+
/**
|
|
8
|
+
* Serializer for RBAC groups.
|
|
9
|
+
*/
|
|
10
|
+
export type RbacGroup = {
|
|
11
|
+
readonly id: number;
|
|
12
|
+
/**
|
|
13
|
+
* The unique identifier for the group
|
|
14
|
+
*/
|
|
15
|
+
unique_id: string;
|
|
16
|
+
readonly platform: RbacPlatform;
|
|
17
|
+
/**
|
|
18
|
+
* The platform key
|
|
19
|
+
*/
|
|
20
|
+
platform_key: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional name of the group
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Optional group description
|
|
27
|
+
*/
|
|
28
|
+
description?: string;
|
|
29
|
+
readonly users: Array<RbacUser>;
|
|
30
|
+
/**
|
|
31
|
+
* List of user IDs to add to this group
|
|
32
|
+
*/
|
|
33
|
+
users_to_add?: Array<number>;
|
|
34
|
+
/**
|
|
35
|
+
* List of user IDs to remove from this group
|
|
36
|
+
*/
|
|
37
|
+
users_to_remove?: Array<number>;
|
|
38
|
+
};
|
|
39
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { RbacGroup } from './RbacGroup';
|
|
6
|
+
import type { RbacRole } from './RbacRole';
|
|
7
|
+
/**
|
|
8
|
+
* Serializer for RBAC group roles.
|
|
9
|
+
*/
|
|
10
|
+
export type RbacGroupRole = {
|
|
11
|
+
readonly id: number;
|
|
12
|
+
readonly group: RbacGroup;
|
|
13
|
+
readonly role: RbacRole;
|
|
14
|
+
group_id: number;
|
|
15
|
+
role_id: number;
|
|
16
|
+
platform_key: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Serializer for platforms.
|
|
7
|
+
*/
|
|
8
|
+
export type RbacPlatform = {
|
|
9
|
+
readonly id: number;
|
|
10
|
+
/**
|
|
11
|
+
* The platform key
|
|
12
|
+
*/
|
|
13
|
+
key: string;
|
|
14
|
+
/**
|
|
15
|
+
* The name of the platform
|
|
16
|
+
*/
|
|
17
|
+
name?: string | null;
|
|
18
|
+
};
|
|
19
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { RbacPlatform } from './RbacPlatform';
|
|
6
|
+
import type { RbacRole } from './RbacRole';
|
|
7
|
+
/**
|
|
8
|
+
* Serializer for policies.
|
|
9
|
+
*/
|
|
10
|
+
export type RbacPolicy = {
|
|
11
|
+
readonly id: number;
|
|
12
|
+
/**
|
|
13
|
+
* Role information (read-only)
|
|
14
|
+
*/
|
|
15
|
+
readonly role: RbacRole;
|
|
16
|
+
/**
|
|
17
|
+
* Platform information (read-only)
|
|
18
|
+
*/
|
|
19
|
+
readonly platform: RbacPlatform;
|
|
20
|
+
/**
|
|
21
|
+
* List of resource paths this policy grants access to (e.g., ['/platforms/1/mentors', '/platforms/1/mentors/settings'])
|
|
22
|
+
*/
|
|
23
|
+
resources: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* ID of the role this policy applies to
|
|
26
|
+
*/
|
|
27
|
+
role_id: number;
|
|
28
|
+
/**
|
|
29
|
+
* Platform key where this policy applies
|
|
30
|
+
*/
|
|
31
|
+
platform_key: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { RbacPlatform } from './RbacPlatform';
|
|
6
|
+
/**
|
|
7
|
+
* Serializer for roles.
|
|
8
|
+
*/
|
|
9
|
+
export type RbacRole = {
|
|
10
|
+
readonly id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Platform information (read-only)
|
|
14
|
+
*/
|
|
15
|
+
readonly platform: RbacPlatform;
|
|
16
|
+
/**
|
|
17
|
+
* Platform key where this role belongs
|
|
18
|
+
*/
|
|
19
|
+
platform_key: string;
|
|
20
|
+
/**
|
|
21
|
+
* List of actions/permissions this role can perform (e.g., ['Ibl.Mentor/Settings/read', 'Ibl.Mentor/Settings/write'])
|
|
22
|
+
*/
|
|
23
|
+
actions: Array<string>;
|
|
24
|
+
};
|
|
25
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Serializer for users.
|
|
7
|
+
*/
|
|
8
|
+
export type RbacUser = {
|
|
9
|
+
/**
|
|
10
|
+
* edX user ID
|
|
11
|
+
*/
|
|
12
|
+
readonly id: number;
|
|
13
|
+
/**
|
|
14
|
+
* edX username
|
|
15
|
+
*/
|
|
16
|
+
username?: string | null;
|
|
17
|
+
};
|
|
18
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { RbacRole } from './RbacRole';
|
|
6
|
+
import type { RbacUser } from './RbacUser';
|
|
7
|
+
/**
|
|
8
|
+
* Serializer for user roles.
|
|
9
|
+
*/
|
|
10
|
+
export type RbacUserRole = {
|
|
11
|
+
readonly id: number;
|
|
12
|
+
/**
|
|
13
|
+
* User information (read-only)
|
|
14
|
+
*/
|
|
15
|
+
readonly user: RbacUser;
|
|
16
|
+
/**
|
|
17
|
+
* Role information (read-only)
|
|
18
|
+
*/
|
|
19
|
+
readonly role: RbacRole;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the role to assign. Role must belong to the specified platform.
|
|
22
|
+
*/
|
|
23
|
+
role_id: number;
|
|
24
|
+
/**
|
|
25
|
+
* Platform key. Must match the role's platform and the user must be a member of this platform.
|
|
26
|
+
*/
|
|
27
|
+
platform_key: string;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the user to assign the role to. User must belong to the specified platform.
|
|
30
|
+
*/
|
|
31
|
+
user_id: number;
|
|
32
|
+
};
|
|
33
|
+
|