@openvtc/trust-tasks 0.28.19 → 0.28.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/_shared/components.d.ts +16 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/step-up/requests/show/0.1/payload.d.ts +458 -0
  5. package/dist/auth/step-up/requests/show/0.1/payload.d.ts.map +1 -0
  6. package/dist/auth/step-up/requests/show/0.1/payload.js +261 -0
  7. package/dist/auth/step-up/requests/show/0.1/payload.js.map +1 -0
  8. package/dist/index.d.ts +9 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +9 -0
  11. package/dist/index.js.map +1 -1
  12. package/dist/vtc/badges/_shared/0.1/badge.d.ts +1 -1
  13. package/dist/vtc/badges/_shared/0.1/badge.d.ts.map +1 -1
  14. package/dist/vtc/badges/awards/list/0.1/payload.d.ts +118 -6
  15. package/dist/vtc/badges/awards/list/0.1/payload.d.ts.map +1 -1
  16. package/dist/vtc/badges/awards/list/0.1/payload.js +64 -2
  17. package/dist/vtc/badges/awards/list/0.1/payload.js.map +1 -1
  18. package/dist/vtc/badges/awards/offer/0.1/payload.d.ts +118 -6
  19. package/dist/vtc/badges/awards/offer/0.1/payload.d.ts.map +1 -1
  20. package/dist/vtc/badges/awards/offer/0.1/payload.js +64 -2
  21. package/dist/vtc/badges/awards/offer/0.1/payload.js.map +1 -1
  22. package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts +118 -6
  23. package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts.map +1 -1
  24. package/dist/vtc/badges/awards/revoke/0.1/payload.js +64 -2
  25. package/dist/vtc/badges/awards/revoke/0.1/payload.js.map +1 -1
  26. package/dist/vtc/badges/awards/share/0.1/payload.d.ts +701 -0
  27. package/dist/vtc/badges/awards/share/0.1/payload.d.ts.map +1 -0
  28. package/dist/vtc/badges/awards/share/0.1/payload.js +406 -0
  29. package/dist/vtc/badges/awards/share/0.1/payload.js.map +1 -0
  30. package/dist/vtc/badges/awards/unshare/0.1/payload.d.ts +701 -0
  31. package/dist/vtc/badges/awards/unshare/0.1/payload.d.ts.map +1 -0
  32. package/dist/vtc/badges/awards/unshare/0.1/payload.js +406 -0
  33. package/dist/vtc/badges/awards/unshare/0.1/payload.js.map +1 -0
  34. package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts +118 -6
  35. package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts.map +1 -1
  36. package/dist/vtc/badges/awards/withdraw/0.1/payload.js +64 -2
  37. package/dist/vtc/badges/awards/withdraw/0.1/payload.js.map +1 -1
  38. package/dist/vtc/badges/kudos/give/0.1/payload.d.ts +118 -6
  39. package/dist/vtc/badges/kudos/give/0.1/payload.d.ts.map +1 -1
  40. package/dist/vtc/badges/kudos/give/0.1/payload.js +64 -2
  41. package/dist/vtc/badges/kudos/give/0.1/payload.js.map +1 -1
  42. package/dist/vtc/badges/kudos/list/0.1/payload.d.ts +118 -6
  43. package/dist/vtc/badges/kudos/list/0.1/payload.d.ts.map +1 -1
  44. package/dist/vtc/badges/kudos/list/0.1/payload.js +64 -2
  45. package/dist/vtc/badges/kudos/list/0.1/payload.js.map +1 -1
  46. package/dist/vtc/badges/mine/accept/0.1/payload.d.ts +118 -6
  47. package/dist/vtc/badges/mine/accept/0.1/payload.d.ts.map +1 -1
  48. package/dist/vtc/badges/mine/accept/0.1/payload.js +64 -2
  49. package/dist/vtc/badges/mine/accept/0.1/payload.js.map +1 -1
  50. package/dist/vtc/badges/mine/decline/0.1/payload.d.ts +118 -6
  51. package/dist/vtc/badges/mine/decline/0.1/payload.d.ts.map +1 -1
  52. package/dist/vtc/badges/mine/decline/0.1/payload.js +64 -2
  53. package/dist/vtc/badges/mine/decline/0.1/payload.js.map +1 -1
  54. package/dist/vtc/badges/mine/list/0.1/payload.d.ts +118 -6
  55. package/dist/vtc/badges/mine/list/0.1/payload.d.ts.map +1 -1
  56. package/dist/vtc/badges/mine/list/0.1/payload.js +64 -2
  57. package/dist/vtc/badges/mine/list/0.1/payload.js.map +1 -1
  58. package/dist/vtc/badges/show/0.1/payload.d.ts +472 -26
  59. package/dist/vtc/badges/show/0.1/payload.d.ts.map +1 -1
  60. package/dist/vtc/badges/show/0.1/payload.js +264 -12
  61. package/dist/vtc/badges/show/0.1/payload.js.map +1 -1
  62. package/package.json +1 -1
  63. package/src/_shared/components.ts +16 -1
  64. package/src/auth/step-up/requests/show/0.1/payload.ts +317 -0
  65. package/src/index.ts +9 -0
  66. package/src/vtc/badges/_shared/0.1/badge.ts +1 -1
  67. package/src/vtc/badges/awards/list/0.1/payload.ts +66 -4
  68. package/src/vtc/badges/awards/offer/0.1/payload.ts +66 -4
  69. package/src/vtc/badges/awards/revoke/0.1/payload.ts +66 -4
  70. package/src/vtc/badges/awards/share/0.1/payload.ts +446 -0
  71. package/src/vtc/badges/awards/unshare/0.1/payload.ts +446 -0
  72. package/src/vtc/badges/awards/withdraw/0.1/payload.ts +66 -4
  73. package/src/vtc/badges/kudos/give/0.1/payload.ts +66 -4
  74. package/src/vtc/badges/kudos/list/0.1/payload.ts +66 -4
  75. package/src/vtc/badges/mine/accept/0.1/payload.ts +66 -4
  76. package/src/vtc/badges/mine/decline/0.1/payload.ts +66 -4
  77. package/src/vtc/badges/mine/list/0.1/payload.ts +66 -4
  78. package/src/vtc/badges/show/0.1/payload.ts +272 -14
