@iblai/iblai-api 2025.11.14-teams-bot-renovation-3-ai → 2025.11.18-teams-bot-renovation-ai

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/index.cjs.js +502 -146
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +502 -146
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +502 -146
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +7 -0
  8. package/dist/types/models/Artifact.d.ts +8 -0
  9. package/dist/types/models/ArtifactVersion.d.ts +36 -0
  10. package/dist/types/models/ArtifactVersionList.d.ts +35 -0
  11. package/dist/types/models/CredentialProviderConfig.d.ts +29 -0
  12. package/dist/types/models/ExternalCredentialMapping.d.ts +39 -0
  13. package/dist/types/models/PaginatedArtifactVersionListList.d.ts +7 -0
  14. package/dist/types/models/PatchedArtifact.d.ts +8 -0
  15. package/dist/types/models/SetCurrentVersionRequest.d.ts +3 -0
  16. package/dist/types/models/TenantSetting.d.ts +5 -0
  17. package/dist/types/services/AiAccountService.d.ts +30 -1
  18. package/dist/types/services/AiMentorService.d.ts +74 -0
  19. package/dist/types/services/CredentialsService.d.ts +236 -69
  20. package/package.json +1 -1
  21. package/sdk_schema.yml +932 -91
  22. package/src/core/OpenAPI.ts +1 -1
  23. package/src/index.ts +7 -0
  24. package/src/models/Artifact.ts +8 -0
  25. package/src/models/ArtifactVersion.ts +41 -0
  26. package/src/models/ArtifactVersionList.ts +40 -0
  27. package/src/models/CredentialProviderConfig.ts +34 -0
  28. package/src/models/ExternalCredentialMapping.ts +44 -0
  29. package/src/models/PaginatedArtifactVersionListList.ts +12 -0
  30. package/src/models/PatchedArtifact.ts +8 -0
  31. package/src/models/SetCurrentVersionRequest.ts +8 -0
  32. package/src/models/TenantSetting.ts +10 -0
  33. package/src/services/AiAccountService.ts +58 -0
  34. package/src/services/AiMentorService.ts +184 -5
  35. package/src/services/CredentialsService.ts +961 -756
package/dist/index.umd.js CHANGED
@@ -114,7 +114,7 @@
114
114
 
115
115
  const OpenAPI = {
116
116
  BASE: 'https://base.manager.iblai.app',
117
- VERSION: '4.90.4-ai-plus',
117
+ VERSION: '4.92.1-ai-plus',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -2019,6 +2019,56 @@
2019
2019
  }
2020
2020
  });
2021
2021
  }
2022
+ /**
2023
+ * Get a platform's settings
2024
+ *
2025
+ * Example response:
2026
+ * ```
2027
+ * {"teams_bot_mentor": "f2116cf2-95c7-4c1f-b19e-666ad529439f"}
2028
+ *
2029
+ * ```
2030
+ * @returns TenantSetting
2031
+ * @throws ApiError
2032
+ */
2033
+ static aiAccountOrgsUsersTenantSettingsRetrieve({
2034
+ org,
2035
+ userId
2036
+ }) {
2037
+ return request(OpenAPI, {
2038
+ method: 'GET',
2039
+ url: '/api/ai-account/orgs/{org}/users/{user_id}/tenant-settings/',
2040
+ path: {
2041
+ 'org': org,
2042
+ 'user_id': userId
2043
+ }
2044
+ });
2045
+ }
2046
+ /**
2047
+ * Example Request:
2048
+ *
2049
+ * ```
2050
+ * {"teams_bot_mentor": "f2116cf2-95c7-4c1f-b19e-666ad529439f"}
2051
+ * ```
2052
+ * The value here is the mentor's unique id
2053
+ * @returns TenantSetting
2054
+ * @throws ApiError
2055
+ */
2056
+ static aiAccountOrgsUsersTenantSettingsCreate({
2057
+ org,
2058
+ userId,
2059
+ requestBody
2060
+ }) {
2061
+ return request(OpenAPI, {
2062
+ method: 'POST',
2063
+ url: '/api/ai-account/orgs/{org}/users/{user_id}/tenant-settings/',
2064
+ path: {
2065
+ 'org': org,
2066
+ 'user_id': userId
2067
+ },
2068
+ body: requestBody,
2069
+ mediaType: 'application/json'
2070
+ });
2071
+ }
2022
2072
  }
2023
2073
 
