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