@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
@@ -3,7 +3,7 @@
3
3
  * Source: specs/vtc/badges/kudos/give/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
  /**
@@ -36,7 +36,7 @@ export interface VTCBadgesKudosGiveResponsePayload {
36
36
  }
37
37
 
38
38
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
39
- export type { Award, AwardId, AwardNote, AwardState, BadgeId, EntryId, Ext, GroupCredentialId };
39
+ export type { Award, AwardId, AwardNote, AwardShare, AwardState, BadgeId, EntryId, Ext, GroupCredentialId };
40
40
 
41
41
  /** Trust Task type URI. */
42
42
  export const TYPE_URI = "https://trusttasks.org/spec/vtc/badges/kudos/give/0.1" as const;
@@ -135,7 +135,7 @@ export const PAYLOAD_SCHEMA = {
135
135
  },
136
136
  "Award": {
137
137
  "title": "Award",
138
- "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.",
138
+ "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).",
139
139
  "type": "object",
140
140
  "additionalProperties": false,
141
141
  "required": [
@@ -182,11 +182,42 @@ export const PAYLOAD_SCHEMA = {
182
182
  "credentialId": {
183
183
  "$ref": "#/$defs/GroupCredentialId"
184
184
  },
185
+ "shared": {
186
+ "$ref": "#/$defs/AwardShare"
187
+ },
185
188
  "ext": {
186
189
  "$ref": "#/$defs/Ext"
187
190
  }
188
191
  }
189
192
  },
193
+ "AwardShare": {
194
+ "title": "AwardShare",
195
+ "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).",
196
+ "type": "object",
197
+ "additionalProperties": false,
198
+ "required": [
199
+ "verificationUrl",
200
+ "since"
201
+ ],
202
+ "properties": {
203
+ "verificationUrl": {
204
+ "type": "string",
205
+ "format": "uri",
206
+ "maxLength": 2048,
207
+ "description": "The public location that answers the credential and a verification of it."
208
+ },
209
+ "bakedImageUrl": {
210
+ "type": "string",
211
+ "format": "uri",
212
+ "maxLength": 2048,
213
+ "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."
214
+ },
215
+ "since": {
216
+ "type": "string",
217
+ "format": "date-time"
218
+ }
219
+ }
220
+ },
190
221
  "AwardState": {
191
222
  "title": "AwardState",
192
223
  "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).",
@@ -271,7 +302,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
271
302
  },
272
303
  "Award": {
273
304
  "title": "Award",
274
- "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.",
305
+ "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).",
275
306
  "type": "object",
276
307
  "additionalProperties": false,
277
308
  "required": [
@@ -318,11 +349,42 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
318
349
  "credentialId": {
319
350
  "$ref": "#/$defs/GroupCredentialId"
320
351
  },
352
+ "shared": {
353
+ "$ref": "#/$defs/AwardShare"
354
+ },
321
355
  "ext": {
322
356
  "$ref": "#/$defs/Ext"
323
357
  }
324
358
  }
325
359
  },
360
+ "AwardShare": {
361
+ "title": "AwardShare",
362
+ "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).",
363
+ "type": "object",
364
+ "additionalProperties": false,
365
+ "required": [
366
+ "verificationUrl",
367
+ "since"
368
+ ],
369
+ "properties": {
370
+ "verificationUrl": {
371
+ "type": "string",
372
+ "format": "uri",
373
+ "maxLength": 2048,
374
+ "description": "The public location that answers the credential and a verification of it."
375
+ },
376
+ "bakedImageUrl": {
377
+ "type": "string",
378
+ "format": "uri",
379
+ "maxLength": 2048,
380
+ "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."
381
+ },
382
+ "since": {
383
+ "type": "string",
384
+ "format": "date-time"
385
+ }
386
+ }
387
+ },
326
388
  "AwardState": {
327
389
  "title": "AwardState",
328
390
  "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/kudos/list/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Award, AwardId, AwardNote, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, VerifiedValue } from "../../../../../_shared/components.js";
6
+ import type { Award, AwardId, AwardNote, AwardShare, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, VerifiedValue } from "../../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -73,7 +73,7 @@ export interface KudosItem {
73
73
  }
74
74
 
75
75
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
76
- export type { Award, AwardId, AwardNote, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, VerifiedValue };
76
+ export type { Award, AwardId, AwardNote, AwardShare, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, VerifiedValue };
77
77
 
78
78
  /** Trust Task type URI. */
79
79
  export const TYPE_URI = "https://trusttasks.org/spec/vtc/badges/kudos/list/0.1" as const;
@@ -516,7 +516,7 @@ export const PAYLOAD_SCHEMA = {
516
516
  },
517
517
  "Award": {
518
518
  "title": "Award",
519
- "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.",
519
+ "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).",
520
520
  "type": "object",
521
521
  "additionalProperties": false,
522
522
  "required": [
@@ -563,11 +563,42 @@ export const PAYLOAD_SCHEMA = {
563
563
  "credentialId": {
564
564
  "$ref": "#/$defs/GroupCredentialId"
565
565
  },
566
+ "shared": {
567
+ "$ref": "#/$defs/AwardShare"
568
+ },
566
569
  "ext": {
567
570
  "$ref": "#/$defs/Ext"
568
571
  }
569
572
  }
570
573
  },
574
+ "AwardShare": {
575
+ "title": "AwardShare",
576
+ "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).",
577
+ "type": "object",
578
+ "additionalProperties": false,
579
+ "required": [
580
+ "verificationUrl",
581
+ "since"
582
+ ],
583
+ "properties": {
584
+ "verificationUrl": {
585
+ "type": "string",
586
+ "format": "uri",
587
+ "maxLength": 2048,
588
+ "description": "The public location that answers the credential and a verification of it."
589
+ },
590
+ "bakedImageUrl": {
591
+ "type": "string",
592
+ "format": "uri",
593
+ "maxLength": 2048,
594
+ "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."
595
+ },
596
+ "since": {
597
+ "type": "string",
598
+ "format": "date-time"
599
+ }
600
+ }
601
+ },
571
602
  "AwardState": {
572
603
  "title": "AwardState",
573
604
  "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).",
@@ -962,7 +993,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
962
993
  },
963
994
  "Award": {
964
995
  "title": "Award",
965
- "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.",
996
+ "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).",
966
997
  "type": "object",
967
998
  "additionalProperties": false,
968
999
  "required": [
@@ -1009,11 +1040,42 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
1009
1040
  "credentialId": {
1010
1041
  "$ref": "#/$defs/GroupCredentialId"
1011
1042
  },
1043
+ "shared": {
1044
+ "$ref": "#/$defs/AwardShare"
1045
+ },
1012
1046
  "ext": {
1013
1047
  "$ref": "#/$defs/Ext"
1014
1048
  }
1015
1049
  }
1016
1050
  },
1051
+ "AwardShare": {
1052
+ "title": "AwardShare",
1053
+ "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).",
1054
+ "type": "object",
1055
+ "additionalProperties": false,
1056
+ "required": [
1057
+ "verificationUrl",
1058
+ "since"
1059
+ ],
1060
+ "properties": {
1061
+ "verificationUrl": {
1062
+ "type": "string",
1063
+ "format": "uri",
1064
+ "maxLength": 2048,
1065
+ "description": "The public location that answers the credential and a verification of it."
1066
+ },
1067
+ "bakedImageUrl": {
1068
+ "type": "string",
1069
+ "format": "uri",
1070
+ "maxLength": 2048,
1071
+ "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."
1072
+ },
1073
+ "since": {
1074
+ "type": "string",
1075
+ "format": "date-time"
1076
+ }
1077
+ }
1078
+ },
1017
1079
  "AwardState": {
1018
1080
  "title": "AwardState",
1019
1081
  "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/mine/accept/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Award, AwardId, AwardNote, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryId, Ext, GroupCredentialId, GroupId, MyBadge } from "../../../../../_shared/components.js";
6
+ import type { Award, AwardId, AwardNote, AwardShare, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryId, Ext, GroupCredentialId, GroupId, MyBadge } from "../../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -29,7 +29,7 @@ export interface VTCBadgesMineAcceptResponsePayload {
29
29
  }
30
30
 
31
31
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
32
- export type { Award, AwardId, AwardNote, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryId, Ext, GroupCredentialId, GroupId, MyBadge };
32
+ export type { Award, AwardId, AwardNote, AwardShare, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryId, Ext, GroupCredentialId, GroupId, MyBadge };
33
33
 
34
34
  /** Trust Task type URI. */
35
35
  export const TYPE_URI = "https://trusttasks.org/spec/vtc/badges/mine/accept/0.1" as const;
@@ -365,7 +365,7 @@ export const PAYLOAD_SCHEMA = {
365
365
  },
366
366
  "Award": {
367
367
  "title": "Award",
368
- "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.",
368
+ "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).",
369
369
  "type": "object",
370
370
  "additionalProperties": false,
371
371
  "required": [
@@ -412,11 +412,42 @@ export const PAYLOAD_SCHEMA = {
412
412
  "credentialId": {
413
413
  "$ref": "#/$defs/GroupCredentialId"
414
414
  },
415
+ "shared": {
416
+ "$ref": "#/$defs/AwardShare"
417
+ },
415
418
  "ext": {
416
419
  "$ref": "#/$defs/Ext"
417
420
  }
418
421
  }
419
422
  },
423
+ "AwardShare": {
424
+ "title": "AwardShare",
425
+ "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).",
426
+ "type": "object",
427
+ "additionalProperties": false,
428
+ "required": [
429
+ "verificationUrl",
430
+ "since"
431
+ ],
432
+ "properties": {
433
+ "verificationUrl": {
434
+ "type": "string",
435
+ "format": "uri",
436
+ "maxLength": 2048,
437
+ "description": "The public location that answers the credential and a verification of it."
438
+ },
439
+ "bakedImageUrl": {
440
+ "type": "string",
441
+ "format": "uri",
442
+ "maxLength": 2048,
443
+ "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."
444
+ },
445
+ "since": {
446
+ "type": "string",
447
+ "format": "date-time"
448
+ }
449
+ }
450
+ },
420
451
  "AwardState": {
421
452
  "title": "AwardState",
422
453
  "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).",
@@ -729,7 +760,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
729
760
  },
730
761
  "Award": {
731
762
  "title": "Award",
732
- "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.",
763
+ "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).",
733
764
  "type": "object",
734
765
  "additionalProperties": false,
735
766
  "required": [
@@ -776,11 +807,42 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
776
807
  "credentialId": {
777
808
  "$ref": "#/$defs/GroupCredentialId"
778
809
  },
810
+ "shared": {
811
+ "$ref": "#/$defs/AwardShare"
812
+ },
779
813
  "ext": {
780
814
  "$ref": "#/$defs/Ext"
781
815
  }
782
816
  }
783
817
  },
818
+ "AwardShare": {
819
+ "title": "AwardShare",
820
+ "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).",
821
+ "type": "object",
822
+ "additionalProperties": false,
823
+ "required": [
824
+ "verificationUrl",
825
+ "since"
826
+ ],
827
+ "properties": {
828
+ "verificationUrl": {
829
+ "type": "string",
830
+ "format": "uri",
831
+ "maxLength": 2048,
832
+ "description": "The public location that answers the credential and a verification of it."
833
+ },
834
+ "bakedImageUrl": {
835
+ "type": "string",
836
+ "format": "uri",
837
+ "maxLength": 2048,
838
+ "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."
839
+ },
840
+ "since": {
841
+ "type": "string",
842
+ "format": "date-time"
843
+ }
844
+ }
845
+ },
784
846
  "AwardState": {
785
847
  "title": "AwardState",
786
848
  "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/mine/decline/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
  /**
@@ -28,7 +28,7 @@ export interface VTCBadgesMineDeclineResponsePayload {
28
28
  }
29
29
 
30
30
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
31
- export type { Award, AwardId, AwardNote, AwardState, BadgeId, EntryId, Ext, GroupCredentialId };
31
+ export type { Award, AwardId, AwardNote, AwardShare, AwardState, BadgeId, EntryId, Ext, GroupCredentialId };
32
32
 
33
33
  /** Trust Task type URI. */
34
34
  export const TYPE_URI = "https://trusttasks.org/spec/vtc/badges/mine/decline/0.1" as const;
@@ -118,7 +118,7 @@ export const PAYLOAD_SCHEMA = {
118
118
  },
119
119
  "Award": {
120
120
  "title": "Award",
121
- "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.",
121
+ "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).",
122
122
  "type": "object",
123
123
  "additionalProperties": false,
124
124
  "required": [
@@ -165,11 +165,42 @@ export const PAYLOAD_SCHEMA = {
165
165
  "credentialId": {
166
166
  "$ref": "#/$defs/GroupCredentialId"
167
167
  },
168
+ "shared": {
169
+ "$ref": "#/$defs/AwardShare"
170
+ },
168
171
  "ext": {
169
172
  "$ref": "#/$defs/Ext"
170
173
  }
171
174
  }
172
175
  },
176
+ "AwardShare": {
177
+ "title": "AwardShare",
178
+ "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).",
179
+ "type": "object",
180
+ "additionalProperties": false,
181
+ "required": [
182
+ "verificationUrl",
183
+ "since"
184
+ ],
185
+ "properties": {
186
+ "verificationUrl": {
187
+ "type": "string",
188
+ "format": "uri",
189
+ "maxLength": 2048,
190
+ "description": "The public location that answers the credential and a verification of it."
191
+ },
192
+ "bakedImageUrl": {
193
+ "type": "string",
194
+ "format": "uri",
195
+ "maxLength": 2048,
196
+ "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."
197
+ },
198
+ "since": {
199
+ "type": "string",
200
+ "format": "date-time"
201
+ }
202
+ }
203
+ },
173
204
  "AwardState": {
174
205
  "title": "AwardState",
175
206
  "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).",
@@ -254,7 +285,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
254
285
  },
255
286
  "Award": {
256
287
  "title": "Award",
257
- "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.",
288
+ "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).",
258
289
  "type": "object",
259
290
  "additionalProperties": false,
260
291
  "required": [
@@ -301,11 +332,42 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
301
332
  "credentialId": {
302
333
  "$ref": "#/$defs/GroupCredentialId"
303
334
  },
335
+ "shared": {
336
+ "$ref": "#/$defs/AwardShare"
337
+ },
304
338
  "ext": {
305
339
  "$ref": "#/$defs/Ext"
306
340
  }
307
341
  }
308
342
  },
343
+ "AwardShare": {
344
+ "title": "AwardShare",
345
+ "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).",
346
+ "type": "object",
347
+ "additionalProperties": false,
348
+ "required": [
349
+ "verificationUrl",
350
+ "since"
351
+ ],
352
+ "properties": {
353
+ "verificationUrl": {
354
+ "type": "string",
355
+ "format": "uri",
356
+ "maxLength": 2048,
357
+ "description": "The public location that answers the credential and a verification of it."
358
+ },
359
+ "bakedImageUrl": {
360
+ "type": "string",
361
+ "format": "uri",
362
+ "maxLength": 2048,
363
+ "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."
364
+ },
365
+ "since": {
366
+ "type": "string",
367
+ "format": "date-time"
368
+ }
369
+ }
370
+ },
309
371
  "AwardState": {
310
372
  "title": "AwardState",
311
373
  "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/mine/list/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Award, AwardId, AwardNote, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, MyBadge, VerifiedValue, WallVisibility } from "../../../../../_shared/components.js";
6
+ import type { Award, AwardId, AwardNote, AwardShare, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, MyBadge, VerifiedValue, WallVisibility } from "../../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -54,7 +54,7 @@ export interface Offer {
54
54
  }
55
55
 
56
56
  /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
57
- export type { Award, AwardId, AwardNote, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, MyBadge, VerifiedValue, WallVisibility };
57
+ export type { Award, AwardId, AwardNote, AwardShare, AwardState, Badge, BadgeCriteria, BadgeDescription, BadgeId, BadgeKind, BadgeName, BadgeState, CardBlobRef, EntryFields, EntryId, Ext, FieldValue, GroupCredentialId, GroupId, MyBadge, VerifiedValue, WallVisibility };
58
58
 
59
59
  /** Trust Task type URI. */
60
60
  export const TYPE_URI = "https://trusttasks.org/spec/vtc/badges/mine/list/0.1" as const;
@@ -531,7 +531,7 @@ export const PAYLOAD_SCHEMA = {
531
531
  },
532
532
  "Award": {
533
533
  "title": "Award",
534
- "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.",
534
+ "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).",
535
535
  "type": "object",
536
536
  "additionalProperties": false,
537
537
  "required": [
@@ -578,11 +578,42 @@ export const PAYLOAD_SCHEMA = {
578
578
  "credentialId": {
579
579
  "$ref": "#/$defs/GroupCredentialId"
580
580
  },
581
+ "shared": {
582
+ "$ref": "#/$defs/AwardShare"
583
+ },
581
584
  "ext": {
582
585
  "$ref": "#/$defs/Ext"
583
586
  }
584
587
  }
585
588
  },
589
+ "AwardShare": {
590
+ "title": "AwardShare",
591
+ "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).",
592
+ "type": "object",
593
+ "additionalProperties": false,
594
+ "required": [
595
+ "verificationUrl",
596
+ "since"
597
+ ],
598
+ "properties": {
599
+ "verificationUrl": {
600
+ "type": "string",
601
+ "format": "uri",
602
+ "maxLength": 2048,
603
+ "description": "The public location that answers the credential and a verification of it."
604
+ },
605
+ "bakedImageUrl": {
606
+ "type": "string",
607
+ "format": "uri",
608
+ "maxLength": 2048,
609
+ "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."
610
+ },
611
+ "since": {
612
+ "type": "string",
613
+ "format": "date-time"
614
+ }
615
+ }
616
+ },
586
617
  "AwardState": {
587
618
  "title": "AwardState",
588
619
  "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).",
@@ -1042,7 +1073,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
1042
1073
  },
1043
1074
  "Award": {
1044
1075
  "title": "Award",
1045
- "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.",
1076
+ "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).",
1046
1077
  "type": "object",
1047
1078
  "additionalProperties": false,
1048
1079
  "required": [
@@ -1089,11 +1120,42 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
1089
1120
  "credentialId": {
1090
1121
  "$ref": "#/$defs/GroupCredentialId"
1091
1122
  },
1123
+ "shared": {
1124
+ "$ref": "#/$defs/AwardShare"
1125
+ },
1092
1126
  "ext": {
1093
1127
  "$ref": "#/$defs/Ext"
1094
1128
  }
1095
1129
  }
1096
1130
  },
1131
+ "AwardShare": {
1132
+ "title": "AwardShare",
1133
+ "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).",
1134
+ "type": "object",
1135
+ "additionalProperties": false,
1136
+ "required": [
1137
+ "verificationUrl",
1138
+ "since"
1139
+ ],
1140
+ "properties": {
1141
+ "verificationUrl": {
1142
+ "type": "string",
1143
+ "format": "uri",
1144
+ "maxLength": 2048,
1145
+ "description": "The public location that answers the credential and a verification of it."
1146
+ },
1147
+ "bakedImageUrl": {
1148
+ "type": "string",
1149
+ "format": "uri",
1150
+ "maxLength": 2048,
1151
+ "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."
1152
+ },
1153
+ "since": {
1154
+ "type": "string",
1155
+ "format": "date-time"
1156
+ }
1157
+ }
1158
+ },
1097
1159
  "AwardState": {
1098
1160
  "title": "AwardState",
1099
1161
  "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).",