2024
2074
  class AiAnalyticsService {
@@ -14203,6 +14253,32 @@
14203
14253
  * @returns Artifact
14204
14254
  * @throws ApiError
14205
14255
  */
14256
+ static aiMentorOrgsUsersArtifactsCreate({
14257
+ org,
14258
+ userId,
14259
+ requestBody
14260
+ }) {
14261
+ return request(OpenAPI, {
14262
+ method: 'POST',
14263
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/',
14264
+ path: {
14265
+ 'org': org,
14266
+ 'user_id': userId
14267
+ },
14268
+ body: requestBody,
14269
+ mediaType: 'application/json',
14270
+ errors: {
14271
+ 401: `Authentication required`,
14272
+ 403: `Permission denied`,
14273
+ 404: `Artifact not found`
14274
+ }
14275
+ });
14276
+ }
14277
+ /**
14278
+ * Retrieve a specific artifact.
14279
+ * @returns Artifact
14280
+ * @throws ApiError
14281
+ */
14206
14282
  static aiMentorOrgsUsersArtifactsRetrieve({
14207
14283
  id,
14208
14284
  org,
@@ -14215,11 +14291,6 @@
14215
14291
  'id': id,
14216
14292
  'org': org,
14217
14293
  'user_id': userId
14218
- },
14219
- errors: {
14220
- 401: `Authentication required`,
14221
- 403: `Permission denied`,
14222
- 404: `Artifact not found`
14223
14294
  }
14224
14295
  });
14225
14296
  }
@@ -14309,6 +14380,108 @@
14309
14380
  }
14310
14381
  });
14311
14382
  }
14383
+ /**
14384
+ * List artifact versions
14385
+ * Retrieve all versions for a specific artifact.
14386
+ * @returns PaginatedArtifactVersionListList
14387
+ * @throws ApiError
14388
+ */
14389
+ static aiMentorOrgsUsersArtifactsVersionsList({
14390
+ id,
14391
+ org,
14392
+ userId,
14393
+ chatMessageId,
14394
+ fileExtension,
14395
+ llmName,
14396
+ llmProvider,
14397
+ mentorId,
14398
+ ordering,
14399
+ page,
14400
+ pageSize,
14401
+ search,
14402
+ sessionId,
14403
+ username
14404
+ }) {
14405
+ return request(OpenAPI, {
14406
+ method: 'GET',
14407
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/',
14408
+ path: {
14409
+ 'id': id,
14410
+ 'org': org,
14411
+ 'user_id': userId
14412
+ },
14413
+ query: {
14414
+ 'chat_message_id': chatMessageId,
14415
+ 'file_extension': fileExtension,
14416
+ 'llm_name': llmName,
14417
+ 'llm_provider': llmProvider,
14418
+ 'mentor_id': mentorId,
14419
+ 'ordering': ordering,
14420
+ 'page': page,
14421
+ 'page_size': pageSize,
14422
+ 'search': search,
14423
+ 'session_id': sessionId,
14424
+ 'username': username
14425
+ },
14426
+ errors: {
14427
+ 404: `Artifact not found`
14428
+ }
14429
+ });
14430
+ }
14431
+ /**
14432
+ * Get specific artifact version
14433
+ * Retrieve a specific version of an artifact by version ID.
14434
+ * @returns ArtifactVersion
14435
+ * @throws ApiError
14436
+ */
14437
+ static aiMentorOrgsUsersArtifactsVersionsRetrieve({
14438
+ id,
14439
+ org,
14440
+ userId,
14441
+ versionId
14442
+ }) {
14443
+ return request(OpenAPI, {
14444
+ method: 'GET',
14445
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/{version_id}/',
14446
+ path: {
14447
+ 'id': id,
14448
+ 'org': org,
14449
+ 'user_id': userId,
14450
+ 'version_id': versionId
14451
+ },
14452
+ errors: {
14453
+ 404: `Version not found`
14454
+ }
14455
+ });
14456
+ }
14457
+ /**
14458
+ * Set artifact version as current
14459
+ * Mark a specific version as the current/active version for an artifact.
14460
+ * @returns ArtifactVersion
14461
+ * @throws ApiError
14462
+ */
14463
+ static aiMentorOrgsUsersArtifactsVersionsSetCurrentCreate({
14464
+ id,
14465
+ org,
14466
+ userId,
14467
+ requestBody
14468
+ }) {
14469
+ return request(OpenAPI, {
14470
+ method: 'POST',
14471
+ url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/set-current/',
14472
+ path: {
14473
+ 'id': id,
14474
+ 'org': org,
14475
+ 'user_id': userId
14476
+ },
14477
+ body: requestBody,
14478
+ mediaType: 'application/json',
14479
+ errors: {
14480
+ 400: `Invalid request`,
14481
+ 404: `Version not found`
14482
+ }
14483
+ });
14484
+ }
14312
14485
  /**
14313
14486
  * Retrieve assumed knowledge levels.
14314
14487
  *
@@ -36681,15 +36854,15 @@
36681
36854
  * @throws ApiError
36682
36855
  */