package/CHANGELOG.md CHANGED
@@ -11,6 +11,77 @@ The package versions over **its own API** — what a consumer compiles against
11
11
  not over `SPEC.md`. Below 1.0 a breaking change bumps the leading non-zero
12
12
  component.
13
13
 
14
+ ## 0.28.21 — 2026-11-08
15
+
16
+
17
+ ### Added
18
+
19
+ - **vtc/badges**: Show answers the caller's own awards (myAwards), so a holder can share one (#1057)
20
+
21
+ * feat(vtc/badges): show answers the caller's own awards (myAwards), so a holder can share one
22
+
23
+ vtc/badges/awards/share and unshare (#1054) name an award, but no read answered a holder their own accepted award identifiers for a community badge: mine/list carries badges, show only myCount. vtc/badges/show/0.1#response gains the optional myAwards - the caller's own accepted awards of the badge, newest first, each with its shared - and conformance item 4 says so. Additive, on a draft.
24
+
25
+ - **auth/step-up**: Requests/show — the subject's wallet fetches a step-up refused to a delegated producer (auth/step-up/requests/show/0.1) (#1056)
26
+
27
+ A relying party that refuses an operation until its subject steps up carries
28
+ the request inline in the refusal (approve-request/0.5, Inline delivery). That
29
+ only works when the producer of the operation can gather the evidence itself.
30
+ A process acting with a key the subject delegated to it — an assistant, an
31
+ automation — can redeem a recorded step-up but never make one. It cannot
32
+ forward the inline request to the subject's wallet either, because the inline
33
+ request carries no proof.
34
+
35
+ This adds a hand-off by reference. Beside the inline request, the relying
36
+ party MAY carry `details.stepUpHandoff` (`$defs.Handoff`): a single-use handle
37
+ of at least 128 bits, its expiry and this task's Type URI. The person's
38
+ approver agent sends the handle and receives two things:
39
+
40
+ - the relying party's own signed approve-request/0.5, addressed to the
41
+ subject, with the same challenge and binding as the inline request;
42
+ - the operation the step-up is bound to, exactly as received.
43
+
44
+ The agent verifies the proof and shows the operation itself. It recomputes the
45
+ binding where it knows the construction. It then answers with approve-response
46
+ 0.7, signed by the subject's own DID, directly to the relying party. The
47
+ producer resends the identical operation, and the recorded step-up is redeemed.
48
+
49
+ A handle is answered at most once, atomically. Unknown, spent, expired and
50
+ settled handles all return `notFound`. Reading a handle is never part of an
51
+ approval, so a party that sees the handle can spend the read but cannot
52
+ approve.
53
+
54
+ ## 0.28.20 — 2026-11-07
55
+
56
+
57
+ ### Added
58
+
59
+ - **vtc/badges**: Awards/share and awards/unshare — a holder shows an award outside the community (vtc/badges/awards/{share,unshare}/0.1) (#1054)
60
+
61
+ * feat(vtc/badges): awards/share and awards/unshare — a holder shows an award outside the community (vtc/badges/awards/{share,unshare}/0.1)
62
+
63
+ The two tasks the VTC badges design note lists for showing a badge outside
64
+ the community (VTI-BDG-070 – 072), completing the vtc/badges/* 0.1 family.
65
+
66
+ - `vtc/badges/awards/share/0.1`: the holder of an accepted award of a badge
67
+ the community marked `shareableOutside` asks, and the community answers the
68
+ public locations it serves the award at — a verification location that
69
+ answers the credential exactly as issued with its status, and a baked image
70
+ where it serves one. Locations are the community's, unguessable (≥ 128
71
+ bits, never derived from the award), idempotent on a repeat, and disclose
72
+ no other holder nor a count (VTI-BDG-071). They stop serving on unshare,
73
+ take-back, retire and departure. Codes: badgesOff, notFound (unknown,
74
+ another member's, not accepted — alike), notShareable (insideOnly | kudos
75
+ | retired), publicLocationUnavailable.
76
+ - `vtc/badges/awards/unshare/0.1`: stops it; the locations answer as ones
77
+ that never existed; idempotent; not a revocation. Codes: badgesOff,
78
+ notFound.
79
+ - `_shared/0.1/badge.schema.json`: `AwardShare` and the optional
80
+ `Award.shared` (verificationUrl, bakedImageUrl?, since) — additive.
81
+
82
+ Both are acts of the member: a portal key the member authorized for
83
+ `vtc/badges` under auth/oob/grant/0.3 may sign them (VTI-BDG-095).
84
+
14
85
  ## 0.28.19 — 2026-11-06
15
86
 
16
87
 
@@ -5562,7 +5562,7 @@ export interface AutoGrantSweep {
5562
5562
  errors: number;
5563
5563
  }
5564
5564
  /**
5565
- * One giving of a badge to one member. `givenBy` is the giver's directory entry, absent for an award a dynamic badge group's rule made. `note` is shown to the recipient, the giver, the badge's owners and administrators, never to other members. `credentialId` is present on an accepted award of a community badge: the badge credential that evidences it, renewed or re-issued as the badge's regime requires.
5565
+ * One giving of a badge to one member. `givenBy` is the giver's directory entry, absent for an award a dynamic badge group's rule made. `note` is shown to the recipient, the giver, the badge's owners and administrators, never to other members. `credentialId` is present on an accepted award of a community badge: the badge credential that evidences it, renewed or re-issued as the badge's regime requires. `shared` is present on an accepted award of a badge its holders may show outside while its holder shares it (vtc/badges/awards/share).
5566
5566
  */
5567
5567
  export interface Award {
5568
5568
  awardId: AwardId;
@@ -5584,8 +5584,23 @@ export interface Award {
5584
5584
  */
5585
5585
  expiresAt?: string;
5586
5586
  credentialId?: GroupCredentialId;
5587
+ shared?: AwardShare;
5587
5588
  ext?: Ext;
5588
5589
  }
5590
+ /**
5591
+ * Where an accepted award is shown outside the community, by its holder's choice (VTI-BDG-070): the public location that answers a verification of exactly what the credential says, the baked image where the community serves one, and since when. Present only while the holder shares the award; absent once they stop, the award is taken back, the badge is retired or the holder departs. The locations are unguessable and name no other holder (VTI-BDG-071).
5592
+ */
5593
+ export interface AwardShare {
5594
+ /**
5595
+ * The public location that answers the credential and a verification of it.
5596
+ */
5597
+ verificationUrl: string;
5598
+ /**
5599
+ * The badge's picture with the credential baked into it, for a website or an email signature. Absent where the community serves no baked image.
5600
+ */
5601
+ bakedImageUrl?: string;
5602
+ since: string;
5603
+ }
5589
5604
  /**
5590
5605
  * Unencrypted metadata plus the encrypted payload. The KDF and cipher parameters travel in the clear so a reader can decrypt without knowing this specification's defaults.
5591
5606
  */