@openvtc/trust-tasks 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_framework/0.3/framework.d.ts +13 -0
- package/dist/_framework/0.3/framework.d.ts.map +1 -0
- package/dist/_framework/0.3/framework.js +6 -0
- package/dist/_framework/0.3/framework.js.map +1 -0
- package/dist/audit/list/0.1/payload.d.ts +11 -9
- package/dist/audit/list/0.1/payload.d.ts.map +1 -1
- package/dist/audit/list/0.1/payload.js.map +1 -1
- package/dist/audit/verify/0.1/payload.d.ts +6 -5
- package/dist/audit/verify/0.1/payload.d.ts.map +1 -1
- package/dist/audit/verify/0.1/payload.js.map +1 -1
- package/dist/chat/message/0.1/payload.d.ts +11 -9
- package/dist/chat/message/0.1/payload.d.ts.map +1 -1
- package/dist/chat/message/0.1/payload.js.map +1 -1
- package/dist/consent/request/1.0/payload.d.ts +6 -5
- package/dist/consent/request/1.0/payload.d.ts.map +1 -1
- package/dist/consent/request/1.0/payload.js.map +1 -1
- package/dist/credentials/_shared/0.2/credentials.d.ts +15 -0
- package/dist/credentials/_shared/0.2/credentials.d.ts.map +1 -0
- package/dist/credentials/_shared/0.2/credentials.js +6 -0
- package/dist/credentials/_shared/0.2/credentials.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/policy/evaluate/0.3/payload.d.ts +6 -5
- package/dist/policy/evaluate/0.3/payload.d.ts.map +1 -1
- package/dist/policy/evaluate/0.3/payload.js.map +1 -1
- package/dist/task-consent/decision/0.1/payload.d.ts +11 -9
- package/dist/task-consent/decision/0.1/payload.d.ts.map +1 -1
- package/dist/task-consent/decision/0.1/payload.js.map +1 -1
- package/dist/task-consent/granted/0.1/payload.d.ts +6 -5
- package/dist/task-consent/granted/0.1/payload.d.ts.map +1 -1
- package/dist/task-consent/granted/0.1/payload.js.map +1 -1
- package/dist/task-consent/request/0.1/payload.d.ts +6 -5
- package/dist/task-consent/request/0.1/payload.d.ts.map +1 -1
- package/dist/task-consent/request/0.1/payload.js.map +1 -1
- package/dist/vta/credentials/issue/0.1/payload.d.ts +2 -0
- package/dist/vta/credentials/issue/0.1/payload.d.ts.map +1 -1
- package/dist/vta/credentials/issue/0.1/payload.js.map +1 -1
- package/dist/vta/credentials/issue/0.2/payload.d.ts +94 -0
- package/dist/vta/credentials/issue/0.2/payload.d.ts.map +1 -0
- package/dist/vta/credentials/issue/0.2/payload.js +31 -0
- package/dist/vta/credentials/issue/0.2/payload.js.map +1 -0
- package/dist/vtc/relationships/request/0.1/payload.d.ts +65 -0
- package/dist/vtc/relationships/request/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/relationships/request/0.1/payload.js +31 -0
- package/dist/vtc/relationships/request/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_framework/0.3/framework.ts +13 -0
- package/src/audit/list/0.1/payload.ts +12 -9
- package/src/audit/verify/0.1/payload.ts +7 -5
- package/src/chat/message/0.1/payload.ts +12 -9
- package/src/consent/request/1.0/payload.ts +7 -5
- package/src/credentials/_shared/0.2/credentials.ts +15 -0
- package/src/index.ts +4 -0
- package/src/policy/evaluate/0.3/payload.ts +6 -5
- package/src/task-consent/decision/0.1/payload.ts +11 -9
- package/src/task-consent/granted/0.1/payload.ts +7 -5
- package/src/task-consent/request/0.1/payload.ts +7 -5
- package/src/vta/credentials/issue/0.1/payload.ts +2 -0
- package/src/vta/credentials/issue/0.2/payload.ts +101 -0
- package/src/vtc/relationships/request/0.1/payload.ts +71 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/task-consent/decision/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/task-consent/decision/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;CACjB,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;CACjB,CAAC"}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
3
|
* Source: specs/task-consent/granted/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* The salted wire digest of the approved task — the same value the matching task-consent/request carried and the decision echoed. The requester already holds it; it is repeated here only so the requester can correlate the notice to the pending task it should now re-submit. It confers nothing: the executor's single-use grant lookup at re-submit is the authorization.
|
|
7
|
+
*/
|
|
8
|
+
export type DigestMultibase = string;
|
|
5
9
|
/**
|
|
6
10
|
* Fire-and-forget notice from the executor to the requester that its pending task has reached the approval threshold and a single-use grant is waiting, so the requester re-submits at once instead of polling. Non-load-bearing by design: the grant check at re-submit is the real gate, so a lost or spurious notice costs at most one poll cycle.
|
|
7
11
|
*/
|
|
@@ -10,10 +14,7 @@ export interface TaskConsentGrantedPayload {
|
|
|
10
14
|
* Always `granted`. A denial sends no notice — the requester's re-submit discovers it, and a notice that could carry a denial would tempt a consumer into treating this advisory channel as the authoritative outcome, which it is not.
|
|
11
15
|
*/
|
|
12
16
|
status: "granted";
|
|
13
|
-
|
|
14
|
-
* The salted wire digest of the approved task — the same value the matching task-consent/request carried and the decision echoed. The requester already holds it; it is repeated here only so the requester can correlate the notice to the pending task it should now re-submit. It confers nothing: the executor's single-use grant lookup at re-submit is the authorization.
|
|
15
|
-
*/
|
|
16
|
-
payloadDigest: string;
|
|
17
|
+
payloadDigest: DigestMultibase;
|
|
17
18
|
/**
|
|
18
19
|
* Type URI of the approved task, for correlation and display at the requester. Advisory on the same terms as the digest — the executor re-derives everything it enforces from the re-submitted payload itself.
|
|
19
20
|
*/
|
|
@@ -29,7 +30,7 @@ export interface Ext {
|
|
|
29
30
|
/** Trust Task type URI. */
|
|
30
31
|
export declare const TYPE_URI: "https://trusttasks.org/spec/task-consent/granted/0.1";
|
|
31
32
|
/** Stable alias for this specification's request payload shape. */
|
|
32
|
-
export type Payload =
|
|
33
|
+
export type Payload = DigestMultibase;
|
|
33
34
|
/**
|
|
34
35
|
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
35
36
|
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/task-consent/granted/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/task-consent/granted/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB,aAAa,EAAE,eAAe,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,eAAe,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;;CAKP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/task-consent/granted/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/task-consent/granted/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6BH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAKxF;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;CACjB,CAAC"}
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
3
|
* Source: specs/task-consent/request/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* The binding between what the approver sees and what executes. Multibase-encoded multihash over the RFC 8785 (JCS) canonicalization of the payload, the task type, and the `challenge` as salt. The decision echoes it; the executor re-derives it from the payload it is about to run and refuses on mismatch. Salted because an unsalted digest over a low-entropy payload is a confirmation oracle for anyone who observes it in transit.
|
|
7
|
+
*/
|
|
8
|
+
export type DigestMultibase = string;
|
|
5
9
|
/**
|
|
6
10
|
* The executor asks an enrolled approver device to authorize one pending privileged task, presenting the effects it computed by dry-running the real handler against its own prior state. The executor signs this document; the approver renders only what it verifies under that signature.
|
|
7
11
|
*/
|
|
@@ -14,10 +18,7 @@ export interface TaskConsentRequestPayload {
|
|
|
14
18
|
* Type URI of the task awaiting approval. It is bound into `payloadDigest`: without that binding, two tasks whose payloads canonicalize identically would share a digest, and an approval for a benign task would authorize a destructive one.
|
|
15
19
|
*/
|
|
16
20
|
taskType: string;
|
|
17
|
-
|
|
18
|
-
* The binding between what the approver sees and what executes. Digest of the canonical (RFC 8785 JCS) payload, the task type, and the `challenge` as salt. The decision echoes it; the executor re-derives it from the payload it is about to run and refuses on mismatch. Salted because an unsalted digest over a low-entropy payload is a confirmation oracle for anyone who observes it in transit.
|
|
19
|
-
*/
|
|
20
|
-
payloadDigest: string;
|
|
21
|
+
payloadDigest: DigestMultibase;
|
|
21
22
|
/**
|
|
22
23
|
* Authoritative SPEC §7.3 item 13 side-effect class of the pending task, derived by the executor from the compiled handler it is about to invoke. NEVER taken from the registry: a registry that decided this would be a consent kill-switch, downgradeable by publishing a new version with a weaker class.
|
|
23
24
|
*/
|
|
@@ -154,7 +155,7 @@ export interface TaskConsentRequestResponsePayload {
|
|
|
154
155
|
/** Trust Task type URI. */
|
|
155
156
|
export declare const TYPE_URI: "https://trusttasks.org/spec/task-consent/request/0.1";
|
|
156
157
|
/** Stable alias for this specification's request payload shape. */
|
|
157
|
-
export type Payload =
|
|
158
|
+
export type Payload = DigestMultibase;
|
|
158
159
|
/** Trust Task response type URI (request type URI + "#response"). */
|
|
159
160
|
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/task-consent/request/0.1#response";
|
|
160
161
|
/** Stable alias for this specification's success-response payload shape. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/task-consent/request/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/task-consent/request/0.1/payload.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/task-consent/request/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/task-consent/request/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0JH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAKxF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;CACjB,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;CACjB,CAAC"}
|
|
@@ -37,6 +37,8 @@ export interface Ext {
|
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* The success response to a vta/credentials/issue request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vta/credentials/issue/0.1#response.
|
|
40
|
+
*
|
|
41
|
+
* This is the credentials/_shared IssuedCredential shape — same members, same required set — plus `supersedes` and `ext`. It states them inline rather than `$ref`-ing the shared definition because that definition sets `additionalProperties: false`, which under `allOf` would reject the two extra members. The shared CredentialId is still referenced. Keep the two in step by hand if either changes.
|
|
40
42
|
*/
|
|
41
43
|
export interface VTACredentialsIssueResponsePayload {
|
|
42
44
|
credentialId: CredentialId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/credentials/issue/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,EAAE,CAAC;IACX;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/credentials/issue/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,EAAE,CAAC;IACX;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IACjD,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,EAAE,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ;AACD;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,uDAAgE,CAAC;AAEzF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,YAAY,CAAC;AAEnC,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,gEAAyE,CAAC;AAE3G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;;CAKP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/credentials/issue/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/credentials/issue/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;CACjB,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;CACjB,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/credentials/issue/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The success response to a vta/credentials/issue request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/vta/credentials/issue/0.1#response.
|
|
7
|
+
*
|
|
8
|
+
* Composed from the shared IssuedCredential rather than restating it: that definition is the issuance receipt every issuer returns, and duplicating it here let the two drift silently. `unevaluatedProperties` closes the object after the `allOf` is applied, which is what makes the composition possible at all — `additionalProperties` is evaluated per-subschema against the whole object and would reject `supersedes` and `ext`.
|
|
9
|
+
*/
|
|
10
|
+
export type VTACredentialsIssueResponsePayload = IssuedCredentialBase;
|
|
11
|
+
/**
|
|
12
|
+
* Stable identifier for an issued credential — the handle for revocation and audit. Opaque to the holder: it MUST be echoed verbatim when revoking and MUST NOT be parsed.
|
|
13
|
+
*/
|
|
14
|
+
export type CredentialId = string;
|
|
15
|
+
export interface VTACredentialsIssuePayload {
|
|
16
|
+
/**
|
|
17
|
+
* DID of the credential's subject/holder (becomes credentialSubject.id).
|
|
18
|
+
*/
|
|
19
|
+
holder: string;
|
|
20
|
+
/**
|
|
21
|
+
* The scoped claims to attest — the share's scope. Opaque to the framework; non-empty.
|
|
22
|
+
*/
|
|
23
|
+
claims: {};
|
|
24
|
+
/**
|
|
25
|
+
* Additional credential type beyond VerifiableCredential (e.g. ScopedShareCredential). Some values name a claims profile defined by this specification (e.g. GovernancePolicyCredential), which constrains the shape of `claims`.
|
|
26
|
+
*/
|
|
27
|
+
credentialType?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Credential lifetime in seconds from issuance. The issuer MAY cap this.
|
|
30
|
+
*/
|
|
31
|
+
validitySeconds: number;
|
|
32
|
+
/**
|
|
33
|
+
* Optional human-readable rationale, recorded for audit.
|
|
34
|
+
*/
|
|
35
|
+
purpose?: string;
|
|
36
|
+
ext?: Ext;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
40
|
+
*/
|
|
41
|
+
export interface Ext {
|
|
42
|
+
[k: string]: unknown | undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The members of an issuance receipt, deliberately left **open** so a consuming specification can `$ref` it under `allOf` and add its own, then close the result with `unevaluatedProperties: false`.
|
|
46
|
+
*
|
|
47
|
+
* A closure inside this definition would defeat that. Both `additionalProperties` and `unevaluatedProperties` are evaluated against the whole instance from within the subschema that declares them, and neither can see members the *outer* schema matched — so either one here rejects the consumer's extras. Only an `unevaluatedProperties` at the outer level sees everything the composition matched. Use `IssuedCredential` where a closed standalone shape is wanted.
|
|
48
|
+
*/
|
|
49
|
+
export interface IssuedCredentialBase {
|
|
50
|
+
credentialId: CredentialId;
|
|
51
|
+
/**
|
|
52
|
+
* The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's key. Opaque to the framework.
|
|
53
|
+
*/
|
|
54
|
+
credential: {};
|
|
55
|
+
/**
|
|
56
|
+
* When the credential was minted.
|
|
57
|
+
*/
|
|
58
|
+
issuedAt?: string;
|
|
59
|
+
/**
|
|
60
|
+
* When the credential's validUntil falls due.
|
|
61
|
+
*/
|
|
62
|
+
expiresAt: string;
|
|
63
|
+
}
|
|
64
|
+
/** Trust Task type URI. */
|
|
65
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vta/credentials/issue/0.2";
|
|
66
|
+
/** Stable alias for this specification's request payload shape. */
|
|
67
|
+
export type Payload = VTACredentialsIssueResponsePayload;
|
|
68
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
69
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/credentials/issue/0.2#response";
|
|
70
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
71
|
+
export type Response = VTACredentialsIssueResponsePayload;
|
|
72
|
+
/**
|
|
73
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
74
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
75
|
+
* per-specification and cannot be derived from the document alone.
|
|
76
|
+
*/
|
|
77
|
+
export declare const SPEC: {
|
|
78
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/credentials/issue/0.2";
|
|
79
|
+
readonly isBearer: false;
|
|
80
|
+
readonly isProofRequired: true;
|
|
81
|
+
readonly isRecipientRequired: true;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
85
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
86
|
+
* parties (§7.3 item 5).
|
|
87
|
+
*/
|
|
88
|
+
export declare const RESPONSE_SPEC: {
|
|
89
|
+
readonly typeUri: "https://trusttasks.org/spec/vta/credentials/issue/0.2#response";
|
|
90
|
+
readonly isBearer: false;
|
|
91
|
+
readonly isProofRequired: true;
|
|
92
|
+
readonly isRecipientRequired: true;
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/credentials/issue/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAAG,oBAAoB,CAAC;AACtE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,EAAE,CAAC;IACX;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,EAAE,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,uDAAgE,CAAC;AAEzF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAEzD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,gEAAyE,CAAC;AAE3G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;;CAKP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/credentials/issue/0.2/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/credentials/issue/0.2";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/credentials/issue/0.2#response";
|
|
9
|
+
/**
|
|
10
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
11
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
12
|
+
* per-specification and cannot be derived from the document alone.
|
|
13
|
+
*/
|
|
14
|
+
export const SPEC = {
|
|
15
|
+
typeUri: TYPE_URI,
|
|
16
|
+
isBearer: false,
|
|
17
|
+
isProofRequired: true,
|
|
18
|
+
isRecipientRequired: true,
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
22
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
23
|
+
* parties (§7.3 item 5).
|
|
24
|
+
*/
|
|
25
|
+
export const RESPONSE_SPEC = {
|
|
26
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
27
|
+
isBearer: false,
|
|
28
|
+
isProofRequired: true,
|
|
29
|
+
isRecipientRequired: true,
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/credentials/issue/0.2/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAKzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC;AAK3G;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;CACjB,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;CACjB,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/relationships/request/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A member asks another member to issue them a Verifiable Relationship Credential. Everything here is a hint: the issuing member decides, and declines with a trust-task-error carrying `vtc/relationships/request:declined` rather than a bespoke rejection message.
|
|
7
|
+
*/
|
|
8
|
+
export interface VTCRelationshipsRequestPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Why the requester is asking, in their own words, for the issuing member to weigh. A hint and not a term — the issuing member is under no obligation to honour it, and MUST NOT treat its absence as a defect. Free text reaching a human, so a producer SHOULD keep it to what it is willing to have quoted back.
|
|
11
|
+
*/
|
|
12
|
+
reason?: string;
|
|
13
|
+
ext?: Ext;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
export interface Ext {
|
|
19
|
+
[k: string]: unknown | undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The issued credential. Returned only where the issuing member agreed; a decline is a trust-task-error, not a response with an empty field.
|
|
23
|
+
*/
|
|
24
|
+
export interface VTCRelationshipsRequestResponsePayload {
|
|
25
|
+
/**
|
|
26
|
+
* A signed W3C Verifiable Relationship Credential (opaque here). Its issuer MUST be the issuing member — the party that signed this response — and its credentialSubject.id MUST name the requester. The same shape `vtc/relationships/publish` accepts, so a requester can lodge it with the community unchanged.
|
|
27
|
+
*/
|
|
28
|
+
vrc: {};
|
|
29
|
+
/**
|
|
30
|
+
* SHA-256 of the returned VRC, for out-of-band integrity checks. Matches the digest `vtc/relationships/publish` reports once the credential is lodged, so the two can be tied together without re-hashing.
|
|
31
|
+
*/
|
|
32
|
+
vrcSha256?: string;
|
|
33
|
+
ext?: Ext;
|
|
34
|
+
}
|
|
35
|
+
/** Trust Task type URI. */
|
|
36
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/vtc/relationships/request/0.1";
|
|
37
|
+
/** Stable alias for this specification's request payload shape. */
|
|
38
|
+
export type Payload = VTCRelationshipsRequestPayload;
|
|
39
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
40
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vtc/relationships/request/0.1#response";
|
|
41
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
42
|
+
export type Response = VTCRelationshipsRequestResponsePayload;
|
|
43
|
+
/**
|
|
44
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
45
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
46
|
+
* per-specification and cannot be derived from the document alone.
|
|
47
|
+
*/
|
|
48
|
+
export declare const SPEC: {
|
|
49
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/relationships/request/0.1";
|
|
50
|
+
readonly isBearer: false;
|
|
51
|
+
readonly isProofRequired: true;
|
|
52
|
+
readonly isRecipientRequired: true;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
56
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
57
|
+
* parties (§7.3 item 5).
|
|
58
|
+
*/
|
|
59
|
+
export declare const RESPONSE_SPEC: {
|
|
60
|
+
readonly typeUri: "https://trusttasks.org/spec/vtc/relationships/request/0.1#response";
|
|
61
|
+
readonly isBearer: false;
|
|
62
|
+
readonly isProofRequired: true;
|
|
63
|
+
readonly isRecipientRequired: true;
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/relationships/request/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,GAAG,EAAE,EAAE,CAAC;IACR;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2DAAoE,CAAC;AAE7F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oEAA6E,CAAC;AAE/G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;;CAKP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/relationships/request/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/relationships/request/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/relationships/request/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
11
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
12
|
+
* per-specification and cannot be derived from the document alone.
|
|
13
|
+
*/
|
|
14
|
+
export const SPEC = {
|
|
15
|
+
typeUri: TYPE_URI,
|
|
16
|
+
isBearer: false,
|
|
17
|
+
isProofRequired: true,
|
|
18
|
+
isRecipientRequired: true,
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
22
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
23
|
+
* parties (§7.3 item 5).
|
|
24
|
+
*/
|
|
25
|
+
export const RESPONSE_SPEC = {
|
|
26
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
27
|
+
isBearer: false,
|
|
28
|
+
isProofRequired: true,
|
|
29
|
+
isRecipientRequired: true,
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/relationships/request/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2DAAoE,CAAC;AAK7F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oEAA6E,CAAC;AAK/G;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;CACjB,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;CACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/_framework/0.3/framework.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Reusable $defs cross-referenced by individual Trust Task specifications. Not itself a Trust Task specification — the `_framework` directory is skipped by the registry build (folders starting with `_` are not discovered) and by the codegen (which only triggers on payload.schema.json). See SPEC.md §4.5.1 for the normative description of `ext`.
|
|
8
|
+
*
|
|
9
|
+
* Additive over 0.2: `Ext` is carried forward unchanged, and `DigestMultibase` is new. Specifications pinned to 0.2 remain valid; a draft specification re-pinning to 0.3 does so in place, errata-style, per SPEC.md §5.2 — the re-pin does not change any payload's effective wire shape.
|
|
10
|
+
*/
|
|
11
|
+
export interface TrustTasksFrameworkReusableJSONSchemaDefinitions {
|
|
12
|
+
[k: string]: unknown | undefined;
|
|
13
|
+
}
|
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
* Source: specs/audit/list/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Hash-chain link: the `entryHash` of the immediately-preceding entry. Present only on chained logs; its integrity is what audit/verify checks. Multibase-encoded multihash over the RFC 8785 (JCS) canonicalization of the predecessor's immutable content — the same derivation as `entryHash`, so a verifier recomputes both the same way.
|
|
8
|
+
*/
|
|
9
|
+
export type DigestMultibase = string;
|
|
10
|
+
/**
|
|
11
|
+
* Hash-chain commitment over this entry's immutable content. The next entry's `prevHash` points here. Multibase-encoded multihash over the RFC 8785 (JCS) canonicalization of that content; the canonicalization is what makes the commitment reproducible by a verifier that did not write the entry.
|
|
12
|
+
*/
|
|
13
|
+
export type DigestMultibase1 = string;
|
|
14
|
+
|
|
6
15
|
export interface AuditListPayload {
|
|
7
16
|
/**
|
|
8
17
|
* Return only entries recorded at or after this time.
|
|
@@ -95,14 +104,8 @@ export interface AuditEnvelope {
|
|
|
95
104
|
* Envelope-shape version at the maintainer, for consumers that need to reason about wire-shape evolution.
|
|
96
105
|
*/
|
|
97
106
|
schemaVersion?: number;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
*/
|
|
101
|
-
prevHash?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Hash-chain commitment over this entry's immutable content. The next entry's `prevHash` points here.
|
|
104
|
-
*/
|
|
105
|
-
entryHash?: string;
|
|
107
|
+
prevHash?: DigestMultibase;
|
|
108
|
+
entryHash?: DigestMultibase1;
|
|
106
109
|
/**
|
|
107
110
|
* Event-specific payload, keyed by `action`. Opaque to the framework; a consumer that does not recognise the action treats it as an unstructured record.
|
|
108
111
|
*/
|
|
@@ -116,7 +119,7 @@ export interface AuditEnvelope {
|
|
|
116
119
|
export const TYPE_URI = "https://trusttasks.org/spec/audit/list/0.1" as const;
|
|
117
120
|
|
|
118
121
|
/** Stable alias for this specification's request payload shape. */
|
|
119
|
-
export type Payload =
|
|
122
|
+
export type Payload = DigestMultibase;
|
|
120
123
|
|
|
121
124
|
/** Trust Task response type URI (request type URI + "#response"). */
|
|
122
125
|
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/audit/list/0.1#response" as const;
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Source: specs/audit/verify/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* The `entryHash` of the newest envelope reached, in the same multibase-multihash encoding the envelope carries it. Absent when the log is empty.
|
|
8
|
+
*/
|
|
9
|
+
export type DigestMultibase = string;
|
|
10
|
+
|
|
6
11
|
/**
|
|
7
12
|
* Request to verify the integrity of a maintainer's append-only audit hash chain. The request carries no parameters — verification is store-wide.
|
|
8
13
|
*/
|
|
@@ -39,10 +44,7 @@ export interface AuditVerifyResponsePayload {
|
|
|
39
44
|
* Envelopes that could not be deserialized and so could not be checked. Reported at the same prominence as a break, not swallowed.
|
|
40
45
|
*/
|
|
41
46
|
unparseableSkipped: number;
|
|
42
|
-
|
|
43
|
-
* Hex `entryHash` of the newest envelope reached. Absent when the log is empty.
|
|
44
|
-
*/
|
|
45
|
-
head?: string;
|
|
47
|
+
head?: DigestMultibase;
|
|
46
48
|
chainBreak?: ChainBreak;
|
|
47
49
|
ext?: Ext;
|
|
48
50
|
}
|
|
@@ -68,7 +70,7 @@ export interface ChainBreak {
|
|
|
68
70
|
export const TYPE_URI = "https://trusttasks.org/spec/audit/verify/0.1" as const;
|
|
69
71
|
|
|
70
72
|
/** Stable alias for this specification's request payload shape. */
|
|
71
|
-
export type Payload =
|
|
73
|
+
export type Payload = DigestMultibase;
|
|
72
74
|
|
|
73
75
|
/** Trust Task response type URI (request type URI + "#response"). */
|
|
74
76
|
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/audit/verify/0.1#response" as const;
|
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
* Source: specs/chat/message/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* OPTIONAL. Multibase-encoded multihash over the attachment bytes, so the reference is itself verifiable and tamper-evident. Taken over the bytes as transferred, not over any JSON wrapper.
|
|
8
|
+
*/
|
|
9
|
+
export type DigestMultibase = string;
|
|
10
|
+
/**
|
|
11
|
+
* Multibase-encoded multihash over the RFC 8785 (JCS) canonicalization of the previous document, so a gap, reorder, or removal in the chain is detectable. The algorithm travels in the multihash rather than being fixed here.
|
|
12
|
+
*/
|
|
13
|
+
export type DigestMultibase1 = string;
|
|
14
|
+
|
|
6
15
|
/**
|
|
7
16
|
* A conversational message exchanged between an AI agent and a messaging-platform bridge. Signed by its author (via the document `proof`) and hash-linked to the previous message in the conversation (`prev`), so a third party can verify each message's author and ordering after the transport has closed — for audit and dispute resolution. Conversations and contacts are referenced by opaque, bridge-issued handles, never raw platform addresses.
|
|
8
17
|
*/
|
|
@@ -85,10 +94,7 @@ export interface AttachmentRef {
|
|
|
85
94
|
* OPTIONAL. Size in bytes, if known ahead of fetch.
|
|
86
95
|
*/
|
|
87
96
|
sizeBytes?: number;
|
|
88
|
-
|
|
89
|
-
* OPTIONAL. Multihash digest of the attachment bytes, so the reference is itself verifiable and tamper-evident.
|
|
90
|
-
*/
|
|
91
|
-
digest?: string;
|
|
97
|
+
digest?: DigestMultibase;
|
|
92
98
|
}
|
|
93
99
|
/**
|
|
94
100
|
* OPTIONAL on the first message in a conversation; present on every message thereafter. Links to the previous message so the conversation forms a verifiable, ordered chain.
|
|
@@ -98,10 +104,7 @@ export interface ChainLink {
|
|
|
98
104
|
* The `id` of the previous `chat/message` Trust Task document in this conversation.
|
|
99
105
|
*/
|
|
100
106
|
id: string;
|
|
101
|
-
|
|
102
|
-
* Multihash digest (e.g. `sha-256`) over the previous document, so a gap, reorder, or removal in the chain is detectable.
|
|
103
|
-
*/
|
|
104
|
-
digest: string;
|
|
107
|
+
digest: DigestMultibase1;
|
|
105
108
|
}
|
|
106
109
|
/**
|
|
107
110
|
* 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.
|
|
@@ -114,7 +117,7 @@ export interface Ext {
|
|
|
114
117
|
export const TYPE_URI = "https://trusttasks.org/spec/chat/message/0.1" as const;
|
|
115
118
|
|
|
116
119
|
/** Stable alias for this specification's request payload shape. */
|
|
117
|
-
export type Payload =
|
|
120
|
+
export type Payload = DigestMultibase;
|
|
118
121
|
|
|
119
122
|
/**
|
|
120
123
|
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
* Source: specs/consent/request/1.0/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Optional multibase-encoded multihash over the rfc 8785 (jcs) canonicalization of the held first message, binding the request to concrete content.
|
|
8
|
+
*/
|
|
9
|
+
export type DigestMultibase = string;
|
|
10
|
+
|
|
6
11
|
/**
|
|
7
12
|
* A bridge asks the VTA whether an inbound conversation may reach an AI agent, prompting operator consent on first contact.
|
|
8
13
|
*/
|
|
@@ -20,10 +25,7 @@ export interface ConsentRequestPayload {
|
|
|
20
25
|
* Optional operator-facing label (e.g. "Signal group 'Family'"). MUST NOT contain a raw platform address.
|
|
21
26
|
*/
|
|
22
27
|
displayHint?: string;
|
|
23
|
-
|
|
24
|
-
* Optional multihash digest of the held first message, binding the request to concrete content.
|
|
25
|
-
*/
|
|
26
|
-
firstMessageDigest?: string;
|
|
28
|
+
firstMessageDigest?: DigestMultibase;
|
|
27
29
|
/**
|
|
28
30
|
* Optional VTA context path the bridge runs under, to scope approver resolution.
|
|
29
31
|
*/
|
|
@@ -80,7 +82,7 @@ export interface ConsentRequestResponsePayload {
|
|
|
80
82
|
export const TYPE_URI = "https://trusttasks.org/spec/consent/request/1.0" as const;
|
|
81
83
|
|
|
82
84
|
/** Stable alias for this specification's request payload shape. */
|
|
83
|
-
export type Payload =
|
|
85
|
+
export type Payload = DigestMultibase;
|
|
84
86
|
|
|
85
87
|
/** Trust Task response type URI (request type URI + "#response"). */
|
|
86
88
|
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/consent/request/1.0#response" as const;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/credentials/_shared/0.2/credentials.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The credential-minting core shared by every family that issues or revokes a Verifiable Credential (vta/credentials/*, vtc/endorsements/*, and future issuers). A family embeds these definitions rather than restating them, so the issuance receipt and the revocation receipt have one canonical shape across the registry. Families remain separate Trust Tasks because their trust semantics differ (approval plane, third-party verifiability, governance gating); only the mechanism is shared.
|
|
8
|
+
*
|
|
9
|
+
* Two levels of reuse are offered. A family whose response IS a receipt embeds `IssuedCredential` / `RevocationReceipt` whole, as vtc/endorsements does. A family whose response carries additional members alongside the receipt fields cannot do that — these definitions are `additionalProperties: false`, so composing one via `allOf` would reject the extra members — and instead references `CredentialId`, the identifier both receipts are keyed by, as vta/credentials does.
|
|
10
|
+
*
|
|
11
|
+
* `CredentialId` is hoisted and the other members are not, deliberately: it is the one field carrying a constraint worth stating once (non-empty), and the code generators mint a named type per `$def`, so hoisting a plain timestamp or the opaque credential object would wrap `expiresAt` and `credential` in newtypes for every consumer while deduplicating nothing but a description.
|
|
12
|
+
*/
|
|
13
|
+
export interface CredentialsSharedIssuanceAndRevocationDefinitions {
|
|
14
|
+
[k: string]: unknown | undefined;
|
|
15
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./_runtime/index.js";
|
|
|
7
7
|
|
|
8
8
|
export * as FrameworkShared_v0_1 from "./_framework/0.1/framework.js";
|
|
9
9
|
export * as FrameworkShared_v0_2 from "./_framework/0.2/framework.js";
|
|
10
|
+
export * as FrameworkShared_v0_3 from "./_framework/0.3/framework.js";
|
|
10
11
|
export * as AclEntryShared_v0_1 from "./acl/_shared/0.1/acl-entry.js";
|
|
11
12
|
export * as AclChangeRole_v0_1 from "./acl/change-role/0.1/payload.js";
|
|
12
13
|
export * as AclGrant_v0_1 from "./acl/grant/0.1/payload.js";
|
|
@@ -70,6 +71,7 @@ export * as CredentialExchangePresent_v0_1 from "./credential-exchange/present/0
|
|
|
70
71
|
export * as CredentialExchangeQuery_v0_1 from "./credential-exchange/query/0.1/payload.js";
|
|
71
72
|
export * as CredentialExchangeRequest_v0_1 from "./credential-exchange/request/0.1/payload.js";
|
|
72
73
|
export * as CredentialsShared_v0_1 from "./credentials/_shared/0.1/credentials.js";
|
|
74
|
+
export * as CredentialsShared_v0_2 from "./credentials/_shared/0.2/credentials.js";
|
|
73
75
|
export * as DeviceBindingShared_v0_1 from "./device/_shared/0.1/device-binding.js";
|
|
74
76
|
export * as DeviceBindingShared_v0_2 from "./device/_shared/0.2/device-binding.js";
|
|
75
77
|
export * as DeviceDisable_v0_1 from "./device/disable/0.1/payload.js";
|
|
@@ -241,6 +243,7 @@ export * as VtaContextsDidTemplatesList_v1_0 from "./vta/contexts/did-templates/
|
|
|
241
243
|
export * as VtaContextsDidTemplatesRender_v1_0 from "./vta/contexts/did-templates/render/1.0/payload.js";
|
|
242
244
|
export * as VtaContextsDidTemplatesUpdate_v1_0 from "./vta/contexts/did-templates/update/1.0/payload.js";
|
|
243
245
|
export * as VtaCredentialsIssue_v0_1 from "./vta/credentials/issue/0.1/payload.js";
|
|
246
|
+
export * as VtaCredentialsIssue_v0_2 from "./vta/credentials/issue/0.2/payload.js";
|
|
244
247
|
export * as VtaCredentialsRevoke_v0_1 from "./vta/credentials/revoke/0.1/payload.js";
|
|
245
248
|
export * as VtaDidTemplatesCreate_v1_0 from "./vta/did-templates/create/1.0/payload.js";
|
|
246
249
|
export * as VtaDidTemplatesCreate_v2_0 from "./vta/did-templates/create/2.0/payload.js";
|
|
@@ -332,6 +335,7 @@ export * as VtcRegistryDiagnostics_v0_1 from "./vtc/registry/diagnostics/0.1/pay
|
|
|
332
335
|
export * as VtcRelationshipsGraph_v0_1 from "./vtc/relationships/graph/0.1/payload.js";
|
|
333
336
|
export * as VtcRelationshipsList_v0_1 from "./vtc/relationships/list/0.1/payload.js";
|
|
334
337
|
export * as VtcRelationshipsPublish_v0_1 from "./vtc/relationships/publish/0.1/payload.js";
|
|
338
|
+
export * as VtcRelationshipsRequest_v0_1 from "./vtc/relationships/request/0.1/payload.js";
|
|
335
339
|
export * as VtcRelationshipsRevoke_v0_1 from "./vtc/relationships/revoke/0.1/payload.js";
|
|
336
340
|
export * as VtcWebsiteFilesDelete_v0_1 from "./vtc/website/files/delete/0.1/payload.js";
|
|
337
341
|
export * as VtcWebsiteFilesList_v0_1 from "./vtc/website/files/list/0.1/payload.js";
|