@openvtc/trust-tasks 0.27.8 → 0.28.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/CHANGELOG.md +164 -0
- package/README.md +9 -0
- package/dist/_runtime/codes.d.ts +22 -3
- package/dist/_runtime/codes.d.ts.map +1 -1
- package/dist/_runtime/codes.js +26 -19
- package/dist/_runtime/codes.js.map +1 -1
- package/dist/_runtime/document.d.ts +1 -1
- package/dist/_runtime/document.js +1 -1
- package/dist/_runtime/extends.d.ts +16 -7
- package/dist/_runtime/extends.d.ts.map +1 -1
- package/dist/_runtime/extends.js +44 -35
- package/dist/_runtime/extends.js.map +1 -1
- package/dist/_runtime/index.d.ts +1 -0
- package/dist/_runtime/index.d.ts.map +1 -1
- package/dist/_runtime/index.js +1 -0
- package/dist/_runtime/index.js.map +1 -1
- package/dist/_runtime/type-uri.d.ts +96 -0
- package/dist/_runtime/type-uri.d.ts.map +1 -0
- package/dist/_runtime/type-uri.js +194 -0
- package/dist/_runtime/type-uri.js.map +1 -0
- package/dist/_shared/components.d.ts +39 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +3778 -1257
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3778 -1257
- package/dist/index.js.map +1 -1
- package/dist/policy/_shared/0.4/policy.d.ts +16 -0
- package/dist/policy/_shared/0.4/policy.d.ts.map +1 -0
- package/dist/policy/_shared/0.4/policy.js +6 -0
- package/dist/policy/_shared/0.4/policy.js.map +1 -0
- package/dist/policy/evaluate/0.1/payload.d.ts +4 -4
- package/dist/policy/evaluate/0.1/payload.js +1 -1
- package/dist/policy/evaluate/0.2/payload.d.ts +4 -4
- package/dist/policy/evaluate/0.2/payload.js +1 -1
- package/dist/policy/evaluate/0.3/payload.d.ts +13 -2
- package/dist/policy/evaluate/0.3/payload.d.ts.map +1 -1
- package/dist/policy/evaluate/0.3/payload.js +1 -1
- package/dist/policy/evaluate/0.3/payload.js.map +1 -1
- package/dist/policy/evaluate/0.4/payload.d.ts +1416 -0
- package/dist/policy/evaluate/0.4/payload.d.ts.map +1 -0
- package/dist/policy/evaluate/0.4/payload.js +899 -0
- package/dist/policy/evaluate/0.4/payload.js.map +1 -0
- package/dist/trust-task-error/0.1/payload.d.ts +2 -2
- package/dist/trust-task-error/0.1/payload.js +1 -1
- package/dist/trust-task-error/0.2/payload.d.ts +2 -2
- package/dist/trust-task-error/0.2/payload.js +1 -1
- package/dist/trust-task-error/0.3/payload.d.ts +2 -2
- package/dist/trust-task-error/0.3/payload.js +1 -1
- package/dist/trust-task-error/0.4/payload.d.ts +2 -2
- package/dist/trust-task-error/0.4/payload.js +1 -1
- package/dist/trust-task-error/0.5/payload.d.ts +7 -1
- package/dist/trust-task-error/0.5/payload.d.ts.map +1 -1
- package/dist/trust-task-error/0.5/payload.js +1 -1
- package/dist/trust-task-error/0.5/payload.js.map +1 -1
- package/dist/trust-task-error/0.6/payload.d.ts +199 -0
- package/dist/trust-task-error/0.6/payload.d.ts.map +1 -0
- package/dist/trust-task-error/0.6/payload.js +126 -0
- package/dist/trust-task-error/0.6/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_runtime/codes.ts +27 -21
- package/src/_runtime/document.ts +1 -1
- package/src/_runtime/extends.ts +50 -40
- package/src/_runtime/index.ts +14 -0
- package/src/_runtime/type-uri.ts +252 -0
- package/src/_shared/components.ts +39 -0
- package/src/index.ts +3778 -1257
- package/src/policy/_shared/0.4/policy.ts +17 -0
- package/src/policy/evaluate/0.1/payload.ts +5 -5
- package/src/policy/evaluate/0.2/payload.ts +5 -5
- package/src/policy/evaluate/0.3/payload.ts +14 -3
- package/src/policy/evaluate/0.4/payload.ts +944 -0
- package/src/trust-task-error/0.1/payload.ts +3 -3
- package/src/trust-task-error/0.2/payload.ts +3 -3
- package/src/trust-task-error/0.3/payload.ts +3 -3
- package/src/trust-task-error/0.4/payload.ts +3 -3
- package/src/trust-task-error/0.5/payload.ts +8 -2
- package/src/trust-task-error/0.6/payload.ts +195 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/policy/evaluate/0.4/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,iDAA0D,CAAC;AAEnF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,IAAI,CAAC;AAK/C,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,0DAAmE,CAAC;AAKrG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,2BAA2B;IACpC,aAAa,EAAE,waAAwa;IACvb,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,OAAO;KACR;IACD,YAAY,EAAE;QACZ,OAAO,EAAE;YACP,MAAM,EAAE,qBAAqB;SAC9B;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,wOAAwO;SACxP;QACD,mBAAmB,EAAE;YACnB,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,IAAI;YACf,SAAS,EAAE,IAAI;SAChB;QACD,cAAc,EAAE;YACd,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,KAAK;SACjB;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,oCAAoC;YAC7C,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,UAAU;aACX;YACD,YA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SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* The canonical error-response payload per SPEC.md §8.2.
|
|
7
7
|
*
|
|
8
|
-
* @deprecated superseded by trust-task-error/0.
|
|
8
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
9
9
|
*/
|
|
10
10
|
export interface TrustTaskErrorPayload {
|
|
11
11
|
/**
|
|
@@ -50,7 +50,7 @@ export declare const DEPRECATION: string | null;
|
|
|
50
50
|
/**
|
|
51
51
|
* Stable alias for this specification's request payload shape.
|
|
52
52
|
*
|
|
53
|
-
* @deprecated superseded by trust-task-error/0.
|
|
53
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
54
54
|
*/
|
|
55
55
|
export type Payload = TrustTaskErrorPayload;
|
|
56
56
|
/**
|
|
@@ -17,7 +17,7 @@ export const EXTENDS = null;
|
|
|
17
17
|
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
18
|
* Versions").
|
|
19
19
|
*/
|
|
20
|
-
export const DEPRECATION = "superseded by trust-task-error/0.
|
|
20
|
+
export const DEPRECATION = "superseded by trust-task-error/0.6";
|
|
21
21
|
/**
|
|
22
22
|
* This specification's payload schema, as a value.
|
|
23
23
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* The canonical error-response payload per SPEC.md §8.2.
|
|
7
7
|
*
|
|
8
|
-
* @deprecated superseded by trust-task-error/0.
|
|
8
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
9
9
|
*/
|
|
10
10
|
export interface TrustTaskErrorPayload {
|
|
11
11
|
/**
|
|
@@ -50,7 +50,7 @@ export declare const DEPRECATION: string | null;
|
|
|
50
50
|
/**
|
|
51
51
|
* Stable alias for this specification's request payload shape.
|
|
52
52
|
*
|
|
53
|
-
* @deprecated superseded by trust-task-error/0.
|
|
53
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
54
54
|
*/
|
|
55
55
|
export type Payload = TrustTaskErrorPayload;
|
|
56
56
|
/**
|
|
@@ -17,7 +17,7 @@ export const EXTENDS = null;
|
|
|
17
17
|
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
18
|
* Versions").
|
|
19
19
|
*/
|
|
20
|
-
export const DEPRECATION = "superseded by trust-task-error/0.
|
|
20
|
+
export const DEPRECATION = "superseded by trust-task-error/0.6";
|
|
21
21
|
/**
|
|
22
22
|
* This specification's payload schema, as a value.
|
|
23
23
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* The canonical error-response payload per SPEC.md §8.2.
|
|
7
7
|
*
|
|
8
|
-
* @deprecated superseded by trust-task-error/0.
|
|
8
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
9
9
|
*/
|
|
10
10
|
export interface TrustTaskErrorPayload {
|
|
11
11
|
/**
|
|
@@ -63,7 +63,7 @@ export declare const DEPRECATION: string | null;
|
|
|
63
63
|
/**
|
|
64
64
|
* Stable alias for this specification's request payload shape.
|
|
65
65
|
*
|
|
66
|
-
* @deprecated superseded by trust-task-error/0.
|
|
66
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
67
67
|
*/
|
|
68
68
|
export type Payload = TrustTaskErrorPayload;
|
|
69
69
|
/**
|
|
@@ -17,7 +17,7 @@ export const EXTENDS = null;
|
|
|
17
17
|
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
18
|
* Versions").
|
|
19
19
|
*/
|
|
20
|
-
export const DEPRECATION = "superseded by trust-task-error/0.
|
|
20
|
+
export const DEPRECATION = "superseded by trust-task-error/0.6";
|
|
21
21
|
/**
|
|
22
22
|
* This specification's payload schema, as a value.
|
|
23
23
|
*
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* The canonical error-response payload per SPEC.md §8.2.
|
|
7
7
|
*
|
|
8
|
-
* @deprecated superseded by trust-task-error/0.
|
|
8
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
9
9
|
*/
|
|
10
10
|
export interface TrustTaskErrorPayload {
|
|
11
11
|
/**
|
|
@@ -63,7 +63,7 @@ export declare const DEPRECATION: string | null;
|
|
|
63
63
|
/**
|
|
64
64
|
* Stable alias for this specification's request payload shape.
|
|
65
65
|
*
|
|
66
|
-
* @deprecated superseded by trust-task-error/0.
|
|
66
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
67
67
|
*/
|
|
68
68
|
export type Payload = TrustTaskErrorPayload;
|
|
69
69
|
/**
|
|
@@ -17,7 +17,7 @@ export const EXTENDS = null;
|
|
|
17
17
|
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
18
|
* Versions").
|
|
19
19
|
*/
|
|
20
|
-
export const DEPRECATION = "superseded by trust-task-error/0.
|
|
20
|
+
export const DEPRECATION = "superseded by trust-task-error/0.6";
|
|
21
21
|
/**
|
|
22
22
|
* This specification's payload schema, as a value.
|
|
23
23
|
*
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* The canonical error-response payload per SPEC.md §8.2.
|
|
7
|
+
*
|
|
8
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
7
9
|
*/
|
|
8
10
|
export interface TrustTaskErrorPayload {
|
|
9
11
|
/**
|
|
@@ -58,7 +60,11 @@ export declare const EXTENDS: string | null;
|
|
|
58
60
|
* Versions").
|
|
59
61
|
*/
|
|
60
62
|
export declare const DEPRECATION: string | null;
|
|
61
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Stable alias for this specification's request payload shape.
|
|
65
|
+
*
|
|
66
|
+
* @deprecated superseded by trust-task-error/0.6
|
|
67
|
+
*/
|
|
62
68
|
export type Payload = TrustTaskErrorPayload;
|
|
63
69
|
/**
|
|
64
70
|
* This specification's payload schema, as a value.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/trust-task-error/0.5/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/trust-task-error/0.5/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,CACF,CACI,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,SAAS,GACT,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,aAAa,GACb,eAAe,CAClB,GACD;QACE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CACJ,GACC,MAAM,CAAC;IACT;;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;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC;CACd;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,kDAA2D,CAAC;AAEpF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,GAAG,IAAW,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,GAAG,IAA2C,CAAC;AAE/E;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,qBAAqB,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EjB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC"}
|
|
@@ -17,7 +17,7 @@ export const EXTENDS = null;
|
|
|
17
17
|
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
18
|
* Versions").
|
|
19
19
|
*/
|
|
20
|
-
export const DEPRECATION =
|
|
20
|
+
export const DEPRECATION = "superseded by trust-task-error/0.6";
|
|
21
21
|
/**
|
|
22
22
|
* This specification's payload schema, as a value.
|
|
23
23
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../src/trust-task-error/0.5/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../src/trust-task-error/0.5/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,kDAA2D,CAAC;AAEpF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,oCAAoC,CAAC;AAS/E;;;;;;;;GAQG;AACH,MA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,EAAE,WAAW;YACrB,aAAa,EAAE,wGAAwG;SACxH;QACD,SAAS,EAAE;YACT,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,uHAAuH;SACvI;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/trust-task-error/0.6/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The canonical error-response payload per SPEC.md §8.2.
|
|
7
|
+
*/
|
|
8
|
+
export interface TrustTaskErrorPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Short identifier for the failure category. MUST be either a framework standard code (SPEC.md §8.3) or an extended code namespaced by the originating spec's slug (SPEC.md §8.5, e.g. 'acl/grant:roleNotRecognized').
|
|
11
|
+
*/
|
|
12
|
+
code: (("malformedRequest" | "unsupportedType" | "unsupportedVersion" | "expired" | "proofRequired" | "proofInvalid" | "permissionDenied" | "wrongRecipient" | "identityMismatch" | "idConflict" | "cancelled" | "taskFailed" | "unavailable" | "internalError" | "unsupportedExtension" | "indeterminate") | {
|
|
13
|
+
[k: string]: unknown | undefined;
|
|
14
|
+
}) & string;
|
|
15
|
+
/**
|
|
16
|
+
* Identifies the Trust Task document this error reports on. RECOMMENDED on every error response, and REQUIRED in practice for any error a third party may later be asked to rely on: threadId correlates the exchange only for a party that saw the request, so without this an error retained as evidence names neither the task it terminated nor the instance.
|
|
17
|
+
*/
|
|
18
|
+
inResponseTo?: {
|
|
19
|
+
/**
|
|
20
|
+
* The Type URI of the document being reported on, including any #request or #response fragment it carried. This is what tells a consumer which specification's semantics apply to an extended code, and which specification declared the requirement that was breached.
|
|
21
|
+
*/
|
|
22
|
+
typeUri: string;
|
|
23
|
+
/**
|
|
24
|
+
* The id of the specific document being reported on (SPEC §4.3). Globally unique and never reused, so it names one instance where threadId names an exchange. Omit only where echoing it would disclose more than the error already does.
|
|
25
|
+
*/
|
|
26
|
+
id?: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Human-readable description of the error. Non-normative; intended for logs and operator UI.
|
|
30
|
+
*/
|
|
31
|
+
message?: string;
|
|
32
|
+
/**
|
|
33
|
+
* true if the producer of the original document MAY retry; false if retrying with the same document is not expected to succeed.
|
|
34
|
+
*/
|
|
35
|
+
retryable: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* RFC 3339 timestamp before which the producer SHOULD NOT retry. Meaningful only when retryable is true.
|
|
38
|
+
*/
|
|
39
|
+
retryAfter?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Optional task-specific extension data. Per-spec error code declarations may pin the shape via a JSON Schema fragment.
|
|
42
|
+
*/
|
|
43
|
+
details?: {};
|
|
44
|
+
}
|
|
45
|
+
/** Trust Task type URI. */
|
|
46
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/trust-task-error/0.6";
|
|
47
|
+
/**
|
|
48
|
+
* The earlier version of this specification that this one declares it
|
|
49
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
50
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
51
|
+
* `extendsChain` / `readForSpec`.
|
|
52
|
+
*/
|
|
53
|
+
export declare const EXTENDS: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
56
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
57
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
58
|
+
* Versions").
|
|
59
|
+
*/
|
|
60
|
+
export declare const DEPRECATION: string | null;
|
|
61
|
+
/** Stable alias for this specification's request payload shape. */
|
|
62
|
+
export type Payload = TrustTaskErrorPayload;
|
|
63
|
+
/**
|
|
64
|
+
* This specification's payload schema, as a value.
|
|
65
|
+
*
|
|
66
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
67
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
68
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
69
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
70
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
71
|
+
*/
|
|
72
|
+
export declare const PAYLOAD_SCHEMA: {
|
|
73
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
74
|
+
readonly $id: "https://trusttasks.org/spec/trust-task-error/0.6";
|
|
75
|
+
readonly title: "Trust Task Error — payload";
|
|
76
|
+
readonly description: "The canonical error-response payload per SPEC.md §8.2.";
|
|
77
|
+
readonly type: "object";
|
|
78
|
+
readonly additionalProperties: false;
|
|
79
|
+
readonly required: readonly ["code", "retryable"];
|
|
80
|
+
readonly properties: {
|
|
81
|
+
readonly code: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
readonly description: "Short identifier for the failure category. MUST be either a framework standard code (SPEC.md §8.3) or an extended code namespaced by the originating spec's slug (SPEC.md §8.5, e.g. 'acl/grant:roleNotRecognized').";
|
|
84
|
+
readonly anyOf: readonly [{
|
|
85
|
+
readonly enum: readonly ["malformedRequest", "unsupportedType", "unsupportedVersion", "expired", "proofRequired", "proofInvalid", "permissionDenied", "wrongRecipient", "identityMismatch", "idConflict", "cancelled", "taskFailed", "unavailable", "internalError", "unsupportedExtension", "indeterminate"];
|
|
86
|
+
}, {
|
|
87
|
+
readonly pattern: "^[a-z][a-z0-9]*(-[a-z0-9]+)*(/[a-z][a-z0-9]*(-[a-z0-9]+)*)*:[a-z][a-zA-Z0-9_]*$";
|
|
88
|
+
}];
|
|
89
|
+
};
|
|
90
|
+
readonly inResponseTo: {
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly additionalProperties: false;
|
|
93
|
+
readonly required: readonly ["typeUri"];
|
|
94
|
+
readonly description: "Identifies the Trust Task document this error reports on. RECOMMENDED on every error response, and REQUIRED in practice for any error a third party may later be asked to rely on: threadId correlates the exchange only for a party that saw the request, so without this an error retained as evidence names neither the task it terminated nor the instance.";
|
|
95
|
+
readonly properties: {
|
|
96
|
+
readonly typeUri: {
|
|
97
|
+
readonly type: "string";
|
|
98
|
+
readonly format: "uri";
|
|
99
|
+
readonly minLength: 1;
|
|
100
|
+
readonly description: "The Type URI of the document being reported on, including any #request or #response fragment it carried. This is what tells a consumer which specification's semantics apply to an extended code, and which specification declared the requirement that was breached.";
|
|
101
|
+
};
|
|
102
|
+
readonly id: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
readonly minLength: 1;
|
|
105
|
+
readonly description: "The id of the specific document being reported on (SPEC §4.3). Globally unique and never reused, so it names one instance where threadId names an exchange. Omit only where echoing it would disclose more than the error already does.";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
readonly message: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly maxLength: 1024;
|
|
112
|
+
readonly description: "Human-readable description of the error. Non-normative; intended for logs and operator UI.";
|
|
113
|
+
};
|
|
114
|
+
readonly retryable: {
|
|
115
|
+
readonly type: "boolean";
|
|
116
|
+
readonly description: "true if the producer of the original document MAY retry; false if retrying with the same document is not expected to succeed.";
|
|
117
|
+
};
|
|
118
|
+
readonly retryAfter: {
|
|
119
|
+
readonly type: "string";
|
|
120
|
+
readonly format: "date-time";
|
|
121
|
+
readonly description: "RFC 3339 timestamp before which the producer SHOULD NOT retry. Meaningful only when retryable is true.";
|
|
122
|
+
};
|
|
123
|
+
readonly details: {
|
|
124
|
+
readonly type: "object";
|
|
125
|
+
readonly description: "Optional task-specific extension data. Per-spec error code declarations may pin the shape via a JSON Schema fragment.";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
131
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
132
|
+
* per-specification and cannot be derived from the document alone, and
|
|
133
|
+
* item 2 needs the schema this carries.
|
|
134
|
+
*/
|
|
135
|
+
export declare const SPEC: {
|
|
136
|
+
readonly typeUri: "https://trusttasks.org/spec/trust-task-error/0.6";
|
|
137
|
+
readonly isBearer: false;
|
|
138
|
+
readonly isProofRequired: false;
|
|
139
|
+
readonly isRecipientRequired: true;
|
|
140
|
+
readonly isIssuedAtRequired: false;
|
|
141
|
+
readonly payloadSchema: {
|
|
142
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
143
|
+
readonly $id: "https://trusttasks.org/spec/trust-task-error/0.6";
|
|
144
|
+
readonly title: "Trust Task Error — payload";
|
|
145
|
+
readonly description: "The canonical error-response payload per SPEC.md §8.2.";
|
|
146
|
+
readonly type: "object";
|
|
147
|
+
readonly additionalProperties: false;
|
|
148
|
+
readonly required: readonly ["code", "retryable"];
|
|
149
|
+
readonly properties: {
|
|
150
|
+
readonly code: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
readonly description: "Short identifier for the failure category. MUST be either a framework standard code (SPEC.md §8.3) or an extended code namespaced by the originating spec's slug (SPEC.md §8.5, e.g. 'acl/grant:roleNotRecognized').";
|
|
153
|
+
readonly anyOf: readonly [{
|
|
154
|
+
readonly enum: readonly ["malformedRequest", "unsupportedType", "unsupportedVersion", "expired", "proofRequired", "proofInvalid", "permissionDenied", "wrongRecipient", "identityMismatch", "idConflict", "cancelled", "taskFailed", "unavailable", "internalError", "unsupportedExtension", "indeterminate"];
|
|
155
|
+
}, {
|
|
156
|
+
readonly pattern: "^[a-z][a-z0-9]*(-[a-z0-9]+)*(/[a-z][a-z0-9]*(-[a-z0-9]+)*)*:[a-z][a-zA-Z0-9_]*$";
|
|
157
|
+
}];
|
|
158
|
+
};
|
|
159
|
+
readonly inResponseTo: {
|
|
160
|
+
readonly type: "object";
|
|
161
|
+
readonly additionalProperties: false;
|
|
162
|
+
readonly required: readonly ["typeUri"];
|
|
163
|
+
readonly description: "Identifies the Trust Task document this error reports on. RECOMMENDED on every error response, and REQUIRED in practice for any error a third party may later be asked to rely on: threadId correlates the exchange only for a party that saw the request, so without this an error retained as evidence names neither the task it terminated nor the instance.";
|
|
164
|
+
readonly properties: {
|
|
165
|
+
readonly typeUri: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly format: "uri";
|
|
168
|
+
readonly minLength: 1;
|
|
169
|
+
readonly description: "The Type URI of the document being reported on, including any #request or #response fragment it carried. This is what tells a consumer which specification's semantics apply to an extended code, and which specification declared the requirement that was breached.";
|
|
170
|
+
};
|
|
171
|
+
readonly id: {
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
readonly minLength: 1;
|
|
174
|
+
readonly description: "The id of the specific document being reported on (SPEC §4.3). Globally unique and never reused, so it names one instance where threadId names an exchange. Omit only where echoing it would disclose more than the error already does.";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
readonly message: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly maxLength: 1024;
|
|
181
|
+
readonly description: "Human-readable description of the error. Non-normative; intended for logs and operator UI.";
|
|
182
|
+
};
|
|
183
|
+
readonly retryable: {
|
|
184
|
+
readonly type: "boolean";
|
|
185
|
+
readonly description: "true if the producer of the original document MAY retry; false if retrying with the same document is not expected to succeed.";
|
|
186
|
+
};
|
|
187
|
+
readonly retryAfter: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
readonly format: "date-time";
|
|
190
|
+
readonly description: "RFC 3339 timestamp before which the producer SHOULD NOT retry. Meaningful only when retryable is true.";
|
|
191
|
+
};
|
|
192
|
+
readonly details: {
|
|
193
|
+
readonly type: "object";
|
|
194
|
+
readonly description: "Optional task-specific extension data. Per-spec error code declarations may pin the shape via a JSON Schema fragment.";
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/trust-task-error/0.6/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,CACF,CACI,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,SAAS,GACT,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,aAAa,GACb,eAAe,GACf,sBAAsB,GACtB,eAAe,CAClB,GACD;QACE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CACJ,GACC,MAAM,CAAC;IACT;;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;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC;CACd;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,kDAA2D,CAAC;AAEpF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,GAAG,IAAY,CAAC;AAE5C;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,GAAG,IAAW,CAAC;AAE/C,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,qBAAqB,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFjB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/trust-task-error/0.6/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/trust-task-error/0.6";
|
|
7
|
+
/**
|
|
8
|
+
* The earlier version of this specification that this one declares it
|
|
9
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
10
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
11
|
+
* `extendsChain` / `readForSpec`.
|
|
12
|
+
*/
|
|
13
|
+
export const EXTENDS = "0.5";
|
|
14
|
+
/**
|
|
15
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
16
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
17
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
|
+
* Versions").
|
|
19
|
+
*/
|
|
20
|
+
export const DEPRECATION = null;
|
|
21
|
+
/**
|
|
22
|
+
* This specification's payload schema, as a value.
|
|
23
|
+
*
|
|
24
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
25
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
26
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
27
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
28
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
29
|
+
*/
|
|
30
|
+
export const PAYLOAD_SCHEMA = {
|
|
31
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
32
|
+
"$id": "https://trusttasks.org/spec/trust-task-error/0.6",
|
|
33
|
+
"title": "Trust Task Error — payload",
|
|
34
|
+
"description": "The canonical error-response payload per SPEC.md §8.2.",
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": [
|
|
38
|
+
"code",
|
|
39
|
+
"retryable"
|
|
40
|
+
],
|
|
41
|
+
"properties": {
|
|
42
|
+
"code": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Short identifier for the failure category. MUST be either a framework standard code (SPEC.md §8.3) or an extended code namespaced by the originating spec's slug (SPEC.md §8.5, e.g. 'acl/grant:roleNotRecognized').",
|
|
45
|
+
"anyOf": [
|
|
46
|
+
{
|
|
47
|
+
"enum": [
|
|
48
|
+
"malformedRequest",
|
|
49
|
+
"unsupportedType",
|
|
50
|
+
"unsupportedVersion",
|
|
51
|
+
"expired",
|
|
52
|
+
"proofRequired",
|
|
53
|
+
"proofInvalid",
|
|
54
|
+
"permissionDenied",
|
|
55
|
+
"wrongRecipient",
|
|
56
|
+
"identityMismatch",
|
|
57
|
+
"idConflict",
|
|
58
|
+
"cancelled",
|
|
59
|
+
"taskFailed",
|
|
60
|
+
"unavailable",
|
|
61
|
+
"internalError",
|
|
62
|
+
"unsupportedExtension",
|
|
63
|
+
"indeterminate"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*(/[a-z][a-z0-9]*(-[a-z0-9]+)*)*:[a-z][a-zA-Z0-9_]*$"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"inResponseTo": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"required": [
|
|
75
|
+
"typeUri"
|
|
76
|
+
],
|
|
77
|
+
"description": "Identifies the Trust Task document this error reports on. RECOMMENDED on every error response, and REQUIRED in practice for any error a third party may later be asked to rely on: threadId correlates the exchange only for a party that saw the request, so without this an error retained as evidence names neither the task it terminated nor the instance.",
|
|
78
|
+
"properties": {
|
|
79
|
+
"typeUri": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"format": "uri",
|
|
82
|
+
"minLength": 1,
|
|
83
|
+
"description": "The Type URI of the document being reported on, including any #request or #response fragment it carried. This is what tells a consumer which specification's semantics apply to an extended code, and which specification declared the requirement that was breached."
|
|
84
|
+
},
|
|
85
|
+
"id": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"minLength": 1,
|
|
88
|
+
"description": "The id of the specific document being reported on (SPEC §4.3). Globally unique and never reused, so it names one instance where threadId names an exchange. Omit only where echoing it would disclose more than the error already does."
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"message": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"maxLength": 1024,
|
|
95
|
+
"description": "Human-readable description of the error. Non-normative; intended for logs and operator UI."
|
|
96
|
+
},
|
|
97
|
+
"retryable": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"description": "true if the producer of the original document MAY retry; false if retrying with the same document is not expected to succeed."
|
|
100
|
+
},
|
|
101
|
+
"retryAfter": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"format": "date-time",
|
|
104
|
+
"description": "RFC 3339 timestamp before which the producer SHOULD NOT retry. Meaningful only when retryable is true."
|
|
105
|
+
},
|
|
106
|
+
"details": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"description": "Optional task-specific extension data. Per-spec error code declarations may pin the shape via a JSON Schema fragment."
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
114
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
115
|
+
* per-specification and cannot be derived from the document alone, and
|
|
116
|
+
* item 2 needs the schema this carries.
|
|
117
|
+
*/
|
|
118
|
+
export const SPEC = {
|
|
119
|
+
typeUri: TYPE_URI,
|
|
120
|
+
isBearer: false,
|
|
121
|
+
isProofRequired: false,
|
|
122
|
+
isRecipientRequired: true,
|
|
123
|
+
isIssuedAtRequired: false,
|
|
124
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../src/trust-task-error/0.6/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgEH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,kDAA2D,CAAC;AAEpF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,KAAK,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,IAAI,CAAC;AAK/C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,4BAA4B;IACrC,aAAa,EAAE,wDAAwD;IACvE,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,MAAM;QACN,WAAW;KACZ;IACD,YAAY,EAAE;QACZ,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,sNAAsN;YACrO,OAAO,EAAE;gBACP;oBACE,MAAM,EAAE;wBACN,kBAAkB;wBAClB,iBAAiB;wBACjB,oBAAoB;wBACpB,SAAS;wBACT,eAAe;wBACf,cAAc;wBACd,kBAAkB;wBAClB,gBAAgB;wBAChB,kBAAkB;wBAClB,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,aAAa;wBACb,eAAe;wBACf,sBAAsB;wBACtB,eAAe;qBAChB;iBACF;gBACD;oBACE,SAAS,EAAE,iFAAiF;iBAC7F;aACF;SACF;QACD,cAAc,EAAE;YACd,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,SAAS;aACV;YACD,aAAa,EAAE,iWAAiW;YAChX,YAAY,EAAE;gBACZ,SAAS,EAAE;oBACT,MAAM,EAAE,QAAQ;oBAChB,QAAQ,EAAE,KAAK;oBACf,WAAW,EAAE,CAAC;oBACd,aAAa,EAAE,uQAAuQ;iBACvR;gBACD,IAAI,EAAE;oBACJ,MAAM,EAAE,QAAQ;oBAChB,WAAW,EAAE,CAAC;oBACd,aAAa,EAAE,yOAAyO;iBACzP;aACF;SACF;QACD,SAAS,EAAE;YACT,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,IAAI;YACjB,aAAa,EAAE,4FAA4F;SAC5G;QACD,WAAW,EAAE;YACX,MAAM,EAAE,SAAS;YACjB,aAAa,EAAE,+HAA+H;SAC/I;QACD,YAAY,EAAE;YACZ,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,WAAW;YACrB,aAAa,EAAE,wGAAwG;SACxH;QACD,SAAS,EAAE;YACT,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,uHAAuH;SACvI;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC"}
|
package/package.json
CHANGED
package/src/_runtime/codes.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* 0.1 peer.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import { parseTypeUri } from "./type-uri.js";
|
|
11
|
+
|
|
10
12
|
/** The framework-defined standard error codes (SPEC.md §8.3). */
|
|
11
13
|
export const STANDARD_CODES = [
|
|
12
14
|
"malformedRequest",
|
|
@@ -23,6 +25,9 @@ export const STANDARD_CODES = [
|
|
|
23
25
|
"taskFailed",
|
|
24
26
|
"unavailable",
|
|
25
27
|
"internalError",
|
|
28
|
+
// New in trust-task-error/0.6 (SPEC.md §4.5.2, §8.3).
|
|
29
|
+
"unsupportedExtension",
|
|
30
|
+
"indeterminate",
|
|
26
31
|
] as const;
|
|
27
32
|
|
|
28
33
|
/**
|
|
@@ -115,13 +120,6 @@ export function isStandardCode(code: string): code is StandardCode {
|
|
|
115
120
|
*/
|
|
116
121
|
const LOCAL_RE = /^[a-z][A-Za-z0-9_]*$/;
|
|
117
122
|
|
|
118
|
-
/** One path segment of a slug: lowercase, hyphen-separated (§6.1). */
|
|
119
|
-
const SEGMENT_RE = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
|
|
120
|
-
|
|
121
|
-
function validNamespace(namespace: string): boolean {
|
|
122
|
-
return namespace.length > 0 && namespace.split("/").every((s) => SEGMENT_RE.test(s));
|
|
123
|
-
}
|
|
124
|
-
|
|
125
123
|
/**
|
|
126
124
|
* Build an extended error code under a specification's own slug (SPEC §8.5).
|
|
127
125
|
*
|
|
@@ -130,7 +128,16 @@ function validNamespace(namespace: string): boolean {
|
|
|
130
128
|
* `Payload::extended_code` gives in Rust. The `#response` fragment is stripped:
|
|
131
129
|
* an error raised while handling a response still belongs to the bare slug.
|
|
132
130
|
*
|
|
133
|
-
*
|
|
131
|
+
* Any SPEC §6.1 form is accepted, so a third-party specification (§6.5) —
|
|
132
|
+
* `did:web:acme.example/spec/payments/settle/1.0` or
|
|
133
|
+
* `urn:example:acme:spec:payments:settle:1.0` — gets `payments/settle:<local>`.
|
|
134
|
+
* The code carries the slug and not the authority, as Rust's
|
|
135
|
+
* `TrustTaskCode::Extended` does — so a received code means something only
|
|
136
|
+
* against the Type URI of the request it answers (SPEC §8.5): resolve it with
|
|
137
|
+
* `inResponseTo.typeUri` (or the request you sent), never by the string alone,
|
|
138
|
+
* and keep that Type URI beside it anywhere the code outlives the exchange.
|
|
139
|
+
*
|
|
140
|
+
* @throws if `typeUri` is not a Type URI or `local` is malformed.
|
|
134
141
|
*/
|
|
135
142
|
export function extendedCode(typeUri: string, local: string): string {
|
|
136
143
|
const slug = slugFromTypeUri(typeUri);
|
|
@@ -176,18 +183,17 @@ export function familyCode(typeUri: string, namespace: string, local: string): s
|
|
|
176
183
|
return `${namespace}:${local}`;
|
|
177
184
|
}
|
|
178
185
|
|
|
179
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* The slug of a Type URI, with any `#request` / `#response` fragment removed.
|
|
188
|
+
*
|
|
189
|
+
* Accepts every SPEC §6.1 form — the public registry's, the path form under
|
|
190
|
+
* any other authority (an `https` URL, a DID URL, …) and the URN form, whose
|
|
191
|
+
* `:`-separated slug segments come back `/`-separated. The authority is not
|
|
192
|
+
* part of the result: a slug names a specification only within its authority,
|
|
193
|
+
* so use {@link parseTypeUri} where the authority matters.
|
|
194
|
+
*
|
|
195
|
+
* @throws {TypeUriError} if `typeUri` is not a Type URI in any §6.1 form.
|
|
196
|
+
*/
|
|
180
197
|
export function slugFromTypeUri(typeUri: string): string {
|
|
181
|
-
|
|
182
|
-
if (!typeUri.startsWith(PREFIX)) {
|
|
183
|
-
throw new Error(`not a Trust Task Type URI: ${JSON.stringify(typeUri)}`);
|
|
184
|
-
}
|
|
185
|
-
const rest = typeUri.slice(PREFIX.length).split("#")[0]!;
|
|
186
|
-
// Trailing segment is the MAJOR.MINOR version; everything before it is the slug.
|
|
187
|
-
const parts = rest.split("/");
|
|
188
|
-
const slug = parts.slice(0, -1).join("/");
|
|
189
|
-
if (!validNamespace(slug)) {
|
|
190
|
-
throw new Error(`Type URI ${JSON.stringify(typeUri)} yielded an invalid slug`);
|
|
191
|
-
}
|
|
192
|
-
return slug;
|
|
198
|
+
return parseTypeUri(typeUri).slug;
|
|
193
199
|
}
|
package/src/_runtime/document.ts
CHANGED
|
@@ -225,7 +225,7 @@ export interface RejectReason {
|
|
|
225
225
|
* SHOULD accept it. (This comment said `0.3` while the value said `0.5`: the
|
|
226
226
|
* value moved and the prose did not.)
|
|
227
227
|
*/
|
|
228
|
-
export const TRUST_TASK_ERROR_TYPE_URI = "https://trusttasks.org/spec/trust-task-error/0.
|
|
228
|
+
export const TRUST_TASK_ERROR_TYPE_URI = "https://trusttasks.org/spec/trust-task-error/0.6";
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* SPEC §7.2 items 4 and 5a — expiry and wrong-recipient.
|