@openvtc/trust-tasks 0.21.11 → 0.21.13
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 +76 -0
- package/dist/_framework/0.4/framework.d.ts +1 -1
- package/dist/_framework/0.4/framework.d.ts.map +1 -1
- package/dist/_shared/components.d.ts +371 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/auth/_shared/0.1/signing-key.d.ts +16 -0
- package/dist/auth/_shared/0.1/signing-key.d.ts.map +1 -0
- package/dist/auth/_shared/0.1/signing-key.js +6 -0
- package/dist/auth/_shared/0.1/signing-key.js.map +1 -0
- package/dist/auth/signing-key/enroll/0.1/payload.d.ts +545 -0
- package/dist/auth/signing-key/enroll/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/enroll/0.1/payload.js +307 -0
- package/dist/auth/signing-key/enroll/0.1/payload.js.map +1 -0
- package/dist/auth/signing-key/list/0.1/payload.d.ts +509 -0
- package/dist/auth/signing-key/list/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/list/0.1/payload.js +289 -0
- package/dist/auth/signing-key/list/0.1/payload.js.map +1 -0
- package/dist/auth/signing-key/revoke/0.1/payload.d.ts +292 -0
- package/dist/auth/signing-key/revoke/0.1/payload.d.ts.map +1 -0
- package/dist/auth/signing-key/revoke/0.1/payload.js +167 -0
- package/dist/auth/signing-key/revoke/0.1/payload.js.map +1 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/contexts/update-did/1.1/payload.d.ts +388 -0
- package/dist/vta/contexts/update-did/1.1/payload.d.ts.map +1 -0
- package/dist/vta/contexts/update-did/1.1/payload.js +227 -0
- package/dist/vta/contexts/update-did/1.1/payload.js.map +1 -0
- package/dist/vtc/_shared/0.1/community-presentation.d.ts +16 -0
- package/dist/vtc/_shared/0.1/community-presentation.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/community-presentation.js +6 -0
- package/dist/vtc/_shared/0.1/community-presentation.js.map +1 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts +16 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.js +6 -0
- package/dist/vtc/_shared/0.1/relationship-lifecycle.js.map +1 -0
- package/dist/vtc/_shared/0.1/schema-registry.d.ts +16 -0
- package/dist/vtc/_shared/0.1/schema-registry.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/schema-registry.js +6 -0
- package/dist/vtc/_shared/0.1/schema-registry.js.map +1 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts +16 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.js +6 -0
- package/dist/vtc/_shared/0.1/vetting-auto-grant.js.map +1 -0
- package/dist/vtc/_shared/0.1/website-transfer.d.ts +16 -0
- package/dist/vtc/_shared/0.1/website-transfer.d.ts.map +1 -0
- package/dist/vtc/_shared/0.1/website-transfer.js +6 -0
- package/dist/vtc/_shared/0.1/website-transfer.js.map +1 -0
- package/dist/vtc/community/branding/show/0.1/payload.d.ts +319 -0
- package/dist/vtc/community/branding/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/branding/show/0.1/payload.js +179 -0
- package/dist/vtc/community/branding/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/branding/update/0.1/payload.d.ts +328 -0
- package/dist/vtc/community/branding/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/branding/update/0.1/payload.js +185 -0
- package/dist/vtc/community/branding/update/0.1/payload.js.map +1 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts +267 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.js +157 -0
- package/dist/vtc/community/join-discovery/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts +276 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.js +163 -0
- package/dist/vtc/community/join-discovery/update/0.1/payload.js.map +1 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts +339 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.js +193 -0
- package/dist/vtc/community/requested-attributes/show/0.1/payload.js.map +1 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts +348 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.js +199 -0
- package/dist/vtc/community/requested-attributes/update/0.1/payload.js.map +1 -0
- package/dist/vtc/join-requests/query/0.1/payload.d.ts +412 -0
- package/dist/vtc/join-requests/query/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/query/0.1/payload.js +228 -0
- package/dist/vtc/join-requests/query/0.1/payload.js.map +1 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts +1016 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.js +509 -0
- package/dist/vtc/join-requests/vetting/show/0.1/payload.js.map +1 -0
- package/dist/vtc/relationships/restore/0.1/payload.d.ts +462 -0
- package/dist/vtc/relationships/restore/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/relationships/restore/0.1/payload.js +270 -0
- package/dist/vtc/relationships/restore/0.1/payload.js.map +1 -0
- package/dist/vtc/relationships/suspend/0.1/payload.d.ts +462 -0
- package/dist/vtc/relationships/suspend/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/relationships/suspend/0.1/payload.js +270 -0
- package/dist/vtc/relationships/suspend/0.1/payload.js.map +1 -0
- package/dist/vtc/rooms/list/0.1/payload.d.ts +653 -0
- package/dist/vtc/rooms/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/rooms/list/0.1/payload.js +360 -0
- package/dist/vtc/rooms/list/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts +240 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.js +141 -0
- package/dist/vtc/schemas/accepts/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts +1214 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.js +681 -0
- package/dist/vtc/schemas/accepts/list/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts +1165 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.js +665 -0
- package/dist/vtc/schemas/accepts/register/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts +1144 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.js +655 -0
- package/dist/vtc/schemas/accepts/show/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/delete/0.1/payload.d.ts +240 -0
- package/dist/vtc/schemas/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/delete/0.1/payload.js +141 -0
- package/dist/vtc/schemas/delete/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/list/0.1/payload.d.ts +541 -0
- package/dist/vtc/schemas/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/list/0.1/payload.js +300 -0
- package/dist/vtc/schemas/list/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/register/0.1/payload.d.ts +512 -0
- package/dist/vtc/schemas/register/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/register/0.1/payload.js +292 -0
- package/dist/vtc/schemas/register/0.1/payload.js.map +1 -0
- package/dist/vtc/schemas/show/0.1/payload.d.ts +484 -0
- package/dist/vtc/schemas/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/schemas/show/0.1/payload.js +279 -0
- package/dist/vtc/schemas/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts +463 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.js +269 -0
- package/dist/vtc/vetting/auto-grant/show/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts +491 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.js +282 -0
- package/dist/vtc/vetting/auto-grant/update/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts +608 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.js +332 -0
- package/dist/vtc/vetting/revocations/list/0.1/payload.js.map +1 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts +992 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js +461 -0
- package/dist/vtc/vetting/vetters/grants/list/0.1/payload.js.map +1 -0
- package/dist/vtc/website/deploy/0.1/payload.d.ts +369 -0
- package/dist/vtc/website/deploy/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/deploy/0.1/payload.js +213 -0
- package/dist/vtc/website/deploy/0.1/payload.js.map +1 -0
- package/dist/vtc/website/files/show/0.1/payload.d.ts +455 -0
- package/dist/vtc/website/files/show/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/files/show/0.1/payload.js +247 -0
- package/dist/vtc/website/files/show/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/abort/0.1/payload.d.ts +256 -0
- package/dist/vtc/website/upload/abort/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/abort/0.1/payload.js +149 -0
- package/dist/vtc/website/upload/abort/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/begin/0.1/payload.d.ts +658 -0
- package/dist/vtc/website/upload/begin/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/begin/0.1/payload.js +375 -0
- package/dist/vtc/website/upload/begin/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.d.ts +447 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.js +253 -0
- package/dist/vtc/website/upload/chunk/0.1/payload.js.map +1 -0
- package/dist/vtc/website/upload/commit/0.1/payload.d.ts +603 -0
- package/dist/vtc/website/upload/commit/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/website/upload/commit/0.1/payload.js +337 -0
- package/dist/vtc/website/upload/commit/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_framework/0.4/framework.ts +1 -1
- package/src/_shared/components.ts +371 -0
- package/src/auth/_shared/0.1/signing-key.ts +17 -0
- package/src/auth/signing-key/enroll/0.1/payload.ts +349 -0
- package/src/auth/signing-key/list/0.1/payload.ts +323 -0
- package/src/auth/signing-key/revoke/0.1/payload.ts +204 -0
- package/src/index.ts +39 -0
- package/src/vta/contexts/update-did/1.1/payload.ts +256 -0
- package/src/vtc/_shared/0.1/community-presentation.ts +17 -0
- package/src/vtc/_shared/0.1/relationship-lifecycle.ts +17 -0
- package/src/vtc/_shared/0.1/schema-registry.ts +17 -0
- package/src/vtc/_shared/0.1/vetting-auto-grant.ts +17 -0
- package/src/vtc/_shared/0.1/website-transfer.ts +17 -0
- package/src/vtc/community/branding/show/0.1/payload.ts +207 -0
- package/src/vtc/community/branding/update/0.1/payload.ts +214 -0
- package/src/vtc/community/join-discovery/show/0.1/payload.ts +185 -0
- package/src/vtc/community/join-discovery/update/0.1/payload.ts +192 -0
- package/src/vtc/community/requested-attributes/show/0.1/payload.ts +221 -0
- package/src/vtc/community/requested-attributes/update/0.1/payload.ts +228 -0
- package/src/vtc/join-requests/query/0.1/payload.ts +285 -0
- package/src/vtc/join-requests/vetting/show/0.1/payload.ts +740 -0
- package/src/vtc/relationships/restore/0.1/payload.ts +307 -0
- package/src/vtc/relationships/suspend/0.1/payload.ts +307 -0
- package/src/vtc/rooms/list/0.1/payload.ts +449 -0
- package/src/vtc/schemas/accepts/delete/0.1/payload.ts +170 -0
- package/src/vtc/schemas/accepts/list/0.1/payload.ts +724 -0
- package/src/vtc/schemas/accepts/register/0.1/payload.ts +697 -0
- package/src/vtc/schemas/accepts/show/0.1/payload.ts +684 -0
- package/src/vtc/schemas/delete/0.1/payload.ts +170 -0
- package/src/vtc/schemas/list/0.1/payload.ts +344 -0
- package/src/vtc/schemas/register/0.1/payload.ts +325 -0
- package/src/vtc/schemas/show/0.1/payload.ts +308 -0
- package/src/vtc/vetting/auto-grant/show/0.1/payload.ts +297 -0
- package/src/vtc/vetting/auto-grant/update/0.1/payload.ts +316 -0
- package/src/vtc/vetting/revocations/list/0.1/payload.ts +416 -0
- package/src/vtc/vetting/vetters/grants/list/0.1/payload.ts +700 -0
- package/src/vtc/website/deploy/0.1/payload.ts +255 -0
- package/src/vtc/website/files/show/0.1/payload.ts +303 -0
- package/src/vtc/website/upload/abort/0.1/payload.ts +182 -0
- package/src/vtc/website/upload/begin/0.1/payload.ts +408 -0
- package/src/vtc/website/upload/chunk/0.1/payload.ts +295 -0
- package/src/vtc/website/upload/commit/0.1/payload.ts +385 -0
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/rooms/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext, RetentionPolicy, Visibility } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Where a room sits on the hosting lifecycle clock, computed at the time of the read from its epoch expiry and retention: `live`, `lapsed`, `dormant` or `reclaimable`. Computed, never stored — minting an epoch is the renewal.
|
|
11
|
+
*/
|
|
12
|
+
export type RoomLifecycle = "live" | "lapsed" | "dormant" | "reclaimable";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A community administrator pages through the data rooms this community hosts, as their host can honestly describe them. The outer document members are owned by the framework — SPEC §6.3.
|
|
16
|
+
*/
|
|
17
|
+
export interface VTCRoomsListPayload {
|
|
18
|
+
lifecycle?: RoomLifecycle;
|
|
19
|
+
/**
|
|
20
|
+
* Opaque continuation token from a previous page's `nextCursor`.
|
|
21
|
+
*/
|
|
22
|
+
cursor?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Page size. The community chooses when absent (50 in the reference implementation).
|
|
25
|
+
*/
|
|
26
|
+
limit?: number;
|
|
27
|
+
ext?: Ext;
|
|
28
|
+
}
|
|
29
|
+
export interface VTCRoomsListResponsePayload {
|
|
30
|
+
/**
|
|
31
|
+
* @maxItems 100
|
|
32
|
+
*/
|
|
33
|
+
items: HostedRoom[];
|
|
34
|
+
/**
|
|
35
|
+
* Present when more remain; pass it as `cursor`.
|
|
36
|
+
*/
|
|
37
|
+
nextCursor?: string;
|
|
38
|
+
ext?: Ext;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* One room, as its host holds it: who is accountable for it, its tier, its epoch and its place on the lifecycle clock. Nothing derived from the room's contents, and no member list — the host has none.
|
|
42
|
+
*/
|
|
43
|
+
export interface HostedRoom {
|
|
44
|
+
/**
|
|
45
|
+
* The room's identifier, as its owner minted it.
|
|
46
|
+
*/
|
|
47
|
+
roomId: string;
|
|
48
|
+
/**
|
|
49
|
+
* The accountable party — visible at every tier, including `private`, because it is who the host must reach about quota, abuse and reclamation.
|
|
50
|
+
*/
|
|
51
|
+
ownerDid: string;
|
|
52
|
+
visibility: Visibility;
|
|
53
|
+
retentionPolicy: RetentionPolicy;
|
|
54
|
+
/**
|
|
55
|
+
* The room's current epoch.
|
|
56
|
+
*/
|
|
57
|
+
epoch: number;
|
|
58
|
+
lifecycle: RoomLifecycle;
|
|
59
|
+
/**
|
|
60
|
+
* When the current epoch expires, in seconds since the Unix epoch. Absent means the room never lapses.
|
|
61
|
+
*/
|
|
62
|
+
epochExpiresAt?: number;
|
|
63
|
+
/**
|
|
64
|
+
* How long the host keeps the room after it lapses, in days.
|
|
65
|
+
*/
|
|
66
|
+
retentionDays: number;
|
|
67
|
+
/**
|
|
68
|
+
* Present when this host serves a read-only copy, naming the primary it pulls from.
|
|
69
|
+
*/
|
|
70
|
+
mirrorOf?: string;
|
|
71
|
+
/**
|
|
72
|
+
* When the room was created here, in seconds since the Unix epoch — the encoding the rooms family uses.
|
|
73
|
+
*/
|
|
74
|
+
createdAt: number;
|
|
75
|
+
/**
|
|
76
|
+
* When the room's host record last changed, in seconds since the Unix epoch.
|
|
77
|
+
*/
|
|
78
|
+
updatedAt: number;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
82
|
+
export type { Ext, RetentionPolicy, Visibility };
|
|
83
|
+
|
|
84
|
+
/** Trust Task type URI. */
|
|
85
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/list/0.1" as const;
|
|
86
|
+
|
|
87
|
+
/** Stable alias for this specification's request payload shape. */
|
|
88
|
+
export type Payload = VTCRoomsListPayload;
|
|
89
|
+
|
|
90
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
91
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/rooms/list/0.1#response" as const;
|
|
92
|
+
|
|
93
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
94
|
+
export type Response = VTCRoomsListResponsePayload;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* This specification's payload schema, as a value.
|
|
98
|
+
*
|
|
99
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
100
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
101
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
102
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
103
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
104
|
+
*/
|
|
105
|
+
export const PAYLOAD_SCHEMA = {
|
|
106
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
107
|
+
"$id": "https://trusttasks.org/spec/vtc/rooms/list/0.1",
|
|
108
|
+
"title": "VTC Rooms — List — payload",
|
|
109
|
+
"description": "A community administrator pages through the data rooms this community hosts, as their host can honestly describe them. The outer document members are owned by the framework — SPEC §6.3.",
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"properties": {
|
|
113
|
+
"lifecycle": {
|
|
114
|
+
"$ref": "#/$defs/RoomLifecycle"
|
|
115
|
+
},
|
|
116
|
+
"cursor": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"minLength": 1,
|
|
119
|
+
"maxLength": 1024,
|
|
120
|
+
"description": "Opaque continuation token from a previous page's `nextCursor`."
|
|
121
|
+
},
|
|
122
|
+
"limit": {
|
|
123
|
+
"type": "integer",
|
|
124
|
+
"minimum": 1,
|
|
125
|
+
"maximum": 100,
|
|
126
|
+
"description": "Page size. The community chooses when absent (50 in the reference implementation)."
|
|
127
|
+
},
|
|
128
|
+
"ext": {
|
|
129
|
+
"$ref": "#/$defs/Ext"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"$defs": {
|
|
133
|
+
"RoomLifecycle": {
|
|
134
|
+
"title": "RoomLifecycle",
|
|
135
|
+
"type": "string",
|
|
136
|
+
"enum": [
|
|
137
|
+
"live",
|
|
138
|
+
"lapsed",
|
|
139
|
+
"dormant",
|
|
140
|
+
"reclaimable"
|
|
141
|
+
],
|
|
142
|
+
"description": "Where a room sits on the hosting lifecycle clock, computed at the time of the read from its epoch expiry and retention: `live`, `lapsed`, `dormant` or `reclaimable`. Computed, never stored — minting an epoch is the renewal."
|
|
143
|
+
},
|
|
144
|
+
"HostedRoom": {
|
|
145
|
+
"title": "HostedRoom",
|
|
146
|
+
"type": "object",
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"required": [
|
|
149
|
+
"roomId",
|
|
150
|
+
"ownerDid",
|
|
151
|
+
"visibility",
|
|
152
|
+
"retentionPolicy",
|
|
153
|
+
"epoch",
|
|
154
|
+
"lifecycle",
|
|
155
|
+
"retentionDays",
|
|
156
|
+
"createdAt",
|
|
157
|
+
"updatedAt"
|
|
158
|
+
],
|
|
159
|
+
"description": "One room, as its host holds it: who is accountable for it, its tier, its epoch and its place on the lifecycle clock. Nothing derived from the room's contents, and no member list — the host has none.",
|
|
160
|
+
"properties": {
|
|
161
|
+
"roomId": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"minLength": 1,
|
|
164
|
+
"maxLength": 512,
|
|
165
|
+
"description": "The room's identifier, as its owner minted it."
|
|
166
|
+
},
|
|
167
|
+
"ownerDid": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"pattern": "^did:",
|
|
170
|
+
"maxLength": 2048,
|
|
171
|
+
"description": "The accountable party — visible at every tier, including `private`, because it is who the host must reach about quota, abuse and reclamation."
|
|
172
|
+
},
|
|
173
|
+
"visibility": {
|
|
174
|
+
"$ref": "#/$defs/Visibility"
|
|
175
|
+
},
|
|
176
|
+
"retentionPolicy": {
|
|
177
|
+
"$ref": "#/$defs/RetentionPolicy"
|
|
178
|
+
},
|
|
179
|
+
"epoch": {
|
|
180
|
+
"type": "integer",
|
|
181
|
+
"minimum": 0,
|
|
182
|
+
"description": "The room's current epoch."
|
|
183
|
+
},
|
|
184
|
+
"lifecycle": {
|
|
185
|
+
"$ref": "#/$defs/RoomLifecycle"
|
|
186
|
+
},
|
|
187
|
+
"epochExpiresAt": {
|
|
188
|
+
"type": "integer",
|
|
189
|
+
"minimum": 0,
|
|
190
|
+
"description": "When the current epoch expires, in seconds since the Unix epoch. Absent means the room never lapses."
|
|
191
|
+
},
|
|
192
|
+
"retentionDays": {
|
|
193
|
+
"type": "integer",
|
|
194
|
+
"minimum": 0,
|
|
195
|
+
"description": "How long the host keeps the room after it lapses, in days."
|
|
196
|
+
},
|
|
197
|
+
"mirrorOf": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"minLength": 1,
|
|
200
|
+
"maxLength": 2048,
|
|
201
|
+
"description": "Present when this host serves a read-only copy, naming the primary it pulls from."
|
|
202
|
+
},
|
|
203
|
+
"createdAt": {
|
|
204
|
+
"type": "integer",
|
|
205
|
+
"minimum": 0,
|
|
206
|
+
"description": "When the room was created here, in seconds since the Unix epoch — the encoding the rooms family uses."
|
|
207
|
+
},
|
|
208
|
+
"updatedAt": {
|
|
209
|
+
"type": "integer",
|
|
210
|
+
"minimum": 0,
|
|
211
|
+
"description": "When the room's host record last changed, in seconds since the Unix epoch."
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"Response": {
|
|
216
|
+
"$anchor": "response",
|
|
217
|
+
"title": "VTC Rooms — List — response payload",
|
|
218
|
+
"type": "object",
|
|
219
|
+
"additionalProperties": false,
|
|
220
|
+
"required": [
|
|
221
|
+
"items"
|
|
222
|
+
],
|
|
223
|
+
"properties": {
|
|
224
|
+
"items": {
|
|
225
|
+
"type": "array",
|
|
226
|
+
"maxItems": 100,
|
|
227
|
+
"items": {
|
|
228
|
+
"$ref": "#/$defs/HostedRoom"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"nextCursor": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"minLength": 1,
|
|
234
|
+
"maxLength": 1024,
|
|
235
|
+
"description": "Present when more remain; pass it as `cursor`."
|
|
236
|
+
},
|
|
237
|
+
"ext": {
|
|
238
|
+
"$ref": "#/$defs/Ext"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"Ext": {
|
|
243
|
+
"title": "Ext",
|
|
244
|
+
"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.",
|
|
245
|
+
"type": "object",
|
|
246
|
+
"minProperties": 1,
|
|
247
|
+
"additionalProperties": true,
|
|
248
|
+
"propertyNames": {
|
|
249
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"RetentionPolicy": {
|
|
253
|
+
"title": "RetentionPolicy",
|
|
254
|
+
"type": "string",
|
|
255
|
+
"enum": [
|
|
256
|
+
"chained",
|
|
257
|
+
"fromJoin"
|
|
258
|
+
],
|
|
259
|
+
"description": "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.",
|
|
260
|
+
"$comment": "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it."
|
|
261
|
+
},
|
|
262
|
+
"Visibility": {
|
|
263
|
+
"title": "Visibility",
|
|
264
|
+
"type": "string",
|
|
265
|
+
"enum": [
|
|
266
|
+
"open",
|
|
267
|
+
"attributed",
|
|
268
|
+
"private"
|
|
269
|
+
],
|
|
270
|
+
"description": "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."
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
} as const;
|
|
274
|
+
|
|
275
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
276
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
277
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
278
|
+
"$ref": "#/$defs/Response",
|
|
279
|
+
"$defs": {
|
|
280
|
+
"RoomLifecycle": {
|
|
281
|
+
"title": "RoomLifecycle",
|
|
282
|
+
"type": "string",
|
|
283
|
+
"enum": [
|
|
284
|
+
"live",
|
|
285
|
+
"lapsed",
|
|
286
|
+
"dormant",
|
|
287
|
+
"reclaimable"
|
|
288
|
+
],
|
|
289
|
+
"description": "Where a room sits on the hosting lifecycle clock, computed at the time of the read from its epoch expiry and retention: `live`, `lapsed`, `dormant` or `reclaimable`. Computed, never stored — minting an epoch is the renewal."
|
|
290
|
+
},
|
|
291
|
+
"HostedRoom": {
|
|
292
|
+
"title": "HostedRoom",
|
|
293
|
+
"type": "object",
|
|
294
|
+
"additionalProperties": false,
|
|
295
|
+
"required": [
|
|
296
|
+
"roomId",
|
|
297
|
+
"ownerDid",
|
|
298
|
+
"visibility",
|
|
299
|
+
"retentionPolicy",
|
|
300
|
+
"epoch",
|
|
301
|
+
"lifecycle",
|
|
302
|
+
"retentionDays",
|
|
303
|
+
"createdAt",
|
|
304
|
+
"updatedAt"
|
|
305
|
+
],
|
|
306
|
+
"description": "One room, as its host holds it: who is accountable for it, its tier, its epoch and its place on the lifecycle clock. Nothing derived from the room's contents, and no member list — the host has none.",
|
|
307
|
+
"properties": {
|
|
308
|
+
"roomId": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"minLength": 1,
|
|
311
|
+
"maxLength": 512,
|
|
312
|
+
"description": "The room's identifier, as its owner minted it."
|
|
313
|
+
},
|
|
314
|
+
"ownerDid": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"pattern": "^did:",
|
|
317
|
+
"maxLength": 2048,
|
|
318
|
+
"description": "The accountable party — visible at every tier, including `private`, because it is who the host must reach about quota, abuse and reclamation."
|
|
319
|
+
},
|
|
320
|
+
"visibility": {
|
|
321
|
+
"$ref": "#/$defs/Visibility"
|
|
322
|
+
},
|
|
323
|
+
"retentionPolicy": {
|
|
324
|
+
"$ref": "#/$defs/RetentionPolicy"
|
|
325
|
+
},
|
|
326
|
+
"epoch": {
|
|
327
|
+
"type": "integer",
|
|
328
|
+
"minimum": 0,
|
|
329
|
+
"description": "The room's current epoch."
|
|
330
|
+
},
|
|
331
|
+
"lifecycle": {
|
|
332
|
+
"$ref": "#/$defs/RoomLifecycle"
|
|
333
|
+
},
|
|
334
|
+
"epochExpiresAt": {
|
|
335
|
+
"type": "integer",
|
|
336
|
+
"minimum": 0,
|
|
337
|
+
"description": "When the current epoch expires, in seconds since the Unix epoch. Absent means the room never lapses."
|
|
338
|
+
},
|
|
339
|
+
"retentionDays": {
|
|
340
|
+
"type": "integer",
|
|
341
|
+
"minimum": 0,
|
|
342
|
+
"description": "How long the host keeps the room after it lapses, in days."
|
|
343
|
+
},
|
|
344
|
+
"mirrorOf": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"minLength": 1,
|
|
347
|
+
"maxLength": 2048,
|
|
348
|
+
"description": "Present when this host serves a read-only copy, naming the primary it pulls from."
|
|
349
|
+
},
|
|
350
|
+
"createdAt": {
|
|
351
|
+
"type": "integer",
|
|
352
|
+
"minimum": 0,
|
|
353
|
+
"description": "When the room was created here, in seconds since the Unix epoch — the encoding the rooms family uses."
|
|
354
|
+
},
|
|
355
|
+
"updatedAt": {
|
|
356
|
+
"type": "integer",
|
|
357
|
+
"minimum": 0,
|
|
358
|
+
"description": "When the room's host record last changed, in seconds since the Unix epoch."
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"Response": {
|
|
363
|
+
"$anchor": "response",
|
|
364
|
+
"title": "VTC Rooms — List — response payload",
|
|
365
|
+
"type": "object",
|
|
366
|
+
"additionalProperties": false,
|
|
367
|
+
"required": [
|
|
368
|
+
"items"
|
|
369
|
+
],
|
|
370
|
+
"properties": {
|
|
371
|
+
"items": {
|
|
372
|
+
"type": "array",
|
|
373
|
+
"maxItems": 100,
|
|
374
|
+
"items": {
|
|
375
|
+
"$ref": "#/$defs/HostedRoom"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"nextCursor": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"minLength": 1,
|
|
381
|
+
"maxLength": 1024,
|
|
382
|
+
"description": "Present when more remain; pass it as `cursor`."
|
|
383
|
+
},
|
|
384
|
+
"ext": {
|
|
385
|
+
"$ref": "#/$defs/Ext"
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"Ext": {
|
|
390
|
+
"title": "Ext",
|
|
391
|
+
"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.",
|
|
392
|
+
"type": "object",
|
|
393
|
+
"minProperties": 1,
|
|
394
|
+
"additionalProperties": true,
|
|
395
|
+
"propertyNames": {
|
|
396
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"RetentionPolicy": {
|
|
400
|
+
"title": "RetentionPolicy",
|
|
401
|
+
"type": "string",
|
|
402
|
+
"enum": [
|
|
403
|
+
"chained",
|
|
404
|
+
"fromJoin"
|
|
405
|
+
],
|
|
406
|
+
"description": "Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.",
|
|
407
|
+
"$comment": "Deliberately no JSON Schema `default`. A declared default is materialised by the generated bindings — the member becomes non-optional with a serde default — so an absent value would reappear as an explicit one on re-serialisation and break round-trip idempotence for every document written before this member existed. The meaning of absence is stated in prose, where a binding cannot act on it."
|
|
408
|
+
},
|
|
409
|
+
"Visibility": {
|
|
410
|
+
"title": "Visibility",
|
|
411
|
+
"type": "string",
|
|
412
|
+
"enum": [
|
|
413
|
+
"open",
|
|
414
|
+
"attributed",
|
|
415
|
+
"private"
|
|
416
|
+
],
|
|
417
|
+
"description": "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."
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
} as const;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
424
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
425
|
+
* per-specification and cannot be derived from the document alone, and
|
|
426
|
+
* item 2 needs the schema this carries.
|
|
427
|
+
*/
|
|
428
|
+
export const SPEC = {
|
|
429
|
+
typeUri: TYPE_URI,
|
|
430
|
+
isBearer: false,
|
|
431
|
+
isProofRequired: false,
|
|
432
|
+
isRecipientRequired: true,
|
|
433
|
+
isIssuedAtRequired: false,
|
|
434
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
435
|
+
} as const;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
439
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
440
|
+
* parties (§7.3 item 5).
|
|
441
|
+
*/
|
|
442
|
+
export const RESPONSE_SPEC = {
|
|
443
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
444
|
+
isBearer: false,
|
|
445
|
+
isProofRequired: false,
|
|
446
|
+
isRecipientRequired: true,
|
|
447
|
+
isIssuedAtRequired: false,
|
|
448
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
449
|
+
} as const;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/schemas/accepts/delete/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { AcceptsCriterionId, Ext } from "../../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Remove one Accepts criterion. The outer document members are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTCSchemasAcceptsDeletePayload {
|
|
13
|
+
id: AcceptsCriterionId;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface VTCSchemasAcceptsDeleteResponsePayload {
|
|
17
|
+
id: AcceptsCriterionId;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
22
|
+
export type { AcceptsCriterionId, Ext };
|
|
23
|
+
|
|
24
|
+
/** Trust Task type URI. */
|
|
25
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/schemas/accepts/delete/0.1" as const;
|
|
26
|
+
|
|
27
|
+
/** Stable alias for this specification's request payload shape. */
|
|
28
|
+
export type Payload = VTCSchemasAcceptsDeletePayload;
|
|
29
|
+
|
|
30
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
31
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/schemas/accepts/delete/0.1#response" as const;
|
|
32
|
+
|
|
33
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
34
|
+
export type Response = VTCSchemasAcceptsDeleteResponsePayload;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* This specification's payload schema, as a value.
|
|
38
|
+
*
|
|
39
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
40
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
41
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
42
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
43
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
44
|
+
*/
|
|
45
|
+
export const PAYLOAD_SCHEMA = {
|
|
46
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
47
|
+
"$id": "https://trusttasks.org/spec/vtc/schemas/accepts/delete/0.1",
|
|
48
|
+
"title": "VTC Schemas — Accepts — Delete — payload",
|
|
49
|
+
"description": "Remove one Accepts criterion. The outer document members are owned by the framework — SPEC §6.3.",
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": [
|
|
53
|
+
"id"
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"id": {
|
|
57
|
+
"$ref": "#/$defs/AcceptsCriterionId"
|
|
58
|
+
},
|
|
59
|
+
"ext": {
|
|
60
|
+
"$ref": "#/$defs/Ext"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"$defs": {
|
|
64
|
+
"Response": {
|
|
65
|
+
"$anchor": "response",
|
|
66
|
+
"title": "VTC Schemas — Accepts — Delete — response payload",
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"required": [
|
|
70
|
+
"id"
|
|
71
|
+
],
|
|
72
|
+
"properties": {
|
|
73
|
+
"id": {
|
|
74
|
+
"$ref": "#/$defs/AcceptsCriterionId"
|
|
75
|
+
},
|
|
76
|
+
"ext": {
|
|
77
|
+
"$ref": "#/$defs/Ext"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"Ext": {
|
|
82
|
+
"title": "Ext",
|
|
83
|
+
"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.",
|
|
84
|
+
"type": "object",
|
|
85
|
+
"minProperties": 1,
|
|
86
|
+
"additionalProperties": true,
|
|
87
|
+
"propertyNames": {
|
|
88
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"AcceptsCriterionId": {
|
|
92
|
+
"title": "AcceptsCriterionId",
|
|
93
|
+
"type": "string",
|
|
94
|
+
"minLength": 1,
|
|
95
|
+
"maxLength": 128,
|
|
96
|
+
"description": "An Accepts criterion's identifier, chosen by the registering administrator — a ceremony purpose or a named manifest criterion, e.g. `membership`. Compared as an exact string after surrounding whitespace is trimmed. Bounded at 128 characters, the bound vtc/join-requests/manifest/0.2 places on the criterion `id` it publishes."
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
} as const;
|
|
100
|
+
|
|
101
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
102
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
103
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
104
|
+
"$ref": "#/$defs/Response",
|
|
105
|
+
"$defs": {
|
|
106
|
+
"Response": {
|
|
107
|
+
"$anchor": "response",
|
|
108
|
+
"title": "VTC Schemas — Accepts — Delete — response payload",
|
|
109
|
+
"type": "object",
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"required": [
|
|
112
|
+
"id"
|
|
113
|
+
],
|
|
114
|
+
"properties": {
|
|
115
|
+
"id": {
|
|
116
|
+
"$ref": "#/$defs/AcceptsCriterionId"
|
|
117
|
+
},
|
|
118
|
+
"ext": {
|
|
119
|
+
"$ref": "#/$defs/Ext"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"Ext": {
|
|
124
|
+
"title": "Ext",
|
|
125
|
+
"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.",
|
|
126
|
+
"type": "object",
|
|
127
|
+
"minProperties": 1,
|
|
128
|
+
"additionalProperties": true,
|
|
129
|
+
"propertyNames": {
|
|
130
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"AcceptsCriterionId": {
|
|
134
|
+
"title": "AcceptsCriterionId",
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 1,
|
|
137
|
+
"maxLength": 128,
|
|
138
|
+
"description": "An Accepts criterion's identifier, chosen by the registering administrator — a ceremony purpose or a named manifest criterion, e.g. `membership`. Compared as an exact string after surrounding whitespace is trimmed. Bounded at 128 characters, the bound vtc/join-requests/manifest/0.2 places on the criterion `id` it publishes."
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
} as const;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
145
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
146
|
+
* per-specification and cannot be derived from the document alone, and
|
|
147
|
+
* item 2 needs the schema this carries.
|
|
148
|
+
*/
|
|
149
|
+
export const SPEC = {
|
|
150
|
+
typeUri: TYPE_URI,
|
|
151
|
+
isBearer: false,
|
|
152
|
+
isProofRequired: true,
|
|
153
|
+
isRecipientRequired: true,
|
|
154
|
+
isIssuedAtRequired: true,
|
|
155
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
156
|
+
} as const;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
160
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
161
|
+
* parties (§7.3 item 5).
|
|
162
|
+
*/
|
|
163
|
+
export const RESPONSE_SPEC = {
|
|
164
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
165
|
+
isBearer: false,
|
|
166
|
+
isProofRequired: true,
|
|
167
|
+
isRecipientRequired: true,
|
|
168
|
+
isIssuedAtRequired: true,
|
|
169
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
170
|
+
} as const;
|