@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
package/src/index.ts
CHANGED
|
@@ -185,6 +185,7 @@ export * as MessagingStatsShow_v0_1 from "./messaging/stats/show/0.1/payload.js"
|
|
|
185
185
|
export * as PersonaRecordShared_v0_1 from "./persona/_shared/0.1/persona-record.js";
|
|
186
186
|
export * as PersonaAttributeDelete_v1_0 from "./persona/attribute/delete/1.0/payload.js";
|
|
187
187
|
export * as PersonaAttributeList_v1_0 from "./persona/attribute/list/1.0/payload.js";
|
|
188
|
+
export * as PersonaAttributePromote_v1_0 from "./persona/attribute/promote/1.0/payload.js";
|
|
188
189
|
export * as PersonaAttributePurgeVersion_v1_0 from "./persona/attribute/purge-version/1.0/payload.js";
|
|
189
190
|
export * as PersonaAttributePut_v1_0 from "./persona/attribute/put/1.0/payload.js";
|
|
190
191
|
export * as PersonaBindingGet_v1_0 from "./persona/binding/get/1.0/payload.js";
|
|
@@ -207,10 +208,15 @@ export * as PersonaLocalProfileDelete_v1_0 from "./persona/local/profile/delete/
|
|
|
207
208
|
export * as PersonaLocalProfileGet_v1_0 from "./persona/local/profile/get/1.0/payload.js";
|
|
208
209
|
export * as PersonaLocalProfileList_v1_0 from "./persona/local/profile/list/1.0/payload.js";
|
|
209
210
|
export * as PersonaLocalProfilePut_v1_0 from "./persona/local/profile/put/1.0/payload.js";
|
|
211
|
+
export * as PersonaProfileCompose_v1_0 from "./persona/profile/compose/1.0/payload.js";
|
|
210
212
|
export * as PersonaProfileDelete_v1_0 from "./persona/profile/delete/1.0/payload.js";
|
|
211
213
|
export * as PersonaProfileGet_v1_0 from "./persona/profile/get/1.0/payload.js";
|
|
212
214
|
export * as PersonaProfileList_v1_0 from "./persona/profile/list/1.0/payload.js";
|
|
213
215
|
export * as PersonaProfilePut_v1_0 from "./persona/profile/put/1.0/payload.js";
|
|
216
|
+
export * as PersonaProfileReinstate_v1_0 from "./persona/profile/reinstate/1.0/payload.js";
|
|
217
|
+
export * as PersonaProfileRetire_v1_0 from "./persona/profile/retire/1.0/payload.js";
|
|
218
|
+
export * as PersonaProfileTimeline_v1_0 from "./persona/profile/timeline/1.0/payload.js";
|
|
219
|
+
export * as PersonaProfileUsage_v1_0 from "./persona/profile/usage/1.0/payload.js";
|
|
214
220
|
export * as PersonaRenderersList_v1_0 from "./persona/renderers/list/1.0/payload.js";
|
|
215
221
|
export * as PolicyShared_v0_1 from "./policy/_shared/0.1/policy.js";
|
|
216
222
|
export * as PolicyShared_v0_2 from "./policy/_shared/0.2/policy.js";
|
|
@@ -288,6 +294,7 @@ export * as TaskConsentRequest_v0_1 from "./task-consent/request/0.1/payload.js"
|
|
|
288
294
|
export * as TrustCeremonyReceipt_v0_1 from "./trust-ceremony-receipt/0.1/payload.js";
|
|
289
295
|
export * as TrustTaskControl_v0_1 from "./trust-task-control/0.1/payload.js";
|
|
290
296
|
export * as TrustTaskDiscovery_v0_1 from "./trust-task-discovery/0.1/payload.js";
|
|
297
|
+
export * as TrustTaskDiscovery_v0_2 from "./trust-task-discovery/0.2/payload.js";
|
|
291
298
|
export * as TrustTaskError_v0_1 from "./trust-task-error/0.1/payload.js";
|
|
292
299
|
export * as TrustTaskError_v0_2 from "./trust-task-error/0.2/payload.js";
|
|
293
300
|
export * as TrustTaskError_v0_3 from "./trust-task-error/0.3/payload.js";
|
|
@@ -478,6 +485,7 @@ export * as VtcInstallClaimFinish_v0_1 from "./vtc/install/claim/finish/0.1/payl
|
|
|
478
485
|
export * as VtcInstallClaimFinish_v0_2 from "./vtc/install/claim/finish/0.2/payload.js";
|
|
479
486
|
export * as VtcInstallClaimStart_v0_1 from "./vtc/install/claim/start/0.1/payload.js";
|
|
480
487
|
export * as VtcInstallClaimStart_v0_2 from "./vtc/install/claim/start/0.2/payload.js";
|
|
488
|
+
export * as VtcInvitationsDeliver_v0_1 from "./vtc/invitations/deliver/0.1/payload.js";
|
|
481
489
|
export * as VtcInvitationsIssue_v0_1 from "./vtc/invitations/issue/0.1/payload.js";
|
|
482
490
|
export * as VtcInvitationsList_v0_1 from "./vtc/invitations/list/0.1/payload.js";
|
|
483
491
|
export * as VtcInvitationsRevoke_v0_1 from "./vtc/invitations/revoke/0.1/payload.js";
|
|
@@ -20,4 +20,4 @@ export interface PersonaRecordSharedDefinitionsForThePersonaSpecFamily {
|
|
|
20
20
|
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
21
21
|
* See "../../../_shared/components.js".
|
|
22
22
|
*/
|
|
23
|
-
export type { Attribute, ClaimType, ContactDocument, ContactRevision, ExpectedVersion_PersonaV0_1 as ExpectedVersion, FacetColour, Profile, ProfileEntry, ProofRung, Provenance, ReleaseRequirement, ResolvedClaim, Sensitivity, Slot, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../_shared/components.js";
|
|
23
|
+
export type { Attribute, ClaimType, ContactDocument, ContactRevision, ExpectedVersion_PersonaV0_1 as ExpectedVersion, FaceReach, FacetColour, Profile, ProfileEntry, ProofRung, Provenance, ReleaseRequirement, ResolvedClaim, Sensitivity, Slot, Ulid, ValueType, Version_PersonaV0_1 as Version } from "../../../_shared/components.js";
|
|
@@ -220,6 +220,16 @@ export const PAYLOAD_SCHEMA = {
|
|
|
220
220
|
"$ref": "#/$defs/ReleaseRequirement",
|
|
221
221
|
"description": "Set only where the holder decided it explicitly. Absent resolves from the claim-type registry."
|
|
222
222
|
},
|
|
223
|
+
"endorsements": {
|
|
224
|
+
"type": "array",
|
|
225
|
+
"maxItems": 64,
|
|
226
|
+
"uniqueItems": true,
|
|
227
|
+
"items": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"minLength": 1
|
|
230
|
+
},
|
|
231
|
+
"description": "Vault identifiers of credentials in which a third party endorses this value — a colleague vouching for a skill, an employer confirming a title. INVENTORY, not evidence: the value remains whatever its `provenance` says, and a vouched self-assertion is still self-asserted. Folding a vouch into `provenance` would make it render as attested, which is the one thing provenance exists to prevent. Not disclosed with the value; a holder who wants a counterparty to see an endorsement presents the credential itself. Absent when there are none."
|
|
232
|
+
},
|
|
223
233
|
"version": {
|
|
224
234
|
"$ref": "#/$defs/Version"
|
|
225
235
|
},
|
|
@@ -297,7 +307,7 @@ export const PAYLOAD_SCHEMA = {
|
|
|
297
307
|
},
|
|
298
308
|
"Provenance": {
|
|
299
309
|
"title": "Provenance",
|
|
300
|
-
"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.",
|
|
310
|
+
"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.",
|
|
301
311
|
"type": "object",
|
|
302
312
|
"required": [
|
|
303
313
|
"kind"
|
|
@@ -368,6 +378,31 @@ export const PAYLOAD_SCHEMA = {
|
|
|
368
378
|
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
369
379
|
}
|
|
370
380
|
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"additionalProperties": false,
|
|
384
|
+
"required": [
|
|
385
|
+
"kind",
|
|
386
|
+
"source",
|
|
387
|
+
"derivedAt"
|
|
388
|
+
],
|
|
389
|
+
"properties": {
|
|
390
|
+
"kind": {
|
|
391
|
+
"const": "derived"
|
|
392
|
+
},
|
|
393
|
+
"source": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"minLength": 1,
|
|
396
|
+
"maxLength": 64,
|
|
397
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
398
|
+
"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."
|
|
399
|
+
},
|
|
400
|
+
"derivedAt": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"format": "date-time",
|
|
403
|
+
"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."
|
|
404
|
+
}
|
|
405
|
+
}
|
|
371
406
|
}
|
|
372
407
|
]
|
|
373
408
|
},
|
|
@@ -504,6 +539,16 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
504
539
|
"$ref": "#/$defs/ReleaseRequirement",
|
|
505
540
|
"description": "Set only where the holder decided it explicitly. Absent resolves from the claim-type registry."
|
|
506
541
|
},
|
|
542
|
+
"endorsements": {
|
|
543
|
+
"type": "array",
|
|
544
|
+
"maxItems": 64,
|
|
545
|
+
"uniqueItems": true,
|
|
546
|
+
"items": {
|
|
547
|
+
"type": "string",
|
|
548
|
+
"minLength": 1
|
|
549
|
+
},
|
|
550
|
+
"description": "Vault identifiers of credentials in which a third party endorses this value — a colleague vouching for a skill, an employer confirming a title. INVENTORY, not evidence: the value remains whatever its `provenance` says, and a vouched self-assertion is still self-asserted. Folding a vouch into `provenance` would make it render as attested, which is the one thing provenance exists to prevent. Not disclosed with the value; a holder who wants a counterparty to see an endorsement presents the credential itself. Absent when there are none."
|
|
551
|
+
},
|
|
507
552
|
"version": {
|
|
508
553
|
"$ref": "#/$defs/Version"
|
|
509
554
|
},
|
|
@@ -581,7 +626,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
581
626
|
},
|
|
582
627
|
"Provenance": {
|
|
583
628
|
"title": "Provenance",
|
|
584
|
-
"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.",
|
|
629
|
+
"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.",
|
|
585
630
|
"type": "object",
|
|
586
631
|
"required": [
|
|
587
632
|
"kind"
|
|
@@ -652,6 +697,31 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
652
697
|
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
653
698
|
}
|
|
654
699
|
}
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"additionalProperties": false,
|
|
703
|
+
"required": [
|
|
704
|
+
"kind",
|
|
705
|
+
"source",
|
|
706
|
+
"derivedAt"
|
|
707
|
+
],
|
|
708
|
+
"properties": {
|
|
709
|
+
"kind": {
|
|
710
|
+
"const": "derived"
|
|
711
|
+
},
|
|
712
|
+
"source": {
|
|
713
|
+
"type": "string",
|
|
714
|
+
"minLength": 1,
|
|
715
|
+
"maxLength": 64,
|
|
716
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
717
|
+
"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."
|
|
718
|
+
},
|
|
719
|
+
"derivedAt": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"format": "date-time",
|
|
722
|
+
"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."
|
|
723
|
+
}
|
|
724
|
+
}
|
|
655
725
|
}
|
|
656
726
|
]
|
|
657
727
|
},
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/persona/attribute/promote/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext, Ulid, Version_PersonaV0_1 as Version } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Make values a context-local face carries reusable: each named entry's value becomes a pool attribute, and the face — which can no longer live inside one context once it references the pool — moves above contexts, keeping its id and staying worn wherever it was. One-way.
|
|
11
|
+
*/
|
|
12
|
+
export interface PersonaAttributePromotePayload {
|
|
13
|
+
/**
|
|
14
|
+
* The context the local face lives in.
|
|
15
|
+
*/
|
|
16
|
+
contextId: string;
|
|
17
|
+
/**
|
|
18
|
+
* The context-local face.
|
|
19
|
+
*/
|
|
20
|
+
profileId: Ulid;
|
|
21
|
+
/**
|
|
22
|
+
* Zero-based positions, in the face's `entries`, of the values to promote. Positions are meaningful only against the version the producer read, which is why `expectedVersion` is required.
|
|
23
|
+
*
|
|
24
|
+
* @minItems 1
|
|
25
|
+
* @maxItems 64
|
|
26
|
+
*/
|
|
27
|
+
entries: [number, ...number[]];
|
|
28
|
+
/**
|
|
29
|
+
* The local face's version as the producer read it. Required: a position into a face edited since would promote a different value than the holder chose.
|
|
30
|
+
*/
|
|
31
|
+
expectedVersion: Version;
|
|
32
|
+
ext?: Ext;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Success response to persona/attribute/promote. Type https://trusttasks.org/spec/persona/attribute/promote/1.0#response.
|
|
36
|
+
*/
|
|
37
|
+
export interface PersonaAttributePromoteResponsePayload {
|
|
38
|
+
/**
|
|
39
|
+
* Unchanged: the face keeps its id. It is now read through persona/profile/get.
|
|
40
|
+
*/
|
|
41
|
+
profileId: Ulid;
|
|
42
|
+
/**
|
|
43
|
+
* The face's version in the pool.
|
|
44
|
+
*/
|
|
45
|
+
version: Version;
|
|
46
|
+
/**
|
|
47
|
+
* For each promoted position, in request order, the pool attribute the entry now references and whether this promote created it. `created: false` means the holder already kept exactly this value, and the face now shares it with whatever else presents it.
|
|
48
|
+
*
|
|
49
|
+
* @minItems 1
|
|
50
|
+
* @maxItems 64
|
|
51
|
+
*/
|
|
52
|
+
promoted: [
|
|
53
|
+
{
|
|
54
|
+
entry: number;
|
|
55
|
+
attributeId: Ulid;
|
|
56
|
+
created: boolean;
|
|
57
|
+
},
|
|
58
|
+
...{
|
|
59
|
+
entry: number;
|
|
60
|
+
attributeId: Ulid;
|
|
61
|
+
created: boolean;
|
|
62
|
+
}[]
|
|
63
|
+
];
|
|
64
|
+
/**
|
|
65
|
+
* Personas in `contextId` that wore the local face and now wear it from the pool. What they present is unchanged. Absent when none did.
|
|
66
|
+
*
|
|
67
|
+
* @maxItems 256
|
|
68
|
+
*/
|
|
69
|
+
reboundPersonaDids?: string[];
|
|
70
|
+
ext?: Ext;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
74
|
+
export type { Ext, Ulid, Version };
|
|
75
|
+
|
|
76
|
+
/** Trust Task type URI. */
|
|
77
|
+
export const TYPE_URI = "https://trusttasks.org/spec/persona/attribute/promote/1.0" as const;
|
|
78
|
+
|
|
79
|
+
/** Stable alias for this specification's request payload shape. */
|
|
80
|
+
export type Payload = PersonaAttributePromotePayload;
|
|
81
|
+
|
|
82
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
83
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/persona/attribute/promote/1.0#response" as const;
|
|
84
|
+
|
|
85
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
86
|
+
export type Response = PersonaAttributePromoteResponsePayload;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* This specification's payload schema, as a value.
|
|
90
|
+
*
|
|
91
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
92
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
93
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
94
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
95
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
96
|
+
*/
|
|
97
|
+
export const PAYLOAD_SCHEMA = {
|
|
98
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
99
|
+
"$id": "https://trusttasks.org/spec/persona/attribute/promote/1.0",
|
|
100
|
+
"title": "Persona Attribute Promote — payload",
|
|
101
|
+
"description": "Make values a context-local face carries reusable: each named entry's value becomes a pool attribute, and the face — which can no longer live inside one context once it references the pool — moves above contexts, keeping its id and staying worn wherever it was. One-way.",
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": [
|
|
105
|
+
"contextId",
|
|
106
|
+
"profileId",
|
|
107
|
+
"entries",
|
|
108
|
+
"expectedVersion"
|
|
109
|
+
],
|
|
110
|
+
"properties": {
|
|
111
|
+
"contextId": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"minLength": 1,
|
|
114
|
+
"description": "The context the local face lives in."
|
|
115
|
+
},
|
|
116
|
+
"profileId": {
|
|
117
|
+
"$ref": "#/$defs/Ulid",
|
|
118
|
+
"description": "The context-local face."
|
|
119
|
+
},
|
|
120
|
+
"entries": {
|
|
121
|
+
"type": "array",
|
|
122
|
+
"minItems": 1,
|
|
123
|
+
"maxItems": 64,
|
|
124
|
+
"uniqueItems": true,
|
|
125
|
+
"items": {
|
|
126
|
+
"type": "integer",
|
|
127
|
+
"minimum": 0
|
|
128
|
+
},
|
|
129
|
+
"description": "Zero-based positions, in the face's `entries`, of the values to promote. Positions are meaningful only against the version the producer read, which is why `expectedVersion` is required."
|
|
130
|
+
},
|
|
131
|
+
"expectedVersion": {
|
|
132
|
+
"$ref": "#/$defs/Version",
|
|
133
|
+
"description": "The local face's version as the producer read it. Required: a position into a face edited since would promote a different value than the holder chose."
|
|
134
|
+
},
|
|
135
|
+
"ext": {
|
|
136
|
+
"$ref": "#/$defs/Ext"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"$defs": {
|
|
140
|
+
"Response": {
|
|
141
|
+
"$anchor": "response",
|
|
142
|
+
"title": "Persona Attribute Promote — response payload",
|
|
143
|
+
"description": "Success response to persona/attribute/promote. Type https://trusttasks.org/spec/persona/attribute/promote/1.0#response.",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": [
|
|
147
|
+
"profileId",
|
|
148
|
+
"version",
|
|
149
|
+
"promoted"
|
|
150
|
+
],
|
|
151
|
+
"properties": {
|
|
152
|
+
"profileId": {
|
|
153
|
+
"$ref": "#/$defs/Ulid",
|
|
154
|
+
"description": "Unchanged: the face keeps its id. It is now read through persona/profile/get."
|
|
155
|
+
},
|
|
156
|
+
"version": {
|
|
157
|
+
"$ref": "#/$defs/Version",
|
|
158
|
+
"description": "The face's version in the pool."
|
|
159
|
+
},
|
|
160
|
+
"promoted": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"minItems": 1,
|
|
163
|
+
"maxItems": 64,
|
|
164
|
+
"description": "For each promoted position, in request order, the pool attribute the entry now references and whether this promote created it. `created: false` means the holder already kept exactly this value, and the face now shares it with whatever else presents it.",
|
|
165
|
+
"items": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"required": [
|
|
169
|
+
"entry",
|
|
170
|
+
"attributeId",
|
|
171
|
+
"created"
|
|
172
|
+
],
|
|
173
|
+
"properties": {
|
|
174
|
+
"entry": {
|
|
175
|
+
"type": "integer",
|
|
176
|
+
"minimum": 0
|
|
177
|
+
},
|
|
178
|
+
"attributeId": {
|
|
179
|
+
"$ref": "#/$defs/Ulid"
|
|
180
|
+
},
|
|
181
|
+
"created": {
|
|
182
|
+
"type": "boolean"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"reboundPersonaDids": {
|
|
188
|
+
"type": "array",
|
|
189
|
+
"maxItems": 256,
|
|
190
|
+
"items": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"minLength": 1
|
|
193
|
+
},
|
|
194
|
+
"description": "Personas in `contextId` that wore the local face and now wear it from the pool. What they present is unchanged. Absent when none did."
|
|
195
|
+
},
|
|
196
|
+
"ext": {
|
|
197
|
+
"$ref": "#/$defs/Ext"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"Ext": {
|
|
202
|
+
"title": "Ext",
|
|
203
|
+
"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.",
|
|
204
|
+
"type": "object",
|
|
205
|
+
"minProperties": 1,
|
|
206
|
+
"additionalProperties": true,
|
|
207
|
+
"propertyNames": {
|
|
208
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"Ulid": {
|
|
212
|
+
"title": "Ulid",
|
|
213
|
+
"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.",
|
|
214
|
+
"type": "string",
|
|
215
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
216
|
+
},
|
|
217
|
+
"Version": {
|
|
218
|
+
"title": "Version",
|
|
219
|
+
"description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"minimum": 1
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
} as const;
|
|
225
|
+
|
|
226
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
227
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
228
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
229
|
+
"$ref": "#/$defs/Response",
|
|
230
|
+
"$defs": {
|
|
231
|
+
"Response": {
|
|
232
|
+
"$anchor": "response",
|
|
233
|
+
"title": "Persona Attribute Promote — response payload",
|
|
234
|
+
"description": "Success response to persona/attribute/promote. Type https://trusttasks.org/spec/persona/attribute/promote/1.0#response.",
|
|
235
|
+
"type": "object",
|
|
236
|
+
"additionalProperties": false,
|
|
237
|
+
"required": [
|
|
238
|
+
"profileId",
|
|
239
|
+
"version",
|
|
240
|
+
"promoted"
|
|
241
|
+
],
|
|
242
|
+
"properties": {
|
|
243
|
+
"profileId": {
|
|
244
|
+
"$ref": "#/$defs/Ulid",
|
|
245
|
+
"description": "Unchanged: the face keeps its id. It is now read through persona/profile/get."
|
|
246
|
+
},
|
|
247
|
+
"version": {
|
|
248
|
+
"$ref": "#/$defs/Version",
|
|
249
|
+
"description": "The face's version in the pool."
|
|
250
|
+
},
|
|
251
|
+
"promoted": {
|
|
252
|
+
"type": "array",
|
|
253
|
+
"minItems": 1,
|
|
254
|
+
"maxItems": 64,
|
|
255
|
+
"description": "For each promoted position, in request order, the pool attribute the entry now references and whether this promote created it. `created: false` means the holder already kept exactly this value, and the face now shares it with whatever else presents it.",
|
|
256
|
+
"items": {
|
|
257
|
+
"type": "object",
|
|
258
|
+
"additionalProperties": false,
|
|
259
|
+
"required": [
|
|
260
|
+
"entry",
|
|
261
|
+
"attributeId",
|
|
262
|
+
"created"
|
|
263
|
+
],
|
|
264
|
+
"properties": {
|
|
265
|
+
"entry": {
|
|
266
|
+
"type": "integer",
|
|
267
|
+
"minimum": 0
|
|
268
|
+
},
|
|
269
|
+
"attributeId": {
|
|
270
|
+
"$ref": "#/$defs/Ulid"
|
|
271
|
+
},
|
|
272
|
+
"created": {
|
|
273
|
+
"type": "boolean"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"reboundPersonaDids": {
|
|
279
|
+
"type": "array",
|
|
280
|
+
"maxItems": 256,
|
|
281
|
+
"items": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"minLength": 1
|
|
284
|
+
},
|
|
285
|
+
"description": "Personas in `contextId` that wore the local face and now wear it from the pool. What they present is unchanged. Absent when none did."
|
|
286
|
+
},
|
|
287
|
+
"ext": {
|
|
288
|
+
"$ref": "#/$defs/Ext"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"Ext": {
|
|
293
|
+
"title": "Ext",
|
|
294
|
+
"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.",
|
|
295
|
+
"type": "object",
|
|
296
|
+
"minProperties": 1,
|
|
297
|
+
"additionalProperties": true,
|
|
298
|
+
"propertyNames": {
|
|
299
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"Ulid": {
|
|
303
|
+
"title": "Ulid",
|
|
304
|
+
"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.",
|
|
305
|
+
"type": "string",
|
|
306
|
+
"pattern": "^[0-9A-HJKMNP-TV-Z]{26}$"
|
|
307
|
+
},
|
|
308
|
+
"Version": {
|
|
309
|
+
"title": "Version",
|
|
310
|
+
"description": "A value of the store's monotonic write counter. Server-assigned; a producer never chooses one.",
|
|
311
|
+
"type": "integer",
|
|
312
|
+
"minimum": 1
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
} as const;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
319
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
320
|
+
* per-specification and cannot be derived from the document alone, and
|
|
321
|
+
* item 2 needs the schema this carries.
|
|
322
|
+
*/
|
|
323
|
+
export const SPEC = {
|
|
324
|
+
typeUri: TYPE_URI,
|
|
325
|
+
isBearer: false,
|
|
326
|
+
isProofRequired: true,
|
|
327
|
+
isRecipientRequired: true,
|
|
328
|
+
isIssuedAtRequired: true,
|
|
329
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
330
|
+
} as const;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
334
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
335
|
+
* parties (§7.3 item 5).
|
|
336
|
+
*/
|
|
337
|
+
export const RESPONSE_SPEC = {
|
|
338
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
339
|
+
isBearer: false,
|
|
340
|
+
isProofRequired: true,
|
|
341
|
+
isRecipientRequired: true,
|
|
342
|
+
isIssuedAtRequired: true,
|
|
343
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
344
|
+
} as const;
|
|
@@ -27,6 +27,12 @@ export interface PersonaAttributePutPayload {
|
|
|
27
27
|
*/
|
|
28
28
|
label?: string;
|
|
29
29
|
provenance: Provenance;
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
*
|
|
33
|
+
* @maxItems 64
|
|
34
|
+
*/
|
|
35
|
+
endorsements?: string[];
|
|
30
36
|
/**
|
|
31
37
|
* 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.
|
|
32
38
|
*/
|
|
@@ -147,6 +153,16 @@ export const PAYLOAD_SCHEMA = {
|
|
|
147
153
|
"provenance": {
|
|
148
154
|
"$ref": "#/$defs/Provenance"
|
|
149
155
|
},
|
|
156
|
+
"endorsements": {
|
|
157
|
+
"type": "array",
|
|
158
|
+
"maxItems": 64,
|
|
159
|
+
"uniqueItems": true,
|
|
160
|
+
"items": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"minLength": 1
|
|
163
|
+
},
|
|
164
|
+
"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."
|
|
165
|
+
},
|
|
150
166
|
"sensitivity": {
|
|
151
167
|
"$ref": "#/$defs/Sensitivity",
|
|
152
168
|
"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."
|
|
@@ -320,7 +336,7 @@ export const PAYLOAD_SCHEMA = {
|
|
|
320
336
|
},
|
|
321
337
|
"Provenance": {
|
|
322
338
|
"title": "Provenance",
|
|
323
|
-
"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.",
|
|
339
|
+
"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.",
|
|
324
340
|
"type": "object",
|
|
325
341
|
"required": [
|
|
326
342
|
"kind"
|
|
@@ -391,6 +407,31 @@ export const PAYLOAD_SCHEMA = {
|
|
|
391
407
|
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
392
408
|
}
|
|
393
409
|
}
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"additionalProperties": false,
|
|
413
|
+
"required": [
|
|
414
|
+
"kind",
|
|
415
|
+
"source",
|
|
416
|
+
"derivedAt"
|
|
417
|
+
],
|
|
418
|
+
"properties": {
|
|
419
|
+
"kind": {
|
|
420
|
+
"const": "derived"
|
|
421
|
+
},
|
|
422
|
+
"source": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"minLength": 1,
|
|
425
|
+
"maxLength": 64,
|
|
426
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
427
|
+
"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."
|
|
428
|
+
},
|
|
429
|
+
"derivedAt": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"format": "date-time",
|
|
432
|
+
"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."
|
|
433
|
+
}
|
|
434
|
+
}
|
|
394
435
|
}
|
|
395
436
|
]
|
|
396
437
|
},
|
|
@@ -588,7 +629,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
588
629
|
},
|
|
589
630
|
"Provenance": {
|
|
590
631
|
"title": "Provenance",
|
|
591
|
-
"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.",
|
|
632
|
+
"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.",
|
|
592
633
|
"type": "object",
|
|
593
634
|
"required": [
|
|
594
635
|
"kind"
|
|
@@ -659,6 +700,31 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
659
700
|
"description": "When true (the default and the only useful setting), a distinct value is minted for each verifier."
|
|
660
701
|
}
|
|
661
702
|
}
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"additionalProperties": false,
|
|
706
|
+
"required": [
|
|
707
|
+
"kind",
|
|
708
|
+
"source",
|
|
709
|
+
"derivedAt"
|
|
710
|
+
],
|
|
711
|
+
"properties": {
|
|
712
|
+
"kind": {
|
|
713
|
+
"const": "derived"
|
|
714
|
+
},
|
|
715
|
+
"source": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"minLength": 1,
|
|
718
|
+
"maxLength": 64,
|
|
719
|
+
"pattern": "^[a-z][A-Za-z0-9.-]*$",
|
|
720
|
+
"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."
|
|
721
|
+
},
|
|
722
|
+
"derivedAt": {
|
|
723
|
+
"type": "string",
|
|
724
|
+
"format": "date-time",
|
|
725
|
+
"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."
|
|
726
|
+
}
|
|
727
|
+
}
|
|
662
728
|
}
|
|
663
729
|
]
|
|
664
730
|
},
|