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