@openvtc/trust-tasks 0.28.18 → 0.28.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/_shared/components.d.ts +228 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +75 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +75 -0
- package/dist/index.js.map +1 -1
- package/dist/vtc/badges/_shared/0.1/badge.d.ts +22 -0
- package/dist/vtc/badges/_shared/0.1/badge.d.ts.map +1 -0
- package/dist/vtc/badges/_shared/0.1/badge.js +6 -0
- package/dist/vtc/badges/_shared/0.1/badge.js.map +1 -0
- package/dist/vtc/badges/awards/list/0.1/payload.d.ts +1228 -0
- package/dist/vtc/badges/awards/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/awards/list/0.1/payload.js +699 -0
- package/dist/vtc/badges/awards/list/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/awards/offer/0.1/payload.d.ts +793 -0
- package/dist/vtc/badges/awards/offer/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/awards/offer/0.1/payload.js +461 -0
- package/dist/vtc/badges/awards/offer/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts +605 -0
- package/dist/vtc/badges/awards/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/awards/revoke/0.1/payload.js +351 -0
- package/dist/vtc/badges/awards/revoke/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts +605 -0
- package/dist/vtc/badges/awards/withdraw/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/awards/withdraw/0.1/payload.js +351 -0
- package/dist/vtc/badges/awards/withdraw/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/create/0.1/payload.d.ts +1829 -0
- package/dist/vtc/badges/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/create/0.1/payload.js +1051 -0
- package/dist/vtc/badges/create/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/holders/list/0.1/payload.d.ts +984 -0
- package/dist/vtc/badges/holders/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/holders/list/0.1/payload.js +555 -0
- package/dist/vtc/badges/holders/list/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/images/get/0.1/payload.d.ts +454 -0
- package/dist/vtc/badges/images/get/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/images/get/0.1/payload.js +266 -0
- package/dist/vtc/badges/images/get/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/images/upload/0.1/payload.d.ts +455 -0
- package/dist/vtc/badges/images/upload/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/images/upload/0.1/payload.js +276 -0
- package/dist/vtc/badges/images/upload/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/kudos/give/0.1/payload.d.ts +613 -0
- package/dist/vtc/badges/kudos/give/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/kudos/give/0.1/payload.js +353 -0
- package/dist/vtc/badges/kudos/give/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/kudos/list/0.1/payload.d.ts +1766 -0
- package/dist/vtc/badges/kudos/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/kudos/list/0.1/payload.js +995 -0
- package/dist/vtc/badges/kudos/list/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/list/0.1/payload.d.ts +1096 -0
- package/dist/vtc/badges/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/list/0.1/payload.js +617 -0
- package/dist/vtc/badges/list/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/mine/accept/0.1/payload.d.ts +1376 -0
- package/dist/vtc/badges/mine/accept/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/mine/accept/0.1/payload.js +799 -0
- package/dist/vtc/badges/mine/accept/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/mine/arrange/0.1/payload.d.ts +1217 -0
- package/dist/vtc/badges/mine/arrange/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/mine/arrange/0.1/payload.js +698 -0
- package/dist/vtc/badges/mine/arrange/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/mine/decline/0.1/payload.d.ts +589 -0
- package/dist/vtc/badges/mine/decline/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/mine/decline/0.1/payload.js +344 -0
- package/dist/vtc/badges/mine/decline/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/mine/hide/0.1/payload.d.ts +1093 -0
- package/dist/vtc/badges/mine/hide/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/mine/hide/0.1/payload.js +630 -0
- package/dist/vtc/badges/mine/hide/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/mine/list/0.1/payload.d.ts +1897 -0
- package/dist/vtc/badges/mine/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/mine/list/0.1/payload.js +1087 -0
- package/dist/vtc/badges/mine/list/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/mine/show/0.1/payload.d.ts +1093 -0
- package/dist/vtc/badges/mine/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/mine/show/0.1/payload.js +630 -0
- package/dist/vtc/badges/mine/show/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/promote/0.1/payload.d.ts +1757 -0
- package/dist/vtc/badges/promote/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/promote/0.1/payload.js +1018 -0
- package/dist/vtc/badges/promote/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/retire/0.1/payload.d.ts +904 -0
- package/dist/vtc/badges/retire/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/retire/0.1/payload.js +524 -0
- package/dist/vtc/badges/retire/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/settings/show/0.1/payload.d.ts +731 -0
- package/dist/vtc/badges/settings/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/settings/show/0.1/payload.js +421 -0
- package/dist/vtc/badges/settings/show/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/settings/update/0.1/payload.d.ts +775 -0
- package/dist/vtc/badges/settings/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/settings/update/0.1/payload.js +444 -0
- package/dist/vtc/badges/settings/update/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/show/0.1/payload.d.ts +1056 -0
- package/dist/vtc/badges/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/show/0.1/payload.js +613 -0
- package/dist/vtc/badges/show/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/update/0.1/payload.d.ts +1033 -0
- package/dist/vtc/badges/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/update/0.1/payload.js +588 -0
- package/dist/vtc/badges/update/0.1/payload.js.map +1 -0
- package/dist/vtc/badges/wall/show/0.1/payload.d.ts +1099 -0
- package/dist/vtc/badges/wall/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/badges/wall/show/0.1/payload.js +634 -0
- package/dist/vtc/badges/wall/show/0.1/payload.js.map +1 -0
- package/dist/vtc/groups/create/0.1/payload.d.ts +42 -2
- package/dist/vtc/groups/create/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/groups/create/0.1/payload.js +20 -0
- package/dist/vtc/groups/create/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/list/0.1/payload.d.ts +42 -2
- package/dist/vtc/groups/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/groups/list/0.1/payload.js +20 -0
- package/dist/vtc/groups/list/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/list/0.2/payload.d.ts +42 -2
- package/dist/vtc/groups/list/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/groups/list/0.2/payload.js +20 -0
- package/dist/vtc/groups/list/0.2/payload.js.map +1 -1
- package/dist/vtc/groups/show/0.1/payload.d.ts +42 -2
- package/dist/vtc/groups/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/groups/show/0.1/payload.js +20 -0
- package/dist/vtc/groups/show/0.1/payload.js.map +1 -1
- package/dist/vtc/groups/update/0.1/payload.d.ts +42 -2
- package/dist/vtc/groups/update/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/groups/update/0.1/payload.js +20 -0
- package/dist/vtc/groups/update/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/_shared/components.ts +228 -0
- package/src/index.ts +75 -0
- package/src/vtc/badges/_shared/0.1/badge.ts +23 -0
- package/src/vtc/badges/awards/list/0.1/payload.ts +768 -0
- package/src/vtc/badges/awards/offer/0.1/payload.ts +530 -0
- package/src/vtc/badges/awards/revoke/0.1/payload.ts +395 -0
- package/src/vtc/badges/awards/withdraw/0.1/payload.ts +395 -0
- package/src/vtc/badges/create/0.1/payload.ts +1137 -0
- package/src/vtc/badges/holders/list/0.1/payload.ts +628 -0
- package/src/vtc/badges/images/get/0.1/payload.ts +311 -0
- package/src/vtc/badges/images/upload/0.1/payload.ts +324 -0
- package/src/vtc/badges/kudos/give/0.1/payload.ts +401 -0
- package/src/vtc/badges/kudos/list/0.1/payload.ts +1080 -0
- package/src/vtc/badges/list/0.1/payload.ts +695 -0
- package/src/vtc/badges/mine/accept/0.1/payload.ts +840 -0
- package/src/vtc/badges/mine/arrange/0.1/payload.ts +768 -0
- package/src/vtc/badges/mine/decline/0.1/payload.ts +384 -0
- package/src/vtc/badges/mine/hide/0.1/payload.ts +670 -0
- package/src/vtc/badges/mine/list/0.1/payload.ts +1153 -0
- package/src/vtc/badges/mine/show/0.1/payload.ts +670 -0
- package/src/vtc/badges/promote/0.1/payload.ts +1088 -0
- package/src/vtc/badges/retire/0.1/payload.ts +565 -0
- package/src/vtc/badges/settings/show/0.1/payload.ts +457 -0
- package/src/vtc/badges/settings/update/0.1/payload.ts +490 -0
- package/src/vtc/badges/show/0.1/payload.ts +675 -0
- package/src/vtc/badges/update/0.1/payload.ts +656 -0
- package/src/vtc/badges/wall/show/0.1/payload.ts +684 -0
- package/src/vtc/groups/create/0.1/payload.ts +22 -2
- package/src/vtc/groups/list/0.1/payload.ts +22 -2
- package/src/vtc/groups/list/0.2/payload.ts +22 -2
- package/src/vtc/groups/show/0.1/payload.ts +22 -2
- package/src/vtc/groups/update/0.1/payload.ts +22 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/vtc/groups/create/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
6
|
+
import type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -42,7 +42,7 @@ export interface VTCGroupsCreateResponsePayload {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
45
|
-
export type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
45
|
+
export type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
46
46
|
|
|
47
47
|
/** Trust Task type URI. */
|
|
48
48
|
export const TYPE_URI = "https://trusttasks.org/spec/vtc/groups/create/0.1" as const;
|
|
@@ -221,6 +221,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
221
221
|
"type": "boolean",
|
|
222
222
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
223
223
|
},
|
|
224
|
+
"badgeId": {
|
|
225
|
+
"$ref": "#/$defs/BadgeId",
|
|
226
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
227
|
+
},
|
|
224
228
|
"memberCount": {
|
|
225
229
|
"type": "integer",
|
|
226
230
|
"minimum": 0,
|
|
@@ -395,6 +399,12 @@ export const PAYLOAD_SCHEMA = {
|
|
|
395
399
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
396
400
|
"type": "string",
|
|
397
401
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
402
|
+
},
|
|
403
|
+
"BadgeId": {
|
|
404
|
+
"title": "BadgeId",
|
|
405
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
406
|
+
"type": "string",
|
|
407
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
398
408
|
}
|
|
399
409
|
}
|
|
400
410
|
} as const;
|
|
@@ -491,6 +501,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
491
501
|
"type": "boolean",
|
|
492
502
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
493
503
|
},
|
|
504
|
+
"badgeId": {
|
|
505
|
+
"$ref": "#/$defs/BadgeId",
|
|
506
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
507
|
+
},
|
|
494
508
|
"memberCount": {
|
|
495
509
|
"type": "integer",
|
|
496
510
|
"minimum": 0,
|
|
@@ -665,6 +679,12 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
665
679
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
666
680
|
"type": "string",
|
|
667
681
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
682
|
+
},
|
|
683
|
+
"BadgeId": {
|
|
684
|
+
"title": "BadgeId",
|
|
685
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
686
|
+
"type": "string",
|
|
687
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
668
688
|
}
|
|
669
689
|
}
|
|
670
690
|
} as const;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/vtc/groups/list/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
6
|
+
import type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -48,7 +48,7 @@ export interface VTCGroupsListResponsePayload {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
51
|
-
export type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
51
|
+
export type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
52
52
|
|
|
53
53
|
/** Trust Task type URI. */
|
|
54
54
|
export const TYPE_URI = "https://trusttasks.org/spec/vtc/groups/list/0.1" as const;
|
|
@@ -246,6 +246,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
246
246
|
"type": "boolean",
|
|
247
247
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
248
248
|
},
|
|
249
|
+
"badgeId": {
|
|
250
|
+
"$ref": "#/$defs/BadgeId",
|
|
251
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
252
|
+
},
|
|
249
253
|
"memberCount": {
|
|
250
254
|
"type": "integer",
|
|
251
255
|
"minimum": 0,
|
|
@@ -420,6 +424,12 @@ export const PAYLOAD_SCHEMA = {
|
|
|
420
424
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
421
425
|
"type": "string",
|
|
422
426
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
427
|
+
},
|
|
428
|
+
"BadgeId": {
|
|
429
|
+
"title": "BadgeId",
|
|
430
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
431
|
+
"type": "string",
|
|
432
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
423
433
|
}
|
|
424
434
|
}
|
|
425
435
|
} as const;
|
|
@@ -548,6 +558,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
548
558
|
"type": "boolean",
|
|
549
559
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
550
560
|
},
|
|
561
|
+
"badgeId": {
|
|
562
|
+
"$ref": "#/$defs/BadgeId",
|
|
563
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
564
|
+
},
|
|
551
565
|
"memberCount": {
|
|
552
566
|
"type": "integer",
|
|
553
567
|
"minimum": 0,
|
|
@@ -722,6 +736,12 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
722
736
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
723
737
|
"type": "string",
|
|
724
738
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
739
|
+
},
|
|
740
|
+
"BadgeId": {
|
|
741
|
+
"title": "BadgeId",
|
|
742
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
743
|
+
"type": "string",
|
|
744
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
725
745
|
}
|
|
726
746
|
}
|
|
727
747
|
} as const;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/vtc/groups/list/0.2/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
6
|
+
import type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -50,7 +50,7 @@ export interface VTCGroupsListResponsePayload {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
53
|
-
export type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
53
|
+
export type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
54
54
|
|
|
55
55
|
/** Trust Task type URI. */
|
|
56
56
|
export const TYPE_URI = "https://trusttasks.org/spec/vtc/groups/list/0.2" as const;
|
|
@@ -239,6 +239,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
239
239
|
"type": "boolean",
|
|
240
240
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
241
241
|
},
|
|
242
|
+
"badgeId": {
|
|
243
|
+
"$ref": "#/$defs/BadgeId",
|
|
244
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
245
|
+
},
|
|
242
246
|
"memberCount": {
|
|
243
247
|
"type": "integer",
|
|
244
248
|
"minimum": 0,
|
|
@@ -413,6 +417,12 @@ export const PAYLOAD_SCHEMA = {
|
|
|
413
417
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
414
418
|
"type": "string",
|
|
415
419
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
420
|
+
},
|
|
421
|
+
"BadgeId": {
|
|
422
|
+
"title": "BadgeId",
|
|
423
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
424
|
+
"type": "string",
|
|
425
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
416
426
|
}
|
|
417
427
|
}
|
|
418
428
|
} as const;
|
|
@@ -539,6 +549,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
539
549
|
"type": "boolean",
|
|
540
550
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
541
551
|
},
|
|
552
|
+
"badgeId": {
|
|
553
|
+
"$ref": "#/$defs/BadgeId",
|
|
554
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
555
|
+
},
|
|
542
556
|
"memberCount": {
|
|
543
557
|
"type": "integer",
|
|
544
558
|
"minimum": 0,
|
|
@@ -713,6 +727,12 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
713
727
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
714
728
|
"type": "string",
|
|
715
729
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
730
|
+
},
|
|
731
|
+
"BadgeId": {
|
|
732
|
+
"title": "BadgeId",
|
|
733
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
734
|
+
"type": "string",
|
|
735
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
716
736
|
}
|
|
717
737
|
}
|
|
718
738
|
} as const;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/vtc/groups/show/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
6
|
+
import type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -23,7 +23,7 @@ export interface VTCGroupsShowResponsePayload {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
26
|
-
export type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
26
|
+
export type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
27
27
|
|
|
28
28
|
/** Trust Task type URI. */
|
|
29
29
|
export const TYPE_URI = "https://trusttasks.org/spec/vtc/groups/show/0.1" as const;
|
|
@@ -179,6 +179,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
179
179
|
"type": "boolean",
|
|
180
180
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
181
181
|
},
|
|
182
|
+
"badgeId": {
|
|
183
|
+
"$ref": "#/$defs/BadgeId",
|
|
184
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
185
|
+
},
|
|
182
186
|
"memberCount": {
|
|
183
187
|
"type": "integer",
|
|
184
188
|
"minimum": 0,
|
|
@@ -353,6 +357,12 @@ export const PAYLOAD_SCHEMA = {
|
|
|
353
357
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
354
358
|
"type": "string",
|
|
355
359
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
360
|
+
},
|
|
361
|
+
"BadgeId": {
|
|
362
|
+
"title": "BadgeId",
|
|
363
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
364
|
+
"type": "string",
|
|
365
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
356
366
|
}
|
|
357
367
|
}
|
|
358
368
|
} as const;
|
|
@@ -460,6 +470,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
460
470
|
"type": "boolean",
|
|
461
471
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
462
472
|
},
|
|
473
|
+
"badgeId": {
|
|
474
|
+
"$ref": "#/$defs/BadgeId",
|
|
475
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
476
|
+
},
|
|
463
477
|
"memberCount": {
|
|
464
478
|
"type": "integer",
|
|
465
479
|
"minimum": 0,
|
|
@@ -634,6 +648,12 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
634
648
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
635
649
|
"type": "string",
|
|
636
650
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
651
|
+
},
|
|
652
|
+
"BadgeId": {
|
|
653
|
+
"title": "BadgeId",
|
|
654
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
655
|
+
"type": "string",
|
|
656
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
637
657
|
}
|
|
638
658
|
}
|
|
639
659
|
} as const;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Source: specs/vtc/groups/update/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
6
|
+
import type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -39,7 +39,7 @@ export interface VTCGroupsUpdateResponsePayload {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
42
|
-
export type { DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
42
|
+
export type { BadgeId, DynamicRule, EntryId, Ext, FieldKey, Group, GroupAudience, GroupDescription, GroupId, GroupKind, GroupName, JoinPolicy, RuleCondition };
|
|
43
43
|
|
|
44
44
|
/** Trust Task type URI. */
|
|
45
45
|
export const TYPE_URI = "https://trusttasks.org/spec/vtc/groups/update/0.1" as const;
|
|
@@ -220,6 +220,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
220
220
|
"type": "boolean",
|
|
221
221
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
222
222
|
},
|
|
223
|
+
"badgeId": {
|
|
224
|
+
"$ref": "#/$defs/BadgeId",
|
|
225
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
226
|
+
},
|
|
223
227
|
"memberCount": {
|
|
224
228
|
"type": "integer",
|
|
225
229
|
"minimum": 0,
|
|
@@ -394,6 +398,12 @@ export const PAYLOAD_SCHEMA = {
|
|
|
394
398
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
395
399
|
"type": "string",
|
|
396
400
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
401
|
+
},
|
|
402
|
+
"BadgeId": {
|
|
403
|
+
"title": "BadgeId",
|
|
404
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
405
|
+
"type": "string",
|
|
406
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
397
407
|
}
|
|
398
408
|
}
|
|
399
409
|
} as const;
|
|
@@ -490,6 +500,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
490
500
|
"type": "boolean",
|
|
491
501
|
"description": "`true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does."
|
|
492
502
|
},
|
|
503
|
+
"badgeId": {
|
|
504
|
+
"$ref": "#/$defs/BadgeId",
|
|
505
|
+
"description": "Present exactly when the group backs a community badge (vtc/badges/*): its managers are the badge's owners, its members the badge's holders, and its DID issues the badge credential in place of a membership credential. A badge group never carries authority, is not counted among the groups two members share, and is listed among the community's groups only to a caller who asks for badge groups (VTI-BDG-010 – VTI-BDG-012)."
|
|
506
|
+
},
|
|
493
507
|
"memberCount": {
|
|
494
508
|
"type": "integer",
|
|
495
509
|
"minimum": 0,
|
|
@@ -664,6 +678,12 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
664
678
|
"description": "Opaque identifier of one directory entry: `dir_` followed by 16 to 64 base64url characters. Random, scoped to one community, and stable for the life of the membership — it survives a rotation of the member's DID, which is why groups, notes and cards are keyed by it. It MUST NOT be derived from, and MUST NOT reveal, any DID of the member, and the same person's entries in two communities MUST NOT share one. Compared by exact string equality.",
|
|
665
679
|
"type": "string",
|
|
666
680
|
"pattern": "^dir_[A-Za-z0-9_-]{16,64}$"
|
|
681
|
+
},
|
|
682
|
+
"BadgeId": {
|
|
683
|
+
"title": "BadgeId",
|
|
684
|
+
"description": "Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).",
|
|
685
|
+
"type": "string",
|
|
686
|
+
"pattern": "^bdg_[A-Za-z0-9_-]{16,64}$"
|
|
667
687
|
}
|
|
668
688
|
}
|
|
669
689
|
} as const;
|