@openvtc/trust-tasks 0.28.19 → 0.28.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/_shared/components.d.ts +16 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/index.d.ts +6 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +6 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/vtc/badges/_shared/0.1/badge.d.ts +1 -1
  9. package/dist/vtc/badges/_shared/0.1/badge.d.ts.map +1 -1
  10. package/dist/vtc/badges/awards/list/0.1/payload.d.ts +118 -6
  11. package/dist/vtc/badges/awards/list/0.1/payload.d.ts.map +1 -1
  12. package/dist/vtc/badges/awards/list/0.1/payload.js +64 -2
  13. package/dist/vtc/badges/awards/list/0.1/payload.js.map +1 -1
  14. package/dist/vtc/badges/awards/offer/0.1/payload.d.ts +118 -6
  15. package/dist/vtc/badges/awards/offer/0.1/payload.d.ts.map +1 -1
  16. package/dist/vtc/badges/awards/offer/0.1/payload.js +64 -2
  17. package/dist/vtc/badges/awards/offer/0.1/payload.js.map +1 -1
  18. package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts +118 -6
  19. package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts.map +1 -1
  20. package/dist/vtc/badges/awards/revoke/0.1/payload.js +64 -2
  21. package/dist/vtc/badges/awards/revoke/0.1/payload.js.map +1 -1
  22. package/dist/vtc/badges/awards/share/0.1/payload.d.ts +701 -0
  23. package/dist/vtc/badges/awards/share/0.1/payload.d.ts.map +1 -0
  24. package/dist/vtc/badges/awards/share/0.1/payload.js +406 -0
  25. package/dist/vtc/badges/awards/share/0.1/payload.js.map +1 -0
  26. package/dist/vtc/badges/awards/unshare/0.1/payload.d.ts +701 -0
  27. package/dist/vtc/badges/awards/unshare/0.1/payload.d.ts.map +1 -0
  28. package/dist/vtc/badges/awards/unshare/0.1/payload.js +406 -0
  29. package/dist/vtc/badges/awards/unshare/0.1/payload.js.map +1 -0
  30. package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts +118 -6
  31. package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts.map +1 -1
  32. package/dist/vtc/badges/awards/withdraw/0.1/payload.js +64 -2
  33. package/dist/vtc/badges/awards/withdraw/0.1/payload.js.map +1 -1
  34. package/dist/vtc/badges/kudos/give/0.1/payload.d.ts +118 -6
  35. package/dist/vtc/badges/kudos/give/0.1/payload.d.ts.map +1 -1
  36. package/dist/vtc/badges/kudos/give/0.1/payload.js +64 -2
  37. package/dist/vtc/badges/kudos/give/0.1/payload.js.map +1 -1
  38. package/dist/vtc/badges/kudos/list/0.1/payload.d.ts +118 -6
  39. package/dist/vtc/badges/kudos/list/0.1/payload.d.ts.map +1 -1
  40. package/dist/vtc/badges/kudos/list/0.1/payload.js +64 -2
  41. package/dist/vtc/badges/kudos/list/0.1/payload.js.map +1 -1
  42. package/dist/vtc/badges/mine/accept/0.1/payload.d.ts +118 -6
  43. package/dist/vtc/badges/mine/accept/0.1/payload.d.ts.map +1 -1
  44. package/dist/vtc/badges/mine/accept/0.1/payload.js +64 -2
  45. package/dist/vtc/badges/mine/accept/0.1/payload.js.map +1 -1
  46. package/dist/vtc/badges/mine/decline/0.1/payload.d.ts +118 -6
  47. package/dist/vtc/badges/mine/decline/0.1/payload.d.ts.map +1 -1
  48. package/dist/vtc/badges/mine/decline/0.1/payload.js +64 -2
  49. package/dist/vtc/badges/mine/decline/0.1/payload.js.map +1 -1
  50. package/dist/vtc/badges/mine/list/0.1/payload.d.ts +118 -6
  51. package/dist/vtc/badges/mine/list/0.1/payload.d.ts.map +1 -1
  52. package/dist/vtc/badges/mine/list/0.1/payload.js +64 -2
  53. package/dist/vtc/badges/mine/list/0.1/payload.js.map +1 -1
  54. package/package.json +1 -1
  55. package/src/_shared/components.ts +16 -1
  56. package/src/index.ts +6 -0
  57. package/src/vtc/badges/_shared/0.1/badge.ts +1 -1
  58. package/src/vtc/badges/awards/list/0.1/payload.ts +66 -4
  59. package/src/vtc/badges/awards/offer/0.1/payload.ts +66 -4
  60. package/src/vtc/badges/awards/revoke/0.1/payload.ts +66 -4
  61. package/src/vtc/badges/awards/share/0.1/payload.ts +446 -0
  62. package/src/vtc/badges/awards/unshare/0.1/payload.ts +446 -0
  63. package/src/vtc/badges/awards/withdraw/0.1/payload.ts +66 -4
  64. package/src/vtc/badges/kudos/give/0.1/payload.ts +66 -4
  65. package/src/vtc/badges/kudos/list/0.1/payload.ts +66 -4
  66. package/src/vtc/badges/mine/accept/0.1/payload.ts +66 -4
  67. package/src/vtc/badges/mine/decline/0.1/payload.ts +66 -4
  68. package/src/vtc/badges/mine/list/0.1/payload.ts +66 -4
package/CHANGELOG.md CHANGED
@@ -11,6 +11,37 @@ 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.20 — 2026-11-07
15
+
16
+
17
+ ### Added
18
+
19
+ - **vtc/badges**: Awards/share and awards/unshare — a holder shows an award outside the community (vtc/badges/awards/{share,unshare}/0.1) (#1054)
20
+
21
+ * feat(vtc/badges): awards/share and awards/unshare — a holder shows an award outside the community (vtc/badges/awards/{share,unshare}/0.1)
22
+
23
+ The two tasks the VTC badges design note lists for showing a badge outside
24
+ the community (VTI-BDG-070 – 072), completing the vtc/badges/* 0.1 family.
25
+
26
+ - `vtc/badges/awards/share/0.1`: the holder of an accepted award of a badge
27
+ the community marked `shareableOutside` asks, and the community answers the
28
+ public locations it serves the award at — a verification location that
29
+ answers the credential exactly as issued with its status, and a baked image
30
+ where it serves one. Locations are the community's, unguessable (≥ 128
31
+ bits, never derived from the award), idempotent on a repeat, and disclose
32
+ no other holder nor a count (VTI-BDG-071). They stop serving on unshare,
33
+ take-back, retire and departure. Codes: badgesOff, notFound (unknown,
34
+ another member's, not accepted — alike), notShareable (insideOnly | kudos
35
+ | retired), publicLocationUnavailable.
36
+ - `vtc/badges/awards/unshare/0.1`: stops it; the locations answer as ones
37
+ that never existed; idempotent; not a revocation. Codes: badgesOff,
38
+ notFound.
39
+ - `_shared/0.1/badge.schema.json`: `AwardShare` and the optional
40
+ `Award.shared` (verificationUrl, bakedImageUrl?, since) — additive.
41
+
42
+ Both are acts of the member: a portal key the member authorized for
43
+ `vtc/badges` under auth/oob/grant/0.3 may sign them (VTI-BDG-095).
44
+
14
45
  ## 0.28.19 — 2026-11-06
15
46
 
16
47
 
@@ -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
  */