@openvtc/trust-tasks 0.19.17 → 0.19.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/_runtime/consume.d.ts +1 -1
- package/dist/_runtime/consume.js +2 -2
- package/dist/_shared/components.d.ts +46 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/persona/_shared/0.1/persona-record.d.ts +1 -1
- package/dist/persona/_shared/0.1/persona-record.d.ts.map +1 -1
- package/dist/persona/attribute/list/1.0/payload.d.ts +124 -4
- package/dist/persona/attribute/list/1.0/payload.d.ts.map +1 -1
- package/dist/persona/attribute/list/1.0/payload.js +72 -2
- package/dist/persona/attribute/list/1.0/payload.js.map +1 -1
- package/dist/persona/attribute/promote/1.0/payload.d.ts +506 -0
- package/dist/persona/attribute/promote/1.0/payload.d.ts.map +1 -0
- package/dist/persona/attribute/promote/1.0/payload.js +263 -0
- package/dist/persona/attribute/promote/1.0/payload.js.map +1 -0
- package/dist/persona/attribute/put/1.0/payload.d.ts +110 -4
- package/dist/persona/attribute/put/1.0/payload.d.ts.map +1 -1
- package/dist/persona/attribute/put/1.0/payload.js +62 -2
- package/dist/persona/attribute/put/1.0/payload.js.map +1 -1
- package/dist/persona/binding/get/1.0/payload.d.ts +24 -0
- package/dist/persona/binding/get/1.0/payload.d.ts.map +1 -1
- package/dist/persona/binding/get/1.0/payload.js +10 -0
- package/dist/persona/binding/get/1.0/payload.js.map +1 -1
- package/dist/persona/binding/list/1.0/payload.d.ts +24 -0
- package/dist/persona/binding/list/1.0/payload.d.ts.map +1 -1
- package/dist/persona/binding/list/1.0/payload.js +10 -0
- package/dist/persona/binding/list/1.0/payload.js.map +1 -1
- package/dist/persona/binding/set/1.0/payload.d.ts +38 -0
- package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -1
- package/dist/persona/binding/set/1.0/payload.js +15 -0
- package/dist/persona/binding/set/1.0/payload.js.map +1 -1
- package/dist/persona/contact/get/1.0/payload.d.ts +84 -4
- package/dist/persona/contact/get/1.0/payload.d.ts.map +1 -1
- package/dist/persona/contact/get/1.0/payload.js +52 -2
- package/dist/persona/contact/get/1.0/payload.js.map +1 -1
- package/dist/persona/contact/put/1.0/payload.d.ts +84 -4
- package/dist/persona/contact/put/1.0/payload.d.ts.map +1 -1
- package/dist/persona/contact/put/1.0/payload.js +52 -2
- package/dist/persona/contact/put/1.0/payload.js.map +1 -1
- package/dist/persona/disclosure/preview/1.0/payload.d.ts +5 -5
- package/dist/persona/disclosure/preview/1.0/payload.d.ts.map +1 -1
- package/dist/persona/disclosure/preview/1.0/payload.js +4 -2
- package/dist/persona/disclosure/preview/1.0/payload.js.map +1 -1
- package/dist/persona/local/binding/set/1.0/payload.d.ts +14 -0
- package/dist/persona/local/binding/set/1.0/payload.d.ts.map +1 -1
- package/dist/persona/local/binding/set/1.0/payload.js +5 -0
- package/dist/persona/local/binding/set/1.0/payload.js.map +1 -1
- package/dist/persona/profile/compose/1.0/payload.d.ts +965 -0
- package/dist/persona/profile/compose/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/compose/1.0/payload.js +531 -0
- package/dist/persona/profile/compose/1.0/payload.js.map +1 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts +71 -0
- package/dist/persona/profile/delete/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/delete/1.0/payload.js +38 -0
- package/dist/persona/profile/delete/1.0/payload.js.map +1 -1
- package/dist/persona/profile/get/1.0/payload.d.ts +345 -6
- package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/get/1.0/payload.js +206 -2
- package/dist/persona/profile/get/1.0/payload.js.map +1 -1
- package/dist/persona/profile/list/1.0/payload.d.ts +288 -6
- package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/list/1.0/payload.js +173 -2
- package/dist/persona/profile/list/1.0/payload.js.map +1 -1
- package/dist/persona/profile/put/1.0/payload.d.ts +230 -6
- package/dist/persona/profile/put/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/put/1.0/payload.js +138 -2
- package/dist/persona/profile/put/1.0/payload.js.map +1 -1
- package/dist/persona/profile/reinstate/1.0/payload.d.ts +325 -0
- package/dist/persona/profile/reinstate/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/reinstate/1.0/payload.js +181 -0
- package/dist/persona/profile/reinstate/1.0/payload.js.map +1 -0
- package/dist/persona/profile/retire/1.0/payload.d.ts +436 -0
- package/dist/persona/profile/retire/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/retire/1.0/payload.js +238 -0
- package/dist/persona/profile/retire/1.0/payload.js.map +1 -0
- package/dist/persona/profile/timeline/1.0/payload.d.ts +588 -0
- package/dist/persona/profile/timeline/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/timeline/1.0/payload.js +322 -0
- package/dist/persona/profile/timeline/1.0/payload.js.map +1 -0
- package/dist/persona/profile/usage/1.0/payload.d.ts +533 -0
- package/dist/persona/profile/usage/1.0/payload.d.ts.map +1 -0
- package/dist/persona/profile/usage/1.0/payload.js +302 -0
- package/dist/persona/profile/usage/1.0/payload.js.map +1 -0
- package/dist/trust-task-control/0.1/payload.d.ts +19 -19
- package/dist/trust-task-control/0.1/payload.js +7 -7
- package/dist/trust-task-discovery/0.1/payload.d.ts +3 -3
- package/dist/trust-task-discovery/0.1/payload.js +1 -1
- package/dist/trust-task-discovery/0.2/payload.d.ts +368 -0
- package/dist/trust-task-discovery/0.2/payload.d.ts.map +1 -0
- package/dist/trust-task-discovery/0.2/payload.js +186 -0
- package/dist/trust-task-discovery/0.2/payload.js.map +1 -0
- package/dist/vtc/invitations/deliver/0.1/payload.d.ts +318 -0
- package/dist/vtc/invitations/deliver/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/invitations/deliver/0.1/payload.js +183 -0
- package/dist/vtc/invitations/deliver/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_runtime/consume.ts +2 -2
- package/src/_shared/components.ts +49 -0
- package/src/index.ts +8 -0
- package/src/persona/_shared/0.1/persona-record.ts +1 -1
- package/src/persona/attribute/list/1.0/payload.ts +72 -2
- package/src/persona/attribute/promote/1.0/payload.ts +344 -0
- package/src/persona/attribute/put/1.0/payload.ts +68 -2
- package/src/persona/binding/get/1.0/payload.ts +14 -0
- package/src/persona/binding/list/1.0/payload.ts +14 -0
- package/src/persona/binding/set/1.0/payload.ts +23 -0
- package/src/persona/contact/get/1.0/payload.ts +52 -2
- package/src/persona/contact/put/1.0/payload.ts +52 -2
- package/src/persona/disclosure/preview/1.0/payload.ts +5 -3
- package/src/persona/local/binding/set/1.0/payload.ts +9 -0
- package/src/persona/profile/compose/1.0/payload.ts +650 -0
- package/src/persona/profile/delete/1.0/payload.ts +45 -0
- package/src/persona/profile/get/1.0/payload.ts +215 -4
- package/src/persona/profile/list/1.0/payload.ts +179 -4
- package/src/persona/profile/put/1.0/payload.ts +144 -4
- package/src/persona/profile/reinstate/1.0/payload.ts +219 -0
- package/src/persona/profile/retire/1.0/payload.ts +289 -0
- package/src/persona/profile/timeline/1.0/payload.ts +402 -0
- package/src/persona/profile/usage/1.0/payload.ts +354 -0
- package/src/trust-task-control/0.1/payload.ts +12 -12
- package/src/trust-task-discovery/0.1/payload.ts +2 -2
- package/src/trust-task-discovery/0.2/payload.ts +286 -0
- package/src/vtc/invitations/deliver/0.1/payload.ts +234 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/persona/profile/put/1.0/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { ClaimType, ExpectedVersion_PersonaV0_1 as ExpectedVersion, Ext, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
|
|
6
|
+
import type { ClaimType, ExpectedVersion_PersonaV0_1 as ExpectedVersion, Ext, FaceReach, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -24,6 +24,10 @@ export interface PersonaProfilePutPayload {
|
|
|
24
24
|
* @maxItems 256
|
|
25
25
|
*/
|
|
26
26
|
entries: ProfileEntry[];
|
|
27
|
+
/**
|
|
28
|
+
* Where this face may be worn. Omit to keep the face's current reach — anywhere, for a new face. Unlike the rest of a put, omission does not reset it: a reach is a restriction the holder set, and a producer that predates this member must not widen a face to anywhere by saving an unrelated edit. To widen, send `{"kind": "anywhere"}`. Narrowing it while the face is worn outside the new reach is refused (`boundOutsideReach`), naming the contexts: the holder takes it off there first, deliberately.
|
|
29
|
+
*/
|
|
30
|
+
reach?: FaceReach;
|
|
27
31
|
/**
|
|
28
32
|
* Vault identifiers of credentials associated with this profile as inventory — what this persona can prove — as distinct from the evidence relationship a credentialBacked attribute expresses. The two answer different questions and a consumer MUST NOT read one as the other.
|
|
29
33
|
*
|
|
@@ -56,7 +60,7 @@ export interface PersonaProfilePutResponsePayload {
|
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
59
|
-
export type { ClaimType, ExpectedVersion, Ext, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version };
|
|
63
|
+
export type { ClaimType, ExpectedVersion, Ext, FaceReach, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version };
|
|
60
64
|
|
|
61
65
|
/** Trust Task type URI. */
|
|
62
66
|
export const TYPE_URI = "https://trusttasks.org/spec/persona/profile/put/1.0" as const;
|
|
@@ -109,6 +113,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
109
113
|
},
|
|
110
114
|
"description": "Ordered; the order is display order. An empty array is legal and means a profile that discloses nothing — useful as a starting point, and not the same as no profile at all."
|
|
111
115
|
},
|
|
116
|
+
"reach": {
|
|
117
|
+
"$ref": "#/$defs/FaceReach",
|
|
118
|
+
"description": "Where this face may be worn. Omit to keep the face's current reach — anywhere, for a new face. Unlike the rest of a put, omission does not reset it: a reach is a restriction the holder set, and a producer that predates this member must not widen a face to anywhere by saving an unrelated edit. To widen, send `{\"kind\": \"anywhere\"}`. Narrowing it while the face is worn outside the new reach is refused (`boundOutsideReach`), naming the contexts: the holder takes it off there first, deliberately."
|
|
119
|
+
},
|
|
112
120
|
"credentialRefs": {
|
|
113
121
|
"type": "array",
|
|
114
122
|
"maxItems": 256,
|
|
@@ -212,6 +220,47 @@ export const PAYLOAD_SCHEMA = {
|
|
|
212
220
|
"type": "integer",
|
|
213
221
|
"minimum": 0
|
|
214
222
|
},
|
|
223
|
+
"FaceReach": {
|
|
224
|
+
"title": "FaceReach",
|
|
225
|
+
"description": "Where a pool face may be worn. `anywhere` is the default and what an absent member means. `only` names the contexts it may be worn in, and a maintainer MUST refuse to wear it in any other (persona/binding/set `outsideReach`).\n\nA tagged object rather than a bare list of contexts, deliberately: an empty list has been read as both 'unrestricted' and 'nowhere' in this family's neighbours, and a shape where the two cannot be confused is worth more than one where they must be remembered. So `only` requires at least one context, and 'nowhere' is not a reach — it is a retired face.\n\nA context-local face has no reach: it lives in its context and is worn there by construction.",
|
|
226
|
+
"oneOf": [
|
|
227
|
+
{
|
|
228
|
+
"type": "object",
|
|
229
|
+
"additionalProperties": false,
|
|
230
|
+
"required": [
|
|
231
|
+
"kind"
|
|
232
|
+
],
|
|
233
|
+
"properties": {
|
|
234
|
+
"kind": {
|
|
235
|
+
"const": "anywhere"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"type": "object",
|
|
241
|
+
"additionalProperties": false,
|
|
242
|
+
"required": [
|
|
243
|
+
"kind",
|
|
244
|
+
"contextIds"
|
|
245
|
+
],
|
|
246
|
+
"properties": {
|
|
247
|
+
"kind": {
|
|
248
|
+
"const": "only"
|
|
249
|
+
},
|
|
250
|
+
"contextIds": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"minItems": 1,
|
|
253
|
+
"maxItems": 256,
|
|
254
|
+
"uniqueItems": true,
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"minLength": 1
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
215
264
|
"ProfileEntry": {
|
|
216
265
|
"title": "ProfileEntry",
|
|
217
266
|
"description": "One line of a profile, in exactly one of four forms. Together they are the whole of a profile's flexibility, and each exists for a case the others handle badly.\n\n`{ref}` — use the pool attribute, live. Editing the pool updates every profile that references it, which is the point.\n\n`{ref, pinVersion}` — use the value as it was at that version. For a profile that must keep presenting the value a counterparty already verified.\n\n`{ref, override}` — the same fact, a different value here. (\"In the gaming profile my display name is different.\")\n\n`{inline}` — a value that never enters the pool, and so never leaks into another profile.\n\nOmission is exclusion; there is no removal marker.\n\nAny form MAY carry a `slot` naming the role the entry plays in the profile — see `Slot`. A maintainer MUST refuse a profile in which two entries carry the same slot: a slot exists to answer one question with one entry.",
|
|
@@ -326,7 +375,7 @@ export const PAYLOAD_SCHEMA = {
|
|
|
326
375
|
},
|
|
327
376
|
"Provenance": {
|
|
328
377
|
"title": "Provenance",
|
|
329
|
-
"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.",
|
|
378
|
+
"description": "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.",
|
|
330
379
|
"type": "object",
|
|
331
380
|
"required": [
|
|
332
381
|
"kind"
|
|
@@ -397,6 +446,31 @@ export const PAYLOAD_SCHEMA = {
|
|
|
397
446
|
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
398
447
|
}
|
|
399
448
|
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"additionalProperties": false,
|
|
452
|
+
"required": [
|
|
453
|
+
"kind",
|
|
454
|
+
"source",
|
|
455
|
+
"derivedAt"
|
|
456
|
+
],
|
|
457
|
+
"properties": {
|
|
458
|
+
"kind": {
|
|
459
|
+
"const": "derived"
|
|
460
|
+
},
|
|
461
|
+
"source": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"minLength": 1,
|
|
464
|
+
"maxLength": 64,
|
|
465
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
466
|
+
"description": "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share."
|
|
467
|
+
},
|
|
468
|
+
"derivedAt": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"format": "date-time",
|
|
471
|
+
"description": "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it."
|
|
472
|
+
}
|
|
473
|
+
}
|
|
400
474
|
}
|
|
401
475
|
]
|
|
402
476
|
},
|
|
@@ -525,6 +599,47 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
525
599
|
"type": "integer",
|
|
526
600
|
"minimum": 0
|
|
527
601
|
},
|
|
602
|
+
"FaceReach": {
|
|
603
|
+
"title": "FaceReach",
|
|
604
|
+
"description": "Where a pool face may be worn. `anywhere` is the default and what an absent member means. `only` names the contexts it may be worn in, and a maintainer MUST refuse to wear it in any other (persona/binding/set `outsideReach`).\n\nA tagged object rather than a bare list of contexts, deliberately: an empty list has been read as both 'unrestricted' and 'nowhere' in this family's neighbours, and a shape where the two cannot be confused is worth more than one where they must be remembered. So `only` requires at least one context, and 'nowhere' is not a reach — it is a retired face.\n\nA context-local face has no reach: it lives in its context and is worn there by construction.",
|
|
605
|
+
"oneOf": [
|
|
606
|
+
{
|
|
607
|
+
"type": "object",
|
|
608
|
+
"additionalProperties": false,
|
|
609
|
+
"required": [
|
|
610
|
+
"kind"
|
|
611
|
+
],
|
|
612
|
+
"properties": {
|
|
613
|
+
"kind": {
|
|
614
|
+
"const": "anywhere"
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"type": "object",
|
|
620
|
+
"additionalProperties": false,
|
|
621
|
+
"required": [
|
|
622
|
+
"kind",
|
|
623
|
+
"contextIds"
|
|
624
|
+
],
|
|
625
|
+
"properties": {
|
|
626
|
+
"kind": {
|
|
627
|
+
"const": "only"
|
|
628
|
+
},
|
|
629
|
+
"contextIds": {
|
|
630
|
+
"type": "array",
|
|
631
|
+
"minItems": 1,
|
|
632
|
+
"maxItems": 256,
|
|
633
|
+
"uniqueItems": true,
|
|
634
|
+
"items": {
|
|
635
|
+
"type": "string",
|
|
636
|
+
"minLength": 1
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
]
|
|
642
|
+
},
|
|
528
643
|
"ProfileEntry": {
|
|
529
644
|
"title": "ProfileEntry",
|
|
530
645
|
"description": "One line of a profile, in exactly one of four forms. Together they are the whole of a profile's flexibility, and each exists for a case the others handle badly.\n\n`{ref}` — use the pool attribute, live. Editing the pool updates every profile that references it, which is the point.\n\n`{ref, pinVersion}` — use the value as it was at that version. For a profile that must keep presenting the value a counterparty already verified.\n\n`{ref, override}` — the same fact, a different value here. (\"In the gaming profile my display name is different.\")\n\n`{inline}` — a value that never enters the pool, and so never leaks into another profile.\n\nOmission is exclusion; there is no removal marker.\n\nAny form MAY carry a `slot` naming the role the entry plays in the profile — see `Slot`. A maintainer MUST refuse a profile in which two entries carry the same slot: a slot exists to answer one question with one entry.",
|
|
@@ -639,7 +754,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
639
754
|
},
|
|
640
755
|
"Provenance": {
|
|
641
756
|
"title": "Provenance",
|
|
642
|
-
"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.",
|
|
757
|
+
"description": "Where a value comes from, and the member that makes this family worth building on a trust stack rather than in an address book. It survives to the verifier, so a recipient can tell — per field — what the holder typed from what an issuer attested.\n\n`selfAsserted` — the holder supplied it.\n\n`credentialBacked` — the value is derived from a credential in the vault at `claimPath`. The stored value is a CACHE FOR DISPLAY; the credential is the truth. A maintainer MUST re-derive it on read and MUST fail closed (never presenting a stale value) when the credential has been revoked, has expired, or has been archived or deleted.\n\n`generated` — the value is minted per verifier at disclosure time and recorded against that verifier, so every relying party receives a different one that routes back to the holder. This is the shape of the most widely adopted consumer privacy feature in this space; a maintainer need not operate a relay to conform, but the shape must exist, because retrofitting per-verifier values into a pool-of-values model is a migration rather than an addition.\n\n`derived` — the value was taken from a source the holder connected or supplied — a code-hosting profile, an uploaded CV — rather than typed by them or attested by an issuer. Nobody signed it: it is the holder's claim that the source said so, and a consumer MUST NOT present it as attested. It exists as its own kind because a derived value is neither of the others — the holder did not author it, and no one vouches for it — and a holder deciding whether to disclose deserves to know which of their values they typed.\n\nFor how strongly a disclosed value identifies the holder, the kinds rank `credentialBacked` above `derived` above `selfAsserted`; `generated` values are per-verifier and do not correlate.",
|
|
643
758
|
"type": "object",
|
|
644
759
|
"required": [
|
|
645
760
|
"kind"
|
|
@@ -710,6 +825,31 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
710
825
|
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
711
826
|
}
|
|
712
827
|
}
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"additionalProperties": false,
|
|
831
|
+
"required": [
|
|
832
|
+
"kind",
|
|
833
|
+
"source",
|
|
834
|
+
"derivedAt"
|
|
835
|
+
],
|
|
836
|
+
"properties": {
|
|
837
|
+
"kind": {
|
|
838
|
+
"const": "derived"
|
|
839
|
+
},
|
|
840
|
+
"source": {
|
|
841
|
+
"type": "string",
|
|
842
|
+
"minLength": 1,
|
|
843
|
+
"maxLength": 64,
|
|
844
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
845
|
+
"description": "The KIND of source the value was taken from — `github`, `cvUpload`, `linkedIn` — never an account, handle or URL. Provenance survives to the verifier, so this member is disclosed with the claim; a handle here would disclose an identifier the holder never chose to share."
|
|
846
|
+
},
|
|
847
|
+
"derivedAt": {
|
|
848
|
+
"type": "string",
|
|
849
|
+
"format": "date-time",
|
|
850
|
+
"description": "When the value was taken from the source. A derived value is a snapshot: the source may have changed since, and nothing re-derives it."
|
|
851
|
+
}
|
|
852
|
+
}
|
|
713
853
|
}
|
|
714
854
|
]
|
|
715
855
|
},
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/profile/reinstate/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { ExpectedVersion_PersonaV0_1 as ExpectedVersion, Ext, Ulid, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Make a retired face wearable again. It is worn nowhere afterwards: the bindings retiring cleared are not restored, because wearing a face in a context is a decision about that context, taken when it is taken.
|
|
11
|
+
*/
|
|
12
|
+
export interface PersonaProfileReinstatePayload {
|
|
13
|
+
profileId: Ulid;
|
|
14
|
+
/**
|
|
15
|
+
* The context a context-local face lives in. Omit for a pool face.
|
|
16
|
+
*/
|
|
17
|
+
contextId?: string;
|
|
18
|
+
expectedVersion?: ExpectedVersion;
|
|
19
|
+
ext?: Ext;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Success response to persona/profile/reinstate. Type https://trusttasks.org/spec/persona/profile/reinstate/1.0#response. Reinstating an active face is a success that changes nothing and takes no new version.
|
|
23
|
+
*/
|
|
24
|
+
export interface PersonaProfileReinstateResponsePayload {
|
|
25
|
+
profileId: Ulid;
|
|
26
|
+
version: Version;
|
|
27
|
+
ext?: Ext;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
31
|
+
export type { ExpectedVersion, Ext, Ulid, Version };
|
|
32
|
+
|
|
33
|
+
/** Trust Task type URI. */
|
|
34
|
+
export const TYPE_URI = "https://trusttasks.org/spec/persona/profile/reinstate/1.0" as const;
|
|
35
|
+
|
|
36
|
+
/** Stable alias for this specification's request payload shape. */
|
|
37
|
+
export type Payload = PersonaProfileReinstatePayload;
|
|
38
|
+
|
|
39
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
40
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/profile/reinstate/1.0#response" as const;
|
|
41
|
+
|
|
42
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
43
|
+
export type Response = PersonaProfileReinstateResponsePayload;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* This specification's payload schema, as a value.
|
|
47
|
+
*
|
|
48
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
49
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
50
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
51
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
52
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
53
|
+
*/
|
|
54
|
+
export const PAYLOAD_SCHEMA = {
|
|
55
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
56
|
+
"$id": "https://trusttasks.org/spec/persona/profile/reinstate/1.0",
|
|
57
|
+
"title": "Persona Profile Reinstate — payload",
|
|
58
|
+
"description": "Make a retired face wearable again. It is worn nowhere afterwards: the bindings retiring cleared are not restored, because wearing a face in a context is a decision about that context, taken when it is taken.",
|
|
59
|
+
"type": "object",
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"required": [
|
|
62
|
+
"profileId"
|
|
63
|
+
],
|
|
64
|
+
"properties": {
|
|
65
|
+
"profileId": {
|
|
66
|
+
"$ref": "#/$defs/Ulid"
|
|
67
|
+
},
|
|
68
|
+
"contextId": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"minLength": 1,
|
|
71
|
+
"description": "The context a context-local face lives in. Omit for a pool face."
|
|
72
|
+
},
|
|
73
|
+
"expectedVersion": {
|
|
74
|
+
"$ref": "#/$defs/ExpectedVersion"
|
|
75
|
+
},
|
|
76
|
+
"ext": {
|
|
77
|
+
"$ref": "#/$defs/Ext"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"$defs": {
|
|
81
|
+
"Response": {
|
|
82
|
+
"$anchor": "response",
|
|
83
|
+
"title": "Persona Profile Reinstate — response payload",
|
|
84
|
+
"description": "Success response to persona/profile/reinstate. Type https://trusttasks.org/spec/persona/profile/reinstate/1.0#response. Reinstating an active face is a success that changes nothing and takes no new version.",
|
|
85
|
+
"type": "object",
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"required": [
|
|
88
|
+
"profileId",
|
|
89
|
+
"version"
|
|
90
|
+
],
|
|
91
|
+
"properties": {
|
|
92
|
+
"profileId": {
|
|
93
|
+
"$ref": "#/$defs/Ulid"
|
|
94
|
+
},
|
|
95
|
+
"version": {
|
|
96
|
+
"$ref": "#/$defs/Version"
|
|
97
|
+
},
|
|
98
|
+
"ext": {
|
|
99
|
+
"$ref": "#/$defs/Ext"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"Ext": {
|
|
104
|
+
"title": "Ext",
|
|
105
|
+
"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.",
|
|
106
|
+
"type": "object",
|
|
107
|
+
"minProperties": 1,
|
|
108
|
+
"additionalProperties": true,
|
|
109
|
+
"propertyNames": {
|
|
110
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"Version": {
|
|
114
|
+
"title": "Version",
|
|
115
|
+
"description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 1
|
|
118
|
+
},
|
|
119
|
+
"Ulid": {
|
|
120
|
+
"title": "Ulid",
|
|
121
|
+
"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.",
|
|
122
|
+
"type": "string",
|
|
123
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
124
|
+
},
|
|
125
|
+
"ExpectedVersion": {
|
|
126
|
+
"title": "ExpectedVersion",
|
|
127
|
+
"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.",
|
|
128
|
+
"type": "integer",
|
|
129
|
+
"minimum": 0
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
} as const;
|
|
133
|
+
|
|
134
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
135
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
136
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
137
|
+
"$ref": "#/$defs/Response",
|
|
138
|
+
"$defs": {
|
|
139
|
+
"Response": {
|
|
140
|
+
"$anchor": "response",
|
|
141
|
+
"title": "Persona Profile Reinstate — response payload",
|
|
142
|
+
"description": "Success response to persona/profile/reinstate. Type https://trusttasks.org/spec/persona/profile/reinstate/1.0#response. Reinstating an active face is a success that changes nothing and takes no new version.",
|
|
143
|
+
"type": "object",
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"required": [
|
|
146
|
+
"profileId",
|
|
147
|
+
"version"
|
|
148
|
+
],
|
|
149
|
+
"properties": {
|
|
150
|
+
"profileId": {
|
|
151
|
+
"$ref": "#/$defs/Ulid"
|
|
152
|
+
},
|
|
153
|
+
"version": {
|
|
154
|
+
"$ref": "#/$defs/Version"
|
|
155
|
+
},
|
|
156
|
+
"ext": {
|
|
157
|
+
"$ref": "#/$defs/Ext"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"Ext": {
|
|
162
|
+
"title": "Ext",
|
|
163
|
+
"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.",
|
|
164
|
+
"type": "object",
|
|
165
|
+
"minProperties": 1,
|
|
166
|
+
"additionalProperties": true,
|
|
167
|
+
"propertyNames": {
|
|
168
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"Version": {
|
|
172
|
+
"title": "Version",
|
|
173
|
+
"description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
|
|
174
|
+
"type": "integer",
|
|
175
|
+
"minimum": 1
|
|
176
|
+
},
|
|
177
|
+
"Ulid": {
|
|
178
|
+
"title": "Ulid",
|
|
179
|
+
"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.",
|
|
180
|
+
"type": "string",
|
|
181
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
182
|
+
},
|
|
183
|
+
"ExpectedVersion": {
|
|
184
|
+
"title": "ExpectedVersion",
|
|
185
|
+
"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.",
|
|
186
|
+
"type": "integer",
|
|
187
|
+
"minimum": 0
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
} as const;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
194
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
195
|
+
* per-specification and cannot be derived from the document alone, and
|
|
196
|
+
* item 2 needs the schema this carries.
|
|
197
|
+
*/
|
|
198
|
+
export const SPEC = {
|
|
199
|
+
typeUri: TYPE_URI,
|
|
200
|
+
isBearer: false,
|
|
201
|
+
isProofRequired: true,
|
|
202
|
+
isRecipientRequired: true,
|
|
203
|
+
isIssuedAtRequired: true,
|
|
204
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
205
|
+
} as const;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
209
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
210
|
+
* parties (§7.3 item 5).
|
|
211
|
+
*/
|
|
212
|
+
export const RESPONSE_SPEC = {
|
|
213
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
214
|
+
isBearer: false,
|
|
215
|
+
isProofRequired: true,
|
|
216
|
+
isRecipientRequired: true,
|
|
217
|
+
isIssuedAtRequired: true,
|
|
218
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
219
|
+
} as const;
|