@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/sdk_schema.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ibl-data-manager
|
|
4
|
-
version: 4.92.
|
|
4
|
+
version: 4.92.1-ai-plus
|
|
5
5
|
description: API for iblai
|
|
6
6
|
paths:
|
|
7
7
|
/api/ai-account/connected-services/callback/:
|
|
@@ -54477,7 +54477,7 @@ paths:
|
|
|
54477
54477
|
responses:
|
|
54478
54478
|
'200':
|
|
54479
54479
|
description: No response body
|
|
54480
|
-
/api/credentials/orgs/{
|
|
54480
|
+
/api/credentials/orgs/{platform_key}/users/{username}/:
|
|
54481
54481
|
get:
|
|
54482
54482
|
operationId: credentials_orgs_users_retrieve
|
|
54483
54483
|
description: |-
|
|
@@ -54492,12 +54492,12 @@ paths:
|
|
|
54492
54492
|
- program: Program ID to filter credentials
|
|
54493
54493
|
parameters:
|
|
54494
54494
|
- in: path
|
|
54495
|
-
name:
|
|
54495
|
+
name: platform_key
|
|
54496
54496
|
schema:
|
|
54497
54497
|
type: string
|
|
54498
54498
|
required: true
|
|
54499
54499
|
- in: path
|
|
54500
|
-
name:
|
|
54500
|
+
name: username
|
|
54501
54501
|
schema:
|
|
54502
54502
|
type: string
|
|
54503
54503
|
required: true
|
|
@@ -54593,12 +54593,12 @@ paths:
|
|
|
54593
54593
|
- Only public credentials are returned by default
|
|
54594
54594
|
parameters:
|
|
54595
54595
|
- in: path
|
|
54596
|
-
name:
|
|
54596
|
+
name: platform_key
|
|
54597
54597
|
schema:
|
|
54598
54598
|
type: string
|
|
54599
54599
|
required: true
|
|
54600
54600
|
- in: path
|
|
54601
|
-
name:
|
|
54601
|
+
name: username
|
|
54602
54602
|
schema:
|
|
54603
54603
|
type: string
|
|
54604
54604
|
required: true
|
|
@@ -54631,7 +54631,7 @@ paths:
|
|
|
54631
54631
|
schema:
|
|
54632
54632
|
$ref: '#/components/schemas/Credential'
|
|
54633
54633
|
description: ''
|
|
54634
|
-
/api/credentials/orgs/{
|
|
54634
|
+
/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}:
|
|
54635
54635
|
get:
|
|
54636
54636
|
operationId: credentials_orgs_users_retrieve_2
|
|
54637
54637
|
description: |-
|
|
@@ -54696,12 +54696,12 @@ paths:
|
|
|
54696
54696
|
type: string
|
|
54697
54697
|
required: true
|
|
54698
54698
|
- in: path
|
|
54699
|
-
name:
|
|
54699
|
+
name: platform_key
|
|
54700
54700
|
schema:
|
|
54701
54701
|
type: string
|
|
54702
54702
|
required: true
|
|
54703
54703
|
- in: path
|
|
54704
|
-
name:
|
|
54704
|
+
name: username
|
|
54705
54705
|
schema:
|
|
54706
54706
|
type: string
|
|
54707
54707
|
required: true
|
|
@@ -54780,12 +54780,12 @@ paths:
|
|
|
54780
54780
|
type: string
|
|
54781
54781
|
required: true
|
|
54782
54782
|
- in: path
|
|
54783
|
-
name:
|
|
54783
|
+
name: platform_key
|
|
54784
54784
|
schema:
|
|
54785
54785
|
type: string
|
|
54786
54786
|
required: true
|
|
54787
54787
|
- in: path
|
|
54788
|
-
name:
|
|
54788
|
+
name: username
|
|
54789
54789
|
schema:
|
|
54790
54790
|
type: string
|
|
54791
54791
|
required: true
|
|
@@ -54882,12 +54882,12 @@ paths:
|
|
|
54882
54882
|
type: string
|
|
54883
54883
|
required: true
|
|
54884
54884
|
- in: path
|
|
54885
|
-
name:
|
|
54885
|
+
name: platform_key
|
|
54886
54886
|
schema:
|
|
54887
54887
|
type: string
|
|
54888
54888
|
required: true
|
|
54889
54889
|
- in: path
|
|
54890
|
-
name:
|
|
54890
|
+
name: username
|
|
54891
54891
|
schema:
|
|
54892
54892
|
type: string
|
|
54893
54893
|
required: true
|
|
@@ -54898,7 +54898,7 @@ paths:
|
|
|
54898
54898
|
responses:
|
|
54899
54899
|
'204':
|
|
54900
54900
|
description: No response body
|
|
54901
|
-
/api/credentials/orgs/{
|
|
54901
|
+
/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/:
|
|
54902
54902
|
get:
|
|
54903
54903
|
operationId: credentials_orgs_users_assertions_retrieve_3
|
|
54904
54904
|
description: |-
|
|
@@ -54937,12 +54937,12 @@ paths:
|
|
|
54937
54937
|
type: string
|
|
54938
54938
|
required: true
|
|
54939
54939
|
- in: path
|
|
54940
|
-
name:
|
|
54940
|
+
name: platform_key
|
|
54941
54941
|
schema:
|
|
54942
54942
|
type: string
|
|
54943
54943
|
required: true
|
|
54944
54944
|
- in: path
|
|
54945
|
-
name:
|
|
54945
|
+
name: username
|
|
54946
54946
|
schema:
|
|
54947
54947
|
type: string
|
|
54948
54948
|
required: true
|
|
@@ -54995,12 +54995,12 @@ paths:
|
|
|
54995
54995
|
type: string
|
|
54996
54996
|
required: true
|
|
54997
54997
|
- in: path
|
|
54998
|
-
name:
|
|
54998
|
+
name: platform_key
|
|
54999
54999
|
schema:
|
|
55000
55000
|
type: string
|
|
55001
55001
|
required: true
|
|
55002
55002
|
- in: path
|
|
55003
|
-
name:
|
|
55003
|
+
name: username
|
|
55004
55004
|
schema:
|
|
55005
55005
|
type: string
|
|
55006
55006
|
required: true
|
|
@@ -55033,7 +55033,7 @@ paths:
|
|
|
55033
55033
|
schema:
|
|
55034
55034
|
$ref: '#/components/schemas/Assertion'
|
|
55035
55035
|
description: ''
|
|
55036
|
-
/api/credentials/orgs/{
|
|
55036
|
+
/api/credentials/orgs/{platform_key}/users/{username}/{entity_id}/assertions/bulk/:
|
|
55037
55037
|
post:
|
|
55038
55038
|
operationId: credentials_orgs_users_assertions_bulk_create
|
|
55039
55039
|
description: |-
|
|
@@ -55071,12 +55071,12 @@ paths:
|
|
|
55071
55071
|
type: string
|
|
55072
55072
|
required: true
|
|
55073
55073
|
- in: path
|
|
55074
|
-
name:
|
|
55074
|
+
name: platform_key
|
|
55075
55075
|
schema:
|
|
55076
55076
|
type: string
|
|
55077
55077
|
required: true
|
|
55078
55078
|
- in: path
|
|
55079
|
-
name:
|
|
55079
|
+
name: username
|
|
55080
55080
|
schema:
|
|
55081
55081
|
type: string
|
|
55082
55082
|
required: true
|
|
@@ -55109,7 +55109,7 @@ paths:
|
|
|
55109
55109
|
schema:
|
|
55110
55110
|
$ref: '#/components/schemas/BulkCreateAssertion'
|
|
55111
55111
|
description: ''
|
|
55112
|
-
/api/credentials/orgs/{
|
|
55112
|
+
/api/credentials/orgs/{platform_key}/users/{username}/assertions/:
|
|
55113
55113
|
get:
|
|
55114
55114
|
operationId: credentials_orgs_users_assertions_retrieve
|
|
55115
55115
|
description: |-
|
|
@@ -55154,11 +55154,6 @@ paths:
|
|
|
55154
55154
|
name: include_revoked
|
|
55155
55155
|
schema:
|
|
55156
55156
|
type: boolean
|
|
55157
|
-
- in: path
|
|
55158
|
-
name: org
|
|
55159
|
-
schema:
|
|
55160
|
-
type: string
|
|
55161
|
-
required: true
|
|
55162
55157
|
- in: query
|
|
55163
55158
|
name: page
|
|
55164
55159
|
schema:
|
|
@@ -55171,7 +55166,12 @@ paths:
|
|
|
55171
55166
|
maximum: 1000
|
|
55172
55167
|
minimum: 1
|
|
55173
55168
|
- in: path
|
|
55174
|
-
name:
|
|
55169
|
+
name: platform_key
|
|
55170
|
+
schema:
|
|
55171
|
+
type: string
|
|
55172
|
+
required: true
|
|
55173
|
+
- in: path
|
|
55174
|
+
name: username
|
|
55175
55175
|
schema:
|
|
55176
55176
|
type: string
|
|
55177
55177
|
required: true
|
|
@@ -55186,7 +55186,7 @@ paths:
|
|
|
55186
55186
|
schema:
|
|
55187
55187
|
$ref: '#/components/schemas/PaginatedAssertionsResponse'
|
|
55188
55188
|
description: ''
|
|
55189
|
-
/api/credentials/orgs/{
|
|
55189
|
+
/api/credentials/orgs/{platform_key}/users/{username}/assertions-over-time/:
|
|
55190
55190
|
get:
|
|
55191
55191
|
operationId: credentials_orgs_users_assertions_over_time_retrieve
|
|
55192
55192
|
description: Get all credentials of a given tenant
|
|
@@ -55222,7 +55222,7 @@ paths:
|
|
|
55222
55222
|
default: true
|
|
55223
55223
|
description: Include main platform data
|
|
55224
55224
|
- in: path
|
|
55225
|
-
name:
|
|
55225
|
+
name: platform_key
|
|
55226
55226
|
schema:
|
|
55227
55227
|
type: string
|
|
55228
55228
|
required: true
|
|
@@ -55233,7 +55233,7 @@ paths:
|
|
|
55233
55233
|
minLength: 1
|
|
55234
55234
|
description: start date. ISO 8601
|
|
55235
55235
|
- in: path
|
|
55236
|
-
name:
|
|
55236
|
+
name: username
|
|
55237
55237
|
schema:
|
|
55238
55238
|
type: string
|
|
55239
55239
|
required: true
|
|
@@ -55248,7 +55248,7 @@ paths:
|
|
|
55248
55248
|
schema:
|
|
55249
55249
|
$ref: '#/components/schemas/OvertimeWithChangeInfo'
|
|
55250
55250
|
description: ''
|
|
55251
|
-
/api/credentials/orgs/{
|
|
55251
|
+
/api/credentials/orgs/{platform_key}/users/{username}/assertions/{entity_id}:
|
|
55252
55252
|
get:
|
|
55253
55253
|
operationId: credentials_orgs_users_assertions_retrieve_2
|
|
55254
55254
|
description: |-
|
|
@@ -55288,12 +55288,12 @@ paths:
|
|
|
55288
55288
|
type: string
|
|
55289
55289
|
required: true
|
|
55290
55290
|
- in: path
|
|
55291
|
-
name:
|
|
55291
|
+
name: platform_key
|
|
55292
55292
|
schema:
|
|
55293
55293
|
type: string
|
|
55294
55294
|
required: true
|
|
55295
55295
|
- in: path
|
|
55296
|
-
name:
|
|
55296
|
+
name: username
|
|
55297
55297
|
schema:
|
|
55298
55298
|
type: string
|
|
55299
55299
|
required: true
|
|
@@ -55347,12 +55347,12 @@ paths:
|
|
|
55347
55347
|
type: string
|
|
55348
55348
|
required: true
|
|
55349
55349
|
- in: path
|
|
55350
|
-
name:
|
|
55350
|
+
name: platform_key
|
|
55351
55351
|
schema:
|
|
55352
55352
|
type: string
|
|
55353
55353
|
required: true
|
|
55354
55354
|
- in: path
|
|
55355
|
-
name:
|
|
55355
|
+
name: username
|
|
55356
55356
|
schema:
|
|
55357
55357
|
type: string
|
|
55358
55358
|
required: true
|
|
@@ -55385,7 +55385,7 @@ paths:
|
|
|
55385
55385
|
schema:
|
|
55386
55386
|
$ref: '#/components/schemas/Assertion'
|
|
55387
55387
|
description: ''
|
|
55388
|
-
/api/credentials/orgs/{
|
|
55388
|
+
/api/credentials/orgs/{platform_key}/users/{username}/assignments/{assignment_id}:
|
|
55389
55389
|
delete:
|
|
55390
55390
|
operationId: credentials_orgs_users_assignments_destroy
|
|
55391
55391
|
description: |-
|
|
@@ -55398,12 +55398,12 @@ paths:
|
|
|
55398
55398
|
type: string
|
|
55399
55399
|
required: true
|
|
55400
55400
|
- in: path
|
|
55401
|
-
name:
|
|
55401
|
+
name: platform_key
|
|
55402
55402
|
schema:
|
|
55403
55403
|
type: string
|
|
55404
55404
|
required: true
|
|
55405
55405
|
- in: path
|
|
55406
|
-
name:
|
|
55406
|
+
name: username
|
|
55407
55407
|
schema:
|
|
55408
55408
|
type: string
|
|
55409
55409
|
required: true
|
|
@@ -55414,18 +55414,18 @@ paths:
|
|
|
55414
55414
|
responses:
|
|
55415
55415
|
'204':
|
|
55416
55416
|
description: No response body
|
|
55417
|
-
/api/credentials/orgs/{
|
|
55417
|
+
/api/credentials/orgs/{platform_key}/users/{username}/assignments/groups/:
|
|
55418
55418
|
get:
|
|
55419
55419
|
operationId: credentials_orgs_users_assignments_groups_retrieve
|
|
55420
55420
|
description: Get group assignments with department-aware filtering
|
|
55421
55421
|
parameters:
|
|
55422
55422
|
- in: path
|
|
55423
|
-
name:
|
|
55423
|
+
name: platform_key
|
|
55424
55424
|
schema:
|
|
55425
55425
|
type: string
|
|
55426
55426
|
required: true
|
|
55427
55427
|
- in: path
|
|
55428
|
-
name:
|
|
55428
|
+
name: username
|
|
55429
55429
|
schema:
|
|
55430
55430
|
type: string
|
|
55431
55431
|
required: true
|
|
@@ -55441,12 +55441,12 @@ paths:
|
|
|
55441
55441
|
description: Create group assignment with department access validation
|
|
55442
55442
|
parameters:
|
|
55443
55443
|
- in: path
|
|
55444
|
-
name:
|
|
55444
|
+
name: platform_key
|
|
55445
55445
|
schema:
|
|
55446
55446
|
type: string
|
|
55447
55447
|
required: true
|
|
55448
55448
|
- in: path
|
|
55449
|
-
name:
|
|
55449
|
+
name: username
|
|
55450
55450
|
schema:
|
|
55451
55451
|
type: string
|
|
55452
55452
|
required: true
|
|
@@ -55457,7 +55457,7 @@ paths:
|
|
|
55457
55457
|
responses:
|
|
55458
55458
|
'200':
|
|
55459
55459
|
description: No response body
|
|
55460
|
-
/api/credentials/orgs/{
|
|
55460
|
+
/api/credentials/orgs/{platform_key}/users/{username}/assignments/users/:
|
|
55461
55461
|
get:
|
|
55462
55462
|
operationId: credentials_orgs_users_assignments_users_retrieve
|
|
55463
55463
|
description: |-
|
|
@@ -55467,12 +55467,12 @@ paths:
|
|
|
55467
55467
|
- Department admins: get assignments for users in their department groups
|
|
55468
55468
|
parameters:
|
|
55469
55469
|
- in: path
|
|
55470
|
-
name:
|
|
55470
|
+
name: platform_key
|
|
55471
55471
|
schema:
|
|
55472
55472
|
type: string
|
|
55473
55473
|
required: true
|
|
55474
55474
|
- in: path
|
|
55475
|
-
name:
|
|
55475
|
+
name: username
|
|
55476
55476
|
schema:
|
|
55477
55477
|
type: string
|
|
55478
55478
|
required: true
|
|
@@ -55488,12 +55488,12 @@ paths:
|
|
|
55488
55488
|
description: Create assignments with department access validation
|
|
55489
55489
|
parameters:
|
|
55490
55490
|
- in: path
|
|
55491
|
-
name:
|
|
55491
|
+
name: platform_key
|
|
55492
55492
|
schema:
|
|
55493
55493
|
type: string
|
|
55494
55494
|
required: true
|
|
55495
55495
|
- in: path
|
|
55496
|
-
name:
|
|
55496
|
+
name: username
|
|
55497
55497
|
schema:
|
|
55498
55498
|
type: string
|
|
55499
55499
|
required: true
|
|
@@ -55504,7 +55504,7 @@ paths:
|
|
|
55504
55504
|
responses:
|
|
55505
55505
|
'200':
|
|
55506
55506
|
description: No response body
|
|
55507
|
-
/api/credentials/orgs/{
|
|
55507
|
+
/api/credentials/orgs/{platform_key}/users/{username}/course-assertions-over-time/:
|
|
55508
55508
|
get:
|
|
55509
55509
|
operationId: credentials_orgs_users_course_assertions_over_time_retrieve
|
|
55510
55510
|
description: Get all credentials of a given tenant
|
|
@@ -55540,7 +55540,7 @@ paths:
|
|
|
55540
55540
|
default: true
|
|
55541
55541
|
description: Include main platform data
|
|
55542
55542
|
- in: path
|
|
55543
|
-
name:
|
|
55543
|
+
name: platform_key
|
|
55544
55544
|
schema:
|
|
55545
55545
|
type: string
|
|
55546
55546
|
required: true
|
|
@@ -55551,7 +55551,7 @@ paths:
|
|
|
55551
55551
|
minLength: 1
|
|
55552
55552
|
description: start date. ISO 8601
|
|
55553
55553
|
- in: path
|
|
55554
|
-
name:
|
|
55554
|
+
name: username
|
|
55555
55555
|
schema:
|
|
55556
55556
|
type: string
|
|
55557
55557
|
required: true
|
|
@@ -55566,7 +55566,7 @@ paths:
|
|
|
55566
55566
|
schema:
|
|
55567
55567
|
$ref: '#/components/schemas/OverTime'
|
|
55568
55568
|
description: ''
|
|
55569
|
-
/api/credentials/orgs/{
|
|
55569
|
+
/api/credentials/orgs/{platform_key}/users/{username}/course-credentials/:
|
|
55570
55570
|
get:
|
|
55571
55571
|
operationId: credentials_orgs_users_course_credentials_list
|
|
55572
55572
|
description: |-
|
|
@@ -55592,11 +55592,6 @@ paths:
|
|
|
55592
55592
|
404 Not Found: If the organization doesn't exist
|
|
55593
55593
|
500 Internal Server Error: If an unexpected error occurs
|
|
55594
55594
|
parameters:
|
|
55595
|
-
- in: path
|
|
55596
|
-
name: org
|
|
55597
|
-
schema:
|
|
55598
|
-
type: string
|
|
55599
|
-
required: true
|
|
55600
55595
|
- name: page
|
|
55601
55596
|
required: false
|
|
55602
55597
|
in: query
|
|
@@ -55610,7 +55605,12 @@ paths:
|
|
|
55610
55605
|
schema:
|
|
55611
55606
|
type: integer
|
|
55612
55607
|
- in: path
|
|
55613
|
-
name:
|
|
55608
|
+
name: platform_key
|
|
55609
|
+
schema:
|
|
55610
|
+
type: string
|
|
55611
|
+
required: true
|
|
55612
|
+
- in: path
|
|
55613
|
+
name: username
|
|
55614
55614
|
schema:
|
|
55615
55615
|
type: string
|
|
55616
55616
|
required: true
|
|
@@ -55621,7 +55621,7 @@ paths:
|
|
|
55621
55621
|
responses:
|
|
55622
55622
|
'200':
|
|
55623
55623
|
description: No response body
|
|
55624
|
-
/api/credentials/orgs/{
|
|
55624
|
+
/api/credentials/orgs/{platform_key}/users/{username}/credentials-over-time/:
|
|
55625
55625
|
get:
|
|
55626
55626
|
operationId: credentials_orgs_users_credentials_over_time_retrieve
|
|
55627
55627
|
description: Get all credentials of a given tenant
|
|
@@ -55657,7 +55657,7 @@ paths:
|
|
|
55657
55657
|
default: true
|
|
55658
55658
|
description: Include main platform data
|
|
55659
55659
|
- in: path
|
|
55660
|
-
name:
|
|
55660
|
+
name: platform_key
|
|
55661
55661
|
schema:
|
|
55662
55662
|
type: string
|
|
55663
55663
|
required: true
|
|
@@ -55668,7 +55668,7 @@ paths:
|
|
|
55668
55668
|
minLength: 1
|
|
55669
55669
|
description: start date. ISO 8601
|
|
55670
55670
|
- in: path
|
|
55671
|
-
name:
|
|
55671
|
+
name: username
|
|
55672
55672
|
schema:
|
|
55673
55673
|
type: string
|
|
55674
55674
|
required: true
|
|
@@ -55683,7 +55683,132 @@ paths:
|
|
|
55683
55683
|
schema:
|
|
55684
55684
|
$ref: '#/components/schemas/OverTime'
|
|
55685
55685
|
description: ''
|
|
55686
|
-
/api/credentials/orgs/{
|
|
55686
|
+
/api/credentials/orgs/{platform_key}/users/{username}/external-mapping/:
|
|
55687
|
+
get:
|
|
55688
|
+
operationId: credentials_orgs_users_external_mapping_retrieve
|
|
55689
|
+
description: |-
|
|
55690
|
+
Retrieve external credential mappings for the platform.
|
|
55691
|
+
|
|
55692
|
+
Query Parameters:
|
|
55693
|
+
credential_id (str, optional): Filter by credential entity_id
|
|
55694
|
+
provider_name (str, optional): Filter by provider name
|
|
55695
|
+
page (int, optional): Page number
|
|
55696
|
+
page_size (int, optional): Items per page
|
|
55697
|
+
|
|
55698
|
+
Returns all mappings for the platform if the user is an admin.
|
|
55699
|
+
parameters:
|
|
55700
|
+
- in: path
|
|
55701
|
+
name: platform_key
|
|
55702
|
+
schema:
|
|
55703
|
+
type: string
|
|
55704
|
+
required: true
|
|
55705
|
+
- in: path
|
|
55706
|
+
name: username
|
|
55707
|
+
schema:
|
|
55708
|
+
type: string
|
|
55709
|
+
required: true
|
|
55710
|
+
tags:
|
|
55711
|
+
- credentials
|
|
55712
|
+
security:
|
|
55713
|
+
- PlatformApiKeyAuthentication: []
|
|
55714
|
+
responses:
|
|
55715
|
+
'200':
|
|
55716
|
+
content:
|
|
55717
|
+
application/json:
|
|
55718
|
+
schema:
|
|
55719
|
+
$ref: '#/components/schemas/ExternalCredentialMapping'
|
|
55720
|
+
description: ''
|
|
55721
|
+
post:
|
|
55722
|
+
operationId: credentials_orgs_users_external_mapping_create
|
|
55723
|
+
description: |-
|
|
55724
|
+
Create or update an external credential mapping.
|
|
55725
|
+
|
|
55726
|
+
If a mapping doesn't exist for the credential + platform + provider combination,
|
|
55727
|
+
it will be created. If it exists, it will be updated.
|
|
55728
|
+
|
|
55729
|
+
Request Body:
|
|
55730
|
+
{
|
|
55731
|
+
"credential_id": "credential-entity-id", // Required
|
|
55732
|
+
"provider_name": "accredible", // Required
|
|
55733
|
+
"external_template_id": "123456", // Optional
|
|
55734
|
+
"metadata": {} // Optional
|
|
55735
|
+
}
|
|
55736
|
+
|
|
55737
|
+
Returns:
|
|
55738
|
+
- 201 Created: When creating a new mapping
|
|
55739
|
+
- 200 OK: When updating an existing mapping
|
|
55740
|
+
parameters:
|
|
55741
|
+
- in: path
|
|
55742
|
+
name: platform_key
|
|
55743
|
+
schema:
|
|
55744
|
+
type: string
|
|
55745
|
+
required: true
|
|
55746
|
+
- in: path
|
|
55747
|
+
name: username
|
|
55748
|
+
schema:
|
|
55749
|
+
type: string
|
|
55750
|
+
required: true
|
|
55751
|
+
tags:
|
|
55752
|
+
- credentials
|
|
55753
|
+
requestBody:
|
|
55754
|
+
content:
|
|
55755
|
+
application/json:
|
|
55756
|
+
schema:
|
|
55757
|
+
$ref: '#/components/schemas/ExternalCredentialMapping'
|
|
55758
|
+
application/scim+json:
|
|
55759
|
+
schema:
|
|
55760
|
+
$ref: '#/components/schemas/ExternalCredentialMapping'
|
|
55761
|
+
application/x-www-form-urlencoded:
|
|
55762
|
+
schema:
|
|
55763
|
+
$ref: '#/components/schemas/ExternalCredentialMapping'
|
|
55764
|
+
multipart/form-data:
|
|
55765
|
+
schema:
|
|
55766
|
+
$ref: '#/components/schemas/ExternalCredentialMapping'
|
|
55767
|
+
'*/*':
|
|
55768
|
+
schema:
|
|
55769
|
+
$ref: '#/components/schemas/ExternalCredentialMapping'
|
|
55770
|
+
required: true
|
|
55771
|
+
security:
|
|
55772
|
+
- PlatformApiKeyAuthentication: []
|
|
55773
|
+
responses:
|
|
55774
|
+
'200':
|
|
55775
|
+
content:
|
|
55776
|
+
application/json:
|
|
55777
|
+
schema:
|
|
55778
|
+
$ref: '#/components/schemas/ExternalCredentialMapping'
|
|
55779
|
+
description: ''
|
|
55780
|
+
delete:
|
|
55781
|
+
operationId: credentials_orgs_users_external_mapping_destroy
|
|
55782
|
+
description: |-
|
|
55783
|
+
Delete an external credential mapping.
|
|
55784
|
+
|
|
55785
|
+
Request Body:
|
|
55786
|
+
{
|
|
55787
|
+
"credential_id": "credential-entity-id", // Required
|
|
55788
|
+
"provider_name": "accredible" // Required
|
|
55789
|
+
}
|
|
55790
|
+
|
|
55791
|
+
Returns:
|
|
55792
|
+
A JSON response confirming deletion
|
|
55793
|
+
parameters:
|
|
55794
|
+
- in: path
|
|
55795
|
+
name: platform_key
|
|
55796
|
+
schema:
|
|
55797
|
+
type: string
|
|
55798
|
+
required: true
|
|
55799
|
+
- in: path
|
|
55800
|
+
name: username
|
|
55801
|
+
schema:
|
|
55802
|
+
type: string
|
|
55803
|
+
required: true
|
|
55804
|
+
tags:
|
|
55805
|
+
- credentials
|
|
55806
|
+
security:
|
|
55807
|
+
- PlatformApiKeyAuthentication: []
|
|
55808
|
+
responses:
|
|
55809
|
+
'204':
|
|
55810
|
+
description: No response body
|
|
55811
|
+
/api/credentials/orgs/{platform_key}/users/{username}/images/:
|
|
55687
55812
|
get:
|
|
55688
55813
|
operationId: credentials_orgs_users_images_retrieve
|
|
55689
55814
|
description: |-
|
|
@@ -55742,12 +55867,12 @@ paths:
|
|
|
55742
55867
|
- Only authenticated users with appropriate permissions can upload and retrieve images
|
|
55743
55868
|
parameters:
|
|
55744
55869
|
- in: path
|
|
55745
|
-
name:
|
|
55870
|
+
name: platform_key
|
|
55746
55871
|
schema:
|
|
55747
55872
|
type: string
|
|
55748
55873
|
required: true
|
|
55749
55874
|
- in: path
|
|
55750
|
-
name:
|
|
55875
|
+
name: username
|
|
55751
55876
|
schema:
|
|
55752
55877
|
type: string
|
|
55753
55878
|
required: true
|
|
@@ -55820,12 +55945,12 @@ paths:
|
|
|
55820
55945
|
- Only authenticated users with appropriate permissions can upload and retrieve images
|
|
55821
55946
|
parameters:
|
|
55822
55947
|
- in: path
|
|
55823
|
-
name:
|
|
55948
|
+
name: platform_key
|
|
55824
55949
|
schema:
|
|
55825
55950
|
type: string
|
|
55826
55951
|
required: true
|
|
55827
55952
|
- in: path
|
|
55828
|
-
name:
|
|
55953
|
+
name: username
|
|
55829
55954
|
schema:
|
|
55830
55955
|
type: string
|
|
55831
55956
|
required: true
|
|
@@ -55857,7 +55982,7 @@ paths:
|
|
|
55857
55982
|
schema:
|
|
55858
55983
|
$ref: '#/components/schemas/UploadedImage'
|
|
55859
55984
|
description: ''
|
|
55860
|
-
/api/credentials/orgs/{
|
|
55985
|
+
/api/credentials/orgs/{platform_key}/users/{username}/issuers/:
|
|
55861
55986
|
get:
|
|
55862
55987
|
operationId: credentials_orgs_users_issuers_retrieve
|
|
55863
55988
|
description: |-
|
|
@@ -55924,7 +56049,7 @@ paths:
|
|
|
55924
56049
|
- Only authenticated users with appropriate permissions can manage issuers
|
|
55925
56050
|
parameters:
|
|
55926
56051
|
- in: path
|
|
55927
|
-
name:
|
|
56052
|
+
name: platform_key
|
|
55928
56053
|
schema:
|
|
55929
56054
|
type: string
|
|
55930
56055
|
required: true
|
|
@@ -55935,7 +56060,7 @@ paths:
|
|
|
55935
56060
|
minLength: 1
|
|
55936
56061
|
required: true
|
|
55937
56062
|
- in: path
|
|
55938
|
-
name:
|
|
56063
|
+
name: username
|
|
55939
56064
|
schema:
|
|
55940
56065
|
type: string
|
|
55941
56066
|
required: true
|
|
@@ -56016,7 +56141,7 @@ paths:
|
|
|
56016
56141
|
- Only authenticated users with appropriate permissions can manage issuers
|
|
56017
56142
|
parameters:
|
|
56018
56143
|
- in: path
|
|
56019
|
-
name:
|
|
56144
|
+
name: platform_key
|
|
56020
56145
|
schema:
|
|
56021
56146
|
type: string
|
|
56022
56147
|
required: true
|
|
@@ -56027,7 +56152,7 @@ paths:
|
|
|
56027
56152
|
minLength: 1
|
|
56028
56153
|
required: true
|
|
56029
56154
|
- in: path
|
|
56030
|
-
name:
|
|
56155
|
+
name: username
|
|
56031
56156
|
schema:
|
|
56032
56157
|
type: string
|
|
56033
56158
|
required: true
|
|
@@ -56060,7 +56185,7 @@ paths:
|
|
|
56060
56185
|
schema:
|
|
56061
56186
|
$ref: '#/components/schemas/Issuer'
|
|
56062
56187
|
description: ''
|
|
56063
|
-
/api/credentials/orgs/{
|
|
56188
|
+
/api/credentials/orgs/{platform_key}/users/{username}/issuers/{entity_id}:
|
|
56064
56189
|
get:
|
|
56065
56190
|
operationId: credentials_orgs_users_issuers_retrieve_2
|
|
56066
56191
|
description: |-
|
|
@@ -56136,12 +56261,12 @@ paths:
|
|
|
56136
56261
|
type: string
|
|
56137
56262
|
required: true
|
|
56138
56263
|
- in: path
|
|
56139
|
-
name:
|
|
56264
|
+
name: platform_key
|
|
56140
56265
|
schema:
|
|
56141
56266
|
type: string
|
|
56142
56267
|
required: true
|
|
56143
56268
|
- in: path
|
|
56144
|
-
name:
|
|
56269
|
+
name: username
|
|
56145
56270
|
schema:
|
|
56146
56271
|
type: string
|
|
56147
56272
|
required: true
|
|
@@ -56231,12 +56356,12 @@ paths:
|
|
|
56231
56356
|
type: string
|
|
56232
56357
|
required: true
|
|
56233
56358
|
- in: path
|
|
56234
|
-
name:
|
|
56359
|
+
name: platform_key
|
|
56235
56360
|
schema:
|
|
56236
56361
|
type: string
|
|
56237
56362
|
required: true
|
|
56238
56363
|
- in: path
|
|
56239
|
-
name:
|
|
56364
|
+
name: username
|
|
56240
56365
|
schema:
|
|
56241
56366
|
type: string
|
|
56242
56367
|
required: true
|
|
@@ -56344,12 +56469,12 @@ paths:
|
|
|
56344
56469
|
type: string
|
|
56345
56470
|
required: true
|
|
56346
56471
|
- in: path
|
|
56347
|
-
name:
|
|
56472
|
+
name: platform_key
|
|
56348
56473
|
schema:
|
|
56349
56474
|
type: string
|
|
56350
56475
|
required: true
|
|
56351
56476
|
- in: path
|
|
56352
|
-
name:
|
|
56477
|
+
name: username
|
|
56353
56478
|
schema:
|
|
56354
56479
|
type: string
|
|
56355
56480
|
required: true
|
|
@@ -56360,7 +56485,7 @@ paths:
|
|
|
56360
56485
|
responses:
|
|
56361
56486
|
'204':
|
|
56362
56487
|
description: No response body
|
|
56363
|
-
/api/credentials/orgs/{
|
|
56488
|
+
/api/credentials/orgs/{platform_key}/users/{username}/issuers/authority/:
|
|
56364
56489
|
post:
|
|
56365
56490
|
operationId: credentials_orgs_users_issuers_authority_create
|
|
56366
56491
|
description: |-
|
|
@@ -56407,12 +56532,12 @@ paths:
|
|
|
56407
56532
|
- Only authenticated users with appropriate permissions can manage authorities
|
|
56408
56533
|
parameters:
|
|
56409
56534
|
- in: path
|
|
56410
|
-
name:
|
|
56535
|
+
name: platform_key
|
|
56411
56536
|
schema:
|
|
56412
56537
|
type: string
|
|
56413
56538
|
required: true
|
|
56414
56539
|
- in: path
|
|
56415
|
-
name:
|
|
56540
|
+
name: username
|
|
56416
56541
|
schema:
|
|
56417
56542
|
type: string
|
|
56418
56543
|
required: true
|
|
@@ -56445,6 +56570,136 @@ paths:
|
|
|
56445
56570
|
schema:
|
|
56446
56571
|
$ref: '#/components/schemas/IssuerAuthority'
|
|
56447
56572
|
description: ''
|
|
56573
|
+
/api/credentials/orgs/{platform_key}/users/{username}/provider-config/:
|
|
56574
|
+
get:
|
|
56575
|
+
operationId: credentials_orgs_users_provider_config_retrieve
|
|
56576
|
+
description: |-
|
|
56577
|
+
Retrieve provider configurations for the platform.
|
|
56578
|
+
|
|
56579
|
+
Query Parameters:
|
|
56580
|
+
provider_name (str, optional): Filter to a specific provider
|
|
56581
|
+
page (int, optional): Page number
|
|
56582
|
+
page_size (int, optional): Items per page
|
|
56583
|
+
|
|
56584
|
+
Returns all configurations for the platform if the user is an admin.
|
|
56585
|
+
parameters:
|
|
56586
|
+
- in: path
|
|
56587
|
+
name: platform_key
|
|
56588
|
+
schema:
|
|
56589
|
+
type: string
|
|
56590
|
+
required: true
|
|
56591
|
+
- in: path
|
|
56592
|
+
name: username
|
|
56593
|
+
schema:
|
|
56594
|
+
type: string
|
|
56595
|
+
required: true
|
|
56596
|
+
tags:
|
|
56597
|
+
- credentials
|
|
56598
|
+
security:
|
|
56599
|
+
- PlatformApiKeyAuthentication: []
|
|
56600
|
+
responses:
|
|
56601
|
+
'200':
|
|
56602
|
+
content:
|
|
56603
|
+
application/json:
|
|
56604
|
+
schema:
|
|
56605
|
+
$ref: '#/components/schemas/CredentialProviderConfig'
|
|
56606
|
+
description: ''
|
|
56607
|
+
post:
|
|
56608
|
+
operationId: credentials_orgs_users_provider_config_create
|
|
56609
|
+
description: |-
|
|
56610
|
+
Create or update a provider configuration.
|
|
56611
|
+
|
|
56612
|
+
If a configuration doesn't exist for the platform and provider, it will be created.
|
|
56613
|
+
If it exists, it will be updated.
|
|
56614
|
+
|
|
56615
|
+
Request Body:
|
|
56616
|
+
{
|
|
56617
|
+
"provider_name": "accredible", // Required
|
|
56618
|
+
"config": {...}, // Optional
|
|
56619
|
+
"enabled": true // Optional
|
|
56620
|
+
}
|
|
56621
|
+
|
|
56622
|
+
Returns:
|
|
56623
|
+
- 201 Created: When creating a new configuration
|
|
56624
|
+
- 200 OK: When updating an existing configuration
|
|
56625
|
+
parameters:
|
|
56626
|
+
- in: path
|
|
56627
|
+
name: platform_key
|
|
56628
|
+
schema:
|
|
56629
|
+
type: string
|
|
56630
|
+
required: true
|
|
56631
|
+
- in: path
|
|
56632
|
+
name: username
|
|
56633
|
+
schema:
|
|
56634
|
+
type: string
|
|
56635
|
+
required: true
|
|
56636
|
+
tags:
|
|
56637
|
+
- credentials
|
|
56638
|
+
requestBody:
|
|
56639
|
+
content:
|
|
56640
|
+
application/json:
|
|
56641
|
+
schema:
|
|
56642
|
+
$ref: '#/components/schemas/CredentialProviderConfig'
|
|
56643
|
+
application/scim+json:
|
|
56644
|
+
schema:
|
|
56645
|
+
$ref: '#/components/schemas/CredentialProviderConfig'
|
|
56646
|
+
application/x-www-form-urlencoded:
|
|
56647
|
+
schema:
|
|
56648
|
+
$ref: '#/components/schemas/CredentialProviderConfig'
|
|
56649
|
+
multipart/form-data:
|
|
56650
|
+
schema:
|
|
56651
|
+
$ref: '#/components/schemas/CredentialProviderConfig'
|
|
56652
|
+
'*/*':
|
|
56653
|
+
schema:
|
|
56654
|
+
$ref: '#/components/schemas/CredentialProviderConfig'
|
|
56655
|
+
required: true
|
|
56656
|
+
security:
|
|
56657
|
+
- PlatformApiKeyAuthentication: []
|
|
56658
|
+
responses:
|
|
56659
|
+
'200':
|
|
56660
|
+
content:
|
|
56661
|
+
application/json:
|
|
56662
|
+
schema:
|
|
56663
|
+
$ref: '#/components/schemas/CredentialProviderConfig'
|
|
56664
|
+
description: ''
|
|
56665
|
+
delete:
|
|
56666
|
+
operationId: credentials_orgs_users_provider_config_destroy
|
|
56667
|
+
description: |-
|
|
56668
|
+
Deactivate a provider configuration (sets enabled=False).
|
|
56669
|
+
|
|
56670
|
+
Request Body:
|
|
56671
|
+
{
|
|
56672
|
+
"provider_name": "accredible" // Required
|
|
56673
|
+
}
|
|
56674
|
+
parameters:
|
|
56675
|
+
- in: path
|
|
56676
|
+
name: platform_key
|
|
56677
|
+
schema:
|
|
56678
|
+
type: string
|
|
56679
|
+
required: true
|
|
56680
|
+
- in: path
|
|
56681
|
+
name: username
|
|
56682
|
+
schema:
|
|
56683
|
+
type: string
|
|
56684
|
+
required: true
|
|
56685
|
+
tags:
|
|
56686
|
+
- credentials
|
|
56687
|
+
security:
|
|
56688
|
+
- PlatformApiKeyAuthentication: []
|
|
56689
|
+
responses:
|
|
56690
|
+
'204':
|
|
56691
|
+
description: No response body
|
|
56692
|
+
/api/credentials/providers/:
|
|
56693
|
+
get:
|
|
56694
|
+
operationId: credentials_providers_retrieve
|
|
56695
|
+
description: Get list of enabled credential providers with pagination.
|
|
56696
|
+
tags:
|
|
56697
|
+
- credentials
|
|
56698
|
+
security:
|
|
56699
|
+
- PlatformApiKeyAuthentication: []
|
|
56700
|
+
responses:
|
|
56701
|
+
'200':
|
|
56702
|
+
description: No response body
|
|
56448
56703
|
/api/credentials/public/assertions/{entity_id}/:
|
|
56449
56704
|
get:
|
|
56450
56705
|
operationId: credentials_public_assertions_retrieve
|
|
@@ -72734,6 +72989,53 @@ components:
|
|
|
72734
72989
|
- credential_url
|
|
72735
72990
|
- name
|
|
72736
72991
|
- revoked
|
|
72992
|
+
CredentialProviderConfig:
|
|
72993
|
+
type: object
|
|
72994
|
+
description: |-
|
|
72995
|
+
Serializer for CredentialProviderConfig model.
|
|
72996
|
+
|
|
72997
|
+
Serializes provider configuration including platform, provider name,
|
|
72998
|
+
config JSON, enabled status, and timestamps.
|
|
72999
|
+
properties:
|
|
73000
|
+
id:
|
|
73001
|
+
type: integer
|
|
73002
|
+
readOnly: true
|
|
73003
|
+
platform_key:
|
|
73004
|
+
type: string
|
|
73005
|
+
readOnly: true
|
|
73006
|
+
platform_name:
|
|
73007
|
+
type: string
|
|
73008
|
+
readOnly: true
|
|
73009
|
+
provider_name:
|
|
73010
|
+
type: string
|
|
73011
|
+
description: The credential provider name (references CredentialProvider.name)
|
|
73012
|
+
maxLength: 100
|
|
73013
|
+
provider_name_display:
|
|
73014
|
+
type: string
|
|
73015
|
+
description: Get display name from provider if available, otherwise use
|
|
73016
|
+
provider_name.
|
|
73017
|
+
readOnly: true
|
|
73018
|
+
config:
|
|
73019
|
+
description: Provider-specific configuration in JSON format
|
|
73020
|
+
enabled:
|
|
73021
|
+
type: boolean
|
|
73022
|
+
description: Whether this provider integration is enabled for the platform
|
|
73023
|
+
created:
|
|
73024
|
+
type: string
|
|
73025
|
+
format: date-time
|
|
73026
|
+
readOnly: true
|
|
73027
|
+
updated:
|
|
73028
|
+
type: string
|
|
73029
|
+
format: date-time
|
|
73030
|
+
readOnly: true
|
|
73031
|
+
required:
|
|
73032
|
+
- created
|
|
73033
|
+
- id
|
|
73034
|
+
- platform_key
|
|
73035
|
+
- platform_name
|
|
73036
|
+
- provider_name
|
|
73037
|
+
- provider_name_display
|
|
73038
|
+
- updated
|
|
72737
73039
|
CredentialRequest:
|
|
72738
73040
|
type: object
|
|
72739
73041
|
properties:
|
|
@@ -73810,6 +74112,77 @@ components:
|
|
|
73810
74112
|
- updated_at
|
|
73811
74113
|
- user
|
|
73812
74114
|
- user_info
|
|
74115
|
+
ExternalCredentialMapping:
|
|
74116
|
+
type: object
|
|
74117
|
+
description: |-
|
|
74118
|
+
Serializer for ExternalCredentialMapping model.
|
|
74119
|
+
|
|
74120
|
+
Serializes external credential mappings including credential, platform,
|
|
74121
|
+
provider, external_template_id, and metadata.
|
|
74122
|
+
properties:
|
|
74123
|
+
id:
|
|
74124
|
+
type: integer
|
|
74125
|
+
readOnly: true
|
|
74126
|
+
credential_id:
|
|
74127
|
+
type: string
|
|
74128
|
+
readOnly: true
|
|
74129
|
+
credential_name:
|
|
74130
|
+
type: string
|
|
74131
|
+
readOnly: true
|
|
74132
|
+
platform_key:
|
|
74133
|
+
type: string
|
|
74134
|
+
readOnly: true
|
|
74135
|
+
platform_name:
|
|
74136
|
+
type: string
|
|
74137
|
+
readOnly: true
|
|
74138
|
+
provider:
|
|
74139
|
+
type: integer
|
|
74140
|
+
readOnly: true
|
|
74141
|
+
nullable: true
|
|
74142
|
+
description: The credential provider
|
|
74143
|
+
provider_name:
|
|
74144
|
+
type: string
|
|
74145
|
+
description: The credential provider name (references CredentialProvider.name)
|
|
74146
|
+
maxLength: 100
|
|
74147
|
+
provider_name_display:
|
|
74148
|
+
type: string
|
|
74149
|
+
description: Get display name from provider if available, otherwise use
|
|
74150
|
+
provider_name.
|
|
74151
|
+
readOnly: true
|
|
74152
|
+
external_template_id:
|
|
74153
|
+
type: string
|
|
74154
|
+
nullable: true
|
|
74155
|
+
description: The template ID in the external system (e.g., Accredible template
|
|
74156
|
+
ID)
|
|
74157
|
+
maxLength: 255
|
|
74158
|
+
group_id:
|
|
74159
|
+
type: string
|
|
74160
|
+
nullable: true
|
|
74161
|
+
description: The group ID in the external system (e.g., Accredible group
|
|
74162
|
+
ID). If not set, will fall back to the provider config's group_id.
|
|
74163
|
+
maxLength: 255
|
|
74164
|
+
metadata:
|
|
74165
|
+
description: Additional metadata stored as JSON (for general mapping information,
|
|
74166
|
+
not sync status)
|
|
74167
|
+
created:
|
|
74168
|
+
type: string
|
|
74169
|
+
format: date-time
|
|
74170
|
+
readOnly: true
|
|
74171
|
+
updated:
|
|
74172
|
+
type: string
|
|
74173
|
+
format: date-time
|
|
74174
|
+
readOnly: true
|
|
74175
|
+
required:
|
|
74176
|
+
- created
|
|
74177
|
+
- credential_id
|
|
74178
|
+
- credential_name
|
|
74179
|
+
- id
|
|
74180
|
+
- platform_key
|
|
74181
|
+
- platform_name
|
|
74182
|
+
- provider
|
|
74183
|
+
- provider_name
|
|
74184
|
+
- provider_name_display
|
|
74185
|
+
- updated
|
|
73813
74186
|
ExternalServiceInfo:
|
|
73814
74187
|
type: object
|
|
73815
74188
|
properties:
|