@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/src/index.ts CHANGED
@@ -3216,6 +3216,12 @@ export import VtcBadgesAwardsOffer_v0_1 = _VtcBadgesAwardsOffer_v0_1;
3216
3216
  import * as _VtcBadgesAwardsRevoke_v0_1 from "./vtc/badges/awards/revoke/0.1/payload.js";
3217
3217
  /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3218
3218
  export import VtcBadgesAwardsRevoke_v0_1 = _VtcBadgesAwardsRevoke_v0_1;
3219
+ import * as _VtcBadgesAwardsShare_v0_1 from "./vtc/badges/awards/share/0.1/payload.js";
3220
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3221
+ export import VtcBadgesAwardsShare_v0_1 = _VtcBadgesAwardsShare_v0_1;
3222
+ import * as _VtcBadgesAwardsUnshare_v0_1 from "./vtc/badges/awards/unshare/0.1/payload.js";
3223
+ /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3224
+ export import VtcBadgesAwardsUnshare_v0_1 = _VtcBadgesAwardsUnshare_v0_1;
3219
3225
  import * as _VtcBadgesAwardsWithdraw_v0_1 from "./vtc/badges/awards/withdraw/0.1/payload.js";
3220
3226
  /** @deprecated The prebuilt specification modules will be removed: pin the tasks you use with the `trust-tasks` CLI, generate them with `@openvtc/trust-tasks-gen`, and import the runtime from `@openvtc/trust-tasks/runtime` (GETTING-STARTED.md). */
3221
3227
  export import VtcBadgesAwardsWithdraw_v0_1 = _VtcBadgesAwardsWithdraw_v0_1;
@@ -20,4 +20,4 @@ export interface BadgeSharedDefinitionsForTheVtcBadgesSpecFamily {
20
20
  * The definitions this shared schema publishes, hoisted to one declaration each.
21
21
  * See "../../../../_shared/components.js".
22
22
  */
23
- export type { Award, AwardId, AwardNote, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeLimits, BadgeName, BadgeSettings, BadgeState, KudosMakers, MyBadge, WallEntry, WallVisibility } from "../../../../_shared/components.js";
23
+ export type { Award, AwardId, AwardNote, AwardShare, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeLimits, BadgeName, BadgeSettings, BadgeState, KudosMakers, MyBadge, WallEntry, WallVisibility } from "../../../../_shared/components.js";
@@ -3,7 +3,7 @@
3
3
  * Source: specs/vtc/badges/awards/list/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Award, AwardId, AwardNote, AwardState, BadgeId, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, VerifiedValue } from "../../../../../_shared/components.js";
6
+ import type { Award, AwardId, AwardNote, AwardShare, AwardState, BadgeId, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, VerifiedValue } from "../../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -57,7 +57,7 @@ export interface VTCBadgesAwardsListResponsePayload {
57
57
  }
58
58
 
59
59
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
60
- export type { Award, AwardId, AwardNote, AwardState, BadgeId, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, VerifiedValue };
60
+ export type { Award, AwardId, AwardNote, AwardShare, AwardState, BadgeId, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, VerifiedValue };
61
61
 
62
62
  /** Trust Task type URI. */
63
63
  export const TYPE_URI = "https://trusttasks.org/spec/vtc/badges/awards/list/0.1" as const;
@@ -334,7 +334,7 @@ export const PAYLOAD_SCHEMA = {
334
334
  },
