@iblai/data-layer 1.0.0 → 1.1.2

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.js CHANGED
@@ -113,7 +113,7 @@ class CancelablePromise {
113
113
 
114
114
  const OpenAPI = {
115
115
  BASE: 'https://base.manager.iblai.app',
116
- VERSION: '4.64.2-ai-plus',
116
+ VERSION: '4.95.5-ai-plus',
117
117
  WITH_CREDENTIALS: false,
118
118
  CREDENTIALS: 'include',
119
119
  TOKEN: undefined,
@@ -167,6 +167,22 @@ var AlignMentorBubbleEnum;
167
167
  AlignMentorBubbleEnum["RIGHT"] = "right";
168
168
  })(AlignMentorBubbleEnum || (AlignMentorBubbleEnum = {}));
169
169
 
170
+ /* generated using openapi-typescript-codegen -- do not edit */
171
+ /* istanbul ignore file */
172
+ /* tslint:disable */
173
+ /* eslint-disable */
174
+ /**
175
+ * * `none` - None
176
+ * * `token` - Token
177
+ * * `oauth2` - Oauth2
178
+ */
179
+ var AuthTypeEnum;
180
+ (function (AuthTypeEnum) {
181
+ AuthTypeEnum["NONE"] = "none";
182
+ AuthTypeEnum["TOKEN"] = "token";
183
+ AuthTypeEnum["OAUTH2"] = "oauth2";
184
+ })(AuthTypeEnum || (AuthTypeEnum = {}));
185
+
170
186
  /* generated using openapi-typescript-codegen -- do not edit */
171
187
  /* istanbul ignore file */
172
188
  /* tslint:disable */
@@ -223,18 +239,6 @@ var ComponentBlockTypeEnum;
223
239
  ComponentBlockTypeEnum["MULTIPLE_CHOICE"] = "multiple_choice";
224
240
  })(ComponentBlockTypeEnum || (ComponentBlockTypeEnum = {}));
225
241
 
226
- /* generated using openapi-typescript-codegen -- do not edit */
227
- /* istanbul ignore file */
228
- /* tslint:disable */
229
- /* eslint-disable */
230
- /**
231
- * * `google` - Google
232
- */
233
- var ConnectedServiceProviderEnum;
234
- (function (ConnectedServiceProviderEnum) {
235
- ConnectedServiceProviderEnum["GOOGLE"] = "google";
236
- })(ConnectedServiceProviderEnum || (ConnectedServiceProviderEnum = {}));
237
-
238
242
  /* generated using openapi-typescript-codegen -- do not edit */
239
243
  /* istanbul ignore file */
240
244
  /* tslint:disable */
@@ -289,6 +293,20 @@ var DataSetStatusEnum;
289
293
  DataSetStatusEnum["FAILED"] = "failed";
290
294
  })(DataSetStatusEnum || (DataSetStatusEnum = {}));
291
295
 
296
+ /* generated using openapi-typescript-codegen -- do not edit */
297
+ /* istanbul ignore file */
298
+ /* tslint:disable */
299
+ /* eslint-disable */
300
+ /**
301
+ * * `platform` - Platform
302
+ * * `mentor` - Mentor
303
+ */
304
+ var DisclaimerScopeEnum;
305
+ (function (DisclaimerScopeEnum) {
306
+ DisclaimerScopeEnum["PLATFORM"] = "platform";
307
+ DisclaimerScopeEnum["MENTOR"] = "mentor";
308
+ })(DisclaimerScopeEnum || (DisclaimerScopeEnum = {}));
309
+
292
310
  /* generated using openapi-typescript-codegen -- do not edit */
293
311
  /* istanbul ignore file */
294
312
  /* tslint:disable */
@@ -423,6 +441,22 @@ var LlmProviderEnum;
423
441
  LlmProviderEnum["GOOGLE"] = "google";
424
442
  })(LlmProviderEnum || (LlmProviderEnum = {}));
425
443
 
444
+ /* generated using openapi-typescript-codegen -- do not edit */
445
+ /* istanbul ignore file */
446
+ /* tslint:disable */
447
+ /* eslint-disable */
448
+ /**
449
+ * * `user` - User
450
+ * * `mentor` - Mentor
451
+ * * `platform` - Platform
452
+ */
453
+ var MCPServerConnectionScopeEnum;
454
+ (function (MCPServerConnectionScopeEnum) {
455
+ MCPServerConnectionScopeEnum["USER"] = "user";
456
+ MCPServerConnectionScopeEnum["MENTOR"] = "mentor";
457
+ MCPServerConnectionScopeEnum["PLATFORM"] = "platform";
458
+ })(MCPServerConnectionScopeEnum || (MCPServerConnectionScopeEnum = {}));
459
+
426
460
  /* generated using openapi-typescript-codegen -- do not edit */
427
461
  /* istanbul ignore file */
428
462
  /* tslint:disable */
@@ -531,6 +565,38 @@ var PeriodicAgentLogStatusEnum;
531
565
  PeriodicAgentLogStatusEnum["RUNNING"] = "running";
532
566
  })(PeriodicAgentLogStatusEnum || (PeriodicAgentLogStatusEnum = {}));
533
567
 
568
+ /* generated using openapi-typescript-codegen -- do not edit */
569
+ /* istanbul ignore file */
570
+ /* tslint:disable */
571
+ /* eslint-disable */
572
+ /**
573
+ * * `DAILY` - DAILY
574
+ * * `WEEKLY` - WEEKLY
575
+ * * `MONTHLY` - MONTHLY
576
+ * * `CUSTOM` - CUSTOM
577
+ */
578
+ var PeriodicFrequencyEnum;
579
+ (function (PeriodicFrequencyEnum) {
580
+ PeriodicFrequencyEnum["DAILY"] = "DAILY";
581
+ PeriodicFrequencyEnum["WEEKLY"] = "WEEKLY";
582
+ PeriodicFrequencyEnum["MONTHLY"] = "MONTHLY";
583
+ PeriodicFrequencyEnum["CUSTOM"] = "CUSTOM";
584
+ })(PeriodicFrequencyEnum || (PeriodicFrequencyEnum = {}));
585
+
586
+ /* generated using openapi-typescript-codegen -- do not edit */
587
+ /* istanbul ignore file */
588
+ /* tslint:disable */
589
+ /* eslint-disable */
590
+ /**
591
+ * * `ACTIVE_LEARNERS` - ACTIVE_LEARNERS
592
+ * * `ALL_LEARNERS` - ALL_LEARNERS
593
+ */
594
+ var PeriodicLearnerScopeEnum;
595
+ (function (PeriodicLearnerScopeEnum) {
596
+ PeriodicLearnerScopeEnum["ACTIVE_LEARNERS"] = "ACTIVE_LEARNERS";
597
+ PeriodicLearnerScopeEnum["ALL_LEARNERS"] = "ALL_LEARNERS";
598
+ })(PeriodicLearnerScopeEnum || (PeriodicLearnerScopeEnum = {}));
599
+
534
600
  /* generated using openapi-typescript-codegen -- do not edit */
535
601
  /* istanbul ignore file */
536
602
  /* tslint:disable */
@@ -679,6 +745,20 @@ var RatingEnum;
679
745
  RatingEnum[RatingEnum["_-1"] = -1] = "_-1";
680
746
  })(RatingEnum || (RatingEnum = {}));
681
747
 
748
+ /* generated using openapi-typescript-codegen -- do not edit */
749
+ /* istanbul ignore file */
750
+ /* tslint:disable */
751
+ /* eslint-disable */
752
+ /**
753
+ * * `mentors` - Mentor Recommendations
754
+ * * `catalog` - Catalog Recommendations
755
+ */
756
+ var RecommendationTypeEnum;
757
+ (function (RecommendationTypeEnum) {
758
+ RecommendationTypeEnum["MENTORS"] = "mentors";
759
+ RecommendationTypeEnum["CATALOG"] = "catalog";
760
+ })(RecommendationTypeEnum || (RecommendationTypeEnum = {}));
761
+
682
762
  /* generated using openapi-typescript-codegen -- do not edit */
683
763
  /* istanbul ignore file */
684
764
  /* tslint:disable */
@@ -697,36 +777,6 @@ var ResourceScrappedDataStatusEnum;
697
777
  ResourceScrappedDataStatusEnum["UNSCRAPPED"] = "unscrapped";
698
778
  })(ResourceScrappedDataStatusEnum || (ResourceScrappedDataStatusEnum = {}));
699
779
 
700
- /* generated using openapi-typescript-codegen -- do not edit */
701
- /* istanbul ignore file */
702
- /* tslint:disable */
703
- /* eslint-disable */
704
- /**
705
- * * `platform` - Platform
706
- * * `mentor` - Mentor
707
- */
708
- var ScopeEnum;
709
- (function (ScopeEnum) {
710
- ScopeEnum["PLATFORM"] = "platform";
711
- ScopeEnum["MENTOR"] = "mentor";
712
- })(ScopeEnum || (ScopeEnum = {}));
713
-
714
- /* generated using openapi-typescript-codegen -- do not edit */
715
- /* istanbul ignore file */
716
- /* tslint:disable */
717
- /* eslint-disable */
718
- /**
719
- * * `google_drive` - Google Drive
720
- * * `google_document` - Google Document
721
- * * `google_slides` - Google Slides
722
- */
723
- var ServiceEnum;
724
- (function (ServiceEnum) {
725
- ServiceEnum["GOOGLE_DRIVE"] = "google_drive";
726
- ServiceEnum["GOOGLE_DOCUMENT"] = "google_document";
727
- ServiceEnum["GOOGLE_SLIDES"] = "google_slides";
728
- })(ServiceEnum || (ServiceEnum = {}));
729
-
730
780
  /* generated using openapi-typescript-codegen -- do not edit */
731
781
  /* istanbul ignore file */
732
782
  /* tslint:disable */
@@ -876,11 +926,13 @@ var TrainingStatusEnum;
876
926
  /**
877
927
  * * `sse` - Sse
878
928
  * * `websocket` - Websocket
929
+ * * `streamable_http` - Streamable Http
879
930
  */
880
931
  var TransportEnum;
881
932
  (function (TransportEnum) {
882
933
  TransportEnum["SSE"] = "sse";
883
934
  TransportEnum["WEBSOCKET"] = "websocket";
935
+ TransportEnum["STREAMABLE_HTTP"] = "streamable_http";
884
936
  })(TransportEnum || (TransportEnum = {}));
885
937
 
886
938
  /* generated using openapi-typescript-codegen -- do not edit */
@@ -904,6 +956,7 @@ var TtsProviderEnum;
904
956
  /* tslint:disable */
905
957
  /* eslint-disable */
906
958
  /**
959
+ * * `DEFAULT_TEMPLATE` - Default Template
907
960
  * * `APP_REGISTRATION` - App Registration
908
961
  * * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
909
962
  * * `USER_NOTIF_COURSE_ENROLLMENT` - User Notif Course Enrollment
@@ -916,6 +969,7 @@ var TtsProviderEnum;
916
969
  * * `PROGRAM_INVITATION` - Program Invitation
917
970
  * * `COURSE_INVITATION` - Course Invitation
918
971
  * * `USER_NOTIF_LEARNER_PROGRESS` - User Notif Learner Progress
972
+ * * `PROACTIVE_LEARNER_NOTIFICATION` - Proactive Learner Notification
919
973
  * * `ROLE_CHANGE` - Role Change
920
974
  * * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
921
975
  * * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
@@ -924,28 +978,30 @@ var TtsProviderEnum;
924
978
  * * `USER_LICENSE_ASSIGNMENT` - User License Assignment
925
979
  * * `USER_LICENSE_GROUP_ASSIGNMENT` - User License Group Assignment
926
980
  */
