@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,627 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/keys/list/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext, KeyOrigin, KeyRecord, KeyStatus, KeyType } from "../../../_shared/components.js";
|
|
6
|
+
export interface KeysListPayload {
|
|
7
|
+
/**
|
|
8
|
+
* Return only keys in this lifecycle state. Omitted returns every state, including revoked keys.
|
|
9
|
+
*/
|
|
10
|
+
status?: KeyStatus;
|
|
11
|
+
/**
|
|
12
|
+
* Return only keys filed under this scope.
|
|
13
|
+
*/
|
|
14
|
+
contextId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* An opaque continuation token from a previous response's `nextCursor`; a responder MUST NOT accept a cursor it did not issue.
|
|
17
|
+
*/
|
|
18
|
+
cursor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The most items to return; the responder chooses a default and MAY return fewer, and MAY impose its own ceiling.
|
|
21
|
+
*/
|
|
22
|
+
limit?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
25
|
+
*/
|
|
26
|
+
ext?: Ext;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The success response to a keys/list request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/list/0.2#response.
|
|
30
|
+
*/
|
|
31
|
+
export interface KeysListResponsePayload {
|
|
32
|
+
/**
|
|
33
|
+
* The page of records, in the custodian's own order.
|
|
34
|
+
*/
|
|
35
|
+
keys: KeyRecord[];
|
|
36
|
+
/**
|
|
37
|
+
* Opaque continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page. Its presence is what tells a key audit or rotation sweep it has not yet seen the whole set — a producer that stops while `nextCursor` is present has silently skipped every key past the page boundary.
|
|
38
|
+
*/
|
|
39
|
+
nextCursor?: string;
|
|
40
|
+
ext?: Ext;
|
|
41
|
+
}
|
|
42
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
43
|
+
export type { Ext, KeyOrigin, KeyRecord, KeyStatus, KeyType };
|
|
44
|
+
/** Trust Task type URI. */
|
|
45
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/keys/list/0.2";
|
|
46
|
+
/** Stable alias for this specification's request payload shape. */
|
|
47
|
+
export type Payload = KeysListPayload;
|
|
48
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
49
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/keys/list/0.2#response";
|
|
50
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
51
|
+
export type Response = KeysListResponsePayload;
|
|
52
|
+
/**
|
|
53
|
+
* This specification's payload schema, as a value.
|
|
54
|
+
*
|
|
55
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
56
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
57
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
58
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
59
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
60
|
+
*/
|
|
61
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
62
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
63
|
+
readonly $id: "https://trusttasks.org/spec/keys/list/0.2";
|
|
64
|
+
readonly title: "Keys List — payload";
|
|
65
|
+
readonly type: "object";
|
|
66
|
+
readonly additionalProperties: false;
|
|
67
|
+
readonly properties: {
|
|
68
|
+
readonly status: {
|
|
69
|
+
readonly $ref: "#/$defs/KeyStatus";
|
|
70
|
+
readonly description: "Return only keys in this lifecycle state. Omitted returns every state, including revoked keys.";
|
|
71
|
+
};
|
|
72
|
+
readonly contextId: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
readonly description: "Return only keys filed under this scope.";
|
|
75
|
+
};
|
|
76
|
+
readonly cursor: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly description: "An opaque continuation token from a previous response's `nextCursor`; a responder MUST NOT accept a cursor it did not issue.";
|
|
79
|
+
};
|
|
80
|
+
readonly limit: {
|
|
81
|
+
readonly type: "integer";
|
|
82
|
+
readonly minimum: 1;
|
|
83
|
+
readonly description: "The most items to return; the responder chooses a default and MAY return fewer, and MAY impose its own ceiling.";
|
|
84
|
+
};
|
|
85
|
+
readonly ext: {
|
|
86
|
+
readonly $ref: "#/$defs/Ext";
|
|
87
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly $defs: {
|
|
91
|
+
readonly Response: {
|
|
92
|
+
readonly $anchor: "response";
|
|
93
|
+
readonly title: "Keys List — response payload";
|
|
94
|
+
readonly description: "The success response to a keys/list request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/list/0.2#response.";
|
|
95
|
+
readonly type: "object";
|
|
96
|
+
readonly additionalProperties: false;
|
|
97
|
+
readonly required: readonly ["keys"];
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly keys: {
|
|
100
|
+
readonly type: "array";
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly $ref: "#/$defs/KeyRecord";
|
|
103
|
+
};
|
|
104
|
+
readonly description: "The page of records, in the custodian's own order.";
|
|
105
|
+
};
|
|
106
|
+
readonly nextCursor: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly description: "Opaque continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page. Its presence is what tells a key audit or rotation sweep it has not yet seen the whole set — a producer that stops while `nextCursor` is present has silently skipped every key past the page boundary.";
|
|
109
|
+
};
|
|
110
|
+
readonly ext: {
|
|
111
|
+
readonly $ref: "#/$defs/Ext";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly Ext: {
|
|
116
|
+
readonly title: "Ext";
|
|
117
|
+
readonly 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.";
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
readonly minProperties: 1;
|
|
120
|
+
readonly additionalProperties: true;
|
|
121
|
+
readonly propertyNames: {
|
|
122
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly KeyRecord: {
|
|
126
|
+
readonly title: "KeyRecord";
|
|
127
|
+
readonly type: "object";
|
|
128
|
+
readonly additionalProperties: false;
|
|
129
|
+
readonly required: readonly ["keyId", "keyType", "status", "publicKey", "createdAt"];
|
|
130
|
+
readonly properties: {
|
|
131
|
+
readonly keyId: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
readonly minLength: 1;
|
|
134
|
+
readonly description: "Maintainer-scoped identifier for the key. Stable for the key's lifetime except through an explicit `keys/rename`.";
|
|
135
|
+
};
|
|
136
|
+
readonly keyType: {
|
|
137
|
+
readonly $ref: "#/$defs/KeyType";
|
|
138
|
+
};
|
|
139
|
+
readonly status: {
|
|
140
|
+
readonly $ref: "#/$defs/KeyStatus";
|
|
141
|
+
};
|
|
142
|
+
readonly publicKey: {
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly minLength: 1;
|
|
145
|
+
readonly description: "The public half, multibase-encoded. The private half is never carried by any keys/* response.";
|
|
146
|
+
};
|
|
147
|
+
readonly derivationPath: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly description: "Hierarchical-deterministic path the key was derived at, when `origin` is `derived`. Absent for imported keys, which have no path.";
|
|
150
|
+
};
|
|
151
|
+
readonly seedId: {
|
|
152
|
+
readonly type: "integer";
|
|
153
|
+
readonly minimum: 0;
|
|
154
|
+
readonly description: "Identifier of the seed the key was derived from, when the maintainer holds more than one. Absent for imported keys.";
|
|
155
|
+
};
|
|
156
|
+
readonly origin: {
|
|
157
|
+
readonly $ref: "#/$defs/KeyOrigin";
|
|
158
|
+
};
|
|
159
|
+
readonly label: {
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
readonly maxLength: 256;
|
|
162
|
+
readonly description: "Optional human-readable label. Operator-facing only; carries no authorization meaning.";
|
|
163
|
+
};
|
|
164
|
+
readonly exportable: {
|
|
165
|
+
readonly type: "boolean";
|
|
166
|
+
readonly description: "Whether the private half may be released to a caller. `false` means the custodian refuses every export of this key and can only be asked to *use* it — signing, key agreement — so the material never leaves. **Absence means the key may be exported.** That is the permissive reading, and it is deliberate: it is what every record written before this member existed already meant, so a custodian adding the member cannot silently retract access to keys its callers already hold. A consumer MUST NOT infer the converse — absence is not a statement that export was considered and allowed. Marking a key non-exportable does not make it unrecoverable: a custodian's own whole-store backup is a different mechanism from an export to a caller, and this member does not speak to it.";
|
|
167
|
+
readonly $comment: "No JSON Schema `default` is declared here on purpose. A declared default is materialised by the generated bindings — the field becomes non-optional with a serde default — so an absent member reappears as an explicit `true` on re-serialisation, which breaks round-trip idempotence for every record written before this member existed. The permissive reading is stated in prose above, where a binding cannot act on it.";
|
|
168
|
+
};
|
|
169
|
+
readonly contextId: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly description: "Scope the key belongs to. **Absence is not 'every scope'** — a key with no context is reachable only by a caller with unrestricted authority over the maintainer, which is the more restrictive reading, and a consumer that treats absence as a wildcard inverts the guarantee.";
|
|
172
|
+
};
|
|
173
|
+
readonly createdAt: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly format: "date-time";
|
|
176
|
+
readonly description: "RFC 3339 timestamp at which the key was created or imported.";
|
|
177
|
+
};
|
|
178
|
+
readonly updatedAt: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly format: "date-time";
|
|
181
|
+
readonly description: "RFC 3339 timestamp of the last change to the record (rename, revocation).";
|
|
182
|
+
};
|
|
183
|
+
readonly ext: {
|
|
184
|
+
readonly $ref: "#/$defs/Ext";
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly KeyOrigin: {
|
|
189
|
+
readonly title: "KeyOrigin";
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
192
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
193
|
+
readonly default: "derived";
|
|
194
|
+
};
|
|
195
|
+
readonly KeyStatus: {
|
|
196
|
+
readonly title: "KeyStatus";
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly enum: readonly ["active", "revoked"];
|
|
199
|
+
readonly description: "Lifecycle state. Only an `active` key may be named in a signing request; a `revoked` key is retained so historic signatures remain attributable, and MUST NOT be reactivated.";
|
|
200
|
+
};
|
|
201
|
+
readonly KeyType: {
|
|
202
|
+
readonly title: "KeyType";
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
readonly enum: readonly ["ed25519", "x25519", "p256", "mldsa44", "mldsa65"];
|
|
205
|
+
readonly description: "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support.";
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
210
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
211
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
212
|
+
readonly $ref: "#/$defs/Response";
|
|
213
|
+
readonly $defs: {
|
|
214
|
+
readonly Response: {
|
|
215
|
+
readonly $anchor: "response";
|
|
216
|
+
readonly title: "Keys List — response payload";
|
|
217
|
+
readonly description: "The success response to a keys/list request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/list/0.2#response.";
|
|
218
|
+
readonly type: "object";
|
|
219
|
+
readonly additionalProperties: false;
|
|
220
|
+
readonly required: readonly ["keys"];
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly keys: {
|
|
223
|
+
readonly type: "array";
|
|
224
|
+
readonly items: {
|
|
225
|
+
readonly $ref: "#/$defs/KeyRecord";
|
|
226
|
+
};
|
|
227
|
+
readonly description: "The page of records, in the custodian's own order.";
|
|
228
|
+
};
|
|
229
|
+
readonly nextCursor: {
|
|
230
|
+
readonly type: "string";
|
|
231
|
+
readonly description: "Opaque continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page. Its presence is what tells a key audit or rotation sweep it has not yet seen the whole set — a producer that stops while `nextCursor` is present has silently skipped every key past the page boundary.";
|
|
232
|
+
};
|
|
233
|
+
readonly ext: {
|
|
234
|
+
readonly $ref: "#/$defs/Ext";
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
readonly Ext: {
|
|
239
|
+
readonly title: "Ext";
|
|
240
|
+
readonly 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.";
|
|
241
|
+
readonly type: "object";
|
|
242
|
+
readonly minProperties: 1;
|
|
243
|
+
readonly additionalProperties: true;
|
|
244
|
+
readonly propertyNames: {
|
|
245
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
readonly KeyRecord: {
|
|
249
|
+
readonly title: "KeyRecord";
|
|
250
|
+
readonly type: "object";
|
|
251
|
+
readonly additionalProperties: false;
|
|
252
|
+
readonly required: readonly ["keyId", "keyType", "status", "publicKey", "createdAt"];
|
|
253
|
+
readonly properties: {
|
|
254
|
+
readonly keyId: {
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
readonly minLength: 1;
|
|
257
|
+
readonly description: "Maintainer-scoped identifier for the key. Stable for the key's lifetime except through an explicit `keys/rename`.";
|
|
258
|
+
};
|
|
259
|
+
readonly keyType: {
|
|
260
|
+
readonly $ref: "#/$defs/KeyType";
|
|
261
|
+
};
|
|
262
|
+
readonly status: {
|
|
263
|
+
readonly $ref: "#/$defs/KeyStatus";
|
|
264
|
+
};
|
|
265
|
+
readonly publicKey: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
readonly minLength: 1;
|
|
268
|
+
readonly description: "The public half, multibase-encoded. The private half is never carried by any keys/* response.";
|
|
269
|
+
};
|
|
270
|
+
readonly derivationPath: {
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly description: "Hierarchical-deterministic path the key was derived at, when `origin` is `derived`. Absent for imported keys, which have no path.";
|
|
273
|
+
};
|
|
274
|
+
readonly seedId: {
|
|
275
|
+
readonly type: "integer";
|
|
276
|
+
readonly minimum: 0;
|
|
277
|
+
readonly description: "Identifier of the seed the key was derived from, when the maintainer holds more than one. Absent for imported keys.";
|
|
278
|
+
};
|
|
279
|
+
readonly origin: {
|
|
280
|
+
readonly $ref: "#/$defs/KeyOrigin";
|
|
281
|
+
};
|
|
282
|
+
readonly label: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
readonly maxLength: 256;
|
|
285
|
+
readonly description: "Optional human-readable label. Operator-facing only; carries no authorization meaning.";
|
|
286
|
+
};
|
|
287
|
+
readonly exportable: {
|
|
288
|
+
readonly type: "boolean";
|
|
289
|
+
readonly description: "Whether the private half may be released to a caller. `false` means the custodian refuses every export of this key and can only be asked to *use* it — signing, key agreement — so the material never leaves. **Absence means the key may be exported.** That is the permissive reading, and it is deliberate: it is what every record written before this member existed already meant, so a custodian adding the member cannot silently retract access to keys its callers already hold. A consumer MUST NOT infer the converse — absence is not a statement that export was considered and allowed. Marking a key non-exportable does not make it unrecoverable: a custodian's own whole-store backup is a different mechanism from an export to a caller, and this member does not speak to it.";
|
|
290
|
+
readonly $comment: "No JSON Schema `default` is declared here on purpose. A declared default is materialised by the generated bindings — the field becomes non-optional with a serde default — so an absent member reappears as an explicit `true` on re-serialisation, which breaks round-trip idempotence for every record written before this member existed. The permissive reading is stated in prose above, where a binding cannot act on it.";
|
|
291
|
+
};
|
|
292
|
+
readonly contextId: {
|
|
293
|
+
readonly type: "string";
|
|
294
|
+
readonly description: "Scope the key belongs to. **Absence is not 'every scope'** — a key with no context is reachable only by a caller with unrestricted authority over the maintainer, which is the more restrictive reading, and a consumer that treats absence as a wildcard inverts the guarantee.";
|
|
295
|
+
};
|
|
296
|
+
readonly createdAt: {
|
|
297
|
+
readonly type: "string";
|
|
298
|
+
readonly format: "date-time";
|
|
299
|
+
readonly description: "RFC 3339 timestamp at which the key was created or imported.";
|
|
300
|
+
};
|
|
301
|
+
readonly updatedAt: {
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
readonly format: "date-time";
|
|
304
|
+
readonly description: "RFC 3339 timestamp of the last change to the record (rename, revocation).";
|
|
305
|
+
};
|
|
306
|
+
readonly ext: {
|
|
307
|
+
readonly $ref: "#/$defs/Ext";
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly KeyOrigin: {
|
|
312
|
+
readonly title: "KeyOrigin";
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
315
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
316
|
+
readonly default: "derived";
|
|
317
|
+
};
|
|
318
|
+
readonly KeyStatus: {
|
|
319
|
+
readonly title: "KeyStatus";
|
|
320
|
+
readonly type: "string";
|
|
321
|
+
readonly enum: readonly ["active", "revoked"];
|
|
322
|
+
readonly description: "Lifecycle state. Only an `active` key may be named in a signing request; a `revoked` key is retained so historic signatures remain attributable, and MUST NOT be reactivated.";
|
|
323
|
+
};
|
|
324
|
+
readonly KeyType: {
|
|
325
|
+
readonly title: "KeyType";
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
readonly enum: readonly ["ed25519", "x25519", "p256", "mldsa44", "mldsa65"];
|
|
328
|
+
readonly description: "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support.";
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
334
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
335
|
+
* per-specification and cannot be derived from the document alone, and
|
|
336
|
+
* item 2 needs the schema this carries.
|
|
337
|
+
*/
|
|
338
|
+
export declare const SPEC: {
|
|
339
|
+
readonly typeUri: "https://trusttasks.org/spec/keys/list/0.2";
|
|
340
|
+
readonly isBearer: false;
|
|
341
|
+
readonly isProofRequired: false;
|
|
342
|
+
readonly isRecipientRequired: true;
|
|
343
|
+
readonly isIssuedAtRequired: false;
|
|
344
|
+
readonly payloadSchema: {
|
|
345
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
346
|
+
readonly $id: "https://trusttasks.org/spec/keys/list/0.2";
|
|
347
|
+
readonly title: "Keys List — payload";
|
|
348
|
+
readonly type: "object";
|
|
349
|
+
readonly additionalProperties: false;
|
|
350
|
+
readonly properties: {
|
|
351
|
+
readonly status: {
|
|
352
|
+
readonly $ref: "#/$defs/KeyStatus";
|
|
353
|
+
readonly description: "Return only keys in this lifecycle state. Omitted returns every state, including revoked keys.";
|
|
354
|
+
};
|
|
355
|
+
readonly contextId: {
|
|
356
|
+
readonly type: "string";
|
|
357
|
+
readonly description: "Return only keys filed under this scope.";
|
|
358
|
+
};
|
|
359
|
+
readonly cursor: {
|
|
360
|
+
readonly type: "string";
|
|
361
|
+
readonly description: "An opaque continuation token from a previous response's `nextCursor`; a responder MUST NOT accept a cursor it did not issue.";
|
|
362
|
+
};
|
|
363
|
+
readonly limit: {
|
|
364
|
+
readonly type: "integer";
|
|
365
|
+
readonly minimum: 1;
|
|
366
|
+
readonly description: "The most items to return; the responder chooses a default and MAY return fewer, and MAY impose its own ceiling.";
|
|
367
|
+
};
|
|
368
|
+
readonly ext: {
|
|
369
|
+
readonly $ref: "#/$defs/Ext";
|
|
370
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
readonly $defs: {
|
|
374
|
+
readonly Response: {
|
|
375
|
+
readonly $anchor: "response";
|
|
376
|
+
readonly title: "Keys List — response payload";
|
|
377
|
+
readonly description: "The success response to a keys/list request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/list/0.2#response.";
|
|
378
|
+
readonly type: "object";
|
|
379
|
+
readonly additionalProperties: false;
|
|
380
|
+
readonly required: readonly ["keys"];
|
|
381
|
+
readonly properties: {
|
|
382
|
+
readonly keys: {
|
|
383
|
+
readonly type: "array";
|
|
384
|
+
readonly items: {
|
|
385
|
+
readonly $ref: "#/$defs/KeyRecord";
|
|
386
|
+
};
|
|
387
|
+
readonly description: "The page of records, in the custodian's own order.";
|
|
388
|
+
};
|
|
389
|
+
readonly nextCursor: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
readonly description: "Opaque continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page. Its presence is what tells a key audit or rotation sweep it has not yet seen the whole set — a producer that stops while `nextCursor` is present has silently skipped every key past the page boundary.";
|
|
392
|
+
};
|
|
393
|
+
readonly ext: {
|
|
394
|
+
readonly $ref: "#/$defs/Ext";
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
readonly Ext: {
|
|
399
|
+
readonly title: "Ext";
|
|
400
|
+
readonly 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.";
|
|
401
|
+
readonly type: "object";
|
|
402
|
+
readonly minProperties: 1;
|
|
403
|
+
readonly additionalProperties: true;
|
|
404
|
+
readonly propertyNames: {
|
|
405
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
readonly KeyRecord: {
|
|
409
|
+
readonly title: "KeyRecord";
|
|
410
|
+
readonly type: "object";
|
|
411
|
+
readonly additionalProperties: false;
|
|
412
|
+
readonly required: readonly ["keyId", "keyType", "status", "publicKey", "createdAt"];
|
|
413
|
+
readonly properties: {
|
|
414
|
+
readonly keyId: {
|
|
415
|
+
readonly type: "string";
|
|
416
|
+
readonly minLength: 1;
|
|
417
|
+
readonly description: "Maintainer-scoped identifier for the key. Stable for the key's lifetime except through an explicit `keys/rename`.";
|
|
418
|
+
};
|
|
419
|
+
readonly keyType: {
|
|
420
|
+
readonly $ref: "#/$defs/KeyType";
|
|
421
|
+
};
|
|
422
|
+
readonly status: {
|
|
423
|
+
readonly $ref: "#/$defs/KeyStatus";
|
|
424
|
+
};
|
|
425
|
+
readonly publicKey: {
|
|
426
|
+
readonly type: "string";
|
|
427
|
+
readonly minLength: 1;
|
|
428
|
+
readonly description: "The public half, multibase-encoded. The private half is never carried by any keys/* response.";
|
|
429
|
+
};
|
|
430
|
+
readonly derivationPath: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly description: "Hierarchical-deterministic path the key was derived at, when `origin` is `derived`. Absent for imported keys, which have no path.";
|
|
433
|
+
};
|
|
434
|
+
readonly seedId: {
|
|
435
|
+
readonly type: "integer";
|
|
436
|
+
readonly minimum: 0;
|
|
437
|
+
readonly description: "Identifier of the seed the key was derived from, when the maintainer holds more than one. Absent for imported keys.";
|
|
438
|
+
};
|
|
439
|
+
readonly origin: {
|
|
440
|
+
readonly $ref: "#/$defs/KeyOrigin";
|
|
441
|
+
};
|
|
442
|
+
readonly label: {
|
|
443
|
+
readonly type: "string";
|
|
444
|
+
readonly maxLength: 256;
|
|
445
|
+
readonly description: "Optional human-readable label. Operator-facing only; carries no authorization meaning.";
|
|
446
|
+
};
|
|
447
|
+
readonly exportable: {
|
|
448
|
+
readonly type: "boolean";
|
|
449
|
+
readonly description: "Whether the private half may be released to a caller. `false` means the custodian refuses every export of this key and can only be asked to *use* it — signing, key agreement — so the material never leaves. **Absence means the key may be exported.** That is the permissive reading, and it is deliberate: it is what every record written before this member existed already meant, so a custodian adding the member cannot silently retract access to keys its callers already hold. A consumer MUST NOT infer the converse — absence is not a statement that export was considered and allowed. Marking a key non-exportable does not make it unrecoverable: a custodian's own whole-store backup is a different mechanism from an export to a caller, and this member does not speak to it.";
|
|
450
|
+
readonly $comment: "No JSON Schema `default` is declared here on purpose. A declared default is materialised by the generated bindings — the field becomes non-optional with a serde default — so an absent member reappears as an explicit `true` on re-serialisation, which breaks round-trip idempotence for every record written before this member existed. The permissive reading is stated in prose above, where a binding cannot act on it.";
|
|
451
|
+
};
|
|
452
|
+
readonly contextId: {
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
readonly description: "Scope the key belongs to. **Absence is not 'every scope'** — a key with no context is reachable only by a caller with unrestricted authority over the maintainer, which is the more restrictive reading, and a consumer that treats absence as a wildcard inverts the guarantee.";
|
|
455
|
+
};
|
|
456
|
+
readonly createdAt: {
|
|
457
|
+
readonly type: "string";
|
|
458
|
+
readonly format: "date-time";
|
|
459
|
+
readonly description: "RFC 3339 timestamp at which the key was created or imported.";
|
|
460
|
+
};
|
|
461
|
+
readonly updatedAt: {
|
|
462
|
+
readonly type: "string";
|
|
463
|
+
readonly format: "date-time";
|
|
464
|
+
readonly description: "RFC 3339 timestamp of the last change to the record (rename, revocation).";
|
|
465
|
+
};
|
|
466
|
+
readonly ext: {
|
|
467
|
+
readonly $ref: "#/$defs/Ext";
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
readonly KeyOrigin: {
|
|
472
|
+
readonly title: "KeyOrigin";
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
475
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
476
|
+
readonly default: "derived";
|
|
477
|
+
};
|
|
478
|
+
readonly KeyStatus: {
|
|
479
|
+
readonly title: "KeyStatus";
|
|
480
|
+
readonly type: "string";
|
|
481
|
+
readonly enum: readonly ["active", "revoked"];
|
|
482
|
+
readonly description: "Lifecycle state. Only an `active` key may be named in a signing request; a `revoked` key is retained so historic signatures remain attributable, and MUST NOT be reactivated.";
|
|
483
|
+
};
|
|
484
|
+
readonly KeyType: {
|
|
485
|
+
readonly title: "KeyType";
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly enum: readonly ["ed25519", "x25519", "p256", "mldsa44", "mldsa65"];
|
|
488
|
+
readonly description: "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support.";
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
495
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
496
|
+
* parties (§7.3 item 5).
|
|
497
|
+
*/
|
|
498
|
+
export declare const RESPONSE_SPEC: {
|
|
499
|
+
readonly typeUri: "https://trusttasks.org/spec/keys/list/0.2#response";
|
|
500
|
+
readonly isBearer: false;
|
|
501
|
+
readonly isProofRequired: false;
|
|
502
|
+
readonly isRecipientRequired: true;
|
|
503
|
+
readonly isIssuedAtRequired: false;
|
|
504
|
+
readonly payloadSchema: {
|
|
505
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
506
|
+
readonly $ref: "#/$defs/Response";
|
|
507
|
+
readonly $defs: {
|
|
508
|
+
readonly Response: {
|
|
509
|
+
readonly $anchor: "response";
|
|
510
|
+
readonly title: "Keys List — response payload";
|
|
511
|
+
readonly description: "The success response to a keys/list request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/list/0.2#response.";
|
|
512
|
+
readonly type: "object";
|
|
513
|
+
readonly additionalProperties: false;
|
|
514
|
+
readonly required: readonly ["keys"];
|
|
515
|
+
readonly properties: {
|
|
516
|
+
readonly keys: {
|
|
517
|
+
readonly type: "array";
|
|
518
|
+
readonly items: {
|
|
519
|
+
readonly $ref: "#/$defs/KeyRecord";
|
|
520
|
+
};
|
|
521
|
+
readonly description: "The page of records, in the custodian's own order.";
|
|
522
|
+
};
|
|
523
|
+
readonly nextCursor: {
|
|
524
|
+
readonly type: "string";
|
|
525
|
+
readonly description: "Opaque continuation token for the next page; pass it back as the request's `cursor`. Absent on the last page. Its presence is what tells a key audit or rotation sweep it has not yet seen the whole set — a producer that stops while `nextCursor` is present has silently skipped every key past the page boundary.";
|
|
526
|
+
};
|
|
527
|
+
readonly ext: {
|
|
528
|
+
readonly $ref: "#/$defs/Ext";
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
readonly Ext: {
|
|
533
|
+
readonly title: "Ext";
|
|
534
|
+
readonly 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.";
|
|
535
|
+
readonly type: "object";
|
|
536
|
+
readonly minProperties: 1;
|
|
537
|
+
readonly additionalProperties: true;
|
|
538
|
+
readonly propertyNames: {
|
|
539
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
readonly KeyRecord: {
|
|
543
|
+
readonly title: "KeyRecord";
|
|
544
|
+
readonly type: "object";
|
|
545
|
+
readonly additionalProperties: false;
|
|
546
|
+
readonly required: readonly ["keyId", "keyType", "status", "publicKey", "createdAt"];
|
|
547
|
+
readonly properties: {
|
|
548
|
+
readonly keyId: {
|
|
549
|
+
readonly type: "string";
|
|
550
|
+
readonly minLength: 1;
|
|
551
|
+
readonly description: "Maintainer-scoped identifier for the key. Stable for the key's lifetime except through an explicit `keys/rename`.";
|
|
552
|
+
};
|
|
553
|
+
readonly keyType: {
|
|
554
|
+
readonly $ref: "#/$defs/KeyType";
|
|
555
|
+
};
|
|
556
|
+
readonly status: {
|
|
557
|
+
readonly $ref: "#/$defs/KeyStatus";
|
|
558
|
+
};
|
|
559
|
+
readonly publicKey: {
|
|
560
|
+
readonly type: "string";
|
|
561
|
+
readonly minLength: 1;
|
|
562
|
+
readonly description: "The public half, multibase-encoded. The private half is never carried by any keys/* response.";
|
|
563
|
+
};
|
|
564
|
+
readonly derivationPath: {
|
|
565
|
+
readonly type: "string";
|
|
566
|
+
readonly description: "Hierarchical-deterministic path the key was derived at, when `origin` is `derived`. Absent for imported keys, which have no path.";
|
|
567
|
+
};
|
|
568
|
+
readonly seedId: {
|
|
569
|
+
readonly type: "integer";
|
|
570
|
+
readonly minimum: 0;
|
|
571
|
+
readonly description: "Identifier of the seed the key was derived from, when the maintainer holds more than one. Absent for imported keys.";
|
|
572
|
+
};
|
|
573
|
+
readonly origin: {
|
|
574
|
+
readonly $ref: "#/$defs/KeyOrigin";
|
|
575
|
+
};
|
|
576
|
+
readonly label: {
|
|
577
|
+
readonly type: "string";
|
|
578
|
+
readonly maxLength: 256;
|
|
579
|
+
readonly description: "Optional human-readable label. Operator-facing only; carries no authorization meaning.";
|
|
580
|
+
};
|
|
581
|
+
readonly exportable: {
|
|
582
|
+
readonly type: "boolean";
|
|
583
|
+
readonly description: "Whether the private half may be released to a caller. `false` means the custodian refuses every export of this key and can only be asked to *use* it — signing, key agreement — so the material never leaves. **Absence means the key may be exported.** That is the permissive reading, and it is deliberate: it is what every record written before this member existed already meant, so a custodian adding the member cannot silently retract access to keys its callers already hold. A consumer MUST NOT infer the converse — absence is not a statement that export was considered and allowed. Marking a key non-exportable does not make it unrecoverable: a custodian's own whole-store backup is a different mechanism from an export to a caller, and this member does not speak to it.";
|
|
584
|
+
readonly $comment: "No JSON Schema `default` is declared here on purpose. A declared default is materialised by the generated bindings — the field becomes non-optional with a serde default — so an absent member reappears as an explicit `true` on re-serialisation, which breaks round-trip idempotence for every record written before this member existed. The permissive reading is stated in prose above, where a binding cannot act on it.";
|
|
585
|
+
};
|
|
586
|
+
readonly contextId: {
|
|
587
|
+
readonly type: "string";
|
|
588
|
+
readonly description: "Scope the key belongs to. **Absence is not 'every scope'** — a key with no context is reachable only by a caller with unrestricted authority over the maintainer, which is the more restrictive reading, and a consumer that treats absence as a wildcard inverts the guarantee.";
|
|
589
|
+
};
|
|
590
|
+
readonly createdAt: {
|
|
591
|
+
readonly type: "string";
|
|
592
|
+
readonly format: "date-time";
|
|
593
|
+
readonly description: "RFC 3339 timestamp at which the key was created or imported.";
|
|
594
|
+
};
|
|
595
|
+
readonly updatedAt: {
|
|
596
|
+
readonly type: "string";
|
|
597
|
+
readonly format: "date-time";
|
|
598
|
+
readonly description: "RFC 3339 timestamp of the last change to the record (rename, revocation).";
|
|
599
|
+
};
|
|
600
|
+
readonly ext: {
|
|
601
|
+
readonly $ref: "#/$defs/Ext";
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly KeyOrigin: {
|
|
606
|
+
readonly title: "KeyOrigin";
|
|
607
|
+
readonly type: "string";
|
|
608
|
+
readonly enum: readonly ["derived", "imported", "internal"];
|
|
609
|
+
readonly description: "Where the private key came from. `derived` means the maintainer generated it from a seed it holds and can reproduce it from `derivationPath`; `imported` means it arrived from outside and exists only as stored material; `internal` means the maintainer generated it from a CSPRNG and it is reproducible from nothing at all. The distinction is operationally load-bearing: a `derived` key survives a seed restore, an `imported` one is lost unless it was backed up separately, and an `internal` one cannot be recovered by any means once the maintainer's storage is gone. This member is also the only way a consumer can confirm that a `keys/create` request for an `internal` key was honoured rather than silently downgraded to a derived one — see that specification's `internal` member.";
|
|
610
|
+
readonly default: "derived";
|
|
611
|
+
};
|
|
612
|
+
readonly KeyStatus: {
|
|
613
|
+
readonly title: "KeyStatus";
|
|
614
|
+
readonly type: "string";
|
|
615
|
+
readonly enum: readonly ["active", "revoked"];
|
|
616
|
+
readonly description: "Lifecycle state. Only an `active` key may be named in a signing request; a `revoked` key is retained so historic signatures remain attributable, and MUST NOT be reactivated.";
|
|
617
|
+
};
|
|
618
|
+
readonly KeyType: {
|
|
619
|
+
readonly title: "KeyType";
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
readonly enum: readonly ["ed25519", "x25519", "p256", "mldsa44", "mldsa65"];
|
|
622
|
+
readonly description: "Cryptographic algorithm the key material belongs to. `ed25519` signs (EdDSA), `x25519` performs key agreement and never signs, `p256` signs (ES256), and `mldsa44` and `mldsa65` sign with the post-quantum ML-DSA scheme of US NIST FIPS 204. The set is expected to grow as algorithms are standardised, and growing it is a MINOR change under SPEC.md §5.2: `keyType` selects no schema branch, so adding a value relaxes a constraint rather than narrowing one, and the generated libraries mark this enumeration non-exhaustive so that a consumer absorbs a new value rather than failing to compile. Two ML-DSA parameter sets are carried because two specifications require different ones — W3C Quantum-Resistant Cryptosuites defines Data Integrity suites only for ML-DSA-44, while Trust Spanning Protocol Rev 3 §8.1 mandates ML-DSA-65 — so the parameter set is chosen by whatever consumes the key and the two are not redundant. A consumer that does not implement a value it receives MUST refuse the document rather than substitute one it does support.";
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/keys/list/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAGpG,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAE9D,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2CAAoD,CAAC;AAE7E,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,eAAe,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oDAA6D,CAAC;AAE/F,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,uBAAuB,CAAC;AAE/C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwKjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8I1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|