335
335
  "Award": {
336
336
  "title": "Award",
337
- "description": "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.",
337
+ "description": "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).",
338
338
  "type": "object",
339
339
  "additionalProperties": false,
340
340
  "required": [
@@ -381,11 +381,42 @@ export const PAYLOAD_SCHEMA = {
381
381
  "credentialId": {
382
382
  "$ref": "#/$defs/GroupCredentialId"
383
383
  },
384
+ "shared": {
385
+ "$ref": "#/$defs/AwardShare"
386
+ },
384
387
  "ext": {
385
388
  "$ref": "#/$defs/Ext"
386
389
  }
387
390
  }
388
391
  },
392
+ "AwardShare": {
393
+ "title": "AwardShare",
394
+ "description": "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).",
395
+ "type": "object",
396
+ "additionalProperties": false,
397
+ "required": [
398
+ "verificationUrl",
399
+ "since"
400
+ ],
401
+ "properties": {
402
+ "verificationUrl": {
403
+ "type": "string",
404
+ "format": "uri",
405
+ "maxLength": 2048,
406
+ "description": "The public location that answers the credential and a verification of it."
407
+ },
408
+ "bakedImageUrl": {
409
+ "type": "string",
410
+ "format": "uri",
411
+ "maxLength": 2048,
412
+ "description": "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."
413
+ },
414
+ "since": {
415
+ "type": "string",
416
+ "format": "date-time"
417
+ }
418
+ }
419
+ },
389
420
  "AwardState": {
390
421
  "title": "AwardState",
391
422
  "description": "`offered`: waiting for the recipient. `accepted`: the recipient took it; for a community badge the credential was issued and the membership recorded. `declined`: the recipient declined; nothing was recorded in the group and nothing issued. `withdrawn`: the giver withdrew the offer before a decision. `expired`: the offer lapsed unanswered. `revoked`: taken back after acceptance (VTI-BDG-023).",
@@ -638,7 +669,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
638
669
  },
639
670
  "Award": {
640
671
  "title": "Award",
641
- "description": "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.",
672
+ "description": "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).",
642
673
  "type": "object",
643
674
  "additionalProperties": false,
644
675
  "required": [
@@ -685,11 +716,42 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
685
716
  "credentialId": {
686
717
  "$ref": "#/$defs/GroupCredentialId"
687
718
  },
719
+ "shared": {
720
+ "$ref": "#/$defs/AwardShare"
721
+ },
688
722
  "ext": {
689
723
  "$ref": "#/$defs/Ext"
690
724
  }
691
725
  }
692
726
  },
727
+ "AwardShare": {
728
+ "title": "AwardShare",
729
+ "description": "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).",
730
+ "type": "object",
731
+ "additionalProperties": false,
732
+ "required": [
733
+ "verificationUrl",
734
+ "since"
735
+ ],
736
+ "properties": {
737
+ "verificationUrl": {
738
+ "type": "string",
739
+ "format": "uri",
740
+ "maxLength": 2048,
741
+ "description": "The public location that answers the credential and a verification of it."
742
+ },
743
+ "bakedImageUrl": {
744
+ "type": "string",
745
+ "format": "uri",
746
+ "maxLength": 2048,
747
+ "description": "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."
748
+ },
749
+ "since": {
750
+ "type": "string",
751
+ "format": "date-time"
752
+ }
753
+ }
754
+ },
693
755
  "AwardState": {
694
756
  "title": "AwardState",
695
757
  "description": "`offered`: waiting for the recipient. `accepted`: the recipient took it; for a community badge the credential was issued and the membership recorded. `declined`: the recipient declined; nothing was recorded in the group and nothing issued. `withdrawn`: the giver withdrew the offer before a decision. `expired`: the offer lapsed unanswered. `revoked`: taken back after acceptance (VTI-BDG-023).",
@@ -3,7 +3,7 @@
3
3
  * Source: specs/vtc/badges/awards/offer/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Award, AwardId, AwardNote, AwardState, BadgeId, EntryId, Ext, GroupCredentialId, GroupId } from "../../../../../_shared/components.js";
6
+ import type { Award, AwardId, AwardNote, AwardShare, AwardState, BadgeId, EntryId, Ext, GroupCredentialId, GroupId } from "../../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -57,7 +57,7 @@ export interface VTCBadgesAwardsOfferResponsePayload {
57
57
  }
58
58
 
59
59
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
60
- export type { Award, AwardId, AwardNote, AwardState, BadgeId, EntryId, Ext, GroupCredentialId, GroupId };
60
+ export type { Award, AwardId, AwardNote, AwardShare, AwardState, BadgeId, EntryId, Ext, GroupCredentialId, GroupId };
61
61
 
62
62
  /** Trust Task type URI. */
63
63
  export const TYPE_URI = "https://trusttasks.org/spec/vtc/badges/awards/offer/0.1" as const;
@@ -225,7 +225,7 @@ export const PAYLOAD_SCHEMA = {
225
225
  },
