@inklok/api-spec 7.7.1 → 7.8.0
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/openapi.yaml +269 -93
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -8,7 +8,7 @@ info:
|
|
|
8
8
|
Authenticate using an API key or bearer token, then use the resources below to manage
|
|
9
9
|
templates, agreements, documents, and signing. For your first integration, start with
|
|
10
10
|
the Quick Start guide.
|
|
11
|
-
version: "7.
|
|
11
|
+
version: "7.8.0"
|
|
12
12
|
contact:
|
|
13
13
|
name: Inklok API Support
|
|
14
14
|
email: support@inklok.com
|
|
@@ -129,7 +129,7 @@ paths:
|
|
|
129
129
|
summary: List crypto identities
|
|
130
130
|
x-visibility: internal
|
|
131
131
|
description: |
|
|
132
|
-
Returns
|
|
132
|
+
Returns registered public keys for authenticated crypto principals visible to the caller.
|
|
133
133
|
x-required-roles: [signer, workflow-editor, workflow-operator, agreement-auditor, organization-admin]
|
|
134
134
|
tags:
|
|
135
135
|
- Crypto Identities
|
|
@@ -144,7 +144,7 @@ paths:
|
|
|
144
144
|
required: false
|
|
145
145
|
schema:
|
|
146
146
|
type: string
|
|
147
|
-
enum: [
|
|
147
|
+
enum: [USER, PARTY, ORG_ROLE, WORKSPACE_ROLE]
|
|
148
148
|
- name: subjectId
|
|
149
149
|
in: query
|
|
150
150
|
required: false
|
|
@@ -205,7 +205,7 @@ paths:
|
|
|
205
205
|
summary: Upsert crypto identity
|
|
206
206
|
x-visibility: internal
|
|
207
207
|
description: |
|
|
208
|
-
Stores a
|
|
208
|
+
Stores a registered public key for a versioned crypto principal. Private keys are never accepted by this API.
|
|
209
209
|
x-required-roles: [signer, workflow-editor, workflow-operator, agreement-auditor, organization-admin]
|
|
210
210
|
tags:
|
|
211
211
|
- Crypto Identities
|
|
@@ -2564,17 +2564,14 @@ paths:
|
|
|
2564
2564
|
'500':
|
|
2565
2565
|
$ref: '#/components/responses/InternalServerError'
|
|
2566
2566
|
|
|
2567
|
-
/v1/agreements/{executionId}/
|
|
2567
|
+
/v1/agreements/{executionId}/key-envelopes:
|
|
2568
2568
|
post:
|
|
2569
|
-
operationId:
|
|
2570
|
-
summary: Append
|
|
2569
|
+
operationId: appendAgreementKeyEnvelopesV1
|
|
2570
|
+
summary: Append client-created scope key envelopes
|
|
2571
2571
|
x-visibility: internal
|
|
2572
2572
|
description: |
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
the requested RSA-OAEP public keys and never persists plaintext key material.
|
|
2576
|
-
This is a cryptographic access grant event. Inklok commits the envelope append
|
|
2577
|
-
and KEY_ACCESS_GRANTED audit record atomically, or fail the request without changing access.
|
|
2573
|
+
Stores envelopes created by an authorized client. The server validates scope
|
|
2574
|
+
authorization but never unwraps or re-wraps a scope DEK.
|
|
2578
2575
|
x-required-roles: [workflow-operator, organization-admin]
|
|
2579
2576
|
tags:
|
|
2580
2577
|
- Agreements
|
|
@@ -2591,25 +2588,27 @@ paths:
|
|
|
2591
2588
|
application/json:
|
|
2592
2589
|
schema:
|
|
2593
2590
|
type: object
|
|
2594
|
-
required: [
|
|
2591
|
+
required: [envelopes]
|
|
2595
2592
|
properties:
|
|
2596
|
-
|
|
2593
|
+
envelopes:
|
|
2597
2594
|
type: array
|
|
2598
2595
|
minItems: 1
|
|
2599
2596
|
maxItems: 50
|
|
2600
2597
|
items:
|
|
2601
|
-
|
|
2598
|
+
$ref: '#/components/schemas/KeyEnvelope'
|
|
2602
2599
|
responses:
|
|
2603
2600
|
'200':
|
|
2604
|
-
description: Updated
|
|
2601
|
+
description: Updated scope envelope set
|
|
2605
2602
|
content:
|
|
2606
2603
|
application/json:
|
|
2607
2604
|
schema:
|
|
2608
2605
|
type: object
|
|
2609
|
-
required: [
|
|
2606
|
+
required: [envelopes, appended]
|
|
2610
2607
|
properties:
|
|
2611
|
-
|
|
2612
|
-
|
|
2608
|
+
envelopes:
|
|
2609
|
+
type: array
|
|
2610
|
+
items:
|
|
2611
|
+
$ref: '#/components/schemas/KeyEnvelope'
|
|
2613
2612
|
appended:
|
|
2614
2613
|
type: integer
|
|
2615
2614
|
'400':
|
|
@@ -2625,6 +2624,63 @@ paths:
|
|
|
2625
2624
|
'500':
|
|
2626
2625
|
$ref: '#/components/responses/InternalServerError'
|
|
2627
2626
|
|
|
2627
|
+
/v1/signing/managed-regrant:
|
|
2628
|
+
post:
|
|
2629
|
+
operationId: managedScopeRegrant
|
|
2630
|
+
summary: Regrant authorized managed scope envelopes
|
|
2631
|
+
x-visibility: internal
|
|
2632
|
+
x-required-roles: []
|
|
2633
|
+
description: |
|
|
2634
|
+
Derives the caller's authorized managed scopes from the verified Cognito
|
|
2635
|
+
membership or signer token, recovers those scope DEKs inside the managed
|
|
2636
|
+
recovery boundary, and returns only RSA-OAEP envelopes for the caller's
|
|
2637
|
+
validated registered transient public key. The request cannot select scope
|
|
2638
|
+
IDs and the response never contains plaintext values or raw DEKs.
|
|
2639
|
+
tags:
|
|
2640
|
+
- Signing
|
|
2641
|
+
security:
|
|
2642
|
+
- bearerAuth: []
|
|
2643
|
+
requestBody:
|
|
2644
|
+
required: true
|
|
2645
|
+
content:
|
|
2646
|
+
application/json:
|
|
2647
|
+
schema:
|
|
2648
|
+
type: object
|
|
2649
|
+
required: [executionId, destinationPublicKeyId]
|
|
2650
|
+
properties:
|
|
2651
|
+
executionId:
|
|
2652
|
+
type: string
|
|
2653
|
+
destinationPublicKeyId:
|
|
2654
|
+
type: string
|
|
2655
|
+
responses:
|
|
2656
|
+
'200':
|
|
2657
|
+
description: Scoped managed envelopes for the authenticated principal
|
|
2658
|
+
content:
|
|
2659
|
+
application/json:
|
|
2660
|
+
schema:
|
|
2661
|
+
type: object
|
|
2662
|
+
required: [keyScopes, envelopes]
|
|
2663
|
+
properties:
|
|
2664
|
+
keyScopes:
|
|
2665
|
+
type: array
|
|
2666
|
+
items:
|
|
2667
|
+
$ref: '#/components/schemas/KeyScope'
|
|
2668
|
+
envelopes:
|
|
2669
|
+
type: array
|
|
2670
|
+
items:
|
|
2671
|
+
$ref: '#/components/schemas/KeyEnvelope'
|
|
2672
|
+
'400':
|
|
2673
|
+
$ref: '#/components/responses/BadRequest'
|
|
2674
|
+
'401':
|
|
2675
|
+
$ref: '#/components/responses/Unauthorized'
|
|
2676
|
+
'403':
|
|
2677
|
+
$ref: '#/components/responses/Forbidden'
|
|
2678
|
+
'404':
|
|
2679
|
+
$ref: '#/components/responses/NotFound'
|
|
2680
|
+
'500':
|
|
2681
|
+
$ref: '#/components/responses/InternalServerError'
|
|
2682
|
+
x-inklok-lambda: managed-scope-regrant
|
|
2683
|
+
|
|
2628
2684
|
/v1/agreements/{executionId}/resend-completion-emails:
|
|
2629
2685
|
post:
|
|
2630
2686
|
operationId: agreementResendCompletionEmails
|
|
@@ -3117,17 +3173,17 @@ paths:
|
|
|
3117
3173
|
$ref: '#/components/responses/InternalServerError'
|
|
3118
3174
|
x-inklok-lambda: signing-acknowledge-execution
|
|
3119
3175
|
|
|
3120
|
-
/v1/signing/
|
|
3176
|
+
/v1/signing/scope-envelopes:
|
|
3121
3177
|
post:
|
|
3122
|
-
operationId:
|
|
3123
|
-
summary: Resolve signer-
|
|
3178
|
+
operationId: resolveSigningScopeEnvelopes
|
|
3179
|
+
summary: Resolve signer-authorized scope envelopes
|
|
3124
3180
|
x-visibility: internal
|
|
3125
3181
|
description: |
|
|
3126
3182
|
Returns wrapped key material scoped to the authenticated signer.
|
|
3127
3183
|
|
|
3128
3184
|
- Requires a signing access token
|
|
3129
3185
|
- Returns document key material for current PDF compatibility
|
|
3130
|
-
- Returns
|
|
3186
|
+
- Returns only scope envelopes authorized for the signer
|
|
3131
3187
|
- Audited for signer access
|
|
3132
3188
|
tags:
|
|
3133
3189
|
- Signing
|
|
@@ -3147,7 +3203,7 @@ paths:
|
|
|
3147
3203
|
executionId: "exec_123"
|
|
3148
3204
|
responses:
|
|
3149
3205
|
'200':
|
|
3150
|
-
description: Wrapped
|
|
3206
|
+
description: Wrapped document material and signer-visible scoped field envelopes
|
|
3151
3207
|
content:
|
|
3152
3208
|
application/json:
|
|
3153
3209
|
schema:
|
|
@@ -3163,34 +3219,20 @@ paths:
|
|
|
3163
3219
|
alg:
|
|
3164
3220
|
type: string
|
|
3165
3221
|
enum: [KMS-WRAPPED-BASE64, RSA-OAEP]
|
|
3166
|
-
|
|
3167
|
-
type:
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
type: string
|
|
3175
|
-
alg:
|
|
3176
|
-
type: string
|
|
3177
|
-
enum: [KMS-WRAPPED-BASE64, RSA-OAEP]
|
|
3178
|
-
executionKey:
|
|
3179
|
-
$ref: '#/components/schemas/ExecutionKeyGrantSet'
|
|
3222
|
+
keyScopes:
|
|
3223
|
+
type: array
|
|
3224
|
+
items:
|
|
3225
|
+
$ref: '#/components/schemas/KeyScope'
|
|
3226
|
+
envelopes:
|
|
3227
|
+
type: array
|
|
3228
|
+
items:
|
|
3229
|
+
$ref: '#/components/schemas/KeyEnvelope'
|
|
3180
3230
|
example:
|
|
3181
3231
|
documentDek:
|
|
3182
3232
|
encrypted: "base64..."
|
|
3183
3233
|
alg: "KMS-WRAPPED-BASE64"
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
keyId: "ek_01H..."
|
|
3187
|
-
alg: "INKLOK-EK-AES-256-GCM-RSA-OAEP-256"
|
|
3188
|
-
envelopes:
|
|
3189
|
-
- keyId: "ek_01H..."
|
|
3190
|
-
subjectId: "party_abc"
|
|
3191
|
-
subjectType: "signer"
|
|
3192
|
-
alg: "RSA-OAEP-256"
|
|
3193
|
-
wrappedKey: "base64..."
|
|
3234
|
+
keyScopes: []
|
|
3235
|
+
envelopes: []
|
|
3194
3236
|
'400':
|
|
3195
3237
|
$ref: '#/components/responses/BadRequest'
|
|
3196
3238
|
'401':
|
|
@@ -3201,7 +3243,7 @@ paths:
|
|
|
3201
3243
|
$ref: '#/components/responses/NotFound'
|
|
3202
3244
|
'500':
|
|
3203
3245
|
$ref: '#/components/responses/InternalServerError'
|
|
3204
|
-
x-inklok-lambda: signing-
|
|
3246
|
+
x-inklok-lambda: signing-scope-envelopes
|
|
3205
3247
|
|
|
3206
3248
|
components:
|
|
3207
3249
|
securitySchemes:
|
|
@@ -3699,6 +3741,7 @@ components:
|
|
|
3699
3741
|
additionalProperties: false
|
|
3700
3742
|
required:
|
|
3701
3743
|
- source
|
|
3744
|
+
- productPlan
|
|
3702
3745
|
- currentPlan
|
|
3703
3746
|
- status
|
|
3704
3747
|
- billingInterval
|
|
@@ -3706,14 +3749,19 @@ components:
|
|
|
3706
3749
|
- currentBillingPeriodEnd
|
|
3707
3750
|
- renewalDate
|
|
3708
3751
|
- cancelAtPeriodEnd
|
|
3752
|
+
- canceledAt
|
|
3709
3753
|
- paddleCustomerId
|
|
3710
3754
|
- paddleSubscriptionId
|
|
3711
3755
|
- nextBilledAt
|
|
3712
3756
|
- nextExpectedBillingTransition
|
|
3757
|
+
- reconciliationRequested
|
|
3713
3758
|
properties:
|
|
3714
3759
|
source:
|
|
3715
3760
|
type: string
|
|
3716
3761
|
enum: [PADDLE, INTERNAL]
|
|
3762
|
+
productPlan:
|
|
3763
|
+
type: string
|
|
3764
|
+
enum: [free, pro, team, enterprise]
|
|
3717
3765
|
currentPlan:
|
|
3718
3766
|
type: string
|
|
3719
3767
|
enum: [free, pro, team, enterprise]
|
|
@@ -3736,6 +3784,10 @@ components:
|
|
|
3736
3784
|
nullable: true
|
|
3737
3785
|
cancelAtPeriodEnd:
|
|
3738
3786
|
type: boolean
|
|
3787
|
+
canceledAt:
|
|
3788
|
+
type: string
|
|
3789
|
+
format: date-time
|
|
3790
|
+
nullable: true
|
|
3739
3791
|
paddleCustomerId:
|
|
3740
3792
|
type: string
|
|
3741
3793
|
nullable: true
|
|
@@ -3750,12 +3802,15 @@ components:
|
|
|
3750
3802
|
type: string
|
|
3751
3803
|
format: date-time
|
|
3752
3804
|
nullable: true
|
|
3805
|
+
reconciliationRequested:
|
|
3806
|
+
type: boolean
|
|
3753
3807
|
|
|
3754
3808
|
MeBillingResponse:
|
|
3755
3809
|
type: object
|
|
3756
3810
|
additionalProperties: false
|
|
3757
3811
|
required:
|
|
3758
3812
|
- accountId
|
|
3813
|
+
- currentPlan
|
|
3759
3814
|
- plan
|
|
3760
3815
|
- subscriptionStatus
|
|
3761
3816
|
- limits
|
|
@@ -3763,6 +3818,9 @@ components:
|
|
|
3763
3818
|
properties:
|
|
3764
3819
|
accountId:
|
|
3765
3820
|
type: string
|
|
3821
|
+
currentPlan:
|
|
3822
|
+
type: string
|
|
3823
|
+
enum: [free, pro, team, enterprise]
|
|
3766
3824
|
plan:
|
|
3767
3825
|
type: string
|
|
3768
3826
|
enum: [free, pro, team, enterprise]
|
|
@@ -4600,7 +4658,7 @@ components:
|
|
|
4600
4658
|
type: string
|
|
4601
4659
|
nullable: true
|
|
4602
4660
|
plan:
|
|
4603
|
-
$ref: '#/components/schemas/
|
|
4661
|
+
$ref: '#/components/schemas/PlatformPlan'
|
|
4604
4662
|
totalApiRequests:
|
|
4605
4663
|
type: integer
|
|
4606
4664
|
minimum: 0
|
|
@@ -5603,88 +5661,203 @@ components:
|
|
|
5603
5661
|
$ref: '#/components/schemas/CreateExecutionParticipantInput'
|
|
5604
5662
|
crypto:
|
|
5605
5663
|
type: object
|
|
5606
|
-
required: [
|
|
5664
|
+
required: [keyScopes]
|
|
5607
5665
|
description: Security material used to protect agreement field values.
|
|
5608
5666
|
properties:
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5667
|
+
keyScopes:
|
|
5668
|
+
type: array
|
|
5669
|
+
minItems: 1
|
|
5670
|
+
items:
|
|
5671
|
+
$ref: '#/components/schemas/KeyScope'
|
|
5672
|
+
envelopes:
|
|
5673
|
+
type: array
|
|
5674
|
+
items:
|
|
5675
|
+
$ref: '#/components/schemas/KeyEnvelope'
|
|
5676
|
+
managedRecoveryCapabilities:
|
|
5677
|
+
type: array
|
|
5678
|
+
items:
|
|
5679
|
+
$ref: '#/components/schemas/ManagedRecoveryCapability'
|
|
5680
|
+
|
|
5681
|
+
KeyScope:
|
|
5613
5682
|
type: object
|
|
5614
|
-
|
|
5615
|
-
required: [keyId, alg, envelopes]
|
|
5683
|
+
required: [keyScopeId, type, version]
|
|
5616
5684
|
properties:
|
|
5617
|
-
|
|
5685
|
+
keyScopeId:
|
|
5618
5686
|
type: string
|
|
5619
|
-
|
|
5620
|
-
alg:
|
|
5687
|
+
agreementId:
|
|
5621
5688
|
type: string
|
|
5622
|
-
|
|
5623
|
-
|
|
5689
|
+
type:
|
|
5690
|
+
type: string
|
|
5691
|
+
enum: [PARTY_PRIVATE, SHARED, ORG_AUTHORIZED, WORKSPACE_AUTHORIZED]
|
|
5692
|
+
partyId:
|
|
5624
5693
|
type: string
|
|
5625
|
-
|
|
5626
|
-
description: Secret key material provided when the agreement is created.
|
|
5627
|
-
encryptedKey:
|
|
5628
|
-
$ref: '#/components/schemas/EncryptedExecutionKey'
|
|
5629
|
-
envelopes:
|
|
5694
|
+
members:
|
|
5630
5695
|
type: array
|
|
5631
|
-
minItems: 1
|
|
5632
5696
|
items:
|
|
5633
|
-
|
|
5697
|
+
type: string
|
|
5698
|
+
authorizationPolicy:
|
|
5699
|
+
type: object
|
|
5700
|
+
additionalProperties: true
|
|
5701
|
+
cryptoPrincipalRefs:
|
|
5702
|
+
type: array
|
|
5703
|
+
items:
|
|
5704
|
+
type: string
|
|
5705
|
+
version:
|
|
5706
|
+
type: integer
|
|
5707
|
+
minimum: 1
|
|
5708
|
+
protectionMode:
|
|
5709
|
+
type: string
|
|
5710
|
+
enum: [MANAGED, STRICT_ZK]
|
|
5711
|
+
createdAt:
|
|
5712
|
+
type: string
|
|
5713
|
+
format: date-time
|
|
5714
|
+
readOnly: true
|
|
5634
5715
|
|
|
5635
|
-
|
|
5716
|
+
KeyEnvelope:
|
|
5636
5717
|
type: object
|
|
5637
|
-
|
|
5638
|
-
required: [alg, ciphertext]
|
|
5718
|
+
required: [envelopeId, keyScopeId, recipientPrincipalId, recipientKeyId, wrappedKey, mode, keyVersion]
|
|
5639
5719
|
properties:
|
|
5640
|
-
|
|
5720
|
+
envelopeId:
|
|
5641
5721
|
type: string
|
|
5642
|
-
|
|
5643
|
-
|
|
5722
|
+
agreementId:
|
|
5723
|
+
type: string
|
|
5724
|
+
keyScopeId:
|
|
5725
|
+
type: string
|
|
5726
|
+
recipientPrincipalId:
|
|
5727
|
+
type: string
|
|
5728
|
+
recipientKeyId:
|
|
5729
|
+
type: string
|
|
5730
|
+
wrappedKey:
|
|
5644
5731
|
type: string
|
|
5645
|
-
description:
|
|
5646
|
-
|
|
5732
|
+
description: Client-created RSA-OAEP wrapped scope DEK.
|
|
5733
|
+
mode:
|
|
5647
5734
|
type: string
|
|
5735
|
+
enum: [MANAGED, STRICT_ZK]
|
|
5736
|
+
keyVersion:
|
|
5737
|
+
type: integer
|
|
5738
|
+
minimum: 1
|
|
5648
5739
|
createdAt:
|
|
5649
5740
|
type: string
|
|
5650
5741
|
format: date-time
|
|
5742
|
+
readOnly: true
|
|
5743
|
+
revokedAt:
|
|
5744
|
+
type: string
|
|
5745
|
+
format: date-time
|
|
5746
|
+
nullable: true
|
|
5651
5747
|
|
|
5652
|
-
|
|
5748
|
+
ManagedRecoveryCapability:
|
|
5653
5749
|
type: object
|
|
5654
|
-
required: [
|
|
5750
|
+
required: [capabilityId, allowedKeyScopeIds, scopes, state]
|
|
5655
5751
|
properties:
|
|
5656
|
-
|
|
5752
|
+
capabilityId:
|
|
5657
5753
|
type: string
|
|
5658
|
-
|
|
5754
|
+
agreementId:
|
|
5659
5755
|
type: string
|
|
5660
|
-
|
|
5661
|
-
subjectType:
|
|
5756
|
+
partyId:
|
|
5662
5757
|
type: string
|
|
5663
|
-
|
|
5664
|
-
|
|
5758
|
+
scopes:
|
|
5759
|
+
type: array
|
|
5760
|
+
minItems: 1
|
|
5761
|
+
items:
|
|
5762
|
+
$ref: '#/components/schemas/ManagedRecoveryScope'
|
|
5763
|
+
allowedKeyScopeIds:
|
|
5764
|
+
type: array
|
|
5765
|
+
minItems: 1
|
|
5766
|
+
items:
|
|
5767
|
+
type: string
|
|
5768
|
+
kmsKeyVersion:
|
|
5665
5769
|
type: string
|
|
5666
|
-
|
|
5667
|
-
wrappedKey:
|
|
5770
|
+
state:
|
|
5668
5771
|
type: string
|
|
5669
|
-
|
|
5670
|
-
|
|
5772
|
+
enum: [ACTIVE, RETIRED, EXPIRED]
|
|
5773
|
+
retiredAt:
|
|
5671
5774
|
type: string
|
|
5775
|
+
format: date-time
|
|
5672
5776
|
nullable: true
|
|
5673
5777
|
createdAt:
|
|
5674
5778
|
type: string
|
|
5675
5779
|
format: date-time
|
|
5676
5780
|
readOnly: true
|
|
5677
5781
|
|
|
5782
|
+
ManagedRecoveryScope:
|
|
5783
|
+
type: object
|
|
5784
|
+
required: [keyScopeId, kmsWrappedScopeDek]
|
|
5785
|
+
properties:
|
|
5786
|
+
keyScopeId:
|
|
5787
|
+
type: string
|
|
5788
|
+
kmsWrappedScopeDek:
|
|
5789
|
+
type: string
|
|
5790
|
+
|
|
5791
|
+
CryptoPrincipal:
|
|
5792
|
+
type: object
|
|
5793
|
+
required: [principalId, type, subjectId]
|
|
5794
|
+
properties:
|
|
5795
|
+
principalId:
|
|
5796
|
+
type: string
|
|
5797
|
+
type:
|
|
5798
|
+
type: string
|
|
5799
|
+
enum: [USER, PARTY, ORG_ROLE, WORKSPACE_ROLE]
|
|
5800
|
+
subjectId:
|
|
5801
|
+
type: string
|
|
5802
|
+
currentKeyVersion:
|
|
5803
|
+
type: integer
|
|
5804
|
+
minimum: 1
|
|
5805
|
+
|
|
5806
|
+
PrincipalKey:
|
|
5807
|
+
type: object
|
|
5808
|
+
required: [keyId, principalId, algorithm, publicKey, keyVersion, status, createdAt]
|
|
5809
|
+
properties:
|
|
5810
|
+
keyId:
|
|
5811
|
+
type: string
|
|
5812
|
+
principalId:
|
|
5813
|
+
type: string
|
|
5814
|
+
algorithm:
|
|
5815
|
+
type: string
|
|
5816
|
+
enum: [RSA-OAEP-256]
|
|
5817
|
+
publicKey:
|
|
5818
|
+
type: string
|
|
5819
|
+
keyVersion:
|
|
5820
|
+
type: integer
|
|
5821
|
+
minimum: 1
|
|
5822
|
+
status:
|
|
5823
|
+
type: string
|
|
5824
|
+
enum: [active, retired]
|
|
5825
|
+
createdAt:
|
|
5826
|
+
type: string
|
|
5827
|
+
format: date-time
|
|
5828
|
+
revokedAt:
|
|
5829
|
+
type: string
|
|
5830
|
+
format: date-time
|
|
5831
|
+
nullable: true
|
|
5832
|
+
|
|
5833
|
+
PrincipalKeyEnvelope:
|
|
5834
|
+
type: object
|
|
5835
|
+
required: [principalId, keyVersion, recipientPrincipalId, recipientKeyId, wrappedKey]
|
|
5836
|
+
properties:
|
|
5837
|
+
principalId:
|
|
5838
|
+
type: string
|
|
5839
|
+
keyVersion:
|
|
5840
|
+
type: integer
|
|
5841
|
+
minimum: 1
|
|
5842
|
+
recipientPrincipalId:
|
|
5843
|
+
type: string
|
|
5844
|
+
recipientKeyId:
|
|
5845
|
+
type: string
|
|
5846
|
+
wrappedKey:
|
|
5847
|
+
type: string
|
|
5848
|
+
|
|
5678
5849
|
CryptoIdentity:
|
|
5679
5850
|
type: object
|
|
5680
|
-
description:
|
|
5681
|
-
required: [publicKeyId,
|
|
5851
|
+
description: Public-key metadata for a versioned crypto principal.
|
|
5852
|
+
required: [publicKeyId, principalId, principalType, subjectId, publicKeySpki, alg, keyVersion, status]
|
|
5682
5853
|
properties:
|
|
5683
5854
|
publicKeyId:
|
|
5684
5855
|
type: string
|
|
5685
|
-
|
|
5856
|
+
principalId:
|
|
5857
|
+
type: string
|
|
5858
|
+
principalType:
|
|
5686
5859
|
type: string
|
|
5687
|
-
enum: [
|
|
5860
|
+
enum: [USER, PARTY, ORG_ROLE, WORKSPACE_ROLE]
|
|
5688
5861
|
subjectId:
|
|
5689
5862
|
type: string
|
|
5690
5863
|
orgId:
|
|
@@ -5696,6 +5869,9 @@ components:
|
|
|
5696
5869
|
alg:
|
|
5697
5870
|
type: string
|
|
5698
5871
|
enum: [RSA-OAEP-256]
|
|
5872
|
+
keyVersion:
|
|
5873
|
+
type: integer
|
|
5874
|
+
minimum: 1
|
|
5699
5875
|
status:
|
|
5700
5876
|
type: string
|
|
5701
5877
|
enum: [active, retired]
|