36683
36856
  static credentialsOrgsUsersRetrieve({
36684
- org,
36685
- userId
36857
+ platformKey,
36858
+ username
36686
36859
  }) {
36687
36860
  return request(OpenAPI, {
36688
36861
  method: 'GET',
36689
- url: '/api/credentials/orgs/{org}/users/{user_id}/',
36862
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/',
36690
36863
  path: {
36691
- 'org': org,
36692
- 'user_id': userId
36864
+ 'platform_key': platformKey,
36865
+ 'username': username
36693
36866
  }
36694
36867
  });
36695
36868
  }
@@ -36774,16 +36947,16 @@
36774
36947
  * @throws ApiError
36775
36948
  */
36776
36949
  static credentialsOrgsUsersCreate({
36777
- org,
36778
- userId,
36950
+ platformKey,
36951
+ username,
36779
36952
  requestBody
36780
36953
  }) {
36781
36954
  return request(OpenAPI, {
36782
36955
  method: 'POST',
36783
- url: '/api/credentials/orgs/{org}/users/{user_id}/',
36956
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/',
36784
36957
  path: {
36785
- 'org': org,
36786
- 'user_id': userId
36958
+ 'platform_key': platformKey,
36959
+ 'username': username
36787
36960
  },
36788
36961
  body: requestBody,
36789
36962
  mediaType: 'application/json'
@@ -36849,16 +37022,16 @@
36849
37022
  */
36850
37023
  static credentialsOrgsUsersRetrieve2({
36851
37024
  entityId,
36852
- org,
36853
- userId
37025
+ platformKey,
37026
+ username
36854
37027
  }) {
36855
37028
  return request(OpenAPI, {
36856
37029
  method: 'GET',
36857
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}',
37030
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
36858
37031
  path: {
36859
37032
  'entity_id': entityId,
36860
- 'org': org,
36861
- 'user_id': userId
37033
+ 'platform_key': platformKey,
37034
+ 'username': username
36862
37035
  }
36863
37036
  });
36864
37037
  }
@@ -36922,17 +37095,17 @@
36922
37095
  */
36923
37096
  static credentialsOrgsUsersUpdate({
36924
37097
  entityId,
36925
- org,
36926
- userId,
37098
+ platformKey,
37099
+ username,
36927
37100
  requestBody
36928
37101
  }) {
36929
37102
  return request(OpenAPI, {
36930
37103
  method: 'PUT',
36931
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}',
37104
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
36932
37105
  path: {
36933
37106
  'entity_id': entityId,
36934
- 'org': org,
36935
- 'user_id': userId
37107
+ 'platform_key': platformKey,
37108
+ 'username': username
36936
37109
  },
36937
37110
  body: requestBody,
36938
37111
  mediaType: 'application/json'
@@ -36998,16 +37171,16 @@
36998
37171
  */
36999
37172
  static credentialsOrgsUsersDestroy({
37000
37173
  entityId,
37001
- org,
37002
- userId
37174
+ platformKey,
37175
+ username
37003
37176
  }) {
37004
37177
  return request(OpenAPI, {
37005
37178
  method: 'DELETE',
37006
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}',
37179
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
37007
37180
  path: {
37008
37181
  'entity_id': entityId,
37009
- 'org': org,
37010
- 'user_id': userId
37182
+ 'platform_key': platformKey,
37183
+ 'username': username
37011
37184
  }
37012
37185
  });
37013
37186
  }
@@ -37045,16 +37218,16 @@
37045
37218
  */
37046
37219
  static credentialsOrgsUsersAssertionsRetrieve3({
37047
37220
  entityId,
37048
- org,
37049
- userId
37221
+ platformKey,
37222
+ username
37050
37223
  }) {
37051
37224
  return request(OpenAPI, {
37052
37225
  method: 'GET',
37053
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}/assertions/',
37226
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
37054
37227
  path: {
37055
37228
  'entity_id': entityId,
37056
- 'org': org,
37057
- 'user_id': userId
37229
+ 'platform_key': platformKey,
37230
+ 'username': username
37058
37231
  }
37059
37232
  });
37060
37233
  }
@@ -37092,17 +37265,17 @@
37092
37265
  */
37093
37266
  static credentialsOrgsUsersAssertionsCreate({
37094
37267
  entityId,
37095
- org,
37096
- userId,
37268
+ platformKey,
37269
+ username,
37097
37270
  requestBody
37098
37271
  }) {
37099
37272
  return request(OpenAPI, {
37100
37273
  method: 'POST',
37101
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}/assertions/',
37274
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
37102
37275
  path: {
37103
37276
  'entity_id': entityId,
37104
- 'org': org,
37105
- 'user_id': userId
37277
+ 'platform_key': platformKey,
37278
+ 'username': username
37106
37279
  },
37107
37280
  body: requestBody,
37108
37281
  mediaType: 'application/json'
@@ -37141,17 +37314,17 @@
37141
37314
  */
37142
37315
  static credentialsOrgsUsersAssertionsBulkCreate({
37143
37316
  entityId,
37144
- org,
37145
- userId,
37317
+ platformKey,
37318
+ username,
37146
37319
  requestBody
37147
37320
  }) {
37148
37321
  return request(OpenAPI, {
37149
37322
  method: 'POST',
37150
- url: '/api/credentials/orgs/{org}/users/{user_id}/{entity_id}/assertions/bulk/',
37323
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/bulk/',
37151
37324
  path: {
37152
37325
  'entity_id': entityId,
37153
- 'org': org,
37154
- 'user_id': userId
37326
+ 'platform_key': platformKey,
37327
+ 'username': username
37155
37328
  },
37156
37329
  body: requestBody,
37157
37330
  mediaType: 'application/json'
@@ -37185,8 +37358,8 @@
37185
37358
  * @throws ApiError
37186
37359
  */
37187
37360
  static credentialsOrgsUsersAssertionsRetrieve({
37188
- org,
37189
- userId,
37361
+ platformKey,
37362
+ username,
37190
37363
  course,
37191
37364
  excludeMainTenantAssertions,
37192
37365
  includeExpired,
@@ -37196,10 +37369,10 @@
37196
37369
  }) {
37197
37370
  return request(OpenAPI, {
37198
37371
  method: 'GET',
37199
- url: '/api/credentials/orgs/{org}/users/{user_id}/assertions/',
37372
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/',
37200
37373
  path: {
37201
- 'org': org,
37202
- 'user_id': userId
37374
+ 'platform_key': platformKey,
37375
+ 'username': username
37203
37376
  },
37204
37377
  query: {
37205
37378
  'course': course,
@@ -37217,8 +37390,8 @@
37217
37390
  * @throws ApiError
37218
37391
  */
37219
37392
  static credentialsOrgsUsersAssertionsOverTimeRetrieve({
37220
- org,
37221
- userId,
37393
+ platformKey,
37394
+ username,
37222
37395
  departmentId,
37223
37396
  endDate,
37224
37397
  format = 'json',
@@ -37227,10 +37400,10 @@
37227
37400
  }) {
37228
37401
  return request(OpenAPI, {
37229
37402
  method: 'GET',
37230
- url: '/api/credentials/orgs/{org}/users/{user_id}/assertions-over-time/',
37403
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions-over-time/',
37231
37404
  path: {
37232
- 'org': org,
37233
- 'user_id': userId
37405
+ 'platform_key': platformKey,
37406
+ 'username': username
37234
37407
  },
37235
37408
  query: {
37236
37409
  'department_id': departmentId,
@@ -37276,16 +37449,16 @@
37276
37449
  */
37277
37450
  static credentialsOrgsUsersAssertionsRetrieve2({
37278
37451
  entityId,
37279
- org,
37280
- userId
37452
+ platformKey,
37453
+ username
37281
37454
  }) {
37282
37455
  return request(OpenAPI, {
37283
37456
  method: 'GET',
37284
- url: '/api/credentials/orgs/{org}/users/{user_id}/assertions/{entity_id}',
37457
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
37285
37458
  path: {
37286
37459
  'entity_id': entityId,
37287
- 'org': org,
37288
- 'user_id': userId
37460
+ 'platform_key': platformKey,
37461
+ 'username': username
37289
37462
  }
37290
37463
  });
37291
37464
  }
@@ -37324,17 +37497,17 @@
37324
37497
  */
37325
37498
  static credentialsOrgsUsersAssertionsUpdate({
37326
37499
  entityId,
37327
- org,
37328
- userId,
37500
+ platformKey,
37501
+ username,
37329
37502
  requestBody
37330
37503
  }) {
37331
37504
  return request(OpenAPI, {
37332
37505
  method: 'PUT',
37333
- url: '/api/credentials/orgs/{org}/users/{user_id}/assertions/{entity_id}',
37506
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
37334
37507
  path: {
37335
37508
  'entity_id': entityId,
37336
- 'org': org,
37337
- 'user_id': userId
37509
+ 'platform_key': platformKey,
37510
+ 'username': username
37338
37511
  },
37339
37512
  body: requestBody,
37340
37513
  mediaType: 'application/json'
@@ -37348,16 +37521,16 @@
37348
37521
  */
37349
37522
  static credentialsOrgsUsersAssignmentsDestroy({
37350
37523
  assignmentId,
37351
- org,
37352
- userId
37524
+ platformKey,
37525
+ username
37353
37526
  }) {
37354
37527
  return request(OpenAPI, {
37355
37528
  method: 'DELETE',
37356
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/{assignment_id}',
37529
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/{assignment_id}',
37357
37530
  path: {
37358
37531
  'assignment_id': assignmentId,
37359
- 'org': org,
37360
- 'user_id': userId
37532
+ 'platform_key': platformKey,
37533
+ 'username': username
37361
37534
  }
37362
37535
  });
37363
37536
  }
@@ -37367,15 +37540,15 @@
37367
37540
  * @throws ApiError
37368
37541
  */
37369
37542
  static credentialsOrgsUsersAssignmentsGroupsRetrieve({
37370
- org,
37371
- userId
37543
+ platformKey,
37544
+ username
37372
37545
  }) {
37373
37546
  return request(OpenAPI, {
37374
37547
  method: 'GET',
37375
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/groups/',
37548
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
37376
37549
  path: {
37377
- 'org': org,
37378
- 'user_id': userId
37550
+ 'platform_key': platformKey,
37551
+ 'username': username
37379
37552
  }
37380
37553
  });
37381
37554
  }
@@ -37385,15 +37558,15 @@
37385
37558
  * @throws ApiError
37386
37559
  */
37387
37560
  static credentialsOrgsUsersAssignmentsGroupsCreate({
37388
- org,
37389
- userId
37561
+ platformKey,
37562
+ username
37390
37563
  }) {
37391
37564
  return request(OpenAPI, {
37392
37565
  method: 'POST',
37393
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/groups/',
37566
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
37394
37567
  path: {
37395
- 'org': org,
37396
- 'user_id': userId
37568
+ 'platform_key': platformKey,
37569
+ 'username': username
37397
37570
  }
37398
37571
  });
37399
37572
  }
@@ -37406,15 +37579,15 @@
37406
37579
  * @throws ApiError
37407
37580
  */
37408
37581
  static credentialsOrgsUsersAssignmentsUsersRetrieve({
37409
- org,
37410
- userId
37582
+ platformKey,
37583
+ username
37411
37584
  }) {
37412
37585
  return request(OpenAPI, {
37413
37586
  method: 'GET',
37414
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/users/',
37587
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
37415
37588
  path: {
37416
- 'org': org,
37417
- 'user_id': userId
37589
+ 'platform_key': platformKey,
37590
+ 'username': username
37418
37591
  }
37419
37592
  });
37420
37593
  }
@@ -37424,15 +37597,15 @@
37424
37597
  * @throws ApiError
37425
37598
  */
37426
37599
  static credentialsOrgsUsersAssignmentsUsersCreate({
37427
- org,
37428
- userId
37600
+ platformKey,
37601
+ username
37429
37602
  }) {
37430
37603
  return request(OpenAPI, {
37431
37604
  method: 'POST',
37432
- url: '/api/credentials/orgs/{org}/users/{user_id}/assignments/users/',
37605
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
37433
37606
  path: {
37434
- 'org': org,
37435
- 'user_id': userId
37607
+ 'platform_key': platformKey,
37608
+ 'username': username
37436
37609
  }
37437
37610
  });
37438
37611
  }
@@ -37442,8 +37615,8 @@
37442
37615
  * @throws ApiError
37443
37616
  */
37444
37617
  static credentialsOrgsUsersCourseAssertionsOverTimeRetrieve({
37445
- org,
37446
- userId,
37618
+ platformKey,
37619
+ username,
37447
37620
  departmentId,
37448
37621
  endDate,
37449
37622
  format = 'json',
@@ -37452,10 +37625,10 @@
37452
37625
  }) {
37453
37626
  return request(OpenAPI, {
37454
37627
  method: 'GET',
37455
- url: '/api/credentials/orgs/{org}/users/{user_id}/course-assertions-over-time/',
37628
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/course-assertions-over-time/',
37456
37629
  path: {
37457
- 'org': org,
37458
- 'user_id': userId
37630
+ 'platform_key': platformKey,
37631
+ 'username': username
37459
37632
  },
37460
37633
  query: {
37461
37634
  'department_id': departmentId,
@@ -37492,17 +37665,17 @@
37492
37665
  * @throws ApiError
37493
37666
  */
37494
37667
  static credentialsOrgsUsersCourseCredentialsList({
37495
- org,
37496
- userId,
37668
+ platformKey,
37669
+ username,
37497
37670
  page,
37498
37671
  pageSize
37499
37672
  }) {
37500
37673
  return request(OpenAPI, {
37501
37674
  method: 'GET',
37502
- url: '/api/credentials/orgs/{org}/users/{user_id}/course-credentials/',
37675
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/course-credentials/',
37503
37676
  path: {
37504
- 'org': org,
37505
- 'user_id': userId
37677
+ 'platform_key': platformKey,
37678
+ 'username': username
37506
37679
  },
37507
37680
  query: {
37508
37681
  'page': page,
@@ -37516,8 +37689,8 @@
37516
37689
  * @throws ApiError
37517
37690
  */
37518
37691
  static credentialsOrgsUsersCredentialsOverTimeRetrieve({
37519
- org,
37520
- userId,
37692
+ platformKey,
37693
+ username,
37521
37694
  departmentId,
37522
37695
  endDate,
37523
37696
  format = 'json',
@@ -37526,10 +37699,10 @@
37526
37699
  }) {
37527
37700
  return request(OpenAPI, {
37528
37701
  method: 'GET',
37529
- url: '/api/credentials/orgs/{org}/users/{user_id}/credentials-over-time/',
37702
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/credentials-over-time/',
37530
37703
  path: {
37531
- 'org': org,
37532
- 'user_id': userId
37704
+ 'platform_key': platformKey,
37705
+ 'username': username
37533
37706
  },
37534
37707
  query: {
37535
37708
  'department_id': departmentId,
@@ -37540,6 +37713,95 @@
37540
37713
  }
37541
37714
  });
37542
37715
  }
37716
+ /**
37717
+ * Retrieve external credential mappings for the platform.
37718
+ *
37719
+ * Query Parameters:
37720
+ * credential_id (str, optional): Filter by credential entity_id
37721
+ * provider_name (str, optional): Filter by provider name
37722
+ * page (int, optional): Page number
37723
+ * page_size (int, optional): Items per page
37724
+ *
37725
+ * Returns all mappings for the platform if the user is an admin.
37726
+ * @returns ExternalCredentialMapping
37727
+ * @throws ApiError
37728
+ */
37729
+ static credentialsOrgsUsersExternalMappingRetrieve({
37730
+ platformKey,
37731
+ username
37732
+ }) {
37733
+ return request(OpenAPI, {
37734
+ method: 'GET',
37735
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
37736
+ path: {
37737
+ 'platform_key': platformKey,
37738
+ 'username': username
37739
+ }
37740
+ });
37741
+ }
37742
+ /**
37743
+ * Create or update an external credential mapping.
37744
+ *
37745
+ * If a mapping doesn't exist for the credential + platform + provider combination,
37746
+ * it will be created. If it exists, it will be updated.
37747
+ *
37748
+ * Request Body:
37749
+ * {
37750
+ * "credential_id": "credential-entity-id", // Required
37751
+ * "provider_name": "accredible", // Required
37752
+ * "external_template_id": "123456", // Optional
37753
+ * "metadata": {} // Optional
37754
+ * }
37755
+ *
37756
+ * Returns:
37757
+ * - 201 Created: When creating a new mapping
37758
+ * - 200 OK: When updating an existing mapping
37759
+ * @returns ExternalCredentialMapping
37760
+ * @throws ApiError
37761
+ */
37762
+ static credentialsOrgsUsersExternalMappingCreate({
37763
+ platformKey,
37764
+ username,
37765
+ requestBody
37766
+ }) {
37767
+ return request(OpenAPI, {
37768
+ method: 'POST',
37769
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
37770
+ path: {
37771
+ 'platform_key': platformKey,
37772
+ 'username': username
37773
+ },
37774
+ body: requestBody,
37775
+ mediaType: 'application/json'
37776
+ });
37777
+ }
37778
+ /**
37779
+ * Delete an external credential mapping.
37780
+ *
37781
+ * Request Body:
37782
+ * {
37783
+ * "credential_id": "credential-entity-id", // Required
37784
+ * "provider_name": "accredible" // Required
37785
+ * }
37786
+ *
37787
+ * Returns:
37788
+ * A JSON response confirming deletion
37789
+ * @returns void
37790
+ * @throws ApiError
37791
+ */
37792
+ static credentialsOrgsUsersExternalMappingDestroy({
37793
+ platformKey,
37794
+ username
37795
+ }) {
37796
+ return request(OpenAPI, {
37797
+ method: 'DELETE',
37798
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
37799
+ path: {
37800
+ 'platform_key': platformKey,
37801
+ 'username': username
37802
+ }
37803
+ });
37804
+ }
37543
37805
  /**
37544
37806
  * API View for managing uploaded images for credentials.
37545
37807
  *
@@ -37598,15 +37860,15 @@
37598
37860
  * @throws ApiError
37599
37861
  */
37600
37862
  static credentialsOrgsUsersImagesRetrieve({
37601
- org,
37602
- userId
37863
+ platformKey,
37864
+ username
37603
37865
  }) {
37604
37866
  return request(OpenAPI, {
37605
37867
  method: 'GET',
37606
- url: '/api/credentials/orgs/{org}/users/{user_id}/images/',
37868
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
37607
37869
  path: {
37608
- 'org': org,
37609
- 'user_id': userId
37870
+ 'platform_key': platformKey,
37871
+ 'username': username
37610
37872
  }
37611
37873
  });
37612
37874
  }
@@ -37668,16 +37930,16 @@
37668
37930
  * @throws ApiError
37669
37931
  */
37670
37932
  static credentialsOrgsUsersImagesCreate({
37671
- org,
37672
- userId,
37933
+ platformKey,
37934
+ username,
37673
37935
  requestBody
37674
37936
  }) {
37675
37937
  return request(OpenAPI, {
37676
37938
  method: 'POST',
37677
- url: '/api/credentials/orgs/{org}/users/{user_id}/images/',
37939
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
37678
37940
  path: {
37679
- 'org': org,
37680
- 'user_id': userId
37941
+ 'platform_key': platformKey,
37942
+ 'username': username
37681
37943
  },
37682
37944
  body: requestBody,
37683
37945
  mediaType: 'application/json'
@@ -37749,16 +38011,16 @@
37749
38011
  * @throws ApiError
37750
38012
  */
37751
38013
  static credentialsOrgsUsersIssuersRetrieve({
37752
- org,
38014
+ platformKey,
37753
38015
  q,
37754
- userId
38016
+ username
37755
38017
  }) {
37756
38018
  return request(OpenAPI, {
37757
38019
  method: 'GET',
37758
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/',
38020
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
37759
38021
  path: {
37760
- 'org': org,
37761
- 'user_id': userId
38022
+ 'platform_key': platformKey,
38023
+ 'username': username
37762
38024
  },
37763
38025
  query: {
37764
38026
  'q': q
@@ -37831,17 +38093,17 @@
37831
38093
  * @throws ApiError
37832
38094
  */
37833
38095
  static credentialsOrgsUsersIssuersCreate({
37834
- org,
38096
+ platformKey,
37835
38097
  q,
37836
- userId,
38098
+ username,
37837
38099
  requestBody
37838
38100
  }) {
37839
38101
  return request(OpenAPI, {
37840
38102
  method: 'POST',
37841
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/',
38103
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
37842
38104
  path: {
37843
- 'org': org,
37844
- 'user_id': userId
38105
+ 'platform_key': platformKey,
38106
+ 'username': username
37845
38107
  },
37846
38108
  query: {
37847
38109
  'q': q
@@ -37921,16 +38183,16 @@
37921
38183
  */
37922
38184
  static credentialsOrgsUsersIssuersRetrieve2({
37923
38185
  entityId,
37924
- org,
37925
- userId
38186
+ platformKey,
38187
+ username
37926
38188
  }) {
37927
38189
  return request(OpenAPI, {
37928
38190
  method: 'GET',
37929
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/{entity_id}',
38191
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
37930
38192
  path: {
37931
38193
  'entity_id': entityId,
37932
- 'org': org,
37933
- 'user_id': userId
38194
+ 'platform_key': platformKey,
38195
+ 'username': username
37934
38196
  }
37935
38197
  });
37936
38198
  }
@@ -38005,17 +38267,17 @@
38005
38267
  */
38006
38268
  static credentialsOrgsUsersIssuersUpdate({
38007
38269
  entityId,
38008
- org,
38009
- userId,
38270
+ platformKey,
38271
+ username,
38010
38272
  requestBody
38011
38273
  }) {
38012
38274
  return request(OpenAPI, {
38013
38275
  method: 'PUT',
38014
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/{entity_id}',
38276
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
38015
38277
  path: {
38016
38278
  'entity_id': entityId,
38017
- 'org': org,
38018
- 'user_id': userId
38279
+ 'platform_key': platformKey,
38280
+ 'username': username
38019
38281
  },
38020
38282
  body: requestBody,
38021
38283
  mediaType: 'application/json'
@@ -38092,16 +38354,16 @@
38092
38354
  */
38093
38355
  static credentialsOrgsUsersIssuersDestroy({
38094
38356
  entityId,
38095
- org,
38096
- userId
38357
+ platformKey,
38358
+ username
38097
38359
  }) {
38098
38360
  return request(OpenAPI, {
38099
38361
  method: 'DELETE',
38100
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/{entity_id}',
38362
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
38101
38363
  path: {
38102
38364
  'entity_id': entityId,
38103
- 'org': org,
38104
- 'user_id': userId
38365
+ 'platform_key': platformKey,
38366
+ 'username': username
38105
38367
  }
38106
38368
  });
38107
38369
  }
@@ -38151,21 +38413,115 @@
38151
38413
  * @throws ApiError
38152
38414
  */
38153
38415
  static credentialsOrgsUsersIssuersAuthorityCreate({
38154
- org,
38155
- userId,
38416
+ platformKey,
38417
+ username,
38156
38418
  requestBody
38157
38419
  }) {
38158
38420
  return request(OpenAPI, {
38159
38421
  method: 'POST',
38160
- url: '/api/credentials/orgs/{org}/users/{user_id}/issuers/authority/',
38422
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/authority/',
38161
38423
  path: {
38162
- 'org': org,
38163
- 'user_id': userId
38424
+ 'platform_key': platformKey,
38425
+ 'username': username
38164
38426
  },
38165
38427
  body: requestBody,
38166
38428
  mediaType: 'application/json'
38167
38429
  });
38168
38430
  }
38431
+ /**
38432
+ * Retrieve provider configurations for the platform.
38433
+ *
38434
+ * Query Parameters:
38435
+ * provider_name (str, optional): Filter to a specific provider
38436
+ * page (int, optional): Page number
38437
+ * page_size (int, optional): Items per page
38438
+ *
38439
+ * Returns all configurations for the platform if the user is an admin.
38440
+ * @returns CredentialProviderConfig
38441
+ * @throws ApiError
38442
+ */
38443
+ static credentialsOrgsUsersProviderConfigRetrieve({
38444
+ platformKey,
38445
+ username
38446
+ }) {
38447
+ return request(OpenAPI, {
38448
+ method: 'GET',
38449
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
38450
+ path: {
38451
+ 'platform_key': platformKey,
38452
+ 'username': username
38453
+ }
38454
+ });
38455
+ }
38456
+ /**
38457
+ * Create or update a provider configuration.
38458
+ *
38459
+ * If a configuration doesn't exist for the platform and provider, it will be created.
38460
+ * If it exists, it will be updated.
38461
+ *
38462
+ * Request Body:
38463
+ * {
38464
+ * "provider_name": "accredible", // Required
38465
+ * "config": {...}, // Optional
38466
+ * "enabled": true // Optional
38467
+ * }
38468
+ *
38469
+ * Returns:
38470
+ * - 201 Created: When creating a new configuration
38471
+ * - 200 OK: When updating an existing configuration
38472
+ * @returns CredentialProviderConfig
38473
+ * @throws ApiError
38474
+ */
38475
+ static credentialsOrgsUsersProviderConfigCreate({
38476
+ platformKey,
38477
+ username,
38478
+ requestBody
38479
+ }) {
38480
+ return request(OpenAPI, {
38481
+ method: 'POST',
38482
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
38483
+ path: {
38484
+ 'platform_key': platformKey,
38485
+ 'username': username
38486
+ },
38487
+ body: requestBody,
38488
+ mediaType: 'application/json'
38489
+ });
38490
+ }
38491
+ /**
38492
+ * Deactivate a provider configuration (sets enabled=False).
38493
+ *
38494
+ * Request Body:
38495
+ * {
38496
+ * "provider_name": "accredible" // Required
38497
+ * }
38498
+ * @returns void
38499
+ * @throws ApiError
38500
+ */
38501
+ static credentialsOrgsUsersProviderConfigDestroy({
38502
+ platformKey,
38503
+ username
38504
+ }) {
38505
+ return request(OpenAPI, {
38506
+ method: 'DELETE',
38507
+ url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
38508
+ path: {
38509
+ 'platform_key': platformKey,
38510
+ 'username': username
38511
+ }
38512
+ });
38513
+ }
38514
+ /**
38515
+ * Get list of enabled credential providers with pagination.
38516
+ * @returns any No response body
38517
+ * @throws ApiError
38518
+ */
38519
+ static credentialsProvidersRetrieve() {
38520
+ return request(OpenAPI, {
38521
+ method: 'GET',
38522
+ url: '/api/credentials/providers/'
38523
+ });
38524
+ }
38169
38525
  /**
38170
38526
  * Public endpoint to retrieve a specific credential assertion by its entity ID.
38171
38527
  *