openvibers/openvibe.contracts Commits

Add the Locker envelope contracts and the key directory API (#302)

OP OpenVibers committed 7 days ago · 2a9dfa0a0d · 94 files, +2148 −101

* Add network-wide sharing contracts and uniform API schemas

* Distinguish member and transfer preview revocations

* Add people, requests, describe and CSRF to the sharing contracts

- share@1 answers people, not bare subjects: owner, members, a pending
  transfer's recipient and pending requests carry share.person@1. Add share.you@1,
  share.access-request-view@1, share.transfer-view@1 and share.people-lookup@1.
- The body carries the service's describe() fields: title, link, roles,
  audiences and transferable.
- PUT accepts notify (default true); access requests gain the dismissed state.
- A transfer request accepts { name } or { subject }.
- Valid and invalid fixtures for every new and changed contract; docs and
  generated output follow. Version stays 0.291.0.

* Add the Locker envelope contracts and the key directory API

locker.envelope@1 is the header of a sealed item: the suite (AES-256-GCM),
the chunk size (1 MiB), the padded size, the counter nonce base, the lock
kind and one key slot per way in. The content key is never in the header; it
is wrapped in a people slot (ECDH P-256 + HKDF-SHA-256), a password slot
(PBKDF2-SHA-256, 600000 iterations, the parameters in the header so they can
be raised later) or a link slot (empty: the key travels in the link's
fragment).

Every chunk authenticates the header's core as associated data, so the
framing, the size, the nonce base and the lock kind cannot be changed. The
slots stay outside that core on purpose: adding a member re-wraps the content
key without re-encrypting the content, and each slot carries its own AES-GCM
tag with its own parameters bound in, so a slot cannot be moved to another
person or replayed from another envelope.

The key directory contracts carry the two public keys, the four-word
fingerprint and the signature that proves a person owns their signing key,
the wrapped private keys, and the key-change records a share sheet warns on.

share@1 and share.update-request@1 gain lock (none, people, password, link)
and a share member may carry that member's key slot, so a member and its
slot are saved together. Both are optional: old documents stay valid.

* Merge main into feat/locker-core-contracts

The sharing core landed in main (#301) while this branch was open, so main is merged in. The sharing content is identical to what the branch was built on, so the merge changes no file: the diff against main is the Locker work alone.

* Bind the Locker slots to a key, pad with Padme and widen the fingerprint

Opus read the Locker core line by line. Three of the findings are fixed here.

The fingerprint was 32 bits, so a server that swapped in its own key needed about 2^32 key generations to land on the same four words. It is now 64 bits: eight words, the first eight bytes of SHA-256 over the two public keys, in two groups of four. The contracts follow: locker.public-keys@1, locker.keys-put-request@1 and locker.key-change@1 take the eight-word form.

A people slot was bound to a subject but not to a key, so the same slot could be offered to another key. Each slot now carries recipient_key, the RFC 7638 thumbprint of the recipient's ECDH public key, and the thumbprint is in the HKDF info and in the slot's associated data.

The padded size was a whole number of 1 MiB chunks, so a 200-byte note cost a megabyte. It is padded with Padme (PoPETs 2019) now: at most about twelve per cent over the real size, never below 256 bytes, and it leaks O(log log n) bits. Every chunk but the last is a whole chunk; the last holds the rest.

* Join the fingerprint's two groups with a middle dot

A hyphen reads as one compound word (plateau yew-apple petal), and the two groups are meant to be read apart. The fingerprint, the keys-put request and the key change now take eight words joined by a middle dot, and the fixtures follow.

Changes

ddiff --git a/.gitleaks.toml b/.gitleaks.toml
iindex 517be4b9..4f222cc3 100644
---- a/.gitleaks.toml
++++ b/.gitleaks.toml
@@@ -63,3 +63,9 @@ description = "Sample model_key in ai.model-list@1 fixture: a model name placeho
condition = "AND"
paths = ['''^fixtures/ai\.model-list/valid/two-models\.json$''']
regexes = ['''^llama_3\.1_8b_instruct$''']
++
++[[allowlists]]
++description = "Sample recipient key thumbprint in the locker fixtures: the base64url SHA-256 of made-up bytes, showing the shape of the field, not a secret"
++condition = "AND"
++paths = ['''^fixtures/locker\..*\.json$''', '''^fixtures/share/valid/locked\.json$''']
++regexes = ['''^AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8$''']
ddiff --git a/CHANGELOG.md b/CHANGELOG.md
iindex 9c850dce..788ac8ff 100644
---- a/CHANGELOG.md
++++ b/CHANGELOG.md
@@@ -1,5 +1,13 @@
# Changelog
++## 0.292.0 — 2026-11-06
++
++- Add `locker.envelope@1`: the header of a sealed item — the suite (AES-256-GCM), the chunk size (1 MiB), the padded size, the counter nonce base, the lock kind and one key slot per way in. The content key is never in the header; it is wrapped in a people slot (ECDH P-256 + HKDF-SHA-256, bound to the recipient's key by its RFC 7638 thumbprint), a password slot (PBKDF2-SHA-256, 600000 iterations, the parameters in the header so they can be raised, and bounded above at 10000000 so a hostile header cannot freeze a reader) or a link slot (empty: the key travels in the link's fragment).
++- The padded size is padded with Padmé (PoPETs 2019): at most about twelve per cent over the real size, never below 256 bytes, and it leaks O(log log n) bits. Every chunk but the last is a whole chunk; the last holds the rest.
++- Add the key directory contracts: `locker.public-key@1`, `locker.public-keys@1`, `locker.keys-put-request@1`, `locker.key-backup@1` and `locker.key-change@1`, with the eight-word fingerprint (sixty-four bits, in two groups of four) and the signature that proves a person owns their signing key.
++- `share@1` and `share.update-request@1` gain `lock` (`none`, `people`, `password`, `link`), and a share member may carry that member's key slot, so a member and its slot are saved together. Additive: the fields are optional and old documents stay valid.
++- Valid and invalid fixtures cover every new contract, and the new fields of the sharing contracts. The format is written down in [docs/locker.md](docs/locker.md).
++
## 0.291.0 — 2026-11-05
- Add `share@1`: resource refs, audiences, members and member inputs, transfers, access requests, uniform API requests and responses. Transfers are recipient-bound, last seven days, and default to removing the former owner's membership.
ddiff --git a/README.md b/README.md
iindex 4b320d46..a016a292 100644
---- a/README.md
++++ b/README.md
@@@ -2,7 +2,7 @@
> Machine-readable contracts for the whole OpenVibe network.
--**Status:** alpha (first released in Wave 1; the release is package.json's `version`, tagged). At v0.291.0: 1002 schemas in `contracts/catalog.json`, 60 service manifests, 452 capability manifests, 13 namespace manifests and the staff capability map. Service repositories run `openvibe-contracts-check` and the pin-drift check in CI, and deployed services verify service and app tokens with `serviceAuth` in production. Consumers pin release tags (each repository's `STATUS.json` names its pin). `node scripts/docs-currency.js <root>` checks every checkout's README and `STATUS.json` against its code: the pins and versions they name, a library's consumer list, the deployed flag against the manifest, README links, and the paths and migrations they name. `node scripts/estate.js` generates `docs/ESTATE.md` and `manifests/repositories/` from the estate checkouts, and `--check` fails on drift (plan T1 step 3).
++**Status:** alpha (first released in Wave 1; the release is package.json's `version`, tagged). At v0.292.0: 1016 schemas in `contracts/catalog.json`, 60 service manifests, 452 capability manifests, 13 namespace manifests and the staff capability map. Service repositories run `openvibe-contracts-check` and the pin-drift check in CI, and deployed services verify service and app tokens with `serviceAuth` in production. Consumers pin release tags (each repository's `STATUS.json` names its pin). `node scripts/docs-currency.js <root>` checks every checkout's README and `STATUS.json` against its code: the pins and versions they name, a library's consumer list, the deployed flag against the manifest, README links, and the paths and migrations they name. `node scripts/estate.js` generates `docs/ESTATE.md` and `manifests/repositories/` from the estate checkouts, and `--check` fails on drift (plan T1 step 3).
**Plan:** OpenVibe Development Roadmap, Wave 1 (implementation plan rev 3, §3.1 and §18.11).
**License:** AGPL-3.0 (same as every OpenVibe service).
@@@ -352,3 +352,5 @@ package reports version `0.28.0` and contains both changes (Codes: `codes.app-ma
stays for consumers that already pinned it and is identical.
The network-wide [sharing contracts](docs/sharing.md) define the uniform access and ownership-transfer API (`share@1`).
++
++The [Locker contracts](docs/locker.md) define the sealed envelope (`locker.envelope@1`), its key slots and the key directory API: end-to-end encryption for anything on OpenVibe.
ddiff --git a/contracts/catalog.json b/contracts/catalog.json
iindex ee9bf9e8..10aeee21 100644
---- a/contracts/catalog.json
++++ b/contracts/catalog.json
@@@ -9124,7 +9124,7 @@
},
{
"id": "share.member",
-- "version": "1.0.0",
++ "version": "1.1.0",
"owner": "network",
"schema": "share/member.v1.json",
"visibility": "public",
@@@ -9133,7 +9133,7 @@
},
{
"id": "share.member-input",
-- "version": "1.0.0",
++ "version": "1.1.0",
"owner": "network",
"schema": "share/member-input.v1.json",
"visibility": "public",
@@@ -9160,7 +9160,7 @@
},
{
"id": "share",
-- "version": "1.0.0",
++ "version": "1.1.0",
"owner": "network",
"schema": "share/share.v1.json",
"visibility": "public",
@@@ -9214,7 +9214,7 @@
},
{
"id": "share.update-request",
-- "version": "1.0.0",
++ "version": "1.1.0",
"owner": "network",
"schema": "share/update-request.v1.json",
"visibility": "public",
@@@ -9301,6 +9301,87 @@
"visibility": "first-party",
"compatibility": "backward",
"status": "active"
++ },
++ {
++ "id": "locker.envelope",
++ "version": "1.0.0",
++ "owner": "network",
++ "schema": "locker/envelope.v1.json",
++ "visibility": "public",
++ "compatibility": "backward",
++ "status": "active"
++ },
++ {
++ "id": "locker.people-slot",
++ "version": "1.0.0",
++ "owner": "network",
++ "schema": "locker/people-slot.v1.json",
++ "visibility": "public",
++ "compatibility": "backward",
++ "status": "active"
++ },
++ {
++ "id": "locker.password-slot",
++ "version": "1.0.0",
++ "owner": "network",
++ "schema": "locker/password-slot.v1.json",
++ "visibility": "public",
++ "compatibility": "backward",
++ "status": "active"
++ },
++ {
++ "id": "locker.link-slot",
++ "version": "1.0.0",
++ "owner": "network",
++ "schema": "locker/link-slot.v1.json",
++ "visibility": "public",
++ "compatibility": "backward",
++ "status": "active"
++ },
++ {
++ "id": "locker.public-key",
++ "version": "1.0.0",
++ "owner": "network",
++ "schema": "locker/public-key.v1.json",
++ "visibility": "public",
++ "compatibility": "backward",
++ "status": "active"
++ },
++ {
++ "id": "locker.public-keys",
++ "version": "1.0.0",
++ "owner": "network",
++ "schema": "locker/public-keys.v1.json",
++ "visibility": "public",
++ "compatibility": "backward",
++ "status": "active"
++ },
++ {
++ "id": "locker.keys-put-request",
++ "version": "1.0.0",
++ "owner": "network",
++ "schema": "locker/keys-put-request.v1.json",
++ "visibility": "public",
++ "compatibility": "backward",
++ "status": "active"
++ },
++ {
++ "id": "locker.key-backup",
++ "version": "1.0.0",
++ "owner": "network",
++ "schema": "locker/key-backup.v1.json",
++ "visibility": "public",
++ "compatibility": "backward",
++ "status": "active"
++ },
++ {
++ "id": "locker.key-change",
++ "version": "1.0.0",
++ "owner": "network",
++ "schema": "locker/key-change.v1.json",
++ "visibility": "public",
++ "compatibility": "backward",
++ "status": "active"
}
]
}
ddiff --git a/contracts/locker/envelope.v1.json b/contracts/locker/envelope.v1.json
nnew file mode 100644
iindex 00000000..ebe9f3c1
---- /dev/null
++++ b/contracts/locker/envelope.v1.json
@@@ -0,0 +1,183 @@
++{
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/envelope.v1.json",
++ "title": "LockerEnvelope",
++ "description": "locker.envelope@1: the header of a Locker envelope. It is the JSON that opens every chunk of the envelope bytes: the suite, the chunk size, the padded size, the counter nonce base and one key slot per way in. The content key is never in the header; it is wrapped inside a slot. Every chunk authenticates the header's core fields (version, suite, chunk_size, padded_size, nonce_base, lock) as associated data, so the framing, the size and the lock kind cannot be changed; the slots sit outside that core on purpose, because adding a member re-wraps the content key without re-encrypting the content, and each slot carries its own AES-GCM tag over the content key with its own parameters bound in.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "version",
++ "suite",
++ "chunk_size",
++ "padded_size",
++ "nonce_base",
++ "lock",
++ "slots"
++ ],
++ "properties": {
++ "version": {
++ "const": "locker.envelope.v1"
++ },
++ "suite": {
++ "const": "AES-256-GCM"
++ },
++ "chunk_size": {
++ "const": 1048576,
++ "description": "The chunk size in bytes: 1 MiB. Fixed for this version."
++ },
++ "padded_size": {
++ "type": "integer",
++ "minimum": 256,
++ "description": "The size of the padded plaintext in bytes. The true size lives inside the encrypted content, so the server cannot read it; this is the size it may store and show. The size is padded with Padmé (Nikitin et al., PoPETs 2019): it is the next size on a grid that gets finer as the content grows, at most twelve per cent over the real one, and never below 256 bytes. Every chunk but the last is a whole chunk; the last holds what is left of this size."
++ },
++ "nonce_base": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{11}=$",
++ "description": "Eight random bytes, base64: the first half of every chunk nonce. The second half is the chunk counter, so no nonce repeats inside one envelope."
++ },
++ "lock": {
++ "enum": [
++ "people",
++ "password",
++ "link"
++ ],
++ "description": "Which way in the envelope has. Exactly one slot kind is present, and it matches this."
++ },
++ "slots": {
++ "type": "object",
++ "additionalProperties": false,
++ "properties": {
++ "people": {
++ "type": "array",
++ "minItems": 1,
++ "maxItems": 100,
++ "items": {
++ "$ref": "people-slot.v1.json"
++ }
++ },
++ "password": {
++ "$ref": "password-slot.v1.json"
++ },
++ "link": {
++ "$ref": "link-slot.v1.json"
++ }
++ }
++ }
++ },
++ "allOf": [
++ {
++ "if": {
++ "properties": {
++ "lock": {
++ "const": "people"
++ }
++ },
++ "required": [
++ "lock"
++ ]
++ },
++ "then": {
++ "properties": {
++ "slots": {
++ "type": "object",
++ "required": [
++ "people"
++ ],
++ "not": {
++ "anyOf": [
++ {
++ "type": "object",
++ "required": [
++ "password"
++ ]
++ },
++ {
++ "type": "object",
++ "required": [
++ "link"
++ ]
++ }
++ ]
++ }
++ }
++ }
++ }
++ },
++ {
++ "if": {
++ "properties": {
++ "lock": {
++ "const": "password"
++ }
++ },
++ "required": [
++ "lock"
++ ]
++ },
++ "then": {
++ "properties": {
++ "slots": {
++ "type": "object",
++ "required": [
++ "password"
++ ],
++ "not": {
++ "anyOf": [
++ {
++ "type": "object",
++ "required": [
++ "people"
++ ]
++ },
++ {
++ "type": "object",
++ "required": [
++ "link"
++ ]
++ }
++ ]
++ }
++ }
++ }
++ }
++ },
++ {
++ "if": {
++ "properties": {
++ "lock": {
++ "const": "link"
++ }
++ },
++ "required": [
++ "lock"
++ ]
++ },
++ "then": {
++ "properties": {
++ "slots": {
++ "type": "object",
++ "required": [
++ "link"
++ ],
++ "not": {
++ "anyOf": [
++ {
++ "type": "object",
++ "required": [
++ "people"
++ ]
++ },
++ {
++ "type": "object",
++ "required": [
++ "password"
++ ]
++ }
++ ]
++ }
++ }
++ }
++ }
++ }
++ ]
++}
ddiff --git a/contracts/locker/key-backup.v1.json b/contracts/locker/key-backup.v1.json
nnew file mode 100644
iindex 00000000..7c23c20b
---- /dev/null
++++ b/contracts/locker/key-backup.v1.json
@@@ -0,0 +1,47 @@
++{
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/key-backup.v1.json",
++ "title": "LockerKeyBackup",
++ "description": "locker.key-backup@1: the person's private keys, wrapped. The wrapping key comes from the locker passphrase with PBKDF2-SHA-256, so the server stores bytes it cannot open; a passkey (WebAuthn PRF) may wrap the same bytes later without changing this shape.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "method",
++ "kdf",
++ "iterations",
++ "salt",
++ "nonce",
++ "wrapped_keys"
++ ],
++ "properties": {
++ "method": {
++ "enum": [
++ "passphrase"
++ ],
++ "description": "How the private keys are wrapped. A passkey-only locker comes later."
++ },
++ "kdf": {
++ "const": "PBKDF2-SHA-256"
++ },
++ "iterations": {
++ "type": "integer",
++ "minimum": 600000,
++ "maximum": 10000000
++ },
++ "salt": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{22}==$",
++ "description": "Sixteen random bytes, base64."
++ },
++ "nonce": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{16}$",
++ "description": "Twelve random bytes, base64: the AES-GCM nonce of the wrapped keys."
++ },
++ "wrapped_keys": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]+={0,2}$",
++ "description": "The two private keys as JWKs, sealed with AES-256-GCM under the derived key, base64."
++ }
++ }
++}
ddiff --git a/contracts/locker/key-change.v1.json b/contracts/locker/key-change.v1.json
nnew file mode 100644
iindex 00000000..f6170745
---- /dev/null
++++ b/contracts/locker/key-change.v1.json
@@@ -0,0 +1,40 @@
++{
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/key-change.v1.json",
++ "title": "LockerKeyChange",
++ "description": "locker.key-change@1: a record that a person's locker keys changed, so the share sheet can warn before sharing with a key that is not the one people saw before.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "subject",
++ "reason",
++ "changed_at",
++ "fingerprint"
++ ],
++ "properties": {
++ "subject": {
++ "$ref": "../identity/subject-ref.v1.json"
++ },
++ "reason": {
++ "enum": [
++ "created",
++ "rotated",
++ "restored"
++ ]
++ },
++ "changed_at": {
++ "type": "string",
++ "format": "date-time"
++ },
++ "fingerprint": {
++ "type": "string",
++ "pattern": "^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$",
++ "description": "The eight words of the new keys, in two groups of four joined by a middle dot."
++ },
++ "previous_fingerprint": {
++ "type": "string",
++ "pattern": "^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$",
++ "description": "The eight words before the change, when there were any."
++ }
++ }
++}
ddiff --git a/contracts/locker/keys-put-request.v1.json b/contracts/locker/keys-put-request.v1.json
nnew file mode 100644
iindex 00000000..9c6039f1
---- /dev/null
++++ b/contracts/locker/keys-put-request.v1.json
@@@ -0,0 +1,34 @@
++{
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/keys-put-request.v1.json",
++ "title": "LockerKeysPutRequest",
++ "description": "locker.keys-put-request@1: what a person sends to set their locker keys. The public keys and the fingerprint are readable by anyone; the private keys go in the backup, wrapped by a key from the locker passphrase, so the server never holds an unwrapped key.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "ecdh",
++ "signing",
++ "fingerprint",
++ "fingerprint_signature",
++ "backup"
++ ],
++ "properties": {
++ "ecdh": {
++ "$ref": "public-key.v1.json"
++ },
++ "signing": {
++ "$ref": "public-key.v1.json"
++ },
++ "fingerprint": {
++ "type": "string",
++ "pattern": "^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$"
++ },
++ "fingerprint_signature": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{86}==$"
++ },
++ "backup": {
++ "$ref": "key-backup.v1.json"
++ }
++ }
++}
ddiff --git a/contracts/locker/link-slot.v1.json b/contracts/locker/link-slot.v1.json
nnew file mode 100644
iindex 00000000..df82bb82
---- /dev/null
++++ b/contracts/locker/link-slot.v1.json
@@@ -0,0 +1,9 @@
++{
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/link-slot.v1.json",
++ "title": "LockerLinkSlot",
++ "description": "locker.link-slot@1: a link lock stores no key. The content key travels in the part of the link after the #, which browsers never send to us, so this slot is empty on purpose and the envelope says only that the key is somewhere else.",
++ "type": "object",
++ "additionalProperties": false,
++ "properties": {}
++}
ddiff --git a/contracts/locker/password-slot.v1.json b/contracts/locker/password-slot.v1.json
nnew file mode 100644
iindex 00000000..f67a6c43
---- /dev/null
++++ b/contracts/locker/password-slot.v1.json
@@@ -0,0 +1,45 @@
++{
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/password-slot.v1.json",
++ "title": "LockerPasswordSlot",
++ "description": "locker.password-slot@1: the content key wrapped with a password. The wrapping key comes from PBKDF2-SHA-256 with the salt and the iteration count in this slot, so both can be raised later without changing the format. The tag covers the parameters, so they cannot be weakened in transit.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "algorithm",
++ "kdf",
++ "iterations",
++ "salt",
++ "nonce",
++ "wrapped_key"
++ ],
++ "properties": {
++ "algorithm": {
++ "const": "PBKDF2-SHA256/AES-256-GCM"
++ },
++ "kdf": {
++ "const": "PBKDF2-SHA-256"
++ },
++ "iterations": {
++ "type": "integer",
++ "minimum": 600000,
++ "maximum": 10000000,
++ "description": "PBKDF2 iterations. 600000 is the floor for this version; the count may go up, never down."
++ },
++ "salt": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{22}==$",
++ "description": "Sixteen random bytes, base64: the PBKDF2 salt."
++ },
++ "nonce": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{16}$",
++ "description": "Twelve random bytes, base64: the AES-GCM nonce of the wrapped content key."
++ },
++ "wrapped_key": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{64}$",
++ "description": "The 32-byte content key and its 16-byte tag, base64. Never the key itself."
++ }
++ }
++}
ddiff --git a/contracts/locker/people-slot.v1.json b/contracts/locker/people-slot.v1.json
nnew file mode 100644
iindex 00000000..72bfb19e
---- /dev/null
++++ b/contracts/locker/people-slot.v1.json
@@@ -0,0 +1,48 @@
++{
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/people-slot.v1.json",
++ "title": "LockerPeopleSlot",
++ "description": "locker.people-slot@1: the content key wrapped for one person. The wrapping key is ECDH P-256 (an ephemeral key pair per envelope) put through HKDF-SHA-256, and the content key is sealed with AES-256-GCM. The tag covers the subject, the recipient's key, the ephemeral public key and the salt, so a slot cannot be moved to another person or to another envelope.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "subject",
++ "algorithm",
++ "recipient_key",
++ "ephemeral_public_key",
++ "salt",
++ "nonce",
++ "wrapped_key"
++ ],
++ "properties": {
++ "subject": {
++ "$ref": "../identity/subject-ref.v1.json"
++ },
++ "algorithm": {
++ "const": "ECDH-P256/HKDF-SHA256/AES-256-GCM"
++ },
++ "recipient_key": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9_-]{43}$",
++ "description": "The RFC 7638 thumbprint of the recipient's ECDH public key: SHA-256 over the canonical JSON of the key's four members, base64url. The slot is bound to this key as well as to the subject, and the reader checks it before it derives anything."
++ },
++ "ephemeral_public_key": {
++ "$ref": "public-key.v1.json"
++ },
++ "salt": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{22}==$",
++ "description": "Sixteen random bytes, base64: the HKDF salt for this slot."
++ },
++ "nonce": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{16}$",
++ "description": "Twelve random bytes, base64: the AES-GCM nonce of the wrapped content key."
++ },
++ "wrapped_key": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{64}$",
++ "description": "The 32-byte content key and its 16-byte tag, base64. Never the key itself."
++ }
++ }
++}
ddiff --git a/contracts/locker/public-key.v1.json b/contracts/locker/public-key.v1.json
nnew file mode 100644
iindex 00000000..0f24a8b8
---- /dev/null
++++ b/contracts/locker/public-key.v1.json
@@@ -0,0 +1,45 @@
++{
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/public-key.v1.json",
++ "title": "LockerPublicKey",
++ "description": "locker.public-key@1: one P-256 public key as a JWK. The same shape is used for the ECDH key that receives content keys and for the ECDSA key that signs the fingerprint; what a key does is decided by where it is used, never by the key itself.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "kty",
++ "crv",
++ "x",
++ "y"
++ ],
++ "properties": {
++ "kty": {
++ "const": "EC"
++ },
++ "crv": {
++ "const": "P-256"
++ },
++ "x": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9_-]{43}$",
++ "description": "The public x coordinate, base64url, as WebCrypto exports it."
++ },
++ "y": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9_-]{43}$",
++ "description": "The public y coordinate, base64url, as WebCrypto exports it."
++ },
++ "ext": {
++ "const": true
++ },
++ "key_ops": {
++ "type": "array",
++ "items": {
++ "enum": [
++ "deriveBits",
++ "deriveKey",
++ "verify"
++ ]
++ }
++ }
++ }
++}
ddiff --git a/contracts/locker/public-keys.v1.json b/contracts/locker/public-keys.v1.json
nnew file mode 100644
iindex 00000000..63ea83fe
---- /dev/null
++++ b/contracts/locker/public-keys.v1.json
@@@ -0,0 +1,41 @@
++{
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/public-keys.v1.json",
++ "title": "LockerPublicKeys",
++ "description": "locker.public-keys@1: what anyone may read about a person's locker: the two public keys and the eight-word fingerprint. The fingerprint is the first eight bytes of SHA-256 over both public keys, read as eight words in two groups of four, joined by a middle dot, and the signature proves the holder owns the signing key, so a person can compare the eight words out of band and a key change is visible.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "subject",
++ "ecdh",
++ "signing",
++ "fingerprint",
++ "fingerprint_signature",
++ "updated_at"
++ ],
++ "properties": {
++ "subject": {
++ "$ref": "../identity/subject-ref.v1.json"
++ },
++ "ecdh": {
++ "$ref": "public-key.v1.json"
++ },
++ "signing": {
++ "$ref": "public-key.v1.json"
++ },
++ "fingerprint": {
++ "type": "string",
++ "pattern": "^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$",
++ "description": "Eight words, lower case, in two groups of four joined by a middle dot: sixty-four bits. Compare them out of band; a change means a changed key."
++ },
++ "fingerprint_signature": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{86}==$",
++ "description": "The ECDSA signature over both public keys, base64. It proves the holder owns the signing key."
++ },
++ "updated_at": {
++ "type": "string",
++ "format": "date-time"
++ }
++ }
++}
ddiff --git a/contracts/share/member-input.v1.json b/contracts/share/member-input.v1.json
iindex 252a4e3a..eac565f6 100644
---- a/contracts/share/member-input.v1.json
++++ b/contracts/share/member-input.v1.json
@@@ -22,6 +22,9 @@
"expires_at": {
"type": "string",
"format": "date-time"
++ },
++ "key_slot": {
++ "$ref": "../locker/people-slot.v1.json"
}
},
"required": [
ddiff --git a/contracts/share/member.v1.json b/contracts/share/member.v1.json
iindex 5d9ed488..c39a5ff1 100644
---- a/contracts/share/member.v1.json
++++ b/contracts/share/member.v1.json
@@@ -43,6 +43,9 @@
"added_at": {
"type": "string",
"format": "date-time"
++ },
++ "key_slot": {
++ "$ref": "../locker/people-slot.v1.json"
}
},
"required": [
ddiff --git a/contracts/share/share.v1.json b/contracts/share/share.v1.json
iindex 527141be..b497e592 100644
---- a/contracts/share/share.v1.json
++++ b/contracts/share/share.v1.json
@@@ -33,6 +33,15 @@
"transfer": {
"$ref": "transfer-view.v1.json"
},
++ "lock": {
++ "enum": [
++ "none",
++ "people",
++ "password",
++ "link"
++ ],
++ "description": "How the resource is sealed (Locker). none means it is stored as it is; people, password and link are the three Locker locks. The server stores the envelope and never opens it."
++ },
"you": {
"$ref": "you.v1.json"
},
ddiff --git a/contracts/share/update-request.v1.json b/contracts/share/update-request.v1.json
iindex a29729f4..6f7ce8ad 100644
---- a/contracts/share/update-request.v1.json
++++ b/contracts/share/update-request.v1.json
@@@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://openvibe.network/contracts/share/update-request.v1.json",
"title": "ShareUpdateRequest",
-- "description": "share.update-request@1: network-wide sharing. Ids only; no resource title or content. Members apply to people audience; pending recipients may preview for seven days.",
++ "description": "share.update-request@1: network-wide sharing. Ids only; no resource title or content. Members apply to people audience; pending recipients may preview for seven days. `lock` sets how the resource itself is sealed (Locker).",
"type": "object",
"additionalProperties": false,
"properties": {
@@@ -24,6 +24,15 @@
"notify": {
"type": "boolean",
"default": true
++ },
++ "lock": {
++ "enum": [
++ "none",
++ "people",
++ "password",
++ "link"
++ ],
++ "description": "How the resource is sealed (Locker)."
}
},
"required": [],
ddiff --git a/docs/locker.md b/docs/locker.md
nnew file mode 100644
iindex 00000000..f6b7e269
---- /dev/null
++++ b/docs/locker.md
@@@ -0,0 +1,183 @@
++# Locker: end-to-end encryption for anything on OpenVibe
++
++`locker.envelope@1` (`contracts/locker/envelope.v1.json`) is the format. The library that reads and writes it is
++`openvibe-sdk/locker` (Node and the browser); `openvibe-sdk/locker/server` checks an envelope's header without
++decrypting it.
++
++Locker sits on top of sharing: sharing decides **who may fetch** a thing, Locker decides **who can read** it. With a
++locked item, OpenVibe stores and serves only ciphertext, and the keys never reach our servers.
++
++## The three locks
++
++| Lock | Who can open it | What the header holds |
++| --- | --- | --- |
++| `people` | you and the people you shared with, each with their own key | one key slot per recipient |
++| `password` | anyone you give the password to | one password slot (PBKDF2 parameters) |
++| `link` | anyone with the full link | nothing: the key is in the part after `#` |
++
++`share@1` carries the same three names plus `none` in its `lock` field, so a service knows how an item is sealed
++without opening it.
++
++## The envelope bytes
++
++```
++0 4 8 8 + header length
+++------+------+--------------------------+--------------------------+
++| OVLK | len | header JSON (UTF-8) | chunk frames |
+++------+------+--------------------------+--------------------------+
++```
++
++* `OVLK` — four ASCII bytes. A service that does not know Locker can tell at once.
++* `len` — the header length, unsigned 32-bit big endian.
++* The header — the JSON object below, exactly `len` bytes, nothing else. The header is never encrypted: it holds no
++ key material, only wrapped keys.
++
++Each chunk frame is:
++
++```
++0 4 5 17
+++------+------+--------------------------+--------------------------+
++| len | flags| nonce (12 bytes) | ciphertext + 16-byte tag |
+++------+------+--------------------------+--------------------------+
++```
++
++* `len` — the ciphertext length, unsigned 32-bit big endian: the plaintext of the chunk plus the 16-byte GCM tag.
++ Every chunk but the last holds a whole chunk (1 MiB) of plaintext; the last holds what is left of
++ `padded_size`, which is more than zero bytes.
++* `flags` — bit 0 (`0x01`) marks the **final chunk**. Every other bit is zero in this version.
++* `nonce` — the 12-byte GCM nonce: the header's `nonce_base` (8 random bytes) followed by the chunk counter
++ (unsigned 32-bit big endian). No nonce repeats inside one envelope.
++
++## The header
++
++```json
++{
++ "version": "locker.envelope.v1",
++ "suite": "AES-256-GCM",
++ "chunk_size": 1048576,
++ "padded_size": 256,
++ "nonce_base": "YmJiYmJiYmI=",
++ "lock": "people",
++ "slots": { "people": [ { "subject": {}, "algorithm": "ECDH-P256/HKDF-SHA256/AES-256-GCM", "recipient_key": "", "ephemeral_public_key": {}, "salt": "", "nonce": "", "wrapped_key": "" } ] }
++}
++```
++
++* `version` — `locker.envelope.v1`. A new format is a new file and a new catalog entry.
++* `suite` — `AES-256-GCM`. The content key is 32 bytes.
++* `chunk_size` — 1 MiB, fixed in this version.
++* `padded_size` — the size of the padded plaintext, in bytes. **The true size lives inside the encrypted
++ content**, so the server cannot read it; this is the size it may store and show. It is padded with Padmé
++ (see below) and is never below 256 bytes.
++* `nonce_base` — eight random bytes, base64: the first half of every chunk nonce.
++* `lock` — `people`, `password` or `link`. Exactly one slot kind is present, and it matches.
++* `slots` — the key slots. The content key itself is never in the header.
++
++### What is authenticated, and what is not
++
++Every chunk authenticates the header's **core** as associated data:
++
++```
++AAD = UTF-8(canonical JSON of {version, suite, chunk_size, padded_size, nonce_base, lock})
++ || counter (4 bytes, big endian)
++ || flags (1 byte)
++```
++
++The canonical JSON is that object with its keys in exactly that order and no whitespace, which both ends build the
++same way. So the framing, the size, the nonce base and the lock kind cannot be changed: the chunks stop verifying.
++
++The **slots are deliberately outside that core**. Adding a member to a people-locked item wraps the content key for
++the new member; it does not re-encrypt the content, so the header's core cannot change either. Each slot is
++authenticated on its own instead: the slot's AES-GCM tag covers the content key *and* the slot's own parameters
++(the subject, the ephemeral public key and the salt for a people slot; the iteration count and the salt for a
++password slot). A slot therefore cannot be moved to another person, replayed from another envelope, or have its
++parameters weakened in transit.
++
++### The padded plaintext
++
++The plaintext inside the chunks is:
++
++```
++8 bytes the true length, unsigned 64-bit big endian
++N bytes the content
++rest zero padding, up to the next chunk boundary
++```
++
++`padded_size` counts all of it, padding included, and is never below 256 bytes. The length prefix is why the
++server cannot learn the size: the real length is inside the encrypted part.
++
++The padding is **Padmé** (Nikitin et al., "Reducing Metadata Leakage from Encrypted Files and Network Traffic",
++PoPETs 2019): the length is rounded up to the next size on a grid that gets finer as the length grows. The
++expansion is at most about twelve per cent (the worst case is 129 bytes padded to 144), the number of possible
++padded lengths grows like the logarithm of the content size, so the padded size leaks O(log log n) bits about the
++real one, and a short note costs 256 bytes rather than a whole megabyte. The chunk grid does not leak the size:
++only the last chunk is shorter than a chunk, and its length is `padded_size` minus the whole chunks before it.
++
++### The slots
++
++**People slot** (`locker.people-slot@1`) — one per recipient:
++
++```json
++{ "subject": { "type": "user", "id": "usr_..." }, "algorithm": "ECDH-P256/HKDF-SHA256/AES-256-GCM",
++ "ephemeral_public_key": { "kty": "EC", "crv": "P-256", "x": "...", "y": "..." },
++ "salt": "<16 bytes, base64>", "nonce": "<12 bytes, base64>", "wrapped_key": "<48 bytes, base64>" }
++```
++
++The envelope has one ephemeral ECDH P-256 key pair. For each recipient the shared secret with their public key goes
++through HKDF-SHA-256 (salt: the slot's `salt`, info: `openvibe-locker people-slot v1|<subject id>`), and the result
++wraps the content key with AES-256-GCM. The recipient derives the same secret with their private key and the
++envelope's ephemeral public key.
++
++**Password slot** (`locker.password-slot@1`):
++
++```json
++{ "algorithm": "PBKDF2-SHA256/AES-256-GCM", "kdf": "PBKDF2-SHA-256", "iterations": 600000,
++ "salt": "<16 bytes, base64>", "nonce": "<12 bytes, base64>", "wrapped_key": "<48 bytes, base64>" }
++```
++
++PBKDF2-SHA-256 with 600000 iterations and the slot's salt gives the wrapping key. The parameters live in the header
++so they can be raised later: the reader takes the iteration count and the salt from the header, never from its own
++defaults. The floor is 600000 and the ceiling is 10000000: the count may go up, never down, and a header outside
++that range is refused before anything is derived, so a hostile header cannot make a reader work for hours.
++
++**Link slot** (`locker.link-slot@1`) — empty, on purpose. A link lock stores no key: the content key travels in the
++part of the link after `#`, which browsers never send to us.
++
++## The key directory
++
++A person's keys live on Network, opaque. The contracts are:
++
++| API | Request contract | Response contract |
++| --- | --- | --- |
++| GET /api/v1/people/:subject/keys | none | locker.public-keys@1 |
++| PUT /api/v1/me/keys | locker.keys-put-request@1 | locker.public-keys@1 |
++| GET /api/v1/me/keys/backup | none | locker.key-backup@1 |
++
++A person has two key pairs: an **ECDH P-256** pair that receives content keys, and an **ECDSA P-256** pair that signs
++the fingerprint. The **fingerprint** is the first eight bytes of SHA-256 over both public keys, read as eight words
++(256 words, eight bits each) in two groups of four, joined by a middle dot: it is short enough to say out loud and compare once. Sixty-four
++bits, not thirty-two: a server that swapped in its own key would need about 2^32 key generations to land on the same
++four words, and 2^64 for the eight. The signature over both public keys proves the holder owns the signing key, so a
++key pair is self-certifying; a change of keys changes the fingerprint, and `locker.key-change@1` records it so a share
++sheet can warn before sharing with a key nobody saw before.
++
++The private keys are stored wrapped (`locker.key-backup@1`): PBKDF2-SHA-256 from the locker passphrase, then
++AES-256-GCM. Network holds the protected copy and cannot open it. There is no reset: if the passphrase and the
++recovery kit are both lost, nobody can open the locker, including OpenVibe.
++
++## What a service does with a locked item
++
++`openvibe-sdk/locker/server` gives a service the checks in one place: it reads the header and checks its shape and
++its size, **without decrypting anything**. Then the service:
++
++* skips indexing, previews, thumbnails, transcoding and content AI;
++* shows the lock badge;
++* serves the bytes only to the people `canView` allows.
++
++A locked item is never public: everyone is disabled, and links are rate-limited. Locked storage has per-account
++quotas. Normal abuse reports work by account and link; a recipient who reports may choose to disclose the content key
++to moderators, which opens that one item only.
++
++## What we cannot do
++
++We cannot scan or moderate what is inside a locked item. That matters most for uploads. A recipient can always keep
++what they opened, and the server still sees who owns what, how big it is (padded) and when.
ddiff --git a/fixtures/locker.envelope/invalid/lock-without-slot.json b/fixtures/locker.envelope/invalid/lock-without-slot.json
nnew file mode 100644
iindex 00000000..0fe2ad23
---- /dev/null
++++ b/fixtures/locker.envelope/invalid/lock-without-slot.json
@@@ -0,0 +1,11 @@
++{
++ "version": "locker.envelope.v1",
++ "suite": "AES-256-GCM",
++ "chunk_size": 1048576,
++ "padded_size": 256,
++ "nonce_base": "YmJiYmJiYmI=",
++ "lock": "password",
++ "slots": {
++ "link": {}
++ }
++}
ddiff --git a/fixtures/locker.envelope/invalid/other-suite.json b/fixtures/locker.envelope/invalid/other-suite.json
nnew file mode 100644
iindex 00000000..ea5daa83
---- /dev/null
++++ b/fixtures/locker.envelope/invalid/other-suite.json
@@@ -0,0 +1,11 @@
++{
++ "version": "locker.envelope.v1",
++ "suite": "AES-128-GCM",
++ "chunk_size": 1048576,
++ "padded_size": 256,
++ "nonce_base": "YmJiYmJiYmI=",
++ "lock": "link",
++ "slots": {
++ "link": {}
++ }
++}
ddiff --git a/fixtures/locker.envelope/invalid/padded-size.json b/fixtures/locker.envelope/invalid/padded-size.json
nnew file mode 100644
iindex 00000000..936d864d
---- /dev/null
++++ b/fixtures/locker.envelope/invalid/padded-size.json
@@@ -0,0 +1,11 @@
++{
++ "version": "locker.envelope.v1",
++ "suite": "AES-256-GCM",
++ "chunk_size": 1048576,
++ "padded_size": 100,
++ "nonce_base": "YmJiYmJiYmI=",
++ "lock": "link",
++ "slots": {
++ "link": {}
++ }
++}
ddiff --git a/fixtures/locker.envelope/invalid/two-locks.json b/fixtures/locker.envelope/invalid/two-locks.json
nnew file mode 100644
iindex 00000000..f6654d57
---- /dev/null
++++ b/fixtures/locker.envelope/invalid/two-locks.json
@@@ -0,0 +1,19 @@
++{
++ "version": "locker.envelope.v1",
++ "suite": "AES-256-GCM",
++ "chunk_size": 1048576,
++ "padded_size": 256,
++ "nonce_base": "YmJiYmJiYmI=",
++ "lock": "link",
++ "slots": {
++ "link": {},
++ "password": {
++ "algorithm": "PBKDF2-SHA256/AES-256-GCM",
++ "kdf": "PBKDF2-SHA-256",
++ "iterations": 600000,
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++ }
++ }
++}
ddiff --git a/fixtures/locker.envelope/invalid/unknown-field.json b/fixtures/locker.envelope/invalid/unknown-field.json
nnew file mode 100644
iindex 00000000..70fab407
---- /dev/null
++++ b/fixtures/locker.envelope/invalid/unknown-field.json
@@@ -0,0 +1,12 @@
++{
++ "version": "locker.envelope.v1",
++ "suite": "AES-256-GCM",
++ "chunk_size": 1048576,
++ "padded_size": 256,
++ "nonce_base": "YmJiYmJiYmI=",
++ "lock": "link",
++ "slots": {
++ "link": {}
++ },
++ "secret": "the content key never goes in the header"
++}
ddiff --git a/fixtures/locker.envelope/valid/link.json b/fixtures/locker.envelope/valid/link.json
nnew file mode 100644
iindex 00000000..a63572cc
---- /dev/null
++++ b/fixtures/locker.envelope/valid/link.json
@@@ -0,0 +1,11 @@
++{
++ "version": "locker.envelope.v1",
++ "suite": "AES-256-GCM",
++ "chunk_size": 1048576,
++ "padded_size": 256,
++ "nonce_base": "YmJiYmJiYmI=",
++ "lock": "link",
++ "slots": {
++ "link": {}
++ }
++}
ddiff --git a/fixtures/locker.envelope/valid/password.json b/fixtures/locker.envelope/valid/password.json
nnew file mode 100644
iindex 00000000..e87e3fd5
---- /dev/null
++++ b/fixtures/locker.envelope/valid/password.json
@@@ -0,0 +1,18 @@
++{
++ "version": "locker.envelope.v1",
++ "suite": "AES-256-GCM",
++ "chunk_size": 1048576,
++ "padded_size": 256,
++ "nonce_base": "YmJiYmJiYmI=",
++ "lock": "password",
++ "slots": {
++ "password": {
++ "algorithm": "PBKDF2-SHA256/AES-256-GCM",
++ "kdf": "PBKDF2-SHA-256",
++ "iterations": 600000,
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++ }
++ }
++}
ddiff --git a/fixtures/locker.envelope/valid/people.json b/fixtures/locker.envelope/valid/people.json
nnew file mode 100644
iindex 00000000..6af607c6
---- /dev/null
++++ b/fixtures/locker.envelope/valid/people.json
@@@ -0,0 +1,26 @@
++{
++ "version": "locker.envelope.v1",
++ "suite": "AES-256-GCM",
++ "chunk_size": 1048576,
++ "padded_size": 256,
++ "nonce_base": "YmJiYmJiYmI=",
++ "lock": "people",
++ "slots": {
++ "people": [
++{
++ "subject": { "type": "user", "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR" },
++ "algorithm": "ECDH-P256/HKDF-SHA256/AES-256-GCM",
++ "recipient_key": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8",
++ "ephemeral_public_key": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++ },
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
++ ]
++ }
++}
ddiff --git a/fixtures/locker.key-backup/invalid/weak-iterations.json b/fixtures/locker.key-backup/invalid/weak-iterations.json
nnew file mode 100644
iindex 00000000..b8c39a58
---- /dev/null
++++ b/fixtures/locker.key-backup/invalid/weak-iterations.json
@@@ -0,0 +1,8 @@
++{
++ "method": "passphrase",
++ "kdf": "PBKDF2-SHA-256",
++ "iterations": 10000,
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_keys": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
ddiff --git a/fixtures/locker.key-backup/valid/example.json b/fixtures/locker.key-backup/valid/example.json
nnew file mode 100644
iindex 00000000..70f605fc
---- /dev/null
++++ b/fixtures/locker.key-backup/valid/example.json
@@@ -0,0 +1,8 @@
++{
++ "method": "passphrase",
++ "kdf": "PBKDF2-SHA-256",
++ "iterations": 600000,
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_keys": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
ddiff --git a/fixtures/locker.key-change/invalid/reason.json b/fixtures/locker.key-change/invalid/reason.json
nnew file mode 100644
iindex 00000000..1c4bf165
---- /dev/null
++++ b/fixtures/locker.key-change/invalid/reason.json
@@@ -0,0 +1,6 @@
++{
++ "subject": { "type": "user", "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ" },
++ "reason": "stolen",
++ "changed_at": "2026-11-06T00:00:00Z",
++ "fingerprint": "amber quiet harbor cedar · mist dawn ember willow"
++}
ddiff --git a/fixtures/locker.key-change/valid/example.json b/fixtures/locker.key-change/valid/example.json
nnew file mode 100644
iindex 00000000..69f9f058
---- /dev/null
++++ b/fixtures/locker.key-change/valid/example.json
@@@ -0,0 +1,7 @@
++{
++ "subject": { "type": "user", "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ" },
++ "reason": "rotated",
++ "changed_at": "2026-11-06T00:00:00Z",
++ "fingerprint": "amber quiet harbor cedar · mist dawn ember willow",
++ "previous_fingerprint": "amber quiet harbor stone · lake fern moss reed"
++}
ddiff --git a/fixtures/locker.keys-put-request/invalid/no-backup.json b/fixtures/locker.keys-put-request/invalid/no-backup.json
nnew file mode 100644
iindex 00000000..3f866081
---- /dev/null
++++ b/fixtures/locker.keys-put-request/invalid/no-backup.json
@@@ -0,0 +1,16 @@
++{
++ "ecdh": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "signing": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "fingerprint": "amber quiet harbor cedar · mist dawn ember willow",
++ "fingerprint_signature": "Z2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZw=="
++}
ddiff --git a/fixtures/locker.keys-put-request/valid/example.json b/fixtures/locker.keys-put-request/valid/example.json
nnew file mode 100644
iindex 00000000..52be7319
---- /dev/null
++++ b/fixtures/locker.keys-put-request/valid/example.json
@@@ -0,0 +1,24 @@
++{
++ "ecdh": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "signing": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "fingerprint": "amber quiet harbor cedar · mist dawn ember willow",
++ "fingerprint_signature": "Z2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZw==",
++ "backup": {
++ "method": "passphrase",
++ "kdf": "PBKDF2-SHA-256",
++ "iterations": 600000,
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_keys": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++ }
++}
ddiff --git a/fixtures/locker.link-slot/invalid/stored-key.json b/fixtures/locker.link-slot/invalid/stored-key.json
nnew file mode 100644
iindex 00000000..eab05ace
---- /dev/null
++++ b/fixtures/locker.link-slot/invalid/stored-key.json
@@@ -0,0 +1,3 @@
++{
++ "key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
ddiff --git a/fixtures/locker.link-slot/valid/example.json b/fixtures/locker.link-slot/valid/example.json
nnew file mode 100644
iindex 00000000..0967ef42
---- /dev/null
++++ b/fixtures/locker.link-slot/valid/example.json
@@@ -0,0 +1 @@
++{}
ddiff --git a/fixtures/locker.password-slot/invalid/weak-iterations.json b/fixtures/locker.password-slot/invalid/weak-iterations.json
nnew file mode 100644
iindex 00000000..78d71dc6
---- /dev/null
++++ b/fixtures/locker.password-slot/invalid/weak-iterations.json
@@@ -0,0 +1,8 @@
++{
++ "algorithm": "PBKDF2-SHA256/AES-256-GCM",
++ "kdf": "PBKDF2-SHA-256",
++ "iterations": 1000,
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
ddiff --git a/fixtures/locker.password-slot/valid/example.json b/fixtures/locker.password-slot/valid/example.json
nnew file mode 100644
iindex 00000000..a45a3b4a
---- /dev/null
++++ b/fixtures/locker.password-slot/valid/example.json
@@@ -0,0 +1,8 @@
++{
++ "algorithm": "PBKDF2-SHA256/AES-256-GCM",
++ "kdf": "PBKDF2-SHA-256",
++ "iterations": 600000,
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
ddiff --git a/fixtures/locker.people-slot/invalid/no-recipient-key.json b/fixtures/locker.people-slot/invalid/no-recipient-key.json
nnew file mode 100644
iindex 00000000..e244c92f
---- /dev/null
++++ b/fixtures/locker.people-slot/invalid/no-recipient-key.json
@@@ -0,0 +1,13 @@
++{
++ "subject": { "type": "user", "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR" },
++ "algorithm": "ECDH-P256/HKDF-SHA256/AES-256-GCM",
++ "ephemeral_public_key": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++ },
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
ddiff --git a/fixtures/locker.people-slot/invalid/no-subject.json b/fixtures/locker.people-slot/invalid/no-subject.json
nnew file mode 100644
iindex 00000000..93e21e86
---- /dev/null
++++ b/fixtures/locker.people-slot/invalid/no-subject.json
@@@ -0,0 +1,13 @@
++{
++ "algorithm": "ECDH-P256/HKDF-SHA256/AES-256-GCM",
++ "recipient_key": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8",
++ "ephemeral_public_key": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++ },
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
ddiff --git a/fixtures/locker.people-slot/invalid/wrong-algorithm.json b/fixtures/locker.people-slot/invalid/wrong-algorithm.json
nnew file mode 100644
iindex 00000000..204a8185
---- /dev/null
++++ b/fixtures/locker.people-slot/invalid/wrong-algorithm.json
@@@ -0,0 +1,13 @@
++{
++ "subject": { "type": "user", "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR" },
++ "algorithm": "RSA-OAEP/AES-256-GCM",
++ "ephemeral_public_key": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++ },
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
ddiff --git a/fixtures/locker.people-slot/valid/example.json b/fixtures/locker.people-slot/valid/example.json
nnew file mode 100644
iindex 00000000..720f1769
---- /dev/null
++++ b/fixtures/locker.people-slot/valid/example.json
@@@ -0,0 +1,14 @@
++{
++ "subject": { "type": "user", "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR" },
++ "algorithm": "ECDH-P256/HKDF-SHA256/AES-256-GCM",
++ "recipient_key": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8",
++ "ephemeral_public_key": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++ },
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++}
ddiff --git a/fixtures/locker.public-key/invalid/other-curve.json b/fixtures/locker.public-key/invalid/other-curve.json
nnew file mode 100644
iindex 00000000..5979cc59
---- /dev/null
++++ b/fixtures/locker.public-key/invalid/other-curve.json
@@@ -0,0 +1,6 @@
++{
++ "kty": "EC",
++ "crv": "P-384",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++}
ddiff --git a/fixtures/locker.public-key/valid/example.json b/fixtures/locker.public-key/valid/example.json
nnew file mode 100644
iindex 00000000..bb9cf2b8
---- /dev/null
++++ b/fixtures/locker.public-key/valid/example.json
@@@ -0,0 +1,6 @@
++{
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++}
ddiff --git a/fixtures/locker.public-keys/invalid/fingerprint-separator.json b/fixtures/locker.public-keys/invalid/fingerprint-separator.json
nnew file mode 100644
iindex 00000000..321f904e
---- /dev/null
++++ b/fixtures/locker.public-keys/invalid/fingerprint-separator.json
@@@ -0,0 +1,18 @@
++{
++ "subject": { "type": "user", "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ" },
++ "ecdh": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "signing": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "fingerprint": "amber quiet harbor cedar-mist dawn ember willow",
++ "fingerprint_signature": "Z2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZw==",
++ "updated_at": "2026-11-06T00:00:00Z"
++}
ddiff --git a/fixtures/locker.public-keys/invalid/fingerprint.json b/fixtures/locker.public-keys/invalid/fingerprint.json
nnew file mode 100644
iindex 00000000..f6bd1157
---- /dev/null
++++ b/fixtures/locker.public-keys/invalid/fingerprint.json
@@@ -0,0 +1,18 @@
++{
++ "subject": { "type": "user", "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ" },
++ "ecdh": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "signing": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "fingerprint": "amber quiet harbor cedar",
++ "fingerprint_signature": "Z2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZw==",
++ "updated_at": "2026-11-06T00:00:00Z"
++}
ddiff --git a/fixtures/locker.public-keys/valid/example.json b/fixtures/locker.public-keys/valid/example.json
nnew file mode 100644
iindex 00000000..8c5a25dc
---- /dev/null
++++ b/fixtures/locker.public-keys/valid/example.json
@@@ -0,0 +1,18 @@
++{
++ "subject": { "type": "user", "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ" },
++ "ecdh": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "signing": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++},
++ "fingerprint": "amber quiet harbor cedar · mist dawn ember willow",
++ "fingerprint_signature": "Z2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZw==",
++ "updated_at": "2026-11-06T00:00:00Z"
++}
ddiff --git a/fixtures/share.update-request/invalid/lock.json b/fixtures/share.update-request/invalid/lock.json
nnew file mode 100644
iindex 00000000..c6ab31fe
---- /dev/null
++++ b/fixtures/share.update-request/invalid/lock.json
@@@ -0,0 +1,3 @@
++{
++ "lock": "secret"
++}
ddiff --git a/fixtures/share.update-request/valid/lock.json b/fixtures/share.update-request/valid/lock.json
nnew file mode 100644
iindex 00000000..39902760
---- /dev/null
++++ b/fixtures/share.update-request/valid/lock.json
@@@ -0,0 +1,3 @@
++{
++ "lock": "password"
++}
ddiff --git a/fixtures/share/invalid/lock.json b/fixtures/share/invalid/lock.json
nnew file mode 100644
iindex 00000000..823e9523
---- /dev/null
++++ b/fixtures/share/invalid/lock.json
@@@ -0,0 +1,72 @@
++{
++ "ref": {
++ "service": "community",
++ "kind": "paste",
++ "id": "abc"
++ },
++ "owner_subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
++ },
++ "owner": {
++ "subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
++ },
++ "username": "ursula",
++ "display_name": "Ursula",
++ "avatar_url": null
++ },
++ "audience": "people",
++ "members": [
++ {
++ "subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
++ },
++ "username": "maticus",
++ "display_name": "Maticus",
++ "avatar_url": "https://cdn.openvibe.network/avatars/maticus.png",
++ "role": "viewer",
++ "added_by": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
++ },
++ "added_at": "2026-11-06T00:00:00Z"
++ }
++ ],
++ "you": {
++ "subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
++ },
++ "role": "owner"
++ },
++ "requests": [
++ {
++ "id": "00000000-0000-4000-8000-000000000001",
++ "subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPS"
++ },
++ "username": "xenia",
++ "display_name": "Xenia",
++ "avatar_url": null,
++ "requested_at": "2026-11-06T00:05:00Z"
++ }
++ ],
++ "title": "LOOI bridge notes",
++ "link": "https://community.openvibe.network/p/abc",
++ "roles": [
++ "viewer",
++ "editor"
++ ],
++ "audiences": [
++ "public",
++ "link",
++ "people",
++ "private"
++ ],
++ "transferable": true,
++ "lock": "everyone"
++}
ddiff --git a/fixtures/share/valid/locked.json b/fixtures/share/valid/locked.json
nnew file mode 100644
iindex 00000000..a7c2a8b5
---- /dev/null
++++ b/fixtures/share/valid/locked.json
@@@ -0,0 +1,89 @@
++{
++ "ref": {
++ "service": "community",
++ "kind": "paste",
++ "id": "abc"
++ },
++ "owner_subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
++ },
++ "owner": {
++ "subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
++ },
++ "username": "ursula",
++ "display_name": "Ursula",
++ "avatar_url": null
++ },
++ "audience": "people",
++ "members": [
++ {
++ "subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
++ },
++ "username": "maticus",
++ "display_name": "Maticus",
++ "avatar_url": "https://cdn.openvibe.network/avatars/maticus.png",
++ "role": "viewer",
++ "added_by": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
++ },
++ "added_at": "2026-11-06T00:00:00Z",
++ "key_slot": {
++ "subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR"
++ },
++ "algorithm": "ECDH-P256/HKDF-SHA256/AES-256-GCM",
++ "recipient_key": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8",
++ "ephemeral_public_key": {
++ "kty": "EC",
++ "crv": "P-256",
++ "x": "eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHg",
++ "y": "eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXl5eXk"
++ },
++ "salt": "c3Nzc3Nzc3Nzc3Nzc3Nzcw==",
++ "nonce": "bm5ubm5ubm5ubm5u",
++ "wrapped_key": "d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3"
++ }
++ }
++ ],
++ "you": {
++ "subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
++ },
++ "role": "owner"
++ },
++ "requests": [
++ {
++ "id": "00000000-0000-4000-8000-000000000001",
++ "subject": {
++ "type": "user",
++ "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPS"
++ },
++ "username": "xenia",
++ "display_name": "Xenia",
++ "avatar_url": null,
++ "requested_at": "2026-11-06T00:05:00Z"
++ }
++ ],
++ "title": "LOOI bridge notes",
++ "link": "https://community.openvibe.network/p/abc",
++ "roles": [
++ "viewer",
++ "editor"
++ ],
++ "audiences": [
++ "public",
++ "link",
++ "people",
++ "private"
++ ],
++ "transferable": true,
++ "lock": "people"
++}
ddiff --git a/generated/json-schema/bundle.json b/generated/json-schema/bundle.json
iindex a5b2c7c5..d761d1b0 100644
---- a/generated/json-schema/bundle.json
++++ b/generated/json-schema/bundle.json
@@@ -101619,7 +101619,7 @@
}
},
"share.member": {
-- "version": "1.0.0",
++ "version": "1.1.0",
"owner": "network",
"status": "active",
"schema": {
@@@ -101667,6 +101667,9 @@
"added_at": {
"type": "string",
"format": "date-time"
++ },
++ "key_slot": {
++ "$ref": "../locker/people-slot.v1.json"
}
},
"required": [
@@@ -101681,7 +101684,7 @@
}
},
"share.member-input": {
-- "version": "1.0.0",
++ "version": "1.1.0",
"owner": "network",
"status": "active",
"schema": {
@@@ -101708,6 +101711,9 @@
"expires_at": {
"type": "string",
"format": "date-time"
++ },
++ "key_slot": {
++ "$ref": "../locker/people-slot.v1.json"
}
},
"required": [
@@@ -101832,7 +101838,7 @@
}
},
"share": {
-- "version": "1.0.0",
++ "version": "1.1.0",
"owner": "network",
"status": "active",
"schema": {
@@@ -101870,6 +101876,15 @@
"transfer": {
"$ref": "transfer-view.v1.json"
},
++ "lock": {
++ "enum": [
++ "none",
++ "people",
++ "password",
++ "link"
++ ],
++ "description": "How the resource is sealed (Locker). none means it is stored as it is; people, password and link are the three Locker locks. The server stores the envelope and never opens it."
++ },
"you": {
"$ref": "you.v1.json"
},
@@@ -102140,14 +102155,14 @@
}
},
"share.update-request": {
-- "version": "1.0.0",
++ "version": "1.1.0",
"owner": "network",
"status": "active",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://openvibe.network/contracts/share/update-request.v1.json",
"title": "ShareUpdateRequest",
-- "description": "share.update-request@1: network-wide sharing. Ids only; no resource title or content. Members apply to people audience; pending recipients may preview for seven days.",
++ "description": "share.update-request@1: network-wide sharing. Ids only; no resource title or content. Members apply to people audience; pending recipients may preview for seven days. `lock` sets how the resource itself is sealed (Locker).",
"type": "object",
"additionalProperties": false,
"properties": {
@@@ -102169,6 +102184,15 @@
"notify": {
"type": "boolean",
"default": true
++ },
++ "lock": {
++ "enum": [
++ "none",
++ "people",
++ "password",
++ "link"
++ ],
++ "description": "How the resource is sealed (Locker)."
}
},
"required": [],
@@@ -102634,6 +102658,543 @@
"transfer"
]
}
++ },
++ "locker.envelope": {
++ "version": "1.0.0",
++ "owner": "network",
++ "status": "active",
++ "schema": {
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/envelope.v1.json",
++ "title": "LockerEnvelope",
++ "description": "locker.envelope@1: the header of a Locker envelope. It is the JSON that opens every chunk of the envelope bytes: the suite, the chunk size, the padded size, the counter nonce base and one key slot per way in. The content key is never in the header; it is wrapped inside a slot. Every chunk authenticates the header's core fields (version, suite, chunk_size, padded_size, nonce_base, lock) as associated data, so the framing, the size and the lock kind cannot be changed; the slots sit outside that core on purpose, because adding a member re-wraps the content key without re-encrypting the content, and each slot carries its own AES-GCM tag over the content key with its own parameters bound in.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "version",
++ "suite",
++ "chunk_size",
++ "padded_size",
++ "nonce_base",
++ "lock",
++ "slots"
++ ],
++ "properties": {
++ "version": {
++ "const": "locker.envelope.v1"
++ },
++ "suite": {
++ "const": "AES-256-GCM"
++ },
++ "chunk_size": {
++ "const": 1048576,
++ "description": "The chunk size in bytes: 1 MiB. Fixed for this version."
++ },
++ "padded_size": {
++ "type": "integer",
++ "minimum": 256,
++ "description": "The size of the padded plaintext in bytes. The true size lives inside the encrypted content, so the server cannot read it; this is the size it may store and show. The size is padded with Padmé (Nikitin et al., PoPETs 2019): it is the next size on a grid that gets finer as the content grows, at most twelve per cent over the real one, and never below 256 bytes. Every chunk but the last is a whole chunk; the last holds what is left of this size."
++ },
++ "nonce_base": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{11}=$",
++ "description": "Eight random bytes, base64: the first half of every chunk nonce. The second half is the chunk counter, so no nonce repeats inside one envelope."
++ },
++ "lock": {
++ "enum": [
++ "people",
++ "password",
++ "link"
++ ],
++ "description": "Which way in the envelope has. Exactly one slot kind is present, and it matches this."
++ },
++ "slots": {
++ "type": "object",
++ "additionalProperties": false,
++ "properties": {
++ "people": {
++ "type": "array",
++ "minItems": 1,
++ "maxItems": 100,
++ "items": {
++ "$ref": "people-slot.v1.json"
++ }
++ },
++ "password": {
++ "$ref": "password-slot.v1.json"
++ },
++ "link": {
++ "$ref": "link-slot.v1.json"
++ }
++ }
++ }
++ },
++ "allOf": [
++ {
++ "if": {
++ "properties": {
++ "lock": {
++ "const": "people"
++ }
++ },
++ "required": [
++ "lock"
++ ]
++ },
++ "then": {
++ "properties": {
++ "slots": {
++ "type": "object",
++ "required": [
++ "people"
++ ],
++ "not": {
++ "anyOf": [
++ {
++ "type": "object",
++ "required": [
++ "password"
++ ]
++ },
++ {
++ "type": "object",
++ "required": [
++ "link"
++ ]
++ }
++ ]
++ }
++ }
++ }
++ }
++ },
++ {
++ "if": {
++ "properties": {
++ "lock": {
++ "const": "password"
++ }
++ },
++ "required": [
++ "lock"
++ ]
++ },
++ "then": {
++ "properties": {
++ "slots": {
++ "type": "object",
++ "required": [
++ "password"
++ ],
++ "not": {
++ "anyOf": [
++ {
++ "type": "object",
++ "required": [
++ "people"
++ ]
++ },
++ {
++ "type": "object",
++ "required": [
++ "link"
++ ]
++ }
++ ]
++ }
++ }
++ }
++ }
++ },
++ {
++ "if": {
++ "properties": {
++ "lock": {
++ "const": "link"
++ }
++ },
++ "required": [
++ "lock"
++ ]
++ },
++ "then": {
++ "properties": {
++ "slots": {
++ "type": "object",
++ "required": [
++ "link"
++ ],
++ "not": {
++ "anyOf": [
++ {
++ "type": "object",
++ "required": [
++ "people"
++ ]
++ },
++ {
++ "type": "object",
++ "required": [
++ "password"
++ ]
++ }
++ ]
++ }
++ }
++ }
++ }
++ }
++ ]
++ }
++ },
++ "locker.people-slot": {
++ "version": "1.0.0",
++ "owner": "network",
++ "status": "active",
++ "schema": {
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/people-slot.v1.json",
++ "title": "LockerPeopleSlot",
++ "description": "locker.people-slot@1: the content key wrapped for one person. The wrapping key is ECDH P-256 (an ephemeral key pair per envelope) put through HKDF-SHA-256, and the content key is sealed with AES-256-GCM. The tag covers the subject, the recipient's key, the ephemeral public key and the salt, so a slot cannot be moved to another person or to another envelope.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "subject",
++ "algorithm",
++ "recipient_key",
++ "ephemeral_public_key",
++ "salt",
++ "nonce",
++ "wrapped_key"
++ ],
++ "properties": {
++ "subject": {
++ "$ref": "../identity/subject-ref.v1.json"
++ },
++ "algorithm": {
++ "const": "ECDH-P256/HKDF-SHA256/AES-256-GCM"
++ },
++ "recipient_key": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9_-]{43}$",
++ "description": "The RFC 7638 thumbprint of the recipient's ECDH public key: SHA-256 over the canonical JSON of the key's four members, base64url. The slot is bound to this key as well as to the subject, and the reader checks it before it derives anything."
++ },
++ "ephemeral_public_key": {
++ "$ref": "public-key.v1.json"
++ },
++ "salt": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{22}==$",
++ "description": "Sixteen random bytes, base64: the HKDF salt for this slot."
++ },
++ "nonce": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{16}$",
++ "description": "Twelve random bytes, base64: the AES-GCM nonce of the wrapped content key."
++ },
++ "wrapped_key": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{64}$",
++ "description": "The 32-byte content key and its 16-byte tag, base64. Never the key itself."
++ }
++ }
++ }
++ },
++ "locker.password-slot": {
++ "version": "1.0.0",
++ "owner": "network",
++ "status": "active",
++ "schema": {
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/password-slot.v1.json",
++ "title": "LockerPasswordSlot",
++ "description": "locker.password-slot@1: the content key wrapped with a password. The wrapping key comes from PBKDF2-SHA-256 with the salt and the iteration count in this slot, so both can be raised later without changing the format. The tag covers the parameters, so they cannot be weakened in transit.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "algorithm",
++ "kdf",
++ "iterations",
++ "salt",
++ "nonce",
++ "wrapped_key"
++ ],
++ "properties": {
++ "algorithm": {
++ "const": "PBKDF2-SHA256/AES-256-GCM"
++ },
++ "kdf": {
++ "const": "PBKDF2-SHA-256"
++ },
++ "iterations": {
++ "type": "integer",
++ "minimum": 600000,
++ "maximum": 10000000,
++ "description": "PBKDF2 iterations. 600000 is the floor for this version; the count may go up, never down."
++ },
++ "salt": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{22}==$",
++ "description": "Sixteen random bytes, base64: the PBKDF2 salt."
++ },
++ "nonce": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{16}$",
++ "description": "Twelve random bytes, base64: the AES-GCM nonce of the wrapped content key."
++ },
++ "wrapped_key": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{64}$",
++ "description": "The 32-byte content key and its 16-byte tag, base64. Never the key itself."
++ }
++ }
++ }
++ },
++ "locker.link-slot": {
++ "version": "1.0.0",
++ "owner": "network",
++ "status": "active",
++ "schema": {
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/link-slot.v1.json",
++ "title": "LockerLinkSlot",
++ "description": "locker.link-slot@1: a link lock stores no key. The content key travels in the part of the link after the #, which browsers never send to us, so this slot is empty on purpose and the envelope says only that the key is somewhere else.",
++ "type": "object",
++ "additionalProperties": false,
++ "properties": {}
++ }
++ },
++ "locker.public-key": {
++ "version": "1.0.0",
++ "owner": "network",
++ "status": "active",
++ "schema": {
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/public-key.v1.json",
++ "title": "LockerPublicKey",
++ "description": "locker.public-key@1: one P-256 public key as a JWK. The same shape is used for the ECDH key that receives content keys and for the ECDSA key that signs the fingerprint; what a key does is decided by where it is used, never by the key itself.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "kty",
++ "crv",
++ "x",
++ "y"
++ ],
++ "properties": {
++ "kty": {
++ "const": "EC"
++ },
++ "crv": {
++ "const": "P-256"
++ },
++ "x": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9_-]{43}$",
++ "description": "The public x coordinate, base64url, as WebCrypto exports it."
++ },
++ "y": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9_-]{43}$",
++ "description": "The public y coordinate, base64url, as WebCrypto exports it."
++ },
++ "ext": {
++ "const": true
++ },
++ "key_ops": {
++ "type": "array",
++ "items": {
++ "enum": [
++ "deriveBits",
++ "deriveKey",
++ "verify"
++ ]
++ }
++ }
++ }
++ }
++ },
++ "locker.public-keys": {
++ "version": "1.0.0",
++ "owner": "network",
++ "status": "active",
++ "schema": {
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/public-keys.v1.json",
++ "title": "LockerPublicKeys",
++ "description": "locker.public-keys@1: what anyone may read about a person's locker: the two public keys and the eight-word fingerprint. The fingerprint is the first eight bytes of SHA-256 over both public keys, read as eight words in two groups of four, joined by a middle dot, and the signature proves the holder owns the signing key, so a person can compare the eight words out of band and a key change is visible.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "subject",
++ "ecdh",
++ "signing",
++ "fingerprint",
++ "fingerprint_signature",
++ "updated_at"
++ ],
++ "properties": {
++ "subject": {
++ "$ref": "../identity/subject-ref.v1.json"
++ },
++ "ecdh": {
++ "$ref": "public-key.v1.json"
++ },
++ "signing": {
++ "$ref": "public-key.v1.json"
++ },
++ "fingerprint": {
++ "type": "string",
++ "pattern": "^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$",
++ "description": "Eight words, lower case, in two groups of four joined by a middle dot: sixty-four bits. Compare them out of band; a change means a changed key."
++ },
++ "fingerprint_signature": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{86}==$",
++ "description": "The ECDSA signature over both public keys, base64. It proves the holder owns the signing key."
++ },
++ "updated_at": {
++ "type": "string",
++ "format": "date-time"
++ }
++ }
++ }
++ },
++ "locker.keys-put-request": {
++ "version": "1.0.0",
++ "owner": "network",
++ "status": "active",
++ "schema": {
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/keys-put-request.v1.json",
++ "title": "LockerKeysPutRequest",
++ "description": "locker.keys-put-request@1: what a person sends to set their locker keys. The public keys and the fingerprint are readable by anyone; the private keys go in the backup, wrapped by a key from the locker passphrase, so the server never holds an unwrapped key.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "ecdh",
++ "signing",
++ "fingerprint",
++ "fingerprint_signature",
++ "backup"
++ ],
++ "properties": {
++ "ecdh": {
++ "$ref": "public-key.v1.json"
++ },
++ "signing": {
++ "$ref": "public-key.v1.json"
++ },
++ "fingerprint": {
++ "type": "string",
++ "pattern": "^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$"
++ },
++ "fingerprint_signature": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{86}==$"
++ },
++ "backup": {
++ "$ref": "key-backup.v1.json"
++ }
++ }
++ }
++ },
++ "locker.key-backup": {
++ "version": "1.0.0",
++ "owner": "network",
++ "status": "active",
++ "schema": {
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/key-backup.v1.json",
++ "title": "LockerKeyBackup",
++ "description": "locker.key-backup@1: the person's private keys, wrapped. The wrapping key comes from the locker passphrase with PBKDF2-SHA-256, so the server stores bytes it cannot open; a passkey (WebAuthn PRF) may wrap the same bytes later without changing this shape.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "method",
++ "kdf",
++ "iterations",
++ "salt",
++ "nonce",
++ "wrapped_keys"
++ ],
++ "properties": {
++ "method": {
++ "enum": [
++ "passphrase"
++ ],
++ "description": "How the private keys are wrapped. A passkey-only locker comes later."
++ },
++ "kdf": {
++ "const": "PBKDF2-SHA-256"
++ },
++ "iterations": {
++ "type": "integer",
++ "minimum": 600000,
++ "maximum": 10000000
++ },
++ "salt": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{22}==$",
++ "description": "Sixteen random bytes, base64."
++ },
++ "nonce": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]{16}$",
++ "description": "Twelve random bytes, base64: the AES-GCM nonce of the wrapped keys."
++ },
++ "wrapped_keys": {
++ "type": "string",
++ "pattern": "^[A-Za-z0-9+/]+={0,2}$",
++ "description": "The two private keys as JWKs, sealed with AES-256-GCM under the derived key, base64."
++ }
++ }
++ }
++ },
++ "locker.key-change": {
++ "version": "1.0.0",
++ "owner": "network",
++ "status": "active",
++ "schema": {
++ "$schema": "https://json-schema.org/draft/2020-12/schema",
++ "$id": "https://openvibe.network/contracts/locker/key-change.v1.json",
++ "title": "LockerKeyChange",
++ "description": "locker.key-change@1: a record that a person's locker keys changed, so the share sheet can warn before sharing with a key that is not the one people saw before.",
++ "type": "object",
++ "additionalProperties": false,
++ "required": [
++ "subject",
++ "reason",
++ "changed_at",
++ "fingerprint"
++ ],
++ "properties": {
++ "subject": {
++ "$ref": "../identity/subject-ref.v1.json"
++ },
++ "reason": {
++ "enum": [
++ "created",
++ "rotated",
++ "restored"
++ ]
++ },
++ "changed_at": {
++ "type": "string",
++ "format": "date-time"
++ },
++ "fingerprint": {
++ "type": "string",
++ "pattern": "^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$",
++ "description": "The eight words of the new keys, in two groups of four joined by a middle dot."
++ },
++ "previous_fingerprint": {
++ "type": "string",
++ "pattern": "^[a-z]+ [a-z]+ [a-z]+ [a-z]+ · [a-z]+ [a-z]+ [a-z]+ [a-z]+$",
++ "description": "The eight words before the change, when there were any."
++ }
++ }
++ }
}
}
}
ddiff --git a/generated/openapi/actor.json b/generated/openapi/actor.json
iindex 5ab21728..a5c7abb9 100644
---- a/generated/openapi/actor.json
++++ b/generated/openapi/actor.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Actor API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Actor as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Actor as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/ai.json b/generated/openapi/ai.json
iindex 93acbd22..c31bafdb 100644
---- a/generated/openapi/ai.json
++++ b/generated/openapi/ai.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.AI API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.AI as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.AI as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/bench.json b/generated/openapi/bench.json
iindex d6c8765f..7d8d65d3 100644
---- a/generated/openapi/bench.json
++++ b/generated/openapi/bench.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Bench API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Bench as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Bench as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/billing.json b/generated/openapi/billing.json
iindex 8c8c9b7a..52d1615e 100644
---- a/generated/openapi/billing.json
++++ b/generated/openapi/billing.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Billing API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Billing as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Billing as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/blog.json b/generated/openapi/blog.json
iindex 1a751a6e..b7b7653a 100644
---- a/generated/openapi/blog.json
++++ b/generated/openapi/blog.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Blog API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Blog as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Blog as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/bot.json b/generated/openapi/bot.json
iindex 2e1e418a..ec396d65 100644
---- a/generated/openapi/bot.json
++++ b/generated/openapi/bot.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Bot API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Bot as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Bot as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/chat.json b/generated/openapi/chat.json
iindex 9eebd521..5f3d90a8 100644
---- a/generated/openapi/chat.json
++++ b/generated/openapi/chat.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Chat API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Chat as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Chat as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/codes.json b/generated/openapi/codes.json
iindex e6d0f300..8564bc1b 100644
---- a/generated/openapi/codes.json
++++ b/generated/openapi/codes.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Codes API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Codes as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Codes as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/community.json b/generated/openapi/community.json
iindex e5ae3568..3a3b707c 100644
---- a/generated/openapi/community.json
++++ b/generated/openapi/community.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Community API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Community as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Community as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/coupons.json b/generated/openapi/coupons.json
iindex 72dc69c6..4daf36aa 100644
---- a/generated/openapi/coupons.json
++++ b/generated/openapi/coupons.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Coupons API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Coupons as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Coupons as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/deals.json b/generated/openapi/deals.json
iindex 978908d9..557666da 100644
---- a/generated/openapi/deals.json
++++ b/generated/openapi/deals.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Deals API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Deals as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Deals as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/domains.json b/generated/openapi/domains.json
iindex e2914a95..5134377b 100644
---- a/generated/openapi/domains.json
++++ b/generated/openapi/domains.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Domains API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Domains as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Domains as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/events.json b/generated/openapi/events.json
iindex 6f32ee7d..a85a9efb 100644
---- a/generated/openapi/events.json
++++ b/generated/openapi/events.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Events API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Events as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Events as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/food.json b/generated/openapi/food.json
iindex 1b0abb00..ac13c530 100644
---- a/generated/openapi/food.json
++++ b/generated/openapi/food.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Food API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Food as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Food as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/games.json b/generated/openapi/games.json
iindex fa04faaf..0ef615c4 100644
---- a/generated/openapi/games.json
++++ b/generated/openapi/games.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Games API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Games as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Games as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/host.json b/generated/openapi/host.json
iindex d785c6b7..293bbc89 100644
---- a/generated/openapi/host.json
++++ b/generated/openapi/host.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Host API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Host as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Host as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/inventory.json b/generated/openapi/inventory.json
iindex 3dcb78d6..6a1c6759 100644
---- a/generated/openapi/inventory.json
++++ b/generated/openapi/inventory.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Inventory API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Inventory as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Inventory as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/live.json b/generated/openapi/live.json
iindex 9abe27a0..d9f08487 100644
---- a/generated/openapi/live.json
++++ b/generated/openapi/live.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Live API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Live as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Live as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/media-hub.json b/generated/openapi/media-hub.json
iindex bbb11626..a6856ffd 100644
---- a/generated/openapi/media-hub.json
++++ b/generated/openapi/media-hub.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.MediaHub API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.MediaHub as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.MediaHub as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/media.json b/generated/openapi/media.json
iindex cdee7c82..7e2b8487 100644
---- a/generated/openapi/media.json
++++ b/generated/openapi/media.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Media API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Media as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Media as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/network.json b/generated/openapi/network.json
iindex 01fd373f..9081e922 100644
---- a/generated/openapi/network.json
++++ b/generated/openapi/network.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Network API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Network as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Network as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/news.json b/generated/openapi/news.json
iindex 323910de..6a84b5ac 100644
---- a/generated/openapi/news.json
++++ b/generated/openapi/news.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.News API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.News as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.News as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/openre.json b/generated/openapi/openre.json
iindex 7f256f37..b83315a9 100644
---- a/generated/openapi/openre.json
++++ b/generated/openapi/openre.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenRestream API",
-- "version": "0.291.0",
-- "description": "Routes of OpenRestream as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenRestream as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/play.json b/generated/openapi/play.json
iindex a845a5b2..31d25dce 100644
---- a/generated/openapi/play.json
++++ b/generated/openapi/play.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Play API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Play as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Play as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/quest.json b/generated/openapi/quest.json
iindex afc44be5..5367db25 100644
---- a/generated/openapi/quest.json
++++ b/generated/openapi/quest.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Quest API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Quest as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Quest as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/report.json b/generated/openapi/report.json
iindex 61b4d96d..1a98c244 100644
---- a/generated/openapi/report.json
++++ b/generated/openapi/report.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Report API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Report as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Report as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/reviews.json b/generated/openapi/reviews.json
iindex 26c15490..e6221c11 100644
---- a/generated/openapi/reviews.json
++++ b/generated/openapi/reviews.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Reviews API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Reviews as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Reviews as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/run.json b/generated/openapi/run.json
iindex 16b76b0a..22dbace7 100644
---- a/generated/openapi/run.json
++++ b/generated/openapi/run.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Run API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Run as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Run as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/search.json b/generated/openapi/search.json
iindex 40dae0d1..35fad45d 100644
---- a/generated/openapi/search.json
++++ b/generated/openapi/search.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Search API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Search as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Search as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/services.json b/generated/openapi/services.json
iindex 90232d05..f66dfadc 100644
---- a/generated/openapi/services.json
++++ b/generated/openapi/services.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Services API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Services as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Services as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/sources.json b/generated/openapi/sources.json
iindex 521d2133..e5fa7d8f 100644
---- a/generated/openapi/sources.json
++++ b/generated/openapi/sources.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Sources API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Sources as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Sources as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/space.json b/generated/openapi/space.json
iindex ebf8baac..1dbe7604 100644
---- a/generated/openapi/space.json
++++ b/generated/openapi/space.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Space API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Space as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Space as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/tips.json b/generated/openapi/tips.json
iindex 9900aa06..0d1c7ce0 100644
---- a/generated/openapi/tips.json
++++ b/generated/openapi/tips.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Tips API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Tips as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Tips as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/today.json b/generated/openapi/today.json
iindex 1c49a8c5..0a11e1e0 100644
---- a/generated/openapi/today.json
++++ b/generated/openapi/today.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Today API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Today as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Today as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/tools.json b/generated/openapi/tools.json
iindex 8664e725..e14c1bf6 100644
---- a/generated/openapi/tools.json
++++ b/generated/openapi/tools.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Tools API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Tools as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Tools as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/trade.json b/generated/openapi/trade.json
iindex 217d91a0..de13ae43 100644
---- a/generated/openapi/trade.json
++++ b/generated/openapi/trade.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Trade API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Trade as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Trade as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/vip.json b/generated/openapi/vip.json
iindex b052478d..7420a3df 100644
---- a/generated/openapi/vip.json
++++ b/generated/openapi/vip.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.VIP API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.VIP as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.VIP as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/vision.json b/generated/openapi/vision.json
iindex b2ad7fdb..bb9dfd9e 100644
---- a/generated/openapi/vision.json
++++ b/generated/openapi/vision.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Vision API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Vision as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Vision as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/watch.json b/generated/openapi/watch.json
iindex f327c94c..ab92d64b 100644
---- a/generated/openapi/watch.json
++++ b/generated/openapi/watch.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Watch API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Watch as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Watch as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/wiki.json b/generated/openapi/wiki.json
iindex cf2d212f..0218e5f1 100644
---- a/generated/openapi/wiki.json
++++ b/generated/openapi/wiki.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Wiki API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Wiki as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Wiki as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/work.json b/generated/openapi/work.json
iindex e9f39d0c..fbde4d56 100644
---- a/generated/openapi/work.json
++++ b/generated/openapi/work.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Work API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Work as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Work as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/openapi/zone.json b/generated/openapi/zone.json
iindex 0d7c0c1d..16adf093 100644
---- a/generated/openapi/zone.json
++++ b/generated/openapi/zone.json
@@@ -3,8 +3,8 @@
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
"info": {
"title": "OpenVibe.Zone API",
-- "version": "0.291.0",
-- "description": "Routes of OpenVibe.Zone as the OpenVibe contracts describe them (openvibe-contracts 0.291.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
++ "version": "0.292.0",
++ "description": "Routes of OpenVibe.Zone as the OpenVibe contracts describe them (openvibe-contracts 0.292.0): each operation lists the capabilities it performs; a token for the service's audience must carry one of them unless the route is open. Generated by openvibe-contracts lib/openapi.js; do not edit.",
"license": {
"name": "MIT",
"identifier": "MIT"
ddiff --git a/generated/typescript/index.d.ts b/generated/typescript/index.d.ts
iindex 059c026f..23fd46aa 100644
---- a/generated/typescript/index.d.ts
++++ b/generated/typescript/index.d.ts
@@@ -291661,7 +291661,7 @@ export interface ShareResourceRef {
id: string;
}
--/** [email protected] (owner: network) */
++/** [email protected] (owner: network) */
/**
* share.member@1: a member with their Network identity fields. username, display_name and avatar_url are null when Network does not know the subject (or reports it banned or deleted).
*/
@@@ -291674,9 +291674,10 @@ export interface ShareMember {
expires_at?: string;
added_by: SubjectRef;
added_at: string;
++ key_slot?: LockerPeopleSlot;
}
--/** [email protected] (owner: network) */
++/** [email protected] (owner: network) */
/**
* share.member-input@1: network-wide sharing. Ids only; no resource title or content. Members apply to people audience; pending recipients may preview for seven days.
*/
@@@ -291685,6 +291686,7 @@ export type ShareMemberInput = {
subject?: SubjectRef;
role: "viewer" | "editor";
expires_at?: string;
++ key_slot?: LockerPeopleSlot;
} & {
[k: string]: unknown | undefined;
};
@@@ -291714,7 +291716,7 @@ export interface ShareAccessRequest {
state: "pending" | "granted" | "dismissed";
}
--/** [email protected] (owner: network) */
++/** [email protected] (owner: network) */
/**
* share@1: the uniform GET/PUT body. People, not bare subjects; ids only, never a resource title or content except the service's own describe() (title and link). Members apply to people audience; pending recipients may preview for seven days.
*/
@@@ -291728,6 +291730,10 @@ export interface Share {
*/
members: ShareMember[];
transfer?: ShareTransferView;
++ /**
++ * How the resource is sealed (Locker). none means it is stored as it is; people, password and link are the three Locker locks. The server stores the envelope and never opens it.
++ */
++ lock?: "none" | "people" | "password" | "link";
you: ShareYou;
requests: ShareAccessRequestView[];
title: string | null;
@@@ -291798,9 +291804,9 @@ export interface SharePeopleLookup {
person: SharePerson | null;
}
--/** [email protected] (owner: network) */
++/** [email protected] (owner: network) */
/**
-- * share.update-request@1: network-wide sharing. Ids only; no resource title or content. Members apply to people audience; pending recipients may preview for seven days.
++ * share.update-request@1: network-wide sharing. Ids only; no resource title or content. Members apply to people audience; pending recipients may preview for seven days. `lock` sets how the resource itself is sealed (Locker).
*/
export interface ShareUpdateRequest {
audience?: "public" | "link" | "people" | "private";
@@@ -291809,6 +291815,10 @@ export interface ShareUpdateRequest {
*/
members?: ShareMemberInput[];
notify?: boolean;
++ /**
++ * How the resource is sealed (Locker).
++ */
++ lock?: "none" | "people" | "password" | "link";
}
/** [email protected] (owner: network) */
@@@ -291947,3 +291957,189 @@ export interface ShareTransferDeclinedPayload {
occurred_at: string;
transfer: ShareTransfer;
}
++
++/** [email protected] (owner: network) */
++/**
++ * locker.envelope@1: the header of a Locker envelope. It is the JSON that opens every chunk of the envelope bytes: the suite, the chunk size, the padded size, the counter nonce base and one key slot per way in. The content key is never in the header; it is wrapped inside a slot. Every chunk authenticates the header's core fields (version, suite, chunk_size, padded_size, nonce_base, lock) as associated data, so the framing, the size and the lock kind cannot be changed; the slots sit outside that core on purpose, because adding a member re-wraps the content key without re-encrypting the content, and each slot carries its own AES-GCM tag over the content key with its own parameters bound in.
++ */
++export type LockerEnvelope = {
++ [k: string]: unknown | undefined;
++} & {
++ version: "locker.envelope.v1";
++ suite: "AES-256-GCM";
++ /**
++ * The chunk size in bytes: 1 MiB. Fixed for this version.
++ */
++ chunk_size: 1048576;
++ /**
++ * The size of the padded plaintext in bytes. The true size lives inside the encrypted content, so the server cannot read it; this is the size it may store and show. The size is padded with Padmé (Nikitin et al., PoPETs 2019): it is the next size on a grid that gets finer as the content grows, at most twelve per cent over the real one, and never below 256 bytes. Every chunk but the last is a whole chunk; the last holds what is left of this size.
++ */
++ padded_size: number;
++ /**
++ * Eight random bytes, base64: the first half of every chunk nonce. The second half is the chunk counter, so no nonce repeats inside one envelope.
++ */
++ nonce_base: string;
++ /**
++ * Which way in the envelope has. Exactly one slot kind is present, and it matches this.
++ */
++ lock: "people" | "password" | "link";
++ slots: {
++ /**
++ * @minItems 1
++ * @maxItems 100
++ */
++ people?: [LockerPeopleSlot, ...LockerPeopleSlot[]];
++ password?: LockerPasswordSlot;
++ link?: LockerLinkSlot;
++ };
++};
++
++/** [email protected] (owner: network) */
++/**
++ * locker.people-slot@1: the content key wrapped for one person. The wrapping key is ECDH P-256 (an ephemeral key pair per envelope) put through HKDF-SHA-256, and the content key is sealed with AES-256-GCM. The tag covers the subject, the recipient's key, the ephemeral public key and the salt, so a slot cannot be moved to another person or to another envelope.
++ */
++export interface LockerPeopleSlot {
++ subject: SubjectRef;
++ algorithm: "ECDH-P256/HKDF-SHA256/AES-256-GCM";
++ /**
++ * The RFC 7638 thumbprint of the recipient's ECDH public key: SHA-256 over the canonical JSON of the key's four members, base64url. The slot is bound to this key as well as to the subject, and the reader checks it before it derives anything.
++ */
++ recipient_key: string;
++ ephemeral_public_key: LockerPublicKey;
++ /**
++ * Sixteen random bytes, base64: the HKDF salt for this slot.
++ */
++ salt: string;
++ /**
++ * Twelve random bytes, base64: the AES-GCM nonce of the wrapped content key.
++ */
++ nonce: string;
++ /**
++ * The 32-byte content key and its 16-byte tag, base64. Never the key itself.
++ */
++ wrapped_key: string;
++}
++
++/** [email protected] (owner: network) */
++/**
++ * locker.password-slot@1: the content key wrapped with a password. The wrapping key comes from PBKDF2-SHA-256 with the salt and the iteration count in this slot, so both can be raised later without changing the format. The tag covers the parameters, so they cannot be weakened in transit.
++ */
++export interface LockerPasswordSlot {
++ algorithm: "PBKDF2-SHA256/AES-256-GCM";
++ kdf: "PBKDF2-SHA-256";
++ /**
++ * PBKDF2 iterations. 600000 is the floor for this version; the count may go up, never down.
++ */
++ iterations: number;
++ /**
++ * Sixteen random bytes, base64: the PBKDF2 salt.
++ */
++ salt: string;
++ /**
++ * Twelve random bytes, base64: the AES-GCM nonce of the wrapped content key.
++ */
++ nonce: string;
++ /**
++ * The 32-byte content key and its 16-byte tag, base64. Never the key itself.
++ */
++ wrapped_key: string;
++}
++
++/** [email protected] (owner: network) */
++/**
++ * locker.link-slot@1: a link lock stores no key. The content key travels in the part of the link after the #, which browsers never send to us, so this slot is empty on purpose and the envelope says only that the key is somewhere else.
++ */
++export interface LockerLinkSlot {}
++
++/** [email protected] (owner: network) */
++/**
++ * locker.public-key@1: one P-256 public key as a JWK. The same shape is used for the ECDH key that receives content keys and for the ECDSA key that signs the fingerprint; what a key does is decided by where it is used, never by the key itself.
++ */
++export interface LockerPublicKey {
++ kty: "EC";
++ crv: "P-256";
++ /**
++ * The public x coordinate, base64url, as WebCrypto exports it.
++ */
++ x: string;
++ /**
++ * The public y coordinate, base64url, as WebCrypto exports it.
++ */
++ y: string;
++ ext?: true;
++ key_ops?: ("deriveBits" | "deriveKey" | "verify")[];
++}
++
++/** [email protected] (owner: network) */
++/**
++ * locker.public-keys@1: what anyone may read about a person's locker: the two public keys and the eight-word fingerprint. The fingerprint is the first eight bytes of SHA-256 over both public keys, read as eight words in two groups of four, joined by a middle dot, and the signature proves the holder owns the signing key, so a person can compare the eight words out of band and a key change is visible.
++ */
++export interface LockerPublicKeys {
++ subject: SubjectRef;
++ ecdh: LockerPublicKey;
++ signing: LockerPublicKey;
++ /**
++ * Eight words, lower case, in two groups of four joined by a middle dot: sixty-four bits. Compare them out of band; a change means a changed key.
++ */
++ fingerprint: string;
++ /**
++ * The ECDSA signature over both public keys, base64. It proves the holder owns the signing key.
++ */
++ fingerprint_signature: string;
++ updated_at: string;
++}
++
++/** [email protected] (owner: network) */
++/**
++ * locker.keys-put-request@1: what a person sends to set their locker keys. The public keys and the fingerprint are readable by anyone; the private keys go in the backup, wrapped by a key from the locker passphrase, so the server never holds an unwrapped key.
++ */
++export interface LockerKeysPutRequest {
++ ecdh: LockerPublicKey;
++ signing: LockerPublicKey;
++ fingerprint: string;
++ fingerprint_signature: string;
++ backup: LockerKeyBackup;
++}
++
++/** [email protected] (owner: network) */
++/**
++ * locker.key-backup@1: the person's private keys, wrapped. The wrapping key comes from the locker passphrase with PBKDF2-SHA-256, so the server stores bytes it cannot open; a passkey (WebAuthn PRF) may wrap the same bytes later without changing this shape.
++ */
++export interface LockerKeyBackup {
++ /**
++ * How the private keys are wrapped. A passkey-only locker comes later.
++ */
++ method: "passphrase";
++ kdf: "PBKDF2-SHA-256";
++ iterations: number;
++ /**
++ * Sixteen random bytes, base64.
++ */
++ salt: string;
++ /**
++ * Twelve random bytes, base64: the AES-GCM nonce of the wrapped keys.
++ */
++ nonce: string;
++ /**
++ * The two private keys as JWKs, sealed with AES-256-GCM under the derived key, base64.
++ */
++ wrapped_keys: string;
++}
++
++/** [email protected] (owner: network) */
++/**
++ * locker.key-change@1: a record that a person's locker keys changed, so the share sheet can warn before sharing with a key that is not the one people saw before.
++ */
++export interface LockerKeyChange {
++ subject: SubjectRef;
++ reason: "created" | "rotated" | "restored";
++ changed_at: string;
++ /**
++ * The eight words of the new keys, in two groups of four joined by a middle dot.
++ */
++ fingerprint: string;
++ /**
++ * The eight words before the change, when there were any.
++ */
++ previous_fingerprint?: string;
++}
ddiff --git a/package.json b/package.json
iindex 93183e8e..84578c3e 100644
---- a/package.json
++++ b/package.json
@@@ -1,6 +1,6 @@
{
"name": "openvibe-contracts",
-- "version": "0.291.0",
++ "version": "0.292.0",
"description": "Machine-readable contracts for the OpenVibe network: schemas, manifests, ids, error envelope, capability checks.",
"main": "index.js",
"types": "generated/typescript/index.d.ts",