@iblai/iblai-api 3.47.2-ai-plus → 3.48.0-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.
Files changed (131) hide show
  1. package/dist/index.cjs.js +520 -1416
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +521 -1415
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +520 -1416
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +18 -43
  8. package/dist/types/models/PaginatedRbacGroupList.d.ts +7 -0
  9. package/dist/types/models/PaginatedRbacGroupRoleList.d.ts +7 -0
  10. package/dist/types/models/PaginatedRbacPolicyList.d.ts +7 -0
  11. package/dist/types/models/PaginatedRbacRoleList.d.ts +7 -0
  12. package/dist/types/models/PaginatedRbacUserRoleList.d.ts +7 -0
  13. package/dist/types/models/PatchedRbacGroup.d.ts +34 -0
  14. package/dist/types/models/PatchedRbacGroupRole.d.ts +13 -0
  15. package/dist/types/models/PatchedRbacPolicy.d.ts +28 -0
  16. package/dist/types/models/PatchedRbacRole.d.ts +20 -0
  17. package/dist/types/models/PatchedRbacUserRole.d.ts +28 -0
  18. package/dist/types/models/{VoiceProviderEnum.d.ts → ProviderEnum.d.ts} +1 -1
  19. package/dist/types/models/RbacGroup.d.ts +34 -0
  20. package/dist/types/models/RbacGroupRole.d.ts +13 -0
  21. package/dist/types/models/RbacPlatform.d.ts +14 -0
  22. package/dist/types/models/RbacPolicy.d.ts +28 -0
  23. package/dist/types/models/RbacRole.d.ts +20 -0
  24. package/dist/types/models/RbacUser.d.ts +13 -0
  25. package/dist/types/models/RbacUserRole.d.ts +28 -0
  26. package/dist/types/models/Voice.d.ts +2 -2
  27. package/dist/types/services/CoreService.d.ts +232 -43
  28. package/package.json +1 -1
  29. package/src/core/OpenAPI.ts +1 -1
  30. package/src/index.ts +18 -43
  31. package/src/models/{PaginatedDataSetList.ts → PaginatedRbacGroupList.ts} +3 -3
  32. package/src/models/PaginatedRbacGroupRoleList.ts +12 -0
  33. package/src/models/PaginatedRbacPolicyList.ts +12 -0
  34. package/src/models/{PaginatedTrainingList.ts → PaginatedRbacRoleList.ts} +3 -3
  35. package/src/models/PaginatedRbacUserRoleList.ts +12 -0
  36. package/src/models/PatchedRbacGroup.ts +39 -0
  37. package/src/models/PatchedRbacGroupRole.ts +18 -0
  38. package/src/models/PatchedRbacPolicy.ts +33 -0
  39. package/src/models/PatchedRbacRole.ts +25 -0
  40. package/src/models/PatchedRbacUserRole.ts +33 -0
  41. package/src/models/{VoiceProviderEnum.ts → ProviderEnum.ts} +1 -1
  42. package/src/models/RbacGroup.ts +39 -0
  43. package/src/models/RbacGroupRole.ts +18 -0
  44. package/src/models/RbacPlatform.ts +19 -0
  45. package/src/models/RbacPolicy.ts +33 -0
  46. package/src/models/RbacRole.ts +25 -0
  47. package/src/models/{WhatsappUserConfig.ts → RbacUser.ts} +9 -6
  48. package/src/models/RbacUserRole.ts +33 -0
  49. package/src/models/Voice.ts +2 -2
  50. package/src/services/CoreService.ts +610 -80
  51. package/dist/types/models/Bot.d.ts +0 -15
  52. package/dist/types/models/BotCommand.d.ts +0 -6
  53. package/dist/types/models/BotCreate.d.ts +0 -12
  54. package/dist/types/models/CheckPermissionRequest.d.ts +0 -22
  55. package/dist/types/models/DataSet.d.ts +0 -21
  56. package/dist/types/models/DataSetCreate.d.ts +0 -12
  57. package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
  58. package/dist/types/models/DiscordConfig.d.ts +0 -7
  59. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  60. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  61. package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
  62. package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
  63. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  64. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  65. package/dist/types/models/PatchedDataSet.d.ts +0 -21
  66. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  67. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  68. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  69. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  70. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  71. package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
  72. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  73. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  74. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  75. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  76. package/dist/types/models/Provider63aEnum.d.ts +0 -6
  77. package/dist/types/models/RolePermissions.d.ts +0 -17
  78. package/dist/types/models/SlackConfig.d.ts +0 -8
  79. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  80. package/dist/types/models/SlackWebhook.d.ts +0 -6
  81. package/dist/types/models/TeamsConfig.d.ts +0 -7
  82. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  83. package/dist/types/models/Training.d.ts +0 -41
  84. package/dist/types/models/TrainingCreate.d.ts +0 -31
  85. package/dist/types/models/UserRole.d.ts +0 -25
  86. package/dist/types/models/WebexConfig.d.ts +0 -10
  87. package/dist/types/models/WebexWebhook.d.ts +0 -4
  88. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  89. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  90. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  91. package/dist/types/services/AiBotService.d.ts +0 -486
  92. package/dist/types/services/AiFinetuningService.d.ts +0 -162
  93. package/src/models/Bot.ts +0 -20
  94. package/src/models/BotCommand.ts +0 -11
  95. package/src/models/BotCreate.ts +0 -17
  96. package/src/models/CheckPermissionRequest.ts +0 -27
  97. package/src/models/DataSet.ts +0 -26
  98. package/src/models/DataSetCreate.ts +0 -17
  99. package/src/models/DataSetStatusEnum.ts +0 -16
  100. package/src/models/DiscordConfig.ts +0 -12
  101. package/src/models/DiscordUserConfig.ts +0 -15
  102. package/src/models/DiscordWebhook.ts +0 -11
  103. package/src/models/PatchedBotCommand.ts +0 -11
  104. package/src/models/PatchedBotCreate.ts +0 -17
  105. package/src/models/PatchedDataSet.ts +0 -26
  106. package/src/models/PatchedDiscordConfig.ts +0 -12
  107. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  108. package/src/models/PatchedSlackConfig.ts +0 -13
  109. package/src/models/PatchedSlackUserConfig.ts +0 -22
  110. package/src/models/PatchedTeamsConfig.ts +0 -12
  111. package/src/models/PatchedTrainingCreate.ts +0 -36
  112. package/src/models/PatchedWebexConfig.ts +0 -15
  113. package/src/models/PatchedWhatsappConfig.ts +0 -16
  114. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  115. package/src/models/Provider05cEnum.ts +0 -18
  116. package/src/models/Provider63aEnum.ts +0 -10
  117. package/src/models/RolePermissions.ts +0 -22
  118. package/src/models/SlackConfig.ts +0 -13
  119. package/src/models/SlackUserConfig.ts +0 -22
  120. package/src/models/SlackWebhook.ts +0 -11
  121. package/src/models/TeamsConfig.ts +0 -12
  122. package/src/models/TeamsWebhook.ts +0 -22
  123. package/src/models/Training.ts +0 -46
  124. package/src/models/TrainingCreate.ts +0 -36
  125. package/src/models/UserRole.ts +0 -30
  126. package/src/models/WebexConfig.ts +0 -15
  127. package/src/models/WebexWebhook.ts +0 -9
  128. package/src/models/WhatAppWebHook.ts +0 -8
  129. package/src/models/WhatsappConfig.ts +0 -16
  130. package/src/services/AiBotService.ts +0 -1174
  131. package/src/services/AiFinetuningService.ts +0 -402
