@openvtc/trust-tasks 0.9.0 → 0.11.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 +33 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -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/service.d.ts +11 -0
- package/dist/vta/_shared/0.1/service.d.ts.map +1 -0
- package/dist/vta/_shared/0.1/service.js +6 -0
- package/dist/vta/_shared/0.1/service.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/services/disable/1.0/payload.d.ts +438 -0
- package/dist/vta/services/disable/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/disable/1.0/payload.js +235 -0
- package/dist/vta/services/disable/1.0/payload.js.map +1 -0
- package/dist/vta/services/drain/cancel/1.0/payload.d.ts +234 -0
- package/dist/vta/services/drain/cancel/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/drain/cancel/1.0/payload.js +131 -0
- package/dist/vta/services/drain/cancel/1.0/payload.js.map +1 -0
- package/dist/vta/services/drain/list/1.0/payload.d.ts +352 -0
- package/dist/vta/services/drain/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/drain/list/1.0/payload.js +189 -0
- package/dist/vta/services/drain/list/1.0/payload.js.map +1 -0
- package/dist/vta/services/enable/1.0/payload.d.ts +511 -0
- package/dist/vta/services/enable/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/enable/1.0/payload.js +262 -0
- package/dist/vta/services/enable/1.0/payload.js.map +1 -0
- package/dist/vta/services/get/1.0/payload.d.ts +399 -0
- package/dist/vta/services/get/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/get/1.0/payload.js +219 -0
- package/dist/vta/services/get/1.0/payload.js.map +1 -0
- package/dist/vta/services/list/1.0/payload.d.ts +409 -0
- package/dist/vta/services/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/list/1.0/payload.js +221 -0
- package/dist/vta/services/list/1.0/payload.js.map +1 -0
- package/dist/vta/services/rollback/1.0/payload.d.ts +438 -0
- package/dist/vta/services/rollback/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/rollback/1.0/payload.js +235 -0
- package/dist/vta/services/rollback/1.0/payload.js.map +1 -0
- package/dist/vta/services/update/1.0/payload.d.ts +511 -0
- package/dist/vta/services/update/1.0/payload.d.ts.map +1 -0
- package/dist/vta/services/update/1.0/payload.js +262 -0
- package/dist/vta/services/update/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 +33 -0
- package/src/vta/_shared/0.1/context.ts +11 -0
- package/src/vta/_shared/0.1/service.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/services/disable/1.0/payload.ts +302 -0
- package/src/vta/services/drain/cancel/1.0/payload.ts +169 -0
- package/src/vta/services/drain/list/1.0/payload.ts +241 -0
- package/src/vta/services/enable/1.0/payload.ts +350 -0
- package/src/vta/services/get/1.0/payload.ts +279 -0
- package/src/vta/services/list/1.0/payload.ts +283 -0
- package/src/vta/services/rollback/1.0/payload.ts +302 -0
- package/src/vta/services/update/1.0/payload.ts +350 -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,405 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/contexts/get/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
export interface VTAContextsGetPayload {
|
|
6
|
+
/**
|
|
7
|
+
* Context id. For a nested context this is the full path (`parent/leaf`).
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
ext?: Ext;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 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.
|
|
14
|
+
*/
|
|
15
|
+
export interface Ext {
|
|
16
|
+
[k: string]: unknown | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A context as the VTA holds it.
|
|
20
|
+
*/
|
|
21
|
+
export interface ContextRecord {
|
|
22
|
+
/**
|
|
23
|
+
* 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.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
*/
|
|
33
|
+
did?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Free-form description.
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
/**
|
|
39
|
+
* 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.
|
|
40
|
+
*/
|
|
41
|
+
parent?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 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.
|
|
44
|
+
*/
|
|
45
|
+
basePath: string;
|
|
46
|
+
/**
|
|
47
|
+
* RFC 3339.
|
|
48
|
+
*/
|
|
49
|
+
createdAt: string;
|
|
50
|
+
/**
|
|
51
|
+
* RFC 3339.
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
ext?: Ext;
|
|
55
|
+
}
|
|
56
|
+
/** Trust Task type URI. */
|
|
57
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/contexts/get/1.0";
|
|
58
|
+
/** Stable alias for this specification's request payload shape. */
|
|
59
|
+
export type Payload = VTAContextsGetPayload;
|
|
60
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
61
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/contexts/get/1.0#response";
|
|
62
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
63
|
+
export type Response = ContextRecord;
|
|
64
|
+
/**
|
|
65
|
+
* This specification's payload schema, as a value.
|
|
66
|
+
*
|
|
67
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
68
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
69
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
70
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
71
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
72
|
+
*/
|
|
73
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
74
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
75
|
+
readonly $id: "https://trusttasks.org/spec/vta/contexts/get/1.0";
|
|
76
|
+
readonly title: "VTA Contexts Get — payload";
|
|
77
|
+
readonly type: "object";
|
|
78
|
+
readonly additionalProperties: false;
|
|
79
|
+
readonly required: readonly ["id"];
|
|
80
|
+
readonly properties: {
|
|
81
|
+
readonly id: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly minLength: 1;
|
|
84
|
+
readonly description: "Context id. For a nested context this is the full path (`parent/leaf`).";
|
|
85
|
+
};
|
|
86
|
+
readonly ext: {
|
|
87
|
+
readonly $ref: "#/$defs/Ext";
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly $defs: {
|
|
91
|
+
readonly Response: {
|
|
92
|
+
readonly $anchor: "response";
|
|
93
|
+
readonly title: "VTA Contexts Get — response payload";
|
|
94
|
+
readonly description: "Success response to vta/contexts/get: the context record, at the top level rather than wrapped. Type https://trusttasks.org/spec/vta/contexts/get/1.0#response.";
|
|
95
|
+
readonly $ref: "#/$defs/ContextRecord";
|
|
96
|
+
};
|
|
97
|
+
readonly ContextRecord: {
|
|
98
|
+
readonly title: "ContextRecord";
|
|
99
|
+
readonly description: "A context as the VTA holds it.";
|
|
100
|
+
readonly type: "object";
|
|
101
|
+
readonly additionalProperties: false;
|
|
102
|
+
readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
|
|
103
|
+
readonly properties: {
|
|
104
|
+
readonly id: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly minLength: 1;
|
|
107
|
+
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.";
|
|
108
|
+
};
|
|
109
|
+
readonly name: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly minLength: 1;
|
|
112
|
+
readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
|
|
113
|
+
};
|
|
114
|
+
readonly did: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
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.";
|
|
117
|
+
};
|
|
118
|
+
readonly description: {
|
|
119
|
+
readonly type: "string";
|
|
120
|
+
readonly description: "Free-form description.";
|
|
121
|
+
};
|
|
122
|
+
readonly parent: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
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.";
|
|
125
|
+
};
|
|
126
|
+
readonly basePath: {
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
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.";
|
|
129
|
+
};
|
|
130
|
+
readonly createdAt: {
|
|
131
|
+
readonly type: "string";
|
|
132
|
+
readonly format: "date-time";
|
|
133
|
+
readonly description: "RFC 3339.";
|
|
134
|
+
};
|
|
135
|
+
readonly updatedAt: {
|
|
136
|
+
readonly type: "string";
|
|
137
|
+
readonly format: "date-time";
|
|
138
|
+
readonly description: "RFC 3339.";
|
|
139
|
+
};
|
|
140
|
+
readonly ext: {
|
|
141
|
+
readonly $ref: "#/$defs/Ext";
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly Ext: {
|
|
146
|
+
readonly title: "Ext";
|
|
147
|
+
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.";
|
|
148
|
+
readonly type: "object";
|
|
149
|
+
readonly minProperties: 1;
|
|
150
|
+
readonly additionalProperties: true;
|
|
151
|
+
readonly propertyNames: {
|
|
152
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
158
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
159
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
160
|
+
readonly $ref: "#/$defs/Response";
|
|
161
|
+
readonly $defs: {
|
|
162
|
+
readonly Response: {
|
|
163
|
+
readonly $anchor: "response";
|
|
164
|
+
readonly title: "VTA Contexts Get — response payload";
|
|
165
|
+
readonly description: "Success response to vta/contexts/get: the context record, at the top level rather than wrapped. Type https://trusttasks.org/spec/vta/contexts/get/1.0#response.";
|
|
166
|
+
readonly $ref: "#/$defs/ContextRecord";
|
|
167
|
+
};
|
|
168
|
+
readonly ContextRecord: {
|
|
169
|
+
readonly title: "ContextRecord";
|
|
170
|
+
readonly description: "A context as the VTA holds it.";
|
|
171
|
+
readonly type: "object";
|
|
172
|
+
readonly additionalProperties: false;
|
|
173
|
+
readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
|
|
174
|
+
readonly properties: {
|
|
175
|
+
readonly id: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
readonly minLength: 1;
|
|
178
|
+
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.";
|
|
179
|
+
};
|
|
180
|
+
readonly name: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
readonly minLength: 1;
|
|
183
|
+
readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
|
|
184
|
+
};
|
|
185
|
+
readonly did: {
|
|
186
|
+
readonly type: "string";
|
|
187
|
+
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.";
|
|
188
|
+
};
|
|
189
|
+
readonly description: {
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
readonly description: "Free-form description.";
|
|
192
|
+
};
|
|
193
|
+
readonly parent: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
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.";
|
|
196
|
+
};
|
|
197
|
+
readonly basePath: {
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
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.";
|
|
200
|
+
};
|
|
201
|
+
readonly createdAt: {
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
readonly format: "date-time";
|
|
204
|
+
readonly description: "RFC 3339.";
|
|
205
|
+
};
|
|
206
|
+
readonly updatedAt: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly format: "date-time";
|
|
209
|
+
readonly description: "RFC 3339.";
|
|
210
|
+
};
|
|
211
|
+
readonly ext: {
|
|
212
|
+
readonly $ref: "#/$defs/Ext";
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly Ext: {
|
|
217
|
+
readonly title: "Ext";
|
|
218
|
+
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.";
|
|
219
|
+
readonly type: "object";
|
|
220
|
+
readonly minProperties: 1;
|
|
221
|
+
readonly additionalProperties: true;
|
|
222
|
+
readonly propertyNames: {
|
|
223
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
230
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
231
|
+
* per-specification and cannot be derived from the document alone, and
|
|
232
|
+
* item 2 needs the schema this carries.
|
|
233
|
+
*/
|
|
234
|
+
export declare const SPEC: {
|
|
235
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/contexts/get/1.0";
|
|
236
|
+
readonly isBearer: false;
|
|
237
|
+
readonly isProofRequired: false;
|
|
238
|
+
readonly isRecipientRequired: true;
|
|
239
|
+
readonly payloadSchema: {
|
|
240
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
241
|
+
readonly $id: "https://trusttasks.org/spec/vta/contexts/get/1.0";
|
|
242
|
+
readonly title: "VTA Contexts Get — payload";
|
|
243
|
+
readonly type: "object";
|
|
244
|
+
readonly additionalProperties: false;
|
|
245
|
+
readonly required: readonly ["id"];
|
|
246
|
+
readonly properties: {
|
|
247
|
+
readonly id: {
|
|
248
|
+
readonly type: "string";
|
|
249
|
+
readonly minLength: 1;
|
|
250
|
+
readonly description: "Context id. For a nested context this is the full path (`parent/leaf`).";
|
|
251
|
+
};
|
|
252
|
+
readonly ext: {
|
|
253
|
+
readonly $ref: "#/$defs/Ext";
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
readonly $defs: {
|
|
257
|
+
readonly Response: {
|
|
258
|
+
readonly $anchor: "response";
|
|
259
|
+
readonly title: "VTA Contexts Get — response payload";
|
|
260
|
+
readonly description: "Success response to vta/contexts/get: the context record, at the top level rather than wrapped. Type https://trusttasks.org/spec/vta/contexts/get/1.0#response.";
|
|
261
|
+
readonly $ref: "#/$defs/ContextRecord";
|
|
262
|
+
};
|
|
263
|
+
readonly ContextRecord: {
|
|
264
|
+
readonly title: "ContextRecord";
|
|
265
|
+
readonly description: "A context as the VTA holds it.";
|
|
266
|
+
readonly type: "object";
|
|
267
|
+
readonly additionalProperties: false;
|
|
268
|
+
readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
|
|
269
|
+
readonly properties: {
|
|
270
|
+
readonly id: {
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly minLength: 1;
|
|
273
|
+
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.";
|
|
274
|
+
};
|
|
275
|
+
readonly name: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly minLength: 1;
|
|
278
|
+
readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
|
|
279
|
+
};
|
|
280
|
+
readonly did: {
|
|
281
|
+
readonly type: "string";
|
|
282
|
+
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.";
|
|
283
|
+
};
|
|
284
|
+
readonly description: {
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
readonly description: "Free-form description.";
|
|
287
|
+
};
|
|
288
|
+
readonly parent: {
|
|
289
|
+
readonly type: "string";
|
|
290
|
+
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.";
|
|
291
|
+
};
|
|
292
|
+
readonly basePath: {
|
|
293
|
+
readonly type: "string";
|
|
294
|
+
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.";
|
|
295
|
+
};
|
|
296
|
+
readonly createdAt: {
|
|
297
|
+
readonly type: "string";
|
|
298
|
+
readonly format: "date-time";
|
|
299
|
+
readonly description: "RFC 3339.";
|
|
300
|
+
};
|
|
301
|
+
readonly updatedAt: {
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
readonly format: "date-time";
|
|
304
|
+
readonly description: "RFC 3339.";
|
|
305
|
+
};
|
|
306
|
+
readonly ext: {
|
|
307
|
+
readonly $ref: "#/$defs/Ext";
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly Ext: {
|
|
312
|
+
readonly title: "Ext";
|
|
313
|
+
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.";
|
|
314
|
+
readonly type: "object";
|
|
315
|
+
readonly minProperties: 1;
|
|
316
|
+
readonly additionalProperties: true;
|
|
317
|
+
readonly propertyNames: {
|
|
318
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
326
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
327
|
+
* parties (§7.3 item 5).
|
|
328
|
+
*/
|
|
329
|
+
export declare const RESPONSE_SPEC: {
|
|
330
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/contexts/get/1.0#response";
|
|
331
|
+
readonly isBearer: false;
|
|
332
|
+
readonly isProofRequired: false;
|
|
333
|
+
readonly isRecipientRequired: true;
|
|
334
|
+
readonly payloadSchema: {
|
|
335
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
336
|
+
readonly $ref: "#/$defs/Response";
|
|
337
|
+
readonly $defs: {
|
|
338
|
+
readonly Response: {
|
|
339
|
+
readonly $anchor: "response";
|
|
340
|
+
readonly title: "VTA Contexts Get — response payload";
|
|
341
|
+
readonly description: "Success response to vta/contexts/get: the context record, at the top level rather than wrapped. Type https://trusttasks.org/spec/vta/contexts/get/1.0#response.";
|
|
342
|
+
readonly $ref: "#/$defs/ContextRecord";
|
|
343
|
+
};
|
|
344
|
+
readonly ContextRecord: {
|
|
345
|
+
readonly title: "ContextRecord";
|
|
346
|
+
readonly description: "A context as the VTA holds it.";
|
|
347
|
+
readonly type: "object";
|
|
348
|
+
readonly additionalProperties: false;
|
|
349
|
+
readonly required: readonly ["id", "name", "basePath", "createdAt", "updatedAt"];
|
|
350
|
+
readonly properties: {
|
|
351
|
+
readonly id: {
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
readonly minLength: 1;
|
|
354
|
+
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.";
|
|
355
|
+
};
|
|
356
|
+
readonly name: {
|
|
357
|
+
readonly type: "string";
|
|
358
|
+
readonly minLength: 1;
|
|
359
|
+
readonly description: "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.";
|
|
360
|
+
};
|
|
361
|
+
readonly did: {
|
|
362
|
+
readonly type: "string";
|
|
363
|
+
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.";
|
|
364
|
+
};
|
|
365
|
+
readonly description: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
readonly description: "Free-form description.";
|
|
368
|
+
};
|
|
369
|
+
readonly parent: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
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.";
|
|
372
|
+
};
|
|
373
|
+
readonly basePath: {
|
|
374
|
+
readonly type: "string";
|
|
375
|
+
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.";
|
|
376
|
+
};
|
|
377
|
+
readonly createdAt: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
readonly format: "date-time";
|
|
380
|
+
readonly description: "RFC 3339.";
|
|
381
|
+
};
|
|
382
|
+
readonly updatedAt: {
|
|
383
|
+
readonly type: "string";
|
|
384
|
+
readonly format: "date-time";
|
|
385
|
+
readonly description: "RFC 3339.";
|
|
386
|
+
};
|
|
387
|
+
readonly ext: {
|
|
388
|
+
readonly $ref: "#/$defs/Ext";
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
readonly Ext: {
|
|
393
|
+
readonly title: "Ext";
|
|
394
|
+
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.";
|
|
395
|
+
readonly type: "object";
|
|
396
|
+
readonly minProperties: 1;
|
|
397
|
+
readonly additionalProperties: true;
|
|
398
|
+
readonly propertyNames: {
|
|
399
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/contexts/get/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,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,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,kDAA2D,CAAC;AAEpF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,qBAAqB,CAAC;AAE5C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,2DAAoE,CAAC;AAEtG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,aAAa,CAAC;AAErC;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2E1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/contexts/get/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/contexts/get/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/contexts/get/1.0#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vta/contexts/get/1.0",
|
|
21
|
+
"title": "VTA Contexts Get — payload",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"id"
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1,
|
|
31
|
+
"description": "Context id. For a nested context this is the full path (`parent/leaf`)."
|
|
32
|
+
},
|
|
33
|
+
"ext": {
|
|
34
|
+
"$ref": "#/$defs/Ext"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"$defs": {
|
|
38
|
+
"Response": {
|
|
39
|
+
"$anchor": "response",
|
|
40
|
+
"title": "VTA Contexts Get — response payload",
|
|
41
|
+
"description": "Success response to vta/contexts/get: the context record, at the top level rather than wrapped. Type https://trusttasks.org/spec/vta/contexts/get/1.0#response.",
|
|
42
|
+
"$ref": "#/$defs/ContextRecord"
|
|
43
|
+
},
|
|
44
|
+
"ContextRecord": {
|
|
45
|
+
"title": "ContextRecord",
|
|
46
|
+
"description": "A context as the VTA holds it.",
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"required": [
|
|
50
|
+
"id",
|
|
51
|
+
"name",
|
|
52
|
+
"basePath",
|
|
53
|
+
"createdAt",
|
|
54
|
+
"updatedAt"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"id": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"minLength": 1,
|
|
60
|
+
"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."
|
|
61
|
+
},
|
|
62
|
+
"name": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"minLength": 1,
|
|
65
|
+
"description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
|
|
66
|
+
},
|
|
67
|
+
"did": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"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."
|
|
70
|
+
},
|
|
71
|
+
"description": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "Free-form description."
|
|
74
|
+
},
|
|
75
|
+
"parent": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"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."
|
|
78
|
+
},
|
|
79
|
+
"basePath": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"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."
|
|
82
|
+
},
|
|
83
|
+
"createdAt": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"format": "date-time",
|
|
86
|
+
"description": "RFC 3339."
|
|
87
|
+
},
|
|
88
|
+
"updatedAt": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"format": "date-time",
|
|
91
|
+
"description": "RFC 3339."
|
|
92
|
+
},
|
|
93
|
+
"ext": {
|
|
94
|
+
"$ref": "#/$defs/Ext"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"Ext": {
|
|
99
|
+
"title": "Ext",
|
|
100
|
+
"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.",
|
|
101
|
+
"type": "object",
|
|
102
|
+
"minProperties": 1,
|
|
103
|
+
"additionalProperties": true,
|
|
104
|
+
"propertyNames": {
|
|
105
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
111
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
112
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
113
|
+
"$ref": "#/$defs/Response",
|
|
114
|
+
"$defs": {
|
|
115
|
+
"Response": {
|
|
116
|
+
"$anchor": "response",
|
|
117
|
+
"title": "VTA Contexts Get — response payload",
|
|
118
|
+
"description": "Success response to vta/contexts/get: the context record, at the top level rather than wrapped. Type https://trusttasks.org/spec/vta/contexts/get/1.0#response.",
|
|
119
|
+
"$ref": "#/$defs/ContextRecord"
|
|
120
|
+
},
|
|
121
|
+
"ContextRecord": {
|
|
122
|
+
"title": "ContextRecord",
|
|
123
|
+
"description": "A context as the VTA holds it.",
|
|
124
|
+
"type": "object",
|
|
125
|
+
"additionalProperties": false,
|
|
126
|
+
"required": [
|
|
127
|
+
"id",
|
|
128
|
+
"name",
|
|
129
|
+
"basePath",
|
|
130
|
+
"createdAt",
|
|
131
|
+
"updatedAt"
|
|
132
|
+
],
|
|
133
|
+
"properties": {
|
|
134
|
+
"id": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 1,
|
|
137
|
+
"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."
|
|
138
|
+
},
|
|
139
|
+
"name": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"minLength": 1,
|
|
142
|
+
"description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
|
|
143
|
+
},
|
|
144
|
+
"did": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"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."
|
|
147
|
+
},
|
|
148
|
+
"description": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"description": "Free-form description."
|
|
151
|
+
},
|
|
152
|
+
"parent": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"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."
|
|
155
|
+
},
|
|
156
|
+
"basePath": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"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."
|
|
159
|
+
},
|
|
160
|
+
"createdAt": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"format": "date-time",
|
|
163
|
+
"description": "RFC 3339."
|
|
164
|
+
},
|
|
165
|
+
"updatedAt": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"format": "date-time",
|
|
168
|
+
"description": "RFC 3339."
|
|
169
|
+
},
|
|
170
|
+
"ext": {
|
|
171
|
+
"$ref": "#/$defs/Ext"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"Ext": {
|
|
176
|
+
"title": "Ext",
|
|
177
|
+
"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.",
|
|
178
|
+
"type": "object",
|
|
179
|
+
"minProperties": 1,
|
|
180
|
+
"additionalProperties": true,
|
|
181
|
+
"propertyNames": {
|
|
182
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
189
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
190
|
+
* per-specification and cannot be derived from the document alone, and
|
|
191
|
+
* item 2 needs the schema this carries.
|
|
192
|
+
*/
|
|
193
|
+
export const SPEC = {
|
|
194
|
+
typeUri: TYPE_URI,
|
|
195
|
+
isBearer: false,
|
|
196
|
+
isProofRequired: false,
|
|
197
|
+
isRecipientRequired: true,
|
|
198
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
202
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
203
|
+
* parties (§7.3 item 5).
|
|
204
|
+
*/
|
|
205
|
+
export const RESPONSE_SPEC = {
|
|
206
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
207
|
+
isBearer: false,
|
|
208
|
+
isProofRequired: false,
|
|
209
|
+
isRecipientRequired: true,
|
|
210
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
211
|
+
};
|
|
212
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/contexts/get/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAsDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,kDAA2D,CAAC;AAKpF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,2DAAoE,CAAC;AAKtG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,4BAA4B;IACrC,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,IAAI;KACL;IACD,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,yEAAyE;SACzF;QACD,KAAK,E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