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