@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,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/members/registry-consent/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/members/registry-consent/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/members/registry-consent/0.1#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/vtc/members/registry-consent/0.1",
|
|
21
|
+
"title": "VTC Members Registry Consent — payload",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"publishConsent"
|
|
26
|
+
],
|
|
27
|
+
"properties": {
|
|
28
|
+
"publishConsent": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"description": "The member's own decision on trust-registry publication: `true` consents to the community publishing their membership in its trust registry, `false` withdraws that consent. Applies to the member who signed the document, and to no one else."
|
|
31
|
+
},
|
|
32
|
+
"ext": {
|
|
33
|
+
"$ref": "#/$defs/Ext"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"$defs": {
|
|
37
|
+
"Response": {
|
|
38
|
+
"$anchor": "response",
|
|
39
|
+
"title": "VTC Members Registry Consent — response payload",
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": [
|
|
43
|
+
"did",
|
|
44
|
+
"publishConsent",
|
|
45
|
+
"changed",
|
|
46
|
+
"registrySync",
|
|
47
|
+
"effectiveAt"
|
|
48
|
+
],
|
|
49
|
+
"properties": {
|
|
50
|
+
"did": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 1,
|
|
53
|
+
"description": "The member whose consent this is: the document's signer."
|
|
54
|
+
},
|
|
55
|
+
"publishConsent": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"description": "The consent now recorded on the member record."
|
|
58
|
+
},
|
|
59
|
+
"changed": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "Whether this document changed the recorded consent. `false` when the member restated the value already recorded."
|
|
62
|
+
},
|
|
63
|
+
"registrySync": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": [
|
|
66
|
+
"queued",
|
|
67
|
+
"notConfigured",
|
|
68
|
+
"unchanged"
|
|
69
|
+
],
|
|
70
|
+
"description": "What the community did about its trust registry. `queued`: a registry sync job carrying the change is queued (publication on a grant, removal on a withdrawal). `notConfigured`: the community publishes to no trust registry at present; the consent is recorded and governs any registry configured later. `unchanged`: nothing to sync, because the consent did not change, or because the community does not publish this member on other grounds (consent permits publication; it does not oblige it)."
|
|
71
|
+
},
|
|
72
|
+
"effectiveAt": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"format": "date-time",
|
|
75
|
+
"description": "When the community recorded the consent now in force — this document's execution when `changed` is `true`, the earlier change otherwise."
|
|
76
|
+
},
|
|
77
|
+
"ext": {
|
|
78
|
+
"$ref": "#/$defs/Ext"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"Ext": {
|
|
83
|
+
"title": "Ext",
|
|
84
|
+
"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.",
|
|
85
|
+
"type": "object",
|
|
86
|
+
"minProperties": 1,
|
|
87
|
+
"additionalProperties": true,
|
|
88
|
+
"propertyNames": {
|
|
89
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
95
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
96
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
97
|
+
"$ref": "#/$defs/Response",
|
|
98
|
+
"$defs": {
|
|
99
|
+
"Response": {
|
|
100
|
+
"$anchor": "response",
|
|
101
|
+
"title": "VTC Members Registry Consent — response payload",
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": [
|
|
105
|
+
"did",
|
|
106
|
+
"publishConsent",
|
|
107
|
+
"changed",
|
|
108
|
+
"registrySync",
|
|
109
|
+
"effectiveAt"
|
|
110
|
+
],
|
|
111
|
+
"properties": {
|
|
112
|
+
"did": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"description": "The member whose consent this is: the document's signer."
|
|
116
|
+
},
|
|
117
|
+
"publishConsent": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"description": "The consent now recorded on the member record."
|
|
120
|
+
},
|
|
121
|
+
"changed": {
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"description": "Whether this document changed the recorded consent. `false` when the member restated the value already recorded."
|
|
124
|
+
},
|
|
125
|
+
"registrySync": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"enum": [
|
|
128
|
+
"queued",
|
|
129
|
+
"notConfigured",
|
|
130
|
+
"unchanged"
|
|
131
|
+
],
|
|
132
|
+
"description": "What the community did about its trust registry. `queued`: a registry sync job carrying the change is queued (publication on a grant, removal on a withdrawal). `notConfigured`: the community publishes to no trust registry at present; the consent is recorded and governs any registry configured later. `unchanged`: nothing to sync, because the consent did not change, or because the community does not publish this member on other grounds (consent permits publication; it does not oblige it)."
|
|
133
|
+
},
|
|
134
|
+
"effectiveAt": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"format": "date-time",
|
|
137
|
+
"description": "When the community recorded the consent now in force — this document's execution when `changed` is `true`, the earlier change otherwise."
|
|
138
|
+
},
|
|
139
|
+
"ext": {
|
|
140
|
+
"$ref": "#/$defs/Ext"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"Ext": {
|
|
145
|
+
"title": "Ext",
|
|
146
|
+
"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.",
|
|
147
|
+
"type": "object",
|
|
148
|
+
"minProperties": 1,
|
|
149
|
+
"additionalProperties": true,
|
|
150
|
+
"propertyNames": {
|
|
151
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
158
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
159
|
+
* per-specification and cannot be derived from the document alone, and
|
|
160
|
+
* item 2 needs the schema this carries.
|
|
161
|
+
*/
|
|
162
|
+
export const SPEC = {
|
|
163
|
+
typeUri: TYPE_URI,
|
|
164
|
+
isBearer: false,
|
|
165
|
+
isProofRequired: true,
|
|
166
|
+
isRecipientRequired: true,
|
|
167
|
+
isIssuedAtRequired: true,
|
|
168
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
172
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
173
|
+
* parties (§7.3 item 5).
|
|
174
|
+
*/
|
|
175
|
+
export const RESPONSE_SPEC = {
|
|
176
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
177
|
+
isBearer: false,
|
|
178
|
+
isProofRequired: true,
|
|
179
|
+
isRecipientRequired: true,
|
|
180
|
+
isIssuedAtRequired: true,
|
|
181
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
182
|
+
};
|
|
183
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/members/registry-consent/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,8DAAuE,CAAC;AAKhG,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG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,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,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"}
|
|
@@ -17,7 +17,7 @@ export interface VTCMembersUpdatePayload {
|
|
|
17
17
|
*/
|
|
18
18
|
label?: string | null;
|
|
19
19
|
/**
|
|
20
|
-
* New directory-publish consent.
|
|
20
|
+
* New directory-publish consent. May only withdraw consent (`true` → `false`) or restate the current value; `true` for a member whose record does not already carry it is refused with `consentGrantForbidden`. Consent is the member's own, given by `registryConsent` on `vtc/join-requests/submit`.
|
|
21
21
|
*/
|
|
22
22
|
publishConsent?: boolean;
|
|
23
23
|
departurePreference?: "purge" | "tombstone" | "historical" | "policydefault";
|
|
@@ -75,7 +75,7 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
75
75
|
};
|
|
76
76
|
readonly publishConsent: {
|
|
77
77
|
readonly type: "boolean";
|
|
78
|
-
readonly description: "New directory-publish consent.";
|
|
78
|
+
readonly description: "New directory-publish consent. May only withdraw consent (`true` → `false`) or restate the current value; `true` for a member whose record does not already carry it is refused with `consentGrantForbidden`. Consent is the member's own, given by `registryConsent` on `vtc/join-requests/submit`.";
|
|
79
79
|
};
|
|
80
80
|
readonly departurePreference: {
|
|
81
81
|
readonly type: "string";
|
|
@@ -338,7 +338,7 @@ export declare const SPEC: {
|
|
|
338
338
|
};
|
|
339
339
|
readonly publishConsent: {
|
|
340
340
|
readonly type: "boolean";
|
|
341
|
-
readonly description: "New directory-publish consent.";
|
|
341
|
+
readonly description: "New directory-publish consent. May only withdraw consent (`true` → `false`) or restate the current value; `true` for a member whose record does not already carry it is refused with `consentGrantForbidden`. Consent is the member's own, given by `registryConsent` on `vtc/join-requests/submit`.";
|
|
342
342
|
};
|
|
343
343
|
readonly departurePreference: {
|
|
344
344
|
readonly type: "string";
|
|
@@ -45,7 +45,7 @@ export const PAYLOAD_SCHEMA = {
|
|
|
45
45
|
},
|
|
46
46
|
"publishConsent": {
|
|
47
47
|
"type": "boolean",
|
|
48
|
-
"description": "New directory-publish consent."
|
|
48
|
+
"description": "New directory-publish consent. May only withdraw consent (`true` → `false`) or restate the current value; `true` for a member whose record does not already carry it is refused with `consentGrantForbidden`. Consent is the member's own, given by `registryConsent` on `vtc/join-requests/submit`."
|
|
49
49
|
},
|
|
50
50
|
"departurePreference": {
|
|
51
51
|
"type": "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/members/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,oDAA6D,CAAC;AAKtF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,6DAAsE,CAAC;AAKxG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,oDAAoD;IAC3D,OAAO,EAAE,8BAA8B;IACvC,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,KAAK;KACN;IACD,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,uBAAuB;SACvC;QACD,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,iHAAiH;SACjI;QACD,OAAO,EAAE;YACP,MAAM,EAAE;gBACN,QAAQ;gBACR,MAAM;aACP;YACD,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,sOAAsO;SACtP;QACD,gBAAgB,EAAE;YAChB,MAAM,EAAE,SAAS;YACjB,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/members/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,oDAA6D,CAAC;AAKtF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,6DAAsE,CAAC;AAKxG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,oDAAoD;IAC3D,OAAO,EAAE,8BAA8B;IACvC,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,KAAK;KACN;IACD,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,uBAAuB;SACvC;QACD,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,iHAAiH;SACjI;QACD,OAAO,EAAE;YACP,MAAM,EAAE;gBACN,QAAQ;gBACR,MAAM;aACP;YACD,WAAW,EAAE,GAAG;YAChB,aAAa,EAAE,sOAAsO;SACtP;QACD,gBAAgB,EAAE;YAChB,MAAM,EAAE,SAAS;YACjB,aAAa,EAAE,sSAAsS;SACtT;QACD,qBAAqB,EAAE;YACrB,MAAM,EAAE,QAAQ;YAChB,MAAM,E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AAY,EAAE;oBACZ,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,6IAA6I;iBAC7J;aACF;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/witness/_shared/0.1/outcome-evidence.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The outcome evidence of one witnessing session (SPEC §4.9.4): the witness/session document that opened it and the witness/session/submit #response that closed it, which together let a party outside the exchange pair a Verifiable Witness Credential with the session it cites. Defined once because more than one task carries it: the VTA that stores a VWC returns it (vta/witness/accept), and a holder presenting a VWC ships it beside the presentation (vtc/members/personhood/assert). Not itself a Trust Task specification: the `_shared` folder is skipped by the registry build and the codegen.
|
|
7
|
+
*/
|
|
8
|
+
export interface WitnessingOutcomeEvidenceSharedDefinitions {
|
|
9
|
+
[k: string]: unknown | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The definitions this shared schema publishes, hoisted to one declaration each.
|
|
13
|
+
* See "../../../_shared/components.js".
|
|
14
|
+
*/
|
|
15
|
+
export type { EvidenceDocument, OutcomeEvidence } from "../../../_shared/components.js";
|
|
16
|
+
//# sourceMappingURL=outcome-evidence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outcome-evidence.d.ts","sourceRoot":"","sources":["../../../../src/witness/_shared/0.1/outcome-evidence.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outcome-evidence.js","sourceRoot":"","sources":["../../../../src/witness/_shared/0.1/outcome-evidence.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/witness/session/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
import type { Ext } from "../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Opens one participating party's witness session as its own exchange, nested in a relationship exchange via parentThreadId. A session is bilateral — a witnessed exchange between two parties runs two sessions with the same witness, each naming the same parties pair. The response issues the session challenge; the request document's id is the value that party's VWC later carries as taskContext.
|
|
8
|
+
*/
|
|
9
|
+
export interface WitnessSessionPayload {
|
|
10
|
+
/**
|
|
11
|
+
* The relationship DIDs of the exchange to be witnessed — the pairwise values the relationship proposal exchanged, in either order.
|
|
12
|
+
*
|
|
13
|
+
* @minItems 2
|
|
14
|
+
* @maxItems 2
|
|
15
|
+
*/
|
|
16
|
+
parties: [string, string];
|
|
17
|
+
ext?: Ext;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The session challenge, issued under the REQUIRED proof. The presentation under witness/session/submit binds to {challenge, domain}. It reaches only the party that opened this session — which is why each party opens its own.
|
|
21
|
+
*/
|
|
22
|
+
export interface WitnessSessionResponsePayload {
|
|
23
|
+
/**
|
|
24
|
+
* A fresh, unpredictable, single-use value this session's presentation binds to. A witness MUST NOT reuse a challenge across sessions — including across the two sessions of one witnessed exchange, where a shared value would let either party's presentation satisfy the other's session.
|
|
25
|
+
*/
|
|
26
|
+
challenge: string;
|
|
27
|
+
/**
|
|
28
|
+
* The domain the presentations bind alongside the challenge, identifying this witness's verification context.
|
|
29
|
+
*/
|
|
30
|
+
domain: string;
|
|
31
|
+
ext?: Ext;
|
|
32
|
+
}
|
|
33
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
34
|
+
export type { Ext };
|
|
35
|
+
/** Trust Task type URI. */
|
|
36
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/witness/session/0.2";
|
|
37
|
+
/** Stable alias for this specification's request payload shape. */
|
|
38
|
+
export type Payload = WitnessSessionPayload;
|
|
39
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
40
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/witness/session/0.2#response";
|
|
41
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
42
|
+
export type Response = WitnessSessionResponsePayload;
|
|
43
|
+
/**
|
|
44
|
+
* This specification's payload schema, as a value.
|
|
45
|
+
*
|
|
46
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
47
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
48
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
49
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
50
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
51
|
+
*/
|
|
52
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
53
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
54
|
+
readonly $id: "https://trusttasks.org/spec/witness/session/0.2";
|
|
55
|
+
readonly title: "Witness Session — payload";
|
|
56
|
+
readonly description: "Opens one participating party's witness session as its own exchange, nested in a relationship exchange via parentThreadId. A session is bilateral — a witnessed exchange between two parties runs two sessions with the same witness, each naming the same parties pair. The response issues the session challenge; the request document's id is the value that party's VWC later carries as taskContext.";
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
readonly additionalProperties: false;
|
|
59
|
+
readonly required: readonly ["parties"];
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly parties: {
|
|
62
|
+
readonly type: "array";
|
|
63
|
+
readonly minItems: 2;
|
|
64
|
+
readonly maxItems: 2;
|
|
65
|
+
readonly items: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly pattern: "^did:";
|
|
68
|
+
};
|
|
69
|
+
readonly description: "The relationship DIDs of the exchange to be witnessed — the pairwise values the relationship proposal exchanged, in either order.";
|
|
70
|
+
};
|
|
71
|
+
readonly ext: {
|
|
72
|
+
readonly $ref: "#/$defs/Ext";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
readonly $defs: {
|
|
76
|
+
readonly Response: {
|
|
77
|
+
readonly $anchor: "response";
|
|
78
|
+
readonly title: "Witness Session — response payload";
|
|
79
|
+
readonly description: "The session challenge, issued under the REQUIRED proof. The presentation under witness/session/submit binds to {challenge, domain}. It reaches only the party that opened this session — which is why each party opens its own.";
|
|
80
|
+
readonly type: "object";
|
|
81
|
+
readonly additionalProperties: false;
|
|
82
|
+
readonly required: readonly ["challenge", "domain"];
|
|
83
|
+
readonly properties: {
|
|
84
|
+
readonly challenge: {
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly minLength: 16;
|
|
87
|
+
readonly description: "A fresh, unpredictable, single-use value this session's presentation binds to. A witness MUST NOT reuse a challenge across sessions — including across the two sessions of one witnessed exchange, where a shared value would let either party's presentation satisfy the other's session.";
|
|
88
|
+
};
|
|
89
|
+
readonly domain: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly minLength: 1;
|
|
92
|
+
readonly description: "The domain the presentations bind alongside the challenge, identifying this witness's verification context.";
|
|
93
|
+
};
|
|
94
|
+
readonly ext: {
|
|
95
|
+
readonly $ref: "#/$defs/Ext";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly Ext: {
|
|
100
|
+
readonly title: "Ext";
|
|
101
|
+
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.";
|
|
102
|
+
readonly type: "object";
|
|
103
|
+
readonly minProperties: 1;
|
|
104
|
+
readonly additionalProperties: true;
|
|
105
|
+
readonly propertyNames: {
|
|
106
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
112
|
+
export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
113
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
114
|
+
readonly $ref: "#/$defs/Response";
|
|
115
|
+
readonly $defs: {
|
|
116
|
+
readonly Response: {
|
|
117
|
+
readonly $anchor: "response";
|
|
118
|
+
readonly title: "Witness Session — response payload";
|
|
119
|
+
readonly description: "The session challenge, issued under the REQUIRED proof. The presentation under witness/session/submit binds to {challenge, domain}. It reaches only the party that opened this session — which is why each party opens its own.";
|
|
120
|
+
readonly type: "object";
|
|
121
|
+
readonly additionalProperties: false;
|
|
122
|
+
readonly required: readonly ["challenge", "domain"];
|
|
123
|
+
readonly properties: {
|
|
124
|
+
readonly challenge: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
readonly minLength: 16;
|
|
127
|
+
readonly description: "A fresh, unpredictable, single-use value this session's presentation binds to. A witness MUST NOT reuse a challenge across sessions — including across the two sessions of one witnessed exchange, where a shared value would let either party's presentation satisfy the other's session.";
|
|
128
|
+
};
|
|
129
|
+
readonly domain: {
|
|
130
|
+
readonly type: "string";
|
|
131
|
+
readonly minLength: 1;
|
|
132
|
+
readonly description: "The domain the presentations bind alongside the challenge, identifying this witness's verification context.";
|
|
133
|
+
};
|
|
134
|
+
readonly ext: {
|
|
135
|
+
readonly $ref: "#/$defs/Ext";
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly Ext: {
|
|
140
|
+
readonly title: "Ext";
|
|
141
|
+
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.";
|
|
142
|
+
readonly type: "object";
|
|
143
|
+
readonly minProperties: 1;
|
|
144
|
+
readonly additionalProperties: true;
|
|
145
|
+
readonly propertyNames: {
|
|
146
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
153
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
154
|
+
* per-specification and cannot be derived from the document alone, and
|
|
155
|
+
* item 2 needs the schema this carries.
|
|
156
|
+
*/
|
|
157
|
+
export declare const SPEC: {
|
|
158
|
+
readonly typeUri: "https://trusttasks.org/spec/witness/session/0.2";
|
|
159
|
+
readonly isBearer: false;
|
|
160
|
+
readonly isProofRequired: false;
|
|
161
|
+
readonly isRecipientRequired: true;
|
|
162
|
+
readonly isIssuedAtRequired: true;
|
|
163
|
+
readonly payloadSchema: {
|
|
164
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
165
|
+
readonly $id: "https://trusttasks.org/spec/witness/session/0.2";
|
|
166
|
+
readonly title: "Witness Session — payload";
|
|
167
|
+
readonly description: "Opens one participating party's witness session as its own exchange, nested in a relationship exchange via parentThreadId. A session is bilateral — a witnessed exchange between two parties runs two sessions with the same witness, each naming the same parties pair. The response issues the session challenge; the request document's id is the value that party's VWC later carries as taskContext.";
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly additionalProperties: false;
|
|
170
|
+
readonly required: readonly ["parties"];
|
|
171
|
+
readonly properties: {
|
|
172
|
+
readonly parties: {
|
|
173
|
+
readonly type: "array";
|
|
174
|
+
readonly minItems: 2;
|
|
175
|
+
readonly maxItems: 2;
|
|
176
|
+
readonly items: {
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
readonly pattern: "^did:";
|
|
179
|
+
};
|
|
180
|
+
readonly description: "The relationship DIDs of the exchange to be witnessed — the pairwise values the relationship proposal exchanged, in either order.";
|
|
181
|
+
};
|
|
182
|
+
readonly ext: {
|
|
183
|
+
readonly $ref: "#/$defs/Ext";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly $defs: {
|
|
187
|
+
readonly Response: {
|
|
188
|
+
readonly $anchor: "response";
|
|
189
|
+
readonly title: "Witness Session — response payload";
|
|
190
|
+
readonly description: "The session challenge, issued under the REQUIRED proof. The presentation under witness/session/submit binds to {challenge, domain}. It reaches only the party that opened this session — which is why each party opens its own.";
|
|
191
|
+
readonly type: "object";
|
|
192
|
+
readonly additionalProperties: false;
|
|
193
|
+
readonly required: readonly ["challenge", "domain"];
|
|
194
|
+
readonly properties: {
|
|
195
|
+
readonly challenge: {
|
|
196
|
+
readonly type: "string";
|
|
197
|
+
readonly minLength: 16;
|
|
198
|
+
readonly description: "A fresh, unpredictable, single-use value this session's presentation binds to. A witness MUST NOT reuse a challenge across sessions — including across the two sessions of one witnessed exchange, where a shared value would let either party's presentation satisfy the other's session.";
|
|
199
|
+
};
|
|
200
|
+
readonly domain: {
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
readonly minLength: 1;
|
|
203
|
+
readonly description: "The domain the presentations bind alongside the challenge, identifying this witness's verification context.";
|
|
204
|
+
};
|
|
205
|
+
readonly ext: {
|
|
206
|
+
readonly $ref: "#/$defs/Ext";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly Ext: {
|
|
211
|
+
readonly title: "Ext";
|
|
212
|
+
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.";
|
|
213
|
+
readonly type: "object";
|
|
214
|
+
readonly minProperties: 1;
|
|
215
|
+
readonly additionalProperties: true;
|
|
216
|
+
readonly propertyNames: {
|
|
217
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
225
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
226
|
+
* parties (§7.3 item 5).
|
|
227
|
+
*/
|
|
228
|
+
export declare const RESPONSE_SPEC: {
|
|
229
|
+
readonly typeUri: "https://trusttasks.org/spec/witness/session/0.2#response";
|
|
230
|
+
readonly isBearer: false;
|
|
231
|
+
readonly isProofRequired: true;
|
|
232
|
+
readonly isRecipientRequired: true;
|
|
233
|
+
readonly isIssuedAtRequired: true;
|
|
234
|
+
readonly payloadSchema: {
|
|
235
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
236
|
+
readonly $ref: "#/$defs/Response";
|
|
237
|
+
readonly $defs: {
|
|
238
|
+
readonly Response: {
|
|
239
|
+
readonly $anchor: "response";
|
|
240
|
+
readonly title: "Witness Session — response payload";
|
|
241
|
+
readonly description: "The session challenge, issued under the REQUIRED proof. The presentation under witness/session/submit binds to {challenge, domain}. It reaches only the party that opened this session — which is why each party opens its own.";
|
|
242
|
+
readonly type: "object";
|
|
243
|
+
readonly additionalProperties: false;
|
|
244
|
+
readonly required: readonly ["challenge", "domain"];
|
|
245
|
+
readonly properties: {
|
|
246
|
+
readonly challenge: {
|
|
247
|
+
readonly type: "string";
|
|
248
|
+
readonly minLength: 16;
|
|
249
|
+
readonly description: "A fresh, unpredictable, single-use value this session's presentation binds to. A witness MUST NOT reuse a challenge across sessions — including across the two sessions of one witnessed exchange, where a shared value would let either party's presentation satisfy the other's session.";
|
|
250
|
+
};
|
|
251
|
+
readonly domain: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly minLength: 1;
|
|
254
|
+
readonly description: "The domain the presentations bind alongside the challenge, identifying this witness's verification context.";
|
|
255
|
+
};
|
|
256
|
+
readonly ext: {
|
|
257
|
+
readonly $ref: "#/$defs/Ext";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
readonly Ext: {
|
|
262
|
+
readonly title: "Ext";
|
|
263
|
+
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.";
|
|
264
|
+
readonly type: "object";
|
|
265
|
+
readonly minProperties: 1;
|
|
266
|
+
readonly additionalProperties: true;
|
|
267
|
+
readonly propertyNames: {
|
|
268
|
+
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/witness/session/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAG1D;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IAC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