226
226
  "Award": {
227
227
  "title": "Award",
228
- "description": "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.",
228
+ "description": "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).",
229
229
  "type": "object",
230
230
  "additionalProperties": false,
231
231
  "required": [
@@ -272,11 +272,42 @@ export const PAYLOAD_SCHEMA = {
272
272
  "credentialId": {
273
273
  "$ref": "#/$defs/GroupCredentialId"
274
274
  },
275
+ "shared": {
276
+ "$ref": "#/$defs/AwardShare"
277
+ },
275
278
  "ext": {
276
279
  "$ref": "#/$defs/Ext"
277
280
  }
278
281
  }
279
282
  },
283
+ "AwardShare": {
284
+ "title": "AwardShare",
285
+ "description": "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).",
286
+ "type": "object",
287
+ "additionalProperties": false,
288
+ "required": [
289
+ "verificationUrl",
290
+ "since"
291
+ ],
292
+ "properties": {
293
+ "verificationUrl": {
294
+ "type": "string",
295
+ "format": "uri",
296
+ "maxLength": 2048,
297
+ "description": "The public location that answers the credential and a verification of it."
298
+ },
299
+ "bakedImageUrl": {
300
+ "type": "string",
301
+ "format": "uri",
302
+ "maxLength": 2048,
303
+ "description": "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."
304
+ },
305
+ "since": {
306
+ "type": "string",
307
+ "format": "date-time"
308
+ }
309
+ }
310
+ },
280
311
  "AwardState": {
281
312
  "title": "AwardState",
282
313
  "description": "`offered`: waiting for the recipient. `accepted`: the recipient took it; for a community badge the credential was issued and the membership recorded. `declined`: the recipient declined; nothing was recorded in the group and nothing issued. `withdrawn`: the giver withdrew the offer before a decision. `expired`: the offer lapsed unanswered. `revoked`: taken back after acceptance (VTI-BDG-023).",
@@ -400,7 +431,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
400
431
  },
401
432
  "Award": {
402
433
  "title": "Award",
403
- "description": "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.",
434
+ "description": "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).",
404
435
  "type": "object",
405
436
  "additionalProperties": false,
406
437
  "required": [
@@ -447,11 +478,42 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
447
478
  "credentialId": {
448
479
  "$ref": "#/$defs/GroupCredentialId"
449
480
  },
481
+ "shared": {
482
+ "$ref": "#/$defs/AwardShare"
483
+ },
450
484
  "ext": {
451
485
  "$ref": "#/$defs/Ext"
452
486
  }
453
487
  }
454
488
  },
489
+ "AwardShare": {
490
+ "title": "AwardShare",
491
+ "description": "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).",
492
+ "type": "object",
493
+ "additionalProperties": false,
494
+ "required": [
495
+ "verificationUrl",
496
+ "since"
497
+ ],
498
+ "properties": {
499
+ "verificationUrl": {
500
+ "type": "string",
501
+ "format": "uri",
502
+ "maxLength": 2048,
503
+ "description": "The public location that answers the credential and a verification of it."
504
+ },
505
+ "bakedImageUrl": {
506
+ "type": "string",
507
+ "format": "uri",
508
+ "maxLength": 2048,
509
+ "description": "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."
510
+ },
511
+ "since": {
512
+ "type": "string",
513
+ "format": "date-time"
514
+ }
515
+ }
516
+ },
455
517
  "AwardState": {
456
518
  "title": "AwardState",
457
519
  "description": "`offered`: waiting for the recipient. `accepted`: the recipient took it; for a community badge the credential was issued and the membership recorded. `declined`: the recipient declined; nothing was recorded in the group and nothing issued. `withdrawn`: the giver withdrew the offer before a decision. `expired`: the offer lapsed unanswered. `revoked`: taken back after acceptance (VTI-BDG-023).",
@@ -3,7 +3,7 @@
3
3
  * Source: specs/vtc/badges/awards/revoke/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Award, AwardId, AwardNote, AwardState, BadgeId, EntryId, Ext, GroupCredentialId } from "../../../../../_shared/components.js";
6
+ import type { Award, AwardId, AwardNote, AwardShare, AwardState, BadgeId, EntryId, Ext, GroupCredentialId } from "../../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -32,7 +32,7 @@ export interface VTCBadgesAwardsRevokeResponsePayload {
32
32
  }
33
33
 
