@openvtc/trust-tasks 0.2.10 → 0.2.14
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/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/access-list/add/0.1/payload.d.ts +1 -1
- package/dist/messaging/access-list/get/0.1/payload.d.ts +1 -1
- package/dist/messaging/access-list/remove/0.1/payload.d.ts +1 -1
- package/dist/messaging/acl/get/0.1/payload.d.ts +1 -1
- package/dist/messaging/admin/add/0.1/payload.d.ts +28 -0
- package/dist/messaging/admin/add/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/admin/add/0.1/payload.js +9 -0
- package/dist/messaging/admin/add/0.1/payload.js.map +1 -0
- package/dist/messaging/admin/audit-log/0.1/payload.d.ts +26 -0
- package/dist/messaging/admin/audit-log/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/admin/audit-log/0.1/payload.js +9 -0
- package/dist/messaging/admin/audit-log/0.1/payload.js.map +1 -0
- package/dist/messaging/admin/config/0.1/payload.d.ts +18 -0
- package/dist/messaging/admin/config/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/admin/config/0.1/payload.js +9 -0
- package/dist/messaging/admin/config/0.1/payload.js.map +1 -0
- package/dist/messaging/admin/list/0.1/payload.d.ts +26 -0
- package/dist/messaging/admin/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/admin/list/0.1/payload.js +9 -0
- package/dist/messaging/admin/list/0.1/payload.js.map +1 -0
- package/dist/messaging/admin/strip/0.1/payload.d.ts +28 -0
- package/dist/messaging/admin/strip/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/admin/strip/0.1/payload.js +9 -0
- package/dist/messaging/admin/strip/0.1/payload.js.map +1 -0
- package/dist/policy/_shared/0.3/policy.d.ts +11 -0
- package/dist/policy/_shared/0.3/policy.d.ts.map +1 -0
- package/dist/policy/_shared/0.3/policy.js +6 -0
- package/dist/policy/_shared/0.3/policy.js.map +1 -0
- package/dist/policy/evaluate/0.3/payload.d.ts +125 -0
- package/dist/policy/evaluate/0.3/payload.d.ts.map +1 -0
- package/dist/policy/evaluate/0.3/payload.js +9 -0
- package/dist/policy/evaluate/0.3/payload.js.map +1 -0
- package/dist/registry/_shared/0.1/registry.d.ts +11 -0
- package/dist/registry/_shared/0.1/registry.d.ts.map +1 -0
- package/dist/registry/_shared/0.1/registry.js +6 -0
- package/dist/registry/_shared/0.1/registry.js.map +1 -0
- package/dist/registry/authorization/0.1/payload.d.ts +52 -0
- package/dist/registry/authorization/0.1/payload.d.ts.map +1 -0
- package/dist/registry/authorization/0.1/payload.js +9 -0
- package/dist/registry/authorization/0.1/payload.js.map +1 -0
- package/dist/registry/recognition/0.1/payload.d.ts +52 -0
- package/dist/registry/recognition/0.1/payload.d.ts.map +1 -0
- package/dist/registry/recognition/0.1/payload.js +9 -0
- package/dist/registry/recognition/0.1/payload.js.map +1 -0
- package/dist/registry/record/create/0.1/payload.d.ts +47 -0
- package/dist/registry/record/create/0.1/payload.d.ts.map +1 -0
- package/dist/registry/record/create/0.1/payload.js +9 -0
- package/dist/registry/record/create/0.1/payload.js.map +1 -0
- package/dist/registry/record/delete/0.1/payload.d.ts +25 -0
- package/dist/registry/record/delete/0.1/payload.d.ts.map +1 -0
- package/dist/registry/record/delete/0.1/payload.js +9 -0
- package/dist/registry/record/delete/0.1/payload.js.map +1 -0
- package/dist/registry/record/list/0.1/payload.d.ts +21 -0
- package/dist/registry/record/list/0.1/payload.d.ts.map +1 -0
- package/dist/registry/record/list/0.1/payload.js +9 -0
- package/dist/registry/record/list/0.1/payload.js.map +1 -0
- package/dist/registry/record/read/0.1/payload.d.ts +25 -0
- package/dist/registry/record/read/0.1/payload.d.ts.map +1 -0
- package/dist/registry/record/read/0.1/payload.js +9 -0
- package/dist/registry/record/read/0.1/payload.js.map +1 -0
- package/dist/registry/record/update/0.1/payload.d.ts +47 -0
- package/dist/registry/record/update/0.1/payload.d.ts.map +1 -0
- package/dist/registry/record/update/0.1/payload.js +9 -0
- package/dist/registry/record/update/0.1/payload.js.map +1 -0
- package/dist/task-consent/_shared/0.1/task-consent.d.ts +11 -0
- package/dist/task-consent/_shared/0.1/task-consent.d.ts.map +1 -0
- package/dist/task-consent/_shared/0.1/task-consent.js +6 -0
- package/dist/task-consent/_shared/0.1/task-consent.js.map +1 -0
- package/dist/task-consent/decision/0.1/payload.d.ts +38 -0
- package/dist/task-consent/decision/0.1/payload.d.ts.map +1 -0
- package/dist/task-consent/decision/0.1/payload.js +9 -0
- package/dist/task-consent/decision/0.1/payload.js.map +1 -0
- package/dist/task-consent/request/0.1/payload.d.ts +140 -0
- package/dist/task-consent/request/0.1/payload.d.ts.map +1 -0
- package/dist/task-consent/request/0.1/payload.js +9 -0
- package/dist/task-consent/request/0.1/payload.js.map +1 -0
- package/dist/vta/memory/delete/0.1/payload.d.ts +26 -0
- package/dist/vta/memory/delete/0.1/payload.d.ts.map +1 -0
- package/dist/vta/memory/delete/0.1/payload.js +9 -0
- package/dist/vta/memory/delete/0.1/payload.js.map +1 -0
- package/dist/vta/memory/list/0.1/payload.d.ts +22 -0
- package/dist/vta/memory/list/0.1/payload.d.ts.map +1 -0
- package/dist/vta/memory/list/0.1/payload.js +9 -0
- package/dist/vta/memory/list/0.1/payload.js.map +1 -0
- package/dist/vta/memory/put/0.1/payload.d.ts +30 -0
- package/dist/vta/memory/put/0.1/payload.d.ts.map +1 -0
- package/dist/vta/memory/put/0.1/payload.js +9 -0
- package/dist/vta/memory/put/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +21 -0
- package/src/messaging/access-list/add/0.1/payload.ts +1 -1
- package/src/messaging/access-list/get/0.1/payload.ts +1 -1
- package/src/messaging/access-list/remove/0.1/payload.ts +1 -1
- package/src/messaging/acl/get/0.1/payload.ts +1 -1
- package/src/messaging/admin/add/0.1/payload.ts +31 -0
- package/src/messaging/admin/audit-log/0.1/payload.ts +28 -0
- package/src/messaging/admin/config/0.1/payload.ts +20 -0
- package/src/messaging/admin/list/0.1/payload.ts +28 -0
- package/src/messaging/admin/strip/0.1/payload.ts +31 -0
- package/src/policy/_shared/0.3/policy.ts +11 -0
- package/src/policy/evaluate/0.3/payload.ts +128 -0
- package/src/registry/_shared/0.1/registry.ts +11 -0
- package/src/registry/authorization/0.1/payload.ts +54 -0
- package/src/registry/recognition/0.1/payload.ts +54 -0
- package/src/registry/record/create/0.1/payload.ts +50 -0
- package/src/registry/record/delete/0.1/payload.ts +27 -0
- package/src/registry/record/list/0.1/payload.ts +23 -0
- package/src/registry/record/read/0.1/payload.ts +27 -0
- package/src/registry/record/update/0.1/payload.ts +50 -0
- package/src/task-consent/_shared/0.1/task-consent.ts +11 -0
- package/src/task-consent/decision/0.1/payload.ts +41 -0
- package/src/task-consent/request/0.1/payload.ts +142 -0
- package/src/vta/memory/delete/0.1/payload.ts +28 -0
- package/src/vta/memory/list/0.1/payload.ts +24 -0
- package/src/vta/memory/put/0.1/payload.ts +32 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/policy/evaluate/0.3/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/policy/evaluate/0.3";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/policy/evaluate/0.3#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/policy/evaluate/0.3/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwHH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,iDAA0D,CAAC;AAEnF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,0DAAmE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/_shared/0.1/registry.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Canonical $defs referenced by every registry/* specification: the TRQP query tuple, the query context, the trust record, and the mutation acknowledgement. Not itself a Trust Task specification (the `_shared` folder is skipped by the registry build and the codegen). Field names for the query tuple and the query responses are verbatim from the ToIP Trust Registry Query Protocol (TRQP) v2.0 JSON schemas, so one shape serves both the plain HTTP TRQP binding and the Trust Task payload.
|
|
7
|
+
*/
|
|
8
|
+
export interface SharedDefinitionsForTheRegistrySpecFamily {
|
|
9
|
+
[k: string]: unknown | undefined;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/registry/_shared/0.1/registry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,yCAAyC;IACxD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/registry/_shared/0.1/registry.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/authorization/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* TRQP v2.0 authorization query: ask a trust registry whether an entity is authorized by an authority for a given action+resource. Field names are verbatim from the TRQP authorization request/response schemas so the same payload serves the plain HTTP TRQP binding and the Trust Task binding.
|
|
7
|
+
*/
|
|
8
|
+
export interface RegistryAuthorizationPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Identifier of the entity being tested for authorization.
|
|
11
|
+
*/
|
|
12
|
+
entity_id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Identifier of the authority being queried.
|
|
15
|
+
*/
|
|
16
|
+
authority_id: string;
|
|
17
|
+
/**
|
|
18
|
+
* The action the query is checking authorization for.
|
|
19
|
+
*/
|
|
20
|
+
action: string;
|
|
21
|
+
/**
|
|
22
|
+
* The resource the query is checking authorization for.
|
|
23
|
+
*/
|
|
24
|
+
resource: string;
|
|
25
|
+
context?: QueryContext;
|
|
26
|
+
ext?: Ext;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Optional TRQP query context. `time` requests evaluation as of a given instant; `locator` is an authority-defined hint for locating records.
|
|
30
|
+
*/
|
|
31
|
+
export interface QueryContext {
|
|
32
|
+
/**
|
|
33
|
+
* Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time.
|
|
34
|
+
*/
|
|
35
|
+
time?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional hint for systems that need extra information to locate the records in question (authorization queries).
|
|
38
|
+
*/
|
|
39
|
+
locator?: string;
|
|
40
|
+
[k: string]: string | undefined;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 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.
|
|
44
|
+
*/
|
|
45
|
+
export interface Ext {
|
|
46
|
+
[k: string]: unknown | undefined;
|
|
47
|
+
}
|
|
48
|
+
/** Trust Task type URI. */
|
|
49
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/registry/authorization/0.1";
|
|
50
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
51
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/authorization/0.1#response";
|
|
52
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/registry/authorization/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACjC;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/authorization/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/registry/authorization/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/authorization/0.1#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/registry/authorization/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA8CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/recognition/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* TRQP v2.0 recognition query: ask a trust registry whether an entity is recognised by an authority for a given action+resource. Field names are verbatim from the TRQP recognition request/response schemas so the same payload serves the plain HTTP TRQP binding and the Trust Task binding.
|
|
7
|
+
*/
|
|
8
|
+
export interface RegistryRecognitionPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Identifier of the entity being tested for recognition.
|
|
11
|
+
*/
|
|
12
|
+
entity_id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Identifier of the authority being queried to recognise the entity.
|
|
15
|
+
*/
|
|
16
|
+
authority_id: string;
|
|
17
|
+
/**
|
|
18
|
+
* The action the query is checking recognition for.
|
|
19
|
+
*/
|
|
20
|
+
action: string;
|
|
21
|
+
/**
|
|
22
|
+
* The resource the query is checking recognition for.
|
|
23
|
+
*/
|
|
24
|
+
resource: string;
|
|
25
|
+
context?: QueryContext;
|
|
26
|
+
ext?: Ext;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Optional TRQP query context. `time` requests evaluation as of a given instant; `locator` is an authority-defined hint for locating records.
|
|
30
|
+
*/
|
|
31
|
+
export interface QueryContext {
|
|
32
|
+
/**
|
|
33
|
+
* Evaluate the query as of this RFC3339 (Z offset) instant. Blank/absent uses current server time.
|
|
34
|
+
*/
|
|
35
|
+
time?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional hint for systems that need extra information to locate the records in question (authorization queries).
|
|
38
|
+
*/
|
|
39
|
+
locator?: string;
|
|
40
|
+
[k: string]: string | undefined;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 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.
|
|
44
|
+
*/
|
|
45
|
+
export interface Ext {
|
|
46
|
+
[k: string]: unknown | undefined;
|
|
47
|
+
}
|
|
48
|
+
/** Trust Task type URI. */
|
|
49
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/registry/recognition/0.1";
|
|
50
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
51
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/recognition/0.1#response";
|
|
52
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/registry/recognition/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACjC;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,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/recognition/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/registry/recognition/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/recognition/0.1#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/registry/recognition/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA8CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAExF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/create/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Whether the record asserts an authorization or a recognition relationship.
|
|
7
|
+
*/
|
|
8
|
+
export type RecordType = "authorization" | "recognition";
|
|
9
|
+
/**
|
|
10
|
+
* An administrator asks a trust registry to create a new trust record (a recognition or authorization assertion). Idempotent per record key (entity+authority+action+resource); creating an existing key is an error.
|
|
11
|
+
*/
|
|
12
|
+
export interface RegistryRecordCreatePayload {
|
|
13
|
+
record: TrustRecord;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface TrustRecord {
|
|
17
|
+
entity_id: string;
|
|
18
|
+
authority_id: string;
|
|
19
|
+
action: string;
|
|
20
|
+
resource: string;
|
|
21
|
+
/**
|
|
22
|
+
* Present on recognition records: whether the action+resource is recognised.
|
|
23
|
+
*/
|
|
24
|
+
recognized?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Present on authorization records: whether the action+resource authorization is confirmed.
|
|
27
|
+
*/
|
|
28
|
+
authorized?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Opaque governance context attached to the record.
|
|
31
|
+
*/
|
|
32
|
+
context?: {
|
|
33
|
+
[k: string]: unknown | undefined;
|
|
34
|
+
};
|
|
35
|
+
record_type: RecordType;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 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.
|
|
39
|
+
*/
|
|
40
|
+
export interface Ext {
|
|
41
|
+
[k: string]: unknown | undefined;
|
|
42
|
+
}
|
|
43
|
+
/** Trust Task type URI. */
|
|
44
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/registry/record/create/0.1";
|
|
45
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
46
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/record/create/0.1#response";
|
|
47
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/registry/record/create/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,aAAa,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,WAAW,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;IACF,WAAW,EAAE,UAAU,CAAC;CACzB;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/create/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/registry/record/create/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/record/create/0.1#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/registry/record/create/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/delete/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* An administrator asks a trust registry to delete the trust record identified by the four TRQP identifiers.
|
|
7
|
+
*/
|
|
8
|
+
export interface RegistryRecordDeletePayload {
|
|
9
|
+
entity_id: string;
|
|
10
|
+
authority_id: string;
|
|
11
|
+
action: string;
|
|
12
|
+
resource: 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
|
+
/** Trust Task type URI. */
|
|
22
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/registry/record/delete/0.1";
|
|
23
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
24
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/record/delete/0.1#response";
|
|
25
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/registry/record/delete/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,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,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/delete/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/registry/record/delete/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/record/delete/0.1#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/registry/record/delete/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* An administrator lists all trust records held by the registry.
|
|
7
|
+
*/
|
|
8
|
+
export interface RegistryRecordListPayload {
|
|
9
|
+
ext?: Ext;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 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.
|
|
13
|
+
*/
|
|
14
|
+
export interface Ext {
|
|
15
|
+
[k: string]: unknown | undefined;
|
|
16
|
+
}
|
|
17
|
+
/** Trust Task type URI. */
|
|
18
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/registry/record/list/0.1";
|
|
19
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
20
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/record/list/0.1#response";
|
|
21
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/registry/record/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,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,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/list/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/registry/record/list/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/record/list/0.1#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/registry/record/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAExF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/read/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* An administrator reads the full trust record identified by the four TRQP identifiers (both the recognized and authorized facets, unlike the filtered TRQP query responses).
|
|
7
|
+
*/
|
|
8
|
+
export interface RegistryRecordReadPayload {
|
|
9
|
+
entity_id: string;
|
|
10
|
+
authority_id: string;
|
|
11
|
+
action: string;
|
|
12
|
+
resource: 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
|
+
/** Trust Task type URI. */
|
|
22
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/registry/record/read/0.1";
|
|
23
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
24
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/record/read/0.1#response";
|
|
25
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/registry/record/read/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,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,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/read/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/registry/record/read/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/record/read/0.1#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/registry/record/read/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAExF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/update/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Whether the record asserts an authorization or a recognition relationship.
|
|
7
|
+
*/
|
|
8
|
+
export type RecordType = "authorization" | "recognition";
|
|
9
|
+
/**
|
|
10
|
+
* An administrator asks a trust registry to update an existing trust record. The record key (entity+authority+action+resource) must already exist.
|
|
11
|
+
*/
|
|
12
|
+
export interface RegistryRecordUpdatePayload {
|
|
13
|
+
record: TrustRecord;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
export interface TrustRecord {
|
|
17
|
+
entity_id: string;
|
|
18
|
+
authority_id: string;
|
|
19
|
+
action: string;
|
|
20
|
+
resource: string;
|
|
21
|
+
/**
|
|
22
|
+
* Present on recognition records: whether the action+resource is recognised.
|
|
23
|
+
*/
|
|
24
|
+
recognized?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Present on authorization records: whether the action+resource authorization is confirmed.
|
|
27
|
+
*/
|
|
28
|
+
authorized?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Opaque governance context attached to the record.
|
|
31
|
+
*/
|
|
32
|
+
context?: {
|
|
33
|
+
[k: string]: unknown | undefined;
|
|
34
|
+
};
|
|
35
|
+
record_type: RecordType;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 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.
|
|
39
|
+
*/
|
|
40
|
+
export interface Ext {
|
|
41
|
+
[k: string]: unknown | undefined;
|
|
42
|
+
}
|
|
43
|
+
/** Trust Task type URI. */
|
|
44
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/registry/record/update/0.1";
|
|
45
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
46
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/registry/record/update/0.1#response";
|
|
47
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/registry/record/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,aAAa,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,WAAW,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;KAClC,CAAC;IACF,WAAW,EAAE,UAAU,CAAC;CACzB;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/registry/record/update/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/registry/record/update/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/registry/record/update/0.1#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/registry/record/update/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAE1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/task-consent/_shared/0.1/task-consent.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Shared shapes for delegated task-execution consent: the executor-authored effects list a consent surface renders, the prior-state pin the executor asserts at execution, and the approval constraint a policy's requireConsent names.
|
|
7
|
+
*/
|
|
8
|
+
export interface TaskConsentSharedDefinitions {
|
|
9
|
+
[k: string]: unknown | undefined;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=task-consent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-consent.d.ts","sourceRoot":"","sources":["../../../../src/task-consent/_shared/0.1/task-consent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-consent.js","sourceRoot":"","sources":["../../../../src/task-consent/_shared/0.1/task-consent.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/task-consent/decision/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The approver's answer. `deny` aborts the pending request; a subsequent submit of the same task starts a fresh one.
|
|
7
|
+
*/
|
|
8
|
+
export type Decision = "approve" | "deny";
|
|
9
|
+
/**
|
|
10
|
+
* 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
|
+
*/
|
|
12
|
+
export interface TaskConsentDecisionPayload {
|
|
13
|
+
/**
|
|
14
|
+
* 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
|
+
*/
|
|
16
|
+
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;
|
|
21
|
+
decision: Decision;
|
|
22
|
+
/**
|
|
23
|
+
* OPTIONAL human-facing note, most useful on a `deny`.
|
|
24
|
+
*/
|
|
25
|
+
reason?: string;
|
|
26
|
+
ext?: Ext;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 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.
|
|
30
|
+
*/
|
|
31
|
+
export interface Ext {
|
|
32
|
+
[k: string]: unknown | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** Trust Task type URI. */
|
|
35
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/task-consent/decision/0.1";
|
|
36
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
37
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/task-consent/decision/0.1#response";
|
|
38
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +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;AAE1C;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB,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;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,uDAAgE,CAAC;AAEzF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,gEAAyE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/task-consent/decision/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/task-consent/decision/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/task-consent/decision/0.1#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/task-consent/decision/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAEzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC"}
|