@openvtc/trust-tasks 0.22.2 → 0.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/webvh/dids/create/1.1/payload.d.ts +834 -0
- package/dist/vta/webvh/dids/create/1.1/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/create/1.1/payload.js +415 -0
- package/dist/vta/webvh/dids/create/1.1/payload.js.map +1 -0
- package/dist/vtc/members/step-up-passkey-notice/0.1/payload.d.ts +176 -0
- package/dist/vtc/members/step-up-passkey-notice/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/members/step-up-passkey-notice/0.1/payload.js +95 -0
- package/dist/vtc/members/step-up-passkey-notice/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/vta/webvh/dids/create/1.1/payload.ts +570 -0
- package/src/vtc/members/step-up-passkey-notice/0.1/payload.ts +137 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/members/step-up-passkey-notice/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/members/step-up-passkey-notice/0.1";
|
|
7
|
+
/**
|
|
8
|
+
* This specification's payload schema, as a value.
|
|
9
|
+
*
|
|
10
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
11
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
12
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
13
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
14
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
15
|
+
*/
|
|
16
|
+
export const PAYLOAD_SCHEMA = {
|
|
17
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18
|
+
"$id": "https://trusttasks.org/spec/vtc/members/step-up-passkey-notice/0.1",
|
|
19
|
+
"title": "VTC Members — Step-up Passkey Notice — payload",
|
|
20
|
+
"description": "The VTC tells a member that a step-up passkey was enrolled for them or revoked from them, naming who acted and when. Unsolicited: the member did not ask, and may be offline.",
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"event",
|
|
25
|
+
"did",
|
|
26
|
+
"credentialId",
|
|
27
|
+
"by",
|
|
28
|
+
"at"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"event": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": [
|
|
34
|
+
"enrolled",
|
|
35
|
+
"revoked"
|
|
36
|
+
],
|
|
37
|
+
"description": "`enrolled` — a step-up passkey (auth/passkey/enroll/invite or auth/passkey/enroll/finish, purpose stepUp) is now bound to the member. `revoked` — one was unbound (auth/passkey/revoke/finish)."
|
|
38
|
+
},
|
|
39
|
+
"did": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1,
|
|
42
|
+
"description": "The member's own DID — the notice's recipient. Carried in the payload as well as the envelope so that a forwarded notice, detached from its transport, still names its subject."
|
|
43
|
+
},
|
|
44
|
+
"credentialId": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"description": "Durable identifier of the step-up credential, as auth/passkey/revoke/start and auth/passkey/admin-list carry it: opaque, non-secret metadata, never key material. Lets the member recognise or distinguish a credential without disclosing anything that would help an attacker."
|
|
48
|
+
},
|
|
49
|
+
"by": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 1,
|
|
52
|
+
"description": "Who acted: the member themselves (equal to `did`) when they enrolled or revoked it on their own session, or an administrator's DID when they invited the enrollment or revoked for the member. A `by` other than `did` is the signal this task exists to carry — act on someone else's behalf is exactly the account-takeover shape a silent change would hide."
|
|
53
|
+
},
|
|
54
|
+
"at": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"format": "date-time",
|
|
57
|
+
"description": "When the event took effect at the VTC — not when the notice was sent, which differs whenever the member was offline."
|
|
58
|
+
},
|
|
59
|
+
"reason": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"maxLength": 1024,
|
|
62
|
+
"description": "The acting administrator's stated reason, verbatim, when one was given. Absent rather than empty when none was: a community that chose not to explain is itself information. Never populated for a member acting on their own credential — they already know why."
|
|
63
|
+
},
|
|
64
|
+
"ext": {
|
|
65
|
+
"$ref": "#/$defs/Ext"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"$defs": {
|
|
69
|
+
"Ext": {
|
|
70
|
+
"title": "Ext",
|
|
71
|
+
"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.",
|
|
72
|
+
"type": "object",
|
|
73
|
+
"minProperties": 1,
|
|
74
|
+
"additionalProperties": true,
|
|
75
|
+
"propertyNames": {
|
|
76
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
83
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
84
|
+
* per-specification and cannot be derived from the document alone, and
|
|
85
|
+
* item 2 needs the schema this carries.
|
|
86
|
+
*/
|
|
87
|
+
export const SPEC = {
|
|
88
|
+
typeUri: TYPE_URI,
|
|
89
|
+
isBearer: false,
|
|
90
|
+
isProofRequired: true,
|
|
91
|
+
isRecipientRequired: true,
|
|
92
|
+
isIssuedAtRequired: true,
|
|
93
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/members/step-up-passkey-notice/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,oEAA6E,CAAC;AAKtG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,oEAAoE;IAC3E,OAAO,EAAE,gDAAgD;IACzD,aAAa,EAAE,+KAA+K;IAC9L,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,OAAO;QACP,KAAK;QACL,cAAc;QACd,IAAI;QACJ,IAAI;KACL;IACD,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,UAAU;gBACV,SAAS;aACV;YACD,aAAa,EAAE,iMAAiM;SACjN;QACD,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,iLAAiL;SACjM;QACD,cAAc,EAAE;YACd,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,kRAAkR;SAClS;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,iWAAiW;SACjX;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,WAAW;YACrB,aAAa,EAAE,sHAAsH;SACtI;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,IAAI;YACjB,aAAa,EAAE,mQAAmQ;SACnR;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -564,6 +564,7 @@ export * as VtaWebvhAgentNameList_v1_0 from "./vta/webvh/agent-name/list/1.0/pay
|
|
|
564
564
|
export * as VtaWebvhAgentNameRemove_v1_0 from "./vta/webvh/agent-name/remove/1.0/payload.js";
|
|
565
565
|
export * as VtaWebvhAgentNameSet_v1_0 from "./vta/webvh/agent-name/set/1.0/payload.js";
|
|
566
566
|
export * as VtaWebvhDidsCreate_v1_0 from "./vta/webvh/dids/create/1.0/payload.js";
|
|
567
|
+
export * as VtaWebvhDidsCreate_v1_1 from "./vta/webvh/dids/create/1.1/payload.js";
|
|
567
568
|
export * as VtaWebvhDidsDelete_v1_0 from "./vta/webvh/dids/delete/1.0/payload.js";
|
|
568
569
|
export * as VtaWebvhDidsGet_v1_0 from "./vta/webvh/dids/get/1.0/payload.js";
|
|
569
570
|
export * as VtaWebvhDidsKeysAdd_v1_0 from "./vta/webvh/dids/keys/add/1.0/payload.js";
|
|
@@ -670,6 +671,7 @@ export * as VtcMembersSelfRemoveReceipt_v0_1 from "./vtc/members/self-remove-rec
|
|
|
670
671
|
export * as VtcMembersSelfRemove_v0_1 from "./vtc/members/self-remove/0.1/payload.js";
|
|
671
672
|
export * as VtcMembersShow_v0_1 from "./vtc/members/show/0.1/payload.js";
|
|
672
673
|
export * as VtcMembersSolicitVmc_v0_1 from "./vtc/members/solicit-vmc/0.1/payload.js";
|
|
674
|
+
export * as VtcMembersStepUpPasskeyNotice_v0_1 from "./vtc/members/step-up-passkey-notice/0.1/payload.js";
|
|
673
675
|
export * as VtcMembersUpdate_v0_1 from "./vtc/members/update/0.1/payload.js";
|
|
674
676
|
export * as VtcMembersVmc_v0_1 from "./vtc/members/vmc/0.1/payload.js";
|
|
675
677
|
export * as VtcPoliciesTest_v0_1 from "./vtc/policies/test/0.1/payload.js";
|