@openvtc/trust-tasks 0.27.2 → 0.27.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/_runtime/consume.d.ts +2 -1
- package/dist/_runtime/consume.d.ts.map +1 -1
- package/dist/_runtime/consume.js +26 -1
- package/dist/_runtime/consume.js.map +1 -1
- package/dist/_runtime/document.d.ts +9 -0
- package/dist/_runtime/document.d.ts.map +1 -1
- package/dist/_runtime/document.js +15 -1
- package/dist/_runtime/document.js.map +1 -1
- package/dist/_runtime/freshness.d.ts +1 -1
- package/dist/_runtime/freshness.d.ts.map +1 -1
- package/dist/_runtime/freshness.js +5 -4
- package/dist/_runtime/freshness.js.map +1 -1
- package/dist/_shared/components.d.ts +272 -50
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/acl/list/0.3/payload.d.ts +1833 -0
- package/dist/acl/list/0.3/payload.d.ts.map +1 -0
- package/dist/acl/list/0.3/payload.js +1031 -0
- package/dist/acl/list/0.3/payload.js.map +1 -0
- package/dist/audit/list/0.2/payload.d.ts +633 -0
- package/dist/audit/list/0.2/payload.d.ts.map +1 -0
- package/dist/audit/list/0.2/payload.js +342 -0
- package/dist/audit/list/0.2/payload.js.map +1 -0
- package/dist/auth/oob/claim/0.2/payload.d.ts +463 -0
- package/dist/auth/oob/claim/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/claim/0.2/payload.js +264 -0
- package/dist/auth/oob/claim/0.2/payload.js.map +1 -0
- package/dist/auth/oob/grant/0.3/payload.d.ts +262 -0
- package/dist/auth/oob/grant/0.3/payload.d.ts.map +1 -0
- package/dist/auth/oob/grant/0.3/payload.js +140 -0
- package/dist/auth/oob/grant/0.3/payload.js.map +1 -0
- package/dist/auth/oob/prove/0.3/payload.d.ts +836 -0
- package/dist/auth/oob/prove/0.3/payload.d.ts.map +1 -0
- package/dist/auth/oob/prove/0.3/payload.js +468 -0
- package/dist/auth/oob/prove/0.3/payload.js.map +1 -0
- package/dist/auth/oob/redeem/0.2/payload.d.ts +364 -0
- package/dist/auth/oob/redeem/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/redeem/0.2/payload.js +199 -0
- package/dist/auth/oob/redeem/0.2/payload.js.map +1 -0
- package/dist/auth/oob/request/0.2/payload.d.ts +330 -0
- package/dist/auth/oob/request/0.2/payload.d.ts.map +1 -0
- package/dist/auth/oob/request/0.2/payload.js +193 -0
- package/dist/auth/oob/request/0.2/payload.js.map +1 -0
- package/dist/auth/oob/respond/0.3/payload.d.ts +235 -0
- package/dist/auth/oob/respond/0.3/payload.d.ts.map +1 -0
- package/dist/auth/oob/respond/0.3/payload.js +140 -0
- package/dist/auth/oob/respond/0.3/payload.js.map +1 -0
- package/dist/consent/list/1.1/payload.d.ts +613 -0
- package/dist/consent/list/1.1/payload.d.ts.map +1 -0
- package/dist/consent/list/1.1/payload.js +353 -0
- package/dist/consent/list/1.1/payload.js.map +1 -0
- package/dist/device/list/0.3/payload.d.ts +1229 -0
- package/dist/device/list/0.3/payload.d.ts.map +1 -0
- package/dist/device/list/0.3/payload.js +796 -0
- package/dist/device/list/0.3/payload.js.map +1 -0
- package/dist/did-management/did/list/0.2/payload.d.ts +521 -0
- package/dist/did-management/did/list/0.2/payload.d.ts.map +1 -0
- package/dist/did-management/did/list/0.2/payload.js +285 -0
- package/dist/did-management/did/list/0.2/payload.js.map +1 -0
- package/dist/git-ns/account/list/0.2/payload.d.ts +598 -0
- package/dist/git-ns/account/list/0.2/payload.d.ts.map +1 -0
- package/dist/git-ns/account/list/0.2/payload.js +311 -0
- package/dist/git-ns/account/list/0.2/payload.js.map +1 -0
- package/dist/git-ns/activity/list/0.2/payload.d.ts +663 -0
- package/dist/git-ns/activity/list/0.2/payload.d.ts.map +1 -0
- package/dist/git-ns/activity/list/0.2/payload.js +345 -0
- package/dist/git-ns/activity/list/0.2/payload.js.map +1 -0
- package/dist/git-ns/bridge/job/list/0.3/payload.d.ts +733 -0
- package/dist/git-ns/bridge/job/list/0.3/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/job/list/0.3/payload.js +402 -0
- package/dist/git-ns/bridge/job/list/0.3/payload.js.map +1 -0
- package/dist/git-ns/projection/show/0.2/payload.d.ts +705 -0
- package/dist/git-ns/projection/show/0.2/payload.d.ts.map +1 -0
- package/dist/git-ns/projection/show/0.2/payload.js +371 -0
- package/dist/git-ns/projection/show/0.2/payload.js.map +1 -0
- package/dist/git-ns/right/issued-by-departed/0.2/payload.d.ts +862 -0
- package/dist/git-ns/right/issued-by-departed/0.2/payload.d.ts.map +1 -0
- package/dist/git-ns/right/issued-by-departed/0.2/payload.js +481 -0
- package/dist/git-ns/right/issued-by-departed/0.2/payload.js.map +1 -0
- package/dist/git-ns/right/list/0.2/payload.d.ts +773 -0
- package/dist/git-ns/right/list/0.2/payload.d.ts.map +1 -0
- package/dist/git-ns/right/list/0.2/payload.js +433 -0
- package/dist/git-ns/right/list/0.2/payload.js.map +1 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -1
- package/dist/keys/list/0.2/payload.d.ts +627 -0
- package/dist/keys/list/0.2/payload.d.ts.map +1 -0
- package/dist/keys/list/0.2/payload.js +358 -0
- package/dist/keys/list/0.2/payload.js.map +1 -0
- package/dist/messaging/_shared/0.1/messaging.d.ts +1 -1
- package/dist/messaging/_shared/0.1/messaging.d.ts.map +1 -1
- package/dist/messaging/_shared/0.2/messaging.d.ts +16 -0
- package/dist/messaging/_shared/0.2/messaging.d.ts.map +1 -0
- package/dist/messaging/_shared/0.2/messaging.js +6 -0
- package/dist/messaging/_shared/0.2/messaging.js.map +1 -0
- package/dist/messaging/account/add/0.1/payload.d.ts +1 -1
- package/dist/messaging/account/add/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/add/0.2/payload.d.ts +1156 -0
- package/dist/messaging/account/add/0.2/payload.d.ts.map +1 -0
- package/dist/messaging/account/add/0.2/payload.js +611 -0
- package/dist/messaging/account/add/0.2/payload.js.map +1 -0
- package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts +1 -1
- package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/change-type/0.1/payload.d.ts +1 -1
- package/dist/messaging/account/change-type/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/get/0.1/payload.d.ts +1 -1
- package/dist/messaging/account/get/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/get/0.2/payload.d.ts +1142 -0
- package/dist/messaging/account/get/0.2/payload.d.ts.map +1 -0
- package/dist/messaging/account/get/0.2/payload.js +606 -0
- package/dist/messaging/account/get/0.2/payload.js.map +1 -0
- package/dist/messaging/account/list/0.1/payload.d.ts +1 -1
- package/dist/messaging/account/list/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/list/0.2/payload.d.ts +1206 -0
- package/dist/messaging/account/list/0.2/payload.d.ts.map +1 -0
- package/dist/messaging/account/list/0.2/payload.js +630 -0
- package/dist/messaging/account/list/0.2/payload.js.map +1 -0
- package/dist/messaging/account/update/0.1/payload.d.ts +1 -1
- package/dist/messaging/account/update/0.1/payload.d.ts.map +1 -1
- package/dist/messaging/account/update/0.2/payload.d.ts +1154 -0
- package/dist/messaging/account/update/0.2/payload.d.ts.map +1 -0
- package/dist/messaging/account/update/0.2/payload.js +610 -0
- package/dist/messaging/account/update/0.2/payload.js.map +1 -0
- package/dist/persona/attribute/promote/1.1/payload.d.ts +506 -0
- package/dist/persona/attribute/promote/1.1/payload.d.ts.map +1 -0
- package/dist/persona/attribute/promote/1.1/payload.js +263 -0
- package/dist/persona/attribute/promote/1.1/payload.js.map +1 -0
- package/dist/persona/attribute/put/1.1/payload.d.ts +1190 -0
- package/dist/persona/attribute/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/attribute/put/1.1/payload.js +687 -0
- package/dist/persona/attribute/put/1.1/payload.js.map +1 -0
- package/dist/persona/contact/lists/put/1.1/payload.d.ts +629 -0
- package/dist/persona/contact/lists/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/contact/lists/put/1.1/payload.js +366 -0
- package/dist/persona/contact/lists/put/1.1/payload.js.map +1 -0
- package/dist/persona/contact/put/1.2/payload.d.ts +1470 -0
- package/dist/persona/contact/put/1.2/payload.d.ts.map +1 -0
- package/dist/persona/contact/put/1.2/payload.js +880 -0
- package/dist/persona/contact/put/1.2/payload.js.map +1 -0
- package/dist/persona/local/profile/put/1.1/payload.d.ts +587 -0
- package/dist/persona/local/profile/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/local/profile/put/1.1/payload.js +331 -0
- package/dist/persona/local/profile/put/1.1/payload.js.map +1 -0
- package/dist/persona/profile/compose/1.1/payload.d.ts +979 -0
- package/dist/persona/profile/compose/1.1/payload.d.ts.map +1 -0
- package/dist/persona/profile/compose/1.1/payload.js +536 -0
- package/dist/persona/profile/compose/1.1/payload.js.map +1 -0
- package/dist/persona/profile/put/1.1/payload.d.ts +1411 -0
- package/dist/persona/profile/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/profile/put/1.1/payload.js +847 -0
- package/dist/persona/profile/put/1.1/payload.js.map +1 -0
- package/dist/persona/world/put/1.1/payload.d.ts +490 -0
- package/dist/persona/world/put/1.1/payload.d.ts.map +1 -0
- package/dist/persona/world/put/1.1/payload.js +272 -0
- package/dist/persona/world/put/1.1/payload.js.map +1 -0
- package/dist/policy/list/0.3/payload.d.ts +516 -0
- package/dist/policy/list/0.3/payload.d.ts.map +1 -0
- package/dist/policy/list/0.3/payload.js +286 -0
- package/dist/policy/list/0.3/payload.js.map +1 -0
- package/dist/policy/upsert/0.3/payload.d.ts +540 -0
- package/dist/policy/upsert/0.3/payload.d.ts.map +1 -0
- package/dist/policy/upsert/0.3/payload.js +304 -0
- package/dist/policy/upsert/0.3/payload.js.map +1 -0
- package/dist/registry/record/put/0.2/payload.d.ts +443 -0
- package/dist/registry/record/put/0.2/payload.d.ts.map +1 -0
- package/dist/registry/record/put/0.2/payload.js +255 -0
- package/dist/registry/record/put/0.2/payload.js.map +1 -0
- package/dist/registry/record/query/0.2/payload.d.ts +486 -0
- package/dist/registry/record/query/0.2/payload.d.ts.map +1 -0
- package/dist/registry/record/query/0.2/payload.js +265 -0
- package/dist/registry/record/query/0.2/payload.js.map +1 -0
- package/dist/rooms/records/list/0.4/payload.d.ts +970 -0
- package/dist/rooms/records/list/0.4/payload.d.ts.map +1 -0
- package/dist/rooms/records/list/0.4/payload.js +526 -0
- package/dist/rooms/records/list/0.4/payload.js.map +1 -0
- package/dist/vault/credentials/query/0.1/payload.d.ts +12 -0
- package/dist/vault/credentials/query/0.1/payload.d.ts.map +1 -1
- package/dist/vault/credentials/query/0.1/payload.js +4 -0
- package/dist/vault/credentials/query/0.1/payload.js.map +1 -1
- package/dist/vault/list/0.4/payload.d.ts +1537 -0
- package/dist/vault/list/0.4/payload.d.ts.map +1 -0
- package/dist/vault/list/0.4/payload.js +841 -0
- package/dist/vault/list/0.4/payload.js.map +1 -0
- package/dist/vault/sync/0.3/payload.d.ts +1790 -0
- package/dist/vault/sync/0.3/payload.d.ts.map +1 -0
- package/dist/vault/sync/0.3/payload.js +1069 -0
- package/dist/vault/sync/0.3/payload.js.map +1 -0
- package/dist/vault/upsert/0.4/payload.d.ts +1755 -0
- package/dist/vault/upsert/0.4/payload.d.ts.map +1 -0
- package/dist/vault/upsert/0.4/payload.js +1013 -0
- package/dist/vault/upsert/0.4/payload.js.map +1 -0
- package/dist/vault/usage/0.3/payload.d.ts +586 -0
- package/dist/vault/usage/0.3/payload.d.ts.map +1 -0
- package/dist/vault/usage/0.3/payload.js +326 -0
- package/dist/vault/usage/0.3/payload.js.map +1 -0
- package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
- package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
- package/dist/vta/_shared/0.1/webvh-records.d.ts +1 -1
- package/dist/vta/_shared/0.1/webvh-records.d.ts.map +1 -1
- package/dist/vta/_shared/0.7/app-state-record.d.ts +22 -0
- package/dist/vta/_shared/0.7/app-state-record.d.ts.map +1 -0
- package/dist/vta/_shared/0.7/app-state-record.js +6 -0
- package/dist/vta/_shared/0.7/app-state-record.js.map +1 -0
- package/dist/vta/_shared/0.7/did-template.d.ts +16 -0
- package/dist/vta/_shared/0.7/did-template.d.ts.map +1 -0
- package/dist/vta/_shared/0.7/did-template.js +6 -0
- package/dist/vta/_shared/0.7/did-template.js.map +1 -0
- package/dist/vta/_shared/0.7/webvh-records.d.ts +16 -0
- package/dist/vta/_shared/0.7/webvh-records.d.ts.map +1 -0
- package/dist/vta/_shared/0.7/webvh-records.js +6 -0
- package/dist/vta/_shared/0.7/webvh-records.js.map +1 -0
- package/dist/vta/app-state/list/1.1/payload.d.ts +705 -0
- package/dist/vta/app-state/list/1.1/payload.d.ts.map +1 -0
- package/dist/vta/app-state/list/1.1/payload.js +360 -0
- package/dist/vta/app-state/list/1.1/payload.js.map +1 -0
- package/dist/vta/app-state/put/1.1/payload.d.ts +549 -0
- package/dist/vta/app-state/put/1.1/payload.d.ts.map +1 -0
- package/dist/vta/app-state/put/1.1/payload.js +293 -0
- package/dist/vta/app-state/put/1.1/payload.js.map +1 -0
- package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
- package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
- package/dist/vta/app-state/put-many/1.1/payload.d.ts +807 -0
- package/dist/vta/app-state/put-many/1.1/payload.d.ts.map +1 -0
- package/dist/vta/app-state/put-many/1.1/payload.js +457 -0
- package/dist/vta/app-state/put-many/1.1/payload.js.map +1 -0
- package/dist/vta/credentials/list/0.2/payload.d.ts +610 -0
- package/dist/vta/credentials/list/0.2/payload.d.ts.map +1 -0
- package/dist/vta/credentials/list/0.2/payload.js +312 -0
- package/dist/vta/credentials/list/0.2/payload.js.map +1 -0
- package/dist/vta/did-templates/create/3.1/payload.d.ts +1100 -0
- package/dist/vta/did-templates/create/3.1/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/create/3.1/payload.js +686 -0
- package/dist/vta/did-templates/create/3.1/payload.js.map +1 -0
- package/dist/vta/did-templates/get/3.1/payload.d.ts +750 -0
- package/dist/vta/did-templates/get/3.1/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/get/3.1/payload.js +465 -0
- package/dist/vta/did-templates/get/3.1/payload.js.map +1 -0
- package/dist/vta/did-templates/list/3.1/payload.d.ts +807 -0
- package/dist/vta/did-templates/list/3.1/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/list/3.1/payload.js +491 -0
- package/dist/vta/did-templates/list/3.1/payload.js.map +1 -0
- package/dist/vta/did-templates/update/3.1/payload.d.ts +1114 -0
- package/dist/vta/did-templates/update/3.1/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/update/3.1/payload.js +692 -0
- package/dist/vta/did-templates/update/3.1/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts +1 -1
- package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts.map +1 -1
- package/dist/vta/webvh/agent-name/list/1.1/payload.d.ts +358 -0
- package/dist/vta/webvh/agent-name/list/1.1/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/list/1.1/payload.js +203 -0
- package/dist/vta/webvh/agent-name/list/1.1/payload.js.map +1 -0
- package/dist/vta/witness/list/0.2/payload.d.ts +653 -0
- package/dist/vta/witness/list/0.2/payload.d.ts.map +1 -0
- package/dist/vta/witness/list/0.2/payload.js +341 -0
- package/dist/vta/witness/list/0.2/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
- package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
- package/dist/vtc/_shared/0.1/room-storage.d.ts +1 -1
- package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -1
- package/dist/vtc/_shared/0.3/community-room.d.ts +16 -0
- package/dist/vtc/_shared/0.3/community-room.d.ts.map +1 -0
- package/dist/vtc/_shared/0.3/community-room.js +6 -0
- package/dist/vtc/_shared/0.3/community-room.js.map +1 -0
- package/dist/vtc/_shared/0.3/room-storage.d.ts +16 -0
- package/dist/vtc/_shared/0.3/room-storage.d.ts.map +1 -0
- package/dist/vtc/_shared/0.3/room-storage.js +6 -0
- package/dist/vtc/_shared/0.3/room-storage.js.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.5/payload.d.ts +409 -0
- package/dist/vtc/admin/events/subscribe/0.5/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.5/payload.js +238 -0
- package/dist/vtc/admin/events/subscribe/0.5/payload.js.map +1 -0
- package/dist/vtc/auth/admin-session/0.2/payload.d.ts +249 -0
- package/dist/vtc/auth/admin-session/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/auth/admin-session/0.2/payload.js +144 -0
- package/dist/vtc/auth/admin-session/0.2/payload.js.map +1 -0
- package/dist/vtc/auth/recognise/0.3/payload.d.ts +325 -0
- package/dist/vtc/auth/recognise/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/auth/recognise/0.3/payload.js +187 -0
- package/dist/vtc/auth/recognise/0.3/payload.js.map +1 -0
- package/dist/vtc/auth/recognise/challenge/0.2/payload.d.ts +233 -0
- package/dist/vtc/auth/recognise/challenge/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/auth/recognise/challenge/0.2/payload.js +136 -0
- package/dist/vtc/auth/recognise/challenge/0.2/payload.js.map +1 -0
- package/dist/vtc/directory/entries/list/0.2/payload.d.ts +5525 -0
- package/dist/vtc/directory/entries/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/directory/entries/list/0.2/payload.js +650 -0
- package/dist/vtc/directory/entries/list/0.2/payload.js.map +1 -0
- package/dist/vtc/directory/export/0.2/payload.d.ts +358 -0
- package/dist/vtc/directory/export/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/directory/export/0.2/payload.js +189 -0
- package/dist/vtc/directory/export/0.2/payload.js.map +1 -0
- package/dist/vtc/directory/notes/list/0.2/payload.d.ts +540 -0
- package/dist/vtc/directory/notes/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/directory/notes/list/0.2/payload.js +291 -0
- package/dist/vtc/directory/notes/list/0.2/payload.js.map +1 -0
- package/dist/vtc/elections/list/0.2/payload.d.ts +521 -0
- package/dist/vtc/elections/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/elections/list/0.2/payload.js +290 -0
- package/dist/vtc/elections/list/0.2/payload.js.map +1 -0
- package/dist/vtc/endorsement-types/list/0.2/payload.d.ts +382 -0
- package/dist/vtc/endorsement-types/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/endorsement-types/list/0.2/payload.js +210 -0
- package/dist/vtc/endorsement-types/list/0.2/payload.js.map +1 -0
- package/dist/vtc/endorsements/list/0.2/payload.d.ts +612 -0
- package/dist/vtc/endorsements/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/endorsements/list/0.2/payload.js +347 -0
- package/dist/vtc/endorsements/list/0.2/payload.js.map +1 -0
- package/dist/vtc/groups/list/0.2/payload.d.ts +1139 -0
- package/dist/vtc/groups/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/groups/list/0.2/payload.js +671 -0
- package/dist/vtc/groups/list/0.2/payload.js.map +1 -0
- package/dist/vtc/groups/members/list/0.2/payload.d.ts +1030 -0
- package/dist/vtc/groups/members/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/groups/members/list/0.2/payload.js +603 -0
- package/dist/vtc/groups/members/list/0.2/payload.js.map +1 -0
- package/dist/vtc/groups/requests/list/0.2/payload.d.ts +1080 -0
- package/dist/vtc/groups/requests/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/groups/requests/list/0.2/payload.js +620 -0
- package/dist/vtc/groups/requests/list/0.2/payload.js.map +1 -0
- package/dist/vtc/join-requests/list/0.2/payload.d.ts +653 -0
- package/dist/vtc/join-requests/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/list/0.2/payload.js +405 -0
- package/dist/vtc/join-requests/list/0.2/payload.js.map +1 -0
- package/dist/vtc/members/list/0.2/payload.d.ts +596 -0
- package/dist/vtc/members/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/members/list/0.2/payload.js +381 -0
- package/dist/vtc/members/list/0.2/payload.js.map +1 -0
- package/dist/vtc/registry/records/list/0.2/payload.d.ts +576 -0
- package/dist/vtc/registry/records/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/registry/records/list/0.2/payload.js +306 -0
- package/dist/vtc/registry/records/list/0.2/payload.js.map +1 -0
- package/dist/vtc/registry/sync-jobs/list/0.2/payload.d.ts +584 -0
- package/dist/vtc/registry/sync-jobs/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/registry/sync-jobs/list/0.2/payload.js +337 -0
- package/dist/vtc/registry/sync-jobs/list/0.2/payload.js.map +1 -0
- package/dist/vtc/relationships/list/0.3/payload.d.ts +444 -0
- package/dist/vtc/relationships/list/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/relationships/list/0.3/payload.js +254 -0
- package/dist/vtc/relationships/list/0.3/payload.js.map +1 -0
- package/dist/vtc/rooms/community/create/0.1/payload.d.ts +1 -1
- package/dist/vtc/rooms/community/create/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/create/0.2/payload.d.ts +1 -1
- package/dist/vtc/rooms/community/create/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/create/0.3/payload.d.ts +1 -1
- package/dist/vtc/rooms/community/create/0.3/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/create/0.4/payload.d.ts +1013 -0
- package/dist/vtc/rooms/community/create/0.4/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/create/0.4/payload.js +577 -0
- package/dist/vtc/rooms/community/create/0.4/payload.js.map +1 -0
- package/dist/vtc/rooms/community/get/0.1/payload.d.ts +1 -1
- package/dist/vtc/rooms/community/get/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/get/0.2/payload.d.ts +1 -1
- package/dist/vtc/rooms/community/get/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/get/0.3/payload.d.ts +887 -0
- package/dist/vtc/rooms/community/get/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/get/0.3/payload.js +517 -0
- package/dist/vtc/rooms/community/get/0.3/payload.js.map +1 -0
- package/dist/vtc/rooms/community/list/0.1/payload.d.ts +1 -1
- package/dist/vtc/rooms/community/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/list/0.2/payload.d.ts +1 -1
- package/dist/vtc/rooms/community/list/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/list/0.3/payload.d.ts +960 -0
- package/dist/vtc/rooms/community/list/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/list/0.3/payload.js +544 -0
- package/dist/vtc/rooms/community/list/0.3/payload.js.map +1 -0
- package/dist/vtc/rooms/community/update/0.1/payload.d.ts +1 -1
- package/dist/vtc/rooms/community/update/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/update/0.2/payload.d.ts +1 -1
- package/dist/vtc/rooms/community/update/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/community/update/0.3/payload.d.ts +1037 -0
- package/dist/vtc/rooms/community/update/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/community/update/0.3/payload.js +593 -0
- package/dist/vtc/rooms/community/update/0.3/payload.js.map +1 -0
- package/dist/vtc/rooms/get/0.1/payload.d.ts +1 -1
- package/dist/vtc/rooms/get/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/get/0.2/payload.d.ts +1 -1
- package/dist/vtc/rooms/get/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/rooms/get/0.3/payload.d.ts +1966 -0
- package/dist/vtc/rooms/get/0.3/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/get/0.3/payload.js +976 -0
- package/dist/vtc/rooms/get/0.3/payload.js.map +1 -0
- package/dist/vtc/rooms/list/0.2/payload.d.ts +653 -0
- package/dist/vtc/rooms/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/list/0.2/payload.js +360 -0
- package/dist/vtc/rooms/list/0.2/payload.js.map +1 -0
- package/dist/vtc/website/files/list/0.2/payload.d.ts +371 -0
- package/dist/vtc/website/files/list/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/website/files/list/0.2/payload.js +198 -0
- package/dist/vtc/website/files/list/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_runtime/consume.ts +26 -2
- package/src/_runtime/document.ts +17 -1
- package/src/_runtime/freshness.ts +5 -5
- package/src/_shared/components.ts +274 -50
- package/src/acl/list/0.3/payload.ts +1111 -0
- package/src/audit/list/0.2/payload.ts +406 -0
- package/src/auth/oob/claim/0.2/payload.ts +306 -0
- package/src/auth/oob/grant/0.3/payload.ts +186 -0
- package/src/auth/oob/prove/0.3/payload.ts +523 -0
- package/src/auth/oob/redeem/0.2/payload.ts +248 -0
- package/src/auth/oob/request/0.2/payload.ts +230 -0
- package/src/auth/oob/respond/0.3/payload.ts +178 -0
- package/src/consent/list/1.1/payload.ts +407 -0
- package/src/device/list/0.3/payload.ts +846 -0
- package/src/did-management/did/list/0.2/payload.ts +327 -0
- package/src/git-ns/account/list/0.2/payload.ts +386 -0
- package/src/git-ns/activity/list/0.2/payload.ts +438 -0
- package/src/git-ns/bridge/job/list/0.3/payload.ts +511 -0
- package/src/git-ns/projection/show/0.2/payload.ts +473 -0
- package/src/git-ns/right/issued-by-departed/0.2/payload.ts +544 -0
- package/src/git-ns/right/list/0.2/payload.ts +487 -0
- package/src/index.ts +80 -0
- package/src/keys/list/0.2/payload.ts +412 -0
- package/src/messaging/_shared/0.1/messaging.ts +1 -1
- package/src/messaging/_shared/0.2/messaging.ts +17 -0
- package/src/messaging/account/add/0.1/payload.ts +1 -1
- package/src/messaging/account/add/0.2/payload.ts +664 -0
- package/src/messaging/account/change-queue-limits/0.1/payload.ts +1 -1
- package/src/messaging/account/change-type/0.1/payload.ts +1 -1
- package/src/messaging/account/get/0.1/payload.ts +1 -1
- package/src/messaging/account/get/0.2/payload.ts +655 -0
- package/src/messaging/account/list/0.1/payload.ts +1 -1
- package/src/messaging/account/list/0.2/payload.ts +691 -0
- package/src/messaging/account/update/0.1/payload.ts +1 -1
- package/src/messaging/account/update/0.2/payload.ts +663 -0
- package/src/persona/attribute/promote/1.1/payload.ts +344 -0
- package/src/persona/attribute/put/1.1/payload.ts +792 -0
- package/src/persona/contact/lists/put/1.1/payload.ts +429 -0
- package/src/persona/contact/put/1.2/payload.ts +988 -0
- package/src/persona/local/profile/put/1.1/payload.ts +399 -0
- package/src/persona/profile/compose/1.1/payload.ts +659 -0
- package/src/persona/profile/put/1.1/payload.ts +917 -0
- package/src/persona/world/put/1.1/payload.ts +339 -0
- package/src/policy/list/0.3/payload.ts +325 -0
- package/src/policy/upsert/0.3/payload.ts +341 -0
- package/src/registry/record/put/0.2/payload.ts +299 -0
- package/src/registry/record/query/0.2/payload.ts +324 -0
- package/src/rooms/records/list/0.4/payload.ts +601 -0
- package/src/vault/credentials/query/0.1/payload.ts +8 -0
- package/src/vault/list/0.4/payload.ts +945 -0
- package/src/vault/sync/0.3/payload.ts +1120 -0
- package/src/vault/upsert/0.4/payload.ts +1077 -0
- package/src/vault/usage/0.3/payload.ts +416 -0
- package/src/vta/_shared/0.1/app-state-record.ts +1 -1
- package/src/vta/_shared/0.1/webvh-records.ts +1 -1
- package/src/vta/_shared/0.7/app-state-record.ts +23 -0
- package/src/vta/_shared/0.7/did-template.ts +17 -0
- package/src/vta/_shared/0.7/webvh-records.ts +17 -0
- package/src/vta/app-state/list/1.1/payload.ts +444 -0
- package/src/vta/app-state/put/1.1/payload.ts +374 -0
- package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
- package/src/vta/app-state/put-many/1.1/payload.ts +538 -0
- package/src/vta/credentials/list/0.2/payload.ts +406 -0
- package/src/vta/did-templates/create/3.1/payload.ts +721 -0
- package/src/vta/did-templates/get/3.1/payload.ts +500 -0
- package/src/vta/did-templates/list/3.1/payload.ts +535 -0
- package/src/vta/did-templates/update/3.1/payload.ts +731 -0
- package/src/vta/webvh/agent-name/list/1.0/payload.ts +1 -1
- package/src/vta/webvh/agent-name/list/1.1/payload.ts +242 -0
- package/src/vta/witness/list/0.2/payload.ts +427 -0
- package/src/vtc/_shared/0.1/community-room.ts +1 -1
- package/src/vtc/_shared/0.1/room-storage.ts +1 -1
- package/src/vtc/_shared/0.3/community-room.ts +17 -0
- package/src/vtc/_shared/0.3/room-storage.ts +17 -0
- package/src/vtc/admin/events/subscribe/0.5/payload.ts +318 -0
- package/src/vtc/auth/admin-session/0.2/payload.ts +180 -0
- package/src/vtc/auth/recognise/0.3/payload.ts +233 -0
- package/src/vtc/auth/recognise/challenge/0.2/payload.ts +168 -0
- package/src/vtc/directory/entries/list/0.2/payload.ts +5670 -0
- package/src/vtc/directory/export/0.2/payload.ts +244 -0
- package/src/vtc/directory/notes/list/0.2/payload.ts +340 -0
- package/src/vtc/elections/list/0.2/payload.ts +371 -0
- package/src/vtc/endorsement-types/list/0.2/payload.ts +247 -0
- package/src/vtc/endorsements/list/0.2/payload.ts +400 -0
- package/src/vtc/groups/list/0.2/payload.ts +731 -0
- package/src/vtc/groups/members/list/0.2/payload.ts +650 -0
- package/src/vtc/groups/requests/list/0.2/payload.ts +677 -0
- package/src/vtc/join-requests/list/0.2/payload.ts +447 -0
- package/src/vtc/members/list/0.2/payload.ts +426 -0
- package/src/vtc/registry/records/list/0.2/payload.ts +401 -0
- package/src/vtc/registry/sync-jobs/list/0.2/payload.ts +427 -0
- package/src/vtc/relationships/list/0.3/payload.ts +309 -0
- package/src/vtc/rooms/community/create/0.1/payload.ts +1 -1
- package/src/vtc/rooms/community/create/0.2/payload.ts +1 -1
- package/src/vtc/rooms/community/create/0.3/payload.ts +1 -1
- package/src/vtc/rooms/community/create/0.4/payload.ts +635 -0
- package/src/vtc/rooms/community/get/0.1/payload.ts +1 -1
- package/src/vtc/rooms/community/get/0.2/payload.ts +1 -1
- package/src/vtc/rooms/community/get/0.3/payload.ts +549 -0
- package/src/vtc/rooms/community/list/0.1/payload.ts +1 -1
- package/src/vtc/rooms/community/list/0.2/payload.ts +1 -1
- package/src/vtc/rooms/community/list/0.3/payload.ts +591 -0
- package/src/vtc/rooms/community/update/0.1/payload.ts +1 -1
- package/src/vtc/rooms/community/update/0.2/payload.ts +1 -1
- package/src/vtc/rooms/community/update/0.3/payload.ts +653 -0
- package/src/vtc/rooms/get/0.1/payload.ts +1 -1
- package/src/vtc/rooms/get/0.2/payload.ts +1 -1
- package/src/vtc/rooms/get/0.3/payload.ts +1372 -0
- package/src/vtc/rooms/list/0.2/payload.ts +449 -0
- package/src/vtc/website/files/list/0.2/payload.ts +252 -0
|
@@ -0,0 +1,917 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/profile/put/1.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ClaimType, ExpectedVersion_PersonaV0_1 as ExpectedVersion, Ext, FaceReach, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Create or replace one profile: a named, ordered projection over the holder's attribute pool. Entries reference pool attributes rather than copying them, so a fact edited once is edited everywhere it appears.
|
|
11
|
+
*/
|
|
12
|
+
export interface PersonaProfilePutPayload {
|
|
13
|
+
/**
|
|
14
|
+
* Omit to create; supply to replace. A producer that means to create and wants the write to be safe under retry SHOULD supply a generated id together with `expectedVersion: 0`.
|
|
15
|
+
*/
|
|
16
|
+
profileId?: Ulid;
|
|
17
|
+
/**
|
|
18
|
+
* The holder's name for the profile — "Work", "Gaming". Never disclosed to a verifier; it is how the holder finds it again.
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Ordered; the order is display order. An empty array is legal and means a profile that discloses nothing — useful as a starting point, and not the same as no profile at all.
|
|
23
|
+
*
|
|
24
|
+
* @maxItems 256
|
|
25
|
+
*/
|
|
26
|
+
entries: ProfileEntry[];
|
|
27
|
+
/**
|
|
28
|
+
* Where this face may be worn. Omit to keep the face's current reach — anywhere, for a new face. Unlike the rest of a put, omission does not reset it: a reach is a restriction the holder set, and a producer that predates this member must not widen a face to anywhere by saving an unrelated edit. To widen, send `{"kind": "anywhere"}`. Narrowing it while the face is worn outside the new reach is refused (`boundOutsideReach`), naming the contexts: the holder takes it off there first, deliberately.
|
|
29
|
+
*/
|
|
30
|
+
reach?: FaceReach;
|
|
31
|
+
/**
|
|
32
|
+
* Vault identifiers of credentials associated with this profile as inventory — what this persona can prove — as distinct from the evidence relationship a credentialBacked attribute expresses. The two answer different questions and a consumer MUST NOT read one as the other.
|
|
33
|
+
*
|
|
34
|
+
* @maxItems 256
|
|
35
|
+
*/
|
|
36
|
+
credentialRefs?: string[];
|
|
37
|
+
expectedVersion?: ExpectedVersion;
|
|
38
|
+
ext?: Ext;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Success response to persona/profile/put. Type https://trusttasks.org/spec/persona/profile/put/1.1#response.
|
|
42
|
+
*/
|
|
43
|
+
export interface PersonaProfilePutResponsePayload {
|
|
44
|
+
profileId: Ulid;
|
|
45
|
+
version: Version;
|
|
46
|
+
wasCreated: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Advisory correlation result for the composition as a whole, returned on the write so a builder can warn while the holder is still composing. Advisory only: the write has applied, and a maintainer MUST NOT refuse a composition on correlation grounds.
|
|
49
|
+
*/
|
|
50
|
+
correlation?: {
|
|
51
|
+
severity: "none" | "low" | "high";
|
|
52
|
+
/**
|
|
53
|
+
* How many of this profile's entries present a value that another profile also presents. A count rather than a list; identifiers come from persona/correlation/analyze.
|
|
54
|
+
*/
|
|
55
|
+
sharedAttributeCount?: number;
|
|
56
|
+
};
|
|
57
|
+
createdAt?: string;
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
ext?: Ext;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
63
|
+
export type { ClaimType, ExpectedVersion, Ext, FaceReach, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version };
|
|
64
|
+
|
|
65
|
+
/** Trust Task type URI. */
|
|
66
|
+
export const TYPE_URI = "https://trusttasks.org/spec/persona/profile/put/1.1" as const;
|
|
67
|
+
|
|
68
|
+
/** Stable alias for this specification's request payload shape. */
|
|
69
|
+
export type Payload = PersonaProfilePutPayload;
|
|
70
|
+
|
|
71
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
72
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/profile/put/1.1#response" as const;
|
|
73
|
+
|
|
74
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
75
|
+
export type Response = PersonaProfilePutResponsePayload;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* This specification's payload schema, as a value.
|
|
79
|
+
*
|
|
80
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
81
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
82
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
83
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
84
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
85
|
+
*/
|
|
86
|
+
export const PAYLOAD_SCHEMA = {
|
|
87
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
88
|
+
"$id": "https://trusttasks.org/spec/persona/profile/put/1.1",
|
|
89
|
+
"title": "Persona Profile Put — payload",
|
|
90
|
+
"description": "Create or replace one profile: a named, ordered projection over the holder's attribute pool. Entries reference pool attributes rather than copying them, so a fact edited once is edited everywhere it appears.",
|
|
91
|
+
"type": "object",
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"required": [
|
|
94
|
+
"name",
|
|
95
|
+
"entries"
|
|
96
|
+
],
|
|
97
|
+
"properties": {
|
|
98
|
+
"profileId": {
|
|
99
|
+
"$ref": "#/$defs/Ulid",
|
|
100
|
+
"description": "Omit to create; supply to replace. A producer that means to create and wants the write to be safe under retry SHOULD supply a generated id together with `expectedVersion: 0`."
|
|
101
|
+
},
|
|
102
|
+
"name": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"minLength": 1,
|
|
105
|
+
"maxLength": 128,
|
|
106
|
+
"description": "The holder's name for the profile — \"Work\", \"Gaming\". Never disclosed to a verifier; it is how the holder finds it again."
|
|
107
|
+
},
|
|
108
|
+
"entries": {
|
|
109
|
+
"type": "array",
|
|
110
|
+
"maxItems": 256,
|
|
111
|
+
"items": {
|
|
112
|
+
"$ref": "#/$defs/ProfileEntry"
|
|
113
|
+
},
|
|
114
|
+
"description": "Ordered; the order is display order. An empty array is legal and means a profile that discloses nothing — useful as a starting point, and not the same as no profile at all."
|
|
115
|
+
},
|
|
116
|
+
"reach": {
|
|
117
|
+
"$ref": "#/$defs/FaceReach",
|
|
118
|
+
"description": "Where this face may be worn. Omit to keep the face's current reach — anywhere, for a new face. Unlike the rest of a put, omission does not reset it: a reach is a restriction the holder set, and a producer that predates this member must not widen a face to anywhere by saving an unrelated edit. To widen, send `{\"kind\": \"anywhere\"}`. Narrowing it while the face is worn outside the new reach is refused (`boundOutsideReach`), naming the contexts: the holder takes it off there first, deliberately."
|
|
119
|
+
},
|
|
120
|
+
"credentialRefs": {
|
|
121
|
+
"type": "array",
|
|
122
|
+
"maxItems": 256,
|
|
123
|
+
"items": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"minLength": 1
|
|
126
|
+
},
|
|
127
|
+
"description": "Vault identifiers of credentials associated with this profile as inventory — what this persona can prove — as distinct from the evidence relationship a credentialBacked attribute expresses. The two answer different questions and a consumer MUST NOT read one as the other."
|
|
128
|
+
},
|
|
129
|
+
"expectedVersion": {
|
|
130
|
+
"$ref": "#/$defs/ExpectedVersion"
|
|
131
|
+
},
|
|
132
|
+
"ext": {
|
|
133
|
+
"$ref": "#/$defs/Ext"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"$defs": {
|
|
137
|
+
"Response": {
|
|
138
|
+
"$anchor": "response",
|
|
139
|
+
"title": "Persona Profile Put — response payload",
|
|
140
|
+
"description": "Success response to persona/profile/put. Type https://trusttasks.org/spec/persona/profile/put/1.1#response.",
|
|
141
|
+
"type": "object",
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"required": [
|
|
144
|
+
"profileId",
|
|
145
|
+
"version",
|
|
146
|
+
"wasCreated",
|
|
147
|
+
"updatedAt"
|
|
148
|
+
],
|
|
149
|
+
"properties": {
|
|
150
|
+
"profileId": {
|
|
151
|
+
"$ref": "#/$defs/Ulid"
|
|
152
|
+
},
|
|
153
|
+
"version": {
|
|
154
|
+
"$ref": "#/$defs/Version"
|
|
155
|
+
},
|
|
156
|
+
"wasCreated": {
|
|
157
|
+
"type": "boolean"
|
|
158
|
+
},
|
|
159
|
+
"correlation": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"additionalProperties": false,
|
|
162
|
+
"required": [
|
|
163
|
+
"severity"
|
|
164
|
+
],
|
|
165
|
+
"description": "Advisory correlation result for the composition as a whole, returned on the write so a builder can warn while the holder is still composing. Advisory only: the write has applied, and a maintainer MUST NOT refuse a composition on correlation grounds.",
|
|
166
|
+
"properties": {
|
|
167
|
+
"severity": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"enum": [
|
|
170
|
+
"none",
|
|
171
|
+
"low",
|
|
172
|
+
"high"
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"sharedAttributeCount": {
|
|
176
|
+
"type": "integer",
|
|
177
|
+
"minimum": 0,
|
|
178
|
+
"description": "How many of this profile's entries present a value that another profile also presents. A count rather than a list; identifiers come from persona/correlation/analyze."
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"createdAt": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"format": "date-time"
|
|
185
|
+
},
|
|
186
|
+
"updatedAt": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"format": "date-time"
|
|
189
|
+
},
|
|
190
|
+
"ext": {
|
|
191
|
+
"$ref": "#/$defs/Ext"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"Ext": {
|
|
196
|
+
"title": "Ext",
|
|
197
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
198
|
+
"type": "object",
|
|
199
|
+
"minProperties": 1,
|
|
200
|
+
"additionalProperties": true,
|
|
201
|
+
"propertyNames": {
|
|
202
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"Version": {
|
|
206
|
+
"title": "Version",
|
|
207
|
+
"description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
|
|
208
|
+
"type": "integer",
|
|
209
|
+
"minimum": 1
|
|
210
|
+
},
|
|
211
|
+
"Ulid": {
|
|
212
|
+
"title": "Ulid",
|
|
213
|
+
"description": "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.",
|
|
214
|
+
"type": "string",
|
|
215
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
216
|
+
},
|
|
217
|
+
"ExpectedVersion": {
|
|
218
|
+
"title": "ExpectedVersion",
|
|
219
|
+
"description": "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.",
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"minimum": 0
|
|
222
|
+
},
|
|
223
|
+
"FaceReach": {
|
|
224
|
+
"title": "FaceReach",
|
|
225
|
+
"description": "Where a pool face may be worn. `anywhere` is the default and what an absent member means. `only` names the contexts it may be worn in, and a maintainer MUST refuse to wear it in any other (persona/binding/set `outsideReach`).\n\nA tagged object rather than a bare list of contexts, deliberately: an empty list has been read as both 'unrestricted' and 'nowhere' in this family's neighbours, and a shape where the two cannot be confused is worth more than one where they must be remembered. So `only` requires at least one context, and 'nowhere' is not a reach — it is a retired face.\n\nA context-local face has no reach: it lives in its context and is worn there by construction.",
|
|
226
|
+
"oneOf": [
|
|
227
|
+
{
|
|
228
|
+
"type": "object",
|
|
229
|
+
"additionalProperties": false,
|
|
230
|
+
"required": [
|
|
231
|
+
"kind"
|
|
232
|
+
],
|
|
233
|
+
"properties": {
|
|
234
|
+
"kind": {
|
|
235
|
+
"const": "anywhere"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"type": "object",
|
|
241
|
+
"additionalProperties": false,
|
|
242
|
+
"required": [
|
|
243
|
+
"kind",
|
|
244
|
+
"contextIds"
|
|
245
|
+
],
|
|
246
|
+
"properties": {
|
|
247
|
+
"kind": {
|
|
248
|
+
"const": "only"
|
|
249
|
+
},
|
|
250
|
+
"contextIds": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"minItems": 1,
|
|
253
|
+
"maxItems": 256,
|
|
254
|
+
"uniqueItems": true,
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"minLength": 1
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"ProfileEntry": {
|
|
265
|
+
"title": "ProfileEntry",
|
|
266
|
+
"description": "One line of a profile, in exactly one of four forms. Together they are the whole of a profile's flexibility, and each exists for a case the others handle badly.\n\n`{ref}` — use the pool attribute, live. Editing the pool updates every profile that references it, which is the point.\n\n`{ref, pinVersion}` — use the value as it was at that version. For a profile that must keep presenting the value a counterparty already verified.\n\n`{ref, override}` — the same fact, a different value here. (\"In the gaming profile my display name is different.\")\n\n`{inline}` — a value that never enters the pool, and so never leaks into another profile.\n\nOmission is exclusion; there is no removal marker.\n\nAny form MAY carry a `slot` naming the role the entry plays in the profile — see `Slot`. A maintainer MUST refuse a profile in which two entries carry the same slot: a slot exists to answer one question with one entry.",
|
|
267
|
+
"type": "object",
|
|
268
|
+
"oneOf": [
|
|
269
|
+
{
|
|
270
|
+
"additionalProperties": false,
|
|
271
|
+
"required": [
|
|
272
|
+
"ref"
|
|
273
|
+
],
|
|
274
|
+
"properties": {
|
|
275
|
+
"ref": {
|
|
276
|
+
"$ref": "#/$defs/Ulid"
|
|
277
|
+
},
|
|
278
|
+
"slot": {
|
|
279
|
+
"$ref": "#/$defs/Slot"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"additionalProperties": false,
|
|
285
|
+
"required": [
|
|
286
|
+
"ref",
|
|
287
|
+
"pinVersion"
|
|
288
|
+
],
|
|
289
|
+
"properties": {
|
|
290
|
+
"ref": {
|
|
291
|
+
"$ref": "#/$defs/Ulid"
|
|
292
|
+
},
|
|
293
|
+
"pinVersion": {
|
|
294
|
+
"$ref": "#/$defs/Version"
|
|
295
|
+
},
|
|
296
|
+
"slot": {
|
|
297
|
+
"$ref": "#/$defs/Slot"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"additionalProperties": false,
|
|
303
|
+
"required": [
|
|
304
|
+
"ref",
|
|
305
|
+
"override"
|
|
306
|
+
],
|
|
307
|
+
"properties": {
|
|
308
|
+
"ref": {
|
|
309
|
+
"$ref": "#/$defs/Ulid"
|
|
310
|
+
},
|
|
311
|
+
"override": {
|
|
312
|
+
"type": "object",
|
|
313
|
+
"additionalProperties": false,
|
|
314
|
+
"required": [
|
|
315
|
+
"value"
|
|
316
|
+
],
|
|
317
|
+
"properties": {
|
|
318
|
+
"value": {},
|
|
319
|
+
"label": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"maxLength": 128
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"description": "Replaces the pool attribute's value for this profile only. `type`, `valueType` and `provenance` are inherited from the referenced attribute and MUST NOT be overridden — an override that changed provenance would let a self-asserted value present as attested."
|
|
325
|
+
},
|
|
326
|
+
"slot": {
|
|
327
|
+
"$ref": "#/$defs/Slot"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"additionalProperties": false,
|
|
333
|
+
"required": [
|
|
334
|
+
"inline"
|
|
335
|
+
],
|
|
336
|
+
"properties": {
|
|
337
|
+
"inline": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"additionalProperties": false,
|
|
340
|
+
"required": [
|
|
341
|
+
"type",
|
|
342
|
+
"valueType",
|
|
343
|
+
"value",
|
|
344
|
+
"provenance"
|
|
345
|
+
],
|
|
346
|
+
"properties": {
|
|
347
|
+
"type": {
|
|
348
|
+
"$ref": "#/$defs/ClaimType"
|
|
349
|
+
},
|
|
350
|
+
"valueType": {
|
|
351
|
+
"$ref": "#/$defs/ValueType"
|
|
352
|
+
},
|
|
353
|
+
"value": {},
|
|
354
|
+
"label": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"maxLength": 128
|
|
357
|
+
},
|
|
358
|
+
"provenance": {
|
|
359
|
+
"$ref": "#/$defs/Provenance"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"slot": {
|
|
364
|
+
"$ref": "#/$defs/Slot"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
"Slot": {
|
|
371
|
+
"title": "Slot",
|
|
372
|
+
"type": "string",
|
|
373
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,31}$",
|
|
374
|
+
"description": "A role a profile entry plays within its profile, so a consumer can find it without guessing from its claim type. A profile MAY hold several entries of one type — a legal name and a display name, two phone numbers — and only a slot says which answers a given question. Unique within a profile.\n\nWell-known slots:\n\n- `displayName` — what this face calls itself. The entry a consumer renders as the face's name to anyone it is shown to. Distinct from the profile's own `name`, which is the holder's private label and never disclosed.\n- `primaryEmail`, `primaryPhone`, `primaryAddress` — the entry to use where a counterparty asks for one of a kind and the profile holds several.\n- `avatar` — the image this face presents.\n\nOther values are the holder's or the producer's own and carry no meaning a maintainer interprets."
|
|
375
|
+
},
|
|
376
|
+
"Provenance": {
|
|
377
|
+
"title": "Provenance",
|
|
378
|
+
"description": "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.",
|
|
379
|
+
"type": "object",
|
|
380
|
+
"required": [
|
|
381
|
+
"kind"
|
|
382
|
+
],
|
|
383
|
+
"oneOf": [
|
|
384
|
+
{
|
|
385
|
+
"additionalProperties": false,
|
|
386
|
+
"required": [
|
|
387
|
+
"kind"
|
|
388
|
+
],
|
|
389
|
+
"properties": {
|
|
390
|
+
"kind": {
|
|
391
|
+
"const": "selfAsserted"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"additionalProperties": false,
|
|
397
|
+
"required": [
|
|
398
|
+
"kind",
|
|
399
|
+
"credentialId",
|
|
400
|
+
"claimPath"
|
|
401
|
+
],
|
|
402
|
+
"properties": {
|
|
403
|
+
"kind": {
|
|
404
|
+
"const": "credentialBacked"
|
|
405
|
+
},
|
|
406
|
+
"credentialId": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"minLength": 1,
|
|
409
|
+
"description": "Vault identifier of the backing credential."
|
|
410
|
+
},
|
|
411
|
+
"claimPath": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"pattern": "^(/[^/~]*(~[01][^/~]*)*)*$",
|
|
414
|
+
"description": "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`."
|
|
415
|
+
},
|
|
416
|
+
"issuerDid": {
|
|
417
|
+
"type": "string",
|
|
418
|
+
"minLength": 1,
|
|
419
|
+
"description": "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member."
|
|
420
|
+
},
|
|
421
|
+
"proof": {
|
|
422
|
+
"$ref": "#/$defs/ProofRung",
|
|
423
|
+
"description": "The disclosure rung this claim was, or will be, presented at."
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"additionalProperties": false,
|
|
429
|
+
"required": [
|
|
430
|
+
"kind",
|
|
431
|
+
"generator"
|
|
432
|
+
],
|
|
433
|
+
"properties": {
|
|
434
|
+
"kind": {
|
|
435
|
+
"const": "generated"
|
|
436
|
+
},
|
|
437
|
+
"generator": {
|
|
438
|
+
"type": "string",
|
|
439
|
+
"minLength": 1,
|
|
440
|
+
"maxLength": 64,
|
|
441
|
+
"description": "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined."
|
|
442
|
+
},
|
|
443
|
+
"perVerifier": {
|
|
444
|
+
"type": "boolean",
|
|
445
|
+
"default": true,
|
|
446
|
+
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"additionalProperties": false,
|
|
452
|
+
"required": [
|
|
453
|
+
"kind",
|
|
454
|
+
"source",
|
|
455
|
+
"derivedAt"
|
|
456
|
+
],
|
|
457
|
+
"properties": {
|
|
458
|
+
"kind": {
|
|
459
|
+
"const": "derived"
|
|
460
|
+
},
|
|
461
|
+
"source": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"minLength": 1,
|
|
464
|
+
"maxLength": 64,
|
|
465
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
466
|
+
"description": "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share."
|
|
467
|
+
},
|
|
468
|
+
"derivedAt": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"format": "date-time",
|
|
471
|
+
"description": "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it."
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
},
|
|
477
|
+
"ProofRung": {
|
|
478
|
+
"title": "ProofRung",
|
|
479
|
+
"description": "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.",
|
|
480
|
+
"type": "string",
|
|
481
|
+
"enum": [
|
|
482
|
+
"predicate",
|
|
483
|
+
"derived",
|
|
484
|
+
"selectiveDisclosure",
|
|
485
|
+
"whole"
|
|
486
|
+
]
|
|
487
|
+
},
|
|
488
|
+
"ValueType": {
|
|
489
|
+
"title": "ValueType",
|
|
490
|
+
"description": "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.",
|
|
491
|
+
"type": "string",
|
|
492
|
+
"enum": [
|
|
493
|
+
"string",
|
|
494
|
+
"number",
|
|
495
|
+
"boolean",
|
|
496
|
+
"date",
|
|
497
|
+
"object"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
"ClaimType": {
|
|
501
|
+
"title": "ClaimType",
|
|
502
|
+
"description": "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.",
|
|
503
|
+
"type": "string",
|
|
504
|
+
"minLength": 1,
|
|
505
|
+
"maxLength": 128,
|
|
506
|
+
"pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
} as const;
|
|
510
|
+
|
|
511
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
512
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
513
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
514
|
+
"$ref": "#/$defs/Response",
|
|
515
|
+
"$defs": {
|
|
516
|
+
"Response": {
|
|
517
|
+
"$anchor": "response",
|
|
518
|
+
"title": "Persona Profile Put — response payload",
|
|
519
|
+
"description": "Success response to persona/profile/put. Type https://trusttasks.org/spec/persona/profile/put/1.1#response.",
|
|
520
|
+
"type": "object",
|
|
521
|
+
"additionalProperties": false,
|
|
522
|
+
"required": [
|
|
523
|
+
"profileId",
|
|
524
|
+
"version",
|
|
525
|
+
"wasCreated",
|
|
526
|
+
"updatedAt"
|
|
527
|
+
],
|
|
528
|
+
"properties": {
|
|
529
|
+
"profileId": {
|
|
530
|
+
"$ref": "#/$defs/Ulid"
|
|
531
|
+
},
|
|
532
|
+
"version": {
|
|
533
|
+
"$ref": "#/$defs/Version"
|
|
534
|
+
},
|
|
535
|
+
"wasCreated": {
|
|
536
|
+
"type": "boolean"
|
|
537
|
+
},
|
|
538
|
+
"correlation": {
|
|
539
|
+
"type": "object",
|
|
540
|
+
"additionalProperties": false,
|
|
541
|
+
"required": [
|
|
542
|
+
"severity"
|
|
543
|
+
],
|
|
544
|
+
"description": "Advisory correlation result for the composition as a whole, returned on the write so a builder can warn while the holder is still composing. Advisory only: the write has applied, and a maintainer MUST NOT refuse a composition on correlation grounds.",
|
|
545
|
+
"properties": {
|
|
546
|
+
"severity": {
|
|
547
|
+
"type": "string",
|
|
548
|
+
"enum": [
|
|
549
|
+
"none",
|
|
550
|
+
"low",
|
|
551
|
+
"high"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"sharedAttributeCount": {
|
|
555
|
+
"type": "integer",
|
|
556
|
+
"minimum": 0,
|
|
557
|
+
"description": "How many of this profile's entries present a value that another profile also presents. A count rather than a list; identifiers come from persona/correlation/analyze."
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
"createdAt": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"format": "date-time"
|
|
564
|
+
},
|
|
565
|
+
"updatedAt": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"format": "date-time"
|
|
568
|
+
},
|
|
569
|
+
"ext": {
|
|
570
|
+
"$ref": "#/$defs/Ext"
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"Ext": {
|
|
575
|
+
"title": "Ext",
|
|
576
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
577
|
+
"type": "object",
|
|
578
|
+
"minProperties": 1,
|
|
579
|
+
"additionalProperties": true,
|
|
580
|
+
"propertyNames": {
|
|
581
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"Version": {
|
|
585
|
+
"title": "Version",
|
|
586
|
+
"description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
|
|
587
|
+
"type": "integer",
|
|
588
|
+
"minimum": 1
|
|
589
|
+
},
|
|
590
|
+
"Ulid": {
|
|
591
|
+
"title": "Ulid",
|
|
592
|
+
"description": "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.",
|
|
593
|
+
"type": "string",
|
|
594
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
595
|
+
},
|
|
596
|
+
"ExpectedVersion": {
|
|
597
|
+
"title": "ExpectedVersion",
|
|
598
|
+
"description": "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.",
|
|
599
|
+
"type": "integer",
|
|
600
|
+
"minimum": 0
|
|
601
|
+
},
|
|
602
|
+
"FaceReach": {
|
|
603
|
+
"title": "FaceReach",
|
|
604
|
+
"description": "Where a pool face may be worn. `anywhere` is the default and what an absent member means. `only` names the contexts it may be worn in, and a maintainer MUST refuse to wear it in any other (persona/binding/set `outsideReach`).\n\nA tagged object rather than a bare list of contexts, deliberately: an empty list has been read as both 'unrestricted' and 'nowhere' in this family's neighbours, and a shape where the two cannot be confused is worth more than one where they must be remembered. So `only` requires at least one context, and 'nowhere' is not a reach — it is a retired face.\n\nA context-local face has no reach: it lives in its context and is worn there by construction.",
|
|
605
|
+
"oneOf": [
|
|
606
|
+
{
|
|
607
|
+
"type": "object",
|
|
608
|
+
"additionalProperties": false,
|
|
609
|
+
"required": [
|
|
610
|
+
"kind"
|
|
611
|
+
],
|
|
612
|
+
"properties": {
|
|
613
|
+
"kind": {
|
|
614
|
+
"const": "anywhere"
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"type": "object",
|
|
620
|
+
"additionalProperties": false,
|
|
621
|
+
"required": [
|
|
622
|
+
"kind",
|
|
623
|
+
"contextIds"
|
|
624
|
+
],
|
|
625
|
+
"properties": {
|
|
626
|
+
"kind": {
|
|
627
|
+
"const": "only"
|
|
628
|
+
},
|
|
629
|
+
"contextIds": {
|
|
630
|
+
"type": "array",
|
|
631
|
+
"minItems": 1,
|
|
632
|
+
"maxItems": 256,
|
|
633
|
+
"uniqueItems": true,
|
|
634
|
+
"items": {
|
|
635
|
+
"type": "string",
|
|
636
|
+
"minLength": 1
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
]
|
|
642
|
+
},
|
|
643
|
+
"ProfileEntry": {
|
|
644
|
+
"title": "ProfileEntry",
|
|
645
|
+
"description": "One line of a profile, in exactly one of four forms. Together they are the whole of a profile's flexibility, and each exists for a case the others handle badly.\n\n`{ref}` — use the pool attribute, live. Editing the pool updates every profile that references it, which is the point.\n\n`{ref, pinVersion}` — use the value as it was at that version. For a profile that must keep presenting the value a counterparty already verified.\n\n`{ref, override}` — the same fact, a different value here. (\"In the gaming profile my display name is different.\")\n\n`{inline}` — a value that never enters the pool, and so never leaks into another profile.\n\nOmission is exclusion; there is no removal marker.\n\nAny form MAY carry a `slot` naming the role the entry plays in the profile — see `Slot`. A maintainer MUST refuse a profile in which two entries carry the same slot: a slot exists to answer one question with one entry.",
|
|
646
|
+
"type": "object",
|
|
647
|
+
"oneOf": [
|
|
648
|
+
{
|
|
649
|
+
"additionalProperties": false,
|
|
650
|
+
"required": [
|
|
651
|
+
"ref"
|
|
652
|
+
],
|
|
653
|
+
"properties": {
|
|
654
|
+
"ref": {
|
|
655
|
+
"$ref": "#/$defs/Ulid"
|
|
656
|
+
},
|
|
657
|
+
"slot": {
|
|
658
|
+
"$ref": "#/$defs/Slot"
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"additionalProperties": false,
|
|
664
|
+
"required": [
|
|
665
|
+
"ref",
|
|
666
|
+
"pinVersion"
|
|
667
|
+
],
|
|
668
|
+
"properties": {
|
|
669
|
+
"ref": {
|
|
670
|
+
"$ref": "#/$defs/Ulid"
|
|
671
|
+
},
|
|
672
|
+
"pinVersion": {
|
|
673
|
+
"$ref": "#/$defs/Version"
|
|
674
|
+
},
|
|
675
|
+
"slot": {
|
|
676
|
+
"$ref": "#/$defs/Slot"
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"additionalProperties": false,
|
|
682
|
+
"required": [
|
|
683
|
+
"ref",
|
|
684
|
+
"override"
|
|
685
|
+
],
|
|
686
|
+
"properties": {
|
|
687
|
+
"ref": {
|
|
688
|
+
"$ref": "#/$defs/Ulid"
|
|
689
|
+
},
|
|
690
|
+
"override": {
|
|
691
|
+
"type": "object",
|
|
692
|
+
"additionalProperties": false,
|
|
693
|
+
"required": [
|
|
694
|
+
"value"
|
|
695
|
+
],
|
|
696
|
+
"properties": {
|
|
697
|
+
"value": {},
|
|
698
|
+
"label": {
|
|
699
|
+
"type": "string",
|
|
700
|
+
"maxLength": 128
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
"description": "Replaces the pool attribute's value for this profile only. `type`, `valueType` and `provenance` are inherited from the referenced attribute and MUST NOT be overridden — an override that changed provenance would let a self-asserted value present as attested."
|
|
704
|
+
},
|
|
705
|
+
"slot": {
|
|
706
|
+
"$ref": "#/$defs/Slot"
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"additionalProperties": false,
|
|
712
|
+
"required": [
|
|
713
|
+
"inline"
|
|
714
|
+
],
|
|
715
|
+
"properties": {
|
|
716
|
+
"inline": {
|
|
717
|
+
"type": "object",
|
|
718
|
+
"additionalProperties": false,
|
|
719
|
+
"required": [
|
|
720
|
+
"type",
|
|
721
|
+
"valueType",
|
|
722
|
+
"value",
|
|
723
|
+
"provenance"
|
|
724
|
+
],
|
|
725
|
+
"properties": {
|
|
726
|
+
"type": {
|
|
727
|
+
"$ref": "#/$defs/ClaimType"
|
|
728
|
+
},
|
|
729
|
+
"valueType": {
|
|
730
|
+
"$ref": "#/$defs/ValueType"
|
|
731
|
+
},
|
|
732
|
+
"value": {},
|
|
733
|
+
"label": {
|
|
734
|
+
"type": "string",
|
|
735
|
+
"maxLength": 128
|
|
736
|
+
},
|
|
737
|
+
"provenance": {
|
|
738
|
+
"$ref": "#/$defs/Provenance"
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"slot": {
|
|
743
|
+
"$ref": "#/$defs/Slot"
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
]
|
|
748
|
+
},
|
|
749
|
+
"Slot": {
|
|
750
|
+
"title": "Slot",
|
|
751
|
+
"type": "string",
|
|
752
|
+
"pattern": "^[a-z][A-Za-z0-9]{0,31}$",
|
|
753
|
+
"description": "A role a profile entry plays within its profile, so a consumer can find it without guessing from its claim type. A profile MAY hold several entries of one type — a legal name and a display name, two phone numbers — and only a slot says which answers a given question. Unique within a profile.\n\nWell-known slots:\n\n- `displayName` — what this face calls itself. The entry a consumer renders as the face's name to anyone it is shown to. Distinct from the profile's own `name`, which is the holder's private label and never disclosed.\n- `primaryEmail`, `primaryPhone`, `primaryAddress` — the entry to use where a counterparty asks for one of a kind and the profile holds several.\n- `avatar` — the image this face presents.\n\nOther values are the holder's or the producer's own and carry no meaning a maintainer interprets."
|
|
754
|
+
},
|
|
755
|
+
"Provenance": {
|
|
756
|
+
"title": "Provenance",
|
|
757
|
+
"description": "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.",
|
|
758
|
+
"type": "object",
|
|
759
|
+
"required": [
|
|
760
|
+
"kind"
|
|
761
|
+
],
|
|
762
|
+
"oneOf": [
|
|
763
|
+
{
|
|
764
|
+
"additionalProperties": false,
|
|
765
|
+
"required": [
|
|
766
|
+
"kind"
|
|
767
|
+
],
|
|
768
|
+
"properties": {
|
|
769
|
+
"kind": {
|
|
770
|
+
"const": "selfAsserted"
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"additionalProperties": false,
|
|
776
|
+
"required": [
|
|
777
|
+
"kind",
|
|
778
|
+
"credentialId",
|
|
779
|
+
"claimPath"
|
|
780
|
+
],
|
|
781
|
+
"properties": {
|
|
782
|
+
"kind": {
|
|
783
|
+
"const": "credentialBacked"
|
|
784
|
+
},
|
|
785
|
+
"credentialId": {
|
|
786
|
+
"type": "string",
|
|
787
|
+
"minLength": 1,
|
|
788
|
+
"description": "Vault identifier of the backing credential."
|
|
789
|
+
},
|
|
790
|
+
"claimPath": {
|
|
791
|
+
"type": "string",
|
|
792
|
+
"pattern": "^(/[^/~]*(~[01][^/~]*)*)*$",
|
|
793
|
+
"description": "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`."
|
|
794
|
+
},
|
|
795
|
+
"issuerDid": {
|
|
796
|
+
"type": "string",
|
|
797
|
+
"minLength": 1,
|
|
798
|
+
"description": "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member."
|
|
799
|
+
},
|
|
800
|
+
"proof": {
|
|
801
|
+
"$ref": "#/$defs/ProofRung",
|
|
802
|
+
"description": "The disclosure rung this claim was, or will be, presented at."
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"additionalProperties": false,
|
|
808
|
+
"required": [
|
|
809
|
+
"kind",
|
|
810
|
+
"generator"
|
|
811
|
+
],
|
|
812
|
+
"properties": {
|
|
813
|
+
"kind": {
|
|
814
|
+
"const": "generated"
|
|
815
|
+
},
|
|
816
|
+
"generator": {
|
|
817
|
+
"type": "string",
|
|
818
|
+
"minLength": 1,
|
|
819
|
+
"maxLength": 64,
|
|
820
|
+
"description": "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined."
|
|
821
|
+
},
|
|
822
|
+
"perVerifier": {
|
|
823
|
+
"type": "boolean",
|
|
824
|
+
"default": true,
|
|
825
|
+
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"additionalProperties": false,
|
|
831
|
+
"required": [
|
|
832
|
+
"kind",
|
|
833
|
+
"source",
|
|
834
|
+
"derivedAt"
|
|
835
|
+
],
|
|
836
|
+
"properties": {
|
|
837
|
+
"kind": {
|
|
838
|
+
"const": "derived"
|
|
839
|
+
},
|
|
840
|
+
"source": {
|
|
841
|
+
"type": "string",
|
|
842
|
+
"minLength": 1,
|
|
843
|
+
"maxLength": 64,
|
|
844
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
845
|
+
"description": "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share."
|
|
846
|
+
},
|
|
847
|
+
"derivedAt": {
|
|
848
|
+
"type": "string",
|
|
849
|
+
"format": "date-time",
|
|
850
|
+
"description": "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it."
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
]
|
|
855
|
+
},
|
|
856
|
+
"ProofRung": {
|
|
857
|
+
"title": "ProofRung",
|
|
858
|
+
"description": "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.",
|
|
859
|
+
"type": "string",
|
|
860
|
+
"enum": [
|
|
861
|
+
"predicate",
|
|
862
|
+
"derived",
|
|
863
|
+
"selectiveDisclosure",
|
|
864
|
+
"whole"
|
|
865
|
+
]
|
|
866
|
+
},
|
|
867
|
+
"ValueType": {
|
|
868
|
+
"title": "ValueType",
|
|
869
|
+
"description": "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.",
|
|
870
|
+
"type": "string",
|
|
871
|
+
"enum": [
|
|
872
|
+
"string",
|
|
873
|
+
"number",
|
|
874
|
+
"boolean",
|
|
875
|
+
"date",
|
|
876
|
+
"object"
|
|
877
|
+
]
|
|
878
|
+
},
|
|
879
|
+
"ClaimType": {
|
|
880
|
+
"title": "ClaimType",
|
|
881
|
+
"description": "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.",
|
|
882
|
+
"type": "string",
|
|
883
|
+
"minLength": 1,
|
|
884
|
+
"maxLength": 128,
|
|
885
|
+
"pattern": "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
} as const;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
892
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
893
|
+
* per-specification and cannot be derived from the document alone, and
|
|
894
|
+
* item 2 needs the schema this carries.
|
|
895
|
+
*/
|
|
896
|
+
export const SPEC = {
|
|
897
|
+
typeUri: TYPE_URI,
|
|
898
|
+
isBearer: false,
|
|
899
|
+
isProofRequired: true,
|
|
900
|
+
isRecipientRequired: true,
|
|
901
|
+
isIssuedAtRequired: true,
|
|
902
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
903
|
+
} as const;
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
907
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
908
|
+
* parties (§7.3 item 5).
|
|
909
|
+
*/
|
|
910
|
+
export const RESPONSE_SPEC = {
|
|
911
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
912
|
+
isBearer: false,
|
|
913
|
+
isProofRequired: true,
|
|
914
|
+
isRecipientRequired: true,
|
|
915
|
+
isIssuedAtRequired: true,
|
|
916
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
917
|
+
} as const;
|