@openvtc/trust-tasks 0.2.4 → 0.2.5
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/package.json
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/approver-list/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Fetch approver bindings, optionally filtered by platform or context.
|
|
8
|
+
*/
|
|
9
|
+
export interface ConsentListApproversPayload {
|
|
10
|
+
/**
|
|
11
|
+
* Optional. Restrict to this platform tag.
|
|
12
|
+
*/
|
|
13
|
+
platform?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional. Restrict to this context path.
|
|
16
|
+
*/
|
|
17
|
+
context?: string;
|
|
18
|
+
ext?: Ext;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 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.
|
|
22
|
+
*/
|
|
23
|
+
export interface Ext {
|
|
24
|
+
[k: string]: unknown | undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Trust Task type URI. */
|
|
28
|
+
export const TYPE_URI = "https://trusttasks.org/spec/consent/approver-list/1.0" as const;
|
|
29
|
+
|
|
30
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
31
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/consent/approver-list/1.0#response" as const;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/approver-set/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* An admin binds the operator who approves inbound-messaging consent for a platform within a context.
|
|
8
|
+
*/
|
|
9
|
+
export interface ConsentSetApproverPayload {
|
|
10
|
+
/**
|
|
11
|
+
* Messaging-platform tag, e.g. "signal".
|
|
12
|
+
*/
|
|
13
|
+
platform: string;
|
|
14
|
+
/**
|
|
15
|
+
* The VTA context path this binding applies to.
|
|
16
|
+
*/
|
|
17
|
+
context: string;
|
|
18
|
+
/**
|
|
19
|
+
* VID of the operator authorized to decide consent.
|
|
20
|
+
*/
|
|
21
|
+
approver: string;
|
|
22
|
+
/**
|
|
23
|
+
* How the prompt reaches the approver; defaults to bridge-relay.
|
|
24
|
+
*/
|
|
25
|
+
route?: "wake" | "bridge-relay";
|
|
26
|
+
/**
|
|
27
|
+
* Optional routing detail (e.g. the operator's opaque conversationRef).
|
|
28
|
+
*/
|
|
29
|
+
routeHint?: string;
|
|
30
|
+
ext?: Ext;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 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.
|
|
34
|
+
*/
|
|
35
|
+
export interface Ext {
|
|
36
|
+
[k: string]: unknown | undefined;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Trust Task type URI. */
|
|
40
|
+
export const TYPE_URI = "https://trusttasks.org/spec/consent/approver-set/1.0" as const;
|
|
41
|
+
|
|
42
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
43
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/consent/approver-set/1.0#response" as const;
|
package/src/index.ts
CHANGED
|
@@ -35,6 +35,8 @@ export * as ChatMessage_v1_0 from "./chat/message/1.0/payload";
|
|
|
35
35
|
export * as ConfirmRequest_v0_1 from "./confirm/request/0.1/payload";
|
|
36
36
|
export * as ConfirmResponse_v0_1 from "./confirm/response/0.1/payload";
|
|
37
37
|
export * as ConsentShared_v0_1 from "./consent/_shared/0.1/consent";
|
|
38
|
+
export * as ConsentApproverList_v1_0 from "./consent/approver-list/1.0/payload";
|
|
39
|
+
export * as ConsentApproverSet_v1_0 from "./consent/approver-set/1.0/payload";
|
|
38
40
|
export * as ConsentDecision_v1_0 from "./consent/decision/1.0/payload";
|
|
39
41
|
export * as ConsentList_v1_0 from "./consent/list/1.0/payload";
|
|
40
42
|
export * as ConsentRequest_v1_0 from "./consent/request/1.0/payload";
|