@openvtc/trust-tasks 0.3.0 → 0.4.1
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 +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -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/trust-task-next-step/0.1/payload.d.ts +92 -0
- package/dist/trust-task-next-step/0.1/payload.d.ts.map +1 -0
- package/dist/trust-task-next-step/0.1/payload.js +18 -0
- package/dist/trust-task-next-step/0.1/payload.js.map +1 -0
- 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 +5 -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/trust-task-next-step/0.1/payload.ts +95 -0
- 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
|
@@ -2,10 +2,18 @@
|
|
|
2
2
|
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
3
|
* Source: specs/task-consent/decision/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* Echoes the digest of the task being authorized, in the encoding `task-consent/request` carried it. The executor re-derives it from the payload it is about to execute and refuses on mismatch — this is what makes the approved payload the executed payload, cryptographically rather than by convention.
|
|
7
|
+
*/
|
|
8
|
+
export type DigestMultibase = string;
|
|
5
9
|
/**
|
|
6
10
|
* The approver's answer. `deny` aborts the pending request; a subsequent submit of the same task starts a fresh one.
|
|
7
11
|
*/
|
|
8
12
|
export type Decision = "approve" | "deny";
|
|
13
|
+
/**
|
|
14
|
+
* The digest this decision concerned, in the encoding `task-consent/request` carried it.
|
|
15
|
+
*/
|
|
16
|
+
export type DigestMultibase1 = string;
|
|
9
17
|
/**
|
|
10
18
|
* An enrolled approver authorizes (or refuses) one pending privileged task, bound to the exact payload it was shown. The proof on this document — not the transport session that carried it — is the authorization.
|
|
11
19
|
*/
|
|
@@ -14,10 +22,7 @@ export interface TaskConsentDecisionPayload {
|
|
|
14
22
|
* Echoes the task-consent/request this decision answers, binding it to that one pending request. An executor MUST consume the challenge at execution rather than on receipt of this decision: a decision authorizes exactly one execution, and consuming it earlier lets an executor's own retry legitimately replay it.
|
|
15
23
|
*/
|
|
16
24
|
challenge: string;
|
|
17
|
-
|
|
18
|
-
* Echoes the digest of the task being authorized. The executor re-derives it from the payload it is about to execute and refuses on mismatch — this is what makes the approved payload the executed payload, cryptographically rather than by convention.
|
|
19
|
-
*/
|
|
20
|
-
payloadDigest: string;
|
|
25
|
+
payloadDigest: DigestMultibase;
|
|
21
26
|
decision: Decision;
|
|
22
27
|
/**
|
|
23
28
|
* OPTIONAL human-facing note, most useful on a `deny`.
|
|
@@ -39,10 +44,7 @@ export interface TaskConsentDecisionResponsePayload {
|
|
|
39
44
|
* `granted` = the threshold is met and the requester's re-submit will now execute. `pending` = the approval was recorded but more are needed. `denied` = the request was aborted.
|
|
40
45
|
*/
|
|
41
46
|
status: "granted" | "pending" | "denied";
|
|
42
|
-
|
|
43
|
-
* The digest this decision concerned.
|
|
44
|
-
*/
|
|
45
|
-
payloadDigest: string;
|
|
47
|
+
payloadDigest: DigestMultibase1;
|
|
46
48
|
/**
|
|
47
49
|
* Distinct approvals recorded so far.
|
|
48
50
|
*/
|
|
@@ -56,7 +58,7 @@ export interface TaskConsentDecisionResponsePayload {
|
|
|
56
58
|
/** Trust Task type URI. */
|
|
57
59
|
export declare const TYPE_URI: "https://trusttasks.org/spec/task-consent/decision/0.1";
|
|
58
60
|
/** Stable alias for this specification's request payload shape. */
|
|
59
|
-
export type Payload =
|
|
61
|
+
export type Payload = DigestMultibase;
|
|
60
62
|
/** Trust Task response type URI (request type URI + "#response"). */
|
|
61
63
|
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/task-consent/decision/0.1#response";
|
|
62
64
|
/** Stable alias for this specification's success-response payload shape. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/task-consent/decision/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/task-consent/decision/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AACrC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAC1C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,eAAe,CAAC;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB;;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,kCAAkC;IACjD;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;IACzC,aAAa,EAAE,gBAAgB,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,uDAAgE,CAAC;AAEzF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,eAAe,CAAC;AAEtC,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/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":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,eAAe,CAAC;IAC/B;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;IACjD,QAAQ,EAAE,QAAQ,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC1C;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;IACF;;OAEG;IACH,KAAK,CAAC,EAAE;QACN,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;IACF;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;CACH;AACD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,eAAe,CAAC;AAEtC,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC;AAE1G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAEzD;;;;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/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"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/trust-task-next-step/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The recipient-suggested continuation reserved at SPEC.md §8.6: the original task was understood, but cannot complete in isolation, and this names what the recipient party expects in order to proceed.
|
|
7
|
+
*
|
|
8
|
+
* A next step is neither a success response nor a failure. The originating task is left open — a consumer that means 'no' returns a trust-task-error instead, and one that means 'done' returns the originating specification's #response variant.
|
|
9
|
+
*
|
|
10
|
+
* This specification declares no response anchor: a producer answers a next step by issuing a document of the expected type, not by responding to this one.
|
|
11
|
+
*/
|
|
12
|
+
export interface TrustTaskNextStepPayload {
|
|
13
|
+
/**
|
|
14
|
+
* The continuations the recipient will accept, in the producer's order of preference where the recipient has one. More than one entry means ALTERNATIVES — satisfying any single entry unblocks the exchange, never all of them. A recipient that needs several things done first names the one it wants next and issues a further next step afterwards; expressing a conjunction here would be a flow definition, which belongs to a ceremony rather than to a single response.
|
|
15
|
+
*
|
|
16
|
+
* @minItems 1
|
|
17
|
+
*/
|
|
18
|
+
expects: [
|
|
19
|
+
{
|
|
20
|
+
/**
|
|
21
|
+
* The Type URI of the Trust Task the recipient expects next, including any #request fragment. A suggestion only: it confers no authorization to perform that task, and the producer applies its own policy before acting (see the specification's Security & Privacy section).
|
|
22
|
+
*/
|
|
23
|
+
typeUri: string;
|
|
24
|
+
/**
|
|
25
|
+
* Human-readable explanation of why this continuation is expected. Non-normative; intended for operator UI and logs.
|
|
26
|
+
*/
|
|
27
|
+
reason?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Optional structured data the producer MAY use when composing the expected document — a challenge to echo, an identifier to quote, a presentation definition to satisfy. Its shape is governed by the specification named in typeUri, not by this one. A producer MUST NOT treat a hint as authoritative for any value it can determine itself.
|
|
30
|
+
*/
|
|
31
|
+
hint?: {};
|
|
32
|
+
},
|
|
33
|
+
...{
|
|
34
|
+
/**
|
|
35
|
+
* The Type URI of the Trust Task the recipient expects next, including any #request fragment. A suggestion only: it confers no authorization to perform that task, and the producer applies its own policy before acting (see the specification's Security & Privacy section).
|
|
36
|
+
*/
|
|
37
|
+
typeUri: string;
|
|
38
|
+
/**
|
|
39
|
+
* Human-readable explanation of why this continuation is expected. Non-normative; intended for operator UI and logs.
|
|
40
|
+
*/
|
|
41
|
+
reason?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Optional structured data the producer MAY use when composing the expected document — a challenge to echo, an identifier to quote, a presentation definition to satisfy. Its shape is governed by the specification named in typeUri, not by this one. A producer MUST NOT treat a hint as authoritative for any value it can determine itself.
|
|
44
|
+
*/
|
|
45
|
+
hint?: {};
|
|
46
|
+
}[]
|
|
47
|
+
];
|
|
48
|
+
/**
|
|
49
|
+
* What happens once an expected task completes. `resubmit` (the default) means the expected task is a PREREQUISITE and the producer re-issues the originating request to continue — a new document with a fresh id and the same threadId, which SPEC §8.4 distinguishes from a retry, since a retry is bit-for-bit identical and is not what happens here; this matches the established pattern of task-consent/granted, where the requester re-submits once approval lands. `proceed` means the expected task IS the continuation and the originating request is not re-issued, as in an offer answered by a request.
|
|
50
|
+
*/
|
|
51
|
+
continuation?: "resubmit" | "proceed";
|
|
52
|
+
/**
|
|
53
|
+
* Identifies the Trust Task document this next step answers. SHOULD be populated, for the reason SPEC §8.2 gives for the identical member on an error response: threadId correlates the exchange only for a party that already saw the request, so a retained next step otherwise names neither the task it interrupted nor the instance.
|
|
54
|
+
*/
|
|
55
|
+
inResponseTo?: {
|
|
56
|
+
/**
|
|
57
|
+
* The Type URI of the document being answered, including any fragment it carried.
|
|
58
|
+
*/
|
|
59
|
+
typeUri: string;
|
|
60
|
+
/**
|
|
61
|
+
* The id of the specific document being answered (SPEC §4.3). Globally unique and never reused, so it names one instance where threadId names an exchange.
|
|
62
|
+
*/
|
|
63
|
+
id?: string;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Human-readable description of why the task cannot complete in isolation. Non-normative. Subject to the same restraint as an error message: it reaches a party that may not be entitled to learn why.
|
|
67
|
+
*/
|
|
68
|
+
message?: string;
|
|
69
|
+
ext?: Ext;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* 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.
|
|
73
|
+
*/
|
|
74
|
+
export interface Ext {
|
|
75
|
+
[k: string]: unknown | undefined;
|
|
76
|
+
}
|
|
77
|
+
/** Trust Task type URI. */
|
|
78
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/trust-task-next-step/0.1";
|
|
79
|
+
/** Stable alias for this specification's request payload shape. */
|
|
80
|
+
export type Payload = TrustTaskNextStepPayload;
|
|
81
|
+
/**
|
|
82
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
83
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
84
|
+
* per-specification and cannot be derived from the document alone.
|
|
85
|
+
*/
|
|
86
|
+
export declare const SPEC: {
|
|
87
|
+
readonly typeUri: "https://trusttasks.org/spec/trust-task-next-step/0.1";
|
|
88
|
+
readonly isBearer: false;
|
|
89
|
+
readonly isProofRequired: false;
|
|
90
|
+
readonly isRecipientRequired: true;
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/trust-task-next-step/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,OAAO,EAAE;QACP;YACE;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAChB;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB;;eAEG;YACH,IAAI,CAAC,EAAE,EAAE,CAAC;SACX;QACD,GAAG;YACD;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAChB;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB;;eAEG;YACH,IAAI,CAAC,EAAE,EAAE,CAAC;SACX,EAAE;KACJ,CAAC;IACF;;OAEG;IACH,YAAY,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,YAAY,CAAC,EAAE;QACb;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAChB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF;;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;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,sDAA+D,CAAC;AAExF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,wBAAwB,CAAC;AAE/C;;;;GAIG;AACH,eAAO,MAAM,IAAI;;;;;CAKP,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/trust-task-next-step/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/trust-task-next-step/0.1";
|
|
7
|
+
/**
|
|
8
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
9
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
10
|
+
* per-specification and cannot be derived from the document alone.
|
|
11
|
+
*/
|
|
12
|
+
export const SPEC = {
|
|
13
|
+
typeUri: TYPE_URI,
|
|
14
|
+
isBearer: false,
|
|
15
|
+
isProofRequired: false,
|
|
16
|
+
isRecipientRequired: true,
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../src/trust-task-next-step/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2EH,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"}
|
|
@@ -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;
|