@openvtc/trust-tasks 0.28.10 → 0.28.11
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 +88 -0
- package/dist/_shared/components.d.ts +903 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +144 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +144 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/notifications/deposit/0.1/payload.d.ts +349 -0
- package/dist/vta/notifications/deposit/0.1/payload.d.ts.map +1 -0
- package/dist/vta/notifications/deposit/0.1/payload.js +198 -0
- package/dist/vta/notifications/deposit/0.1/payload.js.map +1 -0
- package/dist/vta/pcs/vetter/recover/0.1/payload.d.ts +667 -0
- package/dist/vta/pcs/vetter/recover/0.1/payload.d.ts.map +1 -0
- package/dist/vta/pcs/vetter/recover/0.1/payload.js +387 -0
- package/dist/vta/pcs/vetter/recover/0.1/payload.js.map +1 -0
- package/dist/vtc/notifications/_shared/0.1/received-notification.d.ts +16 -0
- package/dist/vtc/notifications/_shared/0.1/received-notification.d.ts.map +1 -0
- package/dist/vtc/notifications/_shared/0.1/received-notification.js +6 -0
- package/dist/vtc/notifications/_shared/0.1/received-notification.js.map +1 -0
- package/dist/vtc/notifications/list/0.1/payload.d.ts +1311 -0
- package/dist/vtc/notifications/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/notifications/list/0.1/payload.js +753 -0
- package/dist/vtc/notifications/list/0.1/payload.js.map +1 -0
- package/dist/vtc/notifications/relay/0.1/payload.d.ts +568 -0
- package/dist/vtc/notifications/relay/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/notifications/relay/0.1/payload.js +339 -0
- package/dist/vtc/notifications/relay/0.1/payload.js.map +1 -0
- package/dist/vtc/notifications/show/0.1/payload.d.ts +1229 -0
- package/dist/vtc/notifications/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/notifications/show/0.1/payload.js +727 -0
- package/dist/vtc/notifications/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.d.ts +340 -0
- package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.js +194 -0
- package/dist/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.d.ts +425 -0
- package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.js +233 -0
- package/dist/vtc/vetting/vetters/pcs-binding/show/0.1/payload.js.map +1 -0
- package/dist/vtn/_shared/0.1/directory.d.ts +16 -0
- package/dist/vtn/_shared/0.1/directory.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/directory.js +6 -0
- package/dist/vtn/_shared/0.1/directory.js.map +1 -0
- package/dist/vtn/_shared/0.1/entry.d.ts +16 -0
- package/dist/vtn/_shared/0.1/entry.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/entry.js +6 -0
- package/dist/vtn/_shared/0.1/entry.js.map +1 -0
- package/dist/vtn/_shared/0.1/graph.d.ts +16 -0
- package/dist/vtn/_shared/0.1/graph.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/graph.js +6 -0
- package/dist/vtn/_shared/0.1/graph.js.map +1 -0
- package/dist/vtn/_shared/0.1/groups.d.ts +16 -0
- package/dist/vtn/_shared/0.1/groups.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/groups.js +6 -0
- package/dist/vtn/_shared/0.1/groups.js.map +1 -0
- package/dist/vtn/_shared/0.1/membership.d.ts +16 -0
- package/dist/vtn/_shared/0.1/membership.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/membership.js +6 -0
- package/dist/vtn/_shared/0.1/membership.js.map +1 -0
- package/dist/vtn/_shared/0.1/relay.d.ts +16 -0
- package/dist/vtn/_shared/0.1/relay.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/relay.js +6 -0
- package/dist/vtn/_shared/0.1/relay.js.map +1 -0
- package/dist/vtn/_shared/0.1/rooms.d.ts +16 -0
- package/dist/vtn/_shared/0.1/rooms.d.ts.map +1 -0
- package/dist/vtn/_shared/0.1/rooms.js +6 -0
- package/dist/vtn/_shared/0.1/rooms.js.map +1 -0
- package/dist/vtn/audit/list/0.1/payload.d.ts +457 -0
- package/dist/vtn/audit/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/audit/list/0.1/payload.js +292 -0
- package/dist/vtn/audit/list/0.1/payload.js.map +1 -0
- package/dist/vtn/broadcasts/list/0.1/payload.d.ts +687 -0
- package/dist/vtn/broadcasts/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/broadcasts/list/0.1/payload.js +407 -0
- package/dist/vtn/broadcasts/list/0.1/payload.js.map +1 -0
- package/dist/vtn/broadcasts/send/0.1/payload.d.ts +728 -0
- package/dist/vtn/broadcasts/send/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/broadcasts/send/0.1/payload.js +425 -0
- package/dist/vtn/broadcasts/send/0.1/payload.js.map +1 -0
- package/dist/vtn/broadcasts/show/0.1/payload.d.ts +670 -0
- package/dist/vtn/broadcasts/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/broadcasts/show/0.1/payload.js +402 -0
- package/dist/vtn/broadcasts/show/0.1/payload.js.map +1 -0
- package/dist/vtn/directory/federated/0.1/payload.d.ts +939 -0
- package/dist/vtn/directory/federated/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/directory/federated/0.1/payload.js +536 -0
- package/dist/vtn/directory/federated/0.1/payload.js.map +1 -0
- package/dist/vtn/directory/search/0.1/payload.d.ts +643 -0
- package/dist/vtn/directory/search/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/directory/search/0.1/payload.js +368 -0
- package/dist/vtn/directory/search/0.1/payload.js.map +1 -0
- package/dist/vtn/directory/summary/0.1/payload.d.ts +366 -0
- package/dist/vtn/directory/summary/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/directory/summary/0.1/payload.js +216 -0
- package/dist/vtn/directory/summary/0.1/payload.js.map +1 -0
- package/dist/vtn/entries/show/0.1/payload.d.ts +682 -0
- package/dist/vtn/entries/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/entries/show/0.1/payload.js +398 -0
- package/dist/vtn/entries/show/0.1/payload.js.map +1 -0
- package/dist/vtn/graph/member/0.1/payload.d.ts +754 -0
- package/dist/vtn/graph/member/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/graph/member/0.1/payload.js +470 -0
- package/dist/vtn/graph/member/0.1/payload.js.map +1 -0
- package/dist/vtn/graph/show/0.1/payload.d.ts +754 -0
- package/dist/vtn/graph/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/graph/show/0.1/payload.js +468 -0
- package/dist/vtn/graph/show/0.1/payload.js.map +1 -0
- package/dist/vtn/groups/list/0.1/payload.d.ts +489 -0
- package/dist/vtn/groups/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/groups/list/0.1/payload.js +282 -0
- package/dist/vtn/groups/list/0.1/payload.js.map +1 -0
- package/dist/vtn/groups/register/0.1/payload.d.ts +504 -0
- package/dist/vtn/groups/register/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/groups/register/0.1/payload.js +291 -0
- package/dist/vtn/groups/register/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/create/0.1/payload.d.ts +954 -0
- package/dist/vtn/listings/create/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/create/0.1/payload.js +549 -0
- package/dist/vtn/listings/create/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/list/0.1/payload.d.ts +933 -0
- package/dist/vtn/listings/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/list/0.1/payload.js +538 -0
- package/dist/vtn/listings/list/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/reinstate/0.1/payload.d.ts +926 -0
- package/dist/vtn/listings/reinstate/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/reinstate/0.1/payload.js +536 -0
- package/dist/vtn/listings/reinstate/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/remove/0.1/payload.d.ts +926 -0
- package/dist/vtn/listings/remove/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/remove/0.1/payload.js +536 -0
- package/dist/vtn/listings/remove/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/show/0.1/payload.d.ts +914 -0
- package/dist/vtn/listings/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/show/0.1/payload.js +532 -0
- package/dist/vtn/listings/show/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/suspend/0.1/payload.d.ts +926 -0
- package/dist/vtn/listings/suspend/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/suspend/0.1/payload.js +536 -0
- package/dist/vtn/listings/suspend/0.1/payload.js.map +1 -0
- package/dist/vtn/listings/update/0.1/payload.d.ts +966 -0
- package/dist/vtn/listings/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/listings/update/0.1/payload.js +550 -0
- package/dist/vtn/listings/update/0.1/payload.js.map +1 -0
- package/dist/vtn/membership/acknowledge/0.1/payload.d.ts +654 -0
- package/dist/vtn/membership/acknowledge/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/membership/acknowledge/0.1/payload.js +386 -0
- package/dist/vtn/membership/acknowledge/0.1/payload.js.map +1 -0
- package/dist/vtn/membership/offer/0.1/payload.d.ts +247 -0
- package/dist/vtn/membership/offer/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/membership/offer/0.1/payload.js +147 -0
- package/dist/vtn/membership/offer/0.1/payload.js.map +1 -0
- package/dist/vtn/membership/repudiate/0.1/payload.d.ts +654 -0
- package/dist/vtn/membership/repudiate/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/membership/repudiate/0.1/payload.js +386 -0
- package/dist/vtn/membership/repudiate/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/groups/add/0.1/payload.d.ts +677 -0
- package/dist/vtn/memberships/groups/add/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/groups/add/0.1/payload.js +394 -0
- package/dist/vtn/memberships/groups/add/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/join/0.1/payload.d.ts +755 -0
- package/dist/vtn/memberships/join/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/join/0.1/payload.js +438 -0
- package/dist/vtn/memberships/join/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/leave/0.1/payload.d.ts +653 -0
- package/dist/vtn/memberships/leave/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/leave/0.1/payload.js +384 -0
- package/dist/vtn/memberships/leave/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/list/0.1/payload.d.ts +651 -0
- package/dist/vtn/memberships/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/list/0.1/payload.js +383 -0
- package/dist/vtn/memberships/list/0.1/payload.js.map +1 -0
- package/dist/vtn/memberships/repudiate/0.1/payload.d.ts +669 -0
- package/dist/vtn/memberships/repudiate/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/memberships/repudiate/0.1/payload.js +391 -0
- package/dist/vtn/memberships/repudiate/0.1/payload.js.map +1 -0
- package/dist/vtn/outbox/list/0.1/payload.d.ts +567 -0
- package/dist/vtn/outbox/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/outbox/list/0.1/payload.js +333 -0
- package/dist/vtn/outbox/list/0.1/payload.js.map +1 -0
- package/dist/vtn/outbox/retry/0.1/payload.d.ts +235 -0
- package/dist/vtn/outbox/retry/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/outbox/retry/0.1/payload.js +141 -0
- package/dist/vtn/outbox/retry/0.1/payload.js.map +1 -0
- package/dist/vtn/relay/deliver/0.1/payload.d.ts +592 -0
- package/dist/vtn/relay/deliver/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/relay/deliver/0.1/payload.js +352 -0
- package/dist/vtn/relay/deliver/0.1/payload.js.map +1 -0
- package/dist/vtn/roles/list/0.1/payload.d.ts +371 -0
- package/dist/vtn/roles/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/roles/list/0.1/payload.js +213 -0
- package/dist/vtn/roles/list/0.1/payload.js.map +1 -0
- package/dist/vtn/rooms/list/0.1/payload.d.ts +447 -0
- package/dist/vtn/rooms/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/rooms/list/0.1/payload.js +255 -0
- package/dist/vtn/rooms/list/0.1/payload.js.map +1 -0
- package/dist/vtn/rooms/pass/0.1/payload.d.ts +674 -0
- package/dist/vtn/rooms/pass/0.1/payload.d.ts.map +1 -0
- package/dist/vtn/rooms/pass/0.1/payload.js +383 -0
- package/dist/vtn/rooms/pass/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +922 -0
- package/src/index.ts +144 -0
- package/src/vta/notifications/deposit/0.1/payload.ts +243 -0
- package/src/vta/pcs/vetter/recover/0.1/payload.ts +437 -0
- package/src/vtc/notifications/_shared/0.1/received-notification.ts +17 -0
- package/src/vtc/notifications/list/0.1/payload.ts +809 -0
- package/src/vtc/notifications/relay/0.1/payload.ts +382 -0
- package/src/vtc/notifications/show/0.1/payload.ts +761 -0
- package/src/vtc/vetting/vetters/pcs-binding/reset/0.1/payload.ts +247 -0
- package/src/vtc/vetting/vetters/pcs-binding/show/0.1/payload.ts +295 -0
- package/src/vtn/_shared/0.1/directory.ts +17 -0
- package/src/vtn/_shared/0.1/entry.ts +17 -0
- package/src/vtn/_shared/0.1/graph.ts +17 -0
- package/src/vtn/_shared/0.1/groups.ts +17 -0
- package/src/vtn/_shared/0.1/membership.ts +17 -0
- package/src/vtn/_shared/0.1/relay.ts +17 -0
- package/src/vtn/_shared/0.1/rooms.ts +17 -0
- package/src/vtn/audit/list/0.1/payload.ts +336 -0
- package/src/vtn/broadcasts/list/0.1/payload.ts +447 -0
- package/src/vtn/broadcasts/send/0.1/payload.ts +478 -0
- package/src/vtn/broadcasts/show/0.1/payload.ts +439 -0
- package/src/vtn/directory/federated/0.1/payload.ts +594 -0
- package/src/vtn/directory/search/0.1/payload.ts +418 -0
- package/src/vtn/directory/summary/0.1/payload.ts +253 -0
- package/src/vtn/entries/show/0.1/payload.ts +439 -0
- package/src/vtn/graph/member/0.1/payload.ts +511 -0
- package/src/vtn/graph/show/0.1/payload.ts +509 -0
- package/src/vtn/groups/list/0.1/payload.ts +322 -0
- package/src/vtn/groups/register/0.1/payload.ts +336 -0
- package/src/vtn/listings/create/0.1/payload.ts +594 -0
- package/src/vtn/listings/list/0.1/payload.ts +578 -0
- package/src/vtn/listings/reinstate/0.1/payload.ts +577 -0
- package/src/vtn/listings/remove/0.1/payload.ts +577 -0
- package/src/vtn/listings/show/0.1/payload.ts +569 -0
- package/src/vtn/listings/suspend/0.1/payload.ts +577 -0
- package/src/vtn/listings/update/0.1/payload.ts +603 -0
- package/src/vtn/membership/acknowledge/0.1/payload.ts +423 -0
- package/src/vtn/membership/offer/0.1/payload.ts +183 -0
- package/src/vtn/membership/repudiate/0.1/payload.ts +423 -0
- package/src/vtn/memberships/groups/add/0.1/payload.ts +442 -0
- package/src/vtn/memberships/join/0.1/payload.ts +488 -0
- package/src/vtn/memberships/leave/0.1/payload.ts +424 -0
- package/src/vtn/memberships/list/0.1/payload.ts +419 -0
- package/src/vtn/memberships/repudiate/0.1/payload.ts +435 -0
- package/src/vtn/outbox/list/0.1/payload.ts +369 -0
- package/src/vtn/outbox/retry/0.1/payload.ts +177 -0
- package/src/vtn/relay/deliver/0.1/payload.ts +397 -0
- package/src/vtn/roles/list/0.1/payload.ts +253 -0
- package/src/vtn/rooms/list/0.1/payload.ts +295 -0
- package/src/vtn/rooms/pass/0.1/payload.ts +439 -0
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/vetting/vetters/pcs-binding/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A member asks its community which hidden-vetting (PCS) identifier the community has bound to them, and whether an administrator has reset that binding. The member learns only their own record.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTCVettingPCSBindingShowPayload {
|
|
10
|
+
ext?: Ext;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The requester's own binding. `id` is present exactly when `bound` is true.
|
|
14
|
+
*/
|
|
15
|
+
export interface VTCVettingPCSBindingShowResponsePayload {
|
|
16
|
+
/**
|
|
17
|
+
* Whether the community holds an identifier for this member. False for a member who has never enrolled.
|
|
18
|
+
*/
|
|
19
|
+
bound: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.
|
|
26
|
+
*/
|
|
27
|
+
enrolledLabels: string[];
|
|
28
|
+
reset?: Reset;
|
|
29
|
+
ext?: Ext;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.
|
|
33
|
+
*/
|
|
34
|
+
export interface Reset {
|
|
35
|
+
/**
|
|
36
|
+
* When the administrator reset the binding.
|
|
37
|
+
*/
|
|
38
|
+
resetAt: string;
|
|
39
|
+
/**
|
|
40
|
+
* The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.
|
|
41
|
+
*/
|
|
42
|
+
waitingOn: string[];
|
|
43
|
+
/**
|
|
44
|
+
* True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.
|
|
45
|
+
*/
|
|
46
|
+
open: boolean;
|
|
47
|
+
}
|
|
48
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
49
|
+
export type { Ext };
|
|
50
|
+
/** Trust Task type URI. */
|
|
51
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
|
|
52
|
+
/**
|
|
53
|
+
* The earlier version of this specification that this one declares it
|
|
54
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
55
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
56
|
+
* `extendsChain` / `readForSpec`.
|
|
57
|
+
*/
|
|
58
|
+
export declare const EXTENDS: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
61
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
62
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
63
|
+
* Versions").
|
|
64
|
+
*/
|
|
65
|
+
export declare const DEPRECATION: string | null;
|
|
66
|
+
/** Stable alias for this specification's request payload shape. */
|
|
67
|
+
export type Payload = VTCVettingPCSBindingShowPayload;
|
|
68
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
69
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1#response";
|
|
70
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
71
|
+
export type Response = VTCVettingPCSBindingShowResponsePayload;
|
|
72
|
+
/**
|
|
73
|
+
* This specification's payload schema, as a value.
|
|
74
|
+
*
|
|
75
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
76
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
77
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
78
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
79
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
80
|
+
*/
|
|
81
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
82
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
83
|
+
readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
|
|
84
|
+
readonly title: "VTC — Vetting PCS Binding — Show — payload";
|
|
85
|
+
readonly description: "A member asks its community which hidden-vetting (PCS) identifier the community has bound to them, and whether an administrator has reset that binding. The member learns only their own record.";
|
|
86
|
+
readonly type: "object";
|
|
87
|
+
readonly additionalProperties: false;
|
|
88
|
+
readonly properties: {
|
|
89
|
+
readonly ext: {
|
|
90
|
+
readonly $ref: "#/$defs/Ext";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly $defs: {
|
|
94
|
+
readonly Response: {
|
|
95
|
+
readonly $anchor: "response";
|
|
96
|
+
readonly title: "VTC — Vetting PCS Binding — Show — response payload";
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly additionalProperties: false;
|
|
99
|
+
readonly required: readonly ["bound", "enrolledLabels"];
|
|
100
|
+
readonly description: "The requester's own binding. `id` is present exactly when `bound` is true.";
|
|
101
|
+
readonly properties: {
|
|
102
|
+
readonly bound: {
|
|
103
|
+
readonly type: "boolean";
|
|
104
|
+
readonly description: "Whether the community holds an identifier for this member. False for a member who has never enrolled.";
|
|
105
|
+
};
|
|
106
|
+
readonly id: {
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
109
|
+
readonly description: "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.";
|
|
110
|
+
};
|
|
111
|
+
readonly enrolledLabels: {
|
|
112
|
+
readonly type: "array";
|
|
113
|
+
readonly items: {
|
|
114
|
+
readonly type: "string";
|
|
115
|
+
readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
|
|
116
|
+
};
|
|
117
|
+
readonly description: "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.";
|
|
118
|
+
};
|
|
119
|
+
readonly reset: {
|
|
120
|
+
readonly $ref: "#/$defs/Reset";
|
|
121
|
+
};
|
|
122
|
+
readonly ext: {
|
|
123
|
+
readonly $ref: "#/$defs/Ext";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly Reset: {
|
|
128
|
+
readonly title: "Reset";
|
|
129
|
+
readonly description: "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.";
|
|
130
|
+
readonly type: "object";
|
|
131
|
+
readonly additionalProperties: false;
|
|
132
|
+
readonly required: readonly ["resetAt", "waitingOn", "open"];
|
|
133
|
+
readonly properties: {
|
|
134
|
+
readonly resetAt: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly format: "date-time";
|
|
137
|
+
readonly description: "When the administrator reset the binding.";
|
|
138
|
+
};
|
|
139
|
+
readonly waitingOn: {
|
|
140
|
+
readonly type: "array";
|
|
141
|
+
readonly items: {
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
|
|
144
|
+
};
|
|
145
|
+
readonly description: "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.";
|
|
146
|
+
};
|
|
147
|
+
readonly open: {
|
|
148
|
+
readonly type: "boolean";
|
|
149
|
+
readonly description: "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
readonly Ext: {
|
|
154
|
+
readonly title: "Ext";
|
|
155
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
156
|
+
readonly type: "object";
|
|
157
|
+
readonly minProperties: 1;
|
|
158
|
+
readonly additionalProperties: true;
|
|
159
|
+
readonly propertyNames: {
|
|
160
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
166
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
167
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
168
|
+
readonly $ref: "#/$defs/Response";
|
|
169
|
+
readonly $defs: {
|
|
170
|
+
readonly Response: {
|
|
171
|
+
readonly $anchor: "response";
|
|
172
|
+
readonly title: "VTC — Vetting PCS Binding — Show — response payload";
|
|
173
|
+
readonly type: "object";
|
|
174
|
+
readonly additionalProperties: false;
|
|
175
|
+
readonly required: readonly ["bound", "enrolledLabels"];
|
|
176
|
+
readonly description: "The requester's own binding. `id` is present exactly when `bound` is true.";
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly bound: {
|
|
179
|
+
readonly type: "boolean";
|
|
180
|
+
readonly description: "Whether the community holds an identifier for this member. False for a member who has never enrolled.";
|
|
181
|
+
};
|
|
182
|
+
readonly id: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
185
|
+
readonly description: "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.";
|
|
186
|
+
};
|
|
187
|
+
readonly enrolledLabels: {
|
|
188
|
+
readonly type: "array";
|
|
189
|
+
readonly items: {
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
|
|
192
|
+
};
|
|
193
|
+
readonly description: "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.";
|
|
194
|
+
};
|
|
195
|
+
readonly reset: {
|
|
196
|
+
readonly $ref: "#/$defs/Reset";
|
|
197
|
+
};
|
|
198
|
+
readonly ext: {
|
|
199
|
+
readonly $ref: "#/$defs/Ext";
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
readonly Reset: {
|
|
204
|
+
readonly title: "Reset";
|
|
205
|
+
readonly description: "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.";
|
|
206
|
+
readonly type: "object";
|
|
207
|
+
readonly additionalProperties: false;
|
|
208
|
+
readonly required: readonly ["resetAt", "waitingOn", "open"];
|
|
209
|
+
readonly properties: {
|
|
210
|
+
readonly resetAt: {
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly format: "date-time";
|
|
213
|
+
readonly description: "When the administrator reset the binding.";
|
|
214
|
+
};
|
|
215
|
+
readonly waitingOn: {
|
|
216
|
+
readonly type: "array";
|
|
217
|
+
readonly items: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
|
|
220
|
+
};
|
|
221
|
+
readonly description: "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.";
|
|
222
|
+
};
|
|
223
|
+
readonly open: {
|
|
224
|
+
readonly type: "boolean";
|
|
225
|
+
readonly description: "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.";
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly Ext: {
|
|
230
|
+
readonly title: "Ext";
|
|
231
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly minProperties: 1;
|
|
234
|
+
readonly additionalProperties: true;
|
|
235
|
+
readonly propertyNames: {
|
|
236
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
243
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
244
|
+
* per-specification and cannot be derived from the document alone, and
|
|
245
|
+
* item 2 needs the schema this carries.
|
|
246
|
+
*/
|
|
247
|
+
export declare const SPEC: {
|
|
248
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
|
|
249
|
+
readonly isBearer: false;
|
|
250
|
+
readonly isProofRequired: true;
|
|
251
|
+
readonly isRecipientRequired: true;
|
|
252
|
+
readonly isIssuedAtRequired: false;
|
|
253
|
+
readonly payloadSchema: {
|
|
254
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
255
|
+
readonly $id: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
|
|
256
|
+
readonly title: "VTC — Vetting PCS Binding — Show — payload";
|
|
257
|
+
readonly description: "A member asks its community which hidden-vetting (PCS) identifier the community has bound to them, and whether an administrator has reset that binding. The member learns only their own record.";
|
|
258
|
+
readonly type: "object";
|
|
259
|
+
readonly additionalProperties: false;
|
|
260
|
+
readonly properties: {
|
|
261
|
+
readonly ext: {
|
|
262
|
+
readonly $ref: "#/$defs/Ext";
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
readonly $defs: {
|
|
266
|
+
readonly Response: {
|
|
267
|
+
readonly $anchor: "response";
|
|
268
|
+
readonly title: "VTC — Vetting PCS Binding — Show — response payload";
|
|
269
|
+
readonly type: "object";
|
|
270
|
+
readonly additionalProperties: false;
|
|
271
|
+
readonly required: readonly ["bound", "enrolledLabels"];
|
|
272
|
+
readonly description: "The requester's own binding. `id` is present exactly when `bound` is true.";
|
|
273
|
+
readonly properties: {
|
|
274
|
+
readonly bound: {
|
|
275
|
+
readonly type: "boolean";
|
|
276
|
+
readonly description: "Whether the community holds an identifier for this member. False for a member who has never enrolled.";
|
|
277
|
+
};
|
|
278
|
+
readonly id: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
281
|
+
readonly description: "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.";
|
|
282
|
+
};
|
|
283
|
+
readonly enrolledLabels: {
|
|
284
|
+
readonly type: "array";
|
|
285
|
+
readonly items: {
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
|
|
288
|
+
};
|
|
289
|
+
readonly description: "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.";
|
|
290
|
+
};
|
|
291
|
+
readonly reset: {
|
|
292
|
+
readonly $ref: "#/$defs/Reset";
|
|
293
|
+
};
|
|
294
|
+
readonly ext: {
|
|
295
|
+
readonly $ref: "#/$defs/Ext";
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly Reset: {
|
|
300
|
+
readonly title: "Reset";
|
|
301
|
+
readonly description: "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.";
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
readonly additionalProperties: false;
|
|
304
|
+
readonly required: readonly ["resetAt", "waitingOn", "open"];
|
|
305
|
+
readonly properties: {
|
|
306
|
+
readonly resetAt: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly format: "date-time";
|
|
309
|
+
readonly description: "When the administrator reset the binding.";
|
|
310
|
+
};
|
|
311
|
+
readonly waitingOn: {
|
|
312
|
+
readonly type: "array";
|
|
313
|
+
readonly items: {
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
|
|
316
|
+
};
|
|
317
|
+
readonly description: "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.";
|
|
318
|
+
};
|
|
319
|
+
readonly open: {
|
|
320
|
+
readonly type: "boolean";
|
|
321
|
+
readonly description: "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.";
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
readonly Ext: {
|
|
326
|
+
readonly title: "Ext";
|
|
327
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
328
|
+
readonly type: "object";
|
|
329
|
+
readonly minProperties: 1;
|
|
330
|
+
readonly additionalProperties: true;
|
|
331
|
+
readonly propertyNames: {
|
|
332
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
340
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
341
|
+
* parties (§7.3 item 5).
|
|
342
|
+
*/
|
|
343
|
+
export declare const RESPONSE_SPEC: {
|
|
344
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1#response";
|
|
345
|
+
readonly isBearer: false;
|
|
346
|
+
readonly isProofRequired: true;
|
|
347
|
+
readonly isRecipientRequired: true;
|
|
348
|
+
readonly isIssuedAtRequired: false;
|
|
349
|
+
readonly payloadSchema: {
|
|
350
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
351
|
+
readonly $ref: "#/$defs/Response";
|
|
352
|
+
readonly $defs: {
|
|
353
|
+
readonly Response: {
|
|
354
|
+
readonly $anchor: "response";
|
|
355
|
+
readonly title: "VTC — Vetting PCS Binding — Show — response payload";
|
|
356
|
+
readonly type: "object";
|
|
357
|
+
readonly additionalProperties: false;
|
|
358
|
+
readonly required: readonly ["bound", "enrolledLabels"];
|
|
359
|
+
readonly description: "The requester's own binding. `id` is present exactly when `bound` is true.";
|
|
360
|
+
readonly properties: {
|
|
361
|
+
readonly bound: {
|
|
362
|
+
readonly type: "boolean";
|
|
363
|
+
readonly description: "Whether the community holds an identifier for this member. False for a member who has never enrolled.";
|
|
364
|
+
};
|
|
365
|
+
readonly id: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
readonly pattern: "^z[1-9A-HJ-NP-Za-km-z]+$";
|
|
368
|
+
readonly description: "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset.";
|
|
369
|
+
};
|
|
370
|
+
readonly enrolledLabels: {
|
|
371
|
+
readonly type: "array";
|
|
372
|
+
readonly items: {
|
|
373
|
+
readonly type: "string";
|
|
374
|
+
readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
|
|
375
|
+
};
|
|
376
|
+
readonly description: "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound.";
|
|
377
|
+
};
|
|
378
|
+
readonly reset: {
|
|
379
|
+
readonly $ref: "#/$defs/Reset";
|
|
380
|
+
};
|
|
381
|
+
readonly ext: {
|
|
382
|
+
readonly $ref: "#/$defs/Ext";
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
readonly Reset: {
|
|
387
|
+
readonly title: "Reset";
|
|
388
|
+
readonly description: "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.";
|
|
389
|
+
readonly type: "object";
|
|
390
|
+
readonly additionalProperties: false;
|
|
391
|
+
readonly required: readonly ["resetAt", "waitingOn", "open"];
|
|
392
|
+
readonly properties: {
|
|
393
|
+
readonly resetAt: {
|
|
394
|
+
readonly type: "string";
|
|
395
|
+
readonly format: "date-time";
|
|
396
|
+
readonly description: "When the administrator reset the binding.";
|
|
397
|
+
};
|
|
398
|
+
readonly waitingOn: {
|
|
399
|
+
readonly type: "array";
|
|
400
|
+
readonly items: {
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
readonly pattern: "^vetter/[0-9]{4}-[0-9]{2}$";
|
|
403
|
+
};
|
|
404
|
+
readonly description: "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty.";
|
|
405
|
+
};
|
|
406
|
+
readonly open: {
|
|
407
|
+
readonly type: "boolean";
|
|
408
|
+
readonly description: "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it.";
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
readonly Ext: {
|
|
413
|
+
readonly title: "Ext";
|
|
414
|
+
readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
|
|
415
|
+
readonly type: "object";
|
|
416
|
+
readonly minProperties: 1;
|
|
417
|
+
readonly additionalProperties: true;
|
|
418
|
+
readonly propertyNames: {
|
|
419
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../../src/vtc/vetting/vetters/pcs-binding/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,yCAAyC,CAAC;AAGnE;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,CAAC;AAEpB,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sEAA+E,CAAC;AAExG;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,GAAG,IAAW,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,GAAG,IAAW,CAAC;AAE/C,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,+BAA+B,CAAC;AAEtD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+EAAwF,CAAC;AAE1H,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,uCAAuC,CAAC;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/vetting/vetters/pcs-binding/show/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1";
|
|
7
|
+
/**
|
|
8
|
+
* The earlier version of this specification that this one declares it
|
|
9
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
10
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
11
|
+
* `extendsChain` / `readForSpec`.
|
|
12
|
+
*/
|
|
13
|
+
export const EXTENDS = null;
|
|
14
|
+
/**
|
|
15
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
16
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
17
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
|
+
* Versions").
|
|
19
|
+
*/
|
|
20
|
+
export const DEPRECATION = null;
|
|
21
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
22
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1#response";
|
|
23
|
+
/**
|
|
24
|
+
* This specification's payload schema, as a value.
|
|
25
|
+
*
|
|
26
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
27
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
28
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
29
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
30
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
31
|
+
*/
|
|
32
|
+
export const PAYLOAD_SCHEMA = {
|
|
33
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
34
|
+
"$id": "https://trusttasks.org/spec/vtc/vetting/vetters/pcs-binding/show/0.1",
|
|
35
|
+
"title": "VTC — Vetting PCS Binding — Show — payload",
|
|
36
|
+
"description": "A member asks its community which hidden-vetting (PCS) identifier the community has bound to them, and whether an administrator has reset that binding. The member learns only their own record.",
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"properties": {
|
|
40
|
+
"ext": {
|
|
41
|
+
"$ref": "#/$defs/Ext"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"$defs": {
|
|
45
|
+
"Response": {
|
|
46
|
+
"$anchor": "response",
|
|
47
|
+
"title": "VTC — Vetting PCS Binding — Show — response payload",
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"required": [
|
|
51
|
+
"bound",
|
|
52
|
+
"enrolledLabels"
|
|
53
|
+
],
|
|
54
|
+
"description": "The requester's own binding. `id` is present exactly when `bound` is true.",
|
|
55
|
+
"properties": {
|
|
56
|
+
"bound": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"description": "Whether the community holds an identifier for this member. False for a member who has never enrolled."
|
|
59
|
+
},
|
|
60
|
+
"id": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
|
|
63
|
+
"description": "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset."
|
|
64
|
+
},
|
|
65
|
+
"enrolledLabels": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"pattern": "^vetter/[0-9]{4}-[0-9]{2}$"
|
|
70
|
+
},
|
|
71
|
+
"description": "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound."
|
|
72
|
+
},
|
|
73
|
+
"reset": {
|
|
74
|
+
"$ref": "#/$defs/Reset"
|
|
75
|
+
},
|
|
76
|
+
"ext": {
|
|
77
|
+
"$ref": "#/$defs/Ext"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"Reset": {
|
|
82
|
+
"title": "Reset",
|
|
83
|
+
"description": "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.",
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"required": [
|
|
87
|
+
"resetAt",
|
|
88
|
+
"waitingOn",
|
|
89
|
+
"open"
|
|
90
|
+
],
|
|
91
|
+
"properties": {
|
|
92
|
+
"resetAt": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"format": "date-time",
|
|
95
|
+
"description": "When the administrator reset the binding."
|
|
96
|
+
},
|
|
97
|
+
"waitingOn": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"pattern": "^vetter/[0-9]{4}-[0-9]{2}$"
|
|
102
|
+
},
|
|
103
|
+
"description": "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty."
|
|
104
|
+
},
|
|
105
|
+
"open": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"description": "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it."
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"Ext": {
|
|
112
|
+
"title": "Ext",
|
|
113
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
114
|
+
"type": "object",
|
|
115
|
+
"minProperties": 1,
|
|
116
|
+
"additionalProperties": true,
|
|
117
|
+
"propertyNames": {
|
|
118
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
124
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
125
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
126
|
+
"$ref": "#/$defs/Response",
|
|
127
|
+
"$defs": {
|
|
128
|
+
"Response": {
|
|
129
|
+
"$anchor": "response",
|
|
130
|
+
"title": "VTC — Vetting PCS Binding — Show — response payload",
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": false,
|
|
133
|
+
"required": [
|
|
134
|
+
"bound",
|
|
135
|
+
"enrolledLabels"
|
|
136
|
+
],
|
|
137
|
+
"description": "The requester's own binding. `id` is present exactly when `bound` is true.",
|
|
138
|
+
"properties": {
|
|
139
|
+
"bound": {
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"description": "Whether the community holds an identifier for this member. False for a member who has never enrolled."
|
|
142
|
+
},
|
|
143
|
+
"id": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"pattern": "^z[1-9A-HJ-NP-Za-km-z]+$",
|
|
146
|
+
"description": "The PCS identifier recorded at this member's first enrolment, multibase base58btc. Present if and only if `bound` is true; a consumer treats `bound: true` without `id` as not bound. While a reset is pending it is still the recorded one: enrolling with it again cancels the reset."
|
|
147
|
+
},
|
|
148
|
+
"enrolledLabels": {
|
|
149
|
+
"type": "array",
|
|
150
|
+
"items": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"pattern": "^vetter/[0-9]{4}-[0-9]{2}$"
|
|
153
|
+
},
|
|
154
|
+
"description": "The vetter class labels this member has enrolled under with the recorded identifier, oldest first. Empty when not bound."
|
|
155
|
+
},
|
|
156
|
+
"reset": {
|
|
157
|
+
"$ref": "#/$defs/Reset"
|
|
158
|
+
},
|
|
159
|
+
"ext": {
|
|
160
|
+
"$ref": "#/$defs/Ext"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"Reset": {
|
|
165
|
+
"title": "Reset",
|
|
166
|
+
"description": "An administrator's reset of this member's binding, not yet completed by an enrolment under a new identifier.",
|
|
167
|
+
"type": "object",
|
|
168
|
+
"additionalProperties": false,
|
|
169
|
+
"required": [
|
|
170
|
+
"resetAt",
|
|
171
|
+
"waitingOn",
|
|
172
|
+
"open"
|
|
173
|
+
],
|
|
174
|
+
"properties": {
|
|
175
|
+
"resetAt": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"format": "date-time",
|
|
178
|
+
"description": "When the administrator reset the binding."
|
|
179
|
+
},
|
|
180
|
+
"waitingOn": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"pattern": "^vetter/[0-9]{4}-[0-9]{2}$"
|
|
185
|
+
},
|
|
186
|
+
"description": "The labels the recorded identifier enrolled under that the community still accepts, at the time of this answer. A new identifier is refused until this is empty."
|
|
187
|
+
},
|
|
188
|
+
"open": {
|
|
189
|
+
"type": "boolean",
|
|
190
|
+
"description": "True when `waitingOn` is empty: the next enrolment may present a new identifier, and the community binds it."
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"Ext": {
|
|
195
|
+
"title": "Ext",
|
|
196
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
197
|
+
"type": "object",
|
|
198
|
+
"minProperties": 1,
|
|
199
|
+
"additionalProperties": true,
|
|
200
|
+
"propertyNames": {
|
|
201
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
208
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
209
|
+
* per-specification and cannot be derived from the document alone, and
|
|
210
|
+
* item 2 needs the schema this carries.
|
|
211
|
+
*/
|
|
212
|
+
export const SPEC = {
|
|
213
|
+
typeUri: TYPE_URI,
|
|
214
|
+
isBearer: false,
|
|
215
|
+
isProofRequired: true,
|
|
216
|
+
isRecipientRequired: true,
|
|
217
|
+
isIssuedAtRequired: false,
|
|
218
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
222
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
223
|
+
* parties (§7.3 item 5).
|
|
224
|
+
*/
|
|
225
|
+
export const RESPONSE_SPEC = {
|
|
226
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
227
|
+
isBearer: false,
|
|
228
|
+
isProofRequired: true,
|
|
229
|
+
isRecipientRequired: true,
|
|
230
|
+
isIssuedAtRequired: false,
|
|
231
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
232
|
+
};
|
|
233
|
+
//# sourceMappingURL=payload.js.map
|