@openvtc/trust-tasks 0.27.3 → 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 +9 -0
- 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/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/_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/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,1156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/messaging/account/add/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Account_MessagingV0_2 as Account, AccountStats, AccountType, Ext, MediatorAcl, ProtocolCounts, QueueLimits, Vid } from "../../../../_shared/components.js";
|
|
6
|
+
export interface MessagingAddAccountPayload {
|
|
7
|
+
/**
|
|
8
|
+
* The DID of the account to register.
|
|
9
|
+
*/
|
|
10
|
+
did: Vid;
|
|
11
|
+
/**
|
|
12
|
+
* The role to assign the new account. Defaults to `standard`; assigning a non-standard role requires administrative standing (only a rootAdmin may assign rootAdmin).
|
|
13
|
+
*/
|
|
14
|
+
accountType?: AccountType;
|
|
15
|
+
/**
|
|
16
|
+
* Initial access-control capabilities. Members omitted take the mediator's configured defaults.
|
|
17
|
+
*/
|
|
18
|
+
acl?: MediatorAcl;
|
|
19
|
+
/**
|
|
20
|
+
* Initial queued-message limits. Members omitted take the mediator's configured defaults.
|
|
21
|
+
*/
|
|
22
|
+
queueLimits?: QueueLimits;
|
|
23
|
+
/**
|
|
24
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
25
|
+
*/
|
|
26
|
+
ext?: Ext;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The success response to a messaging/account/add request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/account/add/0.2#response.
|
|
30
|
+
*/
|
|
31
|
+
export interface MessagingAddAccountResponsePayload {
|
|
32
|
+
/**
|
|
33
|
+
* The full realized mediator view of the newly created account.
|
|
34
|
+
*/
|
|
35
|
+
account: Account;
|
|
36
|
+
/**
|
|
37
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
38
|
+
*/
|
|
39
|
+
ext?: Ext;
|
|
40
|
+
}
|
|
41
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
42
|
+
export type { Account, AccountStats, AccountType, Ext, MediatorAcl, ProtocolCounts, QueueLimits, Vid };
|
|
43
|
+
/** Trust Task type URI. */
|
|
44
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/messaging/account/add/0.2";
|
|
45
|
+
/** Stable alias for this specification's request payload shape. */
|
|
46
|
+
export type Payload = MessagingAddAccountPayload;
|
|
47
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
48
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/messaging/account/add/0.2#response";
|
|
49
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
50
|
+
export type Response = MessagingAddAccountResponsePayload;
|
|
51
|
+
/**
|
|
52
|
+
* This specification's payload schema, as a value.
|
|
53
|
+
*
|
|
54
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
55
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
56
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
57
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
58
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
59
|
+
*/
|
|
60
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
61
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
62
|
+
readonly $id: "https://trusttasks.org/spec/messaging/account/add/0.2";
|
|
63
|
+
readonly title: "Messaging Add Account — payload";
|
|
64
|
+
readonly type: "object";
|
|
65
|
+
readonly additionalProperties: false;
|
|
66
|
+
readonly required: readonly ["did"];
|
|
67
|
+
readonly properties: {
|
|
68
|
+
readonly did: {
|
|
69
|
+
readonly $ref: "#/$defs/Vid";
|
|
70
|
+
readonly description: "The DID of the account to register.";
|
|
71
|
+
};
|
|
72
|
+
readonly accountType: {
|
|
73
|
+
readonly $ref: "#/$defs/AccountType";
|
|
74
|
+
readonly default: "standard";
|
|
75
|
+
readonly description: "The role to assign the new account. Defaults to `standard`; assigning a non-standard role requires administrative standing (only a rootAdmin may assign rootAdmin).";
|
|
76
|
+
};
|
|
77
|
+
readonly acl: {
|
|
78
|
+
readonly $ref: "#/$defs/MediatorAcl";
|
|
79
|
+
readonly description: "Initial access-control capabilities. Members omitted take the mediator's configured defaults.";
|
|
80
|
+
};
|
|
81
|
+
readonly queueLimits: {
|
|
82
|
+
readonly $ref: "#/$defs/QueueLimits";
|
|
83
|
+
readonly description: "Initial queued-message limits. Members omitted take the mediator's configured defaults.";
|
|
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: "Messaging Add Account — response payload";
|
|
94
|
+
readonly description: "The success response to a messaging/account/add request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/account/add/0.2#response.";
|
|
95
|
+
readonly type: "object";
|
|
96
|
+
readonly additionalProperties: false;
|
|
97
|
+
readonly required: readonly ["account"];
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly account: {
|
|
100
|
+
readonly $ref: "#/$defs/Account";
|
|
101
|
+
readonly description: "The full realized mediator view of the newly created account.";
|
|
102
|
+
};
|
|
103
|
+
readonly ext: {
|
|
104
|
+
readonly $ref: "#/$defs/Ext";
|
|
105
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
readonly Ext: {
|
|
110
|
+
readonly title: "Ext";
|
|
111
|
+
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.";
|
|
112
|
+
readonly type: "object";
|
|
113
|
+
readonly minProperties: 1;
|
|
114
|
+
readonly additionalProperties: true;
|
|
115
|
+
readonly propertyNames: {
|
|
116
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
readonly Account: {
|
|
120
|
+
readonly title: "Account";
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly additionalProperties: false;
|
|
123
|
+
readonly required: readonly ["did", "accountType", "acl"];
|
|
124
|
+
readonly description: "The mediator's view of one served account.";
|
|
125
|
+
readonly properties: {
|
|
126
|
+
readonly did: {
|
|
127
|
+
readonly $ref: "#/$defs/Vid";
|
|
128
|
+
readonly description: "The account's controlling DID, or — for privacy, and for mediators that key accounts by a one-way hash and never hold the full DID — a stable hash of that DID (see `Vid`). Whichever form is used, it is the opaque account identifier the other `account/*`, `acl/*`, and `access-list/*` tasks accept.";
|
|
129
|
+
};
|
|
130
|
+
readonly accountType: {
|
|
131
|
+
readonly $ref: "#/$defs/AccountType";
|
|
132
|
+
};
|
|
133
|
+
readonly acl: {
|
|
134
|
+
readonly $ref: "#/$defs/MediatorAcl";
|
|
135
|
+
};
|
|
136
|
+
readonly queueLimits: {
|
|
137
|
+
readonly $ref: "#/$defs/QueueLimits";
|
|
138
|
+
};
|
|
139
|
+
readonly sendQueueCount: {
|
|
140
|
+
readonly type: "integer";
|
|
141
|
+
readonly minimum: 0;
|
|
142
|
+
readonly description: "Current count of queued send messages.";
|
|
143
|
+
};
|
|
144
|
+
readonly sendQueueBytes: {
|
|
145
|
+
readonly type: "integer";
|
|
146
|
+
readonly minimum: 0;
|
|
147
|
+
readonly description: "Current byte size of queued send messages.";
|
|
148
|
+
};
|
|
149
|
+
readonly receiveQueueCount: {
|
|
150
|
+
readonly type: "integer";
|
|
151
|
+
readonly minimum: 0;
|
|
152
|
+
readonly description: "Current count of queued receive messages.";
|
|
153
|
+
};
|
|
154
|
+
readonly receiveQueueBytes: {
|
|
155
|
+
readonly type: "integer";
|
|
156
|
+
readonly minimum: 0;
|
|
157
|
+
readonly description: "Current byte size of queued receive messages.";
|
|
158
|
+
};
|
|
159
|
+
readonly accessListCount: {
|
|
160
|
+
readonly type: "integer";
|
|
161
|
+
readonly minimum: 0;
|
|
162
|
+
readonly description: "Number of entries in the account's access list.";
|
|
163
|
+
};
|
|
164
|
+
readonly lastReceivedAt: {
|
|
165
|
+
readonly type: "string";
|
|
166
|
+
readonly format: "date-time";
|
|
167
|
+
readonly description: "The instant at which the mediator last accepted a message addressed to this account. Present only when the request set `includeActivity` and the mediator has recorded such a message; MAY lag the true time by up to 60 seconds.";
|
|
168
|
+
};
|
|
169
|
+
readonly lastAuthenticatedAt: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly format: "date-time";
|
|
172
|
+
readonly description: "The instant at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication.";
|
|
173
|
+
};
|
|
174
|
+
readonly stats: {
|
|
175
|
+
readonly $ref: "#/$defs/AccountStats";
|
|
176
|
+
readonly description: "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`.";
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
readonly AccountStats: {
|
|
181
|
+
readonly title: "AccountStats";
|
|
182
|
+
readonly type: "object";
|
|
183
|
+
readonly additionalProperties: false;
|
|
184
|
+
readonly description: "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.";
|
|
185
|
+
readonly properties: {
|
|
186
|
+
readonly messagesReceived: {
|
|
187
|
+
readonly type: "integer";
|
|
188
|
+
readonly minimum: 0;
|
|
189
|
+
readonly description: "Messages the mediator accepted addressed to this account.";
|
|
190
|
+
};
|
|
191
|
+
readonly messagesSent: {
|
|
192
|
+
readonly type: "integer";
|
|
193
|
+
readonly minimum: 0;
|
|
194
|
+
readonly description: "Messages the mediator accepted from this account.";
|
|
195
|
+
};
|
|
196
|
+
readonly bytesReceived: {
|
|
197
|
+
readonly type: "integer";
|
|
198
|
+
readonly minimum: 0;
|
|
199
|
+
readonly description: "Total size of the messages counted by messagesReceived.";
|
|
200
|
+
};
|
|
201
|
+
readonly bytesSent: {
|
|
202
|
+
readonly type: "integer";
|
|
203
|
+
readonly minimum: 0;
|
|
204
|
+
readonly description: "Total size of the messages counted by messagesSent.";
|
|
205
|
+
};
|
|
206
|
+
readonly receivedByProtocol: {
|
|
207
|
+
readonly $ref: "#/$defs/ProtocolCounts";
|
|
208
|
+
readonly description: "messagesReceived split by the wire protocol the message arrived in.";
|
|
209
|
+
};
|
|
210
|
+
readonly sentByProtocol: {
|
|
211
|
+
readonly $ref: "#/$defs/ProtocolCounts";
|
|
212
|
+
readonly description: "messagesSent split by the wire protocol the message was sent in.";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly ProtocolCounts: {
|
|
217
|
+
readonly title: "ProtocolCounts";
|
|
218
|
+
readonly type: "object";
|
|
219
|
+
readonly additionalProperties: false;
|
|
220
|
+
readonly description: "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.";
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly didcomm: {
|
|
223
|
+
readonly type: "integer";
|
|
224
|
+
readonly minimum: 0;
|
|
225
|
+
readonly description: "DIDComm v2 (JWE/JWS).";
|
|
226
|
+
};
|
|
227
|
+
readonly didcommV1: {
|
|
228
|
+
readonly type: "integer";
|
|
229
|
+
readonly minimum: 0;
|
|
230
|
+
readonly description: "A DIDComm v1 envelope.";
|
|
231
|
+
};
|
|
232
|
+
readonly tsp: {
|
|
233
|
+
readonly type: "integer";
|
|
234
|
+
readonly minimum: 0;
|
|
235
|
+
readonly description: "A Trust Spanning Protocol message.";
|
|
236
|
+
};
|
|
237
|
+
readonly other: {
|
|
238
|
+
readonly type: "integer";
|
|
239
|
+
readonly minimum: 0;
|
|
240
|
+
readonly description: "Anything the mediator could not classify.";
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
readonly QueueLimits: {
|
|
245
|
+
readonly title: "QueueLimits";
|
|
246
|
+
readonly type: "object";
|
|
247
|
+
readonly additionalProperties: false;
|
|
248
|
+
readonly description: "Per-account queued-message limits. A value of -1 means unlimited; a member omitted on a change request leaves that limit unchanged.";
|
|
249
|
+
readonly properties: {
|
|
250
|
+
readonly sendQueueLimit: {
|
|
251
|
+
readonly type: "integer";
|
|
252
|
+
readonly minimum: -1;
|
|
253
|
+
readonly description: "Maximum queued send messages; -1 = unlimited.";
|
|
254
|
+
};
|
|
255
|
+
readonly receiveQueueLimit: {
|
|
256
|
+
readonly type: "integer";
|
|
257
|
+
readonly minimum: -1;
|
|
258
|
+
readonly description: "Maximum queued receive messages; -1 = unlimited.";
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
readonly MediatorAcl: {
|
|
263
|
+
readonly title: "MediatorAcl";
|
|
264
|
+
readonly type: "object";
|
|
265
|
+
readonly additionalProperties: false;
|
|
266
|
+
readonly description: "The mediator's per-account access-control capability set, expressed as named booleans (the transport-agnostic form of the mediator's internal capability flags). On a set request, members omitted are left unchanged; a get/response carries the full realized set.";
|
|
267
|
+
readonly properties: {
|
|
268
|
+
readonly accessListMode: {
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
readonly enum: readonly ["explicitAllow", "explicitDeny"];
|
|
271
|
+
readonly description: "How the account's access list is interpreted. `explicitAllow` = an allowlist (empty denies everyone); `explicitDeny` = a denylist (empty allows everyone).";
|
|
272
|
+
};
|
|
273
|
+
readonly blocked: {
|
|
274
|
+
readonly type: "boolean";
|
|
275
|
+
readonly description: "The account is blocked from authenticating and transacting.";
|
|
276
|
+
};
|
|
277
|
+
readonly local: {
|
|
278
|
+
readonly type: "boolean";
|
|
279
|
+
readonly description: "Messages for this account may be stored locally at this mediator for pickup.";
|
|
280
|
+
};
|
|
281
|
+
readonly sendMessages: {
|
|
282
|
+
readonly type: "boolean";
|
|
283
|
+
readonly description: "May send direct messages through the mediator.";
|
|
284
|
+
};
|
|
285
|
+
readonly receiveMessages: {
|
|
286
|
+
readonly type: "boolean";
|
|
287
|
+
readonly description: "May receive direct messages.";
|
|
288
|
+
};
|
|
289
|
+
readonly sendForwarded: {
|
|
290
|
+
readonly type: "boolean";
|
|
291
|
+
readonly description: "May send routing/forward (relay) messages.";
|
|
292
|
+
};
|
|
293
|
+
readonly receiveForwarded: {
|
|
294
|
+
readonly type: "boolean";
|
|
295
|
+
readonly description: "May be the next hop of a forwarded message.";
|
|
296
|
+
};
|
|
297
|
+
readonly createInvites: {
|
|
298
|
+
readonly type: "boolean";
|
|
299
|
+
readonly description: "May create out-of-band invitations.";
|
|
300
|
+
};
|
|
301
|
+
readonly anonReceive: {
|
|
302
|
+
readonly type: "boolean";
|
|
303
|
+
readonly description: "Accepts anonymous (no authenticated sender) messages.";
|
|
304
|
+
};
|
|
305
|
+
readonly selfManageList: {
|
|
306
|
+
readonly type: "boolean";
|
|
307
|
+
readonly description: "May self-manage its own access list.";
|
|
308
|
+
};
|
|
309
|
+
readonly selfManageSendQueueLimit: {
|
|
310
|
+
readonly type: "boolean";
|
|
311
|
+
readonly description: "May self-manage its own send-queue limit.";
|
|
312
|
+
};
|
|
313
|
+
readonly selfManageReceiveQueueLimit: {
|
|
314
|
+
readonly type: "boolean";
|
|
315
|
+
readonly description: "May self-manage its own receive-queue limit.";
|
|
316
|
+
};
|
|
317
|
+
readonly didcommEnabled: {
|
|
318
|
+
readonly type: "boolean";
|
|
319
|
+
readonly description: "The account accepts DIDComm-protocol delivery. Default true; set false for a TSP-only node.";
|
|
320
|
+
};
|
|
321
|
+
readonly tspEnabled: {
|
|
322
|
+
readonly type: "boolean";
|
|
323
|
+
readonly description: "The account accepts TSP-protocol delivery. Default true; set false for a DIDComm-only node.";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
readonly AccountType: {
|
|
328
|
+
readonly title: "AccountType";
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
readonly enum: readonly ["standard", "admin", "rootAdmin", "mediator"];
|
|
331
|
+
readonly description: "The account's role at the mediator. `standard` is an ordinary served account; `admin`/`rootAdmin` may administer other accounts; `mediator` is the mediator's own account. Only a rootAdmin may assign or modify the rootAdmin role.";
|
|
332
|
+
};
|
|
333
|
+
readonly Vid: {
|
|
334
|
+
readonly title: "Vid";
|
|
335
|
+
readonly type: "string";
|
|
336
|
+
readonly minLength: 1;
|
|
337
|
+
readonly description: "A Verifiable Identifier (SPEC §4.8). For a mediator-served account this is the account's controlling DID, carried verbatim and compared by exact string equality. For privacy — and because some mediators key accounts by a one-way hash and never hold the full DID — a stable hash of the DID (e.g. its SHA-256 digest) is an equally valid value here: producer and consumer simply agree on the same opaque identifier and compare by exact string equality. The field carries whichever form the issuing mediator uses.";
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
342
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
343
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
344
|
+
readonly $ref: "#/$defs/Response";
|
|
345
|
+
readonly $defs: {
|
|
346
|
+
readonly Response: {
|
|
347
|
+
readonly $anchor: "response";
|
|
348
|
+
readonly title: "Messaging Add Account — response payload";
|
|
349
|
+
readonly description: "The success response to a messaging/account/add request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/account/add/0.2#response.";
|
|
350
|
+
readonly type: "object";
|
|
351
|
+
readonly additionalProperties: false;
|
|
352
|
+
readonly required: readonly ["account"];
|
|
353
|
+
readonly properties: {
|
|
354
|
+
readonly account: {
|
|
355
|
+
readonly $ref: "#/$defs/Account";
|
|
356
|
+
readonly description: "The full realized mediator view of the newly created account.";
|
|
357
|
+
};
|
|
358
|
+
readonly ext: {
|
|
359
|
+
readonly $ref: "#/$defs/Ext";
|
|
360
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
readonly Ext: {
|
|
365
|
+
readonly title: "Ext";
|
|
366
|
+
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.";
|
|
367
|
+
readonly type: "object";
|
|
368
|
+
readonly minProperties: 1;
|
|
369
|
+
readonly additionalProperties: true;
|
|
370
|
+
readonly propertyNames: {
|
|
371
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
readonly Account: {
|
|
375
|
+
readonly title: "Account";
|
|
376
|
+
readonly type: "object";
|
|
377
|
+
readonly additionalProperties: false;
|
|
378
|
+
readonly required: readonly ["did", "accountType", "acl"];
|
|
379
|
+
readonly description: "The mediator's view of one served account.";
|
|
380
|
+
readonly properties: {
|
|
381
|
+
readonly did: {
|
|
382
|
+
readonly $ref: "#/$defs/Vid";
|
|
383
|
+
readonly description: "The account's controlling DID, or — for privacy, and for mediators that key accounts by a one-way hash and never hold the full DID — a stable hash of that DID (see `Vid`). Whichever form is used, it is the opaque account identifier the other `account/*`, `acl/*`, and `access-list/*` tasks accept.";
|
|
384
|
+
};
|
|
385
|
+
readonly accountType: {
|
|
386
|
+
readonly $ref: "#/$defs/AccountType";
|
|
387
|
+
};
|
|
388
|
+
readonly acl: {
|
|
389
|
+
readonly $ref: "#/$defs/MediatorAcl";
|
|
390
|
+
};
|
|
391
|
+
readonly queueLimits: {
|
|
392
|
+
readonly $ref: "#/$defs/QueueLimits";
|
|
393
|
+
};
|
|
394
|
+
readonly sendQueueCount: {
|
|
395
|
+
readonly type: "integer";
|
|
396
|
+
readonly minimum: 0;
|
|
397
|
+
readonly description: "Current count of queued send messages.";
|
|
398
|
+
};
|
|
399
|
+
readonly sendQueueBytes: {
|
|
400
|
+
readonly type: "integer";
|
|
401
|
+
readonly minimum: 0;
|
|
402
|
+
readonly description: "Current byte size of queued send messages.";
|
|
403
|
+
};
|
|
404
|
+
readonly receiveQueueCount: {
|
|
405
|
+
readonly type: "integer";
|
|
406
|
+
readonly minimum: 0;
|
|
407
|
+
readonly description: "Current count of queued receive messages.";
|
|
408
|
+
};
|
|
409
|
+
readonly receiveQueueBytes: {
|
|
410
|
+
readonly type: "integer";
|
|
411
|
+
readonly minimum: 0;
|
|
412
|
+
readonly description: "Current byte size of queued receive messages.";
|
|
413
|
+
};
|
|
414
|
+
readonly accessListCount: {
|
|
415
|
+
readonly type: "integer";
|
|
416
|
+
readonly minimum: 0;
|
|
417
|
+
readonly description: "Number of entries in the account's access list.";
|
|
418
|
+
};
|
|
419
|
+
readonly lastReceivedAt: {
|
|
420
|
+
readonly type: "string";
|
|
421
|
+
readonly format: "date-time";
|
|
422
|
+
readonly description: "The instant at which the mediator last accepted a message addressed to this account. Present only when the request set `includeActivity` and the mediator has recorded such a message; MAY lag the true time by up to 60 seconds.";
|
|
423
|
+
};
|
|
424
|
+
readonly lastAuthenticatedAt: {
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
readonly format: "date-time";
|
|
427
|
+
readonly description: "The instant at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication.";
|
|
428
|
+
};
|
|
429
|
+
readonly stats: {
|
|
430
|
+
readonly $ref: "#/$defs/AccountStats";
|
|
431
|
+
readonly description: "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`.";
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
readonly AccountStats: {
|
|
436
|
+
readonly title: "AccountStats";
|
|
437
|
+
readonly type: "object";
|
|
438
|
+
readonly additionalProperties: false;
|
|
439
|
+
readonly description: "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.";
|
|
440
|
+
readonly properties: {
|
|
441
|
+
readonly messagesReceived: {
|
|
442
|
+
readonly type: "integer";
|
|
443
|
+
readonly minimum: 0;
|
|
444
|
+
readonly description: "Messages the mediator accepted addressed to this account.";
|
|
445
|
+
};
|
|
446
|
+
readonly messagesSent: {
|
|
447
|
+
readonly type: "integer";
|
|
448
|
+
readonly minimum: 0;
|
|
449
|
+
readonly description: "Messages the mediator accepted from this account.";
|
|
450
|
+
};
|
|
451
|
+
readonly bytesReceived: {
|
|
452
|
+
readonly type: "integer";
|
|
453
|
+
readonly minimum: 0;
|
|
454
|
+
readonly description: "Total size of the messages counted by messagesReceived.";
|
|
455
|
+
};
|
|
456
|
+
readonly bytesSent: {
|
|
457
|
+
readonly type: "integer";
|
|
458
|
+
readonly minimum: 0;
|
|
459
|
+
readonly description: "Total size of the messages counted by messagesSent.";
|
|
460
|
+
};
|
|
461
|
+
readonly receivedByProtocol: {
|
|
462
|
+
readonly $ref: "#/$defs/ProtocolCounts";
|
|
463
|
+
readonly description: "messagesReceived split by the wire protocol the message arrived in.";
|
|
464
|
+
};
|
|
465
|
+
readonly sentByProtocol: {
|
|
466
|
+
readonly $ref: "#/$defs/ProtocolCounts";
|
|
467
|
+
readonly description: "messagesSent split by the wire protocol the message was sent in.";
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
readonly ProtocolCounts: {
|
|
472
|
+
readonly title: "ProtocolCounts";
|
|
473
|
+
readonly type: "object";
|
|
474
|
+
readonly additionalProperties: false;
|
|
475
|
+
readonly description: "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.";
|
|
476
|
+
readonly properties: {
|
|
477
|
+
readonly didcomm: {
|
|
478
|
+
readonly type: "integer";
|
|
479
|
+
readonly minimum: 0;
|
|
480
|
+
readonly description: "DIDComm v2 (JWE/JWS).";
|
|
481
|
+
};
|
|
482
|
+
readonly didcommV1: {
|
|
483
|
+
readonly type: "integer";
|
|
484
|
+
readonly minimum: 0;
|
|
485
|
+
readonly description: "A DIDComm v1 envelope.";
|
|
486
|
+
};
|
|
487
|
+
readonly tsp: {
|
|
488
|
+
readonly type: "integer";
|
|
489
|
+
readonly minimum: 0;
|
|
490
|
+
readonly description: "A Trust Spanning Protocol message.";
|
|
491
|
+
};
|
|
492
|
+
readonly other: {
|
|
493
|
+
readonly type: "integer";
|
|
494
|
+
readonly minimum: 0;
|
|
495
|
+
readonly description: "Anything the mediator could not classify.";
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
readonly QueueLimits: {
|
|
500
|
+
readonly title: "QueueLimits";
|
|
501
|
+
readonly type: "object";
|
|
502
|
+
readonly additionalProperties: false;
|
|
503
|
+
readonly description: "Per-account queued-message limits. A value of -1 means unlimited; a member omitted on a change request leaves that limit unchanged.";
|
|
504
|
+
readonly properties: {
|
|
505
|
+
readonly sendQueueLimit: {
|
|
506
|
+
readonly type: "integer";
|
|
507
|
+
readonly minimum: -1;
|
|
508
|
+
readonly description: "Maximum queued send messages; -1 = unlimited.";
|
|
509
|
+
};
|
|
510
|
+
readonly receiveQueueLimit: {
|
|
511
|
+
readonly type: "integer";
|
|
512
|
+
readonly minimum: -1;
|
|
513
|
+
readonly description: "Maximum queued receive messages; -1 = unlimited.";
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
readonly MediatorAcl: {
|
|
518
|
+
readonly title: "MediatorAcl";
|
|
519
|
+
readonly type: "object";
|
|
520
|
+
readonly additionalProperties: false;
|
|
521
|
+
readonly description: "The mediator's per-account access-control capability set, expressed as named booleans (the transport-agnostic form of the mediator's internal capability flags). On a set request, members omitted are left unchanged; a get/response carries the full realized set.";
|
|
522
|
+
readonly properties: {
|
|
523
|
+
readonly accessListMode: {
|
|
524
|
+
readonly type: "string";
|
|
525
|
+
readonly enum: readonly ["explicitAllow", "explicitDeny"];
|
|
526
|
+
readonly description: "How the account's access list is interpreted. `explicitAllow` = an allowlist (empty denies everyone); `explicitDeny` = a denylist (empty allows everyone).";
|
|
527
|
+
};
|
|
528
|
+
readonly blocked: {
|
|
529
|
+
readonly type: "boolean";
|
|
530
|
+
readonly description: "The account is blocked from authenticating and transacting.";
|
|
531
|
+
};
|
|
532
|
+
readonly local: {
|
|
533
|
+
readonly type: "boolean";
|
|
534
|
+
readonly description: "Messages for this account may be stored locally at this mediator for pickup.";
|
|
535
|
+
};
|
|
536
|
+
readonly sendMessages: {
|
|
537
|
+
readonly type: "boolean";
|
|
538
|
+
readonly description: "May send direct messages through the mediator.";
|
|
539
|
+
};
|
|
540
|
+
readonly receiveMessages: {
|
|
541
|
+
readonly type: "boolean";
|
|
542
|
+
readonly description: "May receive direct messages.";
|
|
543
|
+
};
|
|
544
|
+
readonly sendForwarded: {
|
|
545
|
+
readonly type: "boolean";
|
|
546
|
+
readonly description: "May send routing/forward (relay) messages.";
|
|
547
|
+
};
|
|
548
|
+
readonly receiveForwarded: {
|
|
549
|
+
readonly type: "boolean";
|
|
550
|
+
readonly description: "May be the next hop of a forwarded message.";
|
|
551
|
+
};
|
|
552
|
+
readonly createInvites: {
|
|
553
|
+
readonly type: "boolean";
|
|
554
|
+
readonly description: "May create out-of-band invitations.";
|
|
555
|
+
};
|
|
556
|
+
readonly anonReceive: {
|
|
557
|
+
readonly type: "boolean";
|
|
558
|
+
readonly description: "Accepts anonymous (no authenticated sender) messages.";
|
|
559
|
+
};
|
|
560
|
+
readonly selfManageList: {
|
|
561
|
+
readonly type: "boolean";
|
|
562
|
+
readonly description: "May self-manage its own access list.";
|
|
563
|
+
};
|
|
564
|
+
readonly selfManageSendQueueLimit: {
|
|
565
|
+
readonly type: "boolean";
|
|
566
|
+
readonly description: "May self-manage its own send-queue limit.";
|
|
567
|
+
};
|
|
568
|
+
readonly selfManageReceiveQueueLimit: {
|
|
569
|
+
readonly type: "boolean";
|
|
570
|
+
readonly description: "May self-manage its own receive-queue limit.";
|
|
571
|
+
};
|
|
572
|
+
readonly didcommEnabled: {
|
|
573
|
+
readonly type: "boolean";
|
|
574
|
+
readonly description: "The account accepts DIDComm-protocol delivery. Default true; set false for a TSP-only node.";
|
|
575
|
+
};
|
|
576
|
+
readonly tspEnabled: {
|
|
577
|
+
readonly type: "boolean";
|
|
578
|
+
readonly description: "The account accepts TSP-protocol delivery. Default true; set false for a DIDComm-only node.";
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
readonly AccountType: {
|
|
583
|
+
readonly title: "AccountType";
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
readonly enum: readonly ["standard", "admin", "rootAdmin", "mediator"];
|
|
586
|
+
readonly description: "The account's role at the mediator. `standard` is an ordinary served account; `admin`/`rootAdmin` may administer other accounts; `mediator` is the mediator's own account. Only a rootAdmin may assign or modify the rootAdmin role.";
|
|
587
|
+
};
|
|
588
|
+
readonly Vid: {
|
|
589
|
+
readonly title: "Vid";
|
|
590
|
+
readonly type: "string";
|
|
591
|
+
readonly minLength: 1;
|
|
592
|
+
readonly description: "A Verifiable Identifier (SPEC §4.8). For a mediator-served account this is the account's controlling DID, carried verbatim and compared by exact string equality. For privacy — and because some mediators key accounts by a one-way hash and never hold the full DID — a stable hash of the DID (e.g. its SHA-256 digest) is an equally valid value here: producer and consumer simply agree on the same opaque identifier and compare by exact string equality. The field carries whichever form the issuing mediator uses.";
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
598
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
599
|
+
* per-specification and cannot be derived from the document alone, and
|
|
600
|
+
* item 2 needs the schema this carries.
|
|
601
|
+
*/
|
|
602
|
+
export declare const SPEC: {
|
|
603
|
+
readonly typeUri: "https://trusttasks.org/spec/messaging/account/add/0.2";
|
|
604
|
+
readonly isBearer: false;
|
|
605
|
+
readonly isProofRequired: true;
|
|
606
|
+
readonly isRecipientRequired: true;
|
|
607
|
+
readonly isIssuedAtRequired: true;
|
|
608
|
+
readonly payloadSchema: {
|
|
609
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
610
|
+
readonly $id: "https://trusttasks.org/spec/messaging/account/add/0.2";
|
|
611
|
+
readonly title: "Messaging Add Account — payload";
|
|
612
|
+
readonly type: "object";
|
|
613
|
+
readonly additionalProperties: false;
|
|
614
|
+
readonly required: readonly ["did"];
|
|
615
|
+
readonly properties: {
|
|
616
|
+
readonly did: {
|
|
617
|
+
readonly $ref: "#/$defs/Vid";
|
|
618
|
+
readonly description: "The DID of the account to register.";
|
|
619
|
+
};
|
|
620
|
+
readonly accountType: {
|
|
621
|
+
readonly $ref: "#/$defs/AccountType";
|
|
622
|
+
readonly default: "standard";
|
|
623
|
+
readonly description: "The role to assign the new account. Defaults to `standard`; assigning a non-standard role requires administrative standing (only a rootAdmin may assign rootAdmin).";
|
|
624
|
+
};
|
|
625
|
+
readonly acl: {
|
|
626
|
+
readonly $ref: "#/$defs/MediatorAcl";
|
|
627
|
+
readonly description: "Initial access-control capabilities. Members omitted take the mediator's configured defaults.";
|
|
628
|
+
};
|
|
629
|
+
readonly queueLimits: {
|
|
630
|
+
readonly $ref: "#/$defs/QueueLimits";
|
|
631
|
+
readonly description: "Initial queued-message limits. Members omitted take the mediator's configured defaults.";
|
|
632
|
+
};
|
|
633
|
+
readonly ext: {
|
|
634
|
+
readonly $ref: "#/$defs/Ext";
|
|
635
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
readonly $defs: {
|
|
639
|
+
readonly Response: {
|
|
640
|
+
readonly $anchor: "response";
|
|
641
|
+
readonly title: "Messaging Add Account — response payload";
|
|
642
|
+
readonly description: "The success response to a messaging/account/add request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/account/add/0.2#response.";
|
|
643
|
+
readonly type: "object";
|
|
644
|
+
readonly additionalProperties: false;
|
|
645
|
+
readonly required: readonly ["account"];
|
|
646
|
+
readonly properties: {
|
|
647
|
+
readonly account: {
|
|
648
|
+
readonly $ref: "#/$defs/Account";
|
|
649
|
+
readonly description: "The full realized mediator view of the newly created account.";
|
|
650
|
+
};
|
|
651
|
+
readonly ext: {
|
|
652
|
+
readonly $ref: "#/$defs/Ext";
|
|
653
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
readonly Ext: {
|
|
658
|
+
readonly title: "Ext";
|
|
659
|
+
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.";
|
|
660
|
+
readonly type: "object";
|
|
661
|
+
readonly minProperties: 1;
|
|
662
|
+
readonly additionalProperties: true;
|
|
663
|
+
readonly propertyNames: {
|
|
664
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
readonly Account: {
|
|
668
|
+
readonly title: "Account";
|
|
669
|
+
readonly type: "object";
|
|
670
|
+
readonly additionalProperties: false;
|
|
671
|
+
readonly required: readonly ["did", "accountType", "acl"];
|
|
672
|
+
readonly description: "The mediator's view of one served account.";
|
|
673
|
+
readonly properties: {
|
|
674
|
+
readonly did: {
|
|
675
|
+
readonly $ref: "#/$defs/Vid";
|
|
676
|
+
readonly description: "The account's controlling DID, or — for privacy, and for mediators that key accounts by a one-way hash and never hold the full DID — a stable hash of that DID (see `Vid`). Whichever form is used, it is the opaque account identifier the other `account/*`, `acl/*`, and `access-list/*` tasks accept.";
|
|
677
|
+
};
|
|
678
|
+
readonly accountType: {
|
|
679
|
+
readonly $ref: "#/$defs/AccountType";
|
|
680
|
+
};
|
|
681
|
+
readonly acl: {
|
|
682
|
+
readonly $ref: "#/$defs/MediatorAcl";
|
|
683
|
+
};
|
|
684
|
+
readonly queueLimits: {
|
|
685
|
+
readonly $ref: "#/$defs/QueueLimits";
|
|
686
|
+
};
|
|
687
|
+
readonly sendQueueCount: {
|
|
688
|
+
readonly type: "integer";
|
|
689
|
+
readonly minimum: 0;
|
|
690
|
+
readonly description: "Current count of queued send messages.";
|
|
691
|
+
};
|
|
692
|
+
readonly sendQueueBytes: {
|
|
693
|
+
readonly type: "integer";
|
|
694
|
+
readonly minimum: 0;
|
|
695
|
+
readonly description: "Current byte size of queued send messages.";
|
|
696
|
+
};
|
|
697
|
+
readonly receiveQueueCount: {
|
|
698
|
+
readonly type: "integer";
|
|
699
|
+
readonly minimum: 0;
|
|
700
|
+
readonly description: "Current count of queued receive messages.";
|
|
701
|
+
};
|
|
702
|
+
readonly receiveQueueBytes: {
|
|
703
|
+
readonly type: "integer";
|
|
704
|
+
readonly minimum: 0;
|
|
705
|
+
readonly description: "Current byte size of queued receive messages.";
|
|
706
|
+
};
|
|
707
|
+
readonly accessListCount: {
|
|
708
|
+
readonly type: "integer";
|
|
709
|
+
readonly minimum: 0;
|
|
710
|
+
readonly description: "Number of entries in the account's access list.";
|
|
711
|
+
};
|
|
712
|
+
readonly lastReceivedAt: {
|
|
713
|
+
readonly type: "string";
|
|
714
|
+
readonly format: "date-time";
|
|
715
|
+
readonly description: "The instant at which the mediator last accepted a message addressed to this account. Present only when the request set `includeActivity` and the mediator has recorded such a message; MAY lag the true time by up to 60 seconds.";
|
|
716
|
+
};
|
|
717
|
+
readonly lastAuthenticatedAt: {
|
|
718
|
+
readonly type: "string";
|
|
719
|
+
readonly format: "date-time";
|
|
720
|
+
readonly description: "The instant at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication.";
|
|
721
|
+
};
|
|
722
|
+
readonly stats: {
|
|
723
|
+
readonly $ref: "#/$defs/AccountStats";
|
|
724
|
+
readonly description: "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`.";
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
readonly AccountStats: {
|
|
729
|
+
readonly title: "AccountStats";
|
|
730
|
+
readonly type: "object";
|
|
731
|
+
readonly additionalProperties: false;
|
|
732
|
+
readonly description: "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.";
|
|
733
|
+
readonly properties: {
|
|
734
|
+
readonly messagesReceived: {
|
|
735
|
+
readonly type: "integer";
|
|
736
|
+
readonly minimum: 0;
|
|
737
|
+
readonly description: "Messages the mediator accepted addressed to this account.";
|
|
738
|
+
};
|
|
739
|
+
readonly messagesSent: {
|
|
740
|
+
readonly type: "integer";
|
|
741
|
+
readonly minimum: 0;
|
|
742
|
+
readonly description: "Messages the mediator accepted from this account.";
|
|
743
|
+
};
|
|
744
|
+
readonly bytesReceived: {
|
|
745
|
+
readonly type: "integer";
|
|
746
|
+
readonly minimum: 0;
|
|
747
|
+
readonly description: "Total size of the messages counted by messagesReceived.";
|
|
748
|
+
};
|
|
749
|
+
readonly bytesSent: {
|
|
750
|
+
readonly type: "integer";
|
|
751
|
+
readonly minimum: 0;
|
|
752
|
+
readonly description: "Total size of the messages counted by messagesSent.";
|
|
753
|
+
};
|
|
754
|
+
readonly receivedByProtocol: {
|
|
755
|
+
readonly $ref: "#/$defs/ProtocolCounts";
|
|
756
|
+
readonly description: "messagesReceived split by the wire protocol the message arrived in.";
|
|
757
|
+
};
|
|
758
|
+
readonly sentByProtocol: {
|
|
759
|
+
readonly $ref: "#/$defs/ProtocolCounts";
|
|
760
|
+
readonly description: "messagesSent split by the wire protocol the message was sent in.";
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
readonly ProtocolCounts: {
|
|
765
|
+
readonly title: "ProtocolCounts";
|
|
766
|
+
readonly type: "object";
|
|
767
|
+
readonly additionalProperties: false;
|
|
768
|
+
readonly description: "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.";
|
|
769
|
+
readonly properties: {
|
|
770
|
+
readonly didcomm: {
|
|
771
|
+
readonly type: "integer";
|
|
772
|
+
readonly minimum: 0;
|
|
773
|
+
readonly description: "DIDComm v2 (JWE/JWS).";
|
|
774
|
+
};
|
|
775
|
+
readonly didcommV1: {
|
|
776
|
+
readonly type: "integer";
|
|
777
|
+
readonly minimum: 0;
|
|
778
|
+
readonly description: "A DIDComm v1 envelope.";
|
|
779
|
+
};
|
|
780
|
+
readonly tsp: {
|
|
781
|
+
readonly type: "integer";
|
|
782
|
+
readonly minimum: 0;
|
|
783
|
+
readonly description: "A Trust Spanning Protocol message.";
|
|
784
|
+
};
|
|
785
|
+
readonly other: {
|
|
786
|
+
readonly type: "integer";
|
|
787
|
+
readonly minimum: 0;
|
|
788
|
+
readonly description: "Anything the mediator could not classify.";
|
|
789
|
+
};
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
readonly QueueLimits: {
|
|
793
|
+
readonly title: "QueueLimits";
|
|
794
|
+
readonly type: "object";
|
|
795
|
+
readonly additionalProperties: false;
|
|
796
|
+
readonly description: "Per-account queued-message limits. A value of -1 means unlimited; a member omitted on a change request leaves that limit unchanged.";
|
|
797
|
+
readonly properties: {
|
|
798
|
+
readonly sendQueueLimit: {
|
|
799
|
+
readonly type: "integer";
|
|
800
|
+
readonly minimum: -1;
|
|
801
|
+
readonly description: "Maximum queued send messages; -1 = unlimited.";
|
|
802
|
+
};
|
|
803
|
+
readonly receiveQueueLimit: {
|
|
804
|
+
readonly type: "integer";
|
|
805
|
+
readonly minimum: -1;
|
|
806
|
+
readonly description: "Maximum queued receive messages; -1 = unlimited.";
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
readonly MediatorAcl: {
|
|
811
|
+
readonly title: "MediatorAcl";
|
|
812
|
+
readonly type: "object";
|
|
813
|
+
readonly additionalProperties: false;
|
|
814
|
+
readonly description: "The mediator's per-account access-control capability set, expressed as named booleans (the transport-agnostic form of the mediator's internal capability flags). On a set request, members omitted are left unchanged; a get/response carries the full realized set.";
|
|
815
|
+
readonly properties: {
|
|
816
|
+
readonly accessListMode: {
|
|
817
|
+
readonly type: "string";
|
|
818
|
+
readonly enum: readonly ["explicitAllow", "explicitDeny"];
|
|
819
|
+
readonly description: "How the account's access list is interpreted. `explicitAllow` = an allowlist (empty denies everyone); `explicitDeny` = a denylist (empty allows everyone).";
|
|
820
|
+
};
|
|
821
|
+
readonly blocked: {
|
|
822
|
+
readonly type: "boolean";
|
|
823
|
+
readonly description: "The account is blocked from authenticating and transacting.";
|
|
824
|
+
};
|
|
825
|
+
readonly local: {
|
|
826
|
+
readonly type: "boolean";
|
|
827
|
+
readonly description: "Messages for this account may be stored locally at this mediator for pickup.";
|
|
828
|
+
};
|
|
829
|
+
readonly sendMessages: {
|
|
830
|
+
readonly type: "boolean";
|
|
831
|
+
readonly description: "May send direct messages through the mediator.";
|
|
832
|
+
};
|
|
833
|
+
readonly receiveMessages: {
|
|
834
|
+
readonly type: "boolean";
|
|
835
|
+
readonly description: "May receive direct messages.";
|
|
836
|
+
};
|
|
837
|
+
readonly sendForwarded: {
|
|
838
|
+
readonly type: "boolean";
|
|
839
|
+
readonly description: "May send routing/forward (relay) messages.";
|
|
840
|
+
};
|
|
841
|
+
readonly receiveForwarded: {
|
|
842
|
+
readonly type: "boolean";
|
|
843
|
+
readonly description: "May be the next hop of a forwarded message.";
|
|
844
|
+
};
|
|
845
|
+
readonly createInvites: {
|
|
846
|
+
readonly type: "boolean";
|
|
847
|
+
readonly description: "May create out-of-band invitations.";
|
|
848
|
+
};
|
|
849
|
+
readonly anonReceive: {
|
|
850
|
+
readonly type: "boolean";
|
|
851
|
+
readonly description: "Accepts anonymous (no authenticated sender) messages.";
|
|
852
|
+
};
|
|
853
|
+
readonly selfManageList: {
|
|
854
|
+
readonly type: "boolean";
|
|
855
|
+
readonly description: "May self-manage its own access list.";
|
|
856
|
+
};
|
|
857
|
+
readonly selfManageSendQueueLimit: {
|
|
858
|
+
readonly type: "boolean";
|
|
859
|
+
readonly description: "May self-manage its own send-queue limit.";
|
|
860
|
+
};
|
|
861
|
+
readonly selfManageReceiveQueueLimit: {
|
|
862
|
+
readonly type: "boolean";
|
|
863
|
+
readonly description: "May self-manage its own receive-queue limit.";
|
|
864
|
+
};
|
|
865
|
+
readonly didcommEnabled: {
|
|
866
|
+
readonly type: "boolean";
|
|
867
|
+
readonly description: "The account accepts DIDComm-protocol delivery. Default true; set false for a TSP-only node.";
|
|
868
|
+
};
|
|
869
|
+
readonly tspEnabled: {
|
|
870
|
+
readonly type: "boolean";
|
|
871
|
+
readonly description: "The account accepts TSP-protocol delivery. Default true; set false for a DIDComm-only node.";
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
readonly AccountType: {
|
|
876
|
+
readonly title: "AccountType";
|
|
877
|
+
readonly type: "string";
|
|
878
|
+
readonly enum: readonly ["standard", "admin", "rootAdmin", "mediator"];
|
|
879
|
+
readonly description: "The account's role at the mediator. `standard` is an ordinary served account; `admin`/`rootAdmin` may administer other accounts; `mediator` is the mediator's own account. Only a rootAdmin may assign or modify the rootAdmin role.";
|
|
880
|
+
};
|
|
881
|
+
readonly Vid: {
|
|
882
|
+
readonly title: "Vid";
|
|
883
|
+
readonly type: "string";
|
|
884
|
+
readonly minLength: 1;
|
|
885
|
+
readonly description: "A Verifiable Identifier (SPEC §4.8). For a mediator-served account this is the account's controlling DID, carried verbatim and compared by exact string equality. For privacy — and because some mediators key accounts by a one-way hash and never hold the full DID — a stable hash of the DID (e.g. its SHA-256 digest) is an equally valid value here: producer and consumer simply agree on the same opaque identifier and compare by exact string equality. The field carries whichever form the issuing mediator uses.";
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
/**
|
|
891
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
892
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
893
|
+
* parties (§7.3 item 5).
|
|
894
|
+
*/
|
|
895
|
+
export declare const RESPONSE_SPEC: {
|
|
896
|
+
readonly typeUri: "https://trusttasks.org/spec/messaging/account/add/0.2#response";
|
|
897
|
+
readonly isBearer: false;
|
|
898
|
+
readonly isProofRequired: true;
|
|
899
|
+
readonly isRecipientRequired: true;
|
|
900
|
+
readonly isIssuedAtRequired: true;
|
|
901
|
+
readonly payloadSchema: {
|
|
902
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
903
|
+
readonly $ref: "#/$defs/Response";
|
|
904
|
+
readonly $defs: {
|
|
905
|
+
readonly Response: {
|
|
906
|
+
readonly $anchor: "response";
|
|
907
|
+
readonly title: "Messaging Add Account — response payload";
|
|
908
|
+
readonly description: "The success response to a messaging/account/add request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/account/add/0.2#response.";
|
|
909
|
+
readonly type: "object";
|
|
910
|
+
readonly additionalProperties: false;
|
|
911
|
+
readonly required: readonly ["account"];
|
|
912
|
+
readonly properties: {
|
|
913
|
+
readonly account: {
|
|
914
|
+
readonly $ref: "#/$defs/Account";
|
|
915
|
+
readonly description: "The full realized mediator view of the newly created account.";
|
|
916
|
+
};
|
|
917
|
+
readonly ext: {
|
|
918
|
+
readonly $ref: "#/$defs/Ext";
|
|
919
|
+
readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
readonly Ext: {
|
|
924
|
+
readonly title: "Ext";
|
|
925
|
+
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.";
|
|
926
|
+
readonly type: "object";
|
|
927
|
+
readonly minProperties: 1;
|
|
928
|
+
readonly additionalProperties: true;
|
|
929
|
+
readonly propertyNames: {
|
|
930
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
readonly Account: {
|
|
934
|
+
readonly title: "Account";
|
|
935
|
+
readonly type: "object";
|
|
936
|
+
readonly additionalProperties: false;
|
|
937
|
+
readonly required: readonly ["did", "accountType", "acl"];
|
|
938
|
+
readonly description: "The mediator's view of one served account.";
|
|
939
|
+
readonly properties: {
|
|
940
|
+
readonly did: {
|
|
941
|
+
readonly $ref: "#/$defs/Vid";
|
|
942
|
+
readonly description: "The account's controlling DID, or — for privacy, and for mediators that key accounts by a one-way hash and never hold the full DID — a stable hash of that DID (see `Vid`). Whichever form is used, it is the opaque account identifier the other `account/*`, `acl/*`, and `access-list/*` tasks accept.";
|
|
943
|
+
};
|
|
944
|
+
readonly accountType: {
|
|
945
|
+
readonly $ref: "#/$defs/AccountType";
|
|
946
|
+
};
|
|
947
|
+
readonly acl: {
|
|
948
|
+
readonly $ref: "#/$defs/MediatorAcl";
|
|
949
|
+
};
|
|
950
|
+
readonly queueLimits: {
|
|
951
|
+
readonly $ref: "#/$defs/QueueLimits";
|
|
952
|
+
};
|
|
953
|
+
readonly sendQueueCount: {
|
|
954
|
+
readonly type: "integer";
|
|
955
|
+
readonly minimum: 0;
|
|
956
|
+
readonly description: "Current count of queued send messages.";
|
|
957
|
+
};
|
|
958
|
+
readonly sendQueueBytes: {
|
|
959
|
+
readonly type: "integer";
|
|
960
|
+
readonly minimum: 0;
|
|
961
|
+
readonly description: "Current byte size of queued send messages.";
|
|
962
|
+
};
|
|
963
|
+
readonly receiveQueueCount: {
|
|
964
|
+
readonly type: "integer";
|
|
965
|
+
readonly minimum: 0;
|
|
966
|
+
readonly description: "Current count of queued receive messages.";
|
|
967
|
+
};
|
|
968
|
+
readonly receiveQueueBytes: {
|
|
969
|
+
readonly type: "integer";
|
|
970
|
+
readonly minimum: 0;
|
|
971
|
+
readonly description: "Current byte size of queued receive messages.";
|
|
972
|
+
};
|
|
973
|
+
readonly accessListCount: {
|
|
974
|
+
readonly type: "integer";
|
|
975
|
+
readonly minimum: 0;
|
|
976
|
+
readonly description: "Number of entries in the account's access list.";
|
|
977
|
+
};
|
|
978
|
+
readonly lastReceivedAt: {
|
|
979
|
+
readonly type: "string";
|
|
980
|
+
readonly format: "date-time";
|
|
981
|
+
readonly description: "The instant at which the mediator last accepted a message addressed to this account. Present only when the request set `includeActivity` and the mediator has recorded such a message; MAY lag the true time by up to 60 seconds.";
|
|
982
|
+
};
|
|
983
|
+
readonly lastAuthenticatedAt: {
|
|
984
|
+
readonly type: "string";
|
|
985
|
+
readonly format: "date-time";
|
|
986
|
+
readonly description: "The instant at which this account last completed authentication with the mediator, over any transport. Present only when the request set `includeActivity` and the mediator has recorded an authentication.";
|
|
987
|
+
};
|
|
988
|
+
readonly stats: {
|
|
989
|
+
readonly $ref: "#/$defs/AccountStats";
|
|
990
|
+
readonly description: "Lifetime counters the mediator keeps for this account. Present only when the request set `includeStats`.";
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
readonly AccountStats: {
|
|
995
|
+
readonly title: "AccountStats";
|
|
996
|
+
readonly type: "object";
|
|
997
|
+
readonly additionalProperties: false;
|
|
998
|
+
readonly description: "What an account has sent and received over its lifetime, as the mediator counted it. Every member is optional: a mediator reports what it keeps, and a counter absent from a response was not kept rather than zero. Counters survive restarts and are not reset by reading them; removing an account discards them.";
|
|
999
|
+
readonly properties: {
|
|
1000
|
+
readonly messagesReceived: {
|
|
1001
|
+
readonly type: "integer";
|
|
1002
|
+
readonly minimum: 0;
|
|
1003
|
+
readonly description: "Messages the mediator accepted addressed to this account.";
|
|
1004
|
+
};
|
|
1005
|
+
readonly messagesSent: {
|
|
1006
|
+
readonly type: "integer";
|
|
1007
|
+
readonly minimum: 0;
|
|
1008
|
+
readonly description: "Messages the mediator accepted from this account.";
|
|
1009
|
+
};
|
|
1010
|
+
readonly bytesReceived: {
|
|
1011
|
+
readonly type: "integer";
|
|
1012
|
+
readonly minimum: 0;
|
|
1013
|
+
readonly description: "Total size of the messages counted by messagesReceived.";
|
|
1014
|
+
};
|
|
1015
|
+
readonly bytesSent: {
|
|
1016
|
+
readonly type: "integer";
|
|
1017
|
+
readonly minimum: 0;
|
|
1018
|
+
readonly description: "Total size of the messages counted by messagesSent.";
|
|
1019
|
+
};
|
|
1020
|
+
readonly receivedByProtocol: {
|
|
1021
|
+
readonly $ref: "#/$defs/ProtocolCounts";
|
|
1022
|
+
readonly description: "messagesReceived split by the wire protocol the message arrived in.";
|
|
1023
|
+
};
|
|
1024
|
+
readonly sentByProtocol: {
|
|
1025
|
+
readonly $ref: "#/$defs/ProtocolCounts";
|
|
1026
|
+
readonly description: "messagesSent split by the wire protocol the message was sent in.";
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
};
|
|
1030
|
+
readonly ProtocolCounts: {
|
|
1031
|
+
readonly title: "ProtocolCounts";
|
|
1032
|
+
readonly type: "object";
|
|
1033
|
+
readonly additionalProperties: false;
|
|
1034
|
+
readonly description: "Message counts split by wire protocol. An absent member is a protocol the mediator counted nothing for. The member names match the WireProtocol values the traffic monitor reports.";
|
|
1035
|
+
readonly properties: {
|
|
1036
|
+
readonly didcomm: {
|
|
1037
|
+
readonly type: "integer";
|
|
1038
|
+
readonly minimum: 0;
|
|
1039
|
+
readonly description: "DIDComm v2 (JWE/JWS).";
|
|
1040
|
+
};
|
|
1041
|
+
readonly didcommV1: {
|
|
1042
|
+
readonly type: "integer";
|
|
1043
|
+
readonly minimum: 0;
|
|
1044
|
+
readonly description: "A DIDComm v1 envelope.";
|
|
1045
|
+
};
|
|
1046
|
+
readonly tsp: {
|
|
1047
|
+
readonly type: "integer";
|
|
1048
|
+
readonly minimum: 0;
|
|
1049
|
+
readonly description: "A Trust Spanning Protocol message.";
|
|
1050
|
+
};
|
|
1051
|
+
readonly other: {
|
|
1052
|
+
readonly type: "integer";
|
|
1053
|
+
readonly minimum: 0;
|
|
1054
|
+
readonly description: "Anything the mediator could not classify.";
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
readonly QueueLimits: {
|
|
1059
|
+
readonly title: "QueueLimits";
|
|
1060
|
+
readonly type: "object";
|
|
1061
|
+
readonly additionalProperties: false;
|
|
1062
|
+
readonly description: "Per-account queued-message limits. A value of -1 means unlimited; a member omitted on a change request leaves that limit unchanged.";
|
|
1063
|
+
readonly properties: {
|
|
1064
|
+
readonly sendQueueLimit: {
|
|
1065
|
+
readonly type: "integer";
|
|
1066
|
+
readonly minimum: -1;
|
|
1067
|
+
readonly description: "Maximum queued send messages; -1 = unlimited.";
|
|
1068
|
+
};
|
|
1069
|
+
readonly receiveQueueLimit: {
|
|
1070
|
+
readonly type: "integer";
|
|
1071
|
+
readonly minimum: -1;
|
|
1072
|
+
readonly description: "Maximum queued receive messages; -1 = unlimited.";
|
|
1073
|
+
};
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
readonly MediatorAcl: {
|
|
1077
|
+
readonly title: "MediatorAcl";
|
|
1078
|
+
readonly type: "object";
|
|
1079
|
+
readonly additionalProperties: false;
|
|
1080
|
+
readonly description: "The mediator's per-account access-control capability set, expressed as named booleans (the transport-agnostic form of the mediator's internal capability flags). On a set request, members omitted are left unchanged; a get/response carries the full realized set.";
|
|
1081
|
+
readonly properties: {
|
|
1082
|
+
readonly accessListMode: {
|
|
1083
|
+
readonly type: "string";
|
|
1084
|
+
readonly enum: readonly ["explicitAllow", "explicitDeny"];
|
|
1085
|
+
readonly description: "How the account's access list is interpreted. `explicitAllow` = an allowlist (empty denies everyone); `explicitDeny` = a denylist (empty allows everyone).";
|
|
1086
|
+
};
|
|
1087
|
+
readonly blocked: {
|
|
1088
|
+
readonly type: "boolean";
|
|
1089
|
+
readonly description: "The account is blocked from authenticating and transacting.";
|
|
1090
|
+
};
|
|
1091
|
+
readonly local: {
|
|
1092
|
+
readonly type: "boolean";
|
|
1093
|
+
readonly description: "Messages for this account may be stored locally at this mediator for pickup.";
|
|
1094
|
+
};
|
|
1095
|
+
readonly sendMessages: {
|
|
1096
|
+
readonly type: "boolean";
|
|
1097
|
+
readonly description: "May send direct messages through the mediator.";
|
|
1098
|
+
};
|
|
1099
|
+
readonly receiveMessages: {
|
|
1100
|
+
readonly type: "boolean";
|
|
1101
|
+
readonly description: "May receive direct messages.";
|
|
1102
|
+
};
|
|
1103
|
+
readonly sendForwarded: {
|
|
1104
|
+
readonly type: "boolean";
|
|
1105
|
+
readonly description: "May send routing/forward (relay) messages.";
|
|
1106
|
+
};
|
|
1107
|
+
readonly receiveForwarded: {
|
|
1108
|
+
readonly type: "boolean";
|
|
1109
|
+
readonly description: "May be the next hop of a forwarded message.";
|
|
1110
|
+
};
|
|
1111
|
+
readonly createInvites: {
|
|
1112
|
+
readonly type: "boolean";
|
|
1113
|
+
readonly description: "May create out-of-band invitations.";
|
|
1114
|
+
};
|
|
1115
|
+
readonly anonReceive: {
|
|
1116
|
+
readonly type: "boolean";
|
|
1117
|
+
readonly description: "Accepts anonymous (no authenticated sender) messages.";
|
|
1118
|
+
};
|
|
1119
|
+
readonly selfManageList: {
|
|
1120
|
+
readonly type: "boolean";
|
|
1121
|
+
readonly description: "May self-manage its own access list.";
|
|
1122
|
+
};
|
|
1123
|
+
readonly selfManageSendQueueLimit: {
|
|
1124
|
+
readonly type: "boolean";
|
|
1125
|
+
readonly description: "May self-manage its own send-queue limit.";
|
|
1126
|
+
};
|
|
1127
|
+
readonly selfManageReceiveQueueLimit: {
|
|
1128
|
+
readonly type: "boolean";
|
|
1129
|
+
readonly description: "May self-manage its own receive-queue limit.";
|
|
1130
|
+
};
|
|
1131
|
+
readonly didcommEnabled: {
|
|
1132
|
+
readonly type: "boolean";
|
|
1133
|
+
readonly description: "The account accepts DIDComm-protocol delivery. Default true; set false for a TSP-only node.";
|
|
1134
|
+
};
|
|
1135
|
+
readonly tspEnabled: {
|
|
1136
|
+
readonly type: "boolean";
|
|
1137
|
+
readonly description: "The account accepts TSP-protocol delivery. Default true; set false for a DIDComm-only node.";
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
};
|
|
1141
|
+
readonly AccountType: {
|
|
1142
|
+
readonly title: "AccountType";
|
|
1143
|
+
readonly type: "string";
|
|
1144
|
+
readonly enum: readonly ["standard", "admin", "rootAdmin", "mediator"];
|
|
1145
|
+
readonly description: "The account's role at the mediator. `standard` is an ordinary served account; `admin`/`rootAdmin` may administer other accounts; `mediator` is the mediator's own account. Only a rootAdmin may assign or modify the rootAdmin role.";
|
|
1146
|
+
};
|
|
1147
|
+
readonly Vid: {
|
|
1148
|
+
readonly title: "Vid";
|
|
1149
|
+
readonly type: "string";
|
|
1150
|
+
readonly minLength: 1;
|
|
1151
|
+
readonly description: "A Verifiable Identifier (SPEC §4.8). For a mediator-served account this is the account's controlling DID, carried verbatim and compared by exact string equality. For privacy — and because some mediators key accounts by a one-way hash and never hold the full DID — a stable hash of the DID (e.g. its SHA-256 digest) is an equally valid value here: producer and consumer simply agree on the same opaque identifier and compare by exact string equality. The field carries whichever form the issuing mediator uses.";
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1156
|
+
//# sourceMappingURL=payload.d.ts.map
|