@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.umd.js
CHANGED
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
|
|
115
115
|
const OpenAPI = {
|
|
116
116
|
BASE: 'https://base.manager.iblai.app',
|
|
117
|
-
VERSION: '4.92.
|
|
117
|
+
VERSION: '4.92.1-ai-plus',
|
|
118
118
|
WITH_CREDENTIALS: false,
|
|
119
119
|
CREDENTIALS: 'include',
|
|
120
120
|
TOKEN: undefined,
|
|
@@ -36787,15 +36787,15 @@
|
|
|
36787
36787
|
* @throws ApiError
|
|
36788
36788
|
*/
|
|
36789
36789
|
static credentialsOrgsUsersRetrieve({
|
|
36790
|
-
|
|
36791
|
-
|
|
36790
|
+
platformKey,
|
|
36791
|
+
username
|
|
36792
36792
|
}) {
|
|
36793
36793
|
return request(OpenAPI, {
|
|
36794
36794
|
method: 'GET',
|
|
36795
|
-
url: '/api/credentials/orgs/{
|
|
36795
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/',
|
|
36796
36796
|
path: {
|
|
36797
|
-
'
|
|
36798
|
-
'
|
|
36797
|
+
'platform_key': platformKey,
|
|
36798
|
+
'username': username
|
|
36799
36799
|
}
|
|
36800
36800
|
});
|
|
36801
36801
|
}
|
|
@@ -36880,16 +36880,16 @@
|
|
|
36880
36880
|
* @throws ApiError
|
|
36881
36881
|
*/
|
|
36882
36882
|
static credentialsOrgsUsersCreate({
|
|
36883
|
-
|
|
36884
|
-
|
|
36883
|
+
platformKey,
|
|
36884
|
+
username,
|
|
36885
36885
|
requestBody
|
|
36886
36886
|
}) {
|
|
36887
36887
|
return request(OpenAPI, {
|
|
36888
36888
|
method: 'POST',
|
|
36889
|
-
url: '/api/credentials/orgs/{
|
|
36889
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/',
|
|
36890
36890
|
path: {
|
|
36891
|
-
'
|
|
36892
|
-
'
|
|
36891
|
+
'platform_key': platformKey,
|
|
36892
|
+
'username': username
|
|
36893
36893
|
},
|
|
36894
36894
|
body: requestBody,
|
|
36895
36895
|
mediaType: 'application/json'
|
|
@@ -36955,16 +36955,16 @@
|
|
|
36955
36955
|
*/
|
|
36956
36956
|
static credentialsOrgsUsersRetrieve2({
|
|
36957
36957
|
entityId,
|
|
36958
|
-
|
|
36959
|
-
|
|
36958
|
+
platformKey,
|
|
36959
|
+
username
|
|
36960
36960
|
}) {
|
|
36961
36961
|
return request(OpenAPI, {
|
|
36962
36962
|
method: 'GET',
|
|
36963
|
-
url: '/api/credentials/orgs/{
|
|
36963
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
|
|
36964
36964
|
path: {
|
|
36965
36965
|
'entity_id': entityId,
|
|
36966
|
-
'
|
|
36967
|
-
'
|
|
36966
|
+
'platform_key': platformKey,
|
|
36967
|
+
'username': username
|
|
36968
36968
|
}
|
|
36969
36969
|
});
|
|
36970
36970
|
}
|
|
@@ -37028,17 +37028,17 @@
|
|
|
37028
37028
|
*/
|
|
37029
37029
|
static credentialsOrgsUsersUpdate({
|
|
37030
37030
|
entityId,
|
|
37031
|
-
|
|
37032
|
-
|
|
37031
|
+
platformKey,
|
|
37032
|
+
username,
|
|
37033
37033
|
requestBody
|
|
37034
37034
|
}) {
|
|
37035
37035
|
return request(OpenAPI, {
|
|
37036
37036
|
method: 'PUT',
|
|
37037
|
-
url: '/api/credentials/orgs/{
|
|
37037
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
|
|
37038
37038
|
path: {
|
|
37039
37039
|
'entity_id': entityId,
|
|
37040
|
-
'
|
|
37041
|
-
'
|
|
37040
|
+
'platform_key': platformKey,
|
|
37041
|
+
'username': username
|
|
37042
37042
|
},
|
|
37043
37043
|
body: requestBody,
|
|
37044
37044
|
mediaType: 'application/json'
|
|
@@ -37104,16 +37104,16 @@
|
|
|
37104
37104
|
*/
|
|
37105
37105
|
static credentialsOrgsUsersDestroy({
|
|
37106
37106
|
entityId,
|
|
37107
|
-
|
|
37108
|
-
|
|
37107
|
+
platformKey,
|
|
37108
|
+
username
|
|
37109
37109
|
}) {
|
|
37110
37110
|
return request(OpenAPI, {
|
|
37111
37111
|
method: 'DELETE',
|
|
37112
|
-
url: '/api/credentials/orgs/{
|
|
37112
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}',
|
|
37113
37113
|
path: {
|
|
37114
37114
|
'entity_id': entityId,
|
|
37115
|
-
'
|
|
37116
|
-
'
|
|
37115
|
+
'platform_key': platformKey,
|
|
37116
|
+
'username': username
|
|
37117
37117
|
}
|
|
37118
37118
|
});
|
|
37119
37119
|
}
|
|
@@ -37151,16 +37151,16 @@
|
|
|
37151
37151
|
*/
|
|
37152
37152
|
static credentialsOrgsUsersAssertionsRetrieve3({
|
|
37153
37153
|
entityId,
|
|
37154
|
-
|
|
37155
|
-
|
|
37154
|
+
platformKey,
|
|
37155
|
+
username
|
|
37156
37156
|
}) {
|
|
37157
37157
|
return request(OpenAPI, {
|
|
37158
37158
|
method: 'GET',
|
|
37159
|
-
url: '/api/credentials/orgs/{
|
|
37159
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
|
|
37160
37160
|
path: {
|
|
37161
37161
|
'entity_id': entityId,
|
|
37162
|
-
'
|
|
37163
|
-
'
|
|
37162
|
+
'platform_key': platformKey,
|
|
37163
|
+
'username': username
|
|
37164
37164
|
}
|
|
37165
37165
|
});
|
|
37166
37166
|
}
|
|
@@ -37198,17 +37198,17 @@
|
|
|
37198
37198
|
*/
|
|
37199
37199
|
static credentialsOrgsUsersAssertionsCreate({
|
|
37200
37200
|
entityId,
|
|
37201
|
-
|
|
37202
|
-
|
|
37201
|
+
platformKey,
|
|
37202
|
+
username,
|
|
37203
37203
|
requestBody
|
|
37204
37204
|
}) {
|
|
37205
37205
|
return request(OpenAPI, {
|
|
37206
37206
|
method: 'POST',
|
|
37207
|
-
url: '/api/credentials/orgs/{
|
|
37207
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/',
|
|
37208
37208
|
path: {
|
|
37209
37209
|
'entity_id': entityId,
|
|
37210
|
-
'
|
|
37211
|
-
'
|
|
37210
|
+
'platform_key': platformKey,
|
|
37211
|
+
'username': username
|
|
37212
37212
|
},
|
|
37213
37213
|
body: requestBody,
|
|
37214
37214
|
mediaType: 'application/json'
|
|
@@ -37247,17 +37247,17 @@
|
|
|
37247
37247
|
*/
|
|
37248
37248
|
static credentialsOrgsUsersAssertionsBulkCreate({
|
|
37249
37249
|
entityId,
|
|
37250
|
-
|
|
37251
|
-
|
|
37250
|
+
platformKey,
|
|
37251
|
+
username,
|
|
37252
37252
|
requestBody
|
|
37253
37253
|
}) {
|
|
37254
37254
|
return request(OpenAPI, {
|
|
37255
37255
|
method: 'POST',
|
|
37256
|
-
url: '/api/credentials/orgs/{
|
|
37256
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/bulk/',
|
|
37257
37257
|
path: {
|
|
37258
37258
|
'entity_id': entityId,
|
|
37259
|
-
'
|
|
37260
|
-
'
|
|
37259
|
+
'platform_key': platformKey,
|
|
37260
|
+
'username': username
|
|
37261
37261
|
},
|
|
37262
37262
|
body: requestBody,
|
|
37263
37263
|
mediaType: 'application/json'
|
|
@@ -37291,8 +37291,8 @@
|
|
|
37291
37291
|
* @throws ApiError
|
|
37292
37292
|
*/
|
|
37293
37293
|
static credentialsOrgsUsersAssertionsRetrieve({
|
|
37294
|
-
|
|
37295
|
-
|
|
37294
|
+
platformKey,
|
|
37295
|
+
username,
|
|
37296
37296
|
course,
|
|
37297
37297
|
excludeMainTenantAssertions,
|
|
37298
37298
|
includeExpired,
|
|
@@ -37302,10 +37302,10 @@
|
|
|
37302
37302
|
}) {
|
|
37303
37303
|
return request(OpenAPI, {
|
|
37304
37304
|
method: 'GET',
|
|
37305
|
-
url: '/api/credentials/orgs/{
|
|
37305
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/',
|
|
37306
37306
|
path: {
|
|
37307
|
-
'
|
|
37308
|
-
'
|
|
37307
|
+
'platform_key': platformKey,
|
|
37308
|
+
'username': username
|
|
37309
37309
|
},
|
|
37310
37310
|
query: {
|
|
37311
37311
|
'course': course,
|
|
@@ -37323,8 +37323,8 @@
|
|
|
37323
37323
|
* @throws ApiError
|
|
37324
37324
|
*/
|
|
37325
37325
|
static credentialsOrgsUsersAssertionsOverTimeRetrieve({
|
|
37326
|
-
|
|
37327
|
-
|
|
37326
|
+
platformKey,
|
|
37327
|
+
username,
|
|
37328
37328
|
departmentId,
|
|
37329
37329
|
endDate,
|
|
37330
37330
|
format = 'json',
|
|
@@ -37333,10 +37333,10 @@
|
|
|
37333
37333
|
}) {
|
|
37334
37334
|
return request(OpenAPI, {
|
|
37335
37335
|
method: 'GET',
|
|
37336
|
-
url: '/api/credentials/orgs/{
|
|
37336
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions-over-time/',
|
|
37337
37337
|
path: {
|
|
37338
|
-
'
|
|
37339
|
-
'
|
|
37338
|
+
'platform_key': platformKey,
|
|
37339
|
+
'username': username
|
|
37340
37340
|
},
|
|
37341
37341
|
query: {
|
|
37342
37342
|
'department_id': departmentId,
|
|
@@ -37382,16 +37382,16 @@
|
|
|
37382
37382
|
*/
|
|
37383
37383
|
static credentialsOrgsUsersAssertionsRetrieve2({
|
|
37384
37384
|
entityId,
|
|
37385
|
-
|
|
37386
|
-
|
|
37385
|
+
platformKey,
|
|
37386
|
+
username
|
|
37387
37387
|
}) {
|
|
37388
37388
|
return request(OpenAPI, {
|
|
37389
37389
|
method: 'GET',
|
|
37390
|
-
url: '/api/credentials/orgs/{
|
|
37390
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
|
|
37391
37391
|
path: {
|
|
37392
37392
|
'entity_id': entityId,
|
|
37393
|
-
'
|
|
37394
|
-
'
|
|
37393
|
+
'platform_key': platformKey,
|
|
37394
|
+
'username': username
|
|
37395
37395
|
}
|
|
37396
37396
|
});
|
|
37397
37397
|
}
|
|
@@ -37430,17 +37430,17 @@
|
|
|
37430
37430
|
*/
|
|
37431
37431
|
static credentialsOrgsUsersAssertionsUpdate({
|
|
37432
37432
|
entityId,
|
|
37433
|
-
|
|
37434
|
-
|
|
37433
|
+
platformKey,
|
|
37434
|
+
username,
|
|
37435
37435
|
requestBody
|
|
37436
37436
|
}) {
|
|
37437
37437
|
return request(OpenAPI, {
|
|
37438
37438
|
method: 'PUT',
|
|
37439
|
-
url: '/api/credentials/orgs/{
|
|
37439
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}',
|
|
37440
37440
|
path: {
|
|
37441
37441
|
'entity_id': entityId,
|
|
37442
|
-
'
|
|
37443
|
-
'
|
|
37442
|
+
'platform_key': platformKey,
|
|
37443
|
+
'username': username
|
|
37444
37444
|
},
|
|
37445
37445
|
body: requestBody,
|
|
37446
37446
|
mediaType: 'application/json'
|
|
@@ -37454,16 +37454,16 @@
|
|
|
37454
37454
|
*/
|
|
37455
37455
|
static credentialsOrgsUsersAssignmentsDestroy({
|
|
37456
37456
|
assignmentId,
|
|
37457
|
-
|
|
37458
|
-
|
|
37457
|
+
platformKey,
|
|
37458
|
+
username
|
|
37459
37459
|
}) {
|
|
37460
37460
|
return request(OpenAPI, {
|
|
37461
37461
|
method: 'DELETE',
|
|
37462
|
-
url: '/api/credentials/orgs/{
|
|
37462
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/{assignment_id}',
|
|
37463
37463
|
path: {
|
|
37464
37464
|
'assignment_id': assignmentId,
|
|
37465
|
-
'
|
|
37466
|
-
'
|
|
37465
|
+
'platform_key': platformKey,
|
|
37466
|
+
'username': username
|
|
37467
37467
|
}
|
|
37468
37468
|
});
|
|
37469
37469
|
}
|
|
@@ -37473,15 +37473,15 @@
|
|
|
37473
37473
|
* @throws ApiError
|
|
37474
37474
|
*/
|
|
37475
37475
|
static credentialsOrgsUsersAssignmentsGroupsRetrieve({
|
|
37476
|
-
|
|
37477
|
-
|
|
37476
|
+
platformKey,
|
|
37477
|
+
username
|
|
37478
37478
|
}) {
|
|
37479
37479
|
return request(OpenAPI, {
|
|
37480
37480
|
method: 'GET',
|
|
37481
|
-
url: '/api/credentials/orgs/{
|
|
37481
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
|
|
37482
37482
|
path: {
|
|
37483
|
-
'
|
|
37484
|
-
'
|
|
37483
|
+
'platform_key': platformKey,
|
|
37484
|
+
'username': username
|
|
37485
37485
|
}
|
|
37486
37486
|
});
|
|
37487
37487
|
}
|
|
@@ -37491,15 +37491,15 @@
|
|
|
37491
37491
|
* @throws ApiError
|
|
37492
37492
|
*/
|
|
37493
37493
|
static credentialsOrgsUsersAssignmentsGroupsCreate({
|
|
37494
|
-
|
|
37495
|
-
|
|
37494
|
+
platformKey,
|
|
37495
|
+
username
|
|
37496
37496
|
}) {
|
|
37497
37497
|
return request(OpenAPI, {
|
|
37498
37498
|
method: 'POST',
|
|
37499
|
-
url: '/api/credentials/orgs/{
|
|
37499
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/',
|
|
37500
37500
|
path: {
|
|
37501
|
-
'
|
|
37502
|
-
'
|
|
37501
|
+
'platform_key': platformKey,
|
|
37502
|
+
'username': username
|
|
37503
37503
|
}
|
|
37504
37504
|
});
|
|
37505
37505
|
}
|
|
@@ -37512,15 +37512,15 @@
|
|
|
37512
37512
|
* @throws ApiError
|
|
37513
37513
|
*/
|
|
37514
37514
|
static credentialsOrgsUsersAssignmentsUsersRetrieve({
|
|
37515
|
-
|
|
37516
|
-
|
|
37515
|
+
platformKey,
|
|
37516
|
+
username
|
|
37517
37517
|
}) {
|
|
37518
37518
|
return request(OpenAPI, {
|
|
37519
37519
|
method: 'GET',
|
|
37520
|
-
url: '/api/credentials/orgs/{
|
|
37520
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
|
|
37521
37521
|
path: {
|
|
37522
|
-
'
|
|
37523
|
-
'
|
|
37522
|
+
'platform_key': platformKey,
|
|
37523
|
+
'username': username
|
|
37524
37524
|
}
|
|
37525
37525
|
});
|
|
37526
37526
|
}
|
|
@@ -37530,15 +37530,15 @@
|
|
|
37530
37530
|
* @throws ApiError
|
|
37531
37531
|
*/
|
|
37532
37532
|
static credentialsOrgsUsersAssignmentsUsersCreate({
|
|
37533
|
-
|
|
37534
|
-
|
|
37533
|
+
platformKey,
|
|
37534
|
+
username
|
|
37535
37535
|
}) {
|
|
37536
37536
|
return request(OpenAPI, {
|
|
37537
37537
|
method: 'POST',
|
|
37538
|
-
url: '/api/credentials/orgs/{
|
|
37538
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/',
|
|
37539
37539
|
path: {
|
|
37540
|
-
'
|
|
37541
|
-
'
|
|
37540
|
+
'platform_key': platformKey,
|
|
37541
|
+
'username': username
|
|
37542
37542
|
}
|
|
37543
37543
|
});
|
|
37544
37544
|
}
|
|
@@ -37548,8 +37548,8 @@
|
|
|
37548
37548
|
* @throws ApiError
|
|
37549
37549
|
*/
|
|
37550
37550
|
static credentialsOrgsUsersCourseAssertionsOverTimeRetrieve({
|
|
37551
|
-
|
|
37552
|
-
|
|
37551
|
+
platformKey,
|
|
37552
|
+
username,
|
|
37553
37553
|
departmentId,
|
|
37554
37554
|
endDate,
|
|
37555
37555
|
format = 'json',
|
|
@@ -37558,10 +37558,10 @@
|
|
|
37558
37558
|
}) {
|
|
37559
37559
|
return request(OpenAPI, {
|
|
37560
37560
|
method: 'GET',
|
|
37561
|
-
url: '/api/credentials/orgs/{
|
|
37561
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/course-assertions-over-time/',
|
|
37562
37562
|
path: {
|
|
37563
|
-
'
|
|
37564
|
-
'
|
|
37563
|
+
'platform_key': platformKey,
|
|
37564
|
+
'username': username
|
|
37565
37565
|
},
|
|
37566
37566
|
query: {
|
|
37567
37567
|
'department_id': departmentId,
|
|
@@ -37598,17 +37598,17 @@
|
|
|
37598
37598
|
* @throws ApiError
|
|
37599
37599
|
*/
|
|
37600
37600
|
static credentialsOrgsUsersCourseCredentialsList({
|
|
37601
|
-
|
|
37602
|
-
|
|
37601
|
+
platformKey,
|
|
37602
|
+
username,
|
|
37603
37603
|
page,
|
|
37604
37604
|
pageSize
|
|
37605
37605
|
}) {
|
|
37606
37606
|
return request(OpenAPI, {
|
|
37607
37607
|
method: 'GET',
|
|
37608
|
-
url: '/api/credentials/orgs/{
|
|
37608
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/course-credentials/',
|
|
37609
37609
|
path: {
|
|
37610
|
-
'
|
|
37611
|
-
'
|
|
37610
|
+
'platform_key': platformKey,
|
|
37611
|
+
'username': username
|
|
37612
37612
|
},
|
|
37613
37613
|
query: {
|
|
37614
37614
|
'page': page,
|
|
@@ -37622,8 +37622,8 @@
|
|
|
37622
37622
|
* @throws ApiError
|
|
37623
37623
|
*/
|
|
37624
37624
|
static credentialsOrgsUsersCredentialsOverTimeRetrieve({
|
|
37625
|
-
|
|
37626
|
-
|
|
37625
|
+
platformKey,
|
|
37626
|
+
username,
|
|
37627
37627
|
departmentId,
|
|
37628
37628
|
endDate,
|
|
37629
37629
|
format = 'json',
|
|
@@ -37632,10 +37632,10 @@
|
|
|
37632
37632
|
}) {
|
|
37633
37633
|
return request(OpenAPI, {
|
|
37634
37634
|
method: 'GET',
|
|
37635
|
-
url: '/api/credentials/orgs/{
|
|
37635
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/credentials-over-time/',
|
|
37636
37636
|
path: {
|
|
37637
|
-
'
|
|
37638
|
-
'
|
|
37637
|
+
'platform_key': platformKey,
|
|
37638
|
+
'username': username
|
|
37639
37639
|
},
|
|
37640
37640
|
query: {
|
|
37641
37641
|
'department_id': departmentId,
|
|
@@ -37646,6 +37646,95 @@
|
|
|
37646
37646
|
}
|
|
37647
37647
|
});
|
|
37648
37648
|
}
|
|
37649
|
+
/**
|
|
37650
|
+
* Retrieve external credential mappings for the platform.
|
|
37651
|
+
*
|
|
37652
|
+
* Query Parameters:
|
|
37653
|
+
* credential_id (str, optional): Filter by credential entity_id
|
|
37654
|
+
* provider_name (str, optional): Filter by provider name
|
|
37655
|
+
* page (int, optional): Page number
|
|
37656
|
+
* page_size (int, optional): Items per page
|
|
37657
|
+
*
|
|
37658
|
+
* Returns all mappings for the platform if the user is an admin.
|
|
37659
|
+
* @returns ExternalCredentialMapping
|
|
37660
|
+
* @throws ApiError
|
|
37661
|
+
*/
|
|
37662
|
+
static credentialsOrgsUsersExternalMappingRetrieve({
|
|
37663
|
+
platformKey,
|
|
37664
|
+
username
|
|
37665
|
+
}) {
|
|
37666
|
+
return request(OpenAPI, {
|
|
37667
|
+
method: 'GET',
|
|
37668
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
|
|
37669
|
+
path: {
|
|
37670
|
+
'platform_key': platformKey,
|
|
37671
|
+
'username': username
|
|
37672
|
+
}
|
|
37673
|
+
});
|
|
37674
|
+
}
|
|
37675
|
+
/**
|
|
37676
|
+
* Create or update an external credential mapping.
|
|
37677
|
+
*
|
|
37678
|
+
* If a mapping doesn't exist for the credential + platform + provider combination,
|
|
37679
|
+
* it will be created. If it exists, it will be updated.
|
|
37680
|
+
*
|
|
37681
|
+
* Request Body:
|
|
37682
|
+
* {
|
|
37683
|
+
* "credential_id": "credential-entity-id", // Required
|
|
37684
|
+
* "provider_name": "accredible", // Required
|
|
37685
|
+
* "external_template_id": "123456", // Optional
|
|
37686
|
+
* "metadata": {} // Optional
|
|
37687
|
+
* }
|
|
37688
|
+
*
|
|
37689
|
+
* Returns:
|
|
37690
|
+
* - 201 Created: When creating a new mapping
|
|
37691
|
+
* - 200 OK: When updating an existing mapping
|
|
37692
|
+
* @returns ExternalCredentialMapping
|
|
37693
|
+
* @throws ApiError
|
|
37694
|
+
*/
|
|
37695
|
+
static credentialsOrgsUsersExternalMappingCreate({
|
|
37696
|
+
platformKey,
|
|
37697
|
+
username,
|
|
37698
|
+
requestBody
|
|
37699
|
+
}) {
|
|
37700
|
+
return request(OpenAPI, {
|
|
37701
|
+
method: 'POST',
|
|
37702
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
|
|
37703
|
+
path: {
|
|
37704
|
+
'platform_key': platformKey,
|
|
37705
|
+
'username': username
|
|
37706
|
+
},
|
|
37707
|
+
body: requestBody,
|
|
37708
|
+
mediaType: 'application/json'
|
|
37709
|
+
});
|
|
37710
|
+
}
|
|
37711
|
+
/**
|
|
37712
|
+
* Delete an external credential mapping.
|
|
37713
|
+
*
|
|
37714
|
+
* Request Body:
|
|
37715
|
+
* {
|
|
37716
|
+
* "credential_id": "credential-entity-id", // Required
|
|
37717
|
+
* "provider_name": "accredible" // Required
|
|
37718
|
+
* }
|
|
37719
|
+
*
|
|
37720
|
+
* Returns:
|
|
37721
|
+
* A JSON response confirming deletion
|
|
37722
|
+
* @returns void
|
|
37723
|
+
* @throws ApiError
|
|
37724
|
+
*/
|
|
37725
|
+
static credentialsOrgsUsersExternalMappingDestroy({
|
|
37726
|
+
platformKey,
|
|
37727
|
+
username
|
|
37728
|
+
}) {
|
|
37729
|
+
return request(OpenAPI, {
|
|
37730
|
+
method: 'DELETE',
|
|
37731
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/',
|
|
37732
|
+
path: {
|
|
37733
|
+
'platform_key': platformKey,
|
|
37734
|
+
'username': username
|
|
37735
|
+
}
|
|
37736
|
+
});
|
|
37737
|
+
}
|
|
37649
37738
|
/**
|
|
37650
37739
|
* API View for managing uploaded images for credentials.
|
|
37651
37740
|
*
|
|
@@ -37704,15 +37793,15 @@
|
|
|
37704
37793
|
* @throws ApiError
|
|
37705
37794
|
*/
|
|
37706
37795
|
static credentialsOrgsUsersImagesRetrieve({
|
|
37707
|
-
|
|
37708
|
-
|
|
37796
|
+
platformKey,
|
|
37797
|
+
username
|
|
37709
37798
|
}) {
|
|
37710
37799
|
return request(OpenAPI, {
|
|
37711
37800
|
method: 'GET',
|
|
37712
|
-
url: '/api/credentials/orgs/{
|
|
37801
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
|
|
37713
37802
|
path: {
|
|
37714
|
-
'
|
|
37715
|
-
'
|
|
37803
|
+
'platform_key': platformKey,
|
|
37804
|
+
'username': username
|
|
37716
37805
|
}
|
|
37717
37806
|
});
|
|
37718
37807
|
}
|
|
@@ -37774,16 +37863,16 @@
|
|
|
37774
37863
|
* @throws ApiError
|
|
37775
37864
|
*/
|
|
37776
37865
|
static credentialsOrgsUsersImagesCreate({
|
|
37777
|
-
|
|
37778
|
-
|
|
37866
|
+
platformKey,
|
|
37867
|
+
username,
|
|
37779
37868
|
requestBody
|
|
37780
37869
|
}) {
|
|
37781
37870
|
return request(OpenAPI, {
|
|
37782
37871
|
method: 'POST',
|
|
37783
|
-
url: '/api/credentials/orgs/{
|
|
37872
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/images/',
|
|
37784
37873
|
path: {
|
|
37785
|
-
'
|
|
37786
|
-
'
|
|
37874
|
+
'platform_key': platformKey,
|
|
37875
|
+
'username': username
|
|
37787
37876
|
},
|
|
37788
37877
|
body: requestBody,
|
|
37789
37878
|
mediaType: 'application/json'
|
|
@@ -37855,16 +37944,16 @@
|
|
|
37855
37944
|
* @throws ApiError
|
|
37856
37945
|
*/
|
|
37857
37946
|
static credentialsOrgsUsersIssuersRetrieve({
|
|
37858
|
-
|
|
37947
|
+
platformKey,
|
|
37859
37948
|
q,
|
|
37860
|
-
|
|
37949
|
+
username
|
|
37861
37950
|
}) {
|
|
37862
37951
|
return request(OpenAPI, {
|
|
37863
37952
|
method: 'GET',
|
|
37864
|
-
url: '/api/credentials/orgs/{
|
|
37953
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
|
|
37865
37954
|
path: {
|
|
37866
|
-
'
|
|
37867
|
-
'
|
|
37955
|
+
'platform_key': platformKey,
|
|
37956
|
+
'username': username
|
|
37868
37957
|
},
|
|
37869
37958
|
query: {
|
|
37870
37959
|
'q': q
|
|
@@ -37937,17 +38026,17 @@
|
|
|
37937
38026
|
* @throws ApiError
|
|
37938
38027
|
*/
|
|
37939
38028
|
static credentialsOrgsUsersIssuersCreate({
|
|
37940
|
-
|
|
38029
|
+
platformKey,
|
|
37941
38030
|
q,
|
|
37942
|
-
|
|
38031
|
+
username,
|
|
37943
38032
|
requestBody
|
|
37944
38033
|
}) {
|
|
37945
38034
|
return request(OpenAPI, {
|
|
37946
38035
|
method: 'POST',
|
|
37947
|
-
url: '/api/credentials/orgs/{
|
|
38036
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/',
|
|
37948
38037
|
path: {
|
|
37949
|
-
'
|
|
37950
|
-
'
|
|
38038
|
+
'platform_key': platformKey,
|
|
38039
|
+
'username': username
|
|
37951
38040
|
},
|
|
37952
38041
|
query: {
|
|
37953
38042
|
'q': q
|
|
@@ -38027,16 +38116,16 @@
|
|
|
38027
38116
|
*/
|
|
38028
38117
|
static credentialsOrgsUsersIssuersRetrieve2({
|
|
38029
38118
|
entityId,
|
|
38030
|
-
|
|
38031
|
-
|
|
38119
|
+
platformKey,
|
|
38120
|
+
username
|
|
38032
38121
|
}) {
|
|
38033
38122
|
return request(OpenAPI, {
|
|
38034
38123
|
method: 'GET',
|
|
38035
|
-
url: '/api/credentials/orgs/{
|
|
38124
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
|
|
38036
38125
|
path: {
|
|
38037
38126
|
'entity_id': entityId,
|
|
38038
|
-
'
|
|
38039
|
-
'
|
|
38127
|
+
'platform_key': platformKey,
|
|
38128
|
+
'username': username
|
|
38040
38129
|
}
|
|
38041
38130
|
});
|
|
38042
38131
|
}
|
|
@@ -38111,17 +38200,17 @@
|
|
|
38111
38200
|
*/
|
|
38112
38201
|
static credentialsOrgsUsersIssuersUpdate({
|
|
38113
38202
|
entityId,
|
|
38114
|
-
|
|
38115
|
-
|
|
38203
|
+
platformKey,
|
|
38204
|
+
username,
|
|
38116
38205
|
requestBody
|
|
38117
38206
|
}) {
|
|
38118
38207
|
return request(OpenAPI, {
|
|
38119
38208
|
method: 'PUT',
|
|
38120
|
-
url: '/api/credentials/orgs/{
|
|
38209
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
|
|
38121
38210
|
path: {
|
|
38122
38211
|
'entity_id': entityId,
|
|
38123
|
-
'
|
|
38124
|
-
'
|
|
38212
|
+
'platform_key': platformKey,
|
|
38213
|
+
'username': username
|
|
38125
38214
|
},
|
|
38126
38215
|
body: requestBody,
|
|
38127
38216
|
mediaType: 'application/json'
|
|
@@ -38198,16 +38287,16 @@
|
|
|
38198
38287
|
*/
|
|
38199
38288
|
static credentialsOrgsUsersIssuersDestroy({
|
|
38200
38289
|
entityId,
|
|
38201
|
-
|
|
38202
|
-
|
|
38290
|
+
platformKey,
|
|
38291
|
+
username
|
|
38203
38292
|
}) {
|
|
38204
38293
|
return request(OpenAPI, {
|
|
38205
38294
|
method: 'DELETE',
|
|
38206
|
-
url: '/api/credentials/orgs/{
|
|
38295
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}',
|
|
38207
38296
|
path: {
|
|
38208
38297
|
'entity_id': entityId,
|
|
38209
|
-
'
|
|
38210
|
-
'
|
|
38298
|
+
'platform_key': platformKey,
|
|
38299
|
+
'username': username
|
|
38211
38300
|
}
|
|
38212
38301
|
});
|
|
38213
38302
|
}
|
|
@@ -38257,21 +38346,115 @@
|
|
|
38257
38346
|
* @throws ApiError
|
|
38258
38347
|
*/
|
|
38259
38348
|
static credentialsOrgsUsersIssuersAuthorityCreate({
|
|
38260
|
-
|
|
38261
|
-
|
|
38349
|
+
platformKey,
|
|
38350
|
+
username,
|
|
38262
38351
|
requestBody
|
|
38263
38352
|
}) {
|
|
38264
38353
|
return request(OpenAPI, {
|
|
38265
38354
|
method: 'POST',
|
|
38266
|
-
url: '/api/credentials/orgs/{
|
|
38355
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/issuers/authority/',
|
|
38267
38356
|
path: {
|
|
38268
|
-
'
|
|
38269
|
-
'
|
|
38357
|
+
'platform_key': platformKey,
|
|
38358
|
+
'username': username
|
|
38270
38359
|
},
|
|
38271
38360
|
body: requestBody,
|
|
38272
38361
|
mediaType: 'application/json'
|
|
38273
38362
|
});
|
|
38274
38363
|
}
|
|
38364
|
+
/**
|
|
38365
|
+
* Retrieve provider configurations for the platform.
|
|
38366
|
+
*
|
|
38367
|
+
* Query Parameters:
|
|
38368
|
+
* provider_name (str, optional): Filter to a specific provider
|
|
38369
|
+
* page (int, optional): Page number
|
|
38370
|
+
* page_size (int, optional): Items per page
|
|
38371
|
+
*
|
|
38372
|
+
* Returns all configurations for the platform if the user is an admin.
|
|
38373
|
+
* @returns CredentialProviderConfig
|
|
38374
|
+
* @throws ApiError
|
|
38375
|
+
*/
|
|
38376
|
+
static credentialsOrgsUsersProviderConfigRetrieve({
|
|
38377
|
+
platformKey,
|
|
38378
|
+
username
|
|
38379
|
+
}) {
|
|
38380
|
+
return request(OpenAPI, {
|
|
38381
|
+
method: 'GET',
|
|
38382
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
|
|
38383
|
+
path: {
|
|
38384
|
+
'platform_key': platformKey,
|
|
38385
|
+
'username': username
|
|
38386
|
+
}
|
|
38387
|
+
});
|
|
38388
|
+
}
|
|
38389
|
+
/**
|
|
38390
|
+
* Create or update a provider configuration.
|
|
38391
|
+
*
|
|
38392
|
+
* If a configuration doesn't exist for the platform and provider, it will be created.
|
|
38393
|
+
* If it exists, it will be updated.
|
|
38394
|
+
*
|
|
38395
|
+
* Request Body:
|
|
38396
|
+
* {
|
|
38397
|
+
* "provider_name": "accredible", // Required
|
|
38398
|
+
* "config": {...}, // Optional
|
|
38399
|
+
* "enabled": true // Optional
|
|
38400
|
+
* }
|
|
38401
|
+
*
|
|
38402
|
+
* Returns:
|
|
38403
|
+
* - 201 Created: When creating a new configuration
|
|
38404
|
+
* - 200 OK: When updating an existing configuration
|
|
38405
|
+
* @returns CredentialProviderConfig
|
|
38406
|
+
* @throws ApiError
|
|
38407
|
+
*/
|
|
38408
|
+
static credentialsOrgsUsersProviderConfigCreate({
|
|
38409
|
+
platformKey,
|
|
38410
|
+
username,
|
|
38411
|
+
requestBody
|
|
38412
|
+
}) {
|
|
38413
|
+
return request(OpenAPI, {
|
|
38414
|
+
method: 'POST',
|
|
38415
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
|
|
38416
|
+
path: {
|
|
38417
|
+
'platform_key': platformKey,
|
|
38418
|
+
'username': username
|
|
38419
|
+
},
|
|
38420
|
+
body: requestBody,
|
|
38421
|
+
mediaType: 'application/json'
|
|
38422
|
+
});
|
|
38423
|
+
}
|
|
38424
|
+
/**
|
|
38425
|
+
* Deactivate a provider configuration (sets enabled=False).
|
|
38426
|
+
*
|
|
38427
|
+
* Request Body:
|
|
38428
|
+
* {
|
|
38429
|
+
* "provider_name": "accredible" // Required
|
|
38430
|
+
* }
|
|
38431
|
+
* @returns void
|
|
38432
|
+
* @throws ApiError
|
|
38433
|
+
*/
|
|
38434
|
+
static credentialsOrgsUsersProviderConfigDestroy({
|
|
38435
|
+
platformKey,
|
|
38436
|
+
username
|
|
38437
|
+
}) {
|
|
38438
|
+
return request(OpenAPI, {
|
|
38439
|
+
method: 'DELETE',
|
|
38440
|
+
url: '/api/credentials/orgs/{platform_key}/users/{username}/provider-config/',
|
|
38441
|
+
path: {
|
|
38442
|
+
'platform_key': platformKey,
|
|
38443
|
+
'username': username
|
|
38444
|
+
}
|
|
38445
|
+
});
|
|
38446
|
+
}
|
|
38447
|
+
/**
|
|
38448
|
+
* Get list of enabled credential providers with pagination.
|
|
38449
|
+
* @returns any No response body
|
|
38450
|
+
* @throws ApiError
|
|
38451
|
+
*/
|
|
38452
|
+
static credentialsProvidersRetrieve() {
|
|
38453
|
+
return request(OpenAPI, {
|
|
38454
|
+
method: 'GET',
|
|
38455
|
+
url: '/api/credentials/providers/'
|
|
38456
|
+
});
|
|
38457
|
+
}
|
|
38275
38458
|
/**
|
|
38276
38459
|
* Public endpoint to retrieve a specific credential assertion by its entity ID.
|
|
38277
38460
|
*
|