@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.
Files changed (502) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/_runtime/consume.d.ts +2 -1
  3. package/dist/_runtime/consume.d.ts.map +1 -1
  4. package/dist/_runtime/consume.js +26 -1
  5. package/dist/_runtime/consume.js.map +1 -1
  6. package/dist/_runtime/document.d.ts +9 -0
  7. package/dist/_runtime/document.d.ts.map +1 -1
  8. package/dist/_runtime/document.js +15 -1
  9. package/dist/_runtime/document.js.map +1 -1
  10. package/dist/_runtime/freshness.d.ts +1 -1
  11. package/dist/_runtime/freshness.d.ts.map +1 -1
  12. package/dist/_runtime/freshness.js +5 -4
  13. package/dist/_runtime/freshness.js.map +1 -1
  14. package/dist/_shared/components.d.ts +272 -50
  15. package/dist/_shared/components.d.ts.map +1 -1
  16. package/dist/acl/list/0.3/payload.d.ts +1833 -0
  17. package/dist/acl/list/0.3/payload.d.ts.map +1 -0
  18. package/dist/acl/list/0.3/payload.js +1031 -0
  19. package/dist/acl/list/0.3/payload.js.map +1 -0
  20. package/dist/audit/list/0.2/payload.d.ts +633 -0
  21. package/dist/audit/list/0.2/payload.d.ts.map +1 -0
  22. package/dist/audit/list/0.2/payload.js +342 -0
  23. package/dist/audit/list/0.2/payload.js.map +1 -0
  24. package/dist/auth/oob/claim/0.2/payload.d.ts +463 -0
  25. package/dist/auth/oob/claim/0.2/payload.d.ts.map +1 -0
  26. package/dist/auth/oob/claim/0.2/payload.js +264 -0
  27. package/dist/auth/oob/claim/0.2/payload.js.map +1 -0
  28. package/dist/auth/oob/grant/0.3/payload.d.ts +262 -0
  29. package/dist/auth/oob/grant/0.3/payload.d.ts.map +1 -0
  30. package/dist/auth/oob/grant/0.3/payload.js +140 -0
  31. package/dist/auth/oob/grant/0.3/payload.js.map +1 -0
  32. package/dist/auth/oob/prove/0.3/payload.d.ts +836 -0
  33. package/dist/auth/oob/prove/0.3/payload.d.ts.map +1 -0
  34. package/dist/auth/oob/prove/0.3/payload.js +468 -0
  35. package/dist/auth/oob/prove/0.3/payload.js.map +1 -0
  36. package/dist/auth/oob/redeem/0.2/payload.d.ts +364 -0
  37. package/dist/auth/oob/redeem/0.2/payload.d.ts.map +1 -0
  38. package/dist/auth/oob/redeem/0.2/payload.js +199 -0
  39. package/dist/auth/oob/redeem/0.2/payload.js.map +1 -0
  40. package/dist/auth/oob/request/0.2/payload.d.ts +330 -0
  41. package/dist/auth/oob/request/0.2/payload.d.ts.map +1 -0
  42. package/dist/auth/oob/request/0.2/payload.js +193 -0
  43. package/dist/auth/oob/request/0.2/payload.js.map +1 -0
  44. package/dist/auth/oob/respond/0.3/payload.d.ts +235 -0
  45. package/dist/auth/oob/respond/0.3/payload.d.ts.map +1 -0
  46. package/dist/auth/oob/respond/0.3/payload.js +140 -0
  47. package/dist/auth/oob/respond/0.3/payload.js.map +1 -0
  48. package/dist/consent/list/1.1/payload.d.ts +613 -0
  49. package/dist/consent/list/1.1/payload.d.ts.map +1 -0
  50. package/dist/consent/list/1.1/payload.js +353 -0
  51. package/dist/consent/list/1.1/payload.js.map +1 -0
  52. package/dist/device/list/0.3/payload.d.ts +1229 -0
  53. package/dist/device/list/0.3/payload.d.ts.map +1 -0
  54. package/dist/device/list/0.3/payload.js +796 -0
  55. package/dist/device/list/0.3/payload.js.map +1 -0
  56. package/dist/did-management/did/list/0.2/payload.d.ts +521 -0
  57. package/dist/did-management/did/list/0.2/payload.d.ts.map +1 -0
  58. package/dist/did-management/did/list/0.2/payload.js +285 -0
  59. package/dist/did-management/did/list/0.2/payload.js.map +1 -0
  60. package/dist/git-ns/account/list/0.2/payload.d.ts +598 -0
  61. package/dist/git-ns/account/list/0.2/payload.d.ts.map +1 -0
  62. package/dist/git-ns/account/list/0.2/payload.js +311 -0
  63. package/dist/git-ns/account/list/0.2/payload.js.map +1 -0
  64. package/dist/git-ns/activity/list/0.2/payload.d.ts +663 -0
  65. package/dist/git-ns/activity/list/0.2/payload.d.ts.map +1 -0
  66. package/dist/git-ns/activity/list/0.2/payload.js +345 -0
  67. package/dist/git-ns/activity/list/0.2/payload.js.map +1 -0
  68. package/dist/git-ns/bridge/job/list/0.3/payload.d.ts +733 -0
  69. package/dist/git-ns/bridge/job/list/0.3/payload.d.ts.map +1 -0
  70. package/dist/git-ns/bridge/job/list/0.3/payload.js +402 -0
  71. package/dist/git-ns/bridge/job/list/0.3/payload.js.map +1 -0
  72. package/dist/git-ns/projection/show/0.2/payload.d.ts +705 -0
  73. package/dist/git-ns/projection/show/0.2/payload.d.ts.map +1 -0
  74. package/dist/git-ns/projection/show/0.2/payload.js +371 -0
  75. package/dist/git-ns/projection/show/0.2/payload.js.map +1 -0
  76. package/dist/git-ns/right/issued-by-departed/0.2/payload.d.ts +862 -0
  77. package/dist/git-ns/right/issued-by-departed/0.2/payload.d.ts.map +1 -0
  78. package/dist/git-ns/right/issued-by-departed/0.2/payload.js +481 -0
  79. package/dist/git-ns/right/issued-by-departed/0.2/payload.js.map +1 -0
  80. package/dist/git-ns/right/list/0.2/payload.d.ts +773 -0
  81. package/dist/git-ns/right/list/0.2/payload.d.ts.map +1 -0
  82. package/dist/git-ns/right/list/0.2/payload.js +433 -0
  83. package/dist/git-ns/right/list/0.2/payload.js.map +1 -0
  84. package/dist/index.d.ts +80 -0
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.js +80 -0
  87. package/dist/index.js.map +1 -1
  88. package/dist/keys/list/0.2/payload.d.ts +627 -0
  89. package/dist/keys/list/0.2/payload.d.ts.map +1 -0
  90. package/dist/keys/list/0.2/payload.js +358 -0
  91. package/dist/keys/list/0.2/payload.js.map +1 -0
  92. package/dist/messaging/_shared/0.1/messaging.d.ts +1 -1
  93. package/dist/messaging/_shared/0.1/messaging.d.ts.map +1 -1
  94. package/dist/messaging/_shared/0.2/messaging.d.ts +16 -0
  95. package/dist/messaging/_shared/0.2/messaging.d.ts.map +1 -0
  96. package/dist/messaging/_shared/0.2/messaging.js +6 -0
  97. package/dist/messaging/_shared/0.2/messaging.js.map +1 -0
  98. package/dist/messaging/account/add/0.1/payload.d.ts +1 -1
  99. package/dist/messaging/account/add/0.1/payload.d.ts.map +1 -1
  100. package/dist/messaging/account/add/0.2/payload.d.ts +1156 -0
  101. package/dist/messaging/account/add/0.2/payload.d.ts.map +1 -0
  102. package/dist/messaging/account/add/0.2/payload.js +611 -0
  103. package/dist/messaging/account/add/0.2/payload.js.map +1 -0
  104. package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts +1 -1
  105. package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts.map +1 -1
  106. package/dist/messaging/account/change-type/0.1/payload.d.ts +1 -1
  107. package/dist/messaging/account/change-type/0.1/payload.d.ts.map +1 -1
  108. package/dist/messaging/account/get/0.1/payload.d.ts +1 -1
  109. package/dist/messaging/account/get/0.1/payload.d.ts.map +1 -1
  110. package/dist/messaging/account/get/0.2/payload.d.ts +1142 -0
  111. package/dist/messaging/account/get/0.2/payload.d.ts.map +1 -0
  112. package/dist/messaging/account/get/0.2/payload.js +606 -0
  113. package/dist/messaging/account/get/0.2/payload.js.map +1 -0
  114. package/dist/messaging/account/list/0.1/payload.d.ts +1 -1
  115. package/dist/messaging/account/list/0.1/payload.d.ts.map +1 -1
  116. package/dist/messaging/account/list/0.2/payload.d.ts +1206 -0
  117. package/dist/messaging/account/list/0.2/payload.d.ts.map +1 -0
  118. package/dist/messaging/account/list/0.2/payload.js +630 -0
  119. package/dist/messaging/account/list/0.2/payload.js.map +1 -0
  120. package/dist/messaging/account/update/0.1/payload.d.ts +1 -1
  121. package/dist/messaging/account/update/0.1/payload.d.ts.map +1 -1
  122. package/dist/messaging/account/update/0.2/payload.d.ts +1154 -0
  123. package/dist/messaging/account/update/0.2/payload.d.ts.map +1 -0
  124. package/dist/messaging/account/update/0.2/payload.js +610 -0
  125. package/dist/messaging/account/update/0.2/payload.js.map +1 -0
  126. package/dist/persona/attribute/promote/1.1/payload.d.ts +506 -0
  127. package/dist/persona/attribute/promote/1.1/payload.d.ts.map +1 -0
  128. package/dist/persona/attribute/promote/1.1/payload.js +263 -0
  129. package/dist/persona/attribute/promote/1.1/payload.js.map +1 -0
  130. package/dist/persona/attribute/put/1.1/payload.d.ts +1190 -0
  131. package/dist/persona/attribute/put/1.1/payload.d.ts.map +1 -0
  132. package/dist/persona/attribute/put/1.1/payload.js +687 -0
  133. package/dist/persona/attribute/put/1.1/payload.js.map +1 -0
  134. package/dist/persona/contact/lists/put/1.1/payload.d.ts +629 -0
  135. package/dist/persona/contact/lists/put/1.1/payload.d.ts.map +1 -0
  136. package/dist/persona/contact/lists/put/1.1/payload.js +366 -0
  137. package/dist/persona/contact/lists/put/1.1/payload.js.map +1 -0
  138. package/dist/persona/contact/put/1.2/payload.d.ts +1470 -0
  139. package/dist/persona/contact/put/1.2/payload.d.ts.map +1 -0
  140. package/dist/persona/contact/put/1.2/payload.js +880 -0
  141. package/dist/persona/contact/put/1.2/payload.js.map +1 -0
  142. package/dist/persona/local/profile/put/1.1/payload.d.ts +587 -0
  143. package/dist/persona/local/profile/put/1.1/payload.d.ts.map +1 -0
  144. package/dist/persona/local/profile/put/1.1/payload.js +331 -0
  145. package/dist/persona/local/profile/put/1.1/payload.js.map +1 -0
  146. package/dist/persona/profile/compose/1.1/payload.d.ts +979 -0
  147. package/dist/persona/profile/compose/1.1/payload.d.ts.map +1 -0
  148. package/dist/persona/profile/compose/1.1/payload.js +536 -0
  149. package/dist/persona/profile/compose/1.1/payload.js.map +1 -0
  150. package/dist/persona/profile/put/1.1/payload.d.ts +1411 -0
  151. package/dist/persona/profile/put/1.1/payload.d.ts.map +1 -0
  152. package/dist/persona/profile/put/1.1/payload.js +847 -0
  153. package/dist/persona/profile/put/1.1/payload.js.map +1 -0
  154. package/dist/persona/world/put/1.1/payload.d.ts +490 -0
  155. package/dist/persona/world/put/1.1/payload.d.ts.map +1 -0
  156. package/dist/persona/world/put/1.1/payload.js +272 -0
  157. package/dist/persona/world/put/1.1/payload.js.map +1 -0
  158. package/dist/policy/list/0.3/payload.d.ts +516 -0
  159. package/dist/policy/list/0.3/payload.d.ts.map +1 -0
  160. package/dist/policy/list/0.3/payload.js +286 -0
  161. package/dist/policy/list/0.3/payload.js.map +1 -0
  162. package/dist/policy/upsert/0.3/payload.d.ts +540 -0
  163. package/dist/policy/upsert/0.3/payload.d.ts.map +1 -0
  164. package/dist/policy/upsert/0.3/payload.js +304 -0
  165. package/dist/policy/upsert/0.3/payload.js.map +1 -0
  166. package/dist/registry/record/put/0.2/payload.d.ts +443 -0
  167. package/dist/registry/record/put/0.2/payload.d.ts.map +1 -0
  168. package/dist/registry/record/put/0.2/payload.js +255 -0
  169. package/dist/registry/record/put/0.2/payload.js.map +1 -0
  170. package/dist/registry/record/query/0.2/payload.d.ts +486 -0
  171. package/dist/registry/record/query/0.2/payload.d.ts.map +1 -0
  172. package/dist/registry/record/query/0.2/payload.js +265 -0
  173. package/dist/registry/record/query/0.2/payload.js.map +1 -0
  174. package/dist/rooms/records/list/0.4/payload.d.ts +970 -0
  175. package/dist/rooms/records/list/0.4/payload.d.ts.map +1 -0
  176. package/dist/rooms/records/list/0.4/payload.js +526 -0
  177. package/dist/rooms/records/list/0.4/payload.js.map +1 -0
  178. package/dist/vault/credentials/query/0.1/payload.d.ts +12 -0
  179. package/dist/vault/credentials/query/0.1/payload.d.ts.map +1 -1
  180. package/dist/vault/credentials/query/0.1/payload.js +4 -0
  181. package/dist/vault/credentials/query/0.1/payload.js.map +1 -1
  182. package/dist/vault/list/0.4/payload.d.ts +1537 -0
  183. package/dist/vault/list/0.4/payload.d.ts.map +1 -0
  184. package/dist/vault/list/0.4/payload.js +841 -0
  185. package/dist/vault/list/0.4/payload.js.map +1 -0
  186. package/dist/vault/sync/0.3/payload.d.ts +1790 -0
  187. package/dist/vault/sync/0.3/payload.d.ts.map +1 -0
  188. package/dist/vault/sync/0.3/payload.js +1069 -0
  189. package/dist/vault/sync/0.3/payload.js.map +1 -0
  190. package/dist/vault/upsert/0.4/payload.d.ts +1755 -0
  191. package/dist/vault/upsert/0.4/payload.d.ts.map +1 -0
  192. package/dist/vault/upsert/0.4/payload.js +1013 -0
  193. package/dist/vault/upsert/0.4/payload.js.map +1 -0
  194. package/dist/vault/usage/0.3/payload.d.ts +586 -0
  195. package/dist/vault/usage/0.3/payload.d.ts.map +1 -0
  196. package/dist/vault/usage/0.3/payload.js +326 -0
  197. package/dist/vault/usage/0.3/payload.js.map +1 -0
  198. package/dist/vta/_shared/0.1/app-state-record.d.ts +1 -1
  199. package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -1
  200. package/dist/vta/_shared/0.1/webvh-records.d.ts +1 -1
  201. package/dist/vta/_shared/0.1/webvh-records.d.ts.map +1 -1
  202. package/dist/vta/_shared/0.7/app-state-record.d.ts +22 -0
  203. package/dist/vta/_shared/0.7/app-state-record.d.ts.map +1 -0
  204. package/dist/vta/_shared/0.7/app-state-record.js +6 -0
  205. package/dist/vta/_shared/0.7/app-state-record.js.map +1 -0
  206. package/dist/vta/_shared/0.7/did-template.d.ts +16 -0
  207. package/dist/vta/_shared/0.7/did-template.d.ts.map +1 -0
  208. package/dist/vta/_shared/0.7/did-template.js +6 -0
  209. package/dist/vta/_shared/0.7/did-template.js.map +1 -0
  210. package/dist/vta/_shared/0.7/webvh-records.d.ts +16 -0
  211. package/dist/vta/_shared/0.7/webvh-records.d.ts.map +1 -0
  212. package/dist/vta/_shared/0.7/webvh-records.js +6 -0
  213. package/dist/vta/_shared/0.7/webvh-records.js.map +1 -0
  214. package/dist/vta/app-state/list/1.1/payload.d.ts +705 -0
  215. package/dist/vta/app-state/list/1.1/payload.d.ts.map +1 -0
  216. package/dist/vta/app-state/list/1.1/payload.js +360 -0
  217. package/dist/vta/app-state/list/1.1/payload.js.map +1 -0
  218. package/dist/vta/app-state/put/1.1/payload.d.ts +549 -0
  219. package/dist/vta/app-state/put/1.1/payload.d.ts.map +1 -0
  220. package/dist/vta/app-state/put/1.1/payload.js +293 -0
  221. package/dist/vta/app-state/put/1.1/payload.js.map +1 -0
  222. package/dist/vta/app-state/put-many/1.0/payload.d.ts +1 -1
  223. package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -1
  224. package/dist/vta/app-state/put-many/1.1/payload.d.ts +807 -0
  225. package/dist/vta/app-state/put-many/1.1/payload.d.ts.map +1 -0
  226. package/dist/vta/app-state/put-many/1.1/payload.js +457 -0
  227. package/dist/vta/app-state/put-many/1.1/payload.js.map +1 -0
  228. package/dist/vta/credentials/list/0.2/payload.d.ts +610 -0
  229. package/dist/vta/credentials/list/0.2/payload.d.ts.map +1 -0
  230. package/dist/vta/credentials/list/0.2/payload.js +312 -0
  231. package/dist/vta/credentials/list/0.2/payload.js.map +1 -0
  232. package/dist/vta/did-templates/create/3.1/payload.d.ts +1100 -0
  233. package/dist/vta/did-templates/create/3.1/payload.d.ts.map +1 -0
  234. package/dist/vta/did-templates/create/3.1/payload.js +686 -0
  235. package/dist/vta/did-templates/create/3.1/payload.js.map +1 -0
  236. package/dist/vta/did-templates/get/3.1/payload.d.ts +750 -0
  237. package/dist/vta/did-templates/get/3.1/payload.d.ts.map +1 -0
  238. package/dist/vta/did-templates/get/3.1/payload.js +465 -0
  239. package/dist/vta/did-templates/get/3.1/payload.js.map +1 -0
  240. package/dist/vta/did-templates/list/3.1/payload.d.ts +807 -0
  241. package/dist/vta/did-templates/list/3.1/payload.d.ts.map +1 -0
  242. package/dist/vta/did-templates/list/3.1/payload.js +491 -0
  243. package/dist/vta/did-templates/list/3.1/payload.js.map +1 -0
  244. package/dist/vta/did-templates/update/3.1/payload.d.ts +1114 -0
  245. package/dist/vta/did-templates/update/3.1/payload.d.ts.map +1 -0
  246. package/dist/vta/did-templates/update/3.1/payload.js +692 -0
  247. package/dist/vta/did-templates/update/3.1/payload.js.map +1 -0
  248. package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts +1 -1
  249. package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts.map +1 -1
  250. package/dist/vta/webvh/agent-name/list/1.1/payload.d.ts +358 -0
  251. package/dist/vta/webvh/agent-name/list/1.1/payload.d.ts.map +1 -0
  252. package/dist/vta/webvh/agent-name/list/1.1/payload.js +203 -0
  253. package/dist/vta/webvh/agent-name/list/1.1/payload.js.map +1 -0
  254. package/dist/vta/witness/list/0.2/payload.d.ts +653 -0
  255. package/dist/vta/witness/list/0.2/payload.d.ts.map +1 -0
  256. package/dist/vta/witness/list/0.2/payload.js +341 -0
  257. package/dist/vta/witness/list/0.2/payload.js.map +1 -0
  258. package/dist/vtc/_shared/0.1/community-room.d.ts +1 -1
  259. package/dist/vtc/_shared/0.1/community-room.d.ts.map +1 -1
  260. package/dist/vtc/_shared/0.1/room-storage.d.ts +1 -1
  261. package/dist/vtc/_shared/0.1/room-storage.d.ts.map +1 -1
  262. package/dist/vtc/_shared/0.3/community-room.d.ts +16 -0
  263. package/dist/vtc/_shared/0.3/community-room.d.ts.map +1 -0
  264. package/dist/vtc/_shared/0.3/community-room.js +6 -0
  265. package/dist/vtc/_shared/0.3/community-room.js.map +1 -0
  266. package/dist/vtc/_shared/0.3/room-storage.d.ts +16 -0
  267. package/dist/vtc/_shared/0.3/room-storage.d.ts.map +1 -0
  268. package/dist/vtc/_shared/0.3/room-storage.js +6 -0
  269. package/dist/vtc/_shared/0.3/room-storage.js.map +1 -0
  270. package/dist/vtc/admin/events/subscribe/0.5/payload.d.ts +409 -0
  271. package/dist/vtc/admin/events/subscribe/0.5/payload.d.ts.map +1 -0
  272. package/dist/vtc/admin/events/subscribe/0.5/payload.js +238 -0
  273. package/dist/vtc/admin/events/subscribe/0.5/payload.js.map +1 -0
  274. package/dist/vtc/auth/admin-session/0.2/payload.d.ts +249 -0
  275. package/dist/vtc/auth/admin-session/0.2/payload.d.ts.map +1 -0
  276. package/dist/vtc/auth/admin-session/0.2/payload.js +144 -0
  277. package/dist/vtc/auth/admin-session/0.2/payload.js.map +1 -0
  278. package/dist/vtc/auth/recognise/0.3/payload.d.ts +325 -0
  279. package/dist/vtc/auth/recognise/0.3/payload.d.ts.map +1 -0
  280. package/dist/vtc/auth/recognise/0.3/payload.js +187 -0
  281. package/dist/vtc/auth/recognise/0.3/payload.js.map +1 -0
  282. package/dist/vtc/auth/recognise/challenge/0.2/payload.d.ts +233 -0
  283. package/dist/vtc/auth/recognise/challenge/0.2/payload.d.ts.map +1 -0
  284. package/dist/vtc/auth/recognise/challenge/0.2/payload.js +136 -0
  285. package/dist/vtc/auth/recognise/challenge/0.2/payload.js.map +1 -0
  286. package/dist/vtc/directory/entries/list/0.2/payload.d.ts +5525 -0
  287. package/dist/vtc/directory/entries/list/0.2/payload.d.ts.map +1 -0
  288. package/dist/vtc/directory/entries/list/0.2/payload.js +650 -0
  289. package/dist/vtc/directory/entries/list/0.2/payload.js.map +1 -0
  290. package/dist/vtc/directory/export/0.2/payload.d.ts +358 -0
  291. package/dist/vtc/directory/export/0.2/payload.d.ts.map +1 -0
  292. package/dist/vtc/directory/export/0.2/payload.js +189 -0
  293. package/dist/vtc/directory/export/0.2/payload.js.map +1 -0
  294. package/dist/vtc/directory/notes/list/0.2/payload.d.ts +540 -0
  295. package/dist/vtc/directory/notes/list/0.2/payload.d.ts.map +1 -0
  296. package/dist/vtc/directory/notes/list/0.2/payload.js +291 -0
  297. package/dist/vtc/directory/notes/list/0.2/payload.js.map +1 -0
  298. package/dist/vtc/elections/list/0.2/payload.d.ts +521 -0
  299. package/dist/vtc/elections/list/0.2/payload.d.ts.map +1 -0
  300. package/dist/vtc/elections/list/0.2/payload.js +290 -0
  301. package/dist/vtc/elections/list/0.2/payload.js.map +1 -0
  302. package/dist/vtc/endorsement-types/list/0.2/payload.d.ts +382 -0
  303. package/dist/vtc/endorsement-types/list/0.2/payload.d.ts.map +1 -0
  304. package/dist/vtc/endorsement-types/list/0.2/payload.js +210 -0
  305. package/dist/vtc/endorsement-types/list/0.2/payload.js.map +1 -0
  306. package/dist/vtc/endorsements/list/0.2/payload.d.ts +612 -0
  307. package/dist/vtc/endorsements/list/0.2/payload.d.ts.map +1 -0
  308. package/dist/vtc/endorsements/list/0.2/payload.js +347 -0
  309. package/dist/vtc/endorsements/list/0.2/payload.js.map +1 -0
  310. package/dist/vtc/groups/list/0.2/payload.d.ts +1139 -0
  311. package/dist/vtc/groups/list/0.2/payload.d.ts.map +1 -0
  312. package/dist/vtc/groups/list/0.2/payload.js +671 -0
  313. package/dist/vtc/groups/list/0.2/payload.js.map +1 -0
  314. package/dist/vtc/groups/members/list/0.2/payload.d.ts +1030 -0
  315. package/dist/vtc/groups/members/list/0.2/payload.d.ts.map +1 -0
  316. package/dist/vtc/groups/members/list/0.2/payload.js +603 -0
  317. package/dist/vtc/groups/members/list/0.2/payload.js.map +1 -0
  318. package/dist/vtc/groups/requests/list/0.2/payload.d.ts +1080 -0
  319. package/dist/vtc/groups/requests/list/0.2/payload.d.ts.map +1 -0
  320. package/dist/vtc/groups/requests/list/0.2/payload.js +620 -0
  321. package/dist/vtc/groups/requests/list/0.2/payload.js.map +1 -0
  322. package/dist/vtc/join-requests/list/0.2/payload.d.ts +653 -0
  323. package/dist/vtc/join-requests/list/0.2/payload.d.ts.map +1 -0
  324. package/dist/vtc/join-requests/list/0.2/payload.js +405 -0
  325. package/dist/vtc/join-requests/list/0.2/payload.js.map +1 -0
  326. package/dist/vtc/members/list/0.2/payload.d.ts +596 -0
  327. package/dist/vtc/members/list/0.2/payload.d.ts.map +1 -0
  328. package/dist/vtc/members/list/0.2/payload.js +381 -0
  329. package/dist/vtc/members/list/0.2/payload.js.map +1 -0
  330. package/dist/vtc/registry/records/list/0.2/payload.d.ts +576 -0
  331. package/dist/vtc/registry/records/list/0.2/payload.d.ts.map +1 -0
  332. package/dist/vtc/registry/records/list/0.2/payload.js +306 -0
  333. package/dist/vtc/registry/records/list/0.2/payload.js.map +1 -0
  334. package/dist/vtc/registry/sync-jobs/list/0.2/payload.d.ts +584 -0
  335. package/dist/vtc/registry/sync-jobs/list/0.2/payload.d.ts.map +1 -0
  336. package/dist/vtc/registry/sync-jobs/list/0.2/payload.js +337 -0
  337. package/dist/vtc/registry/sync-jobs/list/0.2/payload.js.map +1 -0
  338. package/dist/vtc/relationships/list/0.3/payload.d.ts +444 -0
  339. package/dist/vtc/relationships/list/0.3/payload.d.ts.map +1 -0
  340. package/dist/vtc/relationships/list/0.3/payload.js +254 -0
  341. package/dist/vtc/relationships/list/0.3/payload.js.map +1 -0
  342. package/dist/vtc/rooms/community/create/0.1/payload.d.ts +1 -1
  343. package/dist/vtc/rooms/community/create/0.1/payload.d.ts.map +1 -1
  344. package/dist/vtc/rooms/community/create/0.2/payload.d.ts +1 -1
  345. package/dist/vtc/rooms/community/create/0.2/payload.d.ts.map +1 -1
  346. package/dist/vtc/rooms/community/create/0.3/payload.d.ts +1 -1
  347. package/dist/vtc/rooms/community/create/0.3/payload.d.ts.map +1 -1
  348. package/dist/vtc/rooms/community/create/0.4/payload.d.ts +1013 -0
  349. package/dist/vtc/rooms/community/create/0.4/payload.d.ts.map +1 -0
  350. package/dist/vtc/rooms/community/create/0.4/payload.js +577 -0
  351. package/dist/vtc/rooms/community/create/0.4/payload.js.map +1 -0
  352. package/dist/vtc/rooms/community/get/0.1/payload.d.ts +1 -1
  353. package/dist/vtc/rooms/community/get/0.1/payload.d.ts.map +1 -1
  354. package/dist/vtc/rooms/community/get/0.2/payload.d.ts +1 -1
  355. package/dist/vtc/rooms/community/get/0.2/payload.d.ts.map +1 -1
  356. package/dist/vtc/rooms/community/get/0.3/payload.d.ts +887 -0
  357. package/dist/vtc/rooms/community/get/0.3/payload.d.ts.map +1 -0
  358. package/dist/vtc/rooms/community/get/0.3/payload.js +517 -0
  359. package/dist/vtc/rooms/community/get/0.3/payload.js.map +1 -0
  360. package/dist/vtc/rooms/community/list/0.1/payload.d.ts +1 -1
  361. package/dist/vtc/rooms/community/list/0.1/payload.d.ts.map +1 -1
  362. package/dist/vtc/rooms/community/list/0.2/payload.d.ts +1 -1
  363. package/dist/vtc/rooms/community/list/0.2/payload.d.ts.map +1 -1
  364. package/dist/vtc/rooms/community/list/0.3/payload.d.ts +960 -0
  365. package/dist/vtc/rooms/community/list/0.3/payload.d.ts.map +1 -0
  366. package/dist/vtc/rooms/community/list/0.3/payload.js +544 -0
  367. package/dist/vtc/rooms/community/list/0.3/payload.js.map +1 -0
  368. package/dist/vtc/rooms/community/update/0.1/payload.d.ts +1 -1
  369. package/dist/vtc/rooms/community/update/0.1/payload.d.ts.map +1 -1
  370. package/dist/vtc/rooms/community/update/0.2/payload.d.ts +1 -1
  371. package/dist/vtc/rooms/community/update/0.2/payload.d.ts.map +1 -1
  372. package/dist/vtc/rooms/community/update/0.3/payload.d.ts +1037 -0
  373. package/dist/vtc/rooms/community/update/0.3/payload.d.ts.map +1 -0
  374. package/dist/vtc/rooms/community/update/0.3/payload.js +593 -0
  375. package/dist/vtc/rooms/community/update/0.3/payload.js.map +1 -0
  376. package/dist/vtc/rooms/get/0.1/payload.d.ts +1 -1
  377. package/dist/vtc/rooms/get/0.1/payload.d.ts.map +1 -1
  378. package/dist/vtc/rooms/get/0.2/payload.d.ts +1 -1
  379. package/dist/vtc/rooms/get/0.2/payload.d.ts.map +1 -1
  380. package/dist/vtc/rooms/get/0.3/payload.d.ts +1966 -0
  381. package/dist/vtc/rooms/get/0.3/payload.d.ts.map +1 -0
  382. package/dist/vtc/rooms/get/0.3/payload.js +976 -0
  383. package/dist/vtc/rooms/get/0.3/payload.js.map +1 -0
  384. package/dist/vtc/rooms/list/0.2/payload.d.ts +653 -0
  385. package/dist/vtc/rooms/list/0.2/payload.d.ts.map +1 -0
  386. package/dist/vtc/rooms/list/0.2/payload.js +360 -0
  387. package/dist/vtc/rooms/list/0.2/payload.js.map +1 -0
  388. package/dist/vtc/website/files/list/0.2/payload.d.ts +371 -0
  389. package/dist/vtc/website/files/list/0.2/payload.d.ts.map +1 -0
  390. package/dist/vtc/website/files/list/0.2/payload.js +198 -0
  391. package/dist/vtc/website/files/list/0.2/payload.js.map +1 -0
  392. package/package.json +1 -1
  393. package/src/_runtime/consume.ts +26 -2
  394. package/src/_runtime/document.ts +17 -1
  395. package/src/_runtime/freshness.ts +5 -5
  396. package/src/_shared/components.ts +274 -50
  397. package/src/acl/list/0.3/payload.ts +1111 -0
  398. package/src/audit/list/0.2/payload.ts +406 -0
  399. package/src/auth/oob/claim/0.2/payload.ts +306 -0
  400. package/src/auth/oob/grant/0.3/payload.ts +186 -0
  401. package/src/auth/oob/prove/0.3/payload.ts +523 -0
  402. package/src/auth/oob/redeem/0.2/payload.ts +248 -0
  403. package/src/auth/oob/request/0.2/payload.ts +230 -0
  404. package/src/auth/oob/respond/0.3/payload.ts +178 -0
  405. package/src/consent/list/1.1/payload.ts +407 -0
  406. package/src/device/list/0.3/payload.ts +846 -0
  407. package/src/did-management/did/list/0.2/payload.ts +327 -0
  408. package/src/git-ns/account/list/0.2/payload.ts +386 -0
  409. package/src/git-ns/activity/list/0.2/payload.ts +438 -0
  410. package/src/git-ns/bridge/job/list/0.3/payload.ts +511 -0
  411. package/src/git-ns/projection/show/0.2/payload.ts +473 -0
  412. package/src/git-ns/right/issued-by-departed/0.2/payload.ts +544 -0
  413. package/src/git-ns/right/list/0.2/payload.ts +487 -0
  414. package/src/index.ts +80 -0
  415. package/src/keys/list/0.2/payload.ts +412 -0
  416. package/src/messaging/_shared/0.1/messaging.ts +1 -1
  417. package/src/messaging/_shared/0.2/messaging.ts +17 -0
  418. package/src/messaging/account/add/0.1/payload.ts +1 -1
  419. package/src/messaging/account/add/0.2/payload.ts +664 -0
  420. package/src/messaging/account/change-queue-limits/0.1/payload.ts +1 -1
  421. package/src/messaging/account/change-type/0.1/payload.ts +1 -1
  422. package/src/messaging/account/get/0.1/payload.ts +1 -1
  423. package/src/messaging/account/get/0.2/payload.ts +655 -0
  424. package/src/messaging/account/list/0.1/payload.ts +1 -1
  425. package/src/messaging/account/list/0.2/payload.ts +691 -0
  426. package/src/messaging/account/update/0.1/payload.ts +1 -1
  427. package/src/messaging/account/update/0.2/payload.ts +663 -0
  428. package/src/persona/attribute/promote/1.1/payload.ts +344 -0
  429. package/src/persona/attribute/put/1.1/payload.ts +792 -0
  430. package/src/persona/contact/lists/put/1.1/payload.ts +429 -0
  431. package/src/persona/contact/put/1.2/payload.ts +988 -0
  432. package/src/persona/local/profile/put/1.1/payload.ts +399 -0
  433. package/src/persona/profile/compose/1.1/payload.ts +659 -0
  434. package/src/persona/profile/put/1.1/payload.ts +917 -0
  435. package/src/persona/world/put/1.1/payload.ts +339 -0
  436. package/src/policy/list/0.3/payload.ts +325 -0
  437. package/src/policy/upsert/0.3/payload.ts +341 -0
  438. package/src/registry/record/put/0.2/payload.ts +299 -0
  439. package/src/registry/record/query/0.2/payload.ts +324 -0
  440. package/src/rooms/records/list/0.4/payload.ts +601 -0
  441. package/src/vault/credentials/query/0.1/payload.ts +8 -0
  442. package/src/vault/list/0.4/payload.ts +945 -0
  443. package/src/vault/sync/0.3/payload.ts +1120 -0
  444. package/src/vault/upsert/0.4/payload.ts +1077 -0
  445. package/src/vault/usage/0.3/payload.ts +416 -0
  446. package/src/vta/_shared/0.1/app-state-record.ts +1 -1
  447. package/src/vta/_shared/0.1/webvh-records.ts +1 -1
  448. package/src/vta/_shared/0.7/app-state-record.ts +23 -0
  449. package/src/vta/_shared/0.7/did-template.ts +17 -0
  450. package/src/vta/_shared/0.7/webvh-records.ts +17 -0
  451. package/src/vta/app-state/list/1.1/payload.ts +444 -0
  452. package/src/vta/app-state/put/1.1/payload.ts +374 -0
  453. package/src/vta/app-state/put-many/1.0/payload.ts +1 -1
  454. package/src/vta/app-state/put-many/1.1/payload.ts +538 -0
  455. package/src/vta/credentials/list/0.2/payload.ts +406 -0
  456. package/src/vta/did-templates/create/3.1/payload.ts +721 -0
  457. package/src/vta/did-templates/get/3.1/payload.ts +500 -0
  458. package/src/vta/did-templates/list/3.1/payload.ts +535 -0
  459. package/src/vta/did-templates/update/3.1/payload.ts +731 -0
  460. package/src/vta/webvh/agent-name/list/1.0/payload.ts +1 -1
  461. package/src/vta/webvh/agent-name/list/1.1/payload.ts +242 -0
  462. package/src/vta/witness/list/0.2/payload.ts +427 -0
  463. package/src/vtc/_shared/0.1/community-room.ts +1 -1
  464. package/src/vtc/_shared/0.1/room-storage.ts +1 -1
  465. package/src/vtc/_shared/0.3/community-room.ts +17 -0
  466. package/src/vtc/_shared/0.3/room-storage.ts +17 -0
  467. package/src/vtc/admin/events/subscribe/0.5/payload.ts +318 -0
  468. package/src/vtc/auth/admin-session/0.2/payload.ts +180 -0
  469. package/src/vtc/auth/recognise/0.3/payload.ts +233 -0
  470. package/src/vtc/auth/recognise/challenge/0.2/payload.ts +168 -0
  471. package/src/vtc/directory/entries/list/0.2/payload.ts +5670 -0
  472. package/src/vtc/directory/export/0.2/payload.ts +244 -0
  473. package/src/vtc/directory/notes/list/0.2/payload.ts +340 -0
  474. package/src/vtc/elections/list/0.2/payload.ts +371 -0
  475. package/src/vtc/endorsement-types/list/0.2/payload.ts +247 -0
  476. package/src/vtc/endorsements/list/0.2/payload.ts +400 -0
  477. package/src/vtc/groups/list/0.2/payload.ts +731 -0
  478. package/src/vtc/groups/members/list/0.2/payload.ts +650 -0
  479. package/src/vtc/groups/requests/list/0.2/payload.ts +677 -0
  480. package/src/vtc/join-requests/list/0.2/payload.ts +447 -0
  481. package/src/vtc/members/list/0.2/payload.ts +426 -0
  482. package/src/vtc/registry/records/list/0.2/payload.ts +401 -0
  483. package/src/vtc/registry/sync-jobs/list/0.2/payload.ts +427 -0
  484. package/src/vtc/relationships/list/0.3/payload.ts +309 -0
  485. package/src/vtc/rooms/community/create/0.1/payload.ts +1 -1
  486. package/src/vtc/rooms/community/create/0.2/payload.ts +1 -1
  487. package/src/vtc/rooms/community/create/0.3/payload.ts +1 -1
  488. package/src/vtc/rooms/community/create/0.4/payload.ts +635 -0
  489. package/src/vtc/rooms/community/get/0.1/payload.ts +1 -1
  490. package/src/vtc/rooms/community/get/0.2/payload.ts +1 -1
  491. package/src/vtc/rooms/community/get/0.3/payload.ts +549 -0
  492. package/src/vtc/rooms/community/list/0.1/payload.ts +1 -1
  493. package/src/vtc/rooms/community/list/0.2/payload.ts +1 -1
  494. package/src/vtc/rooms/community/list/0.3/payload.ts +591 -0
  495. package/src/vtc/rooms/community/update/0.1/payload.ts +1 -1
  496. package/src/vtc/rooms/community/update/0.2/payload.ts +1 -1
  497. package/src/vtc/rooms/community/update/0.3/payload.ts +653 -0
  498. package/src/vtc/rooms/get/0.1/payload.ts +1 -1
  499. package/src/vtc/rooms/get/0.2/payload.ts +1 -1
  500. package/src/vtc/rooms/get/0.3/payload.ts +1372 -0
  501. package/src/vtc/rooms/list/0.2/payload.ts +449 -0
  502. package/src/vtc/website/files/list/0.2/payload.ts +252 -0
