@openvtc/trust-tasks 0.9.0 → 0.10.0
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/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/_shared/0.1/context.d.ts +11 -0
- package/dist/vta/_shared/0.1/context.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/context.js +6 -0
- package/dist/vta/_shared/0.1/context.js.map +1 -0
- package/dist/vta/_shared/0.1/webvh-records.d.ts +11 -0
- package/dist/vta/_shared/0.1/webvh-records.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/webvh-records.js +6 -0
- package/dist/vta/_shared/0.1/webvh-records.js.map +1 -0
- package/dist/vta/contexts/create/1.0/payload.d.ts +443 -0
- package/dist/vta/contexts/create/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/create/1.0/payload.js +226 -0
- package/dist/vta/contexts/create/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/delete/1.0/payload.d.ts +256 -0
- package/dist/vta/contexts/delete/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/delete/1.0/payload.js +143 -0
- package/dist/vta/contexts/delete/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/get/1.0/payload.d.ts +405 -0
- package/dist/vta/contexts/get/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/get/1.0/payload.js +212 -0
- package/dist/vta/contexts/get/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/list/1.0/payload.d.ts +460 -0
- package/dist/vta/contexts/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/list/1.0/payload.js +237 -0
- package/dist/vta/contexts/list/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/preview-delete/1.0/payload.d.ts +394 -0
- package/dist/vta/contexts/preview-delete/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/preview-delete/1.0/payload.js +209 -0
- package/dist/vta/contexts/preview-delete/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/update/1.0/payload.d.ts +653 -0
- package/dist/vta/contexts/update/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/update/1.0/payload.js +314 -0
- package/dist/vta/contexts/update/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/update-did/1.0/payload.d.ts +419 -0
- package/dist/vta/contexts/update-did/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/update-did/1.0/payload.js +218 -0
- package/dist/vta/contexts/update-did/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/check/1.0/payload.d.ts +301 -0
- package/dist/vta/webvh/agent-name/check/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/check/1.0/payload.js +165 -0
- package/dist/vta/webvh/agent-name/check/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/disable/1.0/payload.d.ts +274 -0
- package/dist/vta/webvh/agent-name/disable/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/disable/1.0/payload.js +153 -0
- package/dist/vta/webvh/agent-name/disable/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/enable/1.0/payload.d.ts +274 -0
- package/dist/vta/webvh/agent-name/enable/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/enable/1.0/payload.js +153 -0
- package/dist/vta/webvh/agent-name/enable/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts +377 -0
- package/dist/vta/webvh/agent-name/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/list/1.0/payload.js +201 -0
- package/dist/vta/webvh/agent-name/list/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/remove/1.0/payload.d.ts +274 -0
- package/dist/vta/webvh/agent-name/remove/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/remove/1.0/payload.js +153 -0
- package/dist/vta/webvh/agent-name/remove/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/agent-name/set/1.0/payload.d.ts +274 -0
- package/dist/vta/webvh/agent-name/set/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/agent-name/set/1.0/payload.js +153 -0
- package/dist/vta/webvh/agent-name/set/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/create/1.0/payload.d.ts +806 -0
- package/dist/vta/webvh/dids/create/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/create/1.0/payload.js +400 -0
- package/dist/vta/webvh/dids/create/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/delete/1.0/payload.d.ts +257 -0
- package/dist/vta/webvh/dids/delete/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/delete/1.0/payload.js +145 -0
- package/dist/vta/webvh/dids/delete/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/get/1.0/payload.d.ts +539 -0
- package/dist/vta/webvh/dids/get/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/get/1.0/payload.js +282 -0
- package/dist/vta/webvh/dids/get/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/list/1.0/payload.d.ts +537 -0
- package/dist/vta/webvh/dids/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/list/1.0/payload.js +278 -0
- package/dist/vta/webvh/dids/list/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/register-with-server/1.0/payload.d.ts +299 -0
- package/dist/vta/webvh/dids/register-with-server/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/register-with-server/1.0/payload.js +163 -0
- package/dist/vta/webvh/dids/register-with-server/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts +357 -0
- package/dist/vta/webvh/dids/rotate-keys/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js +196 -0
- package/dist/vta/webvh/dids/rotate-keys/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/servers/list/1.0/payload.d.ts +366 -0
- package/dist/vta/webvh/servers/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/servers/list/1.0/payload.js +200 -0
- package/dist/vta/webvh/servers/list/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/servers/register/1.0/payload.d.ts +335 -0
- package/dist/vta/webvh/servers/register/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/servers/register/1.0/payload.js +183 -0
- package/dist/vta/webvh/servers/register/1.0/payload.js.map +1 -0
- package/dist/vta/webvh/servers/remove/1.0/payload.d.ts +237 -0
- package/dist/vta/webvh/servers/remove/1.0/payload.d.ts.map +1 -0
- package/dist/vta/webvh/servers/remove/1.0/payload.js +137 -0
- package/dist/vta/webvh/servers/remove/1.0/payload.js.map +1 -0
- package/package.json +2 -1
- package/src/index.ts +24 -0
- package/src/vta/_shared/0.1/context.ts +11 -0
- package/src/vta/_shared/0.1/webvh-records.ts +11 -0
- package/src/vta/contexts/create/1.0/payload.ts +301 -0
- package/src/vta/contexts/delete/1.0/payload.ts +183 -0
- package/src/vta/contexts/get/1.0/payload.ts +275 -0
- package/src/vta/contexts/list/1.0/payload.ts +309 -0
- package/src/vta/contexts/preview-delete/1.0/payload.ts +267 -0
- package/src/vta/contexts/update/1.0/payload.ts +421 -0
- package/src/vta/contexts/update-did/1.0/payload.ts +285 -0
- package/src/vta/webvh/agent-name/check/1.0/payload.ts +216 -0
- package/src/vta/webvh/agent-name/disable/1.0/payload.ts +197 -0
- package/src/vta/webvh/agent-name/enable/1.0/payload.ts +197 -0
- package/src/vta/webvh/agent-name/list/1.0/payload.ts +258 -0
- package/src/vta/webvh/agent-name/remove/1.0/payload.ts +197 -0
- package/src/vta/webvh/agent-name/set/1.0/payload.ts +197 -0
- package/src/vta/webvh/dids/create/1.0/payload.ts +548 -0
- package/src/vta/webvh/dids/delete/1.0/payload.ts +182 -0
- package/src/vta/webvh/dids/get/1.0/payload.ts +363 -0
- package/src/vta/webvh/dids/list/1.0/payload.ts +361 -0
- package/src/vta/webvh/dids/register-with-server/1.0/payload.ts +212 -0
- package/src/vta/webvh/dids/rotate-keys/1.0/payload.ts +251 -0
- package/src/vta/webvh/servers/list/1.0/payload.ts +248 -0
- package/src/vta/webvh/servers/register/1.0/payload.ts +230 -0
- package/src/vta/webvh/servers/remove/1.0/payload.ts +170 -0
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/contexts/list/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Request payload for vta/contexts/list. Takes no filters: the result is already narrowed to what the caller may reach.
|
|
7
|
+
*/
|
|
8
|
+
export interface VTAContextsListPayload {
|
|
9
|
+
ext?: Ext;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 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.
|
|
13
|
+
*/
|
|
14
|
+
export interface Ext {
|
|
15
|
+
[k: string]: unknown | undefined;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Success response to vta/contexts/list. Type https://trusttasks.org/spec/vta/contexts/list/1.0#response.
|
|
19
|
+
*/
|
|
20
|
+
export interface VTAContextsListResponsePayload {
|
|
21
|
+
/**
|
|
22
|
+
* Contexts the caller may access, in maintainer-defined order. An empty array means the caller can reach none — which is a successful answer, and is not distinguishable from a VTA that holds none. A caller needing that distinction wants vta/contexts/get on a known id, which answers notFound.
|
|
23
|
+
*/
|
|
24
|
+
contexts: ContextRecord[];
|
|
25
|
+
ext?: Ext;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A context as the VTA holds it.
|
|
29
|
+
*/
|
|
30
|
+
export interface ContextRecord {
|
|
31
|
+
/**
|
|
32
|
+
* Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.
|
|
41
|
+
*/
|
|
42
|
+
did?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Free-form description.
|
|
45
|
+
*/
|
|
46
|
+
description?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.
|
|
49
|
+
*/
|
|
50
|
+
parent?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.
|
|
53
|
+
*/
|
|
54
|
+
basePath: string;
|
|
55
|
+
/**
|
|
56
|
+
* RFC 3339.
|
|
57
|
+
*/
|
|
58
|
+
createdAt: string;
|
|
59
|
+
/**
|
|
60
|
+
* RFC 3339.
|
|
61
|
+
*/
|
|
62
|
+
updatedAt: string;
|
|
63
|
+
ext?: Ext;
|
|
64
|
+
}
|
|
65
|
+
/** Trust Task type URI. */
|
|
66
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/contexts/list/1.0";
|
|
67
|
+
/** Stable alias for this specification's request payload shape. */
|
|
68
|
+
export type Payload = VTAContextsListPayload;
|
|
69
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
70
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/contexts/list/1.0#response";
|
|
71
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
72
|
+
export type Response = VTAContextsListResponsePayload;
|
|
73
|
+
/**
|
|
74
|
+
* This specification's payload schema, as a value.
|
|
75
|
+
*
|
|
76
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
77
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
78
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
79
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
80
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
81
|
+
*/
|
|
82
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
83
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
84
|
+
readonly $id: "https://trusttasks.org/spec/vta/contexts/list/1.0";
|
|
85
|
+
readonly title: "VTA Contexts List — payload";
|
|
86
|
+
readonly description: "Request payload for vta/contexts/list. Takes no filters: the result is already narrowed to what the caller may reach.";
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly additionalProperties: false;
|
|
89
|
+
readonly properties: {
|
|
90
|
+
readonly ext: {
|
|
91
|
+
readonly $ref: "#/$defs/Ext";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly $defs: {
|
|
95
|
+
readonly Response: {
|
|
96
|
+
readonly $anchor: "response";
|
|
97
|
+
readonly title: "VTA Contexts List — response payload";
|
|
98
|
+
readonly description: "Success response to vta/contexts/list. Type https://trusttasks.org/spec/vta/contexts/list/1.0#response.";
|
|
99
|
+
readonly type: "object";
|
|
100
|
+
readonly additionalProperties: false;
|
|
101
|
+
readonly required: readonly ["contexts"];
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly contexts: {
|
|
104
|
+
readonly type: "array";
|
|
105
|
+
readonly description: "Contexts the caller may access, in maintainer-defined order. An empty array means the caller can reach none — which is a successful answer, and is not distinguishable from a VTA that holds none. A caller needing that distinction wants vta/contexts/get on a known id, which answers notFound.";
|
|
106
|
+
readonly items: {
|
|
107
|
+
readonly $ref: "#/$defs/ContextRecord";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly ext: {
|
|
111
|
+
readonly $ref: "#/$defs/Ext";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly Ext: {
|
|
116
|
+
readonly title: "Ext";
|
|
117
|
+
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.";
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
readonly minProperties: 1;
|
|
120
|
+
readonly additionalProperties: true;
|
|
121
|
+
readonly propertyNames: {
|
|
122
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly ContextRecord: {
|
|
126
|
+
readonly title: "ContextRecord";
|
|
127
|
+
readonly description: "A context as the VTA holds it.";
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly additionalProperties: false;
|
|
130
|
+
readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
|
|
131
|
+
readonly properties: {
|
|
132
|
+
readonly id: {
|
|
133
|
+
readonly type: "string";
|
|
134
|
+
readonly minLength: 1;
|
|
135
|
+
readonly description: "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.";
|
|
136
|
+
};
|
|
137
|
+
readonly name: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
readonly minLength: 1;
|
|
140
|
+
readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
|
|
141
|
+
};
|
|
142
|
+
readonly did: {
|
|
143
|
+
readonly type: "string";
|
|
144
|
+
readonly description: "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.";
|
|
145
|
+
};
|
|
146
|
+
readonly description: {
|
|
147
|
+
readonly type: "string";
|
|
148
|
+
readonly description: "Free-form description.";
|
|
149
|
+
};
|
|
150
|
+
readonly parent: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
readonly description: "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.";
|
|
153
|
+
};
|
|
154
|
+
readonly basePath: {
|
|
155
|
+
readonly type: "string";
|
|
156
|
+
readonly description: "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.";
|
|
157
|
+
};
|
|
158
|
+
readonly createdAt: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
readonly format: "date-time";
|
|
161
|
+
readonly description: "RFC 3339.";
|
|
162
|
+
};
|
|
163
|
+
readonly updatedAt: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly format: "date-time";
|
|
166
|
+
readonly description: "RFC 3339.";
|
|
167
|
+
};
|
|
168
|
+
readonly ext: {
|
|
169
|
+
readonly $ref: "#/$defs/Ext";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
176
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
177
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
178
|
+
readonly $ref: "#/$defs/Response";
|
|
179
|
+
readonly $defs: {
|
|
180
|
+
readonly Response: {
|
|
181
|
+
readonly $anchor: "response";
|
|
182
|
+
readonly title: "VTA Contexts List — response payload";
|
|
183
|
+
readonly description: "Success response to vta/contexts/list. Type https://trusttasks.org/spec/vta/contexts/list/1.0#response.";
|
|
184
|
+
readonly type: "object";
|
|
185
|
+
readonly additionalProperties: false;
|
|
186
|
+
readonly required: readonly ["contexts"];
|
|
187
|
+
readonly properties: {
|
|
188
|
+
readonly contexts: {
|
|
189
|
+
readonly type: "array";
|
|
190
|
+
readonly description: "Contexts the caller may access, in maintainer-defined order. An empty array means the caller can reach none — which is a successful answer, and is not distinguishable from a VTA that holds none. A caller needing that distinction wants vta/contexts/get on a known id, which answers notFound.";
|
|
191
|
+
readonly items: {
|
|
192
|
+
readonly $ref: "#/$defs/ContextRecord";
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly ext: {
|
|
196
|
+
readonly $ref: "#/$defs/Ext";
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
readonly Ext: {
|
|
201
|
+
readonly title: "Ext";
|
|
202
|
+
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.";
|
|
203
|
+
readonly type: "object";
|
|
204
|
+
readonly minProperties: 1;
|
|
205
|
+
readonly additionalProperties: true;
|
|
206
|
+
readonly propertyNames: {
|
|
207
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly ContextRecord: {
|
|
211
|
+
readonly title: "ContextRecord";
|
|
212
|
+
readonly description: "A context as the VTA holds it.";
|
|
213
|
+
readonly type: "object";
|
|
214
|
+
readonly additionalProperties: false;
|
|
215
|
+
readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
|
|
216
|
+
readonly properties: {
|
|
217
|
+
readonly id: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly minLength: 1;
|
|
220
|
+
readonly description: "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.";
|
|
221
|
+
};
|
|
222
|
+
readonly name: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
readonly minLength: 1;
|
|
225
|
+
readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
|
|
226
|
+
};
|
|
227
|
+
readonly did: {
|
|
228
|
+
readonly type: "string";
|
|
229
|
+
readonly description: "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.";
|
|
230
|
+
};
|
|
231
|
+
readonly description: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
readonly description: "Free-form description.";
|
|
234
|
+
};
|
|
235
|
+
readonly parent: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly description: "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.";
|
|
238
|
+
};
|
|
239
|
+
readonly basePath: {
|
|
240
|
+
readonly type: "string";
|
|
241
|
+
readonly description: "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.";
|
|
242
|
+
};
|
|
243
|
+
readonly createdAt: {
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly format: "date-time";
|
|
246
|
+
readonly description: "RFC 3339.";
|
|
247
|
+
};
|
|
248
|
+
readonly updatedAt: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly format: "date-time";
|
|
251
|
+
readonly description: "RFC 3339.";
|
|
252
|
+
};
|
|
253
|
+
readonly ext: {
|
|
254
|
+
readonly $ref: "#/$defs/Ext";
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
262
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
263
|
+
* per-specification and cannot be derived from the document alone, and
|
|
264
|
+
* item 2 needs the schema this carries.
|
|
265
|
+
*/
|
|
266
|
+
export declare const SPEC: {
|
|
267
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/contexts/list/1.0";
|
|
268
|
+
readonly isBearer: false;
|
|
269
|
+
readonly isProofRequired: false;
|
|
270
|
+
readonly isRecipientRequired: true;
|
|
271
|
+
readonly payloadSchema: {
|
|
272
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
273
|
+
readonly $id: "https://trusttasks.org/spec/vta/contexts/list/1.0";
|
|
274
|
+
readonly title: "VTA Contexts List — payload";
|
|
275
|
+
readonly description: "Request payload for vta/contexts/list. Takes no filters: the result is already narrowed to what the caller may reach.";
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly additionalProperties: false;
|
|
278
|
+
readonly properties: {
|
|
279
|
+
readonly ext: {
|
|
280
|
+
readonly $ref: "#/$defs/Ext";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly $defs: {
|
|
284
|
+
readonly Response: {
|
|
285
|
+
readonly $anchor: "response";
|
|
286
|
+
readonly title: "VTA Contexts List — response payload";
|
|
287
|
+
readonly description: "Success response to vta/contexts/list. Type https://trusttasks.org/spec/vta/contexts/list/1.0#response.";
|
|
288
|
+
readonly type: "object";
|
|
289
|
+
readonly additionalProperties: false;
|
|
290
|
+
readonly required: readonly ["contexts"];
|
|
291
|
+
readonly properties: {
|
|
292
|
+
readonly contexts: {
|
|
293
|
+
readonly type: "array";
|
|
294
|
+
readonly description: "Contexts the caller may access, in maintainer-defined order. An empty array means the caller can reach none — which is a successful answer, and is not distinguishable from a VTA that holds none. A caller needing that distinction wants vta/contexts/get on a known id, which answers notFound.";
|
|
295
|
+
readonly items: {
|
|
296
|
+
readonly $ref: "#/$defs/ContextRecord";
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
readonly ext: {
|
|
300
|
+
readonly $ref: "#/$defs/Ext";
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
readonly Ext: {
|
|
305
|
+
readonly title: "Ext";
|
|
306
|
+
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.";
|
|
307
|
+
readonly type: "object";
|
|
308
|
+
readonly minProperties: 1;
|
|
309
|
+
readonly additionalProperties: true;
|
|
310
|
+
readonly propertyNames: {
|
|
311
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
readonly ContextRecord: {
|
|
315
|
+
readonly title: "ContextRecord";
|
|
316
|
+
readonly description: "A context as the VTA holds it.";
|
|
317
|
+
readonly type: "object";
|
|
318
|
+
readonly additionalProperties: false;
|
|
319
|
+
readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
|
|
320
|
+
readonly properties: {
|
|
321
|
+
readonly id: {
|
|
322
|
+
readonly type: "string";
|
|
323
|
+
readonly minLength: 1;
|
|
324
|
+
readonly description: "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.";
|
|
325
|
+
};
|
|
326
|
+
readonly name: {
|
|
327
|
+
readonly type: "string";
|
|
328
|
+
readonly minLength: 1;
|
|
329
|
+
readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
|
|
330
|
+
};
|
|
331
|
+
readonly did: {
|
|
332
|
+
readonly type: "string";
|
|
333
|
+
readonly description: "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.";
|
|
334
|
+
};
|
|
335
|
+
readonly description: {
|
|
336
|
+
readonly type: "string";
|
|
337
|
+
readonly description: "Free-form description.";
|
|
338
|
+
};
|
|
339
|
+
readonly parent: {
|
|
340
|
+
readonly type: "string";
|
|
341
|
+
readonly description: "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.";
|
|
342
|
+
};
|
|
343
|
+
readonly basePath: {
|
|
344
|
+
readonly type: "string";
|
|
345
|
+
readonly description: "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.";
|
|
346
|
+
};
|
|
347
|
+
readonly createdAt: {
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
readonly format: "date-time";
|
|
350
|
+
readonly description: "RFC 3339.";
|
|
351
|
+
};
|
|
352
|
+
readonly updatedAt: {
|
|
353
|
+
readonly type: "string";
|
|
354
|
+
readonly format: "date-time";
|
|
355
|
+
readonly description: "RFC 3339.";
|
|
356
|
+
};
|
|
357
|
+
readonly ext: {
|
|
358
|
+
readonly $ref: "#/$defs/Ext";
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
367
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
368
|
+
* parties (§7.3 item 5).
|
|
369
|
+
*/
|
|
370
|
+
export declare const RESPONSE_SPEC: {
|
|
371
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/contexts/list/1.0#response";
|
|
372
|
+
readonly isBearer: false;
|
|
373
|
+
readonly isProofRequired: false;
|
|
374
|
+
readonly isRecipientRequired: true;
|
|
375
|
+
readonly payloadSchema: {
|
|
376
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
377
|
+
readonly $ref: "#/$defs/Response";
|
|
378
|
+
readonly $defs: {
|
|
379
|
+
readonly Response: {
|
|
380
|
+
readonly $anchor: "response";
|
|
381
|
+
readonly title: "VTA Contexts List — response payload";
|
|
382
|
+
readonly description: "Success response to vta/contexts/list. Type https://trusttasks.org/spec/vta/contexts/list/1.0#response.";
|
|
383
|
+
readonly type: "object";
|
|
384
|
+
readonly additionalProperties: false;
|
|
385
|
+
readonly required: readonly ["contexts"];
|
|
386
|
+
readonly properties: {
|
|
387
|
+
readonly contexts: {
|
|
388
|
+
readonly type: "array";
|
|
389
|
+
readonly description: "Contexts the caller may access, in maintainer-defined order. An empty array means the caller can reach none — which is a successful answer, and is not distinguishable from a VTA that holds none. A caller needing that distinction wants vta/contexts/get on a known id, which answers notFound.";
|
|
390
|
+
readonly items: {
|
|
391
|
+
readonly $ref: "#/$defs/ContextRecord";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
readonly ext: {
|
|
395
|
+
readonly $ref: "#/$defs/Ext";
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
readonly Ext: {
|
|
400
|
+
readonly title: "Ext";
|
|
401
|
+
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.";
|
|
402
|
+
readonly type: "object";
|
|
403
|
+
readonly minProperties: 1;
|
|
404
|
+
readonly additionalProperties: true;
|
|
405
|
+
readonly propertyNames: {
|
|
406
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
readonly ContextRecord: {
|
|
410
|
+
readonly title: "ContextRecord";
|
|
411
|
+
readonly description: "A context as the VTA holds it.";
|
|
412
|
+
readonly type: "object";
|
|
413
|
+
readonly additionalProperties: false;
|
|
414
|
+
readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
|
|
415
|
+
readonly properties: {
|
|
416
|
+
readonly id: {
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
readonly minLength: 1;
|
|
419
|
+
readonly description: "Context id. For a nested context this is the full path (`parent/leaf`), not the leaf alone — an ACL scope naming this context must use this value verbatim.";
|
|
420
|
+
};
|
|
421
|
+
readonly name: {
|
|
422
|
+
readonly type: "string";
|
|
423
|
+
readonly minLength: 1;
|
|
424
|
+
readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
|
|
425
|
+
};
|
|
426
|
+
readonly did: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly description: "DID this context acts as, when one has been assigned. Absent means the context has no identity of its own yet — not that it has been denied one.";
|
|
429
|
+
};
|
|
430
|
+
readonly description: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
readonly description: "Free-form description.";
|
|
433
|
+
};
|
|
434
|
+
readonly parent: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly description: "Id of the context this one nests under. Absent for a top-level context. Authority granted at a parent reaches its children, so this member is load-bearing for anyone reasoning about scope.";
|
|
437
|
+
};
|
|
438
|
+
readonly basePath: {
|
|
439
|
+
readonly type: "string";
|
|
440
|
+
readonly description: "Resolved path from the root context, as the VTA derives it from the parent chain. Consumers MUST treat this as derived state: it is recomputed by the maintainer and is not independently settable.";
|
|
441
|
+
};
|
|
442
|
+
readonly createdAt: {
|
|
443
|
+
readonly type: "string";
|
|
444
|
+
readonly format: "date-time";
|
|
445
|
+
readonly description: "RFC 3339.";
|
|
446
|
+
};
|
|
447
|
+
readonly updatedAt: {
|
|
448
|
+
readonly type: "string";
|
|
449
|
+
readonly format: "date-time";
|
|
450
|
+
readonly description: "RFC 3339.";
|
|
451
|
+
};
|
|
452
|
+
readonly ext: {
|
|
453
|
+
readonly $ref: "#/$defs/Ext";
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/contexts/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,mDAA4D,CAAC;AAErF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,sBAAsB,CAAC;AAE7C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,4DAAqE,CAAC;AAEvG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,8BAA8B,CAAC;AAEtD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2F1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|