@iblai/iblai-api 4.92.0-ai → 4.92.1-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 +324 -141
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +324 -141
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +324 -141
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/models/CredentialProviderConfig.d.ts +29 -0
- package/dist/types/models/ExternalCredentialMapping.d.ts +39 -0
- package/dist/types/services/CredentialsService.d.ts +236 -69
- package/package.json +1 -1
- package/sdk_schema.yml +455 -82
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +2 -0
- package/src/models/CredentialProviderConfig.ts +34 -0
- package/src/models/ExternalCredentialMapping.ts +44 -0
- 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.92.
|
|
113
|
+
VERSION: '4.92.1-ai-plus',
|
|
114
114
|
WITH_CREDENTIALS: false,
|
|
115
115
|
CREDENTIALS: 'include',
|
|
116
116
|
TOKEN: undefined,
|
|
@@ -36783,15 +36783,15 @@ class CredentialsService {
|
|
|
36783
36783
|
* @throws ApiError
|
|
36784
36784
|
*/
|
|
36785
36785
|
static credentialsOrgsUsersRetrieve({
|
|
36786
|
-
|
|
36787
|
-
|
|
36786
|
+
platformKey,
|
|
36787
|
+
username
|
|
36788
36788
|
}) {
|
|
36789
36789
|
return request(OpenAPI, {
|
|
36790
36790
|
method: 'GET',
|
|
36791
|
-
url: '/api/credentials/orgs/{
|
|
36791
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/',
|
|
36792
36792
|
path: {
|
|
36793
|
-
'
|
|
36794
|
-
'
|
|
36793
|
+
'platform_key': platformKey,
|
|
36794
|
+
'username': username
|
|
36795
36795
|
}
|
|
36796
36796
|
});
|
|
36797
36797
|
}
|
|
@@ -36876,16 +36876,16 @@ class CredentialsService {
|
|
|
36876
36876
|
* @throws ApiError
|
|
36877
36877
|
*/
|
|
36878
36878
|
static credentialsOrgsUsersCreate({
|
|
36879
|
-
|
|
36880
|
-
|
|
36879
|
+
platformKey,
|
|
36880
|
+
username,
|
|
36881
36881
|
requestBody
|
|
36882
36882
|
}) {
|
|
36883
36883
|
return request(OpenAPI, {
|
|
36884
36884
|
method: 'POST',
|
|
36885
|
-
url: '/api/credentials/orgs/{
|
|
36885
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/',
|
|
36886
36886
|
path: {
|
|
36887
|
-
'
|
|
36888
|
-
'
|
|
36887
|
+
'platform_key': platformKey,
|
|
36888
|
+
'username': username
|
|
36889
36889
|
},
|
|
36890
36890
|
body: requestBody,
|
|
36891
36891
|
mediaType: 'application/json'
|
|
@@ -36951,16 +36951,16 @@ class CredentialsService {
|
|
|
36951
36951
|
*/
|
|
36952
36952
|
static credentialsOrgsUsersRetrieve2({
|
|
36953
36953
|
entityId,
|
|
36954
|
-
|
|
36955
|
-
|
|
36954
|
+
platformKey,
|
|
36955
|
+
username
|
|
36956
36956
|
}) {
|
|
36957
36957
|
return request(OpenAPI, {
|
|
36958
36958
|
method: 'GET',
|
|
36959
|
-
url: '/api/credentials/orgs/{
|
|
36959
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
|
|
36960
36960
|
path: {
|
|
36961
36961
|
'entity_id': entityId,
|
|
36962
|
-
'
|
|
36963
|
-
'
|
|
36962
|
+
'platform_key': platformKey,
|
|
36963
|
+
'username': username
|
|
36964
36964
|
}
|
|
36965
36965
|
});
|
|
36966
36966
|
}
|
|
@@ -37024,17 +37024,17 @@ class CredentialsService {
|
|
|
37024
37024
|
*/
|
|
37025
37025
|
static credentialsOrgsUsersUpdate({
|
|
37026
37026
|
entityId,
|
|
37027
|
-
|
|
37028
|
-
|
|
37027
|
+
platformKey,
|
|
37028
|
+
username,
|
|
37029
37029
|
requestBody
|
|
37030
37030
|
}) {
|
|
37031
37031
|
return request(OpenAPI, {
|
|
37032
37032
|
method: 'PUT',
|
|
37033
|
-
url: '/api/credentials/orgs/{
|
|
37033
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
|
|
37034
37034
|
path: {
|
|
37035
37035
|
'entity_id': entityId,
|
|
37036
|
-
'
|
|
37037
|
-
'
|
|
37036
|
+
'platform_key': platformKey,
|
|
37037
|
+
'username': username
|
|
37038
37038
|
},
|
|
37039
37039
|
body: requestBody,
|
|
37040
37040
|
mediaType: 'application/json'
|
|
@@ -37100,16 +37100,16 @@ class CredentialsService {
|
|
|
37100
37100
|
*/
|
|
37101
37101
|
static credentialsOrgsUsersDestroy({
|
|
37102
37102
|
entityId,
|
|
37103
|
-
|
|
37104
|
-
|
|
37103
|
+
platformKey,
|
|
37104
|
+
username
|
|
37105
37105
|
}) {
|
|
37106
37106
|
return request(OpenAPI, {
|
|
37107
37107
|
method: 'DELETE',
|
|
37108
|
-
url: '/api/credentials/orgs/{
|
|
37108
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
|
|
37109
37109
|
path: {
|
|
37110
37110
|
'entity_id': entityId,
|
|
37111
|
-
'
|
|
37112
|
-
'
|
|
37111
|
+
'platform_key': platformKey,
|
|
37112
|
+
'username': username
|
|
37113
37113
|
}
|
|
37114
37114
|
});
|
|
37115
37115
|
}
|
|
@@ -37147,16 +37147,16 @@ class CredentialsService {
|
|
|
37147
37147
|
*/
|
|
37148
37148
|
static credentialsOrgsUsersAssertionsRetrieve3({
|
|
37149
37149
|
entityId,
|
|
37150
|
-
|
|
37151
|
-
|
|
37150
|
+
platformKey,
|
|
37151
|
+
username
|
|
37152
37152
|
}) {
|
|
37153
37153
|
return request(OpenAPI, {
|
|
37154
37154
|
method: 'GET',
|
|
37155
|
-
url: '/api/credentials/orgs/{
|
|
37155
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
|
|
37156
37156
|
path: {
|
|
37157
37157
|
'entity_id': entityId,
|
|
37158
|
-
'
|
|
37159
|
-
'
|
|
37158
|
+
'platform_key': platformKey,
|
|
37159
|
+
'username': username
|
|
37160
37160
|
}
|
|
37161
37161
|
});
|
|
37162
37162
|
}
|
|
@@ -37194,17 +37194,17 @@ class CredentialsService {
|
|
|
37194
37194
|
*/
|
|
37195
37195
|
static credentialsOrgsUsersAssertionsCreate({
|
|
37196
37196
|
entityId,
|
|
37197
|
-
|
|
37198
|
-
|
|
37197
|
+
platformKey,
|
|
37198
|
+
username,
|
|
37199
37199
|
requestBody
|
|
37200
37200
|
}) {
|
|
37201
37201
|
return request(OpenAPI, {
|
|
37202
37202
|
method: 'POST',
|
|
37203
|
-
url: '/api/credentials/orgs/{
|
|
37203
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
|
|
37204
37204
|
path: {
|
|
37205
37205
|
'entity_id': entityId,
|
|
37206
|
-
'
|
|
37207
|
-
'
|
|
37206
|
+
'platform_key': platformKey,
|
|
37207
|
+
'username': username
|
|
37208
37208
|
},
|
|
37209
37209
|
body: requestBody,
|
|
37210
37210
|
mediaType: 'application/json'
|
|
@@ -37243,17 +37243,17 @@ class CredentialsService {
|
|
|
37243
37243
|
*/
|
|
37244
37244
|
static credentialsOrgsUsersAssertionsBulkCreate({
|
|
37245
37245
|
entityId,
|
|
37246
|
-
|
|
37247
|
-
|
|
37246
|
+
platformKey,
|
|
37247
|
+
username,
|
|
37248
37248
|
requestBody
|
|
37249
37249
|
}) {
|
|
37250
37250
|
return request(OpenAPI, {
|
|
37251
37251
|
method: 'POST',
|
|
37252
|
-
url: '/api/credentials/orgs/{
|
|
37252
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/bulk/',
|
|
37253
37253
|
path: {
|
|
37254
37254
|
'entity_id': entityId,
|
|
37255
|
-
'
|
|
37256
|
-
'
|
|
37255
|
+
'platform_key': platformKey,
|
|
37256
|
+
'username': username
|
|
37257
37257
|
},
|
|
37258
37258
|
body: requestBody,
|
|
37259
37259
|
mediaType: 'application/json'
|
|
@@ -37287,8 +37287,8 @@ class CredentialsService {
|
|
|
37287
37287
|
* @throws ApiError
|
|
37288
37288
|
*/
|
|
37289
37289
|
static credentialsOrgsUsersAssertionsRetrieve({
|
|
37290
|
-
|
|
37291
|
-
|
|
37290
|
+
platformKey,
|
|
37291
|
+
username,
|
|
37292
37292
|
course,
|
|
37293
37293
|
excludeMainTenantAssertions,
|
|
37294
37294
|
includeExpired,
|
|
@@ -37298,10 +37298,10 @@ class CredentialsService {
|
|
|
37298
37298
|
}) {
|
|
37299
37299
|
return request(OpenAPI, {
|
|
37300
37300
|
method: 'GET',
|
|
37301
|
-
url: '/api/credentials/orgs/{
|
|
37301
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/',
|
|
37302
37302
|
path: {
|
|
37303
|
-
'
|
|
37304
|
-
'
|
|
37303
|
+
'platform_key': platformKey,
|
|
37304
|
+
'username': username
|
|
37305
37305
|
},
|
|
37306
37306
|
query: {
|
|
37307
37307
|
'course': course,
|
|
@@ -37319,8 +37319,8 @@ class CredentialsService {
|
|
|
37319
37319
|
* @throws ApiError
|
|
37320
37320
|
*/
|
|
37321
37321
|
static credentialsOrgsUsersAssertionsOverTimeRetrieve({
|
|
37322
|
-
|
|
37323
|
-
|
|
37322
|
+
platformKey,
|
|
37323
|
+
username,
|
|
37324
37324
|
departmentId,
|
|
37325
37325
|
endDate,
|
|
37326
37326
|
format = 'json',
|
|
@@ -37329,10 +37329,10 @@ class CredentialsService {
|
|
|
37329
37329
|
}) {
|
|
37330
37330
|
return request(OpenAPI, {
|
|
37331
37331
|
method: 'GET',
|
|
37332
|
-
url: '/api/credentials/orgs/{
|
|
37332
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions-over-time/',
|
|
37333
37333
|
path: {
|
|
37334
|
-
'
|
|
37335
|
-
'
|
|
37334
|
+
'platform_key': platformKey,
|
|
37335
|
+
'username': username
|
|
37336
37336
|
},
|
|
37337
37337
|
query: {
|
|
37338
37338
|
'department_id': departmentId,
|
|
@@ -37378,16 +37378,16 @@ class CredentialsService {
|
|
|
37378
37378
|
*/
|
|
37379
37379
|
static credentialsOrgsUsersAssertionsRetrieve2({
|
|
37380
37380
|
entityId,
|
|
37381
|
-
|
|
37382
|
-
|
|
37381
|
+
platformKey,
|
|
37382
|
+
username
|
|
37383
37383
|
}) {
|
|
37384
37384
|
return request(OpenAPI, {
|
|
37385
37385
|
method: 'GET',
|
|
37386
|
-
url: '/api/credentials/orgs/{
|
|
37386
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
|
|
37387
37387
|
path: {
|
|
37388
37388
|
'entity_id': entityId,
|
|
37389
|
-
'
|
|
37390
|
-
'
|
|
37389
|
+
'platform_key': platformKey,
|
|
37390
|
+
'username': username
|
|
37391
37391
|
}
|
|
37392
37392
|
});
|
|
37393
37393
|
}
|
|
@@ -37426,17 +37426,17 @@ class CredentialsService {
|
|
|
37426
37426
|
*/
|
|
37427
37427
|
static credentialsOrgsUsersAssertionsUpdate({
|
|
37428
37428
|
entityId,
|
|
37429
|
-
|
|
37430
|
-
|
|
37429
|
+
platformKey,
|
|
37430
|
+
username,
|
|
37431
37431
|
requestBody
|
|
37432
37432
|
}) {
|
|
37433
37433
|
return request(OpenAPI, {
|
|
37434
37434
|
method: 'PUT',
|
|
37435
|
-
url: '/api/credentials/orgs/{
|
|
37435
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
|
|
37436
37436
|
path: {
|
|
37437
37437
|
'entity_id': entityId,
|
|
37438
|
-
'
|
|
37439
|
-
'
|
|
37438
|
+
'platform_key': platformKey,
|
|
37439
|
+
'username': username
|
|
37440
37440
|
},
|
|
37441
37441
|
body: requestBody,
|
|
37442
37442
|
mediaType: 'application/json'
|
|
@@ -37450,16 +37450,16 @@ class CredentialsService {
|
|
|
37450
37450
|
*/
|
|
37451
37451
|
static credentialsOrgsUsersAssignmentsDestroy({
|
|
37452
37452
|
assignmentId,
|
|
37453
|
-
|
|
37454
|
-
|
|
37453
|
+
platformKey,
|
|
37454
|
+
username
|
|
37455
37455
|
}) {
|
|
37456
37456
|
return request(OpenAPI, {
|
|
37457
37457
|
method: 'DELETE',
|
|
37458
|
-
url: '/api/credentials/orgs/{
|
|
37458
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/{assignment_id}',
|
|
37459
37459
|
path: {
|
|
37460
37460
|
'assignment_id': assignmentId,
|
|
37461
|
-
'
|
|
37462
|
-
'
|
|
37461
|
+
'platform_key': platformKey,
|
|
37462
|
+
'username': username
|
|
37463
37463
|
}
|
|
37464
37464
|
});
|
|
37465
37465
|
}
|
|
@@ -37469,15 +37469,15 @@ class CredentialsService {
|
|
|
37469
37469
|
* @throws ApiError
|
|
37470
37470
|
*/
|
|
37471
37471
|
static credentialsOrgsUsersAssignmentsGroupsRetrieve({
|
|
37472
|
-
|
|
37473
|
-
|
|
37472
|
+
platformKey,
|
|
37473
|
+
username
|
|
37474
37474
|
}) {
|
|
37475
37475
|
return request(OpenAPI, {
|
|
37476
37476
|
method: 'GET',
|
|
37477
|
-
url: '/api/credentials/orgs/{
|
|
37477
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
|
|
37478
37478
|
path: {
|
|
37479
|
-
'
|
|
37480
|
-
'
|
|
37479
|
+
'platform_key': platformKey,
|
|
37480
|
+
'username': username
|
|
37481
37481
|
}
|
|
37482
37482
|
});
|
|
37483
37483
|
}
|
|
@@ -37487,15 +37487,15 @@ class CredentialsService {
|
|
|
37487
37487
|
* @throws ApiError
|
|
37488
37488
|
*/
|
|
37489
37489
|
static credentialsOrgsUsersAssignmentsGroupsCreate({
|
|
37490
|
-
|
|
37491
|
-
|
|
37490
|
+
platformKey,
|
|
37491
|
+
username
|
|
37492
37492
|
}) {
|
|
37493
37493
|
return request(OpenAPI, {
|
|
37494
37494
|
method: 'POST',
|
|
37495
|
-
url: '/api/credentials/orgs/{
|
|
37495
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
|
|
37496
37496
|
path: {
|
|
37497
|
-
'
|
|
37498
|
-
'
|
|
37497
|
+
'platform_key': platformKey,
|
|
37498
|
+
'username': username
|
|
37499
37499
|
}
|
|
37500
37500
|
});
|
|
37501
37501
|
}
|
|
@@ -37508,15 +37508,15 @@ class CredentialsService {
|
|
|
37508
37508
|
* @throws ApiError
|
|
37509
37509
|
*/
|
|
37510
37510
|
static credentialsOrgsUsersAssignmentsUsersRetrieve({
|
|
37511
|
-
|
|
37512
|
-
|
|
37511
|
+
platformKey,
|
|
37512
|
+
username
|
|
37513
37513
|
}) {
|
|
37514
37514
|
return request(OpenAPI, {
|
|
37515
37515
|
method: 'GET',
|
|
37516
|
-
url: '/api/credentials/orgs/{
|
|
37516
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
|
|
37517
37517
|
path: {
|
|
37518
|
-
'
|
|
37519
|
-
'
|
|
37518
|
+
'platform_key': platformKey,
|
|
37519
|
+
'username': username
|
|
37520
37520
|
}
|
|
37521
37521
|
});
|
|
37522
37522
|
}
|
|
@@ -37526,15 +37526,15 @@ class CredentialsService {
|
|
|
37526
37526
|
* @throws ApiError
|
|
37527
37527
|
*/
|
|
37528
37528
|
static credentialsOrgsUsersAssignmentsUsersCreate({
|
|
37529
|
-
|
|
37530
|
-
|
|
37529
|
+
platformKey,
|
|
37530
|
+
username
|
|
37531
37531
|
}) {
|
|
37532
37532
|
return request(OpenAPI, {
|
|
37533
37533
|
method: 'POST',
|
|
37534
|
-
url: '/api/credentials/orgs/{
|
|
37534
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
|
|
37535
37535
|
path: {
|
|
37536
|
-
'
|
|
37537
|
-
'
|
|
37536
|
+
'platform_key': platformKey,
|
|
37537
|
+
'username': username
|
|
37538
37538
|
}
|
|
37539
37539
|
});
|
|
37540
37540
|
}
|
|
@@ -37544,8 +37544,8 @@ class CredentialsService {
|
|
|
37544
37544
|
* @throws ApiError
|
|
37545
37545
|
*/
|
|
37546
37546
|
static credentialsOrgsUsersCourseAssertionsOverTimeRetrieve({
|
|
37547
|
-
|
|
37548
|
-
|
|
37547
|
+
platformKey,
|
|
37548
|
+
username,
|
|
37549
37549
|
departmentId,
|
|
37550
37550
|
endDate,
|
|
37551
37551
|
format = 'json',
|
|
@@ -37554,10 +37554,10 @@ class CredentialsService {
|
|
|
37554
37554
|
}) {
|
|
37555
37555
|
return request(OpenAPI, {
|
|
37556
37556
|
method: 'GET',
|
|
37557
|
-
url: '/api/credentials/orgs/{
|
|
37557
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/course-assertions-over-time/',
|
|
37558
37558
|
path: {
|
|
37559
|
-
'
|
|
37560
|
-
'
|
|
37559
|
+
'platform_key': platformKey,
|
|
37560
|
+
'username': username
|
|
37561
37561
|
},
|
|
37562
37562
|
query: {
|
|
37563
37563
|
'department_id': departmentId,
|
|
@@ -37594,17 +37594,17 @@ class CredentialsService {
|
|
|
37594
37594
|
* @throws ApiError
|
|
37595
37595
|
*/
|
|
37596
37596
|
static credentialsOrgsUsersCourseCredentialsList({
|
|
37597
|
-
|
|
37598
|
-
|
|
37597
|
+
platformKey,
|
|
37598
|
+
username,
|
|
37599
37599
|
page,
|
|
37600
37600
|
pageSize
|
|
37601
37601
|
}) {
|
|
37602
37602
|
return request(OpenAPI, {
|
|
37603
37603
|
method: 'GET',
|
|
37604
|
-
url: '/api/credentials/orgs/{
|
|
37604
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/course-credentials/',
|
|
37605
37605
|
path: {
|
|
37606
|
-
'
|
|
37607
|
-
'
|
|
37606
|
+
'platform_key': platformKey,
|
|
37607
|
+
'username': username
|
|
37608
37608
|
},
|
|
37609
37609
|
query: {
|
|
37610
37610
|
'page': page,
|
|
@@ -37618,8 +37618,8 @@ class CredentialsService {
|
|
|
37618
37618
|
* @throws ApiError
|
|
37619
37619
|
*/
|
|
37620
37620
|
static credentialsOrgsUsersCredentialsOverTimeRetrieve({
|
|
37621
|
-
|
|
37622
|
-
|
|
37621
|
+
platformKey,
|
|
37622
|
+
username,
|
|
37623
37623
|
departmentId,
|
|
37624
37624
|
endDate,
|
|
37625
37625
|
format = 'json',
|
|
@@ -37628,10 +37628,10 @@ class CredentialsService {
|
|
|
37628
37628
|
}) {
|
|
37629
37629
|
return request(OpenAPI, {
|
|
37630
37630
|
method: 'GET',
|
|
37631
|
-
url: '/api/credentials/orgs/{
|
|
37631
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/credentials-over-time/',
|
|
37632
37632
|
path: {
|
|
37633
|
-
'
|
|
37634
|
-
'
|
|
37633
|
+
'platform_key': platformKey,
|
|
37634
|
+
'username': username
|
|
37635
37635
|
},
|
|
37636
37636
|
query: {
|
|
37637
37637
|
'department_id': departmentId,
|
|
@@ -37642,6 +37642,95 @@ class CredentialsService {
|
|
|
37642
37642
|
}
|
|
37643
37643
|
});
|
|
37644
37644
|
}
|
|
37645
|
+
/**
|
|
37646
|
+
* Retrieve external credential mappings for the platform.
|
|
37647
|
+
*
|
|
37648
|
+
* Query Parameters:
|
|
37649
|
+
* credential_id (str, optional): Filter by credential entity_id
|
|
37650
|
+
* provider_name (str, optional): Filter by provider name
|
|
37651
|
+
* page (int, optional): Page number
|
|
37652
|
+
* page_size (int, optional): Items per page
|
|
37653
|
+
*
|
|
37654
|
+
* Returns all mappings for the platform if the user is an admin.
|
|
37655
|
+
* @returns ExternalCredentialMapping
|
|
37656
|
+
* @throws ApiError
|
|
37657
|
+
*/
|
|
37658
|
+
static credentialsOrgsUsersExternalMappingRetrieve({
|
|
37659
|
+
platformKey,
|
|
37660
|
+
username
|
|
37661
|
+
}) {
|
|
37662
|
+
return request(OpenAPI, {
|
|
37663
|
+
method: 'GET',
|
|
37664
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
|
|
37665
|
+
path: {
|
|
37666
|
+
'platform_key': platformKey,
|
|
37667
|
+
'username': username
|
|
37668
|
+
}
|
|
37669
|
+
});
|
|
37670
|
+
}
|
|
37671
|
+
/**
|
|
37672
|
+
* Create or update an external credential mapping.
|
|
37673
|
+
*
|
|
37674
|
+
* If a mapping doesn't exist for the credential + platform + provider combination,
|
|
37675
|
+
* it will be created. If it exists, it will be updated.
|
|
37676
|
+
*
|
|
37677
|
+
* Request Body:
|
|
37678
|
+
* {
|
|
37679
|
+
* "credential_id": "credential-entity-id", // Required
|
|
37680
|
+
* "provider_name": "accredible", // Required
|
|
37681
|
+
* "external_template_id": "123456", // Optional
|
|
37682
|
+
* "metadata": {} // Optional
|
|
37683
|
+
* }
|
|
37684
|
+
*
|
|
37685
|
+
* Returns:
|
|
37686
|
+
* - 201 Created: When creating a new mapping
|
|
37687
|
+
* - 200 OK: When updating an existing mapping
|
|
37688
|
+
* @returns ExternalCredentialMapping
|
|
37689
|
+
* @throws ApiError
|
|
37690
|
+
*/
|
|
37691
|
+
static credentialsOrgsUsersExternalMappingCreate({
|
|
37692
|
+
platformKey,
|
|
37693
|
+
username,
|
|
37694
|
+
requestBody
|
|
37695
|
+
}) {
|
|
37696
|
+
return request(OpenAPI, {
|
|
37697
|
+
method: 'POST',
|
|
37698
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
|
|
37699
|
+
path: {
|
|
37700
|
+
'platform_key': platformKey,
|
|
37701
|
+
'username': username
|
|
37702
|
+
},
|
|
37703
|
+
body: requestBody,
|
|
37704
|
+
mediaType: 'application/json'
|
|
37705
|
+
});
|
|
37706
|
+
}
|
|
37707
|
+
/**
|
|
37708
|
+
* Delete an external credential mapping.
|
|
37709
|
+
*
|
|
37710
|
+
* Request Body:
|
|
37711
|
+
* {
|
|
37712
|
+
* "credential_id": "credential-entity-id", // Required
|
|
37713
|
+
* "provider_name": "accredible" // Required
|
|
37714
|
+
* }
|
|
37715
|
+
*
|
|
37716
|
+
* Returns:
|
|
37717
|
+
* A JSON response confirming deletion
|
|
37718
|
+
* @returns void
|
|
37719
|
+
* @throws ApiError
|
|
37720
|
+
*/
|
|
37721
|
+
static credentialsOrgsUsersExternalMappingDestroy({
|
|
37722
|
+
platformKey,
|
|
37723
|
+
username
|
|
37724
|
+
}) {
|
|
37725
|
+
return request(OpenAPI, {
|
|
37726
|
+
method: 'DELETE',
|
|
37727
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
|
|
37728
|
+
path: {
|
|
37729
|
+
'platform_key': platformKey,
|
|
37730
|
+
'username': username
|
|
37731
|
+
}
|
|
37732
|
+
});
|
|
37733
|
+
}
|
|
37645
37734
|
/**
|
|
37646
37735
|
* API View for managing uploaded images for credentials.
|
|
37647
37736
|
*
|
|
@@ -37700,15 +37789,15 @@ class CredentialsService {
|
|
|
37700
37789
|
* @throws ApiError
|
|
37701
37790
|
*/
|
|
37702
37791
|
static credentialsOrgsUsersImagesRetrieve({
|
|
37703
|
-
|
|
37704
|
-
|
|
37792
|
+
platformKey,
|
|
37793
|
+
username
|
|
37705
37794
|
}) {
|
|
37706
37795
|
return request(OpenAPI, {
|
|
37707
37796
|
method: 'GET',
|
|
37708
|
-
url: '/api/credentials/orgs/{
|
|
37797
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
|
|
37709
37798
|
path: {
|
|
37710
|
-
'
|
|
37711
|
-
'
|
|
37799
|
+
'platform_key': platformKey,
|
|
37800
|
+
'username': username
|
|
37712
37801
|
}
|
|
37713
37802
|
});
|
|
37714
37803
|
}
|
|
@@ -37770,16 +37859,16 @@ class CredentialsService {
|
|
|
37770
37859
|
* @throws ApiError
|
|
37771
37860
|
*/
|
|
37772
37861
|
static credentialsOrgsUsersImagesCreate({
|
|
37773
|
-
|
|
37774
|
-
|
|
37862
|
+
platformKey,
|
|
37863
|
+
username,
|
|
37775
37864
|
requestBody
|
|
37776
37865
|
}) {
|
|
37777
37866
|
return request(OpenAPI, {
|
|
37778
37867
|
method: 'POST',
|
|
37779
|
-
url: '/api/credentials/orgs/{
|
|
37868
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
|
|
37780
37869
|
path: {
|
|
37781
|
-
'
|
|
37782
|
-
'
|
|
37870
|
+
'platform_key': platformKey,
|
|
37871
|
+
'username': username
|
|
37783
37872
|
},
|
|
37784
37873
|
body: requestBody,
|
|
37785
37874
|
mediaType: 'application/json'
|
|
@@ -37851,16 +37940,16 @@ class CredentialsService {
|
|
|
37851
37940
|
* @throws ApiError
|
|
37852
37941
|
*/
|
|
37853
37942
|
static credentialsOrgsUsersIssuersRetrieve({
|
|
37854
|
-
|
|
37943
|
+
platformKey,
|
|
37855
37944
|
q,
|
|
37856
|
-
|
|
37945
|
+
username
|
|
37857
37946
|
}) {
|
|
37858
37947
|
return request(OpenAPI, {
|
|
37859
37948
|
method: 'GET',
|
|
37860
|
-
url: '/api/credentials/orgs/{
|
|
37949
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
|
|
37861
37950
|
path: {
|
|
37862
|
-
'
|
|
37863
|
-
'
|
|
37951
|
+
'platform_key': platformKey,
|
|
37952
|
+
'username': username
|
|
37864
37953
|
},
|
|
37865
37954
|
query: {
|
|
37866
37955
|
'q': q
|
|
@@ -37933,17 +38022,17 @@ class CredentialsService {
|
|
|
37933
38022
|
* @throws ApiError
|
|
37934
38023
|
*/
|
|
37935
38024
|
static credentialsOrgsUsersIssuersCreate({
|
|
37936
|
-
|
|
38025
|
+
platformKey,
|
|
37937
38026
|
q,
|
|
37938
|
-
|
|
38027
|
+
username,
|
|
37939
38028
|
requestBody
|
|
37940
38029
|
}) {
|
|
37941
38030
|
return request(OpenAPI, {
|
|
37942
38031
|
method: 'POST',
|
|
37943
|
-
url: '/api/credentials/orgs/{
|
|
38032
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
|
|
37944
38033
|
path: {
|
|
37945
|
-
'
|
|
37946
|
-
'
|
|
38034
|
+
'platform_key': platformKey,
|
|
38035
|
+
'username': username
|
|
37947
38036
|
},
|
|
37948
38037
|
query: {
|
|
37949
38038
|
'q': q
|
|
@@ -38023,16 +38112,16 @@ class CredentialsService {
|
|
|
38023
38112
|
*/
|
|
38024
38113
|
static credentialsOrgsUsersIssuersRetrieve2({
|
|
38025
38114
|
entityId,
|
|
38026
|
-
|
|
38027
|
-
|
|
38115
|
+
platformKey,
|
|
38116
|
+
username
|
|
38028
38117
|
}) {
|
|
38029
38118
|
return request(OpenAPI, {
|
|
38030
38119
|
method: 'GET',
|
|
38031
|
-
url: '/api/credentials/orgs/{
|
|
38120
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
|
|
38032
38121
|
path: {
|
|
38033
38122
|
'entity_id': entityId,
|
|
38034
|
-
'
|
|
38035
|
-
'
|
|
38123
|
+
'platform_key': platformKey,
|
|
38124
|
+
'username': username
|
|
38036
38125
|
}
|
|
38037
38126
|
});
|
|
38038
38127
|
}
|
|
@@ -38107,17 +38196,17 @@ class CredentialsService {
|
|
|
38107
38196
|
*/
|
|
38108
38197
|
static credentialsOrgsUsersIssuersUpdate({
|
|
38109
38198
|
entityId,
|
|
38110
|
-
|
|
38111
|
-
|
|
38199
|
+
platformKey,
|
|
38200
|
+
username,
|
|
38112
38201
|
requestBody
|
|
38113
38202
|
}) {
|
|
38114
38203
|
return request(OpenAPI, {
|
|
38115
38204
|
method: 'PUT',
|
|
38116
|
-
url: '/api/credentials/orgs/{
|
|
38205
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
|
|
38117
38206
|
path: {
|
|
38118
38207
|
'entity_id': entityId,
|
|
38119
|
-
'
|
|
38120
|
-
'
|
|
38208
|
+
'platform_key': platformKey,
|
|
38209
|
+
'username': username
|
|
38121
38210
|
},
|
|
38122
38211
|
body: requestBody,
|
|
38123
38212
|
mediaType: 'application/json'
|
|
@@ -38194,16 +38283,16 @@ class CredentialsService {
|
|
|
38194
38283
|
*/
|
|
38195
38284
|
static credentialsOrgsUsersIssuersDestroy({
|
|
38196
38285
|
entityId,
|
|
38197
|
-
|
|
38198
|
-
|
|
38286
|
+
platformKey,
|
|
38287
|
+
username
|
|
38199
38288
|
}) {
|
|
38200
38289
|
return request(OpenAPI, {
|
|
38201
38290
|
method: 'DELETE',
|
|
38202
|
-
url: '/api/credentials/orgs/{
|
|
38291
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
|
|
38203
38292
|
path: {
|
|
38204
38293
|
'entity_id': entityId,
|
|
38205
|
-
'
|
|
38206
|
-
'
|
|
38294
|
+
'platform_key': platformKey,
|
|
38295
|
+
'username': username
|
|
38207
38296
|
}
|
|
38208
38297
|
});
|
|
38209
38298
|
}
|
|
@@ -38253,21 +38342,115 @@ class CredentialsService {
|
|
|
38253
38342
|
* @throws ApiError
|
|
38254
38343
|
*/
|
|
38255
38344
|
static credentialsOrgsUsersIssuersAuthorityCreate({
|
|
38256
|
-
|
|
38257
|
-
|
|
38345
|
+
platformKey,
|
|
38346
|
+
username,
|
|
38258
38347
|
requestBody
|
|
38259
38348
|
}) {
|
|
38260
38349
|
return request(OpenAPI, {
|
|
38261
38350
|
method: 'POST',
|
|
38262
|
-
url: '/api/credentials/orgs/{
|
|
38351
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/authority/',
|
|
38263
38352
|
path: {
|
|
38264
|
-
'
|
|
38265
|
-
'
|
|
38353
|
+
'platform_key': platformKey,
|
|
38354
|
+
'username': username
|
|
38266
38355
|
},
|
|
38267
38356
|
body: requestBody,
|
|
38268
38357
|
mediaType: 'application/json'
|
|
38269
38358
|
});
|
|
38270
38359
|
}
|
|
38360
|
+
/**
|
|
38361
|
+
* Retrieve provider configurations for the platform.
|
|
38362
|
+
*
|
|
38363
|
+
* Query Parameters:
|
|
38364
|
+
* provider_name (str, optional): Filter to a specific provider
|
|
38365
|
+
* page (int, optional): Page number
|
|
38366
|
+
* page_size (int, optional): Items per page
|
|
38367
|
+
*
|
|
38368
|
+
* Returns all configurations for the platform if the user is an admin.
|
|
38369
|
+
* @returns CredentialProviderConfig
|
|
38370
|
+
* @throws ApiError
|
|
38371
|
+
*/
|
|
38372
|
+
static credentialsOrgsUsersProviderConfigRetrieve({
|
|
38373
|
+
platformKey,
|
|
38374
|
+
username
|
|
38375
|
+
}) {
|
|
38376
|
+
return request(OpenAPI, {
|
|
38377
|
+
method: 'GET',
|
|
38378
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
|
|
38379
|
+
path: {
|
|
38380
|
+
'platform_key': platformKey,
|
|
38381
|
+
'username': username
|
|
38382
|
+
}
|
|
38383
|
+
});
|
|
38384
|
+
}
|
|
38385
|
+
/**
|
|
38386
|
+
* Create or update a provider configuration.
|
|
38387
|
+
*
|
|
38388
|
+
* If a configuration doesn't exist for the platform and provider, it will be created.
|
|
38389
|
+
* If it exists, it will be updated.
|
|
38390
|
+
*
|
|
38391
|
+
* Request Body:
|
|
38392
|
+
* {
|
|
38393
|
+
* "provider_name": "accredible", // Required
|
|
38394
|
+
* "config": {...}, // Optional
|
|
38395
|
+
* "enabled": true // Optional
|
|
38396
|
+
* }
|
|
38397
|
+
*
|
|
38398
|
+
* Returns:
|
|
38399
|
+
* - 201 Created: When creating a new configuration
|
|
38400
|
+
* - 200 OK: When updating an existing configuration
|
|
38401
|
+
* @returns CredentialProviderConfig
|
|
38402
|
+
* @throws ApiError
|
|
38403
|
+
*/
|
|
38404
|
+
static credentialsOrgsUsersProviderConfigCreate({
|
|
38405
|
+
platformKey,
|
|
38406
|
+
username,
|
|
38407
|
+
requestBody
|
|
38408
|
+
}) {
|
|
38409
|
+
return request(OpenAPI, {
|
|
38410
|
+
method: 'POST',
|
|
38411
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
|
|
38412
|
+
path: {
|
|
38413
|
+
'platform_key': platformKey,
|
|
38414
|
+
'username': username
|
|
38415
|
+
},
|
|
38416
|
+
body: requestBody,
|
|
38417
|
+
mediaType: 'application/json'
|
|
38418
|
+
});
|
|
38419
|
+
}
|
|
38420
|
+
/**
|
|
38421
|
+
* Deactivate a provider configuration (sets enabled=False).
|
|
38422
|
+
*
|
|
38423
|
+
* Request Body:
|
|
38424
|
+
* {
|
|
38425
|
+
* "provider_name": "accredible" // Required
|
|
38426
|
+
* }
|
|
38427
|
+
* @returns void
|
|
38428
|
+
* @throws ApiError
|
|
38429
|
+
*/
|
|
38430
|
+
static credentialsOrgsUsersProviderConfigDestroy({
|
|
38431
|
+
platformKey,
|
|
38432
|
+
username
|
|
38433
|
+
}) {
|
|
38434
|
+
return request(OpenAPI, {
|
|
38435
|
+
method: 'DELETE',
|
|
38436
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
|
|
38437
|
+
path: {
|
|
38438
|
+
'platform_key': platformKey,
|
|
38439
|
+
'username': username
|
|
38440
|
+
}
|
|
38441
|
+
});
|
|
38442
|
+
}
|
|
38443
|
+
/**
|
|
38444
|
+
* Get list of enabled credential providers with pagination.
|
|
38445
|
+
* @returns any No response body
|
|
38446
|
+
* @throws ApiError
|
|
38447
|
+
*/
|
|
38448
|
+
static credentialsProvidersRetrieve() {
|
|
38449
|
+
return request(OpenAPI, {
|
|
38450
|
+
method: 'GET',
|
|
38451
|
+
url: '/api/credentials/providers/'
|
|
38452
|
+
});
|
|
38453
|
+
}
|
|
38271
38454
|
/**
|
|
38272
38455
|
* Public endpoint to retrieve a specific credential assertion by its entity ID.
|
|
38273
38456
|
*
|