@@ -0,0 +1,1190 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/persona/attribute/put/1.1/payload.schema.json
4
+ */
5
+ import type { ClaimType, ExpectedVersion_PersonaV0_1 as ExpectedVersion, Ext, ProofRung, Provenance, ReleaseRequirement, Sensitivity, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
6
+ /**
7
+ * Create or replace one attribute in the holder's pool. Omit `attributeId` to create; supply it to replace. `expectedVersion` makes the write conditional.
8
+ */
9
+ export interface PersonaAttributePutPayload {
10
+ /**
11
+ * Omit to create — the maintainer assigns one and returns it. Supply to replace an existing attribute, or to make a create idempotent under retry; a supplied id that already exists is a replacement, and a producer that meant to create MUST pair it with `expectedVersion: 0`.
12
+ */
13
+ attributeId?: Ulid;
14
+ type: ClaimType;
15
+ valueType: ValueType;
16
+ /**
17
+ * The fact itself. MUST agree with `valueType`; a maintainer MUST refuse a document where it does not. For a `credentialBacked` provenance this is the initial display cache — the maintainer re-derives it from the credential and MAY overwrite what was supplied.
18
+ */
19
+ value: {
20
+ [k: string]: unknown | undefined;
21
+ };
22
+ /**
23
+ * The holder's own words, for their own picker. Never disclosed to a verifier.
24
+ */
25
+ label?: string;
26
+ provenance: Provenance;
27
+ /**
28
+ * Vault identifiers of credentials in which a third party endorses this value. Inventory, not evidence — see the `endorsements` member of the shared Attribute. Replaced whole by each put; omit or send empty for none.
29
+ *
30
+ * @maxItems 64
31
+ */
32
+ endorsements?: string[];
33
+ /**
34
+ * How carefully this value is shown to the holder. OPTIONAL, and its absence is meaningful: it records that the holder made no explicit decision, so a consumer resolves it from the claim-type registry. Sending the resolved value back would freeze it — a later tightening of the registry would then protect new attributes and leave this one exposed.
35
+ */
36
+ sensitivity?: Sensitivity;
37
+ /**
38
+ * What it takes to disclose this value. OPTIONAL, with the same meaning for absence as `sensitivity`.
39
+ */
40
+ release?: ReleaseRequirement;
41
+ /**
42
+ * Optional precondition. Omit for last-writer-wins. Supply the version a prior read returned to make the write conditional; supply 0 to create only.
43
+ */
44
+ expectedVersion?: ExpectedVersion;
45
+ /**
46
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
47
+ */
48
+ ext?: Ext;
49
+ }
50
+ /**
51
+ * Success response to persona/attribute/put. Type https://trusttasks.org/spec/persona/attribute/put/1.1#response. A failed precondition is not a success: it is a trust-task-error carrying persona/attribute/put:versionConflict, whose details carry the maintainer's current version and value.
52
+ */
53
+ export interface PersonaAttributePutResponsePayload {
54
+ attributeId: Ulid;
55
+ version: Version;
56
+ /**
57
+ * True when this write created the attribute, false when it replaced one. A producer that omitted `attributeId` can still be told which happened, because a retried create with a supplied id is a replacement.
58
+ */
59
+ wasCreated: boolean;
60
+ /**
61
+ * Advisory result of the correlation check the maintainer runs over the new value (see persona/correlation/analyze). Returned on the write so a producer's builder can warn at the moment of composition rather than requiring a second round trip. Advisory only: the write has already applied, and a maintainer MUST NOT refuse a write on correlation grounds — the holder decides.
62
+ */
63
+ correlation?: {
64
+ severity: "none" | "low" | "high";
65
+ /**
66
+ * How many other profiles already present this exact value. A count, not identifiers — the identifiers are available from the analyze task, which is where a producer should go to render remedies.
67
+ */
68
+ sharedWithProfileCount?: number;
69
+ };
70
+ /**
71
+ * Every place this write changed what a persona presents: each binding whose projection was re-pushed because a face wearing it shows this attribute live. An edit propagates by design, and a holder told only that it saved cannot tell whether it refreshed one face or nine. Holder-authorized, so identifiers are returned. Absent when nothing was bound to a face showing it.
72
+ *
73
+ * @maxItems 256
74
+ */
75
+ refreshed?: {
76
+ profileId: Ulid;
77
+ contextId: string;
78
+ personaDid: string;
79
+ }[];
80
+ /**
81
+ * Faces that pin this attribute to an earlier version and so did NOT follow the edit — the counterparties that must keep seeing the value they verified. Named so the holder can decide, per face, whether that is still what they want. Absent when no face pins it.
82
+ *
83
+ * @maxItems 256
84
+ */
85
+ heldByPin?: {
86
+ profileId: Ulid;
87
+ pinVersion: Version;
88
+ }[];
89
+ createdAt?: string;
90
+ updatedAt: string;
91
+ ext?: Ext;
92
+ }
93
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
94
+ export type { ClaimType, ExpectedVersion, Ext, ProofRung, Provenance, ReleaseRequirement, Sensitivity, Ulid, ValueType, Version };
95
+ /** Trust Task type URI. */
96
+ export declare const TYPE_URI: "https://trusttasks.org/spec/persona/attribute/put/1.1";
97
+ /** Stable alias for this specification's request payload shape. */
98
+ export type Payload = PersonaAttributePutPayload;
99
+ /** Trust Task response type URI (request type URI + "#response"). */
100
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/persona/attribute/put/1.1#response";
101
+ /** Stable alias for this specification's success-response payload shape. */
102
+ export type Response = PersonaAttributePutResponsePayload;
103
+ /**
104
+ * This specification's payload schema, as a value.
105
+ *
106
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
107
+ * rather than only as a `.json` file because TypeScript types are erased
108
+ * at runtime: without a schema a consumer has nothing to validate, and
109
+ * every REQUIRED payload member is optional in practice. Cross-file
110
+ * `$ref`s are already inlined, so it needs no resolver.
111
+ */
112
+ export declare const PAYLOAD_SCHEMA: {
113
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
114
+ readonly $id: "https://trusttasks.org/spec/persona/attribute/put/1.1";
115
+ readonly title: "Persona Attribute Put — payload";
116
+ readonly description: "Create or replace one attribute in the holder's pool. Omit `attributeId` to create; supply it to replace. `expectedVersion` makes the write conditional.";
117
+ readonly type: "object";
118
+ readonly additionalProperties: false;
119
+ readonly required: readonly ["type", "valueType", "value", "provenance"];
120
+ readonly properties: {
121
+ readonly attributeId: {
122
+ readonly $ref: "#/$defs/Ulid";
123
+ readonly description: "Omit to create — the maintainer assigns one and returns it. Supply to replace an existing attribute, or to make a create idempotent under retry; a supplied id that already exists is a replacement, and a producer that meant to create MUST pair it with `expectedVersion: 0`.";
124
+ };
125
+ readonly type: {
126
+ readonly $ref: "#/$defs/ClaimType";
127
+ };
128
+ readonly valueType: {
129
+ readonly $ref: "#/$defs/ValueType";
130
+ };
131
+ readonly value: {
132
+ readonly description: "The fact itself. MUST agree with `valueType`; a maintainer MUST refuse a document where it does not. For a `credentialBacked` provenance this is the initial display cache — the maintainer re-derives it from the credential and MAY overwrite what was supplied.";
133
+ };
134
+ readonly label: {
135
+ readonly type: "string";
136
+ readonly maxLength: 128;
137
+ readonly description: "The holder's own words, for their own picker. Never disclosed to a verifier.";
138
+ };
139
+ readonly provenance: {
140
+ readonly $ref: "#/$defs/Provenance";
141
+ };
142
+ readonly endorsements: {
143
+ readonly type: "array";
144
+ readonly maxItems: 64;
145
+ readonly uniqueItems: true;
146
+ readonly items: {
147
+ readonly type: "string";
148
+ readonly minLength: 1;
149
+ };
150
+ readonly description: "Vault identifiers of credentials in which a third party endorses this value. Inventory, not evidence — see the `endorsements` member of the shared Attribute. Replaced whole by each put; omit or send empty for none.";
151
+ };
152
+ readonly sensitivity: {
153
+ readonly $ref: "#/$defs/Sensitivity";
154
+ readonly description: "How carefully this value is shown to the holder. OPTIONAL, and its absence is meaningful: it records that the holder made no explicit decision, so a consumer resolves it from the claim-type registry. Sending the resolved value back would freeze it — a later tightening of the registry would then protect new attributes and leave this one exposed.";
155
+ };
156
+ readonly release: {
157
+ readonly $ref: "#/$defs/ReleaseRequirement";
158
+ readonly description: "What it takes to disclose this value. OPTIONAL, with the same meaning for absence as `sensitivity`.";
159
+ };
160
+ readonly expectedVersion: {
161
+ readonly $ref: "#/$defs/ExpectedVersion";
162
+ readonly description: "Optional precondition. Omit for last-writer-wins. Supply the version a prior read returned to make the write conditional; supply 0 to create only.";
163
+ };
164
+ readonly ext: {
165
+ readonly $ref: "#/$defs/Ext";
166
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
167
+ };
168
+ };
169
+ readonly $defs: {
170
+ readonly Response: {
171
+ readonly $anchor: "response";
172
+ readonly title: "Persona Attribute Put — response payload";
173
+ readonly description: "Success response to persona/attribute/put. Type https://trusttasks.org/spec/persona/attribute/put/1.1#response. A failed precondition is not a success: it is a trust-task-error carrying persona/attribute/put:versionConflict, whose details carry the maintainer's current version and value.";
174
+ readonly type: "object";
175
+ readonly additionalProperties: false;
176
+ readonly required: readonly ["attributeId", "version", "wasCreated", "updatedAt"];
177
+ readonly properties: {
178
+ readonly attributeId: {
179
+ readonly $ref: "#/$defs/Ulid";
180
+ };
181
+ readonly version: {
182
+ readonly $ref: "#/$defs/Version";
183
+ };
184
+ readonly wasCreated: {
185
+ readonly type: "boolean";
186
+ readonly description: "True when this write created the attribute, false when it replaced one. A producer that omitted `attributeId` can still be told which happened, because a retried create with a supplied id is a replacement.";
187
+ };
188
+ readonly correlation: {
189
+ readonly type: "object";
190
+ readonly additionalProperties: false;
191
+ readonly required: readonly ["severity"];
192
+ readonly description: "Advisory result of the correlation check the maintainer runs over the new value (see persona/correlation/analyze). Returned on the write so a producer's builder can warn at the moment of composition rather than requiring a second round trip. Advisory only: the write has already applied, and a maintainer MUST NOT refuse a write on correlation grounds — the holder decides.";
193
+ readonly properties: {
194
+ readonly severity: {
195
+ readonly type: "string";
196
+ readonly enum: readonly ["none", "low", "high"];
197
+ };
198
+ readonly sharedWithProfileCount: {
199
+ readonly type: "integer";
200
+ readonly minimum: 0;
201
+ readonly description: "How many other profiles already present this exact value. A count, not identifiers — the identifiers are available from the analyze task, which is where a producer should go to render remedies.";
202
+ };
203
+ };
204
+ };
205
+ readonly refreshed: {
206
+ readonly type: "array";
207
+ readonly maxItems: 256;
208
+ readonly description: "Every place this write changed what a persona presents: each binding whose projection was re-pushed because a face wearing it shows this attribute live. An edit propagates by design, and a holder told only that it saved cannot tell whether it refreshed one face or nine. Holder-authorized, so identifiers are returned. Absent when nothing was bound to a face showing it.";
209
+ readonly items: {
210
+ readonly type: "object";
211
+ readonly additionalProperties: false;
212
+ readonly required: readonly ["profileId", "contextId", "personaDid"];
213
+ readonly properties: {
214
+ readonly profileId: {
215
+ readonly $ref: "#/$defs/Ulid";
216
+ };
217
+ readonly contextId: {
218
+ readonly type: "string";
219
+ readonly minLength: 1;
220
+ };
221
+ readonly personaDid: {
222
+ readonly type: "string";
223
+ readonly minLength: 1;
224
+ };
225
+ };
226
+ };
227
+ };
228
+ readonly heldByPin: {
229
+ readonly type: "array";
230
+ readonly maxItems: 256;
231
+ readonly description: "Faces that pin this attribute to an earlier version and so did NOT follow the edit — the counterparties that must keep seeing the value they verified. Named so the holder can decide, per face, whether that is still what they want. Absent when no face pins it.";
232
+ readonly items: {
233
+ readonly type: "object";
234
+ readonly additionalProperties: false;
235
+ readonly required: readonly ["profileId", "pinVersion"];
236
+ readonly properties: {
237
+ readonly profileId: {
238
+ readonly $ref: "#/$defs/Ulid";
239
+ };
240
+ readonly pinVersion: {
241
+ readonly $ref: "#/$defs/Version";
242
+ };
243
+ };
244
+ };
245
+ };
246
+ readonly createdAt: {
247
+ readonly type: "string";
248
+ readonly format: "date-time";
249
+ };
250
+ readonly updatedAt: {
251
+ readonly type: "string";
252
+ readonly format: "date-time";
253
+ };
254
+ readonly ext: {
255
+ readonly $ref: "#/$defs/Ext";
256
+ };
257
+ };
258
+ };
259
+ readonly Ext: {
260
+ readonly title: "Ext";
261
+ 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.";
262
+ readonly type: "object";
263
+ readonly minProperties: 1;
264
+ readonly additionalProperties: true;
265
+ readonly propertyNames: {
266
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
267
+ };
268
+ };
269
+ readonly Version: {
270
+ readonly title: "Version";
271
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
272
+ readonly type: "integer";
273
+ readonly minimum: 1;
274
+ };
275
+ readonly Ulid: {
276
+ readonly title: "Ulid";
277
+ readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
278
+ readonly type: "string";
279
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
280
+ };
281
+ readonly ExpectedVersion: {
282
+ readonly title: "ExpectedVersion";
283
+ readonly description: "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.";
284
+ readonly type: "integer";
285
+ readonly minimum: 0;
286
+ };
287
+ readonly ReleaseRequirement: {
288
+ readonly title: "ReleaseRequirement";
289
+ readonly description: "What it takes to let a value LEAVE. Distinct from `Sensitivity`, which governs showing it to the holder.\n\n`consent` is the ordinary gate: `persona/disclosure/preview` renders what would leave and `persona/disclosure/present` releases it, so a human sees it once.\n\n`stepUp` additionally requires a fresh authentication bound to THAT preview — not to the session. Without the binding, \"each time\" degrades into \"once per login\", which is the failure the requirement exists to prevent; the single-use `previewId` the preview already mints is what an implementation binds to. A maintainer MUST refuse `persona/disclosure/present` for a `stepUp` attribute when no such approval accompanies it.\n\nAbsent means *not decided by the holder* and resolves from the claim-type registry, which defaults `payment.*` and `gov.*` to `stepUp`.";
290
+ readonly type: "string";
291
+ readonly enum: readonly ["consent", "stepUp"];
292
+ };
293
+ readonly Sensitivity: {
294
+ readonly title: "Sensitivity";
295
+ readonly description: "How carefully a value is shown TO ITS OWN HOLDER. `high` means a consumer masks it by default, reveals it one attribute at a time on a deliberate act, and — the half that is not cosmetic — omits it from a listing that did not ask for sensitive values.\n\nAbsent means *not decided by the holder*, not `normal`: a consumer resolves it from the claim-type registry (see CLAIM-TYPES.md §4), which is why this member is optional and why an unregistered token resolves conservatively rather than permissively.\n\nDistinct from how linkable the value is. A payment card is highly sensitive and barely linkable — every card number is unique, so knowing one tells a second verifier nothing about the first. Reading either as a proxy for the other produces a consumer that hides the wrong things.";
296
+ readonly type: "string";
297
+ readonly enum: readonly ["normal", "high"];
298
+ };
299
+ readonly Provenance: {
300
+ readonly title: "Provenance";
301
+ readonly description: "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.";
302
+ readonly type: "object";
303
+ readonly required: readonly ["kind"];
304
+ readonly oneOf: readonly [{
305
+ readonly additionalProperties: false;
306
+ readonly required: readonly ["kind"];
307
+ readonly properties: {
308
+ readonly kind: {
309
+ readonly const: "selfAsserted";
310
+ };
311
+ };
312
+ }, {
313
+ readonly additionalProperties: false;
314
+ readonly required: readonly ["kind", "credentialId", "claimPath"];
315
+ readonly properties: {
316
+ readonly kind: {
317
+ readonly const: "credentialBacked";
318
+ };
319
+ readonly credentialId: {
320
+ readonly type: "string";
321
+ readonly minLength: 1;
322
+ readonly description: "Vault identifier of the backing credential.";
323
+ };
324
+ readonly claimPath: {
325
+ readonly type: "string";
326
+ readonly pattern: "^(/[^/~]*(~[01][^/~]*)*)*$";
327
+ readonly description: "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`.";
328
+ };
329
+ readonly issuerDid: {
330
+ readonly type: "string";
331
+ readonly minLength: 1;
332
+ readonly description: "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member.";
333
+ };
334
+ readonly proof: {
335
+ readonly $ref: "#/$defs/ProofRung";
336
+ readonly description: "The disclosure rung this claim was, or will be, presented at.";
337
+ };
338
+ };
339
+ }, {
340
+ readonly additionalProperties: false;
341
+ readonly required: readonly ["kind", "generator"];
342
+ readonly properties: {
343
+ readonly kind: {
344
+ readonly const: "generated";
345
+ };
346
+ readonly generator: {
347
+ readonly type: "string";
348
+ readonly minLength: 1;
349
+ readonly maxLength: 64;
350
+ readonly description: "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined.";
351
+ };
352
+ readonly perVerifier: {
353
+ readonly type: "boolean";
354
+ readonly default: true;
355
+ readonly description: "When true (the default and the only useful setting), a distinct value is minted for each verifier.";
356
+ };
357
+ };
358
+ }, {
359
+ readonly additionalProperties: false;
360
+ readonly required: readonly ["kind", "source", "derivedAt"];
361
+ readonly properties: {
362
+ readonly kind: {
363
+ readonly const: "derived";
364
+ };
365
+ readonly source: {
366
+ readonly type: "string";
367
+ readonly minLength: 1;
368
+ readonly maxLength: 64;
369
+ readonly pattern: "^[a-z][A-Za-z0-9.-]*$";
370
+ readonly description: "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share.";
371
+ };
372
+ readonly derivedAt: {
373
+ readonly type: "string";
374
+ readonly format: "date-time";
375
+ readonly description: "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it.";
376
+ };
377
+ };
378
+ }];
379
+ };
380
+ readonly ProofRung: {
381
+ readonly title: "ProofRung";
382
+ readonly description: "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.";
383
+ readonly type: "string";
384
+ readonly enum: readonly ["predicate", "derived", "selectiveDisclosure", "whole"];
385
+ };
386
+ readonly ValueType: {
387
+ readonly title: "ValueType";
388
+ readonly description: "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.";
389
+ readonly type: "string";
390
+ readonly enum: readonly ["string", "number", "boolean", "date", "object"];
391
+ };
392
+ readonly ClaimType: {
393
+ readonly title: "ClaimType";
394
+ readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
395
+ readonly type: "string";
396
+ readonly minLength: 1;
397
+ readonly maxLength: 128;
398
+ readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
399
+ };
400
+ };
401
+ };
402
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
403
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
404
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
405
+ readonly $ref: "#/$defs/Response";
406
+ readonly $defs: {
407
+ readonly Response: {
408
+ readonly $anchor: "response";
409
+ readonly title: "Persona Attribute Put — response payload";
410
+ readonly description: "Success response to persona/attribute/put. Type https://trusttasks.org/spec/persona/attribute/put/1.1#response. A failed precondition is not a success: it is a trust-task-error carrying persona/attribute/put:versionConflict, whose details carry the maintainer's current version and value.";
411
+ readonly type: "object";
412
+ readonly additionalProperties: false;
413
+ readonly required: readonly ["attributeId", "version", "wasCreated", "updatedAt"];
414
+ readonly properties: {
415
+ readonly attributeId: {
416
+ readonly $ref: "#/$defs/Ulid";
417
+ };
418
+ readonly version: {
419
+ readonly $ref: "#/$defs/Version";
420
+ };
421
+ readonly wasCreated: {
422
+ readonly type: "boolean";
423
+ readonly description: "True when this write created the attribute, false when it replaced one. A producer that omitted `attributeId` can still be told which happened, because a retried create with a supplied id is a replacement.";
424
+ };
425
+ readonly correlation: {
426
+ readonly type: "object";
427
+ readonly additionalProperties: false;
428
+ readonly required: readonly ["severity"];
429
+ readonly description: "Advisory result of the correlation check the maintainer runs over the new value (see persona/correlation/analyze). Returned on the write so a producer's builder can warn at the moment of composition rather than requiring a second round trip. Advisory only: the write has already applied, and a maintainer MUST NOT refuse a write on correlation grounds — the holder decides.";
430
+ readonly properties: {
431
+ readonly severity: {
432
+ readonly type: "string";
433
+ readonly enum: readonly ["none", "low", "high"];
434
+ };
435
+ readonly sharedWithProfileCount: {
436
+ readonly type: "integer";
437
+ readonly minimum: 0;
438
+ readonly description: "How many other profiles already present this exact value. A count, not identifiers — the identifiers are available from the analyze task, which is where a producer should go to render remedies.";
439
+ };
440
+ };
441
+ };
442
+ readonly refreshed: {
443
+ readonly type: "array";
444
+ readonly maxItems: 256;
445
+ readonly description: "Every place this write changed what a persona presents: each binding whose projection was re-pushed because a face wearing it shows this attribute live. An edit propagates by design, and a holder told only that it saved cannot tell whether it refreshed one face or nine. Holder-authorized, so identifiers are returned. Absent when nothing was bound to a face showing it.";
446
+ readonly items: {
447
+ readonly type: "object";
448
+ readonly additionalProperties: false;
449
+ readonly required: readonly ["profileId", "contextId", "personaDid"];
450
+ readonly properties: {
451
+ readonly profileId: {
452
+ readonly $ref: "#/$defs/Ulid";
453
+ };
454
+ readonly contextId: {
455
+ readonly type: "string";
456
+ readonly minLength: 1;
457
+ };
458
+ readonly personaDid: {
459
+ readonly type: "string";
460
+ readonly minLength: 1;
461
+ };
462
+ };
463
+ };
464
+ };
465
+ readonly heldByPin: {
466
+ readonly type: "array";
467
+ readonly maxItems: 256;
468
+ readonly description: "Faces that pin this attribute to an earlier version and so did NOT follow the edit — the counterparties that must keep seeing the value they verified. Named so the holder can decide, per face, whether that is still what they want. Absent when no face pins it.";
469
+ readonly items: {
470
+ readonly type: "object";
471
+ readonly additionalProperties: false;
472
+ readonly required: readonly ["profileId", "pinVersion"];
473
+ readonly properties: {
474
+ readonly profileId: {
475
+ readonly $ref: "#/$defs/Ulid";
476
+ };
477
+ readonly pinVersion: {
478
+ readonly $ref: "#/$defs/Version";
479
+ };
480
+ };
481
+ };
482
+ };
483
+ readonly createdAt: {
484
+ readonly type: "string";
485
+ readonly format: "date-time";
486
+ };
487
+ readonly updatedAt: {
488
+ readonly type: "string";
489
+ readonly format: "date-time";
490
+ };
491
+ readonly ext: {
492
+ readonly $ref: "#/$defs/Ext";
493
+ };
494
+ };
495
+ };
496
+ readonly Ext: {
497
+ readonly title: "Ext";
498
+ 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.";
499
+ readonly type: "object";
500
+ readonly minProperties: 1;
501
+ readonly additionalProperties: true;
502
+ readonly propertyNames: {
503
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
504
+ };
505
+ };
506
+ readonly Version: {
507
+ readonly title: "Version";
508
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
509
+ readonly type: "integer";
510
+ readonly minimum: 1;
511
+ };
512
+ readonly Ulid: {
513
+ readonly title: "Ulid";
514
+ readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
515
+ readonly type: "string";
516
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
517
+ };
518
+ readonly ExpectedVersion: {
519
+ readonly title: "ExpectedVersion";
520
+ readonly description: "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.";
521
+ readonly type: "integer";
522
+ readonly minimum: 0;
523
+ };
524
+ readonly ReleaseRequirement: {
525
+ readonly title: "ReleaseRequirement";
526
+ readonly description: "What it takes to let a value LEAVE. Distinct from `Sensitivity`, which governs showing it to the holder.\n\n`consent` is the ordinary gate: `persona/disclosure/preview` renders what would leave and `persona/disclosure/present` releases it, so a human sees it once.\n\n`stepUp` additionally requires a fresh authentication bound to THAT preview — not to the session. Without the binding, \"each time\" degrades into \"once per login\", which is the failure the requirement exists to prevent; the single-use `previewId` the preview already mints is what an implementation binds to. A maintainer MUST refuse `persona/disclosure/present` for a `stepUp` attribute when no such approval accompanies it.\n\nAbsent means *not decided by the holder* and resolves from the claim-type registry, which defaults `payment.*` and `gov.*` to `stepUp`.";
527
+ readonly type: "string";
528
+ readonly enum: readonly ["consent", "stepUp"];
529
+ };
530
+ readonly Sensitivity: {
531
+ readonly title: "Sensitivity";
532
+ readonly description: "How carefully a value is shown TO ITS OWN HOLDER. `high` means a consumer masks it by default, reveals it one attribute at a time on a deliberate act, and — the half that is not cosmetic — omits it from a listing that did not ask for sensitive values.\n\nAbsent means *not decided by the holder*, not `normal`: a consumer resolves it from the claim-type registry (see CLAIM-TYPES.md §4), which is why this member is optional and why an unregistered token resolves conservatively rather than permissively.\n\nDistinct from how linkable the value is. A payment card is highly sensitive and barely linkable — every card number is unique, so knowing one tells a second verifier nothing about the first. Reading either as a proxy for the other produces a consumer that hides the wrong things.";
533
+ readonly type: "string";
534
+ readonly enum: readonly ["normal", "high"];
535
+ };
536
+ readonly Provenance: {
537
+ readonly title: "Provenance";
538
+ readonly description: "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.";
539
+ readonly type: "object";
540
+ readonly required: readonly ["kind"];
541
+ readonly oneOf: readonly [{
542
+ readonly additionalProperties: false;
543
+ readonly required: readonly ["kind"];
544
+ readonly properties: {
545
+ readonly kind: {
546
+ readonly const: "selfAsserted";
547
+ };
548
+ };
549
+ }, {
550
+ readonly additionalProperties: false;
551
+ readonly required: readonly ["kind", "credentialId", "claimPath"];
552
+ readonly properties: {
553
+ readonly kind: {
554
+ readonly const: "credentialBacked";
555
+ };
556
+ readonly credentialId: {
557
+ readonly type: "string";
558
+ readonly minLength: 1;
559
+ readonly description: "Vault identifier of the backing credential.";
560
+ };
561
+ readonly claimPath: {
562
+ readonly type: "string";
563
+ readonly pattern: "^(/[^/~]*(~[01][^/~]*)*)*$";
564
+ readonly description: "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`.";
565
+ };
566
+ readonly issuerDid: {
567
+ readonly type: "string";
568
+ readonly minLength: 1;
569
+ readonly description: "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member.";
570
+ };
571
+ readonly proof: {
572
+ readonly $ref: "#/$defs/ProofRung";
573
+ readonly description: "The disclosure rung this claim was, or will be, presented at.";
574
+ };
575
+ };
576
+ }, {
577
+ readonly additionalProperties: false;
578
+ readonly required: readonly ["kind", "generator"];
579
+ readonly properties: {
580
+ readonly kind: {
581
+ readonly const: "generated";
582
+ };
583
+ readonly generator: {
584
+ readonly type: "string";
585
+ readonly minLength: 1;
586
+ readonly maxLength: 64;
587
+ readonly description: "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined.";
588
+ };
589
+ readonly perVerifier: {
590
+ readonly type: "boolean";
591
+ readonly default: true;
592
+ readonly description: "When true (the default and the only useful setting), a distinct value is minted for each verifier.";
593
+ };
594
+ };
595
+ }, {
596
+ readonly additionalProperties: false;
597
+ readonly required: readonly ["kind", "source", "derivedAt"];
598
+ readonly properties: {
599
+ readonly kind: {
600
+ readonly const: "derived";
601
+ };
602
+ readonly source: {
603
+ readonly type: "string";
604
+ readonly minLength: 1;
605
+ readonly maxLength: 64;
606
+ readonly pattern: "^[a-z][A-Za-z0-9.-]*$";
607
+ readonly description: "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share.";
608
+ };
609
+ readonly derivedAt: {
610
+ readonly type: "string";
611
+ readonly format: "date-time";
612
+ readonly description: "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it.";
613
+ };
614
+ };
615
+ }];
616
+ };
617
+ readonly ProofRung: {
618
+ readonly title: "ProofRung";
619
+ readonly description: "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.";
620
+ readonly type: "string";
621
+ readonly enum: readonly ["predicate", "derived", "selectiveDisclosure", "whole"];
622
+ };
623
+ readonly ValueType: {
624
+ readonly title: "ValueType";
625
+ readonly description: "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.";
626
+ readonly type: "string";
627
+ readonly enum: readonly ["string", "number", "boolean", "date", "object"];
628
+ };
629
+ readonly ClaimType: {
630
+ readonly title: "ClaimType";
631
+ readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
632
+ readonly type: "string";
633
+ readonly minLength: 1;
634
+ readonly maxLength: 128;
635
+ readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
636
+ };
637
+ };
638
+ };
639
+ /**
640
+ * SPEC.md §7.2 policy for the request variant, from this specification's
641
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
642
+ * per-specification and cannot be derived from the document alone, and
643
+ * item 2 needs the schema this carries.
644
+ */
645
+ export declare const SPEC: {
646
+ readonly typeUri: "https://trusttasks.org/spec/persona/attribute/put/1.1";
647
+ readonly isBearer: false;
648
+ readonly isProofRequired: true;
649
+ readonly isRecipientRequired: true;
650
+ readonly isIssuedAtRequired: true;
651
+ readonly payloadSchema: {
652
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
653
+ readonly $id: "https://trusttasks.org/spec/persona/attribute/put/1.1";
654
+ readonly title: "Persona Attribute Put — payload";
655
+ readonly description: "Create or replace one attribute in the holder's pool. Omit `attributeId` to create; supply it to replace. `expectedVersion` makes the write conditional.";
656
+ readonly type: "object";
657
+ readonly additionalProperties: false;
658
+ readonly required: readonly ["type", "valueType", "value", "provenance"];
659
+ readonly properties: {
660
+ readonly attributeId: {
661
+ readonly $ref: "#/$defs/Ulid";
662
+ readonly description: "Omit to create — the maintainer assigns one and returns it. Supply to replace an existing attribute, or to make a create idempotent under retry; a supplied id that already exists is a replacement, and a producer that meant to create MUST pair it with `expectedVersion: 0`.";
663
+ };
664
+ readonly type: {
665
+ readonly $ref: "#/$defs/ClaimType";
666
+ };
667
+ readonly valueType: {
668
+ readonly $ref: "#/$defs/ValueType";
669
+ };
670
+ readonly value: {
671
+ readonly description: "The fact itself. MUST agree with `valueType`; a maintainer MUST refuse a document where it does not. For a `credentialBacked` provenance this is the initial display cache — the maintainer re-derives it from the credential and MAY overwrite what was supplied.";
672
+ };
673
+ readonly label: {
674
+ readonly type: "string";
675
+ readonly maxLength: 128;
676
+ readonly description: "The holder's own words, for their own picker. Never disclosed to a verifier.";
677
+ };
678
+ readonly provenance: {
679
+ readonly $ref: "#/$defs/Provenance";
680
+ };
681
+ readonly endorsements: {
682
+ readonly type: "array";
683
+ readonly maxItems: 64;
684
+ readonly uniqueItems: true;
685
+ readonly items: {
686
+ readonly type: "string";
687
+ readonly minLength: 1;
688
+ };
689
+ readonly description: "Vault identifiers of credentials in which a third party endorses this value. Inventory, not evidence — see the `endorsements` member of the shared Attribute. Replaced whole by each put; omit or send empty for none.";
690
+ };
691
+ readonly sensitivity: {
692
+ readonly $ref: "#/$defs/Sensitivity";
693
+ readonly description: "How carefully this value is shown to the holder. OPTIONAL, and its absence is meaningful: it records that the holder made no explicit decision, so a consumer resolves it from the claim-type registry. Sending the resolved value back would freeze it — a later tightening of the registry would then protect new attributes and leave this one exposed.";
694
+ };
695
+ readonly release: {
696
+ readonly $ref: "#/$defs/ReleaseRequirement";
697
+ readonly description: "What it takes to disclose this value. OPTIONAL, with the same meaning for absence as `sensitivity`.";
698
+ };
699
+ readonly expectedVersion: {
700
+ readonly $ref: "#/$defs/ExpectedVersion";
701
+ readonly description: "Optional precondition. Omit for last-writer-wins. Supply the version a prior read returned to make the write conditional; supply 0 to create only.";
702
+ };
703
+ readonly ext: {
704
+ readonly $ref: "#/$defs/Ext";
705
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
706
+ };
707
+ };
708
+ readonly $defs: {
709
+ readonly Response: {
710
+ readonly $anchor: "response";
711
+ readonly title: "Persona Attribute Put — response payload";
712
+ readonly description: "Success response to persona/attribute/put. Type https://trusttasks.org/spec/persona/attribute/put/1.1#response. A failed precondition is not a success: it is a trust-task-error carrying persona/attribute/put:versionConflict, whose details carry the maintainer's current version and value.";
713
+ readonly type: "object";
714
+ readonly additionalProperties: false;
715
+ readonly required: readonly ["attributeId", "version", "wasCreated", "updatedAt"];
716
+ readonly properties: {
717
+ readonly attributeId: {
718
+ readonly $ref: "#/$defs/Ulid";
719
+ };
720
+ readonly version: {
721
+ readonly $ref: "#/$defs/Version";
722
+ };
723
+ readonly wasCreated: {
724
+ readonly type: "boolean";
725
+ readonly description: "True when this write created the attribute, false when it replaced one. A producer that omitted `attributeId` can still be told which happened, because a retried create with a supplied id is a replacement.";
726
+ };
727
+ readonly correlation: {
728
+ readonly type: "object";
729
+ readonly additionalProperties: false;
730
+ readonly required: readonly ["severity"];
731
+ readonly description: "Advisory result of the correlation check the maintainer runs over the new value (see persona/correlation/analyze). Returned on the write so a producer's builder can warn at the moment of composition rather than requiring a second round trip. Advisory only: the write has already applied, and a maintainer MUST NOT refuse a write on correlation grounds — the holder decides.";
732
+ readonly properties: {
733
+ readonly severity: {
734
+ readonly type: "string";
735
+ readonly enum: readonly ["none", "low", "high"];
736
+ };
737
+ readonly sharedWithProfileCount: {
738
+ readonly type: "integer";
739
+ readonly minimum: 0;
740
+ readonly description: "How many other profiles already present this exact value. A count, not identifiers — the identifiers are available from the analyze task, which is where a producer should go to render remedies.";
741
+ };
742
+ };
743
+ };
744
+ readonly refreshed: {
745
+ readonly type: "array";
746
+ readonly maxItems: 256;
747
+ readonly description: "Every place this write changed what a persona presents: each binding whose projection was re-pushed because a face wearing it shows this attribute live. An edit propagates by design, and a holder told only that it saved cannot tell whether it refreshed one face or nine. Holder-authorized, so identifiers are returned. Absent when nothing was bound to a face showing it.";
748
+ readonly items: {
749
+ readonly type: "object";
750
+ readonly additionalProperties: false;
751
+ readonly required: readonly ["profileId", "contextId", "personaDid"];
752
+ readonly properties: {
753
+ readonly profileId: {
754
+ readonly $ref: "#/$defs/Ulid";
755
+ };
756
+ readonly contextId: {
757
+ readonly type: "string";
758
+ readonly minLength: 1;
759
+ };
760
+ readonly personaDid: {
761
+ readonly type: "string";
762
+ readonly minLength: 1;
763
+ };
764
+ };
765
+ };
766
+ };
767
+ readonly heldByPin: {
768
+ readonly type: "array";
769
+ readonly maxItems: 256;
770
+ readonly description: "Faces that pin this attribute to an earlier version and so did NOT follow the edit — the counterparties that must keep seeing the value they verified. Named so the holder can decide, per face, whether that is still what they want. Absent when no face pins it.";
771
+ readonly items: {
772
+ readonly type: "object";
773
+ readonly additionalProperties: false;
774
+ readonly required: readonly ["profileId", "pinVersion"];
775
+ readonly properties: {
776
+ readonly profileId: {
777
+ readonly $ref: "#/$defs/Ulid";
778
+ };
779
+ readonly pinVersion: {
780
+ readonly $ref: "#/$defs/Version";
781
+ };
782
+ };
783
+ };
784
+ };
785
+ readonly createdAt: {
786
+ readonly type: "string";
787
+ readonly format: "date-time";
788
+ };
789
+ readonly updatedAt: {
790
+ readonly type: "string";
791
+ readonly format: "date-time";
792
+ };
793
+ readonly ext: {
794
+ readonly $ref: "#/$defs/Ext";
795
+ };
796
+ };
797
+ };
798
+ readonly Ext: {
799
+ readonly title: "Ext";
800
+ 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.";
801
+ readonly type: "object";
802
+ readonly minProperties: 1;
803
+ readonly additionalProperties: true;
804
+ readonly propertyNames: {
805
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
806
+ };
807
+ };
808
+ readonly Version: {
809
+ readonly title: "Version";
810
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
811
+ readonly type: "integer";
812
+ readonly minimum: 1;
813
+ };
814
+ readonly Ulid: {
815
+ readonly title: "Ulid";
816
+ readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
817
+ readonly type: "string";
818
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
819
+ };
820
+ readonly ExpectedVersion: {
821
+ readonly title: "ExpectedVersion";
822
+ readonly description: "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.";
823
+ readonly type: "integer";
824
+ readonly minimum: 0;
825
+ };
826
+ readonly ReleaseRequirement: {
827
+ readonly title: "ReleaseRequirement";
828
+ readonly description: "What it takes to let a value LEAVE. Distinct from `Sensitivity`, which governs showing it to the holder.\n\n`consent` is the ordinary gate: `persona/disclosure/preview` renders what would leave and `persona/disclosure/present` releases it, so a human sees it once.\n\n`stepUp` additionally requires a fresh authentication bound to THAT preview — not to the session. Without the binding, \"each time\" degrades into \"once per login\", which is the failure the requirement exists to prevent; the single-use `previewId` the preview already mints is what an implementation binds to. A maintainer MUST refuse `persona/disclosure/present` for a `stepUp` attribute when no such approval accompanies it.\n\nAbsent means *not decided by the holder* and resolves from the claim-type registry, which defaults `payment.*` and `gov.*` to `stepUp`.";
829
+ readonly type: "string";
830
+ readonly enum: readonly ["consent", "stepUp"];
831
+ };
832
+ readonly Sensitivity: {
833
+ readonly title: "Sensitivity";
834
+ readonly description: "How carefully a value is shown TO ITS OWN HOLDER. `high` means a consumer masks it by default, reveals it one attribute at a time on a deliberate act, and — the half that is not cosmetic — omits it from a listing that did not ask for sensitive values.\n\nAbsent means *not decided by the holder*, not `normal`: a consumer resolves it from the claim-type registry (see CLAIM-TYPES.md §4), which is why this member is optional and why an unregistered token resolves conservatively rather than permissively.\n\nDistinct from how linkable the value is. A payment card is highly sensitive and barely linkable — every card number is unique, so knowing one tells a second verifier nothing about the first. Reading either as a proxy for the other produces a consumer that hides the wrong things.";
835
+ readonly type: "string";
836
+ readonly enum: readonly ["normal", "high"];
837
+ };
838
+ readonly Provenance: {
839
+ readonly title: "Provenance";
840
+ readonly description: "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.";
841
+ readonly type: "object";
842
+ readonly required: readonly ["kind"];
843
+ readonly oneOf: readonly [{
844
+ readonly additionalProperties: false;
845
+ readonly required: readonly ["kind"];
846
+ readonly properties: {
847
+ readonly kind: {
848
+ readonly const: "selfAsserted";
849
+ };
850
+ };
851
+ }, {
852
+ readonly additionalProperties: false;
853
+ readonly required: readonly ["kind", "credentialId", "claimPath"];
854
+ readonly properties: {
855
+ readonly kind: {
856
+ readonly const: "credentialBacked";
857
+ };
858
+ readonly credentialId: {
859
+ readonly type: "string";
860
+ readonly minLength: 1;
861
+ readonly description: "Vault identifier of the backing credential.";
862
+ };
863
+ readonly claimPath: {
864
+ readonly type: "string";
865
+ readonly pattern: "^(/[^/~]*(~[01][^/~]*)*)*$";
866
+ readonly description: "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`.";
867
+ };
868
+ readonly issuerDid: {
869
+ readonly type: "string";
870
+ readonly minLength: 1;
871
+ readonly description: "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member.";
872
+ };
873
+ readonly proof: {
874
+ readonly $ref: "#/$defs/ProofRung";
875
+ readonly description: "The disclosure rung this claim was, or will be, presented at.";
876
+ };
877
+ };
878
+ }, {
879
+ readonly additionalProperties: false;
880
+ readonly required: readonly ["kind", "generator"];
881
+ readonly properties: {
882
+ readonly kind: {
883
+ readonly const: "generated";
884
+ };
885
+ readonly generator: {
886
+ readonly type: "string";
887
+ readonly minLength: 1;
888
+ readonly maxLength: 64;
889
+ readonly description: "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined.";
890
+ };
891
+ readonly perVerifier: {
892
+ readonly type: "boolean";
893
+ readonly default: true;
894
+ readonly description: "When true (the default and the only useful setting), a distinct value is minted for each verifier.";
895
+ };
896
+ };
897
+ }, {
898
+ readonly additionalProperties: false;
899
+ readonly required: readonly ["kind", "source", "derivedAt"];
900
+ readonly properties: {
901
+ readonly kind: {
902
+ readonly const: "derived";
903
+ };
904
+ readonly source: {
905
+ readonly type: "string";
906
+ readonly minLength: 1;
907
+ readonly maxLength: 64;
908
+ readonly pattern: "^[a-z][A-Za-z0-9.-]*$";
909
+ readonly description: "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share.";
910
+ };
911
+ readonly derivedAt: {
912
+ readonly type: "string";
913
+ readonly format: "date-time";
914
+ readonly description: "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it.";
915
+ };
916
+ };
917
+ }];
918
+ };
919
+ readonly ProofRung: {
920
+ readonly title: "ProofRung";
921
+ readonly description: "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.";
922
+ readonly type: "string";
923
+ readonly enum: readonly ["predicate", "derived", "selectiveDisclosure", "whole"];
924
+ };
925
+ readonly ValueType: {
926
+ readonly title: "ValueType";
927
+ readonly description: "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.";
928
+ readonly type: "string";
929
+ readonly enum: readonly ["string", "number", "boolean", "date", "object"];
930
+ };
931
+ readonly ClaimType: {
932
+ readonly title: "ClaimType";
933
+ readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
934
+ readonly type: "string";
935
+ readonly minLength: 1;
936
+ readonly maxLength: 128;
937
+ readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
938
+ };
939
+ };
940
+ };
941
+ };
942
+ /**
943
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
944
+ * tracks the *issuer* party's requirement because a response swaps the
945
+ * parties (§7.3 item 5).
946
+ */
947
+ export declare const RESPONSE_SPEC: {
948
+ readonly typeUri: "https://trusttasks.org/spec/persona/attribute/put/1.1#response";
949
+ readonly isBearer: false;
950
+ readonly isProofRequired: true;
951
+ readonly isRecipientRequired: true;
952
+ readonly isIssuedAtRequired: true;
953
+ readonly payloadSchema: {
954
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
955
+ readonly $ref: "#/$defs/Response";
956
+ readonly $defs: {
957
+ readonly Response: {
958
+ readonly $anchor: "response";
959
+ readonly title: "Persona Attribute Put — response payload";
960
+ readonly description: "Success response to persona/attribute/put. Type https://trusttasks.org/spec/persona/attribute/put/1.1#response. A failed precondition is not a success: it is a trust-task-error carrying persona/attribute/put:versionConflict, whose details carry the maintainer's current version and value.";
961
+ readonly type: "object";
962
+ readonly additionalProperties: false;
963
+ readonly required: readonly ["attributeId", "version", "wasCreated", "updatedAt"];
964
+ readonly properties: {
965
+ readonly attributeId: {
966
+ readonly $ref: "#/$defs/Ulid";
967
+ };
968
+ readonly version: {
969
+ readonly $ref: "#/$defs/Version";
970
+ };
971
+ readonly wasCreated: {
972
+ readonly type: "boolean";
973
+ readonly description: "True when this write created the attribute, false when it replaced one. A producer that omitted `attributeId` can still be told which happened, because a retried create with a supplied id is a replacement.";
974
+ };
975
+ readonly correlation: {
976
+ readonly type: "object";
977
+ readonly additionalProperties: false;
978
+ readonly required: readonly ["severity"];
979
+ readonly description: "Advisory result of the correlation check the maintainer runs over the new value (see persona/correlation/analyze). Returned on the write so a producer's builder can warn at the moment of composition rather than requiring a second round trip. Advisory only: the write has already applied, and a maintainer MUST NOT refuse a write on correlation grounds — the holder decides.";
980
+ readonly properties: {
981
+ readonly severity: {
982
+ readonly type: "string";
983
+ readonly enum: readonly ["none", "low", "high"];
984
+ };
985
+ readonly sharedWithProfileCount: {
986
+ readonly type: "integer";
987
+ readonly minimum: 0;
988
+ readonly description: "How many other profiles already present this exact value. A count, not identifiers — the identifiers are available from the analyze task, which is where a producer should go to render remedies.";
989
+ };
990
+ };
991
+ };
992
+ readonly refreshed: {
993
+ readonly type: "array";
994
+ readonly maxItems: 256;
995
+ readonly description: "Every place this write changed what a persona presents: each binding whose projection was re-pushed because a face wearing it shows this attribute live. An edit propagates by design, and a holder told only that it saved cannot tell whether it refreshed one face or nine. Holder-authorized, so identifiers are returned. Absent when nothing was bound to a face showing it.";
996
+ readonly items: {
997
+ readonly type: "object";
998
+ readonly additionalProperties: false;
999
+ readonly required: readonly ["profileId", "contextId", "personaDid"];
1000
+ readonly properties: {
1001
+ readonly profileId: {
1002
+ readonly $ref: "#/$defs/Ulid";
1003
+ };
1004
+ readonly contextId: {
1005
+ readonly type: "string";
1006
+ readonly minLength: 1;
1007
+ };
1008
+ readonly personaDid: {
1009
+ readonly type: "string";
1010
+ readonly minLength: 1;
1011
+ };
1012
+ };
1013
+ };
1014
+ };
1015
+ readonly heldByPin: {
1016
+ readonly type: "array";
1017
+ readonly maxItems: 256;
1018
+ readonly description: "Faces that pin this attribute to an earlier version and so did NOT follow the edit — the counterparties that must keep seeing the value they verified. Named so the holder can decide, per face, whether that is still what they want. Absent when no face pins it.";
1019
+ readonly items: {
1020
+ readonly type: "object";
1021
+ readonly additionalProperties: false;
1022
+ readonly required: readonly ["profileId", "pinVersion"];
1023
+ readonly properties: {
1024
+ readonly profileId: {
1025
+ readonly $ref: "#/$defs/Ulid";
1026
+ };
1027
+ readonly pinVersion: {
1028
+ readonly $ref: "#/$defs/Version";
1029
+ };
1030
+ };
1031
+ };
1032
+ };
1033
+ readonly createdAt: {
1034
+ readonly type: "string";
1035
+ readonly format: "date-time";
1036
+ };
1037
+ readonly updatedAt: {
1038
+ readonly type: "string";
1039
+ readonly format: "date-time";
1040
+ };
1041
+ readonly ext: {
1042
+ readonly $ref: "#/$defs/Ext";
1043
+ };
1044
+ };
1045
+ };
1046
+ readonly Ext: {
1047
+ readonly title: "Ext";
1048
+ 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.";
1049
+ readonly type: "object";
1050
+ readonly minProperties: 1;
1051
+ readonly additionalProperties: true;
1052
+ readonly propertyNames: {
1053
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
1054
+ };
1055
+ };
1056
+ readonly Version: {
1057
+ readonly title: "Version";
1058
+ readonly description: "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.";
1059
+ readonly type: "integer";
1060
+ readonly minimum: 1;
1061
+ };
1062
+ readonly Ulid: {
1063
+ readonly title: "Ulid";
1064
+ readonly description: "A ULID in Crockford base32, uppercase. Used for `attributeId` and `profileId`. Chosen over a UUID because the leading 48 bits are a timestamp, so a key-ordered scan of the store is also creation-ordered and a `list` needs no secondary sort. Server-assigned on create; a producer MAY supply one to make a create idempotent, and a maintainer MUST reject a supplied value that already exists rather than silently overwriting.";
1065
+ readonly type: "string";
1066
+ readonly pattern: "^[0-9A-HJKMNP-TV-Z]{26}$";
1067
+ };
1068
+ readonly ExpectedVersion: {
1069
+ readonly title: "ExpectedVersion";
1070
+ readonly description: "Optimistic-concurrency precondition. A positive value requires the record's current `version` to equal it exactly; zero means create-only and applies only when no live record exists at the address.";
1071
+ readonly type: "integer";
1072
+ readonly minimum: 0;
1073
+ };
1074
+ readonly ReleaseRequirement: {
1075
+ readonly title: "ReleaseRequirement";
1076
+ readonly description: "What it takes to let a value LEAVE. Distinct from `Sensitivity`, which governs showing it to the holder.\n\n`consent` is the ordinary gate: `persona/disclosure/preview` renders what would leave and `persona/disclosure/present` releases it, so a human sees it once.\n\n`stepUp` additionally requires a fresh authentication bound to THAT preview — not to the session. Without the binding, \"each time\" degrades into \"once per login\", which is the failure the requirement exists to prevent; the single-use `previewId` the preview already mints is what an implementation binds to. A maintainer MUST refuse `persona/disclosure/present` for a `stepUp` attribute when no such approval accompanies it.\n\nAbsent means *not decided by the holder* and resolves from the claim-type registry, which defaults `payment.*` and `gov.*` to `stepUp`.";
1077
+ readonly type: "string";
1078
+ readonly enum: readonly ["consent", "stepUp"];
1079
+ };
1080
+ readonly Sensitivity: {
1081
+ readonly title: "Sensitivity";
1082
+ readonly description: "How carefully a value is shown TO ITS OWN HOLDER. `high` means a consumer masks it by default, reveals it one attribute at a time on a deliberate act, and — the half that is not cosmetic — omits it from a listing that did not ask for sensitive values.\n\nAbsent means *not decided by the holder*, not `normal`: a consumer resolves it from the claim-type registry (see CLAIM-TYPES.md §4), which is why this member is optional and why an unregistered token resolves conservatively rather than permissively.\n\nDistinct from how linkable the value is. A payment card is highly sensitive and barely linkable — every card number is unique, so knowing one tells a second verifier nothing about the first. Reading either as a proxy for the other produces a consumer that hides the wrong things.";
1083
+ readonly type: "string";
1084
+ readonly enum: readonly ["normal", "high"];
1085
+ };
1086
+ readonly Provenance: {
1087
+ readonly title: "Provenance";
1088
+ readonly description: "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.";
1089
+ readonly type: "object";
1090
+ readonly required: readonly ["kind"];
1091
+ readonly oneOf: readonly [{
1092
+ readonly additionalProperties: false;
1093
+ readonly required: readonly ["kind"];
1094
+ readonly properties: {
1095
+ readonly kind: {
1096
+ readonly const: "selfAsserted";
1097
+ };
1098
+ };
1099
+ }, {
1100
+ readonly additionalProperties: false;
1101
+ readonly required: readonly ["kind", "credentialId", "claimPath"];
1102
+ readonly properties: {
1103
+ readonly kind: {
1104
+ readonly const: "credentialBacked";
1105
+ };
1106
+ readonly credentialId: {
1107
+ readonly type: "string";
1108
+ readonly minLength: 1;
1109
+ readonly description: "Vault identifier of the backing credential.";
1110
+ };
1111
+ readonly claimPath: {
1112
+ readonly type: "string";
1113
+ readonly pattern: "^(/[^/~]*(~[01][^/~]*)*)*$";
1114
+ readonly description: "RFC 6901 JSON Pointer to the claim within the credential, e.g. `/credentialSubject/familyName`.";
1115
+ };
1116
+ readonly issuerDid: {
1117
+ readonly type: "string";
1118
+ readonly minLength: 1;
1119
+ readonly description: "Issuer of the backing credential. Advisory: a consumer MUST verify the credential rather than trusting this member.";
1120
+ };
1121
+ readonly proof: {
1122
+ readonly $ref: "#/$defs/ProofRung";
1123
+ readonly description: "The disclosure rung this claim was, or will be, presented at.";
1124
+ };
1125
+ };
1126
+ }, {
1127
+ readonly additionalProperties: false;
1128
+ readonly required: readonly ["kind", "generator"];
1129
+ readonly properties: {
1130
+ readonly kind: {
1131
+ readonly const: "generated";
1132
+ };
1133
+ readonly generator: {
1134
+ readonly type: "string";
1135
+ readonly minLength: 1;
1136
+ readonly maxLength: 64;
1137
+ readonly description: "Names the minting scheme, e.g. `relayEmail`. Maintainer-defined.";
1138
+ };
1139
+ readonly perVerifier: {
1140
+ readonly type: "boolean";
1141
+ readonly default: true;
1142
+ readonly description: "When true (the default and the only useful setting), a distinct value is minted for each verifier.";
1143
+ };
1144
+ };
1145
+ }, {
1146
+ readonly additionalProperties: false;
1147
+ readonly required: readonly ["kind", "source", "derivedAt"];
1148
+ readonly properties: {
1149
+ readonly kind: {
1150
+ readonly const: "derived";
1151
+ };
1152
+ readonly source: {
1153
+ readonly type: "string";
1154
+ readonly minLength: 1;
1155
+ readonly maxLength: 64;
1156
+ readonly pattern: "^[a-z][A-Za-z0-9.-]*$";
1157
+ readonly description: "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share.";
1158
+ };
1159
+ readonly derivedAt: {
1160
+ readonly type: "string";
1161
+ readonly format: "date-time";
1162
+ readonly description: "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it.";
1163
+ };
1164
+ };
1165
+ }];
1166
+ };
1167
+ readonly ProofRung: {
1168
+ readonly title: "ProofRung";
1169
+ readonly description: "How strongly a credential-backed claim is hidden when presented, ordered most private first. `predicate` proves a statement over a claim without disclosing the claim. `derived` discloses exactly the claims needed via an unlinkable derived proof, so two presentations cannot be joined. `selectiveDisclosure` discloses exactly the claims needed but carries the issuer's signature unchanged, so two presentations ARE linkable. `whole` discloses the entire credential.\n\nThe distinction between the first two and the last two is of kind, not degree: only `predicate` and `derived` avoid handing two verifiers a join key. A maintainer MUST default to the highest rung the credential's format supports, and MUST NOT silently fall to a lower one — a request that cannot be satisfied at the rung a producer asked for is refused, because a silent privacy downgrade discloses material the holder believed was hidden.";
1170
+ readonly type: "string";
1171
+ readonly enum: readonly ["predicate", "derived", "selectiveDisclosure", "whole"];
1172
+ };
1173
+ readonly ValueType: {
1174
+ readonly title: "ValueType";
1175
+ readonly description: "The JSON shape of `value`, declared so that a consumer can render and compare without guessing. The maintainer validates that `value` agrees with this member and does nothing further: it does NOT validate a phone number against a phone-number grammar. That is a producer's affordance, and a store that grows opinions about the contents of its records eventually blocks its consumer's release.";
1176
+ readonly type: "string";
1177
+ readonly enum: readonly ["string", "number", "boolean", "date", "object"];
1178
+ };
1179
+ readonly ClaimType: {
1180
+ readonly title: "ClaimType";
1181
+ readonly description: "The vocabulary token naming what a value IS — `name.legal`, `phone.mobile`, `address.postal`, `person.birthDate`. Dotted, most-general segment first, so that a consumer with no knowledge of the specific token can still group by its prefix.\n\nThe token is the maintainer's own; no external vocabulary is primary. External vocabularies (vCard/jCard, OIDC standard claims, schema.org) are mappings applied at PRESENTATION by a renderer, not at rest, so that a query written in any of them can be matched without the store having to live inside any one of them.\n\nThe `x:` prefix is an open extension namespace and is not decoration. The closest prior art — Windows CardSpace's self-issued card — supported exactly fifteen predefined claim types with no extensibility, and that is the specific way it failed the requirement a holder actually has. An `x:` attribute stores, composes, binds and discloses exactly like a known one; it renders generically and matches only an explicit query.";
1182
+ readonly type: "string";
1183
+ readonly minLength: 1;
1184
+ readonly maxLength: 128;
1185
+ readonly pattern: "^(x:)?[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$";
1186
+ };
1187
+ };
1188
+ };
1189
+ };
1190
+ //# sourceMappingURL=payload.d.ts.map