@openvtc/trust-tasks 0.19.18 → 0.19.20
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/_shared/components.d.ts +38 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -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/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/set/1.0/payload.d.ts +6 -6
- package/dist/persona/binding/set/1.0/payload.d.ts.map +1 -1
- package/dist/persona/binding/set/1.0/payload.js +2 -3
- 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/profile/compose/1.0/payload.d.ts +31 -3
- package/dist/persona/profile/compose/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/compose/1.0/payload.js +11 -1
- package/dist/persona/profile/compose/1.0/payload.js.map +1 -1
- package/dist/persona/profile/get/1.0/payload.d.ts +230 -6
- package/dist/persona/profile/get/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/get/1.0/payload.js +140 -2
- package/dist/persona/profile/get/1.0/payload.js.map +1 -1
- package/dist/persona/profile/list/1.0/payload.d.ts +230 -6
- package/dist/persona/profile/list/1.0/payload.d.ts.map +1 -1
- package/dist/persona/profile/list/1.0/payload.js +140 -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/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/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/_shared/components.ts +41 -0
- package/src/index.ts +3 -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/put/1.0/payload.ts +68 -2
- package/src/persona/binding/set/1.0/payload.ts +4 -5
- 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/profile/compose/1.0/payload.ts +20 -2
- package/src/persona/profile/get/1.0/payload.ts +142 -4
- package/src/persona/profile/list/1.0/payload.ts +142 -4
- package/src/persona/profile/put/1.0/payload.ts +144 -4
- package/src/persona/profile/timeline/1.0/payload.ts +402 -0
- package/src/persona/profile/usage/1.0/payload.ts +354 -0
- package/src/vtc/invitations/deliver/0.1/payload.ts +234 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/persona/profile/list/1.0/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { ClaimType, Ext, Profile, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
|
|
6
|
+
import type { ClaimType, Ext, FaceReach, Profile, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -37,7 +37,7 @@ export interface PersonaProfileListResponsePayload {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
40
|
-
export type { ClaimType, Ext, Profile, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version };
|
|
40
|
+
export type { ClaimType, Ext, FaceReach, Profile, ProfileEntry, ProofRung, Provenance, Slot, Ulid, ValueType, Version };
|
|
41
41
|
|
|
42
42
|
/** Trust Task type URI. */
|
|
43
43
|
export const TYPE_URI = "https://trusttasks.org/spec/persona/profile/list/1.0" as const;
|
|
@@ -155,6 +155,9 @@ export const PAYLOAD_SCHEMA = {
|
|
|
155
155
|
"$ref": "#/$defs/ProfileEntry"
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
|
+
"reach": {
|
|
159
|
+
"$ref": "#/$defs/FaceReach"
|
|
160
|
+
},
|
|
158
161
|
"status": {
|
|
159
162
|
"type": "string",
|
|
160
163
|
"enum": [
|
|
@@ -197,6 +200,47 @@ export const PAYLOAD_SCHEMA = {
|
|
|
197
200
|
"type": "integer",
|
|
198
201
|
"minimum": 1
|
|
199
202
|
},
|
|
203
|
+
"FaceReach": {
|
|
204
|
+
"title": "FaceReach",
|
|
205
|
+
"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.",
|
|
206
|
+
"oneOf": [
|
|
207
|
+
{
|
|
208
|
+
"type": "object",
|
|
209
|
+
"additionalProperties": false,
|
|
210
|
+
"required": [
|
|
211
|
+
"kind"
|
|
212
|
+
],
|
|
213
|
+
"properties": {
|
|
214
|
+
"kind": {
|
|
215
|
+
"const": "anywhere"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "object",
|
|
221
|
+
"additionalProperties": false,
|
|
222
|
+
"required": [
|
|
223
|
+
"kind",
|
|
224
|
+
"contextIds"
|
|
225
|
+
],
|
|
226
|
+
"properties": {
|
|
227
|
+
"kind": {
|
|
228
|
+
"const": "only"
|
|
229
|
+
},
|
|
230
|
+
"contextIds": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"minItems": 1,
|
|
233
|
+
"maxItems": 256,
|
|
234
|
+
"uniqueItems": true,
|
|
235
|
+
"items": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"minLength": 1
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
200
244
|
"ProfileEntry": {
|
|
201
245
|
"title": "ProfileEntry",
|
|
202
246
|
"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.",
|
|
@@ -311,7 +355,7 @@ export const PAYLOAD_SCHEMA = {
|
|
|
311
355
|
},
|
|
312
356
|
"Provenance": {
|
|
313
357
|
"title": "Provenance",
|
|
314
|
-
"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.",
|
|
358
|
+
"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.",
|
|
315
359
|
"type": "object",
|
|
316
360
|
"required": [
|
|
317
361
|
"kind"
|
|
@@ -382,6 +426,31 @@ export const PAYLOAD_SCHEMA = {
|
|
|
382
426
|
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
383
427
|
}
|
|
384
428
|
}
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"additionalProperties": false,
|
|
432
|
+
"required": [
|
|
433
|
+
"kind",
|
|
434
|
+
"source",
|
|
435
|
+
"derivedAt"
|
|
436
|
+
],
|
|
437
|
+
"properties": {
|
|
438
|
+
"kind": {
|
|
439
|
+
"const": "derived"
|
|
440
|
+
},
|
|
441
|
+
"source": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"minLength": 1,
|
|
444
|
+
"maxLength": 64,
|
|
445
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
446
|
+
"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."
|
|
447
|
+
},
|
|
448
|
+
"derivedAt": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"format": "date-time",
|
|
451
|
+
"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."
|
|
452
|
+
}
|
|
453
|
+
}
|
|
385
454
|
}
|
|
386
455
|
]
|
|
387
456
|
},
|
|
@@ -496,6 +565,9 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
496
565
|
"$ref": "#/$defs/ProfileEntry"
|
|
497
566
|
}
|
|
498
567
|
},
|
|
568
|
+
"reach": {
|
|
569
|
+
"$ref": "#/$defs/FaceReach"
|
|
570
|
+
},
|
|
499
571
|
"status": {
|
|
500
572
|
"type": "string",
|
|
501
573
|
"enum": [
|
|
@@ -538,6 +610,47 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
538
610
|
"type": "integer",
|
|
539
611
|
"minimum": 1
|
|
540
612
|
},
|
|
613
|
+
"FaceReach": {
|
|
614
|
+
"title": "FaceReach",
|
|
615
|
+
"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.",
|
|
616
|
+
"oneOf": [
|
|
617
|
+
{
|
|
618
|
+
"type": "object",
|
|
619
|
+
"additionalProperties": false,
|
|
620
|
+
"required": [
|
|
621
|
+
"kind"
|
|
622
|
+
],
|
|
623
|
+
"properties": {
|
|
624
|
+
"kind": {
|
|
625
|
+
"const": "anywhere"
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"type": "object",
|
|
631
|
+
"additionalProperties": false,
|
|
632
|
+
"required": [
|
|
633
|
+
"kind",
|
|
634
|
+
"contextIds"
|
|
635
|
+
],
|
|
636
|
+
"properties": {
|
|
637
|
+
"kind": {
|
|
638
|
+
"const": "only"
|
|
639
|
+
},
|
|
640
|
+
"contextIds": {
|
|
641
|
+
"type": "array",
|
|
642
|
+
"minItems": 1,
|
|
643
|
+
"maxItems": 256,
|
|
644
|
+
"uniqueItems": true,
|
|
645
|
+
"items": {
|
|
646
|
+
"type": "string",
|
|
647
|
+
"minLength": 1
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
]
|
|
653
|
+
},
|
|
541
654
|
"ProfileEntry": {
|
|
542
655
|
"title": "ProfileEntry",
|
|
543
656
|
"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.",
|
|
@@ -652,7 +765,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
652
765
|
},
|
|
653
766
|
"Provenance": {
|
|
654
767
|
"title": "Provenance",
|
|
655
|
-
"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.",
|
|
768
|
+
"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.",
|
|
656
769
|
"type": "object",
|
|
657
770
|
"required": [
|
|
658
771
|
"kind"
|
|
@@ -723,6 +836,31 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
723
836
|
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
724
837
|
}
|
|
725
838
|
}
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"additionalProperties": false,
|
|
842
|
+
"required": [
|
|
843
|
+
"kind",
|
|
844
|
+
"source",
|
|
845
|
+
"derivedAt"
|
|
846
|
+
],
|
|
847
|
+
"properties": {
|
|
848
|
+
"kind": {
|
|
849
|
+
"const": "derived"
|
|
850
|
+
},
|
|
851
|
+
"source": {
|
|
852
|
+
"type": "string",
|
|
853
|
+
"minLength": 1,
|
|
854
|
+
"maxLength": 64,
|
|
855
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
856
|
+
"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."
|
|
857
|
+
},
|
|
858
|
+
"derivedAt": {
|
|
859
|
+
"type": "string",
|
|
860
|
+
"format": "date-time",
|
|
861
|
+
"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."
|
|
862
|
+
}
|
|
863
|
+
}
|
|
726
864
|
}
|
|
727
865
|
]
|
|
728
866
|
},
|
|
@@ -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
|
},
|