@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,285 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/contexts/update-did/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface VTAContextsUpdateDIDPayload {
|
|
7
|
+
/**
|
|
8
|
+
* Context whose DID is being set.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* The DID this context acts as from now on. Anything that authenticated or signed as the previous DID keeps referring to it; this task does not migrate those references, and a consumer MUST NOT imply that it does.
|
|
13
|
+
*/
|
|
14
|
+
did: string;
|
|
15
|
+
ext?: Ext;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 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.
|
|
19
|
+
*/
|
|
20
|
+
export interface Ext {
|
|
21
|
+
[k: string]: unknown | undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A context as the VTA holds it.
|
|
25
|
+
*/
|
|
26
|
+
export interface ContextRecord {
|
|
27
|
+
/**
|
|
28
|
+
* 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.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name.
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* 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.
|
|
37
|
+
*/
|
|
38
|
+
did?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Free-form description.
|
|
41
|
+
*/
|
|
42
|
+
description?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 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.
|
|
45
|
+
*/
|
|
46
|
+
parent?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
*/
|
|
50
|
+
basePath: string;
|
|
51
|
+
/**
|
|
52
|
+
* RFC 3339.
|
|
53
|
+
*/
|
|
54
|
+
createdAt: string;
|
|
55
|
+
/**
|
|
56
|
+
* RFC 3339.
|
|
57
|
+
*/
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
ext?: Ext;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Trust Task type URI. */
|
|
63
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/contexts/update-did/1.0" as const;
|
|
64
|
+
|
|
65
|
+
/** Stable alias for this specification's request payload shape. */
|
|
66
|
+
export type Payload = VTAContextsUpdateDIDPayload;
|
|
67
|
+
|
|
68
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
69
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/contexts/update-did/1.0#response" as const;
|
|
70
|
+
|
|
71
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
72
|
+
export type Response = ContextRecord;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* This specification's payload schema, as a value.
|
|
76
|
+
*
|
|
77
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
78
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
79
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
80
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
81
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
82
|
+
*/
|
|
83
|
+
export const PAYLOAD_SCHEMA = {
|
|
84
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
85
|
+
"$id": "https://trusttasks.org/spec/vta/contexts/update-did/1.0",
|
|
86
|
+
"title": "VTA Contexts Update-DID — payload",
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": [
|
|
90
|
+
"id",
|
|
91
|
+
"did"
|
|
92
|
+
],
|
|
93
|
+
"properties": {
|
|
94
|
+
"id": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1,
|
|
97
|
+
"description": "Context whose DID is being set."
|
|
98
|
+
},
|
|
99
|
+
"did": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"minLength": 1,
|
|
102
|
+
"description": "The DID this context acts as from now on. Anything that authenticated or signed as the previous DID keeps referring to it; this task does not migrate those references, and a consumer MUST NOT imply that it does."
|
|
103
|
+
},
|
|
104
|
+
"ext": {
|
|
105
|
+
"$ref": "#/$defs/Ext"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"$defs": {
|
|
109
|
+
"Response": {
|
|
110
|
+
"$anchor": "response",
|
|
111
|
+
"title": "VTA Contexts Update-DID — response payload",
|
|
112
|
+
"description": "Success response to vta/contexts/update-did: the context as it now stands. Type https://trusttasks.org/spec/vta/contexts/update-did/1.0#response.",
|
|
113
|
+
"$ref": "#/$defs/ContextRecord"
|
|
114
|
+
},
|
|
115
|
+
"ContextRecord": {
|
|
116
|
+
"title": "ContextRecord",
|
|
117
|
+
"description": "A context as the VTA holds it.",
|
|
118
|
+
"type": "object",
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"required": [
|
|
121
|
+
"id",
|
|
122
|
+
"name",
|
|
123
|
+
"basePath",
|
|
124
|
+
"createdAt",
|
|
125
|
+
"updatedAt"
|
|
126
|
+
],
|
|
127
|
+
"properties": {
|
|
128
|
+
"id": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"minLength": 1,
|
|
131
|
+
"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."
|
|
132
|
+
},
|
|
133
|
+
"name": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"minLength": 1,
|
|
136
|
+
"description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
|
|
137
|
+
},
|
|
138
|
+
"did": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"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."
|
|
141
|
+
},
|
|
142
|
+
"description": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "Free-form description."
|
|
145
|
+
},
|
|
146
|
+
"parent": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"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."
|
|
149
|
+
},
|
|
150
|
+
"basePath": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"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."
|
|
153
|
+
},
|
|
154
|
+
"createdAt": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"format": "date-time",
|
|
157
|
+
"description": "RFC 3339."
|
|
158
|
+
},
|
|
159
|
+
"updatedAt": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"format": "date-time",
|
|
162
|
+
"description": "RFC 3339."
|
|
163
|
+
},
|
|
164
|
+
"ext": {
|
|
165
|
+
"$ref": "#/$defs/Ext"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"Ext": {
|
|
170
|
+
"title": "Ext",
|
|
171
|
+
"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.",
|
|
172
|
+
"type": "object",
|
|
173
|
+
"minProperties": 1,
|
|
174
|
+
"additionalProperties": true,
|
|
175
|
+
"propertyNames": {
|
|
176
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
} as const;
|
|
181
|
+
|
|
182
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
183
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
184
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
185
|
+
"$ref": "#/$defs/Response",
|
|
186
|
+
"$defs": {
|
|
187
|
+
"Response": {
|
|
188
|
+
"$anchor": "response",
|
|
189
|
+
"title": "VTA Contexts Update-DID — response payload",
|
|
190
|
+
"description": "Success response to vta/contexts/update-did: the context as it now stands. Type https://trusttasks.org/spec/vta/contexts/update-did/1.0#response.",
|
|
191
|
+
"$ref": "#/$defs/ContextRecord"
|
|
192
|
+
},
|
|
193
|
+
"ContextRecord": {
|
|
194
|
+
"title": "ContextRecord",
|
|
195
|
+
"description": "A context as the VTA holds it.",
|
|
196
|
+
"type": "object",
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"required": [
|
|
199
|
+
"id",
|
|
200
|
+
"name",
|
|
201
|
+
"basePath",
|
|
202
|
+
"createdAt",
|
|
203
|
+
"updatedAt"
|
|
204
|
+
],
|
|
205
|
+
"properties": {
|
|
206
|
+
"id": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"minLength": 1,
|
|
209
|
+
"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."
|
|
210
|
+
},
|
|
211
|
+
"name": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"minLength": 1,
|
|
214
|
+
"description": "Human-readable name. Operator-facing only; carries no authorization meaning, and two contexts may share a name."
|
|
215
|
+
},
|
|
216
|
+
"did": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"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."
|
|
219
|
+
},
|
|
220
|
+
"description": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"description": "Free-form description."
|
|
223
|
+
},
|
|
224
|
+
"parent": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"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."
|
|
227
|
+
},
|
|
228
|
+
"basePath": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"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."
|
|
231
|
+
},
|
|
232
|
+
"createdAt": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"format": "date-time",
|
|
235
|
+
"description": "RFC 3339."
|
|
236
|
+
},
|
|
237
|
+
"updatedAt": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"format": "date-time",
|
|
240
|
+
"description": "RFC 3339."
|
|
241
|
+
},
|
|
242
|
+
"ext": {
|
|
243
|
+
"$ref": "#/$defs/Ext"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"Ext": {
|
|
248
|
+
"title": "Ext",
|
|
249
|
+
"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.",
|
|
250
|
+
"type": "object",
|
|
251
|
+
"minProperties": 1,
|
|
252
|
+
"additionalProperties": true,
|
|
253
|
+
"propertyNames": {
|
|
254
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
} as const;
|
|
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 const SPEC = {
|
|
267
|
+
typeUri: TYPE_URI,
|
|
268
|
+
isBearer: false,
|
|
269
|
+
isProofRequired: true,
|
|
270
|
+
isRecipientRequired: true,
|
|
271
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
272
|
+
} as const;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
276
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
277
|
+
* parties (§7.3 item 5).
|
|
278
|
+
*/
|
|
279
|
+
export const RESPONSE_SPEC = {
|
|
280
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
281
|
+
isBearer: false,
|
|
282
|
+
isProofRequired: true,
|
|
283
|
+
isRecipientRequired: true,
|
|
284
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
285
|
+
} as const;
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/services/disable/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.
|
|
8
|
+
*/
|
|
9
|
+
export type ServiceKind = "didcomm" | "rest" | "tsp" | "webauthn";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Request payload for vta/services/disable. Stops advertising a transport and republishes the log. For `didcomm` this schedules a drain rather than cutting delivery immediately — see `drainUntil` in the result.
|
|
13
|
+
*/
|
|
14
|
+
export interface VTAServicesDisablePayload {
|
|
15
|
+
service: ServiceKind;
|
|
16
|
+
ext?: Ext;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 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.
|
|
20
|
+
*/
|
|
21
|
+
export interface Ext {
|
|
22
|
+
[k: string]: unknown | undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.
|
|
26
|
+
*/
|
|
27
|
+
export interface VTAServicesDisableResponsePayload {
|
|
28
|
+
result: ServiceMutationResult;
|
|
29
|
+
ext?: Ext;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.
|
|
33
|
+
*/
|
|
34
|
+
export interface ServiceMutationResult {
|
|
35
|
+
/**
|
|
36
|
+
* Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.
|
|
37
|
+
*/
|
|
38
|
+
logEntryVersionId: string;
|
|
39
|
+
/**
|
|
40
|
+
* RFC 3339 instant the change took effect — the same instant stamped on the new log entry.
|
|
41
|
+
*/
|
|
42
|
+
effectiveAt: string;
|
|
43
|
+
/**
|
|
44
|
+
* Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong.
|
|
45
|
+
*/
|
|
46
|
+
drainUntil?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The mediator being drained, when `drainUntil` is present.
|
|
49
|
+
*/
|
|
50
|
+
drainingMediator?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip.
|
|
53
|
+
*/
|
|
54
|
+
vtaDid?: string;
|
|
55
|
+
/**
|
|
56
|
+
* True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.
|
|
57
|
+
*/
|
|
58
|
+
serverless?: boolean;
|
|
59
|
+
ext?: Ext;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Trust Task type URI. */
|
|
63
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/services/disable/1.0" as const;
|
|
64
|
+
|
|
65
|
+
/** Stable alias for this specification's request payload shape. */
|
|
66
|
+
export type Payload = VTAServicesDisablePayload;
|
|
67
|
+
|
|
68
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
69
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/services/disable/1.0#response" as const;
|
|
70
|
+
|
|
71
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
72
|
+
export type Response = VTAServicesDisableResponsePayload;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* This specification's payload schema, as a value.
|
|
76
|
+
*
|
|
77
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
78
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
79
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
80
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
81
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
82
|
+
*/
|
|
83
|
+
export const PAYLOAD_SCHEMA = {
|
|
84
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
85
|
+
"$id": "https://trusttasks.org/spec/vta/services/disable/1.0",
|
|
86
|
+
"title": "VTA Services — Disable — payload",
|
|
87
|
+
"description": "Request payload for vta/services/disable. Stops advertising a transport and republishes the log. For `didcomm` this schedules a drain rather than cutting delivery immediately — see `drainUntil` in the result.",
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"required": [
|
|
91
|
+
"service"
|
|
92
|
+
],
|
|
93
|
+
"properties": {
|
|
94
|
+
"service": {
|
|
95
|
+
"$ref": "#/$defs/ServiceKind"
|
|
96
|
+
},
|
|
97
|
+
"ext": {
|
|
98
|
+
"$ref": "#/$defs/Ext"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"$defs": {
|
|
102
|
+
"Response": {
|
|
103
|
+
"$anchor": "response",
|
|
104
|
+
"title": "VTA Services — Disable — response payload",
|
|
105
|
+
"description": "Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.",
|
|
106
|
+
"type": "object",
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"required": [
|
|
109
|
+
"result"
|
|
110
|
+
],
|
|
111
|
+
"properties": {
|
|
112
|
+
"result": {
|
|
113
|
+
"$ref": "#/$defs/ServiceMutationResult"
|
|
114
|
+
},
|
|
115
|
+
"ext": {
|
|
116
|
+
"$ref": "#/$defs/Ext"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"Ext": {
|
|
121
|
+
"title": "Ext",
|
|
122
|
+
"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.",
|
|
123
|
+
"type": "object",
|
|
124
|
+
"minProperties": 1,
|
|
125
|
+
"additionalProperties": true,
|
|
126
|
+
"propertyNames": {
|
|
127
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"ServiceMutationResult": {
|
|
131
|
+
"title": "ServiceMutationResult",
|
|
132
|
+
"description": "The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.",
|
|
133
|
+
"type": "object",
|
|
134
|
+
"additionalProperties": false,
|
|
135
|
+
"required": [
|
|
136
|
+
"logEntryVersionId",
|
|
137
|
+
"effectiveAt"
|
|
138
|
+
],
|
|
139
|
+
"properties": {
|
|
140
|
+
"logEntryVersionId": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"minLength": 1,
|
|
143
|
+
"description": "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history."
|
|
144
|
+
},
|
|
145
|
+
"effectiveAt": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"format": "date-time",
|
|
148
|
+
"description": "RFC 3339 instant the change took effect — the same instant stamped on the new log entry."
|
|
149
|
+
},
|
|
150
|
+
"drainUntil": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"format": "date-time",
|
|
153
|
+
"description": "Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong."
|
|
154
|
+
},
|
|
155
|
+
"drainingMediator": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "The mediator being drained, when `drainUntil` is present."
|
|
158
|
+
},
|
|
159
|
+
"vtaDid": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip."
|
|
162
|
+
},
|
|
163
|
+
"serverless": {
|
|
164
|
+
"type": "boolean",
|
|
165
|
+
"description": "True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.",
|
|
166
|
+
"default": false
|
|
167
|
+
},
|
|
168
|
+
"ext": {
|
|
169
|
+
"$ref": "#/$defs/Ext"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"ServiceKind": {
|
|
174
|
+
"title": "ServiceKind",
|
|
175
|
+
"description": "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.",
|
|
176
|
+
"type": "string",
|
|
177
|
+
"enum": [
|
|
178
|
+
"didcomm",
|
|
179
|
+
"rest",
|
|
180
|
+
"tsp",
|
|
181
|
+
"webauthn"
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
} as const;
|
|
186
|
+
|
|
187
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
188
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
189
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
190
|
+
"$ref": "#/$defs/Response",
|
|
191
|
+
"$defs": {
|
|
192
|
+
"Response": {
|
|
193
|
+
"$anchor": "response",
|
|
194
|
+
"title": "VTA Services — Disable — response payload",
|
|
195
|
+
"description": "Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.",
|
|
196
|
+
"type": "object",
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"required": [
|
|
199
|
+
"result"
|
|
200
|
+
],
|
|
201
|
+
"properties": {
|
|
202
|
+
"result": {
|
|
203
|
+
"$ref": "#/$defs/ServiceMutationResult"
|
|
204
|
+
},
|
|
205
|
+
"ext": {
|
|
206
|
+
"$ref": "#/$defs/Ext"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"Ext": {
|
|
211
|
+
"title": "Ext",
|
|
212
|
+
"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.",
|
|
213
|
+
"type": "object",
|
|
214
|
+
"minProperties": 1,
|
|
215
|
+
"additionalProperties": true,
|
|
216
|
+
"propertyNames": {
|
|
217
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"ServiceMutationResult": {
|
|
221
|
+
"title": "ServiceMutationResult",
|
|
222
|
+
"description": "The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.",
|
|
223
|
+
"type": "object",
|
|
224
|
+
"additionalProperties": false,
|
|
225
|
+
"required": [
|
|
226
|
+
"logEntryVersionId",
|
|
227
|
+
"effectiveAt"
|
|
228
|
+
],
|
|
229
|
+
"properties": {
|
|
230
|
+
"logEntryVersionId": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"minLength": 1,
|
|
233
|
+
"description": "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history."
|
|
234
|
+
},
|
|
235
|
+
"effectiveAt": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"format": "date-time",
|
|
238
|
+
"description": "RFC 3339 instant the change took effect — the same instant stamped on the new log entry."
|
|
239
|
+
},
|
|
240
|
+
"drainUntil": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"format": "date-time",
|
|
243
|
+
"description": "Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong."
|
|
244
|
+
},
|
|
245
|
+
"drainingMediator": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"description": "The mediator being drained, when `drainUntil` is present."
|
|
248
|
+
},
|
|
249
|
+
"vtaDid": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"description": "The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip."
|
|
252
|
+
},
|
|
253
|
+
"serverless": {
|
|
254
|
+
"type": "boolean",
|
|
255
|
+
"description": "True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.",
|
|
256
|
+
"default": false
|
|
257
|
+
},
|
|
258
|
+
"ext": {
|
|
259
|
+
"$ref": "#/$defs/Ext"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"ServiceKind": {
|
|
264
|
+
"title": "ServiceKind",
|
|
265
|
+
"description": "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.",
|
|
266
|
+
"type": "string",
|
|
267
|
+
"enum": [
|
|
268
|
+
"didcomm",
|
|
269
|
+
"rest",
|
|
270
|
+
"tsp",
|
|
271
|
+
"webauthn"
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
} as const;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
279
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
280
|
+
* per-specification and cannot be derived from the document alone, and
|
|
281
|
+
* item 2 needs the schema this carries.
|
|
282
|
+
*/
|
|
283
|
+
export const SPEC = {
|
|
284
|
+
typeUri: TYPE_URI,
|
|
285
|
+
isBearer: false,
|
|
286
|
+
isProofRequired: true,
|
|
287
|
+
isRecipientRequired: true,
|
|
288
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
289
|
+
} as const;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
293
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
294
|
+
* parties (§7.3 item 5).
|
|
295
|
+
*/
|
|
296
|
+
export const RESPONSE_SPEC = {
|
|
297
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
298
|
+
isBearer: false,
|
|
299
|
+
isProofRequired: true,
|
|
300
|
+
isRecipientRequired: true,
|
|
301
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
302
|
+
} as const;
|