927
- var TypeA81Enum;
928
- (function (TypeA81Enum) {
929
- TypeA81Enum["APP_REGISTRATION"] = "APP_REGISTRATION";
930
- TypeA81Enum["USER_NOTIF_USER_REGISTRATION"] = "USER_NOTIF_USER_REGISTRATION";
931
- TypeA81Enum["USER_NOTIF_COURSE_ENROLLMENT"] = "USER_NOTIF_COURSE_ENROLLMENT";
932
- TypeA81Enum["ADMIN_NOTIF_COURSE_ENROLLMENT"] = "ADMIN_NOTIF_COURSE_ENROLLMENT";
933
- TypeA81Enum["USER_NOTIF_USER_INACTIVITY"] = "USER_NOTIF_USER_INACTIVITY";
934
- TypeA81Enum["USER_NOTIF_COURSE_COMPLETION"] = "USER_NOTIF_COURSE_COMPLETION";
935
- TypeA81Enum["USER_NOTIF_CREDENTIALS"] = "USER_NOTIF_CREDENTIALS";
936
- TypeA81Enum["CUSTOM_NOTIFICATION"] = "CUSTOM_NOTIFICATION";
937
- TypeA81Enum["PLATFORM_INVITATION"] = "PLATFORM_INVITATION";
938
- TypeA81Enum["PROGRAM_INVITATION"] = "PROGRAM_INVITATION";
939
- TypeA81Enum["COURSE_INVITATION"] = "COURSE_INVITATION";
940
- TypeA81Enum["USER_NOTIF_LEARNER_PROGRESS"] = "USER_NOTIF_LEARNER_PROGRESS";
941
- TypeA81Enum["ROLE_CHANGE"] = "ROLE_CHANGE";
942
- TypeA81Enum["COURSE_LICENSE_ASSIGNMENT"] = "COURSE_LICENSE_ASSIGNMENT";
943
- TypeA81Enum["COURSE_LICENSE_GROUP_ASSIGNMENT"] = "COURSE_LICENSE_GROUP_ASSIGNMENT";
944
- TypeA81Enum["PROGRAM_LICENSE_ASSIGNMENT"] = "PROGRAM_LICENSE_ASSIGNMENT";
945
- TypeA81Enum["PROGRAM_LICENSE_GROUP_ASSIGNMENT"] = "PROGRAM_LICENSE_GROUP_ASSIGNMENT";
946
- TypeA81Enum["USER_LICENSE_ASSIGNMENT"] = "USER_LICENSE_ASSIGNMENT";
947
- TypeA81Enum["USER_LICENSE_GROUP_ASSIGNMENT"] = "USER_LICENSE_GROUP_ASSIGNMENT";
948
- })(TypeA81Enum || (TypeA81Enum = {}));
981
+ var Type2a5Enum;
982
+ (function (Type2a5Enum) {
983
+ Type2a5Enum["DEFAULT_TEMPLATE"] = "DEFAULT_TEMPLATE";
984
+ Type2a5Enum["APP_REGISTRATION"] = "APP_REGISTRATION";
985
+ Type2a5Enum["USER_NOTIF_USER_REGISTRATION"] = "USER_NOTIF_USER_REGISTRATION";
986
+ Type2a5Enum["USER_NOTIF_COURSE_ENROLLMENT"] = "USER_NOTIF_COURSE_ENROLLMENT";
987
+ Type2a5Enum["ADMIN_NOTIF_COURSE_ENROLLMENT"] = "ADMIN_NOTIF_COURSE_ENROLLMENT";
988
+ Type2a5Enum["USER_NOTIF_USER_INACTIVITY"] = "USER_NOTIF_USER_INACTIVITY";
989
+ Type2a5Enum["USER_NOTIF_COURSE_COMPLETION"] = "USER_NOTIF_COURSE_COMPLETION";
990
+ Type2a5Enum["USER_NOTIF_CREDENTIALS"] = "USER_NOTIF_CREDENTIALS";
991
+ Type2a5Enum["CUSTOM_NOTIFICATION"] = "CUSTOM_NOTIFICATION";
992
+ Type2a5Enum["PLATFORM_INVITATION"] = "PLATFORM_INVITATION";
993
+ Type2a5Enum["PROGRAM_INVITATION"] = "PROGRAM_INVITATION";
994
+ Type2a5Enum["COURSE_INVITATION"] = "COURSE_INVITATION";
995
+ Type2a5Enum["USER_NOTIF_LEARNER_PROGRESS"] = "USER_NOTIF_LEARNER_PROGRESS";
996
+ Type2a5Enum["PROACTIVE_LEARNER_NOTIFICATION"] = "PROACTIVE_LEARNER_NOTIFICATION";
997
+ Type2a5Enum["ROLE_CHANGE"] = "ROLE_CHANGE";
998
+ Type2a5Enum["COURSE_LICENSE_ASSIGNMENT"] = "COURSE_LICENSE_ASSIGNMENT";
999
+ Type2a5Enum["COURSE_LICENSE_GROUP_ASSIGNMENT"] = "COURSE_LICENSE_GROUP_ASSIGNMENT";
1000
+ Type2a5Enum["PROGRAM_LICENSE_ASSIGNMENT"] = "PROGRAM_LICENSE_ASSIGNMENT";
1001
+ Type2a5Enum["PROGRAM_LICENSE_GROUP_ASSIGNMENT"] = "PROGRAM_LICENSE_GROUP_ASSIGNMENT";
1002
+ Type2a5Enum["USER_LICENSE_ASSIGNMENT"] = "USER_LICENSE_ASSIGNMENT";
1003
+ Type2a5Enum["USER_LICENSE_GROUP_ASSIGNMENT"] = "USER_LICENSE_GROUP_ASSIGNMENT";
1004
+ })(Type2a5Enum || (Type2a5Enum = {}));
949
1005
 
950
1006
  /* generated using openapi-typescript-codegen -- do not edit */
951
1007
  /* istanbul ignore file */
@@ -1213,10 +1269,78 @@ class AiAccountService {
1213
1269
  }
1214
1270
  /**
1215
1271
  * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
1216
- * @returns OAuthStartResponse Starts the OAuth flow for the given provider and service
1272
+ * @returns ConnectedService
1273
+ * @throws ApiError
1274
+ */
1275
+ static aiAccountConnectedServicesOrgsUsersList({
1276
+ org,
1277
+ userId,
1278
+ ordering,
1279
+ provider,
1280
+ search,
1281
+ service
1282
+ }) {
1283
+ return request(OpenAPI, {
1284
+ method: 'GET',
1285
+ url: '/api/ai-account/connected-services/orgs/{org}/users/{user_id}/',
1286
+ path: {
1287
+ 'org': org,
1288
+ 'user_id': userId
1289
+ },
1290
+ query: {
1291
+ 'ordering': ordering,
1292
+ 'provider': provider,
1293
+ 'search': search,
1294
+ 'service': service
1295
+ }
1296
+ });
1297
+ }
1298
+ /**
1299
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
1300
+ * @returns ConnectedService
1217
1301
  * @throws ApiError
1218
1302
  */
1219
1303
  static aiAccountConnectedServicesOrgsUsersRetrieve({
1304
+ id,
1305
+ org,
1306
+ userId
1307
+ }) {
1308
+ return request(OpenAPI, {
1309
+ method: 'GET',
1310
+ url: '/api/ai-account/connected-services/orgs/{org}/users/{user_id}/{id}/',
1311
+ path: {
1312
+ 'id': id,
1313
+ 'org': org,
1314
+ 'user_id': userId
1315
+ }
1316
+ });
1317
+ }
1318
+ /**
1319
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
1320
+ * @returns void
1321
+ * @throws ApiError
1322
+ */
1323
+ static aiAccountConnectedServicesOrgsUsersDestroy({
1324
+ id,
1325
+ org,
1326
+ userId
1327
+ }) {
1328
+ return request(OpenAPI, {
1329
+ method: 'DELETE',
1330
+ url: '/api/ai-account/connected-services/orgs/{org}/users/{user_id}/{id}/',
1331
+ path: {
1332
+ 'id': id,
1333
+ 'org': org,
1334
+ 'user_id': userId
1335
+ }
1336
+ });
1337
+ }
1338
+ /**
1339
+ * Mixin that includes the StudentTokenAuthentication and IsAdminUserOrStudent
1340
+ * @returns OAuthStartResponse Starts the OAuth flow for the given provider and service
1341
+ * @throws ApiError
1342
+ */
1343
+ static aiAccountConnectedServicesOrgsUsersRetrieve2({
1220
1344
  org,
1221
1345
  provider,
1222
1346
  service,
@@ -1732,6 +1856,47 @@ class AiAccountService {
1732
1856
  }
1733
1857
  });
1734
1858
  }
1859
+ /**
1860
+ * Return the list of OAuth services that can be used for connected services.
1861
+ *
1862
+ * Query Parameters:
1863
+ * name (optional): Filter by exact service name (case-insensitive).
1864
+ * include_disabled (optional): Set to `true` to include disabled services.
1865
+ * @returns OAuthProvider
1866
+ * @throws ApiError
1867
+ */
1868
+ static aiAccountOrgsOauthServicesList({
1869
+ org
1870
+ }) {
1871
+ return request(OpenAPI, {
1872
+ method: 'GET',
1873
+ url: '/api/ai-account/orgs/{org}/oauth-services/',
1874
+ path: {
1875
+ 'org': org
1876
+ }
1877
+ });
1878
+ }
1879
+ /**
1880
+ * Return the available scopes for the specified OAuth service.
1881
+ *
1882
+ * Query Parameters:
1883
+ * include_disabled (optional): Set to `true` to include scopes from disabled services.
1884
+ * @returns OAuthService
1885
+ * @throws ApiError
1886
+ */
1887
+ static aiAccountOrgsOauthServicesScopesList({
1888
+ org,
1889
+ serviceName
1890
+ }) {
1891
+ return request(OpenAPI, {
1892
+ method: 'GET',
1893
+ url: '/api/ai-account/orgs/{org}/oauth-services/{service_name}/scopes/',
1894
+ path: {
1895
+ 'org': org,
1896
+ 'service_name': serviceName
1897
+ }
1898
+ });
1899
+ }
1735
1900
  /**
1736
1901
  * Enable or disable the use of main LLM credentials for an organization.
1737
1902
  *
@@ -1847,6 +2012,56 @@ class AiAccountService {
1847
2012
  }
1848
2013
  });
1849
2014
  }
2015
+ /**
2016
+ * Get a platform's settings
2017
+ *
2018
+ * Example response:
2019
+ * ```
2020
+ * {"teams_bot_mentor": "f2116cf2-95c7-4c1f-b19e-666ad529439f"}
2021
+ *
2022
+ * ```
2023
+ * @returns TenantSetting
2024
+ * @throws ApiError
2025
+ */
2026
+ static aiAccountOrgsUsersTenantSettingsRetrieve({
2027
+ org,
2028
+ userId
2029
+ }) {
2030
+ return request(OpenAPI, {
2031
+ method: 'GET',
2032
+ url: '/api/ai-account/orgs/{org}/users/{user_id}/tenant-settings/',
2033
+ path: {
2034
+ 'org': org,
2035
+ 'user_id': userId
2036
+ }
2037
+ });
2038
+ }
2039
+ /**
2040
+ * Example Request:
2041
+ *
2042
+ * ```
2043
+ * {"teams_bot_mentor": "f2116cf2-95c7-4c1f-b19e-666ad529439f"}
2044
+ * ```
2045
+ * The value here is the mentor's unique id
2046
+ * @returns TenantSetting
2047
+ * @throws ApiError
2048
+ */
2049
+ static aiAccountOrgsUsersTenantSettingsCreate({
2050
+ org,
2051
+ userId,
2052
+ requestBody
2053
+ }) {
2054
+ return request(OpenAPI, {
2055
+ method: 'POST',
2056
+ url: '/api/ai-account/orgs/{org}/users/{user_id}/tenant-settings/',
2057
+ path: {
2058
+ 'org': org,
2059
+ 'user_id': userId
2060
+ },
2061
+ body: requestBody,
2062
+ mediaType: 'application/json'
2063
+ });
2064
+ }
1850
2065
  }