34
34
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
35
- export type { Award, AwardId, AwardNote, AwardState, BadgeId, EntryId, Ext, GroupCredentialId };
35
+ export type { Award, AwardId, AwardNote, AwardShare, AwardState, BadgeId, EntryId, Ext, GroupCredentialId };
36
36
 
37
37
  /** Trust Task type URI. */
38
38
  export const TYPE_URI = "https://trusttasks.org/spec/vtc/badges/awards/revoke/0.1" as const;
@@ -129,7 +129,7 @@ export const PAYLOAD_SCHEMA = {
129
129
  },
130
130
  "Award": {
131
131
  "title": "Award",
132
- "description": "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.",
132
+ "description": "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).",
133
133
  "type": "object",
134
134
  "additionalProperties": false,
135
135
  "required": [
@@ -176,11 +176,42 @@ export const PAYLOAD_SCHEMA = {
176
176
  "credentialId": {
177
177
  "$ref": "#/$defs/GroupCredentialId"
178
178
  },
179
+ "shared": {
180
+ "$ref": "#/$defs/AwardShare"
181
+ },
179
182
  "ext": {
180
183
  "$ref": "#/$defs/Ext"
181
184
  }
182
185
  }
183
186
  },
187
+ "AwardShare": {
188
+ "title": "AwardShare",
189
+ "description": "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).",
190
+ "type": "object",
191
+ "additionalProperties": false,
192
+ "required": [
193
+ "verificationUrl",
194
+ "since"
195
+ ],
196
+ "properties": {
197
+ "verificationUrl": {
198
+ "type": "string",
199
+ "format": "uri",
200
+ "maxLength": 2048,
201
+ "description": "The public location that answers the credential and a verification of it."
202
+ },
203
+ "bakedImageUrl": {
204
+ "type": "string",
205
+ "format": "uri",
206
+ "maxLength": 2048,
207
+ "description": "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."
208
+ },
209
+ "since": {
210
+ "type": "string",
211
+ "format": "date-time"
212
+ }
213
+ }
214
+ },
184
215
  "AwardState": {
185
216
  "title": "AwardState",
186
217
  "description": "`offered`: waiting for the recipient. `accepted`: the recipient took it; for a community badge the credential was issued and the membership recorded. `declined`: the recipient declined; nothing was recorded in the group and nothing issued. `withdrawn`: the giver withdrew the offer before a decision. `expired`: the offer lapsed unanswered. `revoked`: taken back after acceptance (VTI-BDG-023).",
@@ -265,7 +296,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
265
296
  },
266
297
  "Award": {
267
298
  "title": "Award",
268
- "description": "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.",
299
+ "description": "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).",
269
300
  "type": "object",
270
301
  "additionalProperties": false,
271
302
  "required": [
@@ -312,11 +343,42 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
312
343
  "credentialId": {
313
344
  "$ref": "#/$defs/GroupCredentialId"
314
345
  },
346
+ "shared": {
347
+ "$ref": "#/$defs/AwardShare"
348
+ },
315
349
  "ext": {
316
350
  "$ref": "#/$defs/Ext"
317
351
  }
318
352
  }
319
353
  },
354
+ "AwardShare": {
355
+ "title": "AwardShare",
356
+ "description": "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).",
357
+ "type": "object",
358
+ "additionalProperties": false,
359
+ "required": [
360
+ "verificationUrl",
361
+ "since"
362
+ ],
363
+ "properties": {
364
+ "verificationUrl": {
365
+ "type": "string",
366
+ "format": "uri",
367
+ "maxLength": 2048,
368
+ "description": "The public location that answers the credential and a verification of it."
369
+ },
370
+ "bakedImageUrl": {
371
+ "type": "string",
372
+ "format": "uri",
373
+ "maxLength": 2048,
374
+ "description": "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."
375
+ },
376
+ "since": {
377
+ "type": "string",
378
+ "format": "date-time"
379
+ }
380
+ }
381
+ },
320
382
  "AwardState": {
321
383
  "title": "AwardState",
322
384
  "description": "`offered`: waiting for the recipient. `accepted`: the recipient took it; for a community badge the credential was issued and the membership recorded. `declined`: the recipient declined; nothing was recorded in the group and nothing issued. `withdrawn`: the giver withdrew the offer before a decision. `expired`: the offer lapsed unanswered. `revoked`: taken back after acceptance (VTI-BDG-023).",