@openvtc/trust-tasks 0.2.6 → 0.2.8
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/chat/message/0.1/payload.d.ts +115 -0
- package/dist/chat/message/0.1/payload.d.ts.map +1 -0
- package/dist/chat/message/0.1/payload.js +9 -0
- package/dist/chat/message/0.1/payload.js.map +1 -0
- package/dist/consent/_shared/0.1/consent.d.ts +11 -0
- package/dist/consent/_shared/0.1/consent.d.ts.map +1 -0
- package/dist/consent/_shared/0.1/consent.js +6 -0
- package/dist/consent/_shared/0.1/consent.js.map +1 -0
- package/dist/consent/approver-list/1.0/payload.d.ts +29 -0
- package/dist/consent/approver-list/1.0/payload.d.ts.map +1 -0
- package/dist/consent/approver-list/1.0/payload.js +9 -0
- package/dist/consent/approver-list/1.0/payload.js.map +1 -0
- package/dist/consent/approver-set/1.0/payload.d.ts +41 -0
- package/dist/consent/approver-set/1.0/payload.d.ts.map +1 -0
- package/dist/consent/approver-set/1.0/payload.js +9 -0
- package/dist/consent/approver-set/1.0/payload.js.map +1 -0
- package/dist/consent/decision/1.0/payload.d.ts +59 -0
- package/dist/consent/decision/1.0/payload.d.ts.map +1 -0
- package/dist/consent/decision/1.0/payload.js +9 -0
- package/dist/consent/decision/1.0/payload.js.map +1 -0
- package/dist/consent/list/1.0/payload.d.ts +55 -0
- package/dist/consent/list/1.0/payload.d.ts.map +1 -0
- package/dist/consent/list/1.0/payload.js +9 -0
- package/dist/consent/list/1.0/payload.js.map +1 -0
- package/dist/consent/request/1.0/payload.d.ts +63 -0
- package/dist/consent/request/1.0/payload.d.ts.map +1 -0
- package/dist/consent/request/1.0/payload.js +9 -0
- package/dist/consent/request/1.0/payload.js.map +1 -0
- package/dist/consent/revoke/1.0/payload.d.ts +47 -0
- package/dist/consent/revoke/1.0/payload.d.ts.map +1 -0
- package/dist/consent/revoke/1.0/payload.js +9 -0
- package/dist/consent/revoke/1.0/payload.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -1
- package/dist/messaging/_shared/0.1/messaging.d.ts +11 -0
- package/dist/messaging/_shared/0.1/messaging.d.ts.map +1 -0
- package/dist/messaging/_shared/0.1/messaging.js +6 -0
- package/dist/messaging/_shared/0.1/messaging.js.map +1 -0
- package/dist/messaging/access-list/add/0.1/payload.d.ts +33 -0
- package/dist/messaging/access-list/add/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/access-list/add/0.1/payload.js +9 -0
- package/dist/messaging/access-list/add/0.1/payload.js.map +1 -0
- package/dist/messaging/access-list/clear/0.1/payload.d.ts +23 -0
- package/dist/messaging/access-list/clear/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/access-list/clear/0.1/payload.js +9 -0
- package/dist/messaging/access-list/clear/0.1/payload.js.map +1 -0
- package/dist/messaging/access-list/get/0.1/payload.d.ts +33 -0
- package/dist/messaging/access-list/get/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/access-list/get/0.1/payload.js +9 -0
- package/dist/messaging/access-list/get/0.1/payload.js.map +1 -0
- package/dist/messaging/access-list/list/0.1/payload.d.ts +31 -0
- package/dist/messaging/access-list/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/access-list/list/0.1/payload.js +9 -0
- package/dist/messaging/access-list/list/0.1/payload.js.map +1 -0
- package/dist/messaging/access-list/remove/0.1/payload.d.ts +33 -0
- package/dist/messaging/access-list/remove/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/access-list/remove/0.1/payload.js +9 -0
- package/dist/messaging/access-list/remove/0.1/payload.js.map +1 -0
- package/dist/messaging/account/add/0.1/payload.d.ts +104 -0
- package/dist/messaging/account/add/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/account/add/0.1/payload.js +9 -0
- package/dist/messaging/account/add/0.1/payload.js.map +1 -0
- package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts +37 -0
- package/dist/messaging/account/change-queue-limits/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/account/change-queue-limits/0.1/payload.js +9 -0
- package/dist/messaging/account/change-queue-limits/0.1/payload.js.map +1 -0
- package/dist/messaging/account/change-type/0.1/payload.d.ts +28 -0
- package/dist/messaging/account/change-type/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/account/change-type/0.1/payload.js +9 -0
- package/dist/messaging/account/change-type/0.1/payload.js.map +1 -0
- package/dist/messaging/account/get/0.1/payload.d.ts +23 -0
- package/dist/messaging/account/get/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/account/get/0.1/payload.js +9 -0
- package/dist/messaging/account/get/0.1/payload.js.map +1 -0
- package/dist/messaging/account/list/0.1/payload.d.ts +26 -0
- package/dist/messaging/account/list/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/account/list/0.1/payload.js +9 -0
- package/dist/messaging/account/list/0.1/payload.js.map +1 -0
- package/dist/messaging/account/remove/0.1/payload.d.ts +23 -0
- package/dist/messaging/account/remove/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/account/remove/0.1/payload.js +9 -0
- package/dist/messaging/account/remove/0.1/payload.js.map +1 -0
- package/dist/messaging/acl/get/0.1/payload.d.ts +28 -0
- package/dist/messaging/acl/get/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/acl/get/0.1/payload.js +9 -0
- package/dist/messaging/acl/get/0.1/payload.js.map +1 -0
- package/dist/messaging/acl/set/0.1/payload.d.ts +85 -0
- package/dist/messaging/acl/set/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/acl/set/0.1/payload.js +9 -0
- package/dist/messaging/acl/set/0.1/payload.js.map +1 -0
- package/dist/messaging/ping/0.1/payload.d.ts +22 -0
- package/dist/messaging/ping/0.1/payload.d.ts.map +1 -0
- package/dist/messaging/ping/0.1/payload.js +9 -0
- package/dist/messaging/ping/0.1/payload.js.map +1 -0
- package/dist/vta/contexts/did-templates/create/1.0/payload.d.ts +71 -0
- package/dist/vta/contexts/did-templates/create/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/did-templates/create/1.0/payload.js +9 -0
- package/dist/vta/contexts/did-templates/create/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/did-templates/delete/1.0/payload.d.ts +29 -0
- package/dist/vta/contexts/did-templates/delete/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/did-templates/delete/1.0/payload.js +9 -0
- package/dist/vta/contexts/did-templates/delete/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/did-templates/get/1.0/payload.d.ts +29 -0
- package/dist/vta/contexts/did-templates/get/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/did-templates/get/1.0/payload.js +9 -0
- package/dist/vta/contexts/did-templates/get/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/did-templates/list/1.0/payload.d.ts +25 -0
- package/dist/vta/contexts/did-templates/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/did-templates/list/1.0/payload.js +9 -0
- package/dist/vta/contexts/did-templates/list/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/did-templates/render/1.0/payload.d.ts +35 -0
- package/dist/vta/contexts/did-templates/render/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/did-templates/render/1.0/payload.js +9 -0
- package/dist/vta/contexts/did-templates/render/1.0/payload.js.map +1 -0
- package/dist/vta/contexts/did-templates/update/1.0/payload.d.ts +75 -0
- package/dist/vta/contexts/did-templates/update/1.0/payload.d.ts.map +1 -0
- package/dist/vta/contexts/did-templates/update/1.0/payload.js +9 -0
- package/dist/vta/contexts/did-templates/update/1.0/payload.js.map +1 -0
- package/dist/vta/did-templates/create/1.0/payload.d.ts +67 -0
- package/dist/vta/did-templates/create/1.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/create/1.0/payload.js +9 -0
- package/dist/vta/did-templates/create/1.0/payload.js.map +1 -0
- package/dist/vta/did-templates/delete/1.0/payload.d.ts +25 -0
- package/dist/vta/did-templates/delete/1.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/delete/1.0/payload.js +9 -0
- package/dist/vta/did-templates/delete/1.0/payload.js.map +1 -0
- package/dist/vta/did-templates/get/1.0/payload.d.ts +25 -0
- package/dist/vta/did-templates/get/1.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/get/1.0/payload.js +9 -0
- package/dist/vta/did-templates/get/1.0/payload.js.map +1 -0
- package/dist/vta/did-templates/list/1.0/payload.d.ts +21 -0
- package/dist/vta/did-templates/list/1.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/list/1.0/payload.js +9 -0
- package/dist/vta/did-templates/list/1.0/payload.js.map +1 -0
- package/dist/vta/did-templates/render/1.0/payload.d.ts +31 -0
- package/dist/vta/did-templates/render/1.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/render/1.0/payload.js +9 -0
- package/dist/vta/did-templates/render/1.0/payload.js.map +1 -0
- package/dist/vta/did-templates/update/1.0/payload.d.ts +71 -0
- package/dist/vta/did-templates/update/1.0/payload.d.ts.map +1 -0
- package/dist/vta/did-templates/update/1.0/payload.js +9 -0
- package/dist/vta/did-templates/update/1.0/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/chat/message/0.1/payload.ts +8 -0
- package/src/index.ts +15 -0
- package/src/messaging/_shared/0.1/messaging.ts +11 -0
- package/src/messaging/access-list/add/0.1/payload.ts +36 -0
- package/src/messaging/access-list/clear/0.1/payload.ts +26 -0
- package/src/messaging/access-list/get/0.1/payload.ts +36 -0
- package/src/messaging/access-list/list/0.1/payload.ts +34 -0
- package/src/messaging/access-list/remove/0.1/payload.ts +36 -0
- package/src/messaging/account/add/0.1/payload.ts +107 -0
- package/src/messaging/account/change-queue-limits/0.1/payload.ts +40 -0
- package/src/messaging/account/change-type/0.1/payload.ts +31 -0
- package/src/messaging/account/get/0.1/payload.ts +26 -0
- package/src/messaging/account/list/0.1/payload.ts +28 -0
- package/src/messaging/account/remove/0.1/payload.ts +26 -0
- package/src/messaging/acl/get/0.1/payload.ts +31 -0
- package/src/messaging/acl/set/0.1/payload.ts +88 -0
- package/src/messaging/ping/0.1/payload.ts +24 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/chat/message/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A conversational message exchanged between an AI agent and a messaging-platform bridge. Signed by its author (via the document `proof`) and hash-linked to the previous message in the conversation (`prev`), so a third party can verify each message's author and ordering after the transport has closed — for audit and dispute resolution. Conversations and contacts are referenced by opaque, bridge-issued handles, never raw platform addresses.
|
|
7
|
+
*/
|
|
8
|
+
export interface ChatMessagePayload {
|
|
9
|
+
/**
|
|
10
|
+
* Opaque, bridge-issued conversation handle. MUST NOT be a raw platform address (phone number, chat id).
|
|
11
|
+
*/
|
|
12
|
+
conversationId: string;
|
|
13
|
+
/**
|
|
14
|
+
* `inbound` = platform → agent (the bridge attests what it received and normalized); `outbound` = agent → platform (authored by the agent).
|
|
15
|
+
*/
|
|
16
|
+
direction: "inbound" | "outbound";
|
|
17
|
+
/**
|
|
18
|
+
* OPTIONAL. Platform key the message belongs to (e.g. `signal`, `whatsapp`). Advisory.
|
|
19
|
+
*/
|
|
20
|
+
platform?: string;
|
|
21
|
+
/**
|
|
22
|
+
* OPTIONAL. Plain-text body. Absent for attachment-only messages.
|
|
23
|
+
*/
|
|
24
|
+
text?: string;
|
|
25
|
+
/**
|
|
26
|
+
* OPTIONAL. @-mentions carried by the message, ordered to match the U+FFFC sentinel placeholders in `text`: the Nth U+FFFC binds to the Nth entry. Absent/empty when the message mentions no one. The producer is responsible for emitting one U+FFFC sentinel per mention, in order — translating each platform's native mention encoding into this neutral form.
|
|
27
|
+
*/
|
|
28
|
+
mentions?: Mention[];
|
|
29
|
+
/**
|
|
30
|
+
* OPTIONAL. Attachments carried by reference, never inline.
|
|
31
|
+
*/
|
|
32
|
+
attachments?: AttachmentRef[];
|
|
33
|
+
/**
|
|
34
|
+
* OPTIONAL. The `id` of the message this one replies to.
|
|
35
|
+
*/
|
|
36
|
+
replyToId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* OPTIONAL. True when the conversation is a group/channel, false (or absent) for a 1:1 DM. Part of the signed record so the audit chain captures where a message was sent, not just its text.
|
|
39
|
+
*/
|
|
40
|
+
isGroup?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* OPTIONAL. Platform-confirmed signal that this (inbound) message addresses the agent — e.g. an @-mention of the agent, or any DM. Lets a group-aware consumer decide whether a group message is for it without agent-name heuristics. Distinct from `mentions`, which lists the participants referenced in the body. Outbound messages leave this absent/false.
|
|
43
|
+
*/
|
|
44
|
+
isMention?: boolean;
|
|
45
|
+
prev?: ChainLink;
|
|
46
|
+
/**
|
|
47
|
+
* RFC 3339 timestamp the author asserts for this message.
|
|
48
|
+
*/
|
|
49
|
+
sentAt: string;
|
|
50
|
+
ext?: Ext;
|
|
51
|
+
}
|
|
52
|
+
export interface Mention {
|
|
53
|
+
/**
|
|
54
|
+
* Opaque, bridge-issued handle for the mentioned participant. MUST NOT be a raw platform address; like `conversationId` it carries no platform-native identifier (phone number, UUID, member id) upstream.
|
|
55
|
+
*/
|
|
56
|
+
participant: string;
|
|
57
|
+
/**
|
|
58
|
+
* OPTIONAL. Human-readable name the source platform supplied for the participant. A non-authoritative rendering hint — never used for identity. Absent when the platform exposes no name in the mention.
|
|
59
|
+
*/
|
|
60
|
+
displayName?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Source-platform native start offset of the sentinel span in `text`. Advisory: offset units differ across platforms, so the authoritative binding is positional (Nth U+FFFC → Nth mention), not by offset.
|
|
63
|
+
*/
|
|
64
|
+
start: number;
|
|
65
|
+
/**
|
|
66
|
+
* Source-platform native length of the sentinel span in `text`. Advisory; see `start`.
|
|
67
|
+
*/
|
|
68
|
+
length: number;
|
|
69
|
+
}
|
|
70
|
+
export interface AttachmentRef {
|
|
71
|
+
/**
|
|
72
|
+
* Opaque attachment id, resolvable via the bridge's attachment fetch.
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
/**
|
|
76
|
+
* OPTIONAL. Suggested filename.
|
|
77
|
+
*/
|
|
78
|
+
filename?: string;
|
|
79
|
+
/**
|
|
80
|
+
* IANA media type (e.g. `image/jpeg`).
|
|
81
|
+
*/
|
|
82
|
+
mediaType: string;
|
|
83
|
+
/**
|
|
84
|
+
* OPTIONAL. Size in bytes, if known ahead of fetch.
|
|
85
|
+
*/
|
|
86
|
+
sizeBytes?: number;
|
|
87
|
+
/**
|
|
88
|
+
* OPTIONAL. Multihash digest of the attachment bytes, so the reference is itself verifiable and tamper-evident.
|
|
89
|
+
*/
|
|
90
|
+
digest?: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* OPTIONAL on the first message in a conversation; present on every message thereafter. Links to the previous message so the conversation forms a verifiable, ordered chain.
|
|
94
|
+
*/
|
|
95
|
+
export interface ChainLink {
|
|
96
|
+
/**
|
|
97
|
+
* The `id` of the previous `chat/message` Trust Task document in this conversation.
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* Multihash digest (e.g. `sha-256`) over the previous document, so a gap, reorder, or removal in the chain is detectable.
|
|
102
|
+
*/
|
|
103
|
+
digest: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* 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.
|
|
107
|
+
*/
|
|
108
|
+
export interface Ext {
|
|
109
|
+
[k: string]: unknown | undefined;
|
|
110
|
+
}
|
|
111
|
+
/** Trust Task type URI. */
|
|
112
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/chat/message/0.1";
|
|
113
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
114
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/chat/message/0.1#response";
|
|
115
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/chat/message/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,8CAAuD,CAAC;AAEhF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,uDAAgE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/chat/message/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/chat/message/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/chat/message/0.1#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/chat/message/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6GH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,8CAAuD,CAAC;AAEhF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,uDAAgE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/_shared/0.1/consent.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Platform-agnostic definitions shared across the consent/* tasks.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsentSharedDefinitions {
|
|
9
|
+
[k: string]: unknown | undefined;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=consent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent.d.ts","sourceRoot":"","sources":["../../../../src/consent/_shared/0.1/consent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consent.js","sourceRoot":"","sources":["../../../../src/consent/_shared/0.1/consent.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
* Fetch approver bindings, optionally filtered by platform or context.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsentListApproversPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Optional. Restrict to this platform tag.
|
|
11
|
+
*/
|
|
12
|
+
platform?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional. Restrict to this context path.
|
|
15
|
+
*/
|
|
16
|
+
context?: string;
|
|
17
|
+
ext?: Ext;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 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.
|
|
21
|
+
*/
|
|
22
|
+
export interface Ext {
|
|
23
|
+
[k: string]: unknown | undefined;
|
|
24
|
+
}
|
|
25
|
+
/** Trust Task type URI. */
|
|
26
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/consent/approver-list/1.0";
|
|
27
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
28
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/consent/approver-list/1.0#response";
|
|
29
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/consent/approver-list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;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,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/consent/approver-list/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/consent/approver-list/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/consent/approver-list/1.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/consent/approver-list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuBH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,uDAAgE,CAAC;AAEzF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,gEAAyE,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* An admin binds the operator who approves inbound-messaging consent for a platform within a context.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsentSetApproverPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Messaging-platform tag, e.g. "signal".
|
|
11
|
+
*/
|
|
12
|
+
platform: string;
|
|
13
|
+
/**
|
|
14
|
+
* The VTA context path this binding applies to.
|
|
15
|
+
*/
|
|
16
|
+
context: string;
|
|
17
|
+
/**
|
|
18
|
+
* VID of the operator authorized to decide consent.
|
|
19
|
+
*/
|
|
20
|
+
approver: string;
|
|
21
|
+
/**
|
|
22
|
+
* How the prompt reaches the approver; defaults to bridge-relay.
|
|
23
|
+
*/
|
|
24
|
+
route?: "wake" | "bridge-relay";
|
|
25
|
+
/**
|
|
26
|
+
* Optional routing detail (e.g. the operator's opaque conversationRef).
|
|
27
|
+
*/
|
|
28
|
+
routeHint?: string;
|
|
29
|
+
ext?: Ext;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 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.
|
|
33
|
+
*/
|
|
34
|
+
export interface Ext {
|
|
35
|
+
[k: string]: unknown | undefined;
|
|
36
|
+
}
|
|
37
|
+
/** Trust Task type URI. */
|
|
38
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/consent/approver-set/1.0";
|
|
39
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
40
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/consent/approver-set/1.0#response";
|
|
41
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/consent/approver-set/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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/consent/approver-set/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/consent/approver-set/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/consent/approver-set/1.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/consent/approver-set/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAmCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAExF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/decision/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* An approver allows or denies an AI agent's access to a messaging conversation.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsentDecisionPayload {
|
|
9
|
+
subject: ConsentSubject;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the subject is permitted. The ABSENCE of any grant is treated as `deny` (default-deny).
|
|
12
|
+
*/
|
|
13
|
+
effect: "allow" | "deny";
|
|
14
|
+
/**
|
|
15
|
+
* Granted scope. REQUIRED when `effect` is `allow`.
|
|
16
|
+
*/
|
|
17
|
+
scope?: "receive" | "converse";
|
|
18
|
+
/**
|
|
19
|
+
* Echoes the consent/request challenge this decision answers. Omit only for an operator-initiated pre-authorization.
|
|
20
|
+
*/
|
|
21
|
+
challenge?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Optional grant TTL; after it the subject must be re-consented.
|
|
24
|
+
*/
|
|
25
|
+
expiresAt?: string;
|
|
26
|
+
ext?: Ext;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The platform-agnostic identifier of WHAT is being consented to: one conversation, for one agent.
|
|
30
|
+
*/
|
|
31
|
+
export interface ConsentSubject {
|
|
32
|
+
/**
|
|
33
|
+
* Messaging-platform tag, e.g. "signal", "whatsapp", "slack".
|
|
34
|
+
*/
|
|
35
|
+
platform: string;
|
|
36
|
+
/**
|
|
37
|
+
* The bridge's OPAQUE conversation handle (e.g. "sig-1a2b3c4d"). NEVER the raw platform address — the VTA never learns the phone number / chat id.
|
|
38
|
+
*/
|
|
39
|
+
conversationRef: string;
|
|
40
|
+
/**
|
|
41
|
+
* The interaction kind: a 1:1 direct message, a multi-party group, or a broadcast channel.
|
|
42
|
+
*/
|
|
43
|
+
kind: "dm" | "group" | "channel";
|
|
44
|
+
/**
|
|
45
|
+
* VID (DID) of the AI agent the conversation would reach.
|
|
46
|
+
*/
|
|
47
|
+
agent: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 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.
|
|
51
|
+
*/
|
|
52
|
+
export interface Ext {
|
|
53
|
+
[k: string]: unknown | undefined;
|
|
54
|
+
}
|
|
55
|
+
/** Trust Task type URI. */
|
|
56
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/consent/decision/1.0";
|
|
57
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
58
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/consent/decision/1.0#response";
|
|
59
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/consent/decision/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,kDAA2D,CAAC;AAEpF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,2DAAoE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/decision/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/consent/decision/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/consent/decision/1.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/consent/decision/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,kDAA2D,CAAC;AAEpF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,2DAAoE,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/list/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A bridge fetches the consent grants it should enforce.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsentListPayload {
|
|
9
|
+
/**
|
|
10
|
+
* Optional. Restrict to grants for this agent VID.
|
|
11
|
+
*/
|
|
12
|
+
agent?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional. Restrict to this platform tag.
|
|
15
|
+
*/
|
|
16
|
+
platform?: string;
|
|
17
|
+
subject?: ConsentSubject;
|
|
18
|
+
/**
|
|
19
|
+
* Optional opaque cursor; return only grants changed after it.
|
|
20
|
+
*/
|
|
21
|
+
since?: string;
|
|
22
|
+
ext?: Ext;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Optional. A full subject, to point-check a single conversation.
|
|
26
|
+
*/
|
|
27
|
+
export interface ConsentSubject {
|
|
28
|
+
/**
|
|
29
|
+
* Messaging-platform tag, e.g. "signal", "whatsapp", "slack".
|
|
30
|
+
*/
|
|
31
|
+
platform: string;
|
|
32
|
+
/**
|
|
33
|
+
* The bridge's OPAQUE conversation handle (e.g. "sig-1a2b3c4d"). NEVER the raw platform address — the VTA never learns the phone number / chat id.
|
|
34
|
+
*/
|
|
35
|
+
conversationRef: string;
|
|
36
|
+
/**
|
|
37
|
+
* The interaction kind: a 1:1 direct message, a multi-party group, or a broadcast channel.
|
|
38
|
+
*/
|
|
39
|
+
kind: "dm" | "group" | "channel";
|
|
40
|
+
/**
|
|
41
|
+
* VID (DID) of the AI agent the conversation would reach.
|
|
42
|
+
*/
|
|
43
|
+
agent: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
*/
|
|
48
|
+
export interface Ext {
|
|
49
|
+
[k: string]: unknown | undefined;
|
|
50
|
+
}
|
|
51
|
+
/** Trust Task type URI. */
|
|
52
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/consent/list/1.0";
|
|
53
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
54
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/consent/list/1.0#response";
|
|
55
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/consent/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,8CAAuD,CAAC;AAEhF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,uDAAgE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/list/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/consent/list/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/consent/list/1.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/consent/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAiDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,8CAAuD,CAAC;AAEhF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,uDAAgE,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/request/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A bridge asks the VTA whether an inbound conversation may reach an AI agent, prompting operator consent on first contact.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsentRequestPayload {
|
|
9
|
+
subject: ConsentSubject;
|
|
10
|
+
/**
|
|
11
|
+
* The access the bridge seeks for the agent on this conversation.
|
|
12
|
+
*/
|
|
13
|
+
scope: "receive" | "converse";
|
|
14
|
+
/**
|
|
15
|
+
* base64url-encoded nonce (≥128 bits entropy) echoed by the matching consent/decision, so the bridge can correlate the decision to this request.
|
|
16
|
+
*/
|
|
17
|
+
challenge: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional operator-facing label (e.g. "Signal group 'Family'"). MUST NOT contain a raw platform address.
|
|
20
|
+
*/
|
|
21
|
+
displayHint?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Optional multihash digest of the held first message, binding the request to concrete content.
|
|
24
|
+
*/
|
|
25
|
+
firstMessageDigest?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional VTA context path the bridge runs under, to scope approver resolution.
|
|
28
|
+
*/
|
|
29
|
+
contextHint?: string;
|
|
30
|
+
ext?: Ext;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The platform-agnostic identifier of WHAT is being consented to: one conversation, for one agent.
|
|
34
|
+
*/
|
|
35
|
+
export interface ConsentSubject {
|
|
36
|
+
/**
|
|
37
|
+
* Messaging-platform tag, e.g. "signal", "whatsapp", "slack".
|
|
38
|
+
*/
|
|
39
|
+
platform: string;
|
|
40
|
+
/**
|
|
41
|
+
* The bridge's OPAQUE conversation handle (e.g. "sig-1a2b3c4d"). NEVER the raw platform address — the VTA never learns the phone number / chat id.
|
|
42
|
+
*/
|
|
43
|
+
conversationRef: string;
|
|
44
|
+
/**
|
|
45
|
+
* The interaction kind: a 1:1 direct message, a multi-party group, or a broadcast channel.
|
|
46
|
+
*/
|
|
47
|
+
kind: "dm" | "group" | "channel";
|
|
48
|
+
/**
|
|
49
|
+
* VID (DID) of the AI agent the conversation would reach.
|
|
50
|
+
*/
|
|
51
|
+
agent: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 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.
|
|
55
|
+
*/
|
|
56
|
+
export interface Ext {
|
|
57
|
+
[k: string]: unknown | undefined;
|
|
58
|
+
}
|
|
59
|
+
/** Trust Task type URI. */
|
|
60
|
+
export declare const TYPE_URI: "https://trusttasks.org/spec/consent/request/1.0";
|
|
61
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
62
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/consent/request/1.0#response";
|
|
63
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/consent/request/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,iDAA0D,CAAC;AAEnF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,0DAAmE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/request/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/consent/request/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/consent/request/1.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/consent/request/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,iDAA0D,CAAC;AAEnF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,0DAAmE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/revoke/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* An operator revokes a standing consent grant.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsentRevokePayload {
|
|
9
|
+
subject: ConsentSubject;
|
|
10
|
+
/**
|
|
11
|
+
* Optional operator note recorded in the audit trail.
|
|
12
|
+
*/
|
|
13
|
+
reason?: string;
|
|
14
|
+
ext?: Ext;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The platform-agnostic identifier of WHAT is being consented to: one conversation, for one agent.
|
|
18
|
+
*/
|
|
19
|
+
export interface ConsentSubject {
|
|
20
|
+
/**
|
|
21
|
+
* Messaging-platform tag, e.g. "signal", "whatsapp", "slack".
|
|
22
|
+
*/
|
|
23
|
+
platform: string;
|
|
24
|
+
/**
|
|
25
|
+
* The bridge's OPAQUE conversation handle (e.g. "sig-1a2b3c4d"). NEVER the raw platform address — the VTA never learns the phone number / chat id.
|
|
26
|
+
*/
|
|
27
|
+
conversationRef: string;
|
|
28
|
+
/**
|
|
29
|
+
* The interaction kind: a 1:1 direct message, a multi-party group, or a broadcast channel.
|
|
30
|
+
*/
|
|
31
|
+
kind: "dm" | "group" | "channel";
|
|
32
|
+
/**
|
|
33
|
+
* VID (DID) of the AI agent the conversation would reach.
|
|
34
|
+
*/
|
|
35
|
+
agent: string;
|
|
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/consent/revoke/1.0";
|
|
45
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
46
|
+
export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/consent/revoke/1.0#response";
|
|
47
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/consent/revoke/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,gDAAyD,CAAC;AAElF,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,yDAAkE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/consent/revoke/1.0/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/consent/revoke/1.0";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/consent/revoke/1.0#response";
|
|
9
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../src/consent/revoke/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,gDAAyD,CAAC;AAElF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,yDAAkE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -30,8 +30,16 @@ export * as AuthStepUpApproveResponse_v0_2 from "./auth/step-up/approve-response
|
|
|
30
30
|
export * as AuthStepUpPolicy_v0_1 from "./auth/step-up/policy/0.1/payload";
|
|
31
31
|
export * as AuthStepUpPolicy_v0_2 from "./auth/step-up/policy/0.2/payload";
|
|
32
32
|
export * as AuthWhoami_v0_1 from "./auth/whoami/0.1/payload";
|
|
33
|
+
export * as ChatMessage_v0_1 from "./chat/message/0.1/payload";
|
|
33
34
|
export * as ConfirmRequest_v0_1 from "./confirm/request/0.1/payload";
|
|
34
35
|
export * as ConfirmResponse_v0_1 from "./confirm/response/0.1/payload";
|
|
36
|
+
export * as ConsentShared_v0_1 from "./consent/_shared/0.1/consent";
|
|
37
|
+
export * as ConsentApproverList_v1_0 from "./consent/approver-list/1.0/payload";
|
|
38
|
+
export * as ConsentApproverSet_v1_0 from "./consent/approver-set/1.0/payload";
|
|
39
|
+
export * as ConsentDecision_v1_0 from "./consent/decision/1.0/payload";
|
|
40
|
+
export * as ConsentList_v1_0 from "./consent/list/1.0/payload";
|
|
41
|
+
export * as ConsentRequest_v1_0 from "./consent/request/1.0/payload";
|
|
42
|
+
export * as ConsentRevoke_v1_0 from "./consent/revoke/1.0/payload";
|
|
35
43
|
export * as DeviceBindingShared_v0_1 from "./device/_shared/0.1/device-binding";
|
|
36
44
|
export * as DeviceBindingShared_v0_2 from "./device/_shared/0.2/device-binding";
|
|
37
45
|
export * as DeviceDisable_v0_1 from "./device/disable/0.1/payload";
|
|
@@ -74,6 +82,21 @@ export * as DidManagementRegistryDeregister_v0_1 from "./did-management/registry
|
|
|
74
82
|
export * as DidManagementServerHealth_v0_1 from "./did-management/server/health/0.1/payload";
|
|
75
83
|
export * as DidManagementServerRegister_v0_1 from "./did-management/server/register/0.1/payload";
|
|
76
84
|
export * as DidManagementServerStatsSync_v0_1 from "./did-management/server/stats-sync/0.1/payload";
|
|
85
|
+
export * as MessagingShared_v0_1 from "./messaging/_shared/0.1/messaging";
|
|
86
|
+
export * as MessagingAccessListAdd_v0_1 from "./messaging/access-list/add/0.1/payload";
|
|
87
|
+
export * as MessagingAccessListClear_v0_1 from "./messaging/access-list/clear/0.1/payload";
|
|
88
|
+
export * as MessagingAccessListGet_v0_1 from "./messaging/access-list/get/0.1/payload";
|
|
89
|
+
export * as MessagingAccessListList_v0_1 from "./messaging/access-list/list/0.1/payload";
|
|
90
|
+
export * as MessagingAccessListRemove_v0_1 from "./messaging/access-list/remove/0.1/payload";
|
|
91
|
+
export * as MessagingAccountAdd_v0_1 from "./messaging/account/add/0.1/payload";
|
|
92
|
+
export * as MessagingAccountChangeQueueLimits_v0_1 from "./messaging/account/change-queue-limits/0.1/payload";
|
|
93
|
+
export * as MessagingAccountChangeType_v0_1 from "./messaging/account/change-type/0.1/payload";
|
|
94
|
+
export * as MessagingAccountGet_v0_1 from "./messaging/account/get/0.1/payload";
|
|
95
|
+
export * as MessagingAccountList_v0_1 from "./messaging/account/list/0.1/payload";
|
|
96
|
+
export * as MessagingAccountRemove_v0_1 from "./messaging/account/remove/0.1/payload";
|
|
97
|
+
export * as MessagingAclGet_v0_1 from "./messaging/acl/get/0.1/payload";
|
|
98
|
+
export * as MessagingAclSet_v0_1 from "./messaging/acl/set/0.1/payload";
|
|
99
|
+
export * as MessagingPing_v0_1 from "./messaging/ping/0.1/payload";
|
|
77
100
|
export * as PolicyShared_v0_1 from "./policy/_shared/0.1/policy";
|
|
78
101
|
export * as PolicyShared_v0_2 from "./policy/_shared/0.2/policy";
|
|
79
102
|
export * as PolicyDelete_v0_1 from "./policy/delete/0.1/payload";
|
|
@@ -126,6 +149,18 @@ export * as VaultUpsert_v0_2 from "./vault/upsert/0.2/payload";
|
|
|
126
149
|
export * as VaultUsage_v0_1 from "./vault/usage/0.1/payload";
|
|
127
150
|
export * as VaultUsage_v0_2 from "./vault/usage/0.2/payload";
|
|
128
151
|
export * as PasskeyVmShared_v0_1 from "./vta/_shared/0.1/passkey-vm";
|
|
152
|
+
export * as VtaContextsDidTemplatesCreate_v1_0 from "./vta/contexts/did-templates/create/1.0/payload";
|
|
153
|
+
export * as VtaContextsDidTemplatesDelete_v1_0 from "./vta/contexts/did-templates/delete/1.0/payload";
|
|
154
|
+
export * as VtaContextsDidTemplatesGet_v1_0 from "./vta/contexts/did-templates/get/1.0/payload";
|
|
155
|
+
export * as VtaContextsDidTemplatesList_v1_0 from "./vta/contexts/did-templates/list/1.0/payload";
|
|
156
|
+
export * as VtaContextsDidTemplatesRender_v1_0 from "./vta/contexts/did-templates/render/1.0/payload";
|
|
157
|
+
export * as VtaContextsDidTemplatesUpdate_v1_0 from "./vta/contexts/did-templates/update/1.0/payload";
|
|
158
|
+
export * as VtaDidTemplatesCreate_v1_0 from "./vta/did-templates/create/1.0/payload";
|
|
159
|
+
export * as VtaDidTemplatesDelete_v1_0 from "./vta/did-templates/delete/1.0/payload";
|
|
160
|
+
export * as VtaDidTemplatesGet_v1_0 from "./vta/did-templates/get/1.0/payload";
|
|
161
|
+
export * as VtaDidTemplatesList_v1_0 from "./vta/did-templates/list/1.0/payload";
|
|
162
|
+
export * as VtaDidTemplatesRender_v1_0 from "./vta/did-templates/render/1.0/payload";
|
|
163
|
+
export * as VtaDidTemplatesUpdate_v1_0 from "./vta/did-templates/update/1.0/payload";
|
|
129
164
|
export * as VtaPasskeyVmsEnrollChallenge_v0_1 from "./vta/passkey-vms/enroll-challenge/0.1/payload";
|
|
130
165
|
export * as VtaPasskeyVmsEnrollSubmit_v0_1 from "./vta/passkey-vms/enroll-submit/0.1/payload";
|
|
131
166
|
export * as VtaPasskeyVmsList_v0_1 from "./vta/passkey-vms/list/0.1/payload";
|