@inklok/api-spec 7.8.1 → 7.8.2

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.
Files changed (2) hide show
  1. package/openapi.yaml +37 -1
  2. 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.8.1"
11
+ version: "7.8.2"
12
12
  contact:
13
13
  name: Inklok API Support
14
14
  email: support@inklok.com
@@ -2833,6 +2833,7 @@ paths:
2833
2833
  value_encrypted:
2834
2834
  type: string
2835
2835
  nullable: true
2836
+ description: JSON-serialized ScopedEncryptedFieldValue (v2). The server stores this string verbatim only after structural and authoritative binding validation.
2836
2837
  required:
2837
2838
  type: boolean
2838
2839
  '401':
@@ -2924,6 +2925,8 @@ paths:
2924
2925
  type: string
2925
2926
  value_encrypted:
2926
2927
  type: string
2928
+ minLength: 1
2929
+ description: JSON-serialized ScopedEncryptedFieldValue. The server validates its exact v2 envelope, authoritative keyScopeId, and canonical AAD before persistence.
2927
2930
  metadata:
2928
2931
  type: object
2929
2932
  additionalProperties: true
@@ -5628,6 +5631,7 @@ components:
5628
5631
  type:
5629
5632
  type: string
5630
5633
  enum: [PARTY_PRIVATE, SHARED, ORG_AUTHORIZED, WORKSPACE_AUTHORIZED]
5634
+ description: Current managed signing creation accepts PARTY_PRIVATE and SHARED. Other enum values are reserved for future modes and are rejected at creation time.
5631
5635
  partyId:
5632
5636
  type: string
5633
5637
  members:
@@ -5647,6 +5651,7 @@ components:
5647
5651
  protectionMode:
5648
5652
  type: string
5649
5653
  enum: [MANAGED, STRICT_ZK]
5654
+ description: Current signing creation accepts MANAGED only. STRICT_ZK is reserved and not enabled.
5650
5655
  createdAt:
5651
5656
  type: string
5652
5657
  format: date-time
@@ -5727,6 +5732,37 @@ components:
5727
5732
  kmsWrappedScopeDek:
5728
5733
  type: string
5729
5734
 
5735
+ ScopedEncryptedFieldValue:
5736
+ type: object
5737
+ additionalProperties: false
5738
+ description: |
5739
+ Parsed form of the JSON string carried by signing field value_encrypted.
5740
+ v2 binds AES-GCM authentication to the agreement, authoritative scope,
5741
+ field, and encryption version. The server validates structure and AAD
5742
+ metadata but does not decrypt managed values.
5743
+ required: [alg, keyScopeId, encryptionVersion, ciphertext, iv, authTag, aad]
5744
+ properties:
5745
+ alg:
5746
+ type: string
5747
+ enum: [AES-256-GCM]
5748
+ keyScopeId:
5749
+ type: string
5750
+ encryptionVersion:
5751
+ type: integer
5752
+ enum: [2]
5753
+ ciphertext:
5754
+ type: string
5755
+ description: Canonical base64 ciphertext bytes, without the GCM tag.
5756
+ iv:
5757
+ type: string
5758
+ description: Canonical base64 12-byte AES-GCM IV.
5759
+ authTag:
5760
+ type: string
5761
+ description: Canonical base64 16-byte AES-GCM authentication tag.
5762
+ aad:
5763
+ type: string
5764
+ description: 'Exact UTF-8 AAD string: inklok:field-value:v2:{"agreementId":"…","keyScopeId":"…","fieldId":"…","encryptionVersion":2}'
5765
+
5730
5766
  CryptoPrincipal:
5731
5767
  type: object
5732
5768
  required: [principalId, type, subjectId]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inklok/api-spec",
3
- "version": "7.8.1",
3
+ "version": "7.8.2",
4
4
  "description": "Canonical OpenAPI specification for the Inklok public API.",
5
5
  "main": "openapi.yaml",
6
6
  "license": "MIT",