@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
|
@@ -419,12 +419,48 @@ export type AuthModel =
|
|
|
419
419
|
* An explicit authority scope — used for both the act scope and the approve scope of an entry. Exactly one of three shapes, discriminated by `scope`: `all`, `none`, or `contexts` with a NON-EMPTY list. The empty list is not a fourth shape: it is invalid, so a serializer that drops or empties the list produces a document that fails validation rather than one that silently means something else.
|
|
420
420
|
*/
|
|
421
421
|
export type AuthorityScope = AuthorityScopeAll | AuthorityScopeNone | AuthorityScopeContexts;
|
|
422
|
+
/**
|
|
423
|
+
* Opaque identifier of one giving of a badge to one member: `awd_` followed by 16 to 64 base64url characters. Random and unique within the community.
|
|
424
|
+
*/
|
|
425
|
+
export type AwardId = string;
|
|
426
|
+
/**
|
|
427
|
+
* What the award is for, from the giver, shown to the recipient and written as the award's evidence narrative where the badge carries a credential. Plain text; erased with its author (VTI-BDG-090).
|
|
428
|
+
*/
|
|
429
|
+
export type AwardNote = string;
|
|
430
|
+
/**
|
|
431
|
+
* `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).
|
|
432
|
+
*/
|
|
433
|
+
export type AwardState = "offered" | "accepted" | "declined" | "withdrawn" | "expired" | "revoked";
|
|
422
434
|
export type AwsArn = string;
|
|
423
435
|
export type AwsRegion = string;
|
|
424
436
|
/**
|
|
425
437
|
* The ARN of an AWS IAM role, in any AWS partition (`arn:aws:`, `arn:aws-cn:`, `arn:aws-us-gov:`). Validated here because the community passes it to STS AssumeRole and derives the partition of the session policy's resources from it; it must never carry anything but a role ARN.
|
|
426
438
|
*/
|
|
427
439
|
export type AwsRoleArn = string;
|
|
440
|
+
/**
|
|
441
|
+
* How the badge is earned, shown to members and written into the credential's Achievement as its criteria narrative. Plain text.
|
|
442
|
+
*/
|
|
443
|
+
export type BadgeCriteria = string;
|
|
444
|
+
/**
|
|
445
|
+
* What the badge is for. Plain text; a reader MUST NOT treat it as instructions.
|
|
446
|
+
*/
|
|
447
|
+
export type BadgeDescription = string;
|
|
448
|
+
/**
|
|
449
|
+
* Opaque identifier of a badge: `bdg_` followed by 16 to 64 base64url characters. Random, community-scoped, never reused (VTI-BDG-001).
|
|
450
|
+
*/
|
|
451
|
+
export type BadgeId = string;
|
|
452
|
+
/**
|
|
453
|
+
* `community`: defined by holders of `vtc.badges.admin`, given by its owners (its badge group's managers), may carry a credential. `kudos`: made by a member the community's badge settings admit, given by any active member to any other, never a credential. Fixed for the badge's life; a kudos badge becomes a community badge only by promotion (vtc/badges/promote).
|
|
454
|
+
*/
|
|
455
|
+
export type BadgeKind = "community" | "kudos";
|
|
456
|
+
/**
|
|
457
|
+
* The badge's name, shown on the wall and written into the credential's Achievement. Plain text; a reader MUST NOT treat it as instructions.
|
|
458
|
+
*/
|
|
459
|
+
export type BadgeName = string;
|
|
460
|
+
/**
|
|
461
|
+
* `active`: may be given and shown. `retired`: kept for its holders' own history, never given, never shown to members who do not hold it (VTI-BDG-005).
|
|
462
|
+
*/
|
|
463
|
+
export type BadgeState = "active" | "retired";
|
|
428
464
|
export type BindingId = string;
|
|
429
465
|
export type BindingSpec = RoomBindingSpec | GrantsBindingSpec | RoleBindingSpec;
|
|
430
466
|
/**
|
|
@@ -2513,6 +2549,10 @@ export type Vid = string;
|
|
|
2513
2549
|
* How much of a room its host can see, fixed at creation and immutable thereafter. `open`: records are cleartext, searchable and fully audited. `attributed`: record content is sealed, and the host still learns which member acted. `private`: content is sealed and membership is presented in zero knowledge, so the host verifies that a member acted without learning which. Immutable because a downgrade cannot un-see cleartext and an upgrade would protect only what came after while presenting as though it protected everything.
|
|
2514
2550
|
*/
|
|
2515
2551
|
export type Visibility = "open" | "attributed" | "private";
|
|
2552
|
+
/**
|
|
2553
|
+
* Who sees a member's badges, the member's own setting (VTI-BDG-031). `members`: every active member the directory shows their card to. `nobody`: no one but the member. Never wider than the directory shows the card.
|
|
2554
|
+
*/
|
|
2555
|
+
export type WallVisibility = "members" | "nobody";
|
|
2516
2556
|
/**
|
|
2517
2557
|
* A file's content hash: the lowercase hex SHA-256 of its bytes — the `etag` vtc/website/files/list reports, and the `ETag` a direct read of the path returns, without the HTTP quotes.
|
|
2518
2558
|
*/
|
|
@@ -5916,6 +5956,31 @@ export interface AutoGrantSweep {
|
|
|
5916
5956
|
*/
|
|
5917
5957
|
errors: number;
|
|
5918
5958
|
}
|
|
5959
|
+
/**
|
|
5960
|
+
* 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.
|
|
5961
|
+
*/
|
|
5962
|
+
export interface Award {
|
|
5963
|
+
awardId: AwardId;
|
|
5964
|
+
badgeId: BadgeId;
|
|
5965
|
+
/**
|
|
5966
|
+
* The recipient.
|
|
5967
|
+
*/
|
|
5968
|
+
entryId: EntryId;
|
|
5969
|
+
givenBy?: EntryId;
|
|
5970
|
+
note?: AwardNote;
|
|
5971
|
+
state: AwardState;
|
|
5972
|
+
offeredAt: string;
|
|
5973
|
+
/**
|
|
5974
|
+
* When the recipient accepted or declined, the giver withdrew, the offer expired, or the award was revoked.
|
|
5975
|
+
*/
|
|
5976
|
+
decidedAt?: string;
|
|
5977
|
+
/**
|
|
5978
|
+
* When an unanswered offer lapses, where the community expires offers.
|
|
5979
|
+
*/
|
|
5980
|
+
expiresAt?: string;
|
|
5981
|
+
credentialId?: GroupCredentialId;
|
|
5982
|
+
ext?: Ext;
|
|
5983
|
+
}
|
|
5919
5984
|
/**
|
|
5920
5985
|
* Unencrypted metadata plus the encrypted payload. The KDF and cipher parameters travel in the clear so a reader can decrypt without knowing this specification's defaults.
|
|
5921
5986
|
*/
|
|
@@ -5951,6 +6016,108 @@ export interface BackupEnvelope {
|
|
|
5951
6016
|
*/
|
|
5952
6017
|
ciphertext: string;
|
|
5953
6018
|
}
|
|
6019
|
+
/**
|
|
6020
|
+
* A badge as a caller who may see it sees it. `groupId` is present exactly when `kind` is `community`. `holderCount` only to callers who may see the badge's holders, counted over holders who have not hidden it (VTI-BDG-030, VTI-BDG-033). `createdBy` is the directory entry of the administrator or member who made it, where they have one.
|
|
6021
|
+
*/
|
|
6022
|
+
export interface Badge {
|
|
6023
|
+
badgeId: BadgeId;
|
|
6024
|
+
kind: BadgeKind;
|
|
6025
|
+
name: BadgeName;
|
|
6026
|
+
description: BadgeDescription;
|
|
6027
|
+
criteria?: BadgeCriteria;
|
|
6028
|
+
/**
|
|
6029
|
+
* The badge's picture, re-encoded and stored by the community (vtc/badges/images/upload), read with vtc/badges/images/get. `url` and `urlExpiresAt` MAY appear in a projection as for a card picture; for a badge whose holders may show it outside, `url` MAY be the picture's stable public location.
|
|
6030
|
+
*/
|
|
6031
|
+
image: CardBlobRef;
|
|
6032
|
+
/**
|
|
6033
|
+
* Whether one member may hold the badge more than once, each giving an award of its own (VTI-BDG-022). Always true for a kudos badge.
|
|
6034
|
+
*/
|
|
6035
|
+
repeatable: boolean;
|
|
6036
|
+
/**
|
|
6037
|
+
* Community badges only. Whether a member may ask for it: a request to join its badge group, decided by its owners (VTI-BDG-014). Absent reads as false.
|
|
6038
|
+
*/
|
|
6039
|
+
requestable?: boolean;
|
|
6040
|
+
/**
|
|
6041
|
+
* Whether members who do not hold the badge see it in the community's badge list. An unlisted badge is seen by its holders, its owners and administrators.
|
|
6042
|
+
*/
|
|
6043
|
+
listed: boolean;
|
|
6044
|
+
/**
|
|
6045
|
+
* Community badges only. Whether its holders may show it outside the community, which decides the credential's regime: short-lived and renewed with no status when false, long-lived with a status in the community's own status set when true (VTI-BDG-061, VTI-BDG-062). Absent reads as false.
|
|
6046
|
+
*/
|
|
6047
|
+
shareableOutside?: boolean;
|
|
6048
|
+
/**
|
|
6049
|
+
* The badge group that backs a community badge: its managers are the badge's owners, its members the holders, its DID the credential's issuer.
|
|
6050
|
+
*/
|
|
6051
|
+
groupId?: GroupId;
|
|
6052
|
+
state: BadgeState;
|
|
6053
|
+
/**
|
|
6054
|
+
* Holders who show the badge. Only to callers who may see the holders.
|
|
6055
|
+
*/
|
|
6056
|
+
holderCount?: number;
|
|
6057
|
+
createdAt: string;
|
|
6058
|
+
createdBy?: EntryId;
|
|
6059
|
+
updatedAt?: string;
|
|
6060
|
+
retiredAt?: string;
|
|
6061
|
+
/**
|
|
6062
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1. An extension member MUST NOT carry authority.
|
|
6063
|
+
*/
|
|
6064
|
+
ext?: Ext;
|
|
6065
|
+
}
|
|
6066
|
+
/**
|
|
6067
|
+
* The community's bounds (VTI-BDG-032, VTI-BDG-040). Each has a default a community that states none applies.
|
|
6068
|
+
*/
|
|
6069
|
+
export interface BadgeLimits {
|
|
6070
|
+
/**
|
|
6071
|
+
* Kudos one member may give in a day. Default 10.
|
|
6072
|
+
*/
|
|
6073
|
+
kudosPerGiverPerDay?: number;
|
|
6074
|
+
/**
|
|
6075
|
+
* How often the same member may give a kudos badge to the same member: at most once a day, once a week, or without bound. Default `day`.
|
|
6076
|
+
*/
|
|
6077
|
+
sameGiverSameMember?: "day" | "week" | "unbounded";
|
|
6078
|
+
/**
|
|
6079
|
+
* Days of membership before a member may give kudos or make a kudos badge. Default 7.
|
|
6080
|
+
*/
|
|
6081
|
+
minTenureDays?: number;
|
|
6082
|
+
/**
|
|
6083
|
+
* Kudos badges one member may make in a calendar month. Default 5.
|
|
6084
|
+
*/
|
|
6085
|
+
kudosBadgesPerMakerPerMonth?: number;
|
|
6086
|
+
/**
|
|
6087
|
+
* Badges a member may pin beside their name. Default 2.
|
|
6088
|
+
*/
|
|
6089
|
+
maxPinned?: number;
|
|
6090
|
+
/**
|
|
6091
|
+
* Days an unanswered offer stands before it expires. Absent: offers do not expire.
|
|
6092
|
+
*/
|
|
6093
|
+
offerExpiresAfterDays?: number;
|
|
6094
|
+
}
|
|
6095
|
+
/**
|
|
6096
|
+
* The community's badge settings (VTI-BDG-004). `enabled` false hides every badge surface and keeps every record; nothing is given or issued while it is false.
|
|
6097
|
+
*/
|
|
6098
|
+
export interface BadgeSettings {
|
|
6099
|
+
enabled: boolean;
|
|
6100
|
+
kudosMakers: KudosMakers;
|
|
6101
|
+
limits?: BadgeLimits;
|
|
6102
|
+
/**
|
|
6103
|
+
* Whether a member's kudos total is shown on their card (VTI-BDG-043).
|
|
6104
|
+
*/
|
|
6105
|
+
showKudosTotals: boolean;
|
|
6106
|
+
/**
|
|
6107
|
+
* Whether dynamic badge groups are computed (VTI-BDG-013). False: a community badge may not be created on a dynamic group, and existing ones are not recomputed.
|
|
6108
|
+
*/
|
|
6109
|
+
automaticBadges: boolean;
|
|
6110
|
+
/**
|
|
6111
|
+
* Whether any community badge may be marked `requestable`. False: every badge group is closed.
|
|
6112
|
+
*/
|
|
6113
|
+
membersMayRequest: boolean;
|
|
6114
|
+
/**
|
|
6115
|
+
* Validity of a badge credential its holders may show outside (VTI-BDG-062). Default 730.
|
|
6116
|
+
*/
|
|
6117
|
+
credentialValidDays?: number;
|
|
6118
|
+
updatedAt?: string;
|
|
6119
|
+
ext?: Ext;
|
|
6120
|
+
}
|
|
5954
6121
|
/**
|
|
5955
6122
|
* An open ballot: one answer per question of the manifest, in any order. The bytes a cast's proof binds are the RFC 8785 (JCS) canonicalization of this object as received.
|
|
5956
6123
|
*/
|
|
@@ -9823,6 +9990,10 @@ export interface Group {
|
|
|
9823
9990
|
* `true` while the group has a `grants` or `role` binding. Such a group is `static` and `closed` for as long as it does.
|
|
9824
9991
|
*/
|
|
9825
9992
|
carriesAuthority: boolean;
|
|
9993
|
+
/**
|
|
9994
|
+
* 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).
|
|
9995
|
+
*/
|
|
9996
|
+
badgeId?: BadgeId;
|
|
9826
9997
|
/**
|
|
9827
9998
|
* Active members. Only to callers who may see the member list.
|
|
9828
9999
|
*/
|
|
@@ -10842,6 +11013,24 @@ export interface KeyScopeListed {
|
|
|
10842
11013
|
export interface KeyScopeNone {
|
|
10843
11014
|
scope: "none";
|
|
10844
11015
|
}
|
|
11016
|
+
/**
|
|
11017
|
+
* Who may make a kudos badge (VTI-BDG-004). `nobody`: no kudos badges. `roles`: holders of any of `roles`, or members of any of `groups`. `members`: every active member.
|
|
11018
|
+
*/
|
|
11019
|
+
export interface KudosMakers {
|
|
11020
|
+
policy: "nobody" | "roles" | "members";
|
|
11021
|
+
/**
|
|
11022
|
+
* Community role names. Read exactly when `policy` is `roles`.
|
|
11023
|
+
*
|
|
11024
|
+
* @maxItems 32
|
|
11025
|
+
*/
|
|
11026
|
+
roles?: string[];
|
|
11027
|
+
/**
|
|
11028
|
+
* Read exactly when `policy` is `roles`.
|
|
11029
|
+
*
|
|
11030
|
+
* @maxItems 32
|
|
11031
|
+
*/
|
|
11032
|
+
groups?: GroupId[];
|
|
11033
|
+
}
|
|
10845
11034
|
/**
|
|
10846
11035
|
* Which limits an override applies to. `room`: the room as a whole. `memberDefault`: every member of the room who has no override of their own. `member`: one named member — `member` is REQUIRED with this kind and forbidden with the others, a rule this schema does not express; a community refuses a violation with `malformedRequest`.
|
|
10847
11036
|
*/
|
|
@@ -11498,6 +11687,26 @@ export interface MonitorFilter {
|
|
|
11498
11687
|
*/
|
|
11499
11688
|
failuresOnly?: boolean;
|
|
11500
11689
|
}
|
|
11690
|
+
/**
|
|
11691
|
+
* A badge as its holder sees it in their own list: the wall entry plus what only the holder knows — whether they hid it, their position for it, and the credential that evidences it.
|
|
11692
|
+
*/
|
|
11693
|
+
export interface MyBadge {
|
|
11694
|
+
badge: Badge;
|
|
11695
|
+
count: number;
|
|
11696
|
+
since: string;
|
|
11697
|
+
latestAt?: string;
|
|
11698
|
+
pinned: boolean;
|
|
11699
|
+
/**
|
|
11700
|
+
* The holder hid it: off their wall, out of the badge's holder list for members, out of its count; the awards, the membership and the credential stand (VTI-BDG-030).
|
|
11701
|
+
*/
|
|
11702
|
+
hidden: boolean;
|
|
11703
|
+
/**
|
|
11704
|
+
* The holder's order on their wall, lowest first.
|
|
11705
|
+
*/
|
|
11706
|
+
position?: number;
|
|
11707
|
+
credentialId?: GroupCredentialId;
|
|
11708
|
+
credentialValidUntil?: string;
|
|
11709
|
+
}
|
|
11501
11710
|
export interface NetworkMembership {
|
|
11502
11711
|
/**
|
|
11503
11712
|
* The network's DID.
|
|
@@ -16424,6 +16633,25 @@ export interface WakeTriggerPolicy {
|
|
|
16424
16633
|
*/
|
|
16425
16634
|
allowedTriggers: string[];
|
|
16426
16635
|
}
|
|
16636
|
+
/**
|
|
16637
|
+
* One badge on a member's wall as a viewer sees it: the badge, how many times the member holds it, since when, and whether the member pinned it. Hidden badges are never wall entries (VTI-BDG-030).
|
|
16638
|
+
*/
|
|
16639
|
+
export interface WallEntry {
|
|
16640
|
+
badge: Badge;
|
|
16641
|
+
/**
|
|
16642
|
+
* Accepted awards of this badge the member holds.
|
|
16643
|
+
*/
|
|
16644
|
+
count: number;
|
|
16645
|
+
/**
|
|
16646
|
+
* When the member first accepted this badge.
|
|
16647
|
+
*/
|
|
16648
|
+
since: string;
|
|
16649
|
+
/**
|
|
16650
|
+
* When the member last accepted an award of this badge.
|
|
16651
|
+
*/
|
|
16652
|
+
latestAt?: string;
|
|
16653
|
+
pinned: boolean;
|
|
16654
|
+
}
|
|
16427
16655
|
export interface WalrusSettings {
|
|
16428
16656
|
kind: "walrus";
|
|
16429
16657
|
/**
|
package/src/index.ts
CHANGED
|
@@ -3204,6 +3204,81 @@ export import VtcBackupExport_v0_1 = _VtcBackupExport_v0_1;
|
|
|
3204
3204
|
import * as _VtcBackupImport_v0_1 from "./vtc/backup/import/0.1/payload.js";
|
|
3205
3205
|
/** @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). */
|
|
3206
3206
|
export import VtcBackupImport_v0_1 = _VtcBackupImport_v0_1;
|
|
3207
|
+
import * as _BadgeShared_v0_1 from "./vtc/badges/_shared/0.1/badge.js";
|
|
3208
|
+
/** @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). */
|
|
3209
|
+
export import BadgeShared_v0_1 = _BadgeShared_v0_1;
|
|
3210
|
+
import * as _VtcBadgesAwardsList_v0_1 from "./vtc/badges/awards/list/0.1/payload.js";
|
|
3211
|
+
/** @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). */
|
|
3212
|
+
export import VtcBadgesAwardsList_v0_1 = _VtcBadgesAwardsList_v0_1;
|
|
3213
|
+
import * as _VtcBadgesAwardsOffer_v0_1 from "./vtc/badges/awards/offer/0.1/payload.js";
|
|
3214
|
+
/** @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). */
|
|
3215
|
+
export import VtcBadgesAwardsOffer_v0_1 = _VtcBadgesAwardsOffer_v0_1;
|
|
3216
|
+
import * as _VtcBadgesAwardsRevoke_v0_1 from "./vtc/badges/awards/revoke/0.1/payload.js";
|
|
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
|
+
export import VtcBadgesAwardsRevoke_v0_1 = _VtcBadgesAwardsRevoke_v0_1;
|
|
3219
|
+
import * as _VtcBadgesAwardsWithdraw_v0_1 from "./vtc/badges/awards/withdraw/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 VtcBadgesAwardsWithdraw_v0_1 = _VtcBadgesAwardsWithdraw_v0_1;
|
|
3222
|
+
import * as _VtcBadgesCreate_v0_1 from "./vtc/badges/create/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 VtcBadgesCreate_v0_1 = _VtcBadgesCreate_v0_1;
|
|
3225
|
+
import * as _VtcBadgesHoldersList_v0_1 from "./vtc/badges/holders/list/0.1/payload.js";
|
|
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). */
|
|
3227
|
+
export import VtcBadgesHoldersList_v0_1 = _VtcBadgesHoldersList_v0_1;
|
|
3228
|
+
import * as _VtcBadgesImagesGet_v0_1 from "./vtc/badges/images/get/0.1/payload.js";
|
|
3229
|
+
/** @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). */
|
|
3230
|
+
export import VtcBadgesImagesGet_v0_1 = _VtcBadgesImagesGet_v0_1;
|
|
3231
|
+
import * as _VtcBadgesImagesUpload_v0_1 from "./vtc/badges/images/upload/0.1/payload.js";
|
|
3232
|
+
/** @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). */
|
|
3233
|
+
export import VtcBadgesImagesUpload_v0_1 = _VtcBadgesImagesUpload_v0_1;
|
|
3234
|
+
import * as _VtcBadgesKudosGive_v0_1 from "./vtc/badges/kudos/give/0.1/payload.js";
|
|
3235
|
+
/** @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). */
|
|
3236
|
+
export import VtcBadgesKudosGive_v0_1 = _VtcBadgesKudosGive_v0_1;
|
|
3237
|
+
import * as _VtcBadgesKudosList_v0_1 from "./vtc/badges/kudos/list/0.1/payload.js";
|
|
3238
|
+
/** @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). */
|
|
3239
|
+
export import VtcBadgesKudosList_v0_1 = _VtcBadgesKudosList_v0_1;
|
|
3240
|
+
import * as _VtcBadgesList_v0_1 from "./vtc/badges/list/0.1/payload.js";
|
|
3241
|
+
/** @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). */
|
|
3242
|
+
export import VtcBadgesList_v0_1 = _VtcBadgesList_v0_1;
|
|
3243
|
+
import * as _VtcBadgesMineAccept_v0_1 from "./vtc/badges/mine/accept/0.1/payload.js";
|
|
3244
|
+
/** @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). */
|
|
3245
|
+
export import VtcBadgesMineAccept_v0_1 = _VtcBadgesMineAccept_v0_1;
|
|
3246
|
+
import * as _VtcBadgesMineArrange_v0_1 from "./vtc/badges/mine/arrange/0.1/payload.js";
|
|
3247
|
+
/** @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). */
|
|
3248
|
+
export import VtcBadgesMineArrange_v0_1 = _VtcBadgesMineArrange_v0_1;
|
|
3249
|
+
import * as _VtcBadgesMineDecline_v0_1 from "./vtc/badges/mine/decline/0.1/payload.js";
|
|
3250
|
+
/** @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). */
|
|
3251
|
+
export import VtcBadgesMineDecline_v0_1 = _VtcBadgesMineDecline_v0_1;
|
|
3252
|
+
import * as _VtcBadgesMineHide_v0_1 from "./vtc/badges/mine/hide/0.1/payload.js";
|
|
3253
|
+
/** @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). */
|
|
3254
|
+
export import VtcBadgesMineHide_v0_1 = _VtcBadgesMineHide_v0_1;
|
|
3255
|
+
import * as _VtcBadgesMineList_v0_1 from "./vtc/badges/mine/list/0.1/payload.js";
|
|
3256
|
+
/** @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). */
|
|
3257
|
+
export import VtcBadgesMineList_v0_1 = _VtcBadgesMineList_v0_1;
|
|
3258
|
+
import * as _VtcBadgesMineShow_v0_1 from "./vtc/badges/mine/show/0.1/payload.js";
|
|
3259
|
+
/** @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). */
|
|
3260
|
+
export import VtcBadgesMineShow_v0_1 = _VtcBadgesMineShow_v0_1;
|
|
3261
|
+
import * as _VtcBadgesPromote_v0_1 from "./vtc/badges/promote/0.1/payload.js";
|
|
3262
|
+
/** @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). */
|
|
3263
|
+
export import VtcBadgesPromote_v0_1 = _VtcBadgesPromote_v0_1;
|
|
3264
|
+
import * as _VtcBadgesRetire_v0_1 from "./vtc/badges/retire/0.1/payload.js";
|
|
3265
|
+
/** @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). */
|
|
3266
|
+
export import VtcBadgesRetire_v0_1 = _VtcBadgesRetire_v0_1;
|
|
3267
|
+
import * as _VtcBadgesSettingsShow_v0_1 from "./vtc/badges/settings/show/0.1/payload.js";
|
|
3268
|
+
/** @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). */
|
|
3269
|
+
export import VtcBadgesSettingsShow_v0_1 = _VtcBadgesSettingsShow_v0_1;
|
|
3270
|
+
import * as _VtcBadgesSettingsUpdate_v0_1 from "./vtc/badges/settings/update/0.1/payload.js";
|
|
3271
|
+
/** @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). */
|
|
3272
|
+
export import VtcBadgesSettingsUpdate_v0_1 = _VtcBadgesSettingsUpdate_v0_1;
|
|
3273
|
+
import * as _VtcBadgesShow_v0_1 from "./vtc/badges/show/0.1/payload.js";
|
|
3274
|
+
/** @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). */
|
|
3275
|
+
export import VtcBadgesShow_v0_1 = _VtcBadgesShow_v0_1;
|
|
3276
|
+
import * as _VtcBadgesUpdate_v0_1 from "./vtc/badges/update/0.1/payload.js";
|
|
3277
|
+
/** @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). */
|
|
3278
|
+
export import VtcBadgesUpdate_v0_1 = _VtcBadgesUpdate_v0_1;
|
|
3279
|
+
import * as _VtcBadgesWallShow_v0_1 from "./vtc/badges/wall/show/0.1/payload.js";
|
|
3280
|
+
/** @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). */
|
|
3281
|
+
export import VtcBadgesWallShow_v0_1 = _VtcBadgesWallShow_v0_1;
|
|
3207
3282
|
import * as _BoardShared_v0_1 from "./vtc/boards/_shared/0.1/board.js";
|
|
3208
3283
|
/** @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). */
|
|
3209
3284
|
export import BoardShared_v0_1 = _BoardShared_v0_1;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/badges/_shared/0.1/badge.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A Verifiable Trust Community's badges (VTI Community Badges chapter, VTI-BDG-*): pictures with a name that a member earns, holds and shows on their directory card. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen).
|
|
8
|
+
*
|
|
9
|
+
* A COMMUNITY BADGE IS A BADGE GROUP. A badge of kind `community` is backed by exactly one community group (vtc/groups/*), referenced by `groupId` here and by `badgeId` on the group: its owners are the group's managers, its holders the group's members, and the group's own DID issues its holders the badge credential (VTI-BDG-010, VTI-BDG-011, VTI-BDG-060). A badge group never carries authority (VTI-BDG-012). A badge of kind `kudos` has no group and no credential (VTI-BDG-041).
|
|
10
|
+
*
|
|
11
|
+
* AN AWARD IS AN OFFER UNTIL ACCEPTED. Giving a badge records an award in state `offered`; nothing is admitted, issued or shown until the recipient accepts (VTI-BDG-020, VTI-BDG-021). Each giving of a repeatable or kudos badge is an award of its own (VTI-BDG-022, VTI-BDG-041).
|
|
12
|
+
*
|
|
13
|
+
* BADGES CONFER NOTHING. The community never reads a badge, an award or a badge credential in an authorization decision (VTI-BDG-002).
|
|
14
|
+
*/
|
|
15
|
+
export interface BadgeSharedDefinitionsForTheVtcBadgesSpecFamily {
|
|
16
|
+
[k: string]: unknown | undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
21
|
+
* See "../../../../_shared/components.js".
|
|
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";
|