@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.
- package/dist/index.cjs.js +502 -146
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +502 -146
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +502 -146
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +7 -0
- package/dist/types/models/Artifact.d.ts +8 -0
- package/dist/types/models/ArtifactVersion.d.ts +36 -0
- package/dist/types/models/ArtifactVersionList.d.ts +35 -0
- package/dist/types/models/CredentialProviderConfig.d.ts +29 -0
- package/dist/types/models/ExternalCredentialMapping.d.ts +39 -0
- package/dist/types/models/PaginatedArtifactVersionListList.d.ts +7 -0
- package/dist/types/models/PatchedArtifact.d.ts +8 -0
- package/dist/types/models/SetCurrentVersionRequest.d.ts +3 -0
- package/dist/types/models/TenantSetting.d.ts +5 -0
- package/dist/types/services/AiAccountService.d.ts +30 -1
- package/dist/types/services/AiMentorService.d.ts +74 -0
- package/dist/types/services/CredentialsService.d.ts +236 -69
- package/package.json +1 -1
- package/sdk_schema.yml +932 -91
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +7 -0
- package/src/models/Artifact.ts +8 -0
- package/src/models/ArtifactVersion.ts +41 -0
- package/src/models/ArtifactVersionList.ts +40 -0
- package/src/models/CredentialProviderConfig.ts +34 -0
- package/src/models/ExternalCredentialMapping.ts +44 -0
- package/src/models/PaginatedArtifactVersionListList.ts +12 -0
- package/src/models/PatchedArtifact.ts +8 -0
- package/src/models/SetCurrentVersionRequest.ts +8 -0
- package/src/models/TenantSetting.ts +10 -0
- package/src/services/AiAccountService.ts +58 -0
- package/src/services/AiMentorService.ts +184 -5
- package/src/services/CredentialsService.ts +961 -756
package/dist/index.esm.js
CHANGED
|
@@ -108,7 +108,7 @@ class CancelablePromise {
|
|
|
108
108
|
|
|
109
109
|
const OpenAPI = {
|
|
110
110
|
BASE: 'https://base.manager.iblai.app',
|
|
111
|
-
VERSION: '4.
|
|
111
|
+
VERSION: '4.92.1-ai-plus',
|
|
112
112
|
WITH_CREDENTIALS: false,
|
|
113
113
|
CREDENTIALS: 'include',
|
|
114
114
|
TOKEN: undefined,
|
|
@@ -2013,6 +2013,56 @@ class AiAccountService {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
|
+
/**
|
|
2017
|
+
* Get a platform's settings
|
|
2018
|
+
*
|
|
2019
|
+
* Example response:
|
|
2020
|
+
* ```
|
|
2021
|
+
* {"teams_bot_mentor": "f2116cf2-95c7-4c1f-b19e-666ad529439f"}
|
|
2022
|
+
*
|
|
2023
|
+
* ```
|
|
2024
|
+
* @returns TenantSetting
|
|
2025
|
+
* @throws ApiError
|
|
2026
|
+
*/
|
|
2027
|
+
static aiAccountOrgsUsersTenantSettingsRetrieve({
|
|
2028
|
+
org,
|
|
2029
|
+
userId
|
|
2030
|
+
}) {
|
|
2031
|
+
return request(OpenAPI, {
|
|
2032
|
+
method: 'GET',
|
|
2033
|
+
url: '/api/ai-account/orgs/{org}/users/{user_id}/tenant-settings/',
|
|
2034
|
+
path: {
|
|
2035
|
+
'org': org,
|
|
2036
|
+
'user_id': userId
|
|
2037
|
+
}
|
|
2038
|
+
});
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* Example Request:
|
|
2042
|
+
*
|
|
2043
|
+
* ```
|
|
2044
|
+
* {"teams_bot_mentor": "f2116cf2-95c7-4c1f-b19e-666ad529439f"}
|
|
2045
|
+
* ```
|
|
2046
|
+
* The value here is the mentor's unique id
|
|
2047
|
+
* @returns TenantSetting
|
|
2048
|
+
* @throws ApiError
|
|
2049
|
+
*/
|
|
2050
|
+
static aiAccountOrgsUsersTenantSettingsCreate({
|
|
2051
|
+
org,
|
|
2052
|
+
userId,
|
|
2053
|
+
requestBody
|
|
2054
|
+
}) {
|
|
2055
|
+
return request(OpenAPI, {
|
|
2056
|
+
method: 'POST',
|
|
2057
|
+
url: '/api/ai-account/orgs/{org}/users/{user_id}/tenant-settings/',
|
|
2058
|
+
path: {
|
|
2059
|
+
'org': org,
|
|
2060
|
+
'user_id': userId
|
|
2061
|
+
},
|
|
2062
|
+
body: requestBody,
|
|
2063
|
+
mediaType: 'application/json'
|
|
2064
|
+
});
|
|
2065
|
+
}
|
|
2016
2066
|
}
|
|
2017
2067
|
|
|
2018
2068
|
class AiAnalyticsService {
|
|
@@ -14197,6 +14247,32 @@ class AiMentorService {
|
|
|
14197
14247
|
* @returns Artifact
|
|
14198
14248
|
* @throws ApiError
|
|
14199
14249
|
*/
|
|
14250
|
+
static aiMentorOrgsUsersArtifactsCreate({
|
|
14251
|
+
org,
|
|
14252
|
+
userId,
|
|
14253
|
+
requestBody
|
|
14254
|
+
}) {
|
|
14255
|
+
return request(OpenAPI, {
|
|
14256
|
+
method: 'POST',
|
|
14257
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/',
|
|
14258
|
+
path: {
|
|
14259
|
+
'org': org,
|
|
14260
|
+
'user_id': userId
|
|
14261
|
+
},
|
|
14262
|
+
body: requestBody,
|
|
14263
|
+
mediaType: 'application/json',
|
|
14264
|
+
errors: {
|
|
14265
|
+
401: `Authentication required`,
|
|
14266
|
+
403: `Permission denied`,
|
|
14267
|
+
404: `Artifact not found`
|
|
14268
|
+
}
|
|
14269
|
+
});
|
|
14270
|
+
}
|
|
14271
|
+
/**
|
|
14272
|
+
* Retrieve a specific artifact.
|
|
14273
|
+
* @returns Artifact
|
|
14274
|
+
* @throws ApiError
|
|
14275
|
+
*/
|
|
14200
14276
|
static aiMentorOrgsUsersArtifactsRetrieve({
|
|
14201
14277
|
id,
|
|
14202
14278
|
org,
|
|
@@ -14209,11 +14285,6 @@ class AiMentorService {
|
|
|
14209
14285
|
'id': id,
|
|
14210
14286
|
'org': org,
|
|
14211
14287
|
'user_id': userId
|
|
14212
|
-
},
|
|
14213
|
-
errors: {
|
|
14214
|
-
401: `Authentication required`,
|
|
14215
|
-
403: `Permission denied`,
|
|
14216
|
-
404: `Artifact not found`
|
|
14217
14288
|
}
|
|
14218
14289
|
});
|
|
14219
14290
|
}
|
|
@@ -14303,6 +14374,108 @@ class AiMentorService {
|
|
|
14303
14374
|
}
|
|
14304
14375
|
});
|
|
14305
14376
|
}
|
|
14377
|
+
/**
|
|
14378
|
+
* List artifact versions
|
|
14379
|
+
* Retrieve all versions for a specific artifact.
|
|
14380
|
+
* @returns PaginatedArtifactVersionListList
|
|
14381
|
+
* @throws ApiError
|
|
14382
|
+
*/
|
|
14383
|
+
static aiMentorOrgsUsersArtifactsVersionsList({
|
|
14384
|
+
id,
|
|
14385
|
+
org,
|
|
14386
|
+
userId,
|
|
14387
|
+
chatMessageId,
|
|
14388
|
+
fileExtension,
|
|
14389
|
+
llmName,
|
|
14390
|
+
llmProvider,
|
|
14391
|
+
mentorId,
|
|
14392
|
+
ordering,
|
|
14393
|
+
page,
|
|
14394
|
+
pageSize,
|
|
14395
|
+
search,
|
|
14396
|
+
sessionId,
|
|
14397
|
+
username
|
|
14398
|
+
}) {
|
|
14399
|
+
return request(OpenAPI, {
|
|
14400
|
+
method: 'GET',
|
|
14401
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/',
|
|
14402
|
+
path: {
|
|
14403
|
+
'id': id,
|
|
14404
|
+
'org': org,
|
|
14405
|
+
'user_id': userId
|
|
14406
|
+
},
|
|
14407
|
+
query: {
|
|
14408
|
+
'chat_message_id': chatMessageId,
|
|
14409
|
+
'file_extension': fileExtension,
|
|
14410
|
+
'llm_name': llmName,
|
|
14411
|
+
'llm_provider': llmProvider,
|
|
14412
|
+
'mentor_id': mentorId,
|
|
14413
|
+
'ordering': ordering,
|
|
14414
|
+
'page': page,
|
|
14415
|
+
'page_size': pageSize,
|
|
14416
|
+
'search': search,
|
|
14417
|
+
'session_id': sessionId,
|
|
14418
|
+
'username': username
|
|
14419
|
+
},
|
|
14420
|
+
errors: {
|
|
14421
|
+
404: `Artifact not found`
|
|
14422
|
+
}
|
|
14423
|
+
});
|
|
14424
|
+
}
|
|
14425
|
+
/**
|
|
14426
|
+
* Get specific artifact version
|
|
14427
|
+
* Retrieve a specific version of an artifact by version ID.
|
|
14428
|
+
* @returns ArtifactVersion
|
|
14429
|
+
* @throws ApiError
|
|
14430
|
+
*/
|
|
14431
|
+
static aiMentorOrgsUsersArtifactsVersionsRetrieve({
|
|
14432
|
+
id,
|
|
14433
|
+
org,
|
|
14434
|
+
userId,
|
|
14435
|
+
versionId
|
|
14436
|
+
}) {
|
|
14437
|
+
return request(OpenAPI, {
|
|
14438
|
+
method: 'GET',
|
|
14439
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/{version_id}/',
|
|
14440
|
+
path: {
|
|
14441
|
+
'id': id,
|
|
14442
|
+
'org': org,
|
|
14443
|
+
'user_id': userId,
|
|
14444
|
+
'version_id': versionId
|
|
14445
|
+
},
|
|
14446
|
+
errors: {
|
|
14447
|
+
404: `Version not found`
|
|
14448
|
+
}
|
|
14449
|
+
});
|
|
14450
|
+
}
|
|
14451
|
+
/**
|
|
14452
|
+
* Set artifact version as current
|
|
14453
|
+
* Mark a specific version as the current/active version for an artifact.
|
|
14454
|
+
* @returns ArtifactVersion
|
|
14455
|
+
* @throws ApiError
|
|
14456
|
+
*/
|
|
14457
|
+
static aiMentorOrgsUsersArtifactsVersionsSetCurrentCreate({
|
|
14458
|
+
id,
|
|
14459
|
+
org,
|
|
14460
|
+
userId,
|
|
14461
|
+
requestBody
|
|
14462
|
+
}) {
|
|
14463
|
+
return request(OpenAPI, {
|
|
14464
|
+
method: 'POST',
|
|
14465
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/artifacts/{id}/versions/set-current/',
|
|
14466
|
+
path: {
|
|
14467
|
+
'id': id,
|
|
14468
|
+
'org': org,
|
|
14469
|
+
'user_id': userId
|
|
14470
|
+
},
|
|
14471
|
+
body: requestBody,
|
|
14472
|
+
mediaType: 'application/json',
|
|
14473
|
+
errors: {
|
|
14474
|
+
400: `Invalid request`,
|
|
14475
|
+
404: `Version not found`
|
|
14476
|
+
}
|
|
14477
|
+
});
|
|
14478
|
+
}
|
|
14306
14479
|
/**
|
|
14307
14480
|
* Retrieve assumed knowledge levels.
|
|
14308
14481
|
*
|
|
@@ -36675,15 +36848,15 @@ class CredentialsService {
|
|
|
36675
36848
|
* @throws ApiError
|
|
36676
36849
|
*/
|
|
36677
36850
|
static credentialsOrgsUsersRetrieve({
|
|
36678
|
-
|
|
36679
|
-
|
|
36851
|
+
platformKey,
|
|
36852
|
+
username
|
|
36680
36853
|
}) {
|
|
36681
36854
|
return request(OpenAPI, {
|
|
36682
36855
|
method: 'GET',
|
|
36683
|
-
url: '/api/credentials/orgs/{
|
|
36856
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/',
|
|
36684
36857
|
path: {
|
|
36685
|
-
'
|
|
36686
|
-
'
|
|
36858
|
+
'platform_key': platformKey,
|
|
36859
|
+
'username': username
|
|
36687
36860
|
}
|
|
36688
36861
|
});
|
|
36689
36862
|
}
|
|
@@ -36768,16 +36941,16 @@ class CredentialsService {
|
|
|
36768
36941
|
* @throws ApiError
|
|
36769
36942
|
*/
|
|
36770
36943
|
static credentialsOrgsUsersCreate({
|
|
36771
|
-
|
|
36772
|
-
|
|
36944
|
+
platformKey,
|
|
36945
|
+
username,
|
|
36773
36946
|
requestBody
|
|
36774
36947
|
}) {
|
|
36775
36948
|
return request(OpenAPI, {
|
|
36776
36949
|
method: 'POST',
|
|
36777
|
-
url: '/api/credentials/orgs/{
|
|
36950
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/',
|
|
36778
36951
|
path: {
|
|
36779
|
-
'
|
|
36780
|
-
'
|
|
36952
|
+
'platform_key': platformKey,
|
|
36953
|
+
'username': username
|
|
36781
36954
|
},
|
|
36782
36955
|
body: requestBody,
|
|
36783
36956
|
mediaType: 'application/json'
|
|
@@ -36843,16 +37016,16 @@ class CredentialsService {
|
|
|
36843
37016
|
*/
|
|
36844
37017
|
static credentialsOrgsUsersRetrieve2({
|
|
36845
37018
|
entityId,
|
|
36846
|
-
|
|
36847
|
-
|
|
37019
|
+
platformKey,
|
|
37020
|
+
username
|
|
36848
37021
|
}) {
|
|
36849
37022
|
return request(OpenAPI, {
|
|
36850
37023
|
method: 'GET',
|
|
36851
|
-
url: '/api/credentials/orgs/{
|
|
37024
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
|
|
36852
37025
|
path: {
|
|
36853
37026
|
'entity_id': entityId,
|
|
36854
|
-
'
|
|
36855
|
-
'
|
|
37027
|
+
'platform_key': platformKey,
|
|
37028
|
+
'username': username
|
|
36856
37029
|
}
|
|
36857
37030
|
});
|
|
36858
37031
|
}
|
|
@@ -36916,17 +37089,17 @@ class CredentialsService {
|
|
|
36916
37089
|
*/
|
|
36917
37090
|
static credentialsOrgsUsersUpdate({
|
|
36918
37091
|
entityId,
|
|
36919
|
-
|
|
36920
|
-
|
|
37092
|
+
platformKey,
|
|
37093
|
+
username,
|
|
36921
37094
|
requestBody
|
|
36922
37095
|
}) {
|
|
36923
37096
|
return request(OpenAPI, {
|
|
36924
37097
|
method: 'PUT',
|
|
36925
|
-
url: '/api/credentials/orgs/{
|
|
37098
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
|
|
36926
37099
|
path: {
|
|
36927
37100
|
'entity_id': entityId,
|
|
36928
|
-
'
|
|
36929
|
-
'
|
|
37101
|
+
'platform_key': platformKey,
|
|
37102
|
+
'username': username
|
|
36930
37103
|
},
|
|
36931
37104
|
body: requestBody,
|
|
36932
37105
|
mediaType: 'application/json'
|
|
@@ -36992,16 +37165,16 @@ class CredentialsService {
|
|
|
36992
37165
|
*/
|
|
36993
37166
|
static credentialsOrgsUsersDestroy({
|
|
36994
37167
|
entityId,
|
|
36995
|
-
|
|
36996
|
-
|
|
37168
|
+
platformKey,
|
|
37169
|
+
username
|
|
36997
37170
|
}) {
|
|
36998
37171
|
return request(OpenAPI, {
|
|
36999
37172
|
method: 'DELETE',
|
|
37000
|
-
url: '/api/credentials/orgs/{
|
|
37173
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
|
|
37001
37174
|
path: {
|
|
37002
37175
|
'entity_id': entityId,
|
|
37003
|
-
'
|
|
37004
|
-
'
|
|
37176
|
+
'platform_key': platformKey,
|
|
37177
|
+
'username': username
|
|
37005
37178
|
}
|
|
37006
37179
|
});
|
|
37007
37180
|
}
|
|
@@ -37039,16 +37212,16 @@ class CredentialsService {
|
|
|
37039
37212
|
*/
|
|
37040
37213
|
static credentialsOrgsUsersAssertionsRetrieve3({
|
|
37041
37214
|
entityId,
|
|
37042
|
-
|
|
37043
|
-
|
|
37215
|
+
platformKey,
|
|
37216
|
+
username
|
|
37044
37217
|
}) {
|
|
37045
37218
|
return request(OpenAPI, {
|
|
37046
37219
|
method: 'GET',
|
|
37047
|
-
url: '/api/credentials/orgs/{
|
|
37220
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
|
|
37048
37221
|
path: {
|
|
37049
37222
|
'entity_id': entityId,
|
|
37050
|
-
'
|
|
37051
|
-
'
|
|
37223
|
+
'platform_key': platformKey,
|
|
37224
|
+
'username': username
|
|
37052
37225
|
}
|
|
37053
37226
|
});
|
|
37054
37227
|
}
|
|
@@ -37086,17 +37259,17 @@ class CredentialsService {
|
|
|
37086
37259
|
*/
|
|
37087
37260
|
static credentialsOrgsUsersAssertionsCreate({
|
|
37088
37261
|
entityId,
|
|
37089
|
-
|
|
37090
|
-
|
|
37262
|
+
platformKey,
|
|
37263
|
+
username,
|
|
37091
37264
|
requestBody
|
|
37092
37265
|
}) {
|
|
37093
37266
|
return request(OpenAPI, {
|
|
37094
37267
|
method: 'POST',
|
|
37095
|
-
url: '/api/credentials/orgs/{
|
|
37268
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
|
|
37096
37269
|
path: {
|
|
37097
37270
|
'entity_id': entityId,
|
|
37098
|
-
'
|
|
37099
|
-
'
|
|
37271
|
+
'platform_key': platformKey,
|
|
37272
|
+
'username': username
|
|
37100
37273
|
},
|
|
37101
37274
|
body: requestBody,
|
|
37102
37275
|
mediaType: 'application/json'
|
|
@@ -37135,17 +37308,17 @@ class CredentialsService {
|
|
|
37135
37308
|
*/
|
|
37136
37309
|
static credentialsOrgsUsersAssertionsBulkCreate({
|
|
37137
37310
|
entityId,
|
|
37138
|
-
|
|
37139
|
-
|
|
37311
|
+
platformKey,
|
|
37312
|
+
username,
|
|
37140
37313
|
requestBody
|
|
37141
37314
|
}) {
|
|
37142
37315
|
return request(OpenAPI, {
|
|
37143
37316
|
method: 'POST',
|
|
37144
|
-
url: '/api/credentials/orgs/{
|
|
37317
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/bulk/',
|
|
37145
37318
|
path: {
|
|
37146
37319
|
'entity_id': entityId,
|
|
37147
|
-
'
|
|
37148
|
-
'
|
|
37320
|
+
'platform_key': platformKey,
|
|
37321
|
+
'username': username
|
|
37149
37322
|
},
|
|
37150
37323
|
body: requestBody,
|
|
37151
37324
|
mediaType: 'application/json'
|
|
@@ -37179,8 +37352,8 @@ class CredentialsService {
|
|
|
37179
37352
|
* @throws ApiError
|
|
37180
37353
|
*/
|
|
37181
37354
|
static credentialsOrgsUsersAssertionsRetrieve({
|
|
37182
|
-
|
|
37183
|
-
|
|
37355
|
+
platformKey,
|
|
37356
|
+
username,
|
|
37184
37357
|
course,
|
|
37185
37358
|
excludeMainTenantAssertions,
|
|
37186
37359
|
includeExpired,
|
|
@@ -37190,10 +37363,10 @@ class CredentialsService {
|
|
|
37190
37363
|
}) {
|
|
37191
37364
|
return request(OpenAPI, {
|
|
37192
37365
|
method: 'GET',
|
|
37193
|
-
url: '/api/credentials/orgs/{
|
|
37366
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/',
|
|
37194
37367
|
path: {
|
|
37195
|
-
'
|
|
37196
|
-
'
|
|
37368
|
+
'platform_key': platformKey,
|
|
37369
|
+
'username': username
|
|
37197
37370
|
},
|
|
37198
37371
|
query: {
|
|
37199
37372
|
'course': course,
|
|
@@ -37211,8 +37384,8 @@ class CredentialsService {
|
|
|
37211
37384
|
* @throws ApiError
|
|
37212
37385
|
*/
|
|
37213
37386
|
static credentialsOrgsUsersAssertionsOverTimeRetrieve({
|
|
37214
|
-
|
|
37215
|
-
|
|
37387
|
+
platformKey,
|
|
37388
|
+
username,
|
|
37216
37389
|
departmentId,
|
|
37217
37390
|
endDate,
|
|
37218
37391
|
format = 'json',
|
|
@@ -37221,10 +37394,10 @@ class CredentialsService {
|
|
|
37221
37394
|
}) {
|
|
37222
37395
|
return request(OpenAPI, {
|
|
37223
37396
|
method: 'GET',
|
|
37224
|
-
url: '/api/credentials/orgs/{
|
|
37397
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions-over-time/',
|
|
37225
37398
|
path: {
|
|
37226
|
-
'
|
|
37227
|
-
'
|
|
37399
|
+
'platform_key': platformKey,
|
|
37400
|
+
'username': username
|
|
37228
37401
|
},
|
|
37229
37402
|
query: {
|
|
37230
37403
|
'department_id': departmentId,
|
|
@@ -37270,16 +37443,16 @@ class CredentialsService {
|
|
|
37270
37443
|
*/
|
|
37271
37444
|
static credentialsOrgsUsersAssertionsRetrieve2({
|
|
37272
37445
|
entityId,
|
|
37273
|
-
|
|
37274
|
-
|
|
37446
|
+
platformKey,
|
|
37447
|
+
username
|
|
37275
37448
|
}) {
|
|
37276
37449
|
return request(OpenAPI, {
|
|
37277
37450
|
method: 'GET',
|
|
37278
|
-
url: '/api/credentials/orgs/{
|
|
37451
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
|
|
37279
37452
|
path: {
|
|
37280
37453
|
'entity_id': entityId,
|
|
37281
|
-
'
|
|
37282
|
-
'
|
|
37454
|
+
'platform_key': platformKey,
|
|
37455
|
+
'username': username
|
|
37283
37456
|
}
|
|
37284
37457
|
});
|
|
37285
37458
|
}
|
|
@@ -37318,17 +37491,17 @@ class CredentialsService {
|
|
|
37318
37491
|
*/
|
|
37319
37492
|
static credentialsOrgsUsersAssertionsUpdate({
|
|
37320
37493
|
entityId,
|
|
37321
|
-
|
|
37322
|
-
|
|
37494
|
+
platformKey,
|
|
37495
|
+
username,
|
|
37323
37496
|
requestBody
|
|
37324
37497
|
}) {
|
|
37325
37498
|
return request(OpenAPI, {
|
|
37326
37499
|
method: 'PUT',
|
|
37327
|
-
url: '/api/credentials/orgs/{
|
|
37500
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
|
|
37328
37501
|
path: {
|
|
37329
37502
|
'entity_id': entityId,
|
|
37330
|
-
'
|
|
37331
|
-
'
|
|
37503
|
+
'platform_key': platformKey,
|
|
37504
|
+
'username': username
|
|
37332
37505
|
},
|
|
37333
37506
|
body: requestBody,
|
|
37334
37507
|
mediaType: 'application/json'
|
|
@@ -37342,16 +37515,16 @@ class CredentialsService {
|
|
|
37342
37515
|
*/
|
|
37343
37516
|
static credentialsOrgsUsersAssignmentsDestroy({
|
|
37344
37517
|
assignmentId,
|
|
37345
|
-
|
|
37346
|
-
|
|
37518
|
+
platformKey,
|
|
37519
|
+
username
|
|
37347
37520
|
}) {
|
|
37348
37521
|
return request(OpenAPI, {
|
|
37349
37522
|
method: 'DELETE',
|
|
37350
|
-
url: '/api/credentials/orgs/{
|
|
37523
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/{assignment_id}',
|
|
37351
37524
|
path: {
|
|
37352
37525
|
'assignment_id': assignmentId,
|
|
37353
|
-
'
|
|
37354
|
-
'
|
|
37526
|
+
'platform_key': platformKey,
|
|
37527
|
+
'username': username
|
|
37355
37528
|
}
|
|
37356
37529
|
});
|
|
37357
37530
|
}
|
|
@@ -37361,15 +37534,15 @@ class CredentialsService {
|
|
|
37361
37534
|
* @throws ApiError
|
|
37362
37535
|
*/
|
|
37363
37536
|
static credentialsOrgsUsersAssignmentsGroupsRetrieve({
|
|
37364
|
-
|
|
37365
|
-
|
|
37537
|
+
platformKey,
|
|
37538
|
+
username
|
|
37366
37539
|
}) {
|
|
37367
37540
|
return request(OpenAPI, {
|
|
37368
37541
|
method: 'GET',
|
|
37369
|
-
url: '/api/credentials/orgs/{
|
|
37542
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
|
|
37370
37543
|
path: {
|
|
37371
|
-
'
|
|
37372
|
-
'
|
|
37544
|
+
'platform_key': platformKey,
|
|
37545
|
+
'username': username
|
|
37373
37546
|
}
|
|
37374
37547
|
});
|
|
37375
37548
|
}
|
|
@@ -37379,15 +37552,15 @@ class CredentialsService {
|
|
|
37379
37552
|
* @throws ApiError
|
|
37380
37553
|
*/
|
|
37381
37554
|
static credentialsOrgsUsersAssignmentsGroupsCreate({
|
|
37382
|
-
|
|
37383
|
-
|
|
37555
|
+
platformKey,
|
|
37556
|
+
username
|
|
37384
37557
|
}) {
|
|
37385
37558
|
return request(OpenAPI, {
|
|
37386
37559
|
method: 'POST',
|
|
37387
|
-
url: '/api/credentials/orgs/{
|
|
37560
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
|
|
37388
37561
|
path: {
|
|
37389
|
-
'
|
|
37390
|
-
'
|
|
37562
|
+
'platform_key': platformKey,
|
|
37563
|
+
'username': username
|
|
37391
37564
|
}
|
|
37392
37565
|
});
|
|
37393
37566
|
}
|
|
@@ -37400,15 +37573,15 @@ class CredentialsService {
|
|
|
37400
37573
|
* @throws ApiError
|
|
37401
37574
|
*/
|
|
37402
37575
|
static credentialsOrgsUsersAssignmentsUsersRetrieve({
|
|
37403
|
-
|
|
37404
|
-
|
|
37576
|
+
platformKey,
|
|
37577
|
+
username
|
|
37405
37578
|
}) {
|
|
37406
37579
|
return request(OpenAPI, {
|
|
37407
37580
|
method: 'GET',
|
|
37408
|
-
url: '/api/credentials/orgs/{
|
|
37581
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
|
|
37409
37582
|
path: {
|
|
37410
|
-
'
|
|
37411
|
-
'
|
|
37583
|
+
'platform_key': platformKey,
|
|
37584
|
+
'username': username
|
|
37412
37585
|
}
|
|
37413
37586
|
});
|
|
37414
37587
|
}
|
|
@@ -37418,15 +37591,15 @@ class CredentialsService {
|
|
|
37418
37591
|
* @throws ApiError
|
|
37419
37592
|
*/
|
|
37420
37593
|
static credentialsOrgsUsersAssignmentsUsersCreate({
|
|
37421
|
-
|
|
37422
|
-
|
|
37594
|
+
platformKey,
|
|
37595
|
+
username
|
|
37423
37596
|
}) {
|
|
37424
37597
|
return request(OpenAPI, {
|
|
37425
37598
|
method: 'POST',
|
|
37426
|
-
url: '/api/credentials/orgs/{
|
|
37599
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
|
|
37427
37600
|
path: {
|
|
37428
|
-
'
|
|
37429
|
-
'
|
|
37601
|
+
'platform_key': platformKey,
|
|
37602
|
+
'username': username
|
|
37430
37603
|
}
|
|
37431
37604
|
});
|
|
37432
37605
|
}
|
|
@@ -37436,8 +37609,8 @@ class CredentialsService {
|
|
|
37436
37609
|
* @throws ApiError
|
|
37437
37610
|
*/
|
|
37438
37611
|
static credentialsOrgsUsersCourseAssertionsOverTimeRetrieve({
|
|
37439
|
-
|
|
37440
|
-
|
|
37612
|
+
platformKey,
|
|
37613
|
+
username,
|
|
37441
37614
|
departmentId,
|
|
37442
37615
|
endDate,
|
|
37443
37616
|
format = 'json',
|
|
@@ -37446,10 +37619,10 @@ class CredentialsService {
|
|
|
37446
37619
|
}) {
|
|
37447
37620
|
return request(OpenAPI, {
|
|
37448
37621
|
method: 'GET',
|
|
37449
|
-
url: '/api/credentials/orgs/{
|
|
37622
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/course-assertions-over-time/',
|
|
37450
37623
|
path: {
|
|
37451
|
-
'
|
|
37452
|
-
'
|
|
37624
|
+
'platform_key': platformKey,
|
|
37625
|
+
'username': username
|
|
37453
37626
|
},
|
|
37454
37627
|
query: {
|
|
37455
37628
|
'department_id': departmentId,
|
|
@@ -37486,17 +37659,17 @@ class CredentialsService {
|
|
|
37486
37659
|
* @throws ApiError
|
|
37487
37660
|
*/
|
|
37488
37661
|
static credentialsOrgsUsersCourseCredentialsList({
|
|
37489
|
-
|
|
37490
|
-
|
|
37662
|
+
platformKey,
|
|
37663
|
+
username,
|
|
37491
37664
|
page,
|
|
37492
37665
|
pageSize
|
|
37493
37666
|
}) {
|
|
37494
37667
|
return request(OpenAPI, {
|
|
37495
37668
|
method: 'GET',
|
|
37496
|
-
url: '/api/credentials/orgs/{
|
|
37669
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/course-credentials/',
|
|
37497
37670
|
path: {
|
|
37498
|
-
'
|
|
37499
|
-
'
|
|
37671
|
+
'platform_key': platformKey,
|
|
37672
|
+
'username': username
|
|
37500
37673
|
},
|
|
37501
37674
|
query: {
|
|
37502
37675
|
'page': page,
|
|
@@ -37510,8 +37683,8 @@ class CredentialsService {
|
|
|
37510
37683
|
* @throws ApiError
|
|
37511
37684
|
*/
|
|
37512
37685
|
static credentialsOrgsUsersCredentialsOverTimeRetrieve({
|
|
37513
|
-
|
|
37514
|
-
|
|
37686
|
+
platformKey,
|
|
37687
|
+
username,
|
|
37515
37688
|
departmentId,
|
|
37516
37689
|
endDate,
|
|
37517
37690
|
format = 'json',
|
|
@@ -37520,10 +37693,10 @@ class CredentialsService {
|
|
|
37520
37693
|
}) {
|
|
37521
37694
|
return request(OpenAPI, {
|
|
37522
37695
|
method: 'GET',
|
|
37523
|
-
url: '/api/credentials/orgs/{
|
|
37696
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/credentials-over-time/',
|
|
37524
37697
|
path: {
|
|
37525
|
-
'
|
|
37526
|
-
'
|
|
37698
|
+
'platform_key': platformKey,
|
|
37699
|
+
'username': username
|
|
37527
37700
|
},
|
|
37528
37701
|
query: {
|
|
37529
37702
|
'department_id': departmentId,
|
|
@@ -37534,6 +37707,95 @@ class CredentialsService {
|
|
|
37534
37707
|
}
|
|
37535
37708
|
});
|
|
37536
37709
|
}
|
|
37710
|
+
/**
|
|
37711
|
+
* Retrieve external credential mappings for the platform.
|
|
37712
|
+
*
|
|
37713
|
+
* Query Parameters:
|
|
37714
|
+
* credential_id (str, optional): Filter by credential entity_id
|
|
37715
|
+
* provider_name (str, optional): Filter by provider name
|
|
37716
|
+
* page (int, optional): Page number
|
|
37717
|
+
* page_size (int, optional): Items per page
|
|
37718
|
+
*
|
|
37719
|
+
* Returns all mappings for the platform if the user is an admin.
|
|
37720
|
+
* @returns ExternalCredentialMapping
|
|
37721
|
+
* @throws ApiError
|
|
37722
|
+
*/
|
|
37723
|
+
static credentialsOrgsUsersExternalMappingRetrieve({
|
|
37724
|
+
platformKey,
|
|
37725
|
+
username
|
|
37726
|
+
}) {
|
|
37727
|
+
return request(OpenAPI, {
|
|
37728
|
+
method: 'GET',
|
|
37729
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
|
|
37730
|
+
path: {
|
|
37731
|
+
'platform_key': platformKey,
|
|
37732
|
+
'username': username
|
|
37733
|
+
}
|
|
37734
|
+
});
|
|
37735
|
+
}
|
|
37736
|
+
/**
|
|
37737
|
+
* Create or update an external credential mapping.
|
|
37738
|
+
*
|
|
37739
|
+
* If a mapping doesn't exist for the credential + platform + provider combination,
|
|
37740
|
+
* it will be created. If it exists, it will be updated.
|
|
37741
|
+
*
|
|
37742
|
+
* Request Body:
|
|
37743
|
+
* {
|
|
37744
|
+
* "credential_id": "credential-entity-id", // Required
|
|
37745
|
+
* "provider_name": "accredible", // Required
|
|
37746
|
+
* "external_template_id": "123456", // Optional
|
|
37747
|
+
* "metadata": {} // Optional
|
|
37748
|
+
* }
|
|
37749
|
+
*
|
|
37750
|
+
* Returns:
|
|
37751
|
+
* - 201 Created: When creating a new mapping
|
|
37752
|
+
* - 200 OK: When updating an existing mapping
|
|
37753
|
+
* @returns ExternalCredentialMapping
|
|
37754
|
+
* @throws ApiError
|
|
37755
|
+
*/
|
|
37756
|
+
static credentialsOrgsUsersExternalMappingCreate({
|
|
37757
|
+
platformKey,
|
|
37758
|
+
username,
|
|
37759
|
+
requestBody
|
|
37760
|
+
}) {
|
|
37761
|
+
return request(OpenAPI, {
|
|
37762
|
+
method: 'POST',
|
|
37763
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
|
|
37764
|
+
path: {
|
|
37765
|
+
'platform_key': platformKey,
|
|
37766
|
+
'username': username
|
|
37767
|
+
},
|
|
37768
|
+
body: requestBody,
|
|
37769
|
+
mediaType: 'application/json'
|
|
37770
|
+
});
|
|
37771
|
+
}
|
|
37772
|
+
/**
|
|
37773
|
+
* Delete an external credential mapping.
|
|
37774
|
+
*
|
|
37775
|
+
* Request Body:
|
|
37776
|
+
* {
|
|
37777
|
+
* "credential_id": "credential-entity-id", // Required
|
|
37778
|
+
* "provider_name": "accredible" // Required
|
|
37779
|
+
* }
|
|
37780
|
+
*
|
|
37781
|
+
* Returns:
|
|
37782
|
+
* A JSON response confirming deletion
|
|
37783
|
+
* @returns void
|
|
37784
|
+
* @throws ApiError
|
|
37785
|
+
*/
|
|
37786
|
+
static credentialsOrgsUsersExternalMappingDestroy({
|
|
37787
|
+
platformKey,
|
|
37788
|
+
username
|
|
37789
|
+
}) {
|
|
37790
|
+
return request(OpenAPI, {
|
|
37791
|
+
method: 'DELETE',
|
|
37792
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
|
|
37793
|
+
path: {
|
|
37794
|
+
'platform_key': platformKey,
|
|
37795
|
+
'username': username
|
|
37796
|
+
}
|
|
37797
|
+
});
|
|
37798
|
+
}
|
|
37537
37799
|
/**
|
|
37538
37800
|
* API View for managing uploaded images for credentials.
|
|
37539
37801
|
*
|
|
@@ -37592,15 +37854,15 @@ class CredentialsService {
|
|
|
37592
37854
|
* @throws ApiError
|
|
37593
37855
|
*/
|
|
37594
37856
|
static credentialsOrgsUsersImagesRetrieve({
|
|
37595
|
-
|
|
37596
|
-
|
|
37857
|
+
platformKey,
|
|
37858
|
+
username
|
|
37597
37859
|
}) {
|
|
37598
37860
|
return request(OpenAPI, {
|
|
37599
37861
|
method: 'GET',
|
|
37600
|
-
url: '/api/credentials/orgs/{
|
|
37862
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
|
|
37601
37863
|
path: {
|
|
37602
|
-
'
|
|
37603
|
-
'
|
|
37864
|
+
'platform_key': platformKey,
|
|
37865
|
+
'username': username
|
|
37604
37866
|
}
|
|
37605
37867
|
});
|
|
37606
37868
|
}
|
|
@@ -37662,16 +37924,16 @@ class CredentialsService {
|
|
|
37662
37924
|
* @throws ApiError
|
|
37663
37925
|
*/
|
|
37664
37926
|
static credentialsOrgsUsersImagesCreate({
|
|
37665
|
-
|
|
37666
|
-
|
|
37927
|
+
platformKey,
|
|
37928
|
+
username,
|
|
37667
37929
|
requestBody
|
|
37668
37930
|
}) {
|
|
37669
37931
|
return request(OpenAPI, {
|
|
37670
37932
|
method: 'POST',
|
|
37671
|
-
url: '/api/credentials/orgs/{
|
|
37933
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
|
|
37672
37934
|
path: {
|
|
37673
|
-
'
|
|
37674
|
-
'
|
|
37935
|
+
'platform_key': platformKey,
|
|
37936
|
+
'username': username
|
|
37675
37937
|
},
|
|
37676
37938
|
body: requestBody,
|
|
37677
37939
|
mediaType: 'application/json'
|
|
@@ -37743,16 +38005,16 @@ class CredentialsService {
|
|
|
37743
38005
|
* @throws ApiError
|
|
37744
38006
|
*/
|
|
37745
38007
|
static credentialsOrgsUsersIssuersRetrieve({
|
|
37746
|
-
|
|
38008
|
+
platformKey,
|
|
37747
38009
|
q,
|
|
37748
|
-
|
|
38010
|
+
username
|
|
37749
38011
|
}) {
|
|
37750
38012
|
return request(OpenAPI, {
|
|
37751
38013
|
method: 'GET',
|
|
37752
|
-
url: '/api/credentials/orgs/{
|
|
38014
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
|
|
37753
38015
|
path: {
|
|
37754
|
-
'
|
|
37755
|
-
'
|
|
38016
|
+
'platform_key': platformKey,
|
|
38017
|
+
'username': username
|
|
37756
38018
|
},
|
|
37757
38019
|
query: {
|
|
37758
38020
|
'q': q
|
|
@@ -37825,17 +38087,17 @@ class CredentialsService {
|
|
|
37825
38087
|
* @throws ApiError
|
|
37826
38088
|
*/
|
|
37827
38089
|
static credentialsOrgsUsersIssuersCreate({
|
|
37828
|
-
|
|
38090
|
+
platformKey,
|
|
37829
38091
|
q,
|
|
37830
|
-
|
|
38092
|
+
username,
|
|
37831
38093
|
requestBody
|
|
37832
38094
|
}) {
|
|
37833
38095
|
return request(OpenAPI, {
|
|
37834
38096
|
method: 'POST',
|
|
37835
|
-
url: '/api/credentials/orgs/{
|
|
38097
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
|
|
37836
38098
|
path: {
|
|
37837
|
-
'
|
|
37838
|
-
'
|
|
38099
|
+
'platform_key': platformKey,
|
|
38100
|
+
'username': username
|
|
37839
38101
|
},
|
|
37840
38102
|
query: {
|
|
37841
38103
|
'q': q
|
|
@@ -37915,16 +38177,16 @@ class CredentialsService {
|
|
|
37915
38177
|
*/
|
|
37916
38178
|
static credentialsOrgsUsersIssuersRetrieve2({
|
|
37917
38179
|
entityId,
|
|
37918
|
-
|
|
37919
|
-
|
|
38180
|
+
platformKey,
|
|
38181
|
+
username
|
|
37920
38182
|
}) {
|
|
37921
38183
|
return request(OpenAPI, {
|
|
37922
38184
|
method: 'GET',
|
|
37923
|
-
url: '/api/credentials/orgs/{
|
|
38185
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
|
|
37924
38186
|
path: {
|
|
37925
38187
|
'entity_id': entityId,
|
|
37926
|
-
'
|
|
37927
|
-
'
|
|
38188
|
+
'platform_key': platformKey,
|
|
38189
|
+
'username': username
|
|
37928
38190
|
}
|
|
37929
38191
|
});
|
|
37930
38192
|
}
|
|
@@ -37999,17 +38261,17 @@ class CredentialsService {
|
|
|
37999
38261
|
*/
|
|
38000
38262
|
static credentialsOrgsUsersIssuersUpdate({
|
|
38001
38263
|
entityId,
|
|
38002
|
-
|
|
38003
|
-
|
|
38264
|
+
platformKey,
|
|
38265
|
+
username,
|
|
38004
38266
|
requestBody
|
|
38005
38267
|
}) {
|
|
38006
38268
|
return request(OpenAPI, {
|
|
38007
38269
|
method: 'PUT',
|
|
38008
|
-
url: '/api/credentials/orgs/{
|
|
38270
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
|
|
38009
38271
|
path: {
|
|
38010
38272
|
'entity_id': entityId,
|
|
38011
|
-
'
|
|
38012
|
-
'
|
|
38273
|
+
'platform_key': platformKey,
|
|
38274
|
+
'username': username
|
|
38013
38275
|
},
|
|
38014
38276
|
body: requestBody,
|
|
38015
38277
|
mediaType: 'application/json'
|
|
@@ -38086,16 +38348,16 @@ class CredentialsService {
|
|
|
38086
38348
|
*/
|
|
38087
38349
|
static credentialsOrgsUsersIssuersDestroy({
|
|
38088
38350
|
entityId,
|
|
38089
|
-
|
|
38090
|
-
|
|
38351
|
+
platformKey,
|
|
38352
|
+
username
|
|
38091
38353
|
}) {
|
|
38092
38354
|
return request(OpenAPI, {
|
|
38093
38355
|
method: 'DELETE',
|
|
38094
|
-
url: '/api/credentials/orgs/{
|
|
38356
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
|
|
38095
38357
|
path: {
|
|
38096
38358
|
'entity_id': entityId,
|
|
38097
|
-
'
|
|
38098
|
-
'
|
|
38359
|
+
'platform_key': platformKey,
|
|
38360
|
+
'username': username
|
|
38099
38361
|
}
|
|
38100
38362
|
});
|
|
38101
38363
|
}
|
|
@@ -38145,21 +38407,115 @@ class CredentialsService {
|
|
|
38145
38407
|
* @throws ApiError
|
|
38146
38408
|
*/
|
|
38147
38409
|
static credentialsOrgsUsersIssuersAuthorityCreate({
|
|
38148
|
-
|
|
38149
|
-
|
|
38410
|
+
platformKey,
|
|
38411
|
+
username,
|
|
38150
38412
|
requestBody
|
|
38151
38413
|
}) {
|
|
38152
38414
|
return request(OpenAPI, {
|
|
38153
38415
|
method: 'POST',
|
|
38154
|
-
url: '/api/credentials/orgs/{
|
|
38416
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/authority/',
|
|
38155
38417
|
path: {
|
|
38156
|
-
'
|
|
38157
|
-
'
|
|
38418
|
+
'platform_key': platformKey,
|
|
38419
|
+
'username': username
|
|
38158
38420
|
},
|
|
38159
38421
|
body: requestBody,
|
|
38160
38422
|
mediaType: 'application/json'
|
|
38161
38423
|
});
|
|
38162
38424
|
}
|
|
38425
|
+
/**
|
|
38426
|
+
* Retrieve provider configurations for the platform.
|
|
38427
|
+
*
|
|
38428
|
+
* Query Parameters:
|
|
38429
|
+
* provider_name (str, optional): Filter to a specific provider
|
|
38430
|
+
* page (int, optional): Page number
|
|
38431
|
+
* page_size (int, optional): Items per page
|
|
38432
|
+
*
|
|
38433
|
+
* Returns all configurations for the platform if the user is an admin.
|
|
38434
|
+
* @returns CredentialProviderConfig
|
|
38435
|
+
* @throws ApiError
|
|
38436
|
+
*/
|
|
38437
|
+
static credentialsOrgsUsersProviderConfigRetrieve({
|
|
38438
|
+
platformKey,
|
|
38439
|
+
username
|
|
38440
|
+
}) {
|
|
38441
|
+
return request(OpenAPI, {
|
|
38442
|
+
method: 'GET',
|
|
38443
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
|
|
38444
|
+
path: {
|
|
38445
|
+
'platform_key': platformKey,
|
|
38446
|
+
'username': username
|
|
38447
|
+
}
|
|
38448
|
+
});
|
|
38449
|
+
}
|
|
38450
|
+
/**
|
|
38451
|
+
* Create or update a provider configuration.
|
|
38452
|
+
*
|
|
38453
|
+
* If a configuration doesn't exist for the platform and provider, it will be created.
|
|
38454
|
+
* If it exists, it will be updated.
|
|
38455
|
+
*
|
|
38456
|
+
* Request Body:
|
|
38457
|
+
* {
|
|
38458
|
+
* "provider_name": "accredible", // Required
|
|
38459
|
+
* "config": {...}, // Optional
|
|
38460
|
+
* "enabled": true // Optional
|
|
38461
|
+
* }
|
|
38462
|
+
*
|
|
38463
|
+
* Returns:
|
|
38464
|
+
* - 201 Created: When creating a new configuration
|
|
38465
|
+
* - 200 OK: When updating an existing configuration
|
|
38466
|
+
* @returns CredentialProviderConfig
|
|
38467
|
+
* @throws ApiError
|
|
38468
|
+
*/
|
|
38469
|
+
static credentialsOrgsUsersProviderConfigCreate({
|
|
38470
|
+
platformKey,
|
|
38471
|
+
username,
|
|
38472
|
+
requestBody
|
|
38473
|
+
}) {
|
|
38474
|
+
return request(OpenAPI, {
|
|
38475
|
+
method: 'POST',
|
|
38476
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
|
|
38477
|
+
path: {
|
|
38478
|
+
'platform_key': platformKey,
|
|
38479
|
+
'username': username
|
|
38480
|
+
},
|
|
38481
|
+
body: requestBody,
|
|
38482
|
+
mediaType: 'application/json'
|
|
38483
|
+
});
|
|
38484
|
+
}
|
|
38485
|
+
/**
|
|
38486
|
+
* Deactivate a provider configuration (sets enabled=False).
|
|
38487
|
+
*
|
|
38488
|
+
* Request Body:
|
|
38489
|
+
* {
|
|
38490
|
+
* "provider_name": "accredible" // Required
|
|
38491
|
+
* }
|
|
38492
|
+
* @returns void
|
|
38493
|
+
* @throws ApiError
|
|
38494
|
+
*/
|
|
38495
|
+
static credentialsOrgsUsersProviderConfigDestroy({
|
|
38496
|
+
platformKey,
|
|
38497
|
+
username
|
|
38498
|
+
}) {
|
|
38499
|
+
return request(OpenAPI, {
|
|
38500
|
+
method: 'DELETE',
|
|
38501
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
|
|
38502
|
+
path: {
|
|
38503
|
+
'platform_key': platformKey,
|
|
38504
|
+
'username': username
|
|
38505
|
+
}
|
|
38506
|
+
});
|
|
38507
|
+
}
|
|
38508
|
+
/**
|
|
38509
|
+
* Get list of enabled credential providers with pagination.
|
|
38510
|
+
* @returns any No response body
|
|
38511
|
+
* @throws ApiError
|
|
38512
|
+
*/
|
|
38513
|
+
static credentialsProvidersRetrieve() {
|
|
38514
|
+
return request(OpenAPI, {
|
|
38515
|
+
method: 'GET',
|
|
38516
|
+
url: '/api/credentials/providers/'
|
|
38517
|
+
});
|
|
38518
|
+
}
|
|
38163
38519
|
/**
|
|
38164
38520
|
* Public endpoint to retrieve a specific credential assertion by its entity ID.
|
|
38165
38521
|
*
|