@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,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/witness/session/submit/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/witness/session/submit/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/witness/session/submit/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/witness/session/submit/0.2",
|
|
21
|
+
"title": "Witness Session Submit — payload",
|
|
22
|
+
"description": "A participating party submits its presentation — and, optionally, a member presentation by its member DID — bound to its session challenge; the witness's mandatory response delivers the Verifiable Witness Credential and its digest. The response is the outcome evidence a VWC presentation must ship.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"vp"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"vp": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"description": "A W3C Verifiable Presentation of the submitting party's own relationship credential material (opaque here), bound to the session's challenge and domain. A presentation not bound to this session is rejected with witness/session/submit:challengeMismatch."
|
|
32
|
+
},
|
|
33
|
+
"memberPresentation": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"description": "OPTIONAL. A W3C Verifiable Presentation (opaque here) whose holder is the member DID — neither of the session's parties, and not the witness — under a proof by that DID for authentication covering the session's challenge and domain, as vp's does, and carrying the credentials that show the member eligible under the witness's policy, typically a membership credential naming the member DID. It links the pairwise relationship DID to the member DID at the witness, which must keep neither it nor the member DID. A witness that relies on it and finds it failing any check answers witness/session/submit:presentationInvalid."
|
|
36
|
+
},
|
|
37
|
+
"ext": {
|
|
38
|
+
"$ref": "#/$defs/Ext"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"$defs": {
|
|
42
|
+
"Response": {
|
|
43
|
+
"$anchor": "response",
|
|
44
|
+
"title": "Witness Session Submit — response payload",
|
|
45
|
+
"description": "The Verifiable Witness Credential and its digest, delivered under the REQUIRED proof. This document is the session's terminal success form and the outcome evidence a VWC presentation must ship.",
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": [
|
|
49
|
+
"vwc",
|
|
50
|
+
"vwcDigestMultibase"
|
|
51
|
+
],
|
|
52
|
+
"properties": {
|
|
53
|
+
"vwc": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"description": "A signed Verifiable Witness Credential: a DTG Verifiable Statement Credential (`type` including `StatementCredential`) under the predicate `https://registry.trustoverip.org/dtg/vsc/witnessed/1` (opaque here; its schema belongs to the DTG Credentials Core Specification). Its issuer is the witness, with `issuerScope` `directed` or `public`; its `credentialSubject.id` is the submitting party, the issuer of the relationship credential the witness observed; and its `credentialSubject.object.digestMultibase` is that credential's digest. Its taskContext MUST equal the id of the witness/session document that opened this session — the innermost exchange that attests the witnessing (SPEC.md §4.9.1) — and its taskDigestMultibase MUST be that document's task digest (SPEC.md §4.9.3). The id locates the session document; the digest binds it, because an id is a name anyone can reuse on a counterfeit."
|
|
56
|
+
},
|
|
57
|
+
"vwcDigestMultibase": {
|
|
58
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
59
|
+
"description": "Digest over the RFC 8785 canonicalization of the delivered credential, computed by the witness. It binds this evidence to one specific credential rather than to the session alone, so a verifier pairing a presented VWC with this response can check it is the credential this session issued and not another the same witness signed. This covers the credential whole, proof included — unlike the task digest of SPEC.md §4.9.3, which excludes the top-level proof of the Trust Task document it names. The inputs differ because the questions do: this value identifies one delivered artifact, a task digest identifies what a document says whether or not it was signed."
|
|
60
|
+
},
|
|
61
|
+
"ext": {
|
|
62
|
+
"$ref": "#/$defs/Ext"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"Ext": {
|
|
67
|
+
"title": "Ext",
|
|
68
|
+
"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.",
|
|
69
|
+
"type": "object",
|
|
70
|
+
"minProperties": 1,
|
|
71
|
+
"additionalProperties": true,
|
|
72
|
+
"propertyNames": {
|
|
73
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"DigestMultibase": {
|
|
77
|
+
"title": "DigestMultibase",
|
|
78
|
+
"description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 16,
|
|
81
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
82
|
+
"examples": [
|
|
83
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
89
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
90
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
91
|
+
"$ref": "#/$defs/Response",
|
|
92
|
+
"$defs": {
|
|
93
|
+
"Response": {
|
|
94
|
+
"$anchor": "response",
|
|
95
|
+
"title": "Witness Session Submit — response payload",
|
|
96
|
+
"description": "The Verifiable Witness Credential and its digest, delivered under the REQUIRED proof. This document is the session's terminal success form and the outcome evidence a VWC presentation must ship.",
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": [
|
|
100
|
+
"vwc",
|
|
101
|
+
"vwcDigestMultibase"
|
|
102
|
+
],
|
|
103
|
+
"properties": {
|
|
104
|
+
"vwc": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"description": "A signed Verifiable Witness Credential: a DTG Verifiable Statement Credential (`type` including `StatementCredential`) under the predicate `https://registry.trustoverip.org/dtg/vsc/witnessed/1` (opaque here; its schema belongs to the DTG Credentials Core Specification). Its issuer is the witness, with `issuerScope` `directed` or `public`; its `credentialSubject.id` is the submitting party, the issuer of the relationship credential the witness observed; and its `credentialSubject.object.digestMultibase` is that credential's digest. Its taskContext MUST equal the id of the witness/session document that opened this session — the innermost exchange that attests the witnessing (SPEC.md §4.9.1) — and its taskDigestMultibase MUST be that document's task digest (SPEC.md §4.9.3). The id locates the session document; the digest binds it, because an id is a name anyone can reuse on a counterfeit."
|
|
107
|
+
},
|
|
108
|
+
"vwcDigestMultibase": {
|
|
109
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
110
|
+
"description": "Digest over the RFC 8785 canonicalization of the delivered credential, computed by the witness. It binds this evidence to one specific credential rather than to the session alone, so a verifier pairing a presented VWC with this response can check it is the credential this session issued and not another the same witness signed. This covers the credential whole, proof included — unlike the task digest of SPEC.md §4.9.3, which excludes the top-level proof of the Trust Task document it names. The inputs differ because the questions do: this value identifies one delivered artifact, a task digest identifies what a document says whether or not it was signed."
|
|
111
|
+
},
|
|
112
|
+
"ext": {
|
|
113
|
+
"$ref": "#/$defs/Ext"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"Ext": {
|
|
118
|
+
"title": "Ext",
|
|
119
|
+
"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.",
|
|
120
|
+
"type": "object",
|
|
121
|
+
"minProperties": 1,
|
|
122
|
+
"additionalProperties": true,
|
|
123
|
+
"propertyNames": {
|
|
124
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"DigestMultibase": {
|
|
128
|
+
"title": "DigestMultibase",
|
|
129
|
+
"description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
|
|
130
|
+
"type": "string",
|
|
131
|
+
"minLength": 16,
|
|
132
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
133
|
+
"examples": [
|
|
134
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
141
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
142
|
+
* per-specification and cannot be derived from the document alone, and
|
|
143
|
+
* item 2 needs the schema this carries.
|
|
144
|
+
*/
|
|
145
|
+
export const SPEC = {
|
|
146
|
+
typeUri: TYPE_URI,
|
|
147
|
+
isBearer: false,
|
|
148
|
+
isProofRequired: true,
|
|
149
|
+
isRecipientRequired: true,
|
|
150
|
+
isIssuedAtRequired: true,
|
|
151
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
155
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
156
|
+
* parties (§7.3 item 5).
|
|
157
|
+
*/
|
|
158
|
+
export const RESPONSE_SPEC = {
|
|
159
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
160
|
+
isBearer: false,
|
|
161
|
+
isProofRequired: true,
|
|
162
|
+
isRecipientRequired: true,
|
|
163
|
+
isIssuedAtRequired: true,
|
|
164
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
165
|
+
};
|
|
166
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/witness/session/submit/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAK1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC;AAK5G;;;;;;;;GAQ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,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -5812,6 +5812,10 @@ export interface EpochLink {
|
|
|
5812
5812
|
*/
|
|
5813
5813
|
nonce: string;
|
|
5814
5814
|
}
|
|
5815
|
+
/**
|
|
5816
|
+
* A whole Trust Task document — `id`, `type`, `payload` and every other member, `proof` included — carried exactly as it was sent or received, never re-serialised: a task digest and a proof are taken over its members, and a re-serialised copy reproduces neither reliably. Typed as an open object so every member survives; the checks that give it meaning belong to the task that reads it.
|
|
5817
|
+
*/
|
|
5818
|
+
export interface EvidenceDocument {}
|
|
5815
5819
|
/**
|
|
5816
5820
|
* The authoritative SPEC §7.3 item 14 exposure class of the pending task, derived by the executor from the compiled handler it is about to invoke — never from the registry's declared value.
|
|
5817
5821
|
*/
|
|
@@ -6921,6 +6925,19 @@ export interface OfferCredentials {
|
|
|
6921
6925
|
*/
|
|
6922
6926
|
authority: string;
|
|
6923
6927
|
}
|
|
6928
|
+
/**
|
|
6929
|
+
* One witnessing session's outcome evidence. `session` is the initiating witness/session document; `outcome` is the terminal witness/session/submit #response that the initiating document's own specification declares as its outcome evidence, under the witness's proof, delivering the VWC and its vwcDigestMultibase. A consumer pairs them with a presented VWC by SPEC §4.9.4's four checks and the witnessing checks of witness/session/submit (This response is the outcome evidence).
|
|
6930
|
+
*/
|
|
6931
|
+
export interface OutcomeEvidence {
|
|
6932
|
+
/**
|
|
6933
|
+
* The witness/session document that opened the session. The VWC's taskContext is its id and its taskDigestMultibase is computed over it (SPEC §4.9.3).
|
|
6934
|
+
*/
|
|
6935
|
+
session: EvidenceDocument;
|
|
6936
|
+
/**
|
|
6937
|
+
* The witness/session/submit #response that closed the session, under the witness's proof. It carries the VWC and its vwcDigestMultibase.
|
|
6938
|
+
*/
|
|
6939
|
+
outcome: EvidenceDocument;
|
|
6940
|
+
}
|
|
6924
6941
|
/**
|
|
6925
6942
|
* How the uploader will cut a blob for direct transfer, committed before any byte moves: one storage object, written in `partCount` parts of `partSize` bytes (the last may be shorter), each with its digest. Independent of the chunk manifest, because storage imposes part sizes a chunk document cannot carry; the chunk manifest still describes the blob and readers still check it.
|
|
6926
6943
|
*
|
package/src/index.ts
CHANGED
|
@@ -445,14 +445,18 @@ export * as RoomsEpochMint_v0_1 from "./rooms/epoch/mint/0.1/payload.js";
|
|
|
445
445
|
export * as RoomsEpochPrune_v0_1 from "./rooms/epoch/prune/0.1/payload.js";
|
|
446
446
|
export * as RoomsInfo_v0_1 from "./rooms/info/0.1/payload.js";
|
|
447
447
|
export * as RoomsKeysAct_v0_1 from "./rooms/keys/act/0.1/payload.js";
|
|
448
|
+
export * as RoomsKeysAct_v0_2 from "./rooms/keys/act/0.2/payload.js";
|
|
449
|
+
export * as RoomsKeysAct_v0_3 from "./rooms/keys/act/0.3/payload.js";
|
|
448
450
|
export * as RoomsKeysBackfill_v0_1 from "./rooms/keys/backfill/0.1/payload.js";
|
|
449
451
|
export * as RoomsKeysBrowse_v0_1 from "./rooms/keys/browse/0.1/payload.js";
|
|
450
452
|
export * as RoomsKeysChain_v0_1 from "./rooms/keys/chain/0.1/payload.js";
|
|
451
453
|
export * as RoomsKeysCommit_v0_1 from "./rooms/keys/commit/0.1/payload.js";
|
|
452
454
|
export * as RoomsKeysFileKey_v0_1 from "./rooms/keys/file-key/0.1/payload.js";
|
|
455
|
+
export * as RoomsKeysFileKey_v0_2 from "./rooms/keys/file-key/0.2/payload.js";
|
|
453
456
|
export * as RoomsKeysKeyPackage_v0_1 from "./rooms/keys/key-package/0.1/payload.js";
|
|
454
457
|
export * as RoomsKeysList_v0_1 from "./rooms/keys/list/0.1/payload.js";
|
|
455
458
|
export * as RoomsKeysOpen_v0_1 from "./rooms/keys/open/0.1/payload.js";
|
|
459
|
+
export * as RoomsKeysOpen_v0_2 from "./rooms/keys/open/0.2/payload.js";
|
|
456
460
|
export * as RoomsKeysPresent_v0_1 from "./rooms/keys/present/0.1/payload.js";
|
|
457
461
|
export * as RoomsKeysPresent_v0_2 from "./rooms/keys/present/0.2/payload.js";
|
|
458
462
|
export * as RoomsKeysRead_v0_1 from "./rooms/keys/read/0.1/payload.js";
|
|
@@ -462,6 +466,7 @@ export * as RoomsKeysWelcome_v0_1 from "./rooms/keys/welcome/0.1/payload.js";
|
|
|
462
466
|
export * as RoomsOwnerAnchor_v0_1 from "./rooms/owner/anchor/0.1/payload.js";
|
|
463
467
|
export * as RoomsOwnerClaim_v0_1 from "./rooms/owner/claim/0.1/payload.js";
|
|
464
468
|
export * as RoomsOwnerGroupAdd_v0_1 from "./rooms/owner/group/add/0.1/payload.js";
|
|
469
|
+
export * as RoomsOwnerGroupAdd_v0_2 from "./rooms/owner/group/add/0.2/payload.js";
|
|
465
470
|
export * as RoomsOwnerGroupCreate_v0_1 from "./rooms/owner/group/create/0.1/payload.js";
|
|
466
471
|
export * as RoomsOwnerGroupRemove_v0_1 from "./rooms/owner/group/remove/0.1/payload.js";
|
|
467
472
|
export * as RoomsOwnerGroupRenew_v0_1 from "./rooms/owner/group/renew/0.1/payload.js";
|
|
@@ -564,6 +569,7 @@ export * as DidTemplateShared_v0_2 from "./vta/_shared/0.2/did-template.js";
|
|
|
564
569
|
export * as DidKeyRolesShared_v0_3 from "./vta/_shared/0.3/did-key-roles.js";
|
|
565
570
|
export * as PcsEngineShared_v0_4 from "./vta/_shared/0.4/pcs-engine.js";
|
|
566
571
|
export * as WitnessPartyShared_v0_5 from "./vta/_shared/0.5/witness-party.js";
|
|
572
|
+
export * as WitnessPartyShared_v0_6 from "./vta/_shared/0.6/witness-party.js";
|
|
567
573
|
export * as VtaAppStateDelete_v1_0 from "./vta/app-state/delete/1.0/payload.js";
|
|
568
574
|
export * as VtaAppStateGetMany_v1_0 from "./vta/app-state/get-many/1.0/payload.js";
|
|
569
575
|
export * as VtaAppStateGet_v1_0 from "./vta/app-state/get/1.0/payload.js";
|
|
@@ -682,8 +688,11 @@ export * as VtaWebvhServersRegister_v1_0 from "./vta/webvh/servers/register/1.0/
|
|
|
682
688
|
export * as VtaWebvhServersRemove_v1_0 from "./vta/webvh/servers/remove/1.0/payload.js";
|
|
683
689
|
export * as VtaWebvhServersRetireOrphan_v0_1 from "./vta/webvh/servers/retire-orphan/0.1/payload.js";
|
|
684
690
|
export * as VtaWitnessAccept_v0_1 from "./vta/witness/accept/0.1/payload.js";
|
|
691
|
+
export * as VtaWitnessAccept_v0_2 from "./vta/witness/accept/0.2/payload.js";
|
|
685
692
|
export * as VtaWitnessOpen_v0_1 from "./vta/witness/open/0.1/payload.js";
|
|
693
|
+
export * as VtaWitnessOpen_v0_2 from "./vta/witness/open/0.2/payload.js";
|
|
686
694
|
export * as VtaWitnessPresent_v0_1 from "./vta/witness/present/0.1/payload.js";
|
|
695
|
+
export * as VtaWitnessPresent_v0_2 from "./vta/witness/present/0.2/payload.js";
|
|
687
696
|
export * as VtaWitnessRequest_v0_1 from "./vta/witness/request/0.1/payload.js";
|
|
688
697
|
export * as AdmissionShared_v0_1 from "./vtc/_shared/0.1/admission.js";
|
|
689
698
|
export * as BackupShared_v0_1 from "./vtc/_shared/0.1/backup.js";
|
|
@@ -789,9 +798,11 @@ export * as VtcMembersCredentials_v0_1 from "./vtc/members/credentials/0.1/paylo
|
|
|
789
798
|
export * as VtcMembersList_v0_1 from "./vtc/members/list/0.1/payload.js";
|
|
790
799
|
export * as VtcMembersMakeMembership_v0_1 from "./vtc/members/make-membership/0.1/payload.js";
|
|
791
800
|
export * as VtcMembersPersonhoodAssert_v0_1 from "./vtc/members/personhood/assert/0.1/payload.js";
|
|
801
|
+
export * as VtcMembersPersonhoodAssert_v0_2 from "./vtc/members/personhood/assert/0.2/payload.js";
|
|
792
802
|
export * as VtcMembersPersonhoodChallenge_v0_1 from "./vtc/members/personhood/challenge/0.1/payload.js";
|
|
793
803
|
export * as VtcMembersPersonhoodRevoke_v0_1 from "./vtc/members/personhood/revoke/0.1/payload.js";
|
|
794
804
|
export * as VtcMembersPurge_v0_1 from "./vtc/members/purge/0.1/payload.js";
|
|
805
|
+
export * as VtcMembersRegistryConsent_v0_1 from "./vtc/members/registry-consent/0.1/payload.js";
|
|
795
806
|
export * as VtcMembersRemovalNotice_v0_1 from "./vtc/members/removal-notice/0.1/payload.js";
|
|
796
807
|
export * as VtcMembersRemoved_v0_1 from "./vtc/members/removed/0.1/payload.js";
|
|
797
808
|
export * as VtcMembersRenew_v0_1 from "./vtc/members/renew/0.1/payload.js";
|
|
@@ -903,5 +914,8 @@ export * as WebvhWitnessKeyDelete_v0_1 from "./webvh/witness/key/delete/0.1/payl
|
|
|
903
914
|
export * as WebvhWitnessKeyList_v0_1 from "./webvh/witness/key/list/0.1/payload.js";
|
|
904
915
|
export * as WebvhWitnessPublish_v0_1 from "./webvh/witness/publish/0.1/payload.js";
|
|
905
916
|
export * as WebvhWitnessSign_v0_1 from "./webvh/witness/sign/0.1/payload.js";
|
|
917
|
+
export * as OutcomeEvidenceShared_v0_1 from "./witness/_shared/0.1/outcome-evidence.js";
|
|
906
918
|
export * as WitnessSession_v0_1 from "./witness/session/0.1/payload.js";
|
|
919
|
+
export * as WitnessSession_v0_2 from "./witness/session/0.2/payload.js";
|
|
907
920
|
export * as WitnessSessionSubmit_v0_1 from "./witness/session/submit/0.1/payload.js";
|
|
921
|
+
export * as WitnessSessionSubmit_v0_2 from "./witness/session/submit/0.2/payload.js";
|