1851
2066
 
1852
2067
  class AiAnalyticsService {
@@ -11712,6 +11927,7 @@ class AiMentorService {
11712
11927
  userId,
11713
11928
  departmentId,
11714
11929
  filterBy,
11930
+ isFeatured,
11715
11931
  metadataKey,
11716
11932
  metadataValue,
11717
11933
  page,
@@ -11729,6 +11945,7 @@ class AiMentorService {
11729
11945
  query: {
11730
11946
  'department_id': departmentId,
11731
11947
  'filter_by': filterBy,
11948
+ 'is_featured': isFeatured,
11732
11949
  'metadata_key': metadataKey,
11733
11950
  'metadata_value': metadataValue,
11734
11951
  'page': page,
@@ -11754,6 +11971,7 @@ class AiMentorService {
11754
11971
  requestBody,
11755
11972
  departmentId,
11756
11973
  filterBy,
11974
+ isFeatured,
11757
11975
  metadataKey,
11758
11976
  metadataValue,
11759
11977
  returnSessionInformation,
@@ -11769,6 +11987,7 @@ class AiMentorService {
11769
11987
  query: {
11770
11988
  'department_id': departmentId,
11771
11989
  'filter_by': filterBy,
11990
+ 'is_featured': isFeatured,
11772
11991
  'metadata_key': metadataKey,
11773
11992
  'metadata_value': metadataValue,
11774
11993
  'return_session_information': returnSessionInformation,
@@ -11794,6 +12013,7 @@ class AiMentorService {
11794
12013
  userId,
11795
12014
  departmentId,
11796
12015
  filterBy,
12016
+ isFeatured,
11797
12017
  metadataKey,
11798
12018
  metadataValue,
11799
12019
  returnSessionInformation,
@@ -11810,6 +12030,7 @@ class AiMentorService {
11810
12030
  query: {
11811
12031
  'department_id': departmentId,
11812
12032
  'filter_by': filterBy,
12033
+ 'is_featured': isFeatured,
11813
12034
  'metadata_key': metadataKey,
11814
12035
  'metadata_value': metadataValue,
11815
12036
  'return_session_information': returnSessionInformation,
@@ -11829,6 +12050,7 @@ class AiMentorService {
11829
12050
  requestBody,
11830
12051
  departmentId,
11831
12052
  filterBy,
12053
+ isFeatured,
11832
12054
  metadataKey,
11833
12055
  metadataValue,
11834
12056
  returnSessionInformation,
@@ -11845,6 +12067,7 @@ class AiMentorService {
11845
12067
  query: {
11846
12068
  'department_id': departmentId,
11847
12069
  'filter_by': filterBy,
12070
+ 'is_featured': isFeatured,
11848
12071
  'metadata_key': metadataKey,
11849
12072
  'metadata_value': metadataValue,
11850
12073
  'return_session_information': returnSessionInformation,
@@ -11870,6 +12093,7 @@ class AiMentorService {
11870
12093
  userId,
11871
12094
  departmentId,
11872
12095
  filterBy,
12096
+ isFeatured,
11873
12097
  metadataKey,
11874
12098
  metadataValue,
11875
12099
  returnSessionInformation,
@@ -11887,6 +12111,7 @@ class AiMentorService {
11887
12111
  query: {
11888
12112
  'department_id': departmentId,
11889
12113
  'filter_by': filterBy,
12114
+ 'is_featured': isFeatured,
11890
12115
  'metadata_key': metadataKey,
11891
12116
  'metadata_value': metadataValue,
11892
12117
  'return_session_information': returnSessionInformation,
@@ -11907,6 +12132,7 @@ class AiMentorService {
11907
12132
  userId,
11908
12133
  departmentId,
11909
12134
  filterBy,
12135
+ isFeatured,
11910
12136
  metadataKey,
11911
12137
  metadataValue,
11912
12138
  returnSessionInformation,
@@ -11923,6 +12149,7 @@ class AiMentorService {
11923
12149
  query: {
11924
12150
  'department_id': departmentId,
11925
12151
  'filter_by': filterBy,
12152
+ 'is_featured': isFeatured,
11926
12153
  'metadata_key': metadataKey,
11927
12154
  'metadata_value': metadataValue,
11928
12155
  'return_session_information': returnSessionInformation,
@@ -12156,6 +12383,32 @@ class AiMentorService {
12156
12383
  * @returns Artifact
12157
12384
  * @throws ApiError
12158
12385
  */
12386
+ static aiMentorOrgsUsersArtifactsCreate({
12387
+ org,
12388
+ userId,
12389
+ requestBody
12390
+ }) {
12391
+ return request(OpenAPI, {
12392
+ method: 'POST',
12393
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/',
12394
+ path: {
12395
+ 'org': org,
12396
+ 'user_id': userId
12397
+ },
12398
+ body: requestBody,
12399
+ mediaType: 'application/json',
12400
+ errors: {
12401
+ 401: `Authentication required`,
12402
+ 403: `Permission denied`,
12403
+ 404: `Artifact not found`
12404
+ }
12405
+ });
12406
+ }
12407
+ /**
12408
+ * Retrieve a specific artifact.
12409
+ * @returns Artifact
12410
+ * @throws ApiError
12411
+ */
12159
12412
  static aiMentorOrgsUsersArtifactsRetrieve({
12160
12413
  id,
12161
12414
  org,
@@ -12168,11 +12421,6 @@ class AiMentorService {
12168
12421
  'id': id,
12169
12422
  'org': org,
12170
12423
  'user_id': userId
12171
- },
12172
- errors: {
12173
- 401: `Authentication required`,
12174
- 403: `Permission denied`,
12175
- 404: `Artifact not found`
12176
12424
  }
12177
12425
  });
12178
12426
  }
@@ -12262,6 +12510,108 @@ class AiMentorService {
12262
12510
  }
12263
12511
  });
12264
12512
  }
12513
+ /**
12514
+ * List artifact versions
12515
+ * Retrieve all versions for a specific artifact.
12516
+ * @returns PaginatedArtifactVersionListList
12517
+ * @throws ApiError
12518
+ */
12519
+ static aiMentorOrgsUsersArtifactsVersionsList({
12520
+ id,
12521
+ org,
12522
+ userId,
12523
+ chatMessageId,
12524
+ fileExtension,
12525
+ llmName,
12526
+ llmProvider,
12527
+ mentorId,
12528
+ ordering,
12529
+ page,
12530
+ pageSize,
12531
+ search,
12532
+ sessionId,
12533
+ username
12534
+ }) {
12535
+ return request(OpenAPI, {
12536
+ method: 'GET',
12537
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/',
12538
+ path: {
12539
+ 'id': id,
12540
+ 'org': org,
12541
+ 'user_id': userId
12542
+ },
12543
+ query: {
12544
+ 'chat_message_id': chatMessageId,
12545
+ 'file_extension': fileExtension,
12546
+ 'llm_name': llmName,
12547
+ 'llm_provider': llmProvider,
12548
+ 'mentor_id': mentorId,
12549
+ 'ordering': ordering,
12550
+ 'page': page,
12551
+ 'page_size': pageSize,
12552
+ 'search': search,
12553
+ 'session_id': sessionId,
12554
+ 'username': username
12555
+ },
12556
+ errors: {
12557
+ 404: `Artifact not found`
12558
+ }
12559
+ });
12560
+ }
12561
+ /**
12562
+ * Get specific artifact version
12563
+ * Retrieve a specific version of an artifact by version ID.
12564
+ * @returns ArtifactVersion
12565
+ * @throws ApiError
12566
+ */
12567
+ static aiMentorOrgsUsersArtifactsVersionsRetrieve({
12568
+ id,
12569
+ org,
12570
+ userId,
12571
+ versionId
12572
+ }) {
12573
+ return request(OpenAPI, {
12574
+ method: 'GET',
12575
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/{version_id}/',
12576
+ path: {
12577
+ 'id': id,
12578
+ 'org': org,
12579
+ 'user_id': userId,
12580
+ 'version_id': versionId
12581
+ },
12582
+ errors: {
12583
+ 404: `Version not found`
12584
+ }
12585
+ });
12586
+ }
12587
+ /**
12588
+ * Set artifact version as current
12589
+ * Mark a specific version as the current/active version for an artifact.
12590
+ * @returns ArtifactVersion
12591
+ * @throws ApiError
12592
+ */
12593
+ static aiMentorOrgsUsersArtifactsVersionsSetCurrentCreate({
12594
+ id,
12595
+ org,
12596
+ userId,
12597
+ requestBody
12598
+ }) {
12599
+ return request(OpenAPI, {
12600
+ method: 'POST',
12601
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/set-current/',
12602
+ path: {
12603
+ 'id': id,
12604
+ 'org': org,
12605
+ 'user_id': userId
12606
+ },
12607
+ body: requestBody,
12608
+ mediaType: 'application/json',
12609
+ errors: {
12610
+ 400: `Invalid request`,
12611
+ 404: `Version not found`
12612
+ }
12613
+ });
12614
+ }
12265
12615
  /**
12266
12616
  * Retrieve assumed knowledge levels.
12267
12617
  *
@@ -12787,6 +13137,27 @@ class AiMentorService {
12787
13137
  }
12788
13138
  });
12789
13139
  }
13140
+ /**
13141
+ * Generate presigned S3 upload URL for chat file
13142
+ * @returns FileUploadURLResponse
13143
+ * @throws ApiError
13144
+ */
13145
+ static aiMentorOrgsUsersChatFilesUploadUrlCreate({
13146
+ org,
13147
+ userId,
13148
+ requestBody
13149
+ }) {
13150
+ return request(OpenAPI, {
13151
+ method: 'POST',
13152
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/chat/files/upload-url/',
13153
+ path: {
13154
+ 'org': org,
13155
+ 'user_id': userId
13156
+ },
13157
+ body: requestBody,
13158
+ mediaType: 'application/json'
13159
+ });
13160
+ }
12790
13161
  /**
12791
13162
  * Retrieve and clean up vector results from a specific session.
12792
13163
  *
@@ -15929,6 +16300,169 @@ class AiMentorService {
15929
16300
  }
15930
16301
  });
15931
16302
  }
16303
+ /**
16304
+ * ViewSet for MCP server connections.
16305
+ *
16306
+ * Tenant administrators can create user- or platform-scoped connections that
16307
+ * encapsulate the authentication configuration for invoking an MCP server.
16308
+ * @returns PaginatedMCPServerConnectionList
16309
+ * @throws ApiError
16310
+ */
16311
+ static aiMentorOrgsUsersMcpServerConnectionsList({
16312
+ org,
16313
+ userId,
16314
+ authType,
16315
+ isActive,
16316
+ mentor,
16317
+ page,
16318
+ pageSize,
16319
+ scope,
16320
+ search,
16321
+ server,
16322
+ user
16323
+ }) {
16324
+ return request(OpenAPI, {
16325
+ method: 'GET',
16326
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/',
16327
+ path: {
16328
+ 'org': org,
16329
+ 'user_id': userId
16330
+ },
16331
+ query: {
16332
+ 'auth_type': authType,
16333
+ 'is_active': isActive,
16334
+ 'mentor': mentor,
16335
+ 'page': page,
16336
+ 'page_size': pageSize,
16337
+ 'scope': scope,
16338
+ 'search': search,
16339
+ 'server': server,
16340
+ 'user': user
16341
+ }
16342
+ });
16343
+ }
16344
+ /**
16345
+ * ViewSet for MCP server connections.
16346
+ *
16347
+ * Tenant administrators can create user- or platform-scoped connections that
16348
+ * encapsulate the authentication configuration for invoking an MCP server.
16349
+ * @returns MCPServerConnection
16350
+ * @throws ApiError
16351
+ */
16352
+ static aiMentorOrgsUsersMcpServerConnectionsCreate({
16353
+ org,
16354
+ userId,
16355
+ requestBody
16356
+ }) {
16357
+ return request(OpenAPI, {
16358
+ method: 'POST',
16359
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/',
16360
+ path: {
16361
+ 'org': org,
16362
+ 'user_id': userId
16363
+ },
16364
+ body: requestBody,
16365
+ mediaType: 'application/json'
16366
+ });
16367
+ }
16368
+ /**
16369
+ * ViewSet for MCP server connections.
16370
+ *
16371
+ * Tenant administrators can create user- or platform-scoped connections that
16372
+ * encapsulate the authentication configuration for invoking an MCP server.
16373
+ * @returns MCPServerConnection
16374
+ * @throws ApiError
16375
+ */
16376
+ static aiMentorOrgsUsersMcpServerConnectionsRetrieve({
16377
+ id,
16378
+ org,
16379
+ userId
16380
+ }) {
16381
+ return request(OpenAPI, {
16382
+ method: 'GET',
16383
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/{id}/',
16384
+ path: {
16385
+ 'id': id,
16386
+ 'org': org,
16387
+ 'user_id': userId
16388
+ }
16389
+ });
16390
+ }
16391
+ /**
16392
+ * ViewSet for MCP server connections.
16393
+ *
16394
+ * Tenant administrators can create user- or platform-scoped connections that
16395
+ * encapsulate the authentication configuration for invoking an MCP server.
16396
+ * @returns MCPServerConnection
16397
+ * @throws ApiError
16398
+ */
16399
+ static aiMentorOrgsUsersMcpServerConnectionsUpdate({
16400
+ id,
16401
+ org,
16402
+ userId,
16403
+ requestBody
16404
+ }) {
16405
+ return request(OpenAPI, {
16406
+ method: 'PUT',
16407
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/{id}/',
16408
+ path: {
16409
+ 'id': id,
16410
+ 'org': org,
16411
+ 'user_id': userId
16412
+ },
16413
+ body: requestBody,
16414
+ mediaType: 'application/json'
16415
+ });
16416
+ }
16417
+ /**
16418
+ * ViewSet for MCP server connections.
16419
+ *
16420
+ * Tenant administrators can create user- or platform-scoped connections that
16421
+ * encapsulate the authentication configuration for invoking an MCP server.
16422
+ * @returns MCPServerConnection
16423
+ * @throws ApiError
16424
+ */
16425
+ static aiMentorOrgsUsersMcpServerConnectionsPartialUpdate({
16426
+ id,
16427
+ org,
16428
+ userId,
16429
+ requestBody
16430
+ }) {
16431
+ return request(OpenAPI, {
16432
+ method: 'PATCH',
16433
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/{id}/',
16434
+ path: {
16435
+ 'id': id,
16436
+ 'org': org,
16437
+ 'user_id': userId
16438
+ },
16439
+ body: requestBody,
16440
+ mediaType: 'application/json'
16441
+ });
16442
+ }
16443
+ /**
16444
+ * ViewSet for MCP server connections.
16445
+ *
16446
+ * Tenant administrators can create user- or platform-scoped connections that
16447
+ * encapsulate the authentication configuration for invoking an MCP server.
16448
+ * @returns void
16449
+ * @throws ApiError
16450
+ */
16451
+ static aiMentorOrgsUsersMcpServerConnectionsDestroy({
16452
+ id,
16453
+ org,
16454
+ userId
16455
+ }) {
16456
+ return request(OpenAPI, {
16457
+ method: 'DELETE',
16458
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/mcp-server-connections/{id}/',
16459
+ path: {
16460
+ 'id': id,
16461
+ 'org': org,
16462
+ 'user_id': userId
16463
+ }
16464
+ });
16465
+ }
15932
16466
  /**
15933
16467
  * List all MCP servers.
15934
16468
  *
@@ -15940,10 +16474,13 @@ class AiMentorService {
15940
16474
  static aiMentorOrgsUsersMcpServersList({
15941
16475
  org,
15942
16476
  userId,
16477
+ authType,
16478
+ isEnabled,
16479
+ isFeatured,
15943
16480
  page,
15944
16481
  pageSize,
15945
- platform,
15946
- search
16482
+ search,
16483
+ transport
15947
16484
  }) {
15948
16485
  return request(OpenAPI, {
15949
16486
  method: 'GET',
@@ -15953,10 +16490,13 @@ class AiMentorService {
15953
16490
  'user_id': userId
15954
16491
  },
15955
16492
  query: {
16493
+ 'auth_type': authType,
16494
+ 'is_enabled': isEnabled,
16495
+ 'is_featured': isFeatured,
15956
16496
  'page': page,
15957
16497
  'page_size': pageSize,
15958
- 'platform': platform,
15959
- 'search': search
16498
+ 'search': search,
16499
+ 'transport': transport
15960
16500
  }
15961
16501
  });
15962
16502
  }
@@ -15973,7 +16513,7 @@ class AiMentorService {
15973
16513
  static aiMentorOrgsUsersMcpServersCreate({
15974
16514
  org,
15975
16515
  userId,
15976
- requestBody
16516
+ formData
15977
16517
  }) {
15978
16518
  return request(OpenAPI, {
15979
16519
  method: 'POST',
@@ -15982,8 +16522,8 @@ class AiMentorService {
15982
16522
  'org': org,
15983
16523
  'user_id': userId
15984
16524
  },
15985
- body: requestBody,
15986
- mediaType: 'application/json'
16525
+ formData: formData,
16526
+ mediaType: 'multipart/form-data'
15987
16527
  });
15988
16528
  }
15989
16529
  /**
@@ -16025,7 +16565,7 @@ class AiMentorService {
16025
16565
  id,
16026
16566
  org,
16027
16567
  userId,
16028
- requestBody
16568
+ formData
16029
16569
  }) {
16030
16570
  return request(OpenAPI, {
16031
16571
  method: 'PUT',
@@ -16035,8 +16575,8 @@ class AiMentorService {
16035
16575
  'org': org,
16036
16576
  'user_id': userId
16037
16577
  },
16038
- body: requestBody,
16039
- mediaType: 'application/json'
16578
+ formData: formData,
16579
+ mediaType: 'multipart/form-data'
16040
16580
  });
16041
16581
  }
16042
16582
  /**
@@ -16053,7 +16593,7 @@ class AiMentorService {
16053
16593
  id,
16054
16594
  org,
16055
16595
  userId,
16056
- requestBody
16596
+ formData
16057
16597
  }) {
16058
16598
  return request(OpenAPI, {
16059
16599
  method: 'PATCH',
@@ -16063,8 +16603,8 @@ class AiMentorService {
16063
16603
  'org': org,
16064
16604
  'user_id': userId
16065
16605
  },
16066
- body: requestBody,
16067
- mediaType: 'application/json'
16606
+ formData: formData,
16607
+ mediaType: 'multipart/form-data'
16068
16608
  });
16069
16609
  }
16070
16610
  /**
@@ -17497,6 +18037,7 @@ class AiMentorService {
17497
18037
  });
17498
18038
  }
17499
18039
  /**
18040
+ * Return True if the token is valid and link is enabled, else False
17500
18041
  * @returns ShareableMentorLink
17501
18042
  * @throws ApiError
17502
18043
  */
@@ -18023,12 +18564,14 @@ class AiMentorService {
18023
18564
  static aiMentorOrgsUsersModerationLogsList({
18024
18565
  org,
18025
18566
  userId,
18567
+ endTime,
18026
18568
  mentor,
18027
18569
  ordering,
18028
18570
  page,
18029
18571
  pageSize,
18030
18572
  platformKey,
18031
18573
  search,
18574
+ startTime,
18032
18575
  targetSystem,
18033
18576
  username
18034
18577
  }) {
@@ -18040,12 +18583,14 @@ class AiMentorService {
18040
18583
  'user_id': userId
18041
18584
  },
18042
18585
  query: {
18586
+ 'end_time': endTime,
18043
18587
  'mentor': mentor,
18044
18588
  'ordering': ordering,
18045
18589
  'page': page,
18046
18590
  'page_size': pageSize,
18047
18591
  'platform_key': platformKey,
18048
18592
  'search': search,
18593
+ 'start_time': startTime,
18049
18594
  'target_system': targetSystem,
18050
18595
  'username': username
18051
18596
  }
@@ -19425,12 +19970,14 @@ class AiMentorService {
19425
19970
  static aiMentorOrgsUsersSafetyLogsList({
19426
19971
  org,
19427
19972
  userId,
19973
+ endTime,
19428
19974
  mentor,
19429
19975
  ordering,
19430
19976
  page,
19431
19977
  pageSize,
19432
19978
  platformKey,
19433
19979
  search,
19980
+ startTime,
19434
19981
  targetSystem,
19435
19982
  username
19436
19983
  }) {
@@ -19442,12 +19989,14 @@ class AiMentorService {
19442
19989
  'user_id': userId
19443
19990
  },
19444
19991
  query: {
19992
+ 'end_time': endTime,
19445
19993
  'mentor': mentor,
19446
19994
  'ordering': ordering,
19447
19995
  'page': page,
19448
19996
  'page_size': pageSize,
19449
19997
  'platform_key': platformKey,
19450
19998
  'search': search,
19999
+ 'start_time': startTime,
19451
20000
  'target_system': targetSystem,
19452
20001
  'username': username
19453
20002
  }
@@ -31140,16 +31689,7 @@ class CoreService {
31140
31689
  });
31141
31690
  }
31142
31691
  /**
31143
- * Retrieve users associated with platform
31144
- *
31145
- * Params:
31146
- * platform_key
31147
- * platform_org
31148
- *
31149
- * query
31150
- * sort
31151
- *
31152
- * is_admin: Return tenant admin users
31692
+ * Retrieve users associated with platform and optionally their policies when return_policies is set
31153
31693
  * @returns UserPlatformManagementListViewGetResponse
31154
31694
  * @throws ApiError
31155
31695
  */
@@ -31159,6 +31699,7 @@ class CoreService {
31159
31699
  platformKey,
31160
31700
  platformOrg,
31161
31701
  query,
31702
+ returnPolicies,
31162
31703
  sort
31163
31704
  }) {
31164
31705
  return request(OpenAPI, {
@@ -31170,32 +31711,190 @@ class CoreService {
31170
31711
  'platform_key': platformKey,
31171
31712
  'platform_org': platformOrg,
31172
31713
  'query': query,
31714
+ 'return_policies': returnPolicies,
31173
31715
  'sort': sort
31174
31716
  }
31175
31717
  });
31176
31718
  }
31719
+ /**
31720
+ * Bulk update user policies on a platform. Requires Ibl.Core/UserPolicies/write permission.
31721
+ *
31722
+ * Policy removals are processed before policy additions.
31723
+ * @returns UserPolicyUpdateResponse
31724
+ * @throws ApiError
31725
+ */
31726
+ static corePlatformUsersPoliciesUpdate({
31727
+ requestBody
31728
+ }) {
31729
+ return request(OpenAPI, {
31730
+ method: 'PUT',
31731
+ url: '/api/core/platform/users/policies/',
31732
+ body: requestBody,
31733
+ mediaType: 'application/json'
31734
+ });
31735
+ }
31736
+ /**
31737
+ * Shared functionality for platform public image asset views.
31738
+ * @returns PlatformPublicImageAsset
31739
+ * @throws ApiError
31740
+ */
31741
+ static corePlatformsPublicImageAssetsList({
31742
+ platformKey
31743
+ }) {
31744
+ return request(OpenAPI, {
31745
+ method: 'GET',
31746
+ url: '/api/core/platforms/{platform_key}/public-image-assets/',
31747
+ path: {
31748
+ 'platform_key': platformKey
31749
+ }
31750
+ });
31751
+ }
31752
+ /**
31753
+ * Shared functionality for platform public image asset views.
31754
+ * @returns PlatformPublicImageAsset
31755
+ * @throws ApiError
31756
+ */
31757
+ static corePlatformsPublicImageAssetsCreate({
31758
+ platformKey,
31759
+ requestBody
31760
+ }) {
31761
+ return request(OpenAPI, {
31762
+ method: 'POST',
31763
+ url: '/api/core/platforms/{platform_key}/public-image-assets/',
31764
+ path: {
31765
+ 'platform_key': platformKey
31766
+ },
31767
+ body: requestBody,
31768
+ mediaType: 'application/json'
31769
+ });
31770
+ }
31771
+ /**
31772
+ * Shared functionality for platform public image asset views.
31773
+ * @returns PlatformPublicImageAsset
31774
+ * @throws ApiError
31775
+ */
31776
+ static corePlatformsPublicImageAssetsRetrieve({
31777
+ assetId,
31778
+ platformKey
31779
+ }) {
31780
+ return request(OpenAPI, {
31781
+ method: 'GET',
31782
+ url: '/api/core/platforms/{platform_key}/public-image-assets/{asset_id}/',
31783
+ path: {
31784
+ 'asset_id': assetId,
31785
+ 'platform_key': platformKey
31786
+ }
31787
+ });
31788
+ }
31789
+ /**
31790
+ * Shared functionality for platform public image asset views.
31791
+ * @returns PlatformPublicImageAsset
31792
+ * @throws ApiError
31793
+ */
31794
+ static corePlatformsPublicImageAssetsUpdate({
31795
+ assetId,
31796
+ platformKey,
31797
+ requestBody
31798
+ }) {
31799
+ return request(OpenAPI, {
31800
+ method: 'PUT',
31801
+ url: '/api/core/platforms/{platform_key}/public-image-assets/{asset_id}/',
31802
+ path: {
31803
+ 'asset_id': assetId,
31804
+ 'platform_key': platformKey
31805
+ },
31806
+ body: requestBody,
31807
+ mediaType: 'application/json'
31808
+ });
31809
+ }
31810
+ /**
31811
+ * Shared functionality for platform public image asset views.
31812
+ * @returns PlatformPublicImageAsset
31813
+ * @throws ApiError
31814
+ */
31815
+ static corePlatformsPublicImageAssetsPartialUpdate({
31816
+ assetId,
31817
+ platformKey,
31818
+ requestBody
31819
+ }) {
31820
+ return request(OpenAPI, {
31821
+ method: 'PATCH',
31822
+ url: '/api/core/platforms/{platform_key}/public-image-assets/{asset_id}/',
31823
+ path: {
31824
+ 'asset_id': assetId,
31825
+ 'platform_key': platformKey
31826
+ },
31827
+ body: requestBody,
31828
+ mediaType: 'application/json'
31829
+ });
31830
+ }
31831
+ /**
31832
+ * Shared functionality for platform public image asset views.
31833
+ * @returns void
31834
+ * @throws ApiError
31835
+ */
31836
+ static corePlatformsPublicImageAssetsDestroy({
31837
+ assetId,
31838
+ platformKey
31839
+ }) {
31840
+ return request(OpenAPI, {
31841
+ method: 'DELETE',
31842
+ url: '/api/core/platforms/{platform_key}/public-image-assets/{asset_id}/',
31843
+ path: {
31844
+ 'asset_id': assetId,
31845
+ 'platform_key': platformKey
31846
+ }
31847
+ });
31848
+ }
31849
+ /**
31850
+ * Shared functionality for platform public image asset views.
31851
+ * @returns any
31852
+ * @throws ApiError
31853
+ */
31854
+ static corePlatformsPublicImageAssetsFileRetrieve({
31855
+ assetId,
31856
+ platformKey
31857
+ }) {
31858
+ return request(OpenAPI, {
31859
+ method: 'GET',
31860
+ url: '/api/core/platforms/{platform_key}/public-image-assets/{asset_id}/file/',
31861
+ path: {
31862
+ 'asset_id': assetId,
31863
+ 'platform_key': platformKey
31864
+ }
31865
+ });
31866
+ }
31177
31867
  /**
31178
31868
  * List RBAC groups
31179
- * Retrieve a list of RBAC groups. Can be filtered by platform_key.
31869
+ * Retrieve a list of RBAC groups. Can be filtered by platform_key, owner, name, username, or email. Use include_users to control response payload.
31180
31870
  * @returns PaginatedRbacGroupList
31181
31871
  * @throws ApiError
31182
31872
  */
31183
31873
  static coreRbacGroupsList({
31874
+ email,
31184
31875
  includeUsers = true,
31876
+ name,
31185
31877
  owner,
31186
31878
  page,
31187
31879
  pageSize,
31188
- platformKey
31880
+ platformKey,
31881
+ username
31189
31882
  }) {
31190
31883
  return request(OpenAPI, {
31191
31884
  method: 'GET',
31192
31885
  url: '/api/core/rbac/groups/',
31193
31886
  query: {
31887
+ 'email': email,
31194
31888
  'include_users': includeUsers,
31889
+ 'name': name,
31195
31890
  'owner': owner,
31196
31891
  'page': page,
31197
31892
  'page_size': pageSize,
31198
- 'platform_key': platformKey
31893
+ 'platform_key': platformKey,
31894
+ 'username': username
31895
+ },
31896
+ errors: {
31897
+ 403: `Permission denied - insufficient RBAC permissions`
31199
31898
  }
31200
31899
  });
31201
31900
  }
@@ -31216,7 +31915,8 @@ class CoreService {
31216
31915
  errors: {
31217
31916
  400: `Invalid input data. Common errors include:
31218
31917
  - Users do not belong to the specified platform
31219
- - Invalid user IDs provided`
31918
+ - Invalid user IDs provided`,
31919
+ 403: `Permission denied - insufficient RBAC permissions`
31220
31920
  }
31221
31921
  });
31222
31922
  }
@@ -31236,13 +31936,14 @@ class CoreService {
31236
31936
  'id': id
31237
31937
  },
31238
31938
  errors: {
31939
+ 403: `Permission denied - insufficient RBAC permissions`,
31239
31940
  404: `Group not found`
31240
31941
  }
31241
31942
  });
31242
31943
  }
31243
31944
  /**
31244
31945
  * Update RBAC group
31245
- * Update an existing RBAC group. Platform validation applies for user assignments.
31946
+ * Update an existing RBAC group. Platform validation applies for user assignments. Cannot update internal system groups.
31246
31947
  * @returns RbacGroup
31247
31948
  * @throws ApiError
31248
31949
  */
@@ -31262,13 +31963,14 @@ class CoreService {
31262
31963
  400: `Invalid input data. Common errors include:
31263
31964
  - Users do not belong to the specified platform
31264
31965
  - Invalid user IDs provided`,
31966
+ 403: `Permission denied - insufficient RBAC permissions or attempting to edit internal system group`,
31265
31967
  404: `Group not found`
31266
31968
  }
31267
31969
  });
31268
31970
  }
31269
31971
  /**
31270
31972
  * Partially update RBAC group
31271
- * Partially update an existing RBAC group. Platform validation applies for user assignments.
31973
+ * Partially update an existing RBAC group. Platform validation applies for user assignments. Cannot update internal system groups.
31272
31974
  * @returns RbacGroup
31273
31975
  * @throws ApiError
31274
31976
  */
@@ -31288,13 +31990,14 @@ class CoreService {
31288
31990
  400: `Invalid input data. Common errors include:
31289
31991
  - Users do not belong to the specified platform
31290
31992
  - Invalid user IDs provided`,
31993
+ 403: `Permission denied - insufficient RBAC permissions or attempting to edit internal system group`,
31291
31994
  404: `Group not found`
31292
31995
  }
31293
31996
  });
31294
31997
  }
31295
31998
  /**
31296
31999
  * Delete RBAC group
31297
- * Delete an RBAC group and all associated group role assignments.
32000
+ * Delete an RBAC group and all associated group role assignments. Cannot delete internal system groups.
31298
32001
  * @returns void
31299
32002
  * @throws ApiError
31300
32003
  */
@@ -31312,6 +32015,7 @@ class CoreService {
31312
32015
  'platform_key': platformKey
31313
32016
  },
31314
32017
  errors: {
32018
+ 403: `Permission denied - insufficient RBAC permissions or attempting to delete internal system group`,
31315
32019
  404: `Group not found`
31316
32020
  }
31317
32021
  });
@@ -31385,24 +32089,39 @@ class CoreService {
31385
32089
  }
31386
32090
  /**
31387
32091
  * List RBAC policies
31388
- * Retrieve a list of RBAC policies. Can be filtered by platform_key or role_id.
32092
+ * Retrieve a list of RBAC policies. Can be filtered by platform_key, role_id, name, username, email, or group. Use include_users and include_groups to control response payload.
31389
32093
  * @returns PaginatedRbacPolicyList
31390
32094
  * @throws ApiError
31391
32095
  */
31392
32096
  static coreRbacPoliciesList({
32097
+ email,
32098
+ group,
32099
+ includeGroups = true,
32100
+ includeUsers = true,
32101
+ name,
31393
32102
  page,
31394
32103
  pageSize,
31395
32104
  platformKey,
31396
- roleId
32105
+ roleId,
32106
+ username
31397
32107
  }) {
31398
32108
  return request(OpenAPI, {
31399
32109
  method: 'GET',
31400
32110
  url: '/api/core/rbac/policies/',
31401
32111
  query: {
32112
+ 'email': email,
32113
+ 'group': group,
32114
+ 'include_groups': includeGroups,
32115
+ 'include_users': includeUsers,
32116
+ 'name': name,
31402
32117
  'page': page,
31403
32118
  'page_size': pageSize,
31404
32119
  'platform_key': platformKey,
31405
- 'role_id': roleId
32120
+ 'role_id': roleId,
32121
+ 'username': username
32122
+ },
32123
+ errors: {
32124
+ 403: `Permission denied - insufficient RBAC permissions`
31406
32125
  }
31407
32126
  });
31408
32127
  }
@@ -31421,7 +32140,8 @@ class CoreService {
31421
32140
  body: requestBody,
31422
32141
  mediaType: 'application/json',
31423
32142
  errors: {
31424
- 400: `Invalid input data. Common errors include: invalid user/group IDs, users/groups not belonging to the platform, or invalid resource paths.`
32143
+ 400: `Invalid input data. Common errors include: invalid user/group IDs, users/groups not belonging to the platform, or invalid resource paths.`,
32144
+ 403: `Permission denied - insufficient RBAC permissions`
31425
32145
  }
31426
32146
  });
31427
32147
  }
@@ -31441,6 +32161,7 @@ class CoreService {
31441
32161
  'id': id
31442
32162
  },
31443
32163
  errors: {
32164
+ 403: `Permission denied - insufficient RBAC permissions`,
31444
32165
  404: `Policy not found`
31445
32166
  }
31446
32167
  });
@@ -31465,6 +32186,7 @@ class CoreService {
31465
32186
  mediaType: 'application/json',
31466
32187
  errors: {
31467
32188
  400: `Invalid input data. Common errors include: invalid user/group IDs, users/groups not belonging to the platform, or invalid resource paths.`,
32189
+ 403: `Permission denied - insufficient RBAC permissions`,
31468
32190
  404: `Policy not found`
31469
32191
  }
31470
32192
  });
@@ -31489,6 +32211,7 @@ class CoreService {
31489
32211
  mediaType: 'application/json',
31490
32212
  errors: {
31491
32213
  400: `Invalid input data. Common errors include: invalid user/group IDs, users/groups not belonging to the platform, or invalid resource paths.`,
32214
+ 403: `Permission denied - insufficient RBAC permissions`,
31492
32215
  404: `Policy not found`
31493
32216
  }
31494
32217
  });
@@ -31513,17 +32236,19 @@ class CoreService {
31513
32236
  'platform_key': platformKey
31514
32237
  },
31515
32238
  errors: {
32239
+ 403: `Permission denied - insufficient RBAC permissions`,
31516
32240
  404: `Policy not found`
31517
32241
  }
31518
32242
  });
31519
32243
  }
31520
32244
  /**
31521
32245
  * List RBAC roles
31522
- * Retrieve a list of RBAC roles. Can be filtered by platform_key.
32246
+ * Retrieve a list of RBAC roles. Can be filtered by platform_key and name.
31523
32247
  * @returns PaginatedRbacRoleList
31524
32248
  * @throws ApiError
31525
32249
  */
31526
32250
  static coreRbacRolesList({
32251
+ name,
31527
32252
  page,
31528
32253
  pageSize,
31529
32254
  platformKey
@@ -31532,9 +32257,13 @@ class CoreService {
31532
32257
  method: 'GET',
31533
32258
  url: '/api/core/rbac/roles/',
31534
32259
  query: {
32260
+ 'name': name,
31535
32261
  'page': page,
31536
32262
  'page_size': pageSize,
31537
32263
  'platform_key': platformKey
32264
+ },
32265
+ errors: {
32266
+ 403: `Permission denied - insufficient RBAC permissions`
31538
32267
  }
31539
32268
  });
31540
32269
  }
@@ -31553,7 +32282,8 @@ class CoreService {
31553
32282
  body: requestBody,
31554
32283
  mediaType: 'application/json',
31555
32284
  errors: {
31556
- 400: `Invalid input data`
32285
+ 400: `Invalid input data`,
32286
+ 403: `Permission denied - insufficient RBAC permissions`
31557
32287
  }
31558
32288
  });
31559
32289
  }
@@ -31573,6 +32303,7 @@ class CoreService {
31573
32303
  'id': id
31574
32304
  },
31575
32305
  errors: {
32306
+ 403: `Permission denied - insufficient RBAC permissions`,
31576
32307
  404: `Role not found`
31577
32308
  }
31578
32309
  });
@@ -31597,6 +32328,7 @@ class CoreService {
31597
32328
  mediaType: 'application/json',
31598
32329
  errors: {
31599
32330
  400: `Invalid input data`,
32331
+ 403: `Permission denied - insufficient RBAC permissions`,
31600
32332
  404: `Role not found`
31601
32333
  }
31602
32334
  });
@@ -31621,13 +32353,14 @@ class CoreService {
31621
32353
  mediaType: 'application/json',
31622
32354
  errors: {
31623
32355
  400: `Invalid input data`,
32356
+ 403: `Permission denied - insufficient RBAC permissions`,
31624
32357
  404: `Role not found`
31625
32358
  }
31626
32359
  });
31627
32360
  }
31628
32361
  /**
31629
32362
  * Delete RBAC role
31630
- * Delete an RBAC role.
32363
+ * Delete an RBAC role. WARNING: Deleting a role will remove all policies referencing it.
31631
32364
  * @returns void
31632
32365
  * @throws ApiError
31633
32366
  */
@@ -31645,6 +32378,7 @@ class CoreService {
31645
32378
  'platform_key': platformKey
31646
32379
  },
31647
32380
  errors: {
32381
+ 403: `Permission denied - insufficient RBAC permissions`,
31648
32382
  404: `Role not found`
31649
32383
  }
31650
32384
  });
@@ -32404,15 +33138,15 @@ class CredentialsService {
32404
33138
  * @throws ApiError
32405
33139
  */
32406
33140
  static credentialsOrgsUsersRetrieve({
32407
- org,
32408
- userId
33141
+ platformKey,
33142
+ username
32409
33143
  }) {
32410
33144
  return request(OpenAPI, {
32411
33145
  method: 'GET',
32412
- url: '/api/credentials/orgs/{org}/users/{user_id}/',
33146
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/',
32413
33147
  path: {
32414
- 'org': org,
32415
- 'user_id': userId
33148
+ 'platform_key': platformKey,
33149
+ 'username': username
32416
33150
  }
32417
33151
  });
32418
33152
  }
@@ -32497,16 +33231,16 @@ class CredentialsService {
32497
33231
  * @throws ApiError
32498
33232
  */
32499
33233
  static credentialsOrgsUsersCreate({
32500
- org,
32501
- userId,
33234
+ platformKey,
33235
+ username,
32502
33236
  requestBody
32503
33237
  }) {
32504
33238
  return request(OpenAPI, {
32505
33239
  method: 'POST',
32506
- url: '/api/credentials/orgs/{org}/users/{user_id}/',
33240
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/',
32507
33241
  path: {
32508
- 'org': org,
32509
- 'user_id': userId
33242
+ 'platform_key': platformKey,
33243
+ 'username': username
32510
33244
  },
32511
33245
  body: requestBody,
32512
33246
  mediaType: 'application/json'
@@ -32572,16 +33306,16 @@ class CredentialsService {
32572
33306
  */
32573
33307
  static credentialsOrgsUsersRetrieve2({
32574
33308
  entityId,
32575
- org,
32576
- userId
33309
+ platformKey,
33310
+ username
32577
33311
  }) {
32578
33312
  return request(OpenAPI, {
32579
33313
  method: 'GET',
32580
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}',
33314
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
32581
33315
  path: {
32582
33316
  'entity_id': entityId,
32583
- 'org': org,
32584
- 'user_id': userId
33317
+ 'platform_key': platformKey,
33318
+ 'username': username
32585
33319
  }
32586
33320
  });
32587
33321
  }
@@ -32645,17 +33379,17 @@ class CredentialsService {
32645
33379
  */
32646
33380
  static credentialsOrgsUsersUpdate({
32647
33381
  entityId,
32648
- org,
32649
- userId,
33382
+ platformKey,
33383
+ username,
32650
33384
  requestBody
32651
33385
  }) {
32652
33386
  return request(OpenAPI, {
32653
33387
  method: 'PUT',
32654
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}',
33388
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
32655
33389
  path: {
32656
33390
  'entity_id': entityId,
32657
- 'org': org,
32658
- 'user_id': userId
33391
+ 'platform_key': platformKey,
33392
+ 'username': username
32659
33393
  },
32660
33394
  body: requestBody,
32661
33395
  mediaType: 'application/json'
@@ -32721,16 +33455,16 @@ class CredentialsService {
32721
33455
  */
32722
33456
  static credentialsOrgsUsersDestroy({
32723
33457
  entityId,
32724
- org,
32725
- userId
33458
+ platformKey,
33459
+ username
32726
33460
  }) {
32727
33461
  return request(OpenAPI, {
32728
33462
  method: 'DELETE',
32729
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}',
33463
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
32730
33464
  path: {
32731
33465
  'entity_id': entityId,
32732
- 'org': org,
32733
- 'user_id': userId
33466
+ 'platform_key': platformKey,
33467
+ 'username': username
32734
33468
  }
32735
33469
  });
32736
33470
  }
@@ -32768,16 +33502,16 @@ class CredentialsService {
32768
33502
  */
32769
33503
  static credentialsOrgsUsersAssertionsRetrieve3({
32770
33504
  entityId,
32771
- org,
32772
- userId
33505
+ platformKey,
33506
+ username
32773
33507
  }) {
32774
33508
  return request(OpenAPI, {
32775
33509
  method: 'GET',
32776
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}/assertions/',
33510
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
32777
33511
  path: {
32778
33512
  'entity_id': entityId,
32779
- 'org': org,
32780
- 'user_id': userId
33513
+ 'platform_key': platformKey,
33514
+ 'username': username
32781
33515
  }
32782
33516
  });
32783
33517
  }
@@ -32815,17 +33549,17 @@ class CredentialsService {
32815
33549
  */
32816
33550
  static credentialsOrgsUsersAssertionsCreate({
32817
33551
  entityId,
32818
- org,
32819
- userId,
33552
+ platformKey,
33553
+ username,
32820
33554
  requestBody
32821
33555
  }) {
32822
33556
  return request(OpenAPI, {
32823
33557
  method: 'POST',
32824
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}/assertions/',
33558
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
32825
33559
  path: {
32826
33560
  'entity_id': entityId,
32827
- 'org': org,
32828
- 'user_id': userId
33561
+ 'platform_key': platformKey,
33562
+ 'username': username
32829
33563
  },
32830
33564
  body: requestBody,
32831
33565
  mediaType: 'application/json'
@@ -32864,17 +33598,17 @@ class CredentialsService {
32864
33598
  */
32865
33599
  static credentialsOrgsUsersAssertionsBulkCreate({
32866
33600
  entityId,
32867
- org,
32868
- userId,
33601
+ platformKey,
33602
+ username,
32869
33603
  requestBody
32870
33604
  }) {
32871
33605
  return request(OpenAPI, {
32872
33606
  method: 'POST',
32873
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}/assertions/bulk/',
33607
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/bulk/',
32874
33608
  path: {
32875
33609
  'entity_id': entityId,
32876
- 'org': org,
32877
- 'user_id': userId
33610
+ 'platform_key': platformKey,
33611
+ 'username': username
32878
33612
  },
32879
33613
  body: requestBody,
32880
33614
  mediaType: 'application/json'
@@ -32908,8 +33642,8 @@ class CredentialsService {
32908
33642
  * @throws ApiError
32909
33643
  */
32910
33644
  static credentialsOrgsUsersAssertionsRetrieve({
32911
- org,
32912
- userId,
33645
+ platformKey,
33646
+ username,
32913
33647
  course,
32914
33648
  excludeMainTenantAssertions,
32915
33649
  includeExpired,
@@ -32919,10 +33653,10 @@ class CredentialsService {
32919
33653
  }) {
32920
33654
  return request(OpenAPI, {
32921
33655
  method: 'GET',
32922
- url: '/api/credentials/orgs/{org}/users/{user_id}/assertions/',
33656
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/',
32923
33657
  path: {
32924
- 'org': org,
32925
- 'user_id': userId
33658
+ 'platform_key': platformKey,
33659
+ 'username': username
32926
33660
  },
32927
33661
  query: {
32928
33662
  'course': course,
@@ -32940,8 +33674,8 @@ class CredentialsService {
32940
33674
  * @throws ApiError
32941
33675
  */
32942
33676
  static credentialsOrgsUsersAssertionsOverTimeRetrieve({
32943
- org,
32944
- userId,
33677
+ platformKey,
33678
+ username,
32945
33679
  departmentId,
32946
33680
  endDate,
32947
33681
  format = 'json',
@@ -32950,10 +33684,10 @@ class CredentialsService {
32950
33684
  }) {
32951
33685
  return request(OpenAPI, {
32952
33686
  method: 'GET',
32953
- url: '/api/credentials/orgs/{org}/users/{user_id}/assertions-over-time/',
33687
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions-over-time/',
32954
33688
  path: {
32955
- 'org': org,
32956
- 'user_id': userId
33689
+ 'platform_key': platformKey,
33690
+ 'username': username
32957
33691
  },
32958
33692
  query: {
32959
33693
  'department_id': departmentId,
@@ -32999,16 +33733,16 @@ class CredentialsService {
32999
33733
  */
33000
33734
  static credentialsOrgsUsersAssertionsRetrieve2({
33001
33735
  entityId,
33002
- org,
33003
- userId
33736
+ platformKey,
33737
+ username
33004
33738
  }) {
33005
33739
  return request(OpenAPI, {
33006
33740
  method: 'GET',
33007
- url: '/api/credentials/orgs/{org}/users/{user_id}/assertions/{entity_id}',
33741
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
33008
33742
  path: {
33009
33743
  'entity_id': entityId,
33010
- 'org': org,
33011
- 'user_id': userId
33744
+ 'platform_key': platformKey,
33745
+ 'username': username
33012
33746
  }
33013
33747
  });
33014
33748
  }
@@ -33047,17 +33781,17 @@ class CredentialsService {
33047
33781
  */
33048
33782
  static credentialsOrgsUsersAssertionsUpdate({
33049
33783
  entityId,
33050
- org,
33051
- userId,
33784
+ platformKey,
33785
+ username,
33052
33786
  requestBody
33053
33787
  }) {
33054
33788
  return request(OpenAPI, {
33055
33789
  method: 'PUT',
33056
- url: '/api/credentials/orgs/{org}/users/{user_id}/assertions/{entity_id}',
33790
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
33057
33791
  path: {
33058
33792
  'entity_id': entityId,
33059
- 'org': org,
33060
- 'user_id': userId
33793
+ 'platform_key': platformKey,
33794
+ 'username': username
33061
33795
  },
33062
33796
  body: requestBody,
33063
33797
  mediaType: 'application/json'
@@ -33071,16 +33805,16 @@ class CredentialsService {
33071
33805
  */
33072
33806
  static credentialsOrgsUsersAssignmentsDestroy({
33073
33807
  assignmentId,
33074
- org,
33075
- userId
33808
+ platformKey,
33809
+ username
33076
33810
  }) {
33077
33811
  return request(OpenAPI, {
33078
33812
  method: 'DELETE',
33079
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/{assignment_id}',
33813
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/{assignment_id}',
33080
33814
  path: {
33081
33815
  'assignment_id': assignmentId,
33082
- 'org': org,
33083
- 'user_id': userId
33816
+ 'platform_key': platformKey,
33817
+ 'username': username
33084
33818
  }
33085
33819
  });
33086
33820
  }
@@ -33090,15 +33824,15 @@ class CredentialsService {
33090
33824
  * @throws ApiError
33091
33825
  */
33092
33826
  static credentialsOrgsUsersAssignmentsGroupsRetrieve({
33093
- org,
33094
- userId
33827
+ platformKey,
33828
+ username
33095
33829
  }) {
33096
33830
  return request(OpenAPI, {
33097
33831
  method: 'GET',
33098
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/groups/',
33832
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
33099
33833
  path: {
33100
- 'org': org,
33101
- 'user_id': userId
33834
+ 'platform_key': platformKey,
33835
+ 'username': username
33102
33836
  }
33103
33837
  });
33104
33838
  }
@@ -33108,15 +33842,15 @@ class CredentialsService {
33108
33842
  * @throws ApiError
33109
33843
  */
33110
33844
  static credentialsOrgsUsersAssignmentsGroupsCreate({
33111
- org,
33112
- userId
33845
+ platformKey,
33846
+ username
33113
33847
  }) {
33114
33848
  return request(OpenAPI, {
33115
33849
  method: 'POST',
33116
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/groups/',
33850
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
33117
33851
  path: {
33118
- 'org': org,
33119
- 'user_id': userId
33852
+ 'platform_key': platformKey,
33853
+ 'username': username
33120
33854
  }
33121
33855
  });
33122
33856
  }
@@ -33129,15 +33863,15 @@ class CredentialsService {
33129
33863
  * @throws ApiError
33130
33864
  */
33131
33865
  static credentialsOrgsUsersAssignmentsUsersRetrieve({
33132
- org,
33133
- userId
33866
+ platformKey,
33867
+ username
33134
33868
  }) {
33135
33869
  return request(OpenAPI, {
33136
33870
  method: 'GET',
33137
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/users/',
33871
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
33138
33872
  path: {
33139
- 'org': org,
33140
- 'user_id': userId
33873
+ 'platform_key': platformKey,
33874
+ 'username': username
33141
33875
  }
33142
33876
  });
33143
33877
  }
@@ -33147,15 +33881,15 @@ class CredentialsService {
33147
33881
  * @throws ApiError
33148
33882
  */
33149
33883
  static credentialsOrgsUsersAssignmentsUsersCreate({
33150
- org,
33151
- userId
33884
+ platformKey,
33885
+ username
33152
33886
  }) {
33153
33887
  return request(OpenAPI, {
33154
33888
  method: 'POST',
33155
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/users/',
33889
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
33156
33890
  path: {
33157
- 'org': org,
33158
- 'user_id': userId
33891
+ 'platform_key': platformKey,
33892
+ 'username': username
33159
33893
  }
33160
33894
  });
33161
33895
  }
@@ -33165,8 +33899,8 @@ class CredentialsService {
33165
33899
  * @throws ApiError
33166
33900
  */
33167
33901
  static credentialsOrgsUsersCourseAssertionsOverTimeRetrieve({
33168
- org,
33169
- userId,
33902
+ platformKey,
33903
+ username,
33170
33904
  departmentId,
33171
33905
  endDate,
33172
33906
  format = 'json',
@@ -33175,10 +33909,10 @@ class CredentialsService {
33175
33909
  }) {
33176
33910
  return request(OpenAPI, {
33177
33911
  method: 'GET',
33178
- url: '/api/credentials/orgs/{org}/users/{user_id}/course-assertions-over-time/',
33912
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/course-assertions-over-time/',
33179
33913
  path: {
33180
- 'org': org,
33181
- 'user_id': userId
33914
+ 'platform_key': platformKey,
33915
+ 'username': username
33182
33916
  },
33183
33917
  query: {
33184
33918
  'department_id': departmentId,
@@ -33215,17 +33949,17 @@ class CredentialsService {
33215
33949
  * @throws ApiError
33216
33950
  */
33217
33951
  static credentialsOrgsUsersCourseCredentialsList({
33218
- org,
33219
- userId,
33952
+ platformKey,
33953
+ username,
33220
33954
  page,
33221
33955
  pageSize
33222
33956
  }) {
33223
33957
  return request(OpenAPI, {
33224
33958
  method: 'GET',
33225
- url: '/api/credentials/orgs/{org}/users/{user_id}/course-credentials/',
33959
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/course-credentials/',
33226
33960
  path: {
33227
- 'org': org,
33228
- 'user_id': userId
33961
+ 'platform_key': platformKey,
33962
+ 'username': username
33229
33963
  },
33230
33964
  query: {
33231
33965
  'page': page,
@@ -33239,8 +33973,8 @@ class CredentialsService {
33239
33973
  * @throws ApiError
33240
33974
  */
33241
33975
  static credentialsOrgsUsersCredentialsOverTimeRetrieve({
33242
- org,
33243
- userId,
33976
+ platformKey,
33977
+ username,
33244
33978
  departmentId,
33245
33979
  endDate,
33246
33980
  format = 'json',
@@ -33249,10 +33983,10 @@ class CredentialsService {
33249
33983
  }) {
33250
33984
  return request(OpenAPI, {
33251
33985
  method: 'GET',
33252
- url: '/api/credentials/orgs/{org}/users/{user_id}/credentials-over-time/',
33986
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/credentials-over-time/',
33253
33987
  path: {
33254
- 'org': org,
33255
- 'user_id': userId
33988
+ 'platform_key': platformKey,
33989
+ 'username': username
33256
33990
  },
33257
33991
  query: {
33258
33992
  'department_id': departmentId,
@@ -33263,6 +33997,95 @@ class CredentialsService {
33263
33997
  }
33264
33998
  });
33265
33999
  }
34000
+ /**
34001
+ * Retrieve external credential mappings for the platform.
34002
+ *
34003
+ * Query Parameters:
34004
+ * credential_id (str, optional): Filter by credential entity_id
34005
+ * provider_name (str, optional): Filter by provider name
34006
+ * page (int, optional): Page number
34007
+ * page_size (int, optional): Items per page
34008
+ *
34009
+ * Returns all mappings for the platform if the user is an admin.
34010
+ * @returns ExternalCredentialMapping
34011
+ * @throws ApiError
34012
+ */
34013
+ static credentialsOrgsUsersExternalMappingRetrieve({
34014
+ platformKey,
34015
+ username
34016
+ }) {
34017
+ return request(OpenAPI, {
34018
+ method: 'GET',
34019
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
34020
+ path: {
34021
+ 'platform_key': platformKey,
34022
+ 'username': username
34023
+ }
34024
+ });
34025
+ }
34026
+ /**
34027
+ * Create or update an external credential mapping.
34028
+ *
34029
+ * If a mapping doesn't exist for the credential + platform + provider combination,
34030
+ * it will be created. If it exists, it will be updated.
34031
+ *
34032
+ * Request Body:
34033
+ * {
34034
+ * "credential_id": "credential-entity-id", // Required
34035
+ * "provider_name": "accredible", // Required
34036
+ * "external_template_id": "123456", // Optional
34037
+ * "metadata": {} // Optional
34038
+ * }
34039
+ *
34040
+ * Returns:
34041
+ * - 201 Created: When creating a new mapping
34042
+ * - 200 OK: When updating an existing mapping
34043
+ * @returns ExternalCredentialMapping
34044
+ * @throws ApiError
34045
+ */
34046
+ static credentialsOrgsUsersExternalMappingCreate({
34047
+ platformKey,
34048
+ username,
34049
+ requestBody
34050
+ }) {
34051
+ return request(OpenAPI, {
34052
+ method: 'POST',
34053
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
34054
+ path: {
34055
+ 'platform_key': platformKey,
34056
+ 'username': username
34057
+ },
34058
+ body: requestBody,
34059
+ mediaType: 'application/json'
34060
+ });
34061
+ }
34062
+ /**
34063
+ * Delete an external credential mapping.
34064
+ *
34065
+ * Request Body:
34066
+ * {
34067
+ * "credential_id": "credential-entity-id", // Required
34068
+ * "provider_name": "accredible" // Required
34069
+ * }
34070
+ *
34071
+ * Returns:
34072
+ * A JSON response confirming deletion
34073
+ * @returns void
34074
+ * @throws ApiError
34075
+ */
34076
+ static credentialsOrgsUsersExternalMappingDestroy({
34077
+ platformKey,
34078
+ username
34079
+ }) {
34080
+ return request(OpenAPI, {
34081
+ method: 'DELETE',
34082
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
34083
+ path: {
34084
+ 'platform_key': platformKey,
34085
+ 'username': username
34086
+ }
34087
+ });
34088
+ }
33266
34089
  /**
33267
34090
  * API View for managing uploaded images for credentials.
33268
34091
  *
@@ -33321,15 +34144,15 @@ class CredentialsService {
33321
34144
  * @throws ApiError
33322
34145
  */
33323
34146
  static credentialsOrgsUsersImagesRetrieve({
33324
- org,
33325
- userId
34147
+ platformKey,
34148
+ username
33326
34149
  }) {
33327
34150
  return request(OpenAPI, {
33328
34151
  method: 'GET',
33329
- url: '/api/credentials/orgs/{org}/users/{user_id}/images/',
34152
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
33330
34153
  path: {
33331
- 'org': org,
33332
- 'user_id': userId
34154
+ 'platform_key': platformKey,
34155
+ 'username': username
33333
34156
  }
33334
34157
  });
33335
34158
  }
@@ -33391,16 +34214,16 @@ class CredentialsService {
33391
34214
  * @throws ApiError
33392
34215
  */
33393
34216
  static credentialsOrgsUsersImagesCreate({
33394
- org,
33395
- userId,
34217
+ platformKey,
34218
+ username,
33396
34219
  requestBody
33397
34220
  }) {
33398
34221
  return request(OpenAPI, {
33399
34222
  method: 'POST',
33400
- url: '/api/credentials/orgs/{org}/users/{user_id}/images/',
34223
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
33401
34224
  path: {
33402
- 'org': org,
33403
- 'user_id': userId
34225
+ 'platform_key': platformKey,
34226
+ 'username': username
33404
34227
  },
33405
34228
  body: requestBody,
33406
34229
  mediaType: 'application/json'
@@ -33472,16 +34295,16 @@ class CredentialsService {
33472
34295
  * @throws ApiError
33473
34296
  */
33474
34297
  static credentialsOrgsUsersIssuersRetrieve({
33475
- org,
34298
+ platformKey,
33476
34299
  q,
33477
- userId
34300
+ username
33478
34301
  }) {
33479
34302
  return request(OpenAPI, {
33480
34303
  method: 'GET',
33481
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/',
34304
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
33482
34305
  path: {
33483
- 'org': org,
33484
- 'user_id': userId
34306
+ 'platform_key': platformKey,
34307
+ 'username': username
33485
34308
  },
33486
34309
  query: {
33487
34310
  'q': q
@@ -33554,17 +34377,17 @@ class CredentialsService {
33554
34377
  * @throws ApiError
33555
34378
  */
33556
34379
  static credentialsOrgsUsersIssuersCreate({
33557
- org,
34380
+ platformKey,
33558
34381
  q,
33559
- userId,
34382
+ username,
33560
34383
  requestBody
33561
34384
  }) {
33562
34385
  return request(OpenAPI, {
33563
34386
  method: 'POST',
33564
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/',
34387
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
33565
34388
  path: {
33566
- 'org': org,
33567
- 'user_id': userId
34389
+ 'platform_key': platformKey,
34390
+ 'username': username
33568
34391
  },
33569
34392
  query: {
33570
34393
  'q': q
@@ -33644,16 +34467,16 @@ class CredentialsService {
33644
34467
  */
33645
34468
  static credentialsOrgsUsersIssuersRetrieve2({
33646
34469
  entityId,
33647
- org,
33648
- userId
34470
+ platformKey,
34471
+ username
33649
34472
  }) {
33650
34473
  return request(OpenAPI, {
33651
34474
  method: 'GET',
33652
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/{entity_id}',
34475
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
33653
34476
  path: {
33654
34477
  'entity_id': entityId,
33655
- 'org': org,
33656
- 'user_id': userId
34478
+ 'platform_key': platformKey,
34479
+ 'username': username
33657
34480
  }
33658
34481
  });
33659
34482
  }
@@ -33728,17 +34551,17 @@ class CredentialsService {
33728
34551
  */
33729
34552
  static credentialsOrgsUsersIssuersUpdate({
33730
34553
  entityId,
33731
- org,
33732
- userId,
34554
+ platformKey,
34555
+ username,
33733
34556
  requestBody
33734
34557
  }) {
33735
34558
  return request(OpenAPI, {
33736
34559
  method: 'PUT',
33737
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/{entity_id}',
34560
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
33738
34561
  path: {
33739
34562
  'entity_id': entityId,
33740
- 'org': org,
33741
- 'user_id': userId
34563
+ 'platform_key': platformKey,
34564
+ 'username': username
33742
34565
  },
33743
34566
  body: requestBody,
33744
34567
  mediaType: 'application/json'
@@ -33815,16 +34638,16 @@ class CredentialsService {
33815
34638
  */
33816
34639
  static credentialsOrgsUsersIssuersDestroy({
33817
34640
  entityId,
33818
- org,
33819
- userId
34641
+ platformKey,
34642
+ username
33820
34643
  }) {
33821
34644
  return request(OpenAPI, {
33822
34645
  method: 'DELETE',
33823
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/{entity_id}',
34646
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
33824
34647
  path: {
33825
34648
  'entity_id': entityId,
33826
- 'org': org,
33827
- 'user_id': userId
34649
+ 'platform_key': platformKey,
34650
+ 'username': username
33828
34651
  }
33829
34652
  });
33830
34653
  }
@@ -33874,21 +34697,115 @@ class CredentialsService {
33874
34697
  * @throws ApiError
33875
34698
  */
33876
34699
  static credentialsOrgsUsersIssuersAuthorityCreate({
33877
- org,
33878
- userId,
34700
+ platformKey,
34701
+ username,
33879
34702
  requestBody
33880
34703
  }) {
33881
34704
  return request(OpenAPI, {
33882
34705
  method: 'POST',
33883
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/authority/',
34706
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/authority/',
33884
34707
  path: {
33885
- 'org': org,
33886
- 'user_id': userId
34708
+ 'platform_key': platformKey,
34709
+ 'username': username
34710
+ },
34711
+ body: requestBody,
34712
+ mediaType: 'application/json'
34713
+ });
34714
+ }
34715
+ /**
34716
+ * Retrieve provider configurations for the platform.
34717
+ *
34718
+ * Query Parameters:
34719
+ * provider_name (str, optional): Filter to a specific provider
34720
+ * page (int, optional): Page number
34721
+ * page_size (int, optional): Items per page
34722
+ *
34723
+ * Returns all configurations for the platform if the user is an admin.
34724
+ * @returns CredentialProviderConfig
34725
+ * @throws ApiError
34726
+ */
34727
+ static credentialsOrgsUsersProviderConfigRetrieve({
34728
+ platformKey,
34729
+ username
34730
+ }) {
34731
+ return request(OpenAPI, {
34732
+ method: 'GET',
34733
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
34734
+ path: {
34735
+ 'platform_key': platformKey,
34736
+ 'username': username
34737
+ }
34738
+ });
34739
+ }
34740
+ /**
34741
+ * Create or update a provider configuration.
34742
+ *
34743
+ * If a configuration doesn't exist for the platform and provider, it will be created.
34744
+ * If it exists, it will be updated.
34745
+ *
34746
+ * Request Body:
34747
+ * {
34748
+ * "provider_name": "accredible", // Required
34749
+ * "config": {...}, // Optional
34750
+ * "enabled": true // Optional
34751
+ * }
34752
+ *
34753
+ * Returns:
34754
+ * - 201 Created: When creating a new configuration
34755
+ * - 200 OK: When updating an existing configuration
34756
+ * @returns CredentialProviderConfig
34757
+ * @throws ApiError
34758
+ */
34759
+ static credentialsOrgsUsersProviderConfigCreate({
34760
+ platformKey,
34761
+ username,
34762
+ requestBody
34763
+ }) {
34764
+ return request(OpenAPI, {
34765
+ method: 'POST',
34766
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
34767
+ path: {
34768
+ 'platform_key': platformKey,
34769
+ 'username': username
33887
34770
  },
33888
34771
  body: requestBody,
33889
34772
  mediaType: 'application/json'
33890
34773
  });
33891
34774
  }
34775
+ /**
34776
+ * Deactivate a provider configuration (sets enabled=False).
34777
+ *
34778
+ * Request Body:
34779
+ * {
34780
+ * "provider_name": "accredible" // Required
34781
+ * }
34782
+ * @returns void
34783
+ * @throws ApiError
34784
+ */
34785
+ static credentialsOrgsUsersProviderConfigDestroy({
34786
+ platformKey,
34787
+ username
34788
+ }) {
34789
+ return request(OpenAPI, {
34790
+ method: 'DELETE',
34791
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
34792
+ path: {
34793
+ 'platform_key': platformKey,
34794
+ 'username': username
34795
+ }
34796
+ });
34797
+ }
34798
+ /**
34799
+ * Get list of enabled credential providers with pagination.
34800
+ * @returns any No response body
34801
+ * @throws ApiError
34802
+ */
34803
+ static credentialsProvidersRetrieve() {
34804
+ return request(OpenAPI, {
34805
+ method: 'GET',
34806
+ url: '/api/credentials/providers/'
34807
+ });
34808
+ }
33892
34809
  /**
33893
34810
  * Public endpoint to retrieve a specific credential assertion by its entity ID.
33894
34811
  *
@@ -37611,10 +38528,11 @@ const stripeApiSlice = react.createApi({
37611
38528
  providesTags: ['stripe-context'],
37612
38529
  }),
37613
38530
  getStripePricingPageSession: builder.query({
37614
- query: ({ platform_key }) => ({
38531
+ query: ({ platform_key, params }) => ({
37615
38532
  url: STRIPE_ENDPOINTS.GET_STRIPE_PRICING_PAGE_SESSION.path(platform_key),
37616
38533
  service: STRIPE_ENDPOINTS.GET_STRIPE_PRICING_PAGE_SESSION.service,
37617
38534
  method: 'GET',
38535
+ params,
37618
38536
  }),
37619
38537
  providesTags: ['stripe-context'],
37620
38538
  }),