@openvtc/trust-tasks 0.26.10 → 0.26.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +351 -0
- package/dist/_shared/components.d.ts +18 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/keys/act/0.2/payload.d.ts +546 -0
- package/dist/rooms/keys/act/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.2/payload.js +305 -0
- package/dist/rooms/keys/act/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/act/0.3/payload.d.ts +546 -0
- package/dist/rooms/keys/act/0.3/payload.d.ts.map +1 -0
- package/dist/rooms/keys/act/0.3/payload.js +305 -0
- package/dist/rooms/keys/act/0.3/payload.js.map +1 -0
- package/dist/rooms/keys/file-key/0.2/payload.d.ts +306 -0
- package/dist/rooms/keys/file-key/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/file-key/0.2/payload.js +167 -0
- package/dist/rooms/keys/file-key/0.2/payload.js.map +1 -0
- package/dist/rooms/keys/open/0.2/payload.d.ts +323 -0
- package/dist/rooms/keys/open/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/keys/open/0.2/payload.js +171 -0
- package/dist/rooms/keys/open/0.2/payload.js.map +1 -0
- package/dist/rooms/owner/group/add/0.2/payload.d.ts +417 -0
- package/dist/rooms/owner/group/add/0.2/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/add/0.2/payload.js +218 -0
- package/dist/rooms/owner/group/add/0.2/payload.js.map +1 -0
- package/dist/vta/_shared/0.6/witness-party.d.ts +16 -0
- package/dist/vta/_shared/0.6/witness-party.d.ts.map +1 -0
- package/dist/vta/_shared/0.6/witness-party.js +6 -0
- package/dist/vta/_shared/0.6/witness-party.js.map +1 -0
- package/dist/vta/witness/accept/0.2/payload.d.ts +499 -0
- package/dist/vta/witness/accept/0.2/payload.d.ts.map +1 -0
- package/dist/vta/witness/accept/0.2/payload.js +278 -0
- package/dist/vta/witness/accept/0.2/payload.js.map +1 -0
- package/dist/vta/witness/open/0.2/payload.d.ts +500 -0
- package/dist/vta/witness/open/0.2/payload.d.ts.map +1 -0
- package/dist/vta/witness/open/0.2/payload.js +259 -0
- package/dist/vta/witness/open/0.2/payload.js.map +1 -0
- package/dist/vta/witness/present/0.2/payload.d.ts +303 -0
- package/dist/vta/witness/present/0.2/payload.d.ts.map +1 -0
- package/dist/vta/witness/present/0.2/payload.js +170 -0
- package/dist/vta/witness/present/0.2/payload.js.map +1 -0
- package/dist/vtc/members/personhood/assert/0.2/payload.d.ts +536 -0
- package/dist/vtc/members/personhood/assert/0.2/payload.d.ts.map +1 -0
- package/dist/vtc/members/personhood/assert/0.2/payload.js +228 -0
- package/dist/vtc/members/personhood/assert/0.2/payload.js.map +1 -0
- package/dist/vtc/members/registry-consent/0.1/payload.d.ts +311 -0
- package/dist/vtc/members/registry-consent/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/members/registry-consent/0.1/payload.js +183 -0
- package/dist/vtc/members/registry-consent/0.1/payload.js.map +1 -0
- package/dist/vtc/members/update/0.1/payload.d.ts +3 -3
- package/dist/vtc/members/update/0.1/payload.js +1 -1
- package/dist/vtc/members/update/0.1/payload.js.map +1 -1
- package/dist/witness/_shared/0.1/outcome-evidence.d.ts +16 -0
- package/dist/witness/_shared/0.1/outcome-evidence.d.ts.map +1 -0
- package/dist/witness/_shared/0.1/outcome-evidence.js +6 -0
- package/dist/witness/_shared/0.1/outcome-evidence.js.map +1 -0
- package/dist/witness/session/0.2/payload.d.ts +274 -0
- package/dist/witness/session/0.2/payload.d.ts.map +1 -0
- package/dist/witness/session/0.2/payload.js +152 -0
- package/dist/witness/session/0.2/payload.js.map +1 -0
- package/dist/witness/session/submit/0.2/payload.d.ts +295 -0
- package/dist/witness/session/submit/0.2/payload.d.ts.map +1 -0
- package/dist/witness/session/submit/0.2/payload.js +166 -0
- package/dist/witness/session/submit/0.2/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +17 -0
- package/src/index.ts +14 -0
- package/src/rooms/keys/act/0.2/payload.ts +380 -0
- package/src/rooms/keys/act/0.3/payload.ts +380 -0
- package/src/rooms/keys/file-key/0.2/payload.ts +224 -0
- package/src/rooms/keys/open/0.2/payload.ts +237 -0
- package/src/rooms/owner/group/add/0.2/payload.ts +288 -0
- package/src/vta/_shared/0.6/witness-party.ts +17 -0
- package/src/vta/witness/accept/0.2/payload.ts +330 -0
- package/src/vta/witness/open/0.2/payload.ts +336 -0
- package/src/vta/witness/present/0.2/payload.ts +210 -0
- package/src/vtc/members/personhood/assert/0.2/payload.ts +421 -0
- package/src/vtc/members/registry-consent/0.1/payload.ts +231 -0
- package/src/vtc/members/update/0.1/payload.ts +2 -2
- package/src/witness/_shared/0.1/outcome-evidence.ts +17 -0
- package/src/witness/session/0.2/payload.ts +197 -0
- package/src/witness/session/submit/0.2/payload.ts +212 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/witness/open/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/witness/open/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/witness/open/0.2#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/witness/open/0.2",
|
|
21
|
+
"title": "VTA Witness — Open — payload",
|
|
22
|
+
"description": "A client asks its VTA to open a witnessed session for one of its principal's relationships: the VTA checks custody and the credentials to be presented, and returns the witness/session document, built and signed as the principal's relationship DID, for the client to send to the witness.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"witness",
|
|
27
|
+
"relationshipDid",
|
|
28
|
+
"counterpartyDid",
|
|
29
|
+
"relationshipThreadId",
|
|
30
|
+
"relationshipCredentialId"
|
|
31
|
+
],
|
|
32
|
+
"properties": {
|
|
33
|
+
"witness": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^did:",
|
|
36
|
+
"description": "The witness to be witnessed by, as its public DID: the recipient of every document of the session, and the issuer of every answer the VTA will accept for it. Chosen by the caller, because which witness observes an exchange is the parties' privacy decision."
|
|
37
|
+
},
|
|
38
|
+
"relationshipDid": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^did:",
|
|
41
|
+
"description": "The principal's relationship DID for this relationship: the participating party, the issuer of every document of the session, and the DID the client sends them from. The VTA must hold a key of it in a context the caller may act in."
|
|
42
|
+
},
|
|
43
|
+
"counterpartyDid": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^did:",
|
|
46
|
+
"description": "The other party's relationship DID. With relationshipDid it forms the session's `parties`, and it is the subject of the relationship credential presented."
|
|
47
|
+
},
|
|
48
|
+
"relationshipThreadId": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 1,
|
|
51
|
+
"maxLength": 256,
|
|
52
|
+
"description": "The threadId of the relationship exchange the session is nested in, set as `parentThreadId` on every document of the session, as witness/session requires of a producer."
|
|
53
|
+
},
|
|
54
|
+
"relationshipCredentialId": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"minLength": 1,
|
|
57
|
+
"maxLength": 256,
|
|
58
|
+
"description": "The credential-vault handle of the relationship credential (VRC) to present: issued by relationshipDid, naming counterpartyDid. Bound to the session here, so a later step cannot present another."
|
|
59
|
+
},
|
|
60
|
+
"membership": {
|
|
61
|
+
"$ref": "#/$defs/Membership",
|
|
62
|
+
"description": "The membership evidence to present beside the relationship credential, for a witness whose policy asks for it. Absent, none is presented. Bound to the session here."
|
|
63
|
+
},
|
|
64
|
+
"storeAs": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"minLength": 1,
|
|
67
|
+
"maxLength": 256,
|
|
68
|
+
"description": "The credential-vault handle to store the VWC under at vta/witness/accept. Absent, the VTA derives one."
|
|
69
|
+
},
|
|
70
|
+
"ext": {
|
|
71
|
+
"$ref": "#/$defs/Ext"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"$defs": {
|
|
75
|
+
"Membership": {
|
|
76
|
+
"title": "Membership",
|
|
77
|
+
"description": "A membership credential (VMC) held in the credential vault, and the DID it names. When memberDid is absent the VMC names relationshipDid and rides in the relationship presentation. When memberDid is present the VMC names that DID, and the VTA builds a second presentation — the member presentation, carried in witness/session/submit/0.2's memberPresentation — signed by memberDid and bound to the same session, which discloses memberDid to the witness.",
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"required": [
|
|
81
|
+
"credentialId"
|
|
82
|
+
],
|
|
83
|
+
"properties": {
|
|
84
|
+
"credentialId": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"maxLength": 256,
|
|
88
|
+
"description": "The credential-vault handle of the membership credential."
|
|
89
|
+
},
|
|
90
|
+
"memberDid": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"pattern": "^did:",
|
|
93
|
+
"description": "The member DID the membership credential names, when it is not relationshipDid. The VTA must hold a key of it in a context the caller may act in. Naming it is the caller's explicit choice to disclose it to the witness."
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"Response": {
|
|
98
|
+
"$anchor": "response",
|
|
99
|
+
"title": "VTA Witness — Open — response payload",
|
|
100
|
+
"description": "The session id and the witness/session document to send.",
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"required": [
|
|
104
|
+
"sessionId",
|
|
105
|
+
"document",
|
|
106
|
+
"expiresAt"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"sessionId": {
|
|
110
|
+
"$ref": "#/$defs/SessionId"
|
|
111
|
+
},
|
|
112
|
+
"document": {
|
|
113
|
+
"$ref": "#/$defs/CarriedDocument",
|
|
114
|
+
"description": "The witness/session/0.2 document, issued and signed by relationshipDid and addressed to the witness, for the client to send from relationshipDid unaltered. Its id is sessionId."
|
|
115
|
+
},
|
|
116
|
+
"expiresAt": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"format": "date-time",
|
|
119
|
+
"description": "When the VTA's record of the session expires. The client must hand back the witness's answers before then."
|
|
120
|
+
},
|
|
121
|
+
"ext": {
|
|
122
|
+
"$ref": "#/$defs/Ext"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"Ext": {
|
|
127
|
+
"title": "Ext",
|
|
128
|
+
"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.",
|
|
129
|
+
"type": "object",
|
|
130
|
+
"minProperties": 1,
|
|
131
|
+
"additionalProperties": true,
|
|
132
|
+
"propertyNames": {
|
|
133
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"CarriedDocument": {
|
|
137
|
+
"title": "CarriedDocument",
|
|
138
|
+
"description": "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried between the VTA and the witness by the client: one the VTA built and signed for the client to send, or one the witness returned for the client to hand back. Typed as an open object so every member survives a round trip: carried exactly as built or received, never re-serialised, because its proof is over itself. Its envelope is checked by the VTA against the session record (CONVENTIONS.md §3), not by this schema.",
|
|
139
|
+
"type": "object",
|
|
140
|
+
"minProperties": 1
|
|
141
|
+
},
|
|
142
|
+
"SessionId": {
|
|
143
|
+
"title": "SessionId",
|
|
144
|
+
"description": "The id of the witness/session document the VTA built in vta/witness/open: the session's name, the thread every document of the session is on, and the value the VWC carries as taskContext. The VTA keys its state for the session by it.",
|
|
145
|
+
"type": "string",
|
|
146
|
+
"minLength": 1,
|
|
147
|
+
"maxLength": 256
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
152
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
153
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
154
|
+
"$ref": "#/$defs/Response",
|
|
155
|
+
"$defs": {
|
|
156
|
+
"Membership": {
|
|
157
|
+
"title": "Membership",
|
|
158
|
+
"description": "A membership credential (VMC) held in the credential vault, and the DID it names. When memberDid is absent the VMC names relationshipDid and rides in the relationship presentation. When memberDid is present the VMC names that DID, and the VTA builds a second presentation — the member presentation, carried in witness/session/submit/0.2's memberPresentation — signed by memberDid and bound to the same session, which discloses memberDid to the witness.",
|
|
159
|
+
"type": "object",
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"required": [
|
|
162
|
+
"credentialId"
|
|
163
|
+
],
|
|
164
|
+
"properties": {
|
|
165
|
+
"credentialId": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"minLength": 1,
|
|
168
|
+
"maxLength": 256,
|
|
169
|
+
"description": "The credential-vault handle of the membership credential."
|
|
170
|
+
},
|
|
171
|
+
"memberDid": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"pattern": "^did:",
|
|
174
|
+
"description": "The member DID the membership credential names, when it is not relationshipDid. The VTA must hold a key of it in a context the caller may act in. Naming it is the caller's explicit choice to disclose it to the witness."
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"Response": {
|
|
179
|
+
"$anchor": "response",
|
|
180
|
+
"title": "VTA Witness — Open — response payload",
|
|
181
|
+
"description": "The session id and the witness/session document to send.",
|
|
182
|
+
"type": "object",
|
|
183
|
+
"additionalProperties": false,
|
|
184
|
+
"required": [
|
|
185
|
+
"sessionId",
|
|
186
|
+
"document",
|
|
187
|
+
"expiresAt"
|
|
188
|
+
],
|
|
189
|
+
"properties": {
|
|
190
|
+
"sessionId": {
|
|
191
|
+
"$ref": "#/$defs/SessionId"
|
|
192
|
+
},
|
|
193
|
+
"document": {
|
|
194
|
+
"$ref": "#/$defs/CarriedDocument",
|
|
195
|
+
"description": "The witness/session/0.2 document, issued and signed by relationshipDid and addressed to the witness, for the client to send from relationshipDid unaltered. Its id is sessionId."
|
|
196
|
+
},
|
|
197
|
+
"expiresAt": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"format": "date-time",
|
|
200
|
+
"description": "When the VTA's record of the session expires. The client must hand back the witness's answers before then."
|
|
201
|
+
},
|
|
202
|
+
"ext": {
|
|
203
|
+
"$ref": "#/$defs/Ext"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"Ext": {
|
|
208
|
+
"title": "Ext",
|
|
209
|
+
"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.",
|
|
210
|
+
"type": "object",
|
|
211
|
+
"minProperties": 1,
|
|
212
|
+
"additionalProperties": true,
|
|
213
|
+
"propertyNames": {
|
|
214
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"CarriedDocument": {
|
|
218
|
+
"title": "CarriedDocument",
|
|
219
|
+
"description": "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried between the VTA and the witness by the client: one the VTA built and signed for the client to send, or one the witness returned for the client to hand back. Typed as an open object so every member survives a round trip: carried exactly as built or received, never re-serialised, because its proof is over itself. Its envelope is checked by the VTA against the session record (CONVENTIONS.md §3), not by this schema.",
|
|
220
|
+
"type": "object",
|
|
221
|
+
"minProperties": 1
|
|
222
|
+
},
|
|
223
|
+
"SessionId": {
|
|
224
|
+
"title": "SessionId",
|
|
225
|
+
"description": "The id of the witness/session document the VTA built in vta/witness/open: the session's name, the thread every document of the session is on, and the value the VWC carries as taskContext. The VTA keys its state for the session by it.",
|
|
226
|
+
"type": "string",
|
|
227
|
+
"minLength": 1,
|
|
228
|
+
"maxLength": 256
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
234
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
235
|
+
* per-specification and cannot be derived from the document alone, and
|
|
236
|
+
* item 2 needs the schema this carries.
|
|
237
|
+
*/
|
|
238
|
+
export const SPEC = {
|
|
239
|
+
typeUri: TYPE_URI,
|
|
240
|
+
isBearer: false,
|
|
241
|
+
isProofRequired: true,
|
|
242
|
+
isRecipientRequired: true,
|
|
243
|
+
isIssuedAtRequired: true,
|
|
244
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
248
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
249
|
+
* parties (§7.3 item 5).
|
|
250
|
+
*/
|
|
251
|
+
export const RESPONSE_SPEC = {
|
|
252
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
253
|
+
isBearer: false,
|
|
254
|
+
isProofRequired: false,
|
|
255
|
+
isRecipientRequired: true,
|
|
256
|
+
isIssuedAtRequired: true,
|
|
257
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/witness/open/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoEH,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,8BAA8B;IACvC,aAAa,EAAE,gSAAgS;IAC/S,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;QACT,iBAAiB;QACjB,iBAAiB;QACjB,sBAAsB;QACtB,0BAA0B;KAC3B;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,OAAO;YAClB,aAAa,EAAE,kQAAkQ;SAClR;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,OAAO;YAClB,aAAa,EAAE,yOAAyO;SACzP;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,OAAO;YAClB,aAAa,EAAE,4JAA4J;SAC5K;QACD,sBAAsB,EAAE;YACtB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,0KAA0K;SAC1L;QACD,0BAA0B,EAAE;YAC1B,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,WAA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Aa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/witness/present/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { CarriedDocument, Ext, SessionId } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* A client hands its VTA the witness's answer to the session it opened; the VTA verifies that the answer is the witness's own, builds the presentations bound to its challenge and domain, and returns the witness/session/submit document, signed as the relationship DID, for the client to send.
|
|
8
|
+
*/
|
|
9
|
+
export interface VTAWitnessPresentPayload {
|
|
10
|
+
sessionId: SessionId;
|
|
11
|
+
/**
|
|
12
|
+
* The witness/session/0.2 #response the witness returned, exactly as received, under the witness's proof.
|
|
13
|
+
*/
|
|
14
|
+
response: CarriedDocument;
|
|
15
|
+
ext?: Ext;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The witness/session/submit document to send.
|
|
19
|
+
*/
|
|
20
|
+
export interface VTAWitnessPresentResponsePayload {
|
|
21
|
+
sessionId: SessionId;
|
|
22
|
+
/**
|
|
23
|
+
* The witness/session/submit/0.2 document, on the session's thread, issued and signed by relationshipDid and addressed to the witness, carrying the relationship presentation in `vp` and, under the member link, the member presentation in `memberPresentation`. For the client to send from relationshipDid unaltered.
|
|
24
|
+
*/
|
|
25
|
+
document: CarriedDocument;
|
|
26
|
+
ext?: Ext;
|
|
27
|
+
}
|
|
28
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
29
|
+
export type { CarriedDocument, Ext, SessionId };
|
|
30
|
+
/** Trust Task type URI. */
|
|
31
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/witness/present/0.2";
|
|
32
|
+
/** Stable alias for this specification's request payload shape. */
|
|
33
|
+
export type Payload = VTAWitnessPresentPayload;
|
|
34
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
35
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/witness/present/0.2#response";
|
|
36
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
37
|
+
export type Response = VTAWitnessPresentResponsePayload;
|
|
38
|
+
/**
|
|
39
|
+
* This specification's payload schema, as a value.
|
|
40
|
+
*
|
|
41
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
42
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
43
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
44
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
45
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
46
|
+
*/
|
|
47
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
48
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
49
|
+
readonly $id: "https://trusttasks.org/spec/vta/witness/present/0.2";
|
|
50
|
+
readonly title: "VTA Witness — Present — payload";
|
|
51
|
+
readonly description: "A client hands its VTA the witness's answer to the session it opened; the VTA verifies that the answer is the witness's own, builds the presentations bound to its challenge and domain, and returns the witness/session/submit document, signed as the relationship DID, for the client to send.";
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly additionalProperties: false;
|
|
54
|
+
readonly required: readonly ["sessionId", "response"];
|
|
55
|
+
readonly properties: {
|
|
56
|
+
readonly sessionId: {
|
|
57
|
+
readonly $ref: "#/$defs/SessionId";
|
|
58
|
+
};
|
|
59
|
+
readonly response: {
|
|
60
|
+
readonly $ref: "#/$defs/CarriedDocument";
|
|
61
|
+
readonly description: "The witness/session/0.2 #response the witness returned, exactly as received, under the witness's proof.";
|
|
62
|
+
};
|
|
63
|
+
readonly ext: {
|
|
64
|
+
readonly $ref: "#/$defs/Ext";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly $defs: {
|
|
68
|
+
readonly Response: {
|
|
69
|
+
readonly $anchor: "response";
|
|
70
|
+
readonly title: "VTA Witness — Present — response payload";
|
|
71
|
+
readonly description: "The witness/session/submit document to send.";
|
|
72
|
+
readonly type: "object";
|
|
73
|
+
readonly additionalProperties: false;
|
|
74
|
+
readonly required: readonly ["sessionId", "document"];
|
|
75
|
+
readonly properties: {
|
|
76
|
+
readonly sessionId: {
|
|
77
|
+
readonly $ref: "#/$defs/SessionId";
|
|
78
|
+
};
|
|
79
|
+
readonly document: {
|
|
80
|
+
readonly $ref: "#/$defs/CarriedDocument";
|
|
81
|
+
readonly description: "The witness/session/submit/0.2 document, on the session's thread, issued and signed by relationshipDid and addressed to the witness, carrying the relationship presentation in `vp` and, under the member link, the member presentation in `memberPresentation`. For the client to send from relationshipDid unaltered.";
|
|
82
|
+
};
|
|
83
|
+
readonly ext: {
|
|
84
|
+
readonly $ref: "#/$defs/Ext";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly Ext: {
|
|
89
|
+
readonly title: "Ext";
|
|
90
|
+
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.";
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly minProperties: 1;
|
|
93
|
+
readonly additionalProperties: true;
|
|
94
|
+
readonly propertyNames: {
|
|
95
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly CarriedDocument: {
|
|
99
|
+
readonly title: "CarriedDocument";
|
|
100
|
+
readonly description: "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried between the VTA and the witness by the client: one the VTA built and signed for the client to send, or one the witness returned for the client to hand back. Typed as an open object so every member survives a round trip: carried exactly as built or received, never re-serialised, because its proof is over itself. Its envelope is checked by the VTA against the session record (CONVENTIONS.md §3), not by this schema.";
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly minProperties: 1;
|
|
103
|
+
};
|
|
104
|
+
readonly SessionId: {
|
|
105
|
+
readonly title: "SessionId";
|
|
106
|
+
readonly description: "The id of the witness/session document the VTA built in vta/witness/open: the session's name, the thread every document of the session is on, and the value the VWC carries as taskContext. The VTA keys its state for the session by it.";
|
|
107
|
+
readonly type: "string";
|
|
108
|
+
readonly minLength: 1;
|
|
109
|
+
readonly maxLength: 256;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
114
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
115
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
116
|
+
readonly $ref: "#/$defs/Response";
|
|
117
|
+
readonly $defs: {
|
|
118
|
+
readonly Response: {
|
|
119
|
+
readonly $anchor: "response";
|
|
120
|
+
readonly title: "VTA Witness — Present — response payload";
|
|
121
|
+
readonly description: "The witness/session/submit document to send.";
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly additionalProperties: false;
|
|
124
|
+
readonly required: readonly ["sessionId", "document"];
|
|
125
|
+
readonly properties: {
|
|
126
|
+
readonly sessionId: {
|
|
127
|
+
readonly $ref: "#/$defs/SessionId";
|
|
128
|
+
};
|
|
129
|
+
readonly document: {
|
|
130
|
+
readonly $ref: "#/$defs/CarriedDocument";
|
|
131
|
+
readonly description: "The witness/session/submit/0.2 document, on the session's thread, issued and signed by relationshipDid and addressed to the witness, carrying the relationship presentation in `vp` and, under the member link, the member presentation in `memberPresentation`. For the client to send from relationshipDid unaltered.";
|
|
132
|
+
};
|
|
133
|
+
readonly ext: {
|
|
134
|
+
readonly $ref: "#/$defs/Ext";
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
readonly Ext: {
|
|
139
|
+
readonly title: "Ext";
|
|
140
|
+
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.";
|
|
141
|
+
readonly type: "object";
|
|
142
|
+
readonly minProperties: 1;
|
|
143
|
+
readonly additionalProperties: true;
|
|
144
|
+
readonly propertyNames: {
|
|
145
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
readonly CarriedDocument: {
|
|
149
|
+
readonly title: "CarriedDocument";
|
|
150
|
+
readonly description: "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried between the VTA and the witness by the client: one the VTA built and signed for the client to send, or one the witness returned for the client to hand back. Typed as an open object so every member survives a round trip: carried exactly as built or received, never re-serialised, because its proof is over itself. Its envelope is checked by the VTA against the session record (CONVENTIONS.md §3), not by this schema.";
|
|
151
|
+
readonly type: "object";
|
|
152
|
+
readonly minProperties: 1;
|
|
153
|
+
};
|
|
154
|
+
readonly SessionId: {
|
|
155
|
+
readonly title: "SessionId";
|
|
156
|
+
readonly description: "The id of the witness/session document the VTA built in vta/witness/open: the session's name, the thread every document of the session is on, and the value the VWC carries as taskContext. The VTA keys its state for the session by it.";
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
readonly minLength: 1;
|
|
159
|
+
readonly maxLength: 256;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
165
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
166
|
+
* per-specification and cannot be derived from the document alone, and
|
|
167
|
+
* item 2 needs the schema this carries.
|
|
168
|
+
*/
|
|
169
|
+
export declare const SPEC: {
|
|
170
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/witness/present/0.2";
|
|
171
|
+
readonly isBearer: false;
|
|
172
|
+
readonly isProofRequired: true;
|
|
173
|
+
readonly isRecipientRequired: true;
|
|
174
|
+
readonly isIssuedAtRequired: true;
|
|
175
|
+
readonly payloadSchema: {
|
|
176
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
177
|
+
readonly $id: "https://trusttasks.org/spec/vta/witness/present/0.2";
|
|
178
|
+
readonly title: "VTA Witness — Present — payload";
|
|
179
|
+
readonly description: "A client hands its VTA the witness's answer to the session it opened; the VTA verifies that the answer is the witness's own, builds the presentations bound to its challenge and domain, and returns the witness/session/submit document, signed as the relationship DID, for the client to send.";
|
|
180
|
+
readonly type: "object";
|
|
181
|
+
readonly additionalProperties: false;
|
|
182
|
+
readonly required: readonly ["sessionId", "response"];
|
|
183
|
+
readonly properties: {
|
|
184
|
+
readonly sessionId: {
|
|
185
|
+
readonly $ref: "#/$defs/SessionId";
|
|
186
|
+
};
|
|
187
|
+
readonly response: {
|
|
188
|
+
readonly $ref: "#/$defs/CarriedDocument";
|
|
189
|
+
readonly description: "The witness/session/0.2 #response the witness returned, exactly as received, under the witness's proof.";
|
|
190
|
+
};
|
|
191
|
+
readonly ext: {
|
|
192
|
+
readonly $ref: "#/$defs/Ext";
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
readonly $defs: {
|
|
196
|
+
readonly Response: {
|
|
197
|
+
readonly $anchor: "response";
|
|
198
|
+
readonly title: "VTA Witness — Present — response payload";
|
|
199
|
+
readonly description: "The witness/session/submit document to send.";
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
readonly additionalProperties: false;
|
|
202
|
+
readonly required: readonly ["sessionId", "document"];
|
|
203
|
+
readonly properties: {
|
|
204
|
+
readonly sessionId: {
|
|
205
|
+
readonly $ref: "#/$defs/SessionId";
|
|
206
|
+
};
|
|
207
|
+
readonly document: {
|
|
208
|
+
readonly $ref: "#/$defs/CarriedDocument";
|
|
209
|
+
readonly description: "The witness/session/submit/0.2 document, on the session's thread, issued and signed by relationshipDid and addressed to the witness, carrying the relationship presentation in `vp` and, under the member link, the member presentation in `memberPresentation`. For the client to send from relationshipDid unaltered.";
|
|
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
|
+
readonly CarriedDocument: {
|
|
227
|
+
readonly title: "CarriedDocument";
|
|
228
|
+
readonly description: "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried between the VTA and the witness by the client: one the VTA built and signed for the client to send, or one the witness returned for the client to hand back. Typed as an open object so every member survives a round trip: carried exactly as built or received, never re-serialised, because its proof is over itself. Its envelope is checked by the VTA against the session record (CONVENTIONS.md §3), not by this schema.";
|
|
229
|
+
readonly type: "object";
|
|
230
|
+
readonly minProperties: 1;
|
|
231
|
+
};
|
|
232
|
+
readonly SessionId: {
|
|
233
|
+
readonly title: "SessionId";
|
|
234
|
+
readonly description: "The id of the witness/session document the VTA built in vta/witness/open: the session's name, the thread every document of the session is on, and the value the VWC carries as taskContext. The VTA keys its state for the session by it.";
|
|
235
|
+
readonly type: "string";
|
|
236
|
+
readonly minLength: 1;
|
|
237
|
+
readonly maxLength: 256;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
244
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
245
|
+
* parties (§7.3 item 5).
|
|
246
|
+
*/
|
|
247
|
+
export declare const RESPONSE_SPEC: {
|
|
248
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/witness/present/0.2#response";
|
|
249
|
+
readonly isBearer: false;
|
|
250
|
+
readonly isProofRequired: false;
|
|
251
|
+
readonly isRecipientRequired: true;
|
|
252
|
+
readonly isIssuedAtRequired: true;
|
|
253
|
+
readonly payloadSchema: {
|
|
254
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
255
|
+
readonly $ref: "#/$defs/Response";
|
|
256
|
+
readonly $defs: {
|
|
257
|
+
readonly Response: {
|
|
258
|
+
readonly $anchor: "response";
|
|
259
|
+
readonly title: "VTA Witness — Present — response payload";
|
|
260
|
+
readonly description: "The witness/session/submit document to send.";
|
|
261
|
+
readonly type: "object";
|
|
262
|
+
readonly additionalProperties: false;
|
|
263
|
+
readonly required: readonly ["sessionId", "document"];
|
|
264
|
+
readonly properties: {
|
|
265
|
+
readonly sessionId: {
|
|
266
|
+
readonly $ref: "#/$defs/SessionId";
|
|
267
|
+
};
|
|
268
|
+
readonly document: {
|
|
269
|
+
readonly $ref: "#/$defs/CarriedDocument";
|
|
270
|
+
readonly description: "The witness/session/submit/0.2 document, on the session's thread, issued and signed by relationshipDid and addressed to the witness, carrying the relationship presentation in `vp` and, under the member link, the member presentation in `memberPresentation`. For the client to send from relationshipDid unaltered.";
|
|
271
|
+
};
|
|
272
|
+
readonly ext: {
|
|
273
|
+
readonly $ref: "#/$defs/Ext";
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly Ext: {
|
|
278
|
+
readonly title: "Ext";
|
|
279
|
+
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.";
|
|
280
|
+
readonly type: "object";
|
|
281
|
+
readonly minProperties: 1;
|
|
282
|
+
readonly additionalProperties: true;
|
|
283
|
+
readonly propertyNames: {
|
|
284
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly CarriedDocument: {
|
|
288
|
+
readonly title: "CarriedDocument";
|
|
289
|
+
readonly description: "A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried between the VTA and the witness by the client: one the VTA built and signed for the client to send, or one the witness returned for the client to hand back. Typed as an open object so every member survives a round trip: carried exactly as built or received, never re-serialised, because its proof is over itself. Its envelope is checked by the VTA against the session record (CONVENTIONS.md §3), not by this schema.";
|
|
290
|
+
readonly type: "object";
|
|
291
|
+
readonly minProperties: 1;
|
|
292
|
+
};
|
|
293
|
+
readonly SessionId: {
|
|
294
|
+
readonly title: "SessionId";
|
|
295
|
+
readonly description: "The id of the witness/session document the VTA built in vta/witness/open: the session's name, the thread every document of the session is on, and the value the VWC carries as taskContext. The VTA keys its state for the session by it.";
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly minLength: 1;
|
|
298
|
+
readonly maxLength: 256;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/witness/present/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAGzF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,SAAS,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,eAAe,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;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