@@ -0,0 +1,20 @@
1
+ import type { RbacPlatform } from './RbacPlatform';
2
+ /**
3
+ * Serializer for roles.
4
+ */
5
+ export type RbacRole = {
6
+ readonly id: number;
7
+ name: string;
8
+ /**
9
+ * Platform information (read-only)
10
+ */
11
+ readonly platform: RbacPlatform;
12
+ /**
13
+ * Platform key where this role belongs
14
+ */
15
+ platform_key: string;
16
+ /**
17
+ * List of actions/permissions this role can perform (e.g., ['Ibl.Mentor/Settings/read', 'Ibl.Mentor/Settings/write'])
18
+ */
19
+ actions: Array<string>;
20
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Serializer for users.
3
+ */
4
+ export type RbacUser = {
5
+ /**
6
+ * edX user ID
7
+ */
8
+ readonly id: number;
9
+ /**
10
+ * edX username
11
+ */
12
+ username?: string | null;
13
+ };
@@ -0,0 +1,28 @@
1
+ import type { RbacRole } from './RbacRole';
2
+ import type { RbacUser } from './RbacUser';
3
+ /**
4
+ * Serializer for user roles.
5
+ */
6
+ export type RbacUserRole = {
7
+ readonly id: number;
8
+ /**
9
+ * User information (read-only)
10
+ */
11
+ readonly user: RbacUser;
12
+ /**
13
+ * Role information (read-only)
14
+ */
15
+ readonly role: RbacRole;
16
+ /**
17
+ * ID of the role to assign. Role must belong to the specified platform.
18
+ */
19
+ role_id: number;
20
+ /**
21
+ * Platform key. Must match the role's platform and the user must be a member of this platform.
22
+ */
23
+ platform_key: string;
24
+ /**
25
+ * ID of the user to assign the role to. User must belong to the specified platform.
26
+ */
27
+ user_id: number;
28
+ };
@@ -1,8 +1,8 @@
1
- import type { VoiceProviderEnum } from './VoiceProviderEnum';
1
+ import type { ProviderEnum } from './ProviderEnum';
2
2
  export type Voice = {
3
3
  readonly id: number;
4
4
  name: string;
5
- provider: VoiceProviderEnum;
5
+ provider: ProviderEnum;
6
6
  language?: string;
7
7
  description?: string;
8
8
  readonly audio_url: string;
@@ -1,18 +1,31 @@
1
1
  import type { CeleryHeartbeat } from '../models/CeleryHeartbeat';
2
- import type { CheckPermissionRequest } from '../models/CheckPermissionRequest';
3
2
  import type { EdxSignalReceiverRequest } from '../models/EdxSignalReceiverRequest';
4
3
  import type { ImageUpload } from '../models/ImageUpload';
5
4
  import type { LauncherViewPostRequest } from '../models/LauncherViewPostRequest';
6
5
  import type { LtiKey } from '../models/LtiKey';
7
6
  import type { LtiTool } from '../models/LtiTool';
7
+ import type { PaginatedRbacGroupList } from '../models/PaginatedRbacGroupList';
8
+ import type { PaginatedRbacGroupRoleList } from '../models/PaginatedRbacGroupRoleList';
9
+ import type { PaginatedRbacPolicyList } from '../models/PaginatedRbacPolicyList';
10
+ import type { PaginatedRbacRoleList } from '../models/PaginatedRbacRoleList';
11
+ import type { PaginatedRbacUserRoleList } from '../models/PaginatedRbacUserRoleList';
8
12
  import type { PatchedPlatformPublicMetadata } from '../models/PatchedPlatformPublicMetadata';
13
+ import type { PatchedRbacGroup } from '../models/PatchedRbacGroup';
14
+ import type { PatchedRbacGroupRole } from '../models/PatchedRbacGroupRole';
15
+ import type { PatchedRbacPolicy } from '../models/PatchedRbacPolicy';
16
+ import type { PatchedRbacRole } from '../models/PatchedRbacRole';
17
+ import type { PatchedRbacUserRole } from '../models/PatchedRbacUserRole';
9
18
  import type { PlatformApiKey } from '../models/PlatformApiKey';
10
19
  import type { PlatformList } from '../models/PlatformList';
11
20
  import type { PlatformPublicMetadata } from '../models/PlatformPublicMetadata';
12
21
  import type { PlatformUpdatePostRequest } from '../models/PlatformUpdatePostRequest';
22
+ import type { RbacGroup } from '../models/RbacGroup';
23
+ import type { RbacGroupRole } from '../models/RbacGroupRole';
24
+ import type { RbacPolicy } from '../models/RbacPolicy';
25
+ import type { RbacRole } from '../models/RbacRole';
26
+ import type { RbacUserRole } from '../models/RbacUserRole';
13
27
  import type { RedirectTokenRequest } from '../models/RedirectTokenRequest';
14
28
  import type { RedirectTokenResponse } from '../models/RedirectTokenResponse';
15
- import type { RolePermissions } from '../models/RolePermissions';
16
29
  import type { TokenProxyInput } from '../models/TokenProxyInput';
17
30
  import type { TokenProxyOutput } from '../models/TokenProxyOutput';
18
31
  import type { UserDeleteAPIRequest } from '../models/UserDeleteAPIRequest';
@@ -24,7 +37,6 @@ import type { UserProxyBulkRequest } from '../models/UserProxyBulkRequest';
24
37
  import type { UserProxyGetResponse } from '../models/UserProxyGetResponse';
25
38
  import type { UserProxyPostRequest } from '../models/UserProxyPostRequest';
26
39
  import type { UserProxyPostResponse } from '../models/UserProxyPostResponse';
27
- import type { UserRole } from '../models/UserRole';
28
40
  import type { UserSearchViewGetResponse } from '../models/UserSearchViewGetResponse';
29
41
  import type { WhitelistedDomain } from '../models/WhitelistedDomain';
30
42
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -467,92 +479,269 @@ export declare class CoreService {
467
479
  */
468
480
  static corePlatformUsersRetrieve(page?: number, pageSize?: number, platformKey?: string, platformOrg?: string, query?: string, sort?: string): CancelablePromise<UserPlatformManagementListViewGetResponse>;
469
481
  /**
470
- * Check if a user has permission to perform an action on a resource.
482
+ * List group role assignments
483
+ * Retrieve a list of group role assignments. Can be filtered by platform_key, group_id, or role_id.
484
+ * @param groupId Filter group roles by group ID
485
+ * @param page A page number within the paginated result set.
486
+ * @param pageSize Number of results to return per page.
487
+ * @param platformKey Filter group roles by platform key
488
+ * @param roleId Filter group roles by role ID
489
+ * @returns PaginatedRbacGroupRoleList
490
+ * @throws ApiError
491
+ */
492
+ static coreRbacGroupRolesList(groupId?: number, page?: number, pageSize?: number, platformKey?: string, roleId?: number): CancelablePromise<PaginatedRbacGroupRoleList>;
493
+ /**
494
+ * Create group role assignment
495
+ * Assign a role to a group. The group and role must belong to the same platform.
471
496
  * @param requestBody
472
- * @returns any User has permission to perform the action on the resource.
497
+ * @returns RbacGroupRole
473
498
  * @throws ApiError
474
499
  */
475
- static coreRbacCheckPermissionsCreate(requestBody: CheckPermissionRequest): CancelablePromise<any>;
500
+ static coreRbacGroupRolesCreate(requestBody: RbacGroupRole): CancelablePromise<RbacGroupRole>;
476
501
  /**
477
- * Get all associations for a resource.
478
- * @returns any No response body
502
+ * Retrieve group role assignment
503
+ * Retrieve details of a specific group role assignment.
504
+ * @param id A unique integer value identifying this RBAC Group Role.
505
+ * @returns RbacGroupRole
479
506
  * @throws ApiError
480
507
  */
481
- static coreRbacResourceAssociationRetrieve(): CancelablePromise<any>;
508
+ static coreRbacGroupRolesRetrieve(id: number): CancelablePromise<RbacGroupRole>;
482
509
  /**
483
- * Associate a resource with a resource.
484
- * @returns any No response body
510
+ * Update group role assignment
511
+ * Update an existing group role assignment. Platform validation applies.
512
+ * @param id A unique integer value identifying this RBAC Group Role.
513
+ * @param requestBody
514
+ * @returns RbacGroupRole
485
515
  * @throws ApiError
486
516
  */
487
- static coreRbacResourceAssociationCreate(): CancelablePromise<any>;
517
+ static coreRbacGroupRolesUpdate(id: number, requestBody: RbacGroupRole): CancelablePromise<RbacGroupRole>;
488
518
  /**
489
- * Disassociate a resource from a resource.
519
+ * Partially update group role assignment
520
+ * Partially update an existing group role assignment. Platform validation applies.
521
+ * @param id A unique integer value identifying this RBAC Group Role.
522
+ * @param requestBody
523
+ * @returns RbacGroupRole
524
+ * @throws ApiError
525
+ */
526
+ static coreRbacGroupRolesPartialUpdate(id: number, requestBody?: PatchedRbacGroupRole): CancelablePromise<RbacGroupRole>;
527
+ /**
528
+ * Delete group role assignment
529
+ * Remove a role assignment from a group.
530
+ * @param id A unique integer value identifying this RBAC Group Role.
490
531
  * @returns void
491
532
  * @throws ApiError
492
533
  */
493
- static coreRbacResourceAssociationDestroy(): CancelablePromise<void>;
534
+ static coreRbacGroupRolesDestroy(id: number): CancelablePromise<void>;
494
535
  /**
495
- * Get all permissions for a role.
496
- * @returns any List of permissions for the role.
536
+ * List RBAC groups
537
+ * Retrieve a list of RBAC groups. Can be filtered by platform_key.
538
+ * @param page A page number within the paginated result set.
539
+ * @param pageSize Number of results to return per page.
540
+ * @param platformKey Filter groups by platform key
541
+ * @returns PaginatedRbacGroupList
497
542
  * @throws ApiError
498
543
  */
499
- static coreRbacRolePermissionsRetrieve(): CancelablePromise<any>;
544
+ static coreRbacGroupsList(page?: number, pageSize?: number, platformKey?: string): CancelablePromise<PaginatedRbacGroupList>;
500
545
  /**
501
- * Add a permission to a role.
546
+ * Create RBAC group
547
+ * Create a new RBAC group for a platform. Users can be assigned during creation.
502
548
  * @param requestBody
503
- * @returns any Permission already exists for this role.
549
+ * @returns RbacGroup
504
550
  * @throws ApiError
505
551
  */
506
- static coreRbacRolePermissionsCreate(requestBody: RolePermissions): CancelablePromise<any>;
552
+ static coreRbacGroupsCreate(requestBody: RbacGroup): CancelablePromise<RbacGroup>;
507
553
  /**
508
- * Remove a permission from a role.
509
- * @returns any Permission does not exist for this role.
554
+ * Retrieve RBAC group
555
+ * Retrieve details of a specific RBAC group including assigned users.
556
+ * @param id A unique integer value identifying this RBAC Group.
557
+ * @returns RbacGroup
510
558
  * @throws ApiError
511
559
  */
512
- static coreRbacRolePermissionsDestroy(): CancelablePromise<any>;
560
+ static coreRbacGroupsRetrieve(id: number): CancelablePromise<RbacGroup>;
513
561
  /**
514
- * Get all users in a role.
515
- * @returns any List of users in the role.
562
+ * Update RBAC group
563
+ * Update an existing RBAC group. Platform validation applies for user assignments.
564
+ * @param id A unique integer value identifying this RBAC Group.
565
+ * @param requestBody
566
+ * @returns RbacGroup
516
567
  * @throws ApiError
517
568
  */
518
- static coreRbacRoleUsersRetrieve(): CancelablePromise<any>;
569
+ static coreRbacGroupsUpdate(id: number, requestBody: RbacGroup): CancelablePromise<RbacGroup>;
519
570
  /**
520
- * Get all roles for a platform.
521
- * @returns any List of roles for the platform.
571
+ * Partially update RBAC group
572
+ * Partially update an existing RBAC group. Platform validation applies for user assignments.
573
+ * @param id A unique integer value identifying this RBAC Group.
574
+ * @param requestBody
575
+ * @returns RbacGroup
522
576
  * @throws ApiError
523
577
  */
524
- static coreRbacRolesRetrieve(): CancelablePromise<any>;
578
+ static coreRbacGroupsPartialUpdate(id: number, requestBody?: PatchedRbacGroup): CancelablePromise<RbacGroup>;
525
579
  /**
526
- * Create a new role.
527
- * @returns any No response body
580
+ * Delete RBAC group
581
+ * Delete an RBAC group and all associated group role assignments.
582
+ * @param id A unique integer value identifying this RBAC Group.
583
+ * @returns void
584
+ * @throws ApiError
585
+ */
586
+ static coreRbacGroupsDestroy(id: number): CancelablePromise<void>;
587
+ /**
588
+ * List RBAC policies
589
+ * Retrieve a list of RBAC policies. Can be filtered by platform_key or role_id.
590
+ * @param page A page number within the paginated result set.
591
+ * @param pageSize Number of results to return per page.
592
+ * @param platformKey Filter policies by platform key
593
+ * @param roleId Filter policies by role ID
594
+ * @returns PaginatedRbacPolicyList
595
+ * @throws ApiError
596
+ */
597
+ static coreRbacPoliciesList(page?: number, pageSize?: number, platformKey?: string, roleId?: number): CancelablePromise<PaginatedRbacPolicyList>;
598
+ /**
599
+ * Create RBAC policy
600
+ * Create a new RBAC policy that defines resource access for a role.
601
+ * @param requestBody
602
+ * @returns RbacPolicy
603
+ * @throws ApiError
604
+ */
605
+ static coreRbacPoliciesCreate(requestBody: RbacPolicy): CancelablePromise<RbacPolicy>;
606
+ /**
607
+ * Retrieve RBAC policy
608
+ * Retrieve details of a specific RBAC policy.
609
+ * @param id A unique integer value identifying this RBAC Policy.
610
+ * @returns RbacPolicy
611
+ * @throws ApiError
612
+ */
613
+ static coreRbacPoliciesRetrieve(id: number): CancelablePromise<RbacPolicy>;
614
+ /**
615
+ * Update RBAC policy
616
+ * Update an existing RBAC policy.
617
+ * @param id A unique integer value identifying this RBAC Policy.
618
+ * @param requestBody
619
+ * @returns RbacPolicy
620
+ * @throws ApiError
621
+ */
622
+ static coreRbacPoliciesUpdate(id: number, requestBody: RbacPolicy): CancelablePromise<RbacPolicy>;
623
+ /**
624
+ * Partially update RBAC policy
625
+ * Partially update an existing RBAC policy.
626
+ * @param id A unique integer value identifying this RBAC Policy.
627
+ * @param requestBody
628
+ * @returns RbacPolicy
629
+ * @throws ApiError
630
+ */
631
+ static coreRbacPoliciesPartialUpdate(id: number, requestBody?: PatchedRbacPolicy): CancelablePromise<RbacPolicy>;
632
+ /**
633
+ * Delete RBAC policy
634
+ * Delete an RBAC policy.
635
+ * @param id A unique integer value identifying this RBAC Policy.
636
+ * @returns void
637
+ * @throws ApiError
638
+ */
639
+ static coreRbacPoliciesDestroy(id: number): CancelablePromise<void>;
640
+ /**
641
+ * List RBAC roles
642
+ * Retrieve a list of RBAC roles. Can be filtered by platform_key.
643
+ * @param page A page number within the paginated result set.
644
+ * @param pageSize Number of results to return per page.
645
+ * @param platformKey Filter roles by platform key
646
+ * @returns PaginatedRbacRoleList
647
+ * @throws ApiError
648
+ */
649
+ static coreRbacRolesList(page?: number, pageSize?: number, platformKey?: string): CancelablePromise<PaginatedRbacRoleList>;
650
+ /**
651
+ * Create RBAC role
652
+ * Create a new RBAC role for a platform.
653
+ * @param requestBody
654
+ * @returns RbacRole
655
+ * @throws ApiError
656
+ */
657
+ static coreRbacRolesCreate(requestBody: RbacRole): CancelablePromise<RbacRole>;
658
+ /**
659
+ * Retrieve RBAC role
660
+ * Retrieve details of a specific RBAC role.
661
+ * @param id A unique integer value identifying this RBAC Role.
662
+ * @returns RbacRole
663
+ * @throws ApiError
664
+ */
665
+ static coreRbacRolesRetrieve(id: number): CancelablePromise<RbacRole>;
666
+ /**
667
+ * Update RBAC role
668
+ * Update an existing RBAC role.
669
+ * @param id A unique integer value identifying this RBAC Role.
670
+ * @param requestBody
671
+ * @returns RbacRole
528
672
  * @throws ApiError
529
673
  */
530
- static coreRbacRolesCreate(): CancelablePromise<any>;
674
+ static coreRbacRolesUpdate(id: number, requestBody: RbacRole): CancelablePromise<RbacRole>;
531
675
  /**
532
- * Delete a role.
676
+ * Partially update RBAC role
677
+ * Partially update an existing RBAC role.
678
+ * @param id A unique integer value identifying this RBAC Role.
679
+ * @param requestBody
680
+ * @returns RbacRole
681
+ * @throws ApiError
682
+ */
683
+ static coreRbacRolesPartialUpdate(id: number, requestBody?: PatchedRbacRole): CancelablePromise<RbacRole>;
684
+ /**
685
+ * Delete RBAC role
686
+ * Delete an RBAC role.
687
+ * @param id A unique integer value identifying this RBAC Role.
533
688
  * @returns void
534
689
  * @throws ApiError
535
690
  */
536
- static coreRbacRolesDestroy(): CancelablePromise<void>;
691
+ static coreRbacRolesDestroy(id: number): CancelablePromise<void>;
692
+ /**
693
+ * List user role assignments
694
+ * Retrieve a list of user role assignments. Can be filtered by platform_key or user_id.
695
+ * @param page A page number within the paginated result set.
696
+ * @param pageSize Number of results to return per page.
697
+ * @param platformKey Filter user roles by platform key
698
+ * @param userId Filter user roles by user ID
699
+ * @returns PaginatedRbacUserRoleList
700
+ * @throws ApiError
701
+ */
702
+ static coreRbacUserRolesList(page?: number, pageSize?: number, platformKey?: string, userId?: number): CancelablePromise<PaginatedRbacUserRoleList>;
703
+ /**
704
+ * Create user role assignment
705
+ * Assign a role to a user. The user must belong to the same platform as the role.
706
+ * @param requestBody
707
+ * @returns RbacUserRole
708
+ * @throws ApiError
709
+ */
710
+ static coreRbacUserRolesCreate(requestBody: RbacUserRole): CancelablePromise<RbacUserRole>;
711
+ /**
712
+ * Retrieve user role assignment
713
+ * Retrieve details of a specific user role assignment.
714
+ * @param id A unique integer value identifying this RBAC User Role.
715
+ * @returns RbacUserRole
716
+ * @throws ApiError
717
+ */
718
+ static coreRbacUserRolesRetrieve(id: number): CancelablePromise<RbacUserRole>;
537
719
  /**
538
- * Get all roles for a user.
539
- * @returns any List of roles for the user.
720
+ * Update user role assignment
721
+ * Update an existing user role assignment. Platform validation applies.
722
+ * @param id A unique integer value identifying this RBAC User Role.
723
+ * @param requestBody
724
+ * @returns RbacUserRole
540
725
  * @throws ApiError
541
726
  */
542
- static coreRbacUserRolesRetrieve(): CancelablePromise<any>;
727
+ static coreRbacUserRolesUpdate(id: number, requestBody: RbacUserRole): CancelablePromise<RbacUserRole>;
543
728
  /**
544
- * Add a user to a role.
729
+ * Partially update user role assignment
730
+ * Partially update an existing user role assignment. Platform validation applies.
731
+ * @param id A unique integer value identifying this RBAC User Role.
545
732
  * @param requestBody
546
- * @returns any Role already exists for this user.
733
+ * @returns RbacUserRole
547
734
  * @throws ApiError
548
735
  */
549
- static coreRbacUserRolesCreate(requestBody: UserRole): CancelablePromise<any>;
736
+ static coreRbacUserRolesPartialUpdate(id: number, requestBody?: PatchedRbacUserRole): CancelablePromise<RbacUserRole>;
550
737
  /**
551
- * Remove a user from a role.
552
- * @returns any Role does not exist for this user.
738
+ * Delete user role assignment
739
+ * Remove a role assignment from a user.
740
+ * @param id A unique integer value identifying this RBAC User Role.
741
+ * @returns void
553
742
  * @throws ApiError
554
743
  */
555
- static coreRbacUserRolesDestroy(): CancelablePromise<any>;
744
+ static coreRbacUserRolesDestroy(id: number): CancelablePromise<void>;
556
745
  /**
557
746
  * Invalidate all tokens for the authenticated user
558
747
  * @returns any No response body
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "3.47.2-ai-plus",
3
+ "version": "3.48.0-ai",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://base.manager.iblai.app',
24
- VERSION: '3.47.2-ai-plus',
24
+ VERSION: '3.48.0-ai',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
package/src/index.ts CHANGED
@@ -48,9 +48,6 @@ export { BlankEnum } from './models/BlankEnum';
48
48
  export type { BlankPlatformInvitationCreate } from './models/BlankPlatformInvitationCreate';
49
49
  export type { BlankProgramInvitationCreate } from './models/BlankProgramInvitationCreate';
50
50
  export type { BlockSkillPointInfoRequest } from './models/BlockSkillPointInfoRequest';
51
- export type { Bot } from './models/Bot';
52
- export type { BotCommand } from './models/BotCommand';
53
- export type { BotCreate } from './models/BotCreate';
54
51
  export type { BulkCourseInvitationCreate } from './models/BulkCourseInvitationCreate';
55
52
  export type { BulkCourseInvitationResponse } from './models/BulkCourseInvitationResponse';
56
53
  export type { BulkCreateAssertion } from './models/BulkCreateAssertion';
@@ -77,7 +74,6 @@ export type { ChatHistorySessionId } from './models/ChatHistorySessionId';
77
74
  export type { ChatSessionRequest } from './models/ChatSessionRequest';
78
75
  export type { ChatSessionResponse } from './models/ChatSessionResponse';
79
76
  export type { CheckDocumentTrainingStatus } from './models/CheckDocumentTrainingStatus';
80
- export type { CheckPermissionRequest } from './models/CheckPermissionRequest';
81
77
  export type { Company } from './models/Company';
82
78
  export type { ComponentBlock } from './models/ComponentBlock';
83
79
  export { ComponentBlockTypeEnum } from './models/ComponentBlockTypeEnum';
@@ -141,9 +137,6 @@ export type { Credential } from './models/Credential';
141
137
  export type { CredentialRequest } from './models/CredentialRequest';
142
138
  export type { CrontabSchedule } from './models/CrontabSchedule';
143
139
  export type { CustomInstructionResponse } from './models/CustomInstructionResponse';
144
- export type { DataSet } from './models/DataSet';
145
- export type { DataSetCreate } from './models/DataSetCreate';
146
- export { DataSetStatusEnum } from './models/DataSetStatusEnum';
147
140
  export type { DateRange } from './models/DateRange';
148
141
  export type { DesiredRole } from './models/DesiredRole';
149
142
  export type { DesiredRoleCreateUpdateRequest } from './models/DesiredRoleCreateUpdateRequest';
@@ -152,9 +145,6 @@ export type { DesiredSkillCreateUpdateRequest } from './models/DesiredSkillCreat
152
145
  export type { DetailedGradeSubsection } from './models/DetailedGradeSubsection';
153
146
  export type { DetailedGradeView } from './models/DetailedGradeView';
154
147
  export type { DetailedGradeViewData } from './models/DetailedGradeViewData';
155
- export type { DiscordConfig } from './models/DiscordConfig';
156
- export type { DiscordUserConfig } from './models/DiscordUserConfig';
157
- export type { DiscordWebhook } from './models/DiscordWebhook';
158
148
  export type { Document } from './models/Document';
159
149
  export type { DocumentFacet } from './models/DocumentFacet';
160
150
  export type { DocumentSearchResponse } from './models/DocumentSearchResponse';
@@ -308,7 +298,6 @@ export type { PaginatedCourseLicense } from './models/PaginatedCourseLicense';
308
298
  export type { PaginatedCourseLicenseAssignment } from './models/PaginatedCourseLicenseAssignment';
309
299
  export type { PaginatedCourseLicenseGroupAssignment } from './models/PaginatedCourseLicenseGroupAssignment';
310
300
  export type { PaginatedCourseSuggestion } from './models/PaginatedCourseSuggestion';
311
- export type { PaginatedDataSetList } from './models/PaginatedDataSetList';
312
301
  export type { PaginatedEdxCourseList } from './models/PaginatedEdxCourseList';
313
302
  export type { PaginatedEmailPromptListList } from './models/PaginatedEmailPromptListList';
314
303
  export type { PaginatedHeygenMarketingVideoListList } from './models/PaginatedHeygenMarketingVideoListList';
@@ -330,11 +319,15 @@ export type { PaginatedProgramLicense } from './models/PaginatedProgramLicense';
330
319
  export type { PaginatedProgramLicenseAssignment } from './models/PaginatedProgramLicenseAssignment';
331
320
  export type { PaginatedProgramLicenseGroupAssignment } from './models/PaginatedProgramLicenseGroupAssignment';
332
321
  export type { PaginatedProgramSuggestion } from './models/PaginatedProgramSuggestion';
322
+ export type { PaginatedRbacGroupList } from './models/PaginatedRbacGroupList';
323
+ export type { PaginatedRbacGroupRoleList } from './models/PaginatedRbacGroupRoleList';
324
+ export type { PaginatedRbacPolicyList } from './models/PaginatedRbacPolicyList';
325
+ export type { PaginatedRbacRoleList } from './models/PaginatedRbacRoleList';
326
+ export type { PaginatedRbacUserRoleList } from './models/PaginatedRbacUserRoleList';
333
327
  export type { PaginatedSectionList } from './models/PaginatedSectionList';
334
328
  export type { PaginatedSkill } from './models/PaginatedSkill';
335
329
  export type { PaginatedSubSectionList } from './models/PaginatedSubSectionList';
336
330
  export type { PaginatedTopicStatisticsResponse } from './models/PaginatedTopicStatisticsResponse';
337
- export type { PaginatedTrainingList } from './models/PaginatedTrainingList';
338
331
  export type { PaginatedUnitList } from './models/PaginatedUnitList';
339
332
  export type { PaginatedUserAppList } from './models/PaginatedUserAppList';
340
333
  export type { PaginatedUserEdxMemoryList } from './models/PaginatedUserEdxMemoryList';
@@ -343,14 +336,9 @@ export type { PaginatedUserLicenseAssignment } from './models/PaginatedUserLicen
343
336
  export type { PaginatedUserLicenseGroupAssignment } from './models/PaginatedUserLicenseGroupAssignment';
344
337
  export type { PaginatedVoiceList } from './models/PaginatedVoiceList';
345
338
  export type { Pagination } from './models/Pagination';
346
- export type { PatchedBotCommand } from './models/PatchedBotCommand';
347
- export type { PatchedBotCreate } from './models/PatchedBotCreate';
348
339
  export type { PatchedConversations } from './models/PatchedConversations';
349
340
  export type { PatchedCourseCreationTaskFile } from './models/PatchedCourseCreationTaskFile';
350
341
  export type { PatchedCredentialRequest } from './models/PatchedCredentialRequest';
351
- export type { PatchedDataSet } from './models/PatchedDataSet';
352
- export type { PatchedDiscordConfig } from './models/PatchedDiscordConfig';
353
- export type { PatchedDiscordUserConfig } from './models/PatchedDiscordUserConfig';
354
342
  export type { PatchedLLMCredentialRequest } from './models/PatchedLLMCredentialRequest';
355
343
  export type { PatchedMCPServer } from './models/PatchedMCPServer';
356
344
  export type { PatchedMediaResource } from './models/PatchedMediaResource';
@@ -361,17 +349,15 @@ export type { PatchedPeriodicAgentCreate } from './models/PatchedPeriodicAgentCr
361
349
  export type { PatchedPlatformPublicMetadata } from './models/PatchedPlatformPublicMetadata';
362
350
  export type { PatchedPlayWrightScript } from './models/PatchedPlayWrightScript';
363
351
  export type { PatchedPrompt } from './models/PatchedPrompt';
352
+ export type { PatchedRbacGroup } from './models/PatchedRbacGroup';
353
+ export type { PatchedRbacGroupRole } from './models/PatchedRbacGroupRole';
354
+ export type { PatchedRbacPolicy } from './models/PatchedRbacPolicy';
355
+ export type { PatchedRbacRole } from './models/PatchedRbacRole';
356
+ export type { PatchedRbacUserRole } from './models/PatchedRbacUserRole';
364
357
  export type { PatchedSection } from './models/PatchedSection';
365
358
  export type { PatchedSkillThreshold } from './models/PatchedSkillThreshold';
366
- export type { PatchedSlackConfig } from './models/PatchedSlackConfig';
367
- export type { PatchedSlackUserConfig } from './models/PatchedSlackUserConfig';
368
359
  export type { PatchedSubSection } from './models/PatchedSubSection';
369
- export type { PatchedTeamsConfig } from './models/PatchedTeamsConfig';
370
- export type { PatchedTrainingCreate } from './models/PatchedTrainingCreate';
371
360
  export type { PatchedUnit } from './models/PatchedUnit';
372
- export type { PatchedWebexConfig } from './models/PatchedWebexConfig';
373
- export type { PatchedWhatsappConfig } from './models/PatchedWhatsappConfig';
374
- export type { PatchedWhatsappUserConfig } from './models/PatchedWhatsappUserConfig';
375
361
  export type { Pathway } from './models/Pathway';
376
362
  export type { PathwayCompletionResponse } from './models/PathwayCompletionResponse';
377
363
  export type { PathwayCreateUpdateRequest } from './models/PathwayCreateUpdateRequest';
@@ -476,13 +462,19 @@ export type { PromptCategory } from './models/PromptCategory';
476
462
  export type { PromptFacet } from './models/PromptFacet';
477
463
  export type { PromptSearchResponse } from './models/PromptSearchResponse';
478
464
  export { PromptVisibilityEnum } from './models/PromptVisibilityEnum';
479
- export { Provider05cEnum } from './models/Provider05cEnum';
480
- export { Provider63aEnum } from './models/Provider63aEnum';
465
+ export { ProviderEnum } from './models/ProviderEnum';
481
466
  export type { QuestionCardTag } from './models/QuestionCardTag';
482
467
  export type { QuestionRequest } from './models/QuestionRequest';
483
468
  export type { QuestionResponse } from './models/QuestionResponse';
484
469
  export { RatingEnum } from './models/RatingEnum';
485
470
  export type { RatingRecord } from './models/RatingRecord';
471
+ export type { RbacGroup } from './models/RbacGroup';
472
+ export type { RbacGroupRole } from './models/RbacGroupRole';
473
+ export type { RbacPlatform } from './models/RbacPlatform';
474
+ export type { RbacPolicy } from './models/RbacPolicy';
475
+ export type { RbacRole } from './models/RbacRole';
476
+ export type { RbacUser } from './models/RbacUser';
477
+ export type { RbacUserRole } from './models/RbacUserRole';
486
478
  export type { RecentlyAccessedMentor } from './models/RecentlyAccessedMentor';
487
479
  export type { Recipient } from './models/Recipient';
488
480
  export type { RecommendationSearchAPI } from './models/RecommendationSearchAPI';
@@ -523,7 +515,6 @@ export type { ReuestDataVariableList } from './models/ReuestDataVariableList';
523
515
  export type { RevenueByProduct } from './models/RevenueByProduct';
524
516
  export type { Role } from './models/Role';
525
517
  export type { RoleCreateUpdateRequest } from './models/RoleCreateUpdateRequest';
526
- export type { RolePermissions } from './models/RolePermissions';
527
518
  export type { RunMentorEval } from './models/RunMentorEval';
528
519
  export type { ScanWebhookRequest } from './models/ScanWebhookRequest';
529
520
  export type { ScanWebhookResponse } from './models/ScanWebhookResponse';
@@ -542,9 +533,6 @@ export type { SkillCreateUpdateRequest } from './models/SkillCreateUpdateRequest
542
533
  export type { SkillDetail } from './models/SkillDetail';
543
534
  export type { SkillInfo } from './models/SkillInfo';
544
535
  export type { SkillThreshold } from './models/SkillThreshold';
545
- export type { SlackConfig } from './models/SlackConfig';
546
- export type { SlackUserConfig } from './models/SlackUserConfig';
547
- export type { SlackWebhook } from './models/SlackWebhook';
548
536
  export type { SpacedRepetitionLearningPath } from './models/SpacedRepetitionLearningPath';
549
537
  export type { SpacedRepetitionQuestionStats } from './models/SpacedRepetitionQuestionStats';
550
538
  export type { StarMentor } from './models/StarMentor';
@@ -568,8 +556,6 @@ export type { Summary } from './models/Summary';
568
556
  export type { TagsView } from './models/TagsView';
569
557
  export { TargetSystemEnum } from './models/TargetSystemEnum';
570
558
  export type { TaskView } from './models/TaskView';
571
- export type { TeamsConfig } from './models/TeamsConfig';
572
- export type { TeamsWebhook } from './models/TeamsWebhook';
573
559
  export type { TemplateMentor } from './models/TemplateMentor';
574
560
  export type { TenantLaunchError } from './models/TenantLaunchError';
575
561
  export type { TenantLaunchFailed } from './models/TenantLaunchFailed';
@@ -603,8 +589,6 @@ export type { TrainChatSessionDocumentView } from './models/TrainChatSessionDocu
603
589
  export type { TrainChatSessionDocumentViewRequest } from './models/TrainChatSessionDocumentViewRequest';
604
590
  export type { TrainDocumentViewRequest } from './models/TrainDocumentViewRequest';
605
591
  export type { TrainDocumentViewResponse } from './models/TrainDocumentViewResponse';
606
- export type { Training } from './models/Training';
607
- export type { TrainingCreate } from './models/TrainingCreate';
608
592
  export { TrainingStatusEnum } from './models/TrainingStatusEnum';
609
593
  export { TransportEnum } from './models/TransportEnum';
610
594
  export type { TrendEntry } from './models/TrendEntry';
@@ -648,7 +632,6 @@ export type { UserProxyBulkRequest } from './models/UserProxyBulkRequest';
648
632
  export type { UserProxyGetResponse } from './models/UserProxyGetResponse';
649
633
  export type { UserProxyPostRequest } from './models/UserProxyPostRequest';
650
634
  export type { UserProxyPostResponse } from './models/UserProxyPostResponse';
651
- export type { UserRole } from './models/UserRole';
652
635
  export type { UserSearchResponse } from './models/UserSearchResponse';
653
636
  export type { UserSearchViewGetResponse } from './models/UserSearchViewGetResponse';
654
637
  export type { UserSentimentCountView } from './models/UserSentimentCountView';
@@ -674,25 +657,17 @@ export type { VideosSpecificCourse } from './models/VideosSpecificCourse';
674
657
  export type { VideosSpecificCourseData } from './models/VideosSpecificCourseData';
675
658
  export type { VideosWatchedSubSection } from './models/VideosWatchedSubSection';
676
659
  export type { Voice } from './models/Voice';
677
- export { VoiceProviderEnum } from './models/VoiceProviderEnum';
678
660
  export type { WatchedVideosPerCourse } from './models/WatchedVideosPerCourse';
679
661
  export type { WatchedVideosPerCourseData } from './models/WatchedVideosPerCourseData';
680
662
  export type { WatchedVideosPerUser } from './models/WatchedVideosPerUser';
681
663
  export type { WatchedVideosPerUserData } from './models/WatchedVideosPerUserData';
682
- export type { WebexConfig } from './models/WebexConfig';
683
- export type { WebexWebhook } from './models/WebexWebhook';
684
664
  export type { WebResource } from './models/WebResource';
685
665
  export type { WebResourceCard } from './models/WebResourceCard';
686
666
  export type { WebResourcesQuery } from './models/WebResourcesQuery';
687
- export type { WhatAppWebHook } from './models/WhatAppWebHook';
688
- export type { WhatsappConfig } from './models/WhatsappConfig';
689
- export type { WhatsappUserConfig } from './models/WhatsappUserConfig';
690
667
  export type { WhitelistedDomain } from './models/WhitelistedDomain';
691
668
 
692
669
  export { AiAccountService } from './services/AiAccountService';
693
670
  export { AiAnalyticsService } from './services/AiAnalyticsService';
694
- export { AiBotService } from './services/AiBotService';
695
- export { AiFinetuningService } from './services/AiFinetuningService';
696
671
  export { AiIndexService } from './services/AiIndexService';
697
672
  export { AiMarketingService } from './services/AiMarketingService';
698
673
  export { AiMediaService } from './services/AiMediaService';