@openvtc/trust-tasks 0.23.1 → 0.23.3
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 +58 -0
- package/dist/_shared/components.d.ts +8 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/git-ns/bridge/event/0.4/payload.d.ts +1898 -0
- package/dist/git-ns/bridge/event/0.4/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/event/0.4/payload.js +1085 -0
- package/dist/git-ns/bridge/event/0.4/payload.js.map +1 -0
- package/dist/git-ns/bridge/job/0.5/payload.d.ts +1106 -0
- package/dist/git-ns/bridge/job/0.5/payload.d.ts.map +1 -0
- package/dist/git-ns/bridge/job/0.5/payload.js +594 -0
- package/dist/git-ns/bridge/job/0.5/payload.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/vtc/admin/events/_shared/0.1/topic.d.ts +27 -0
- package/dist/vtc/admin/events/_shared/0.1/topic.d.ts.map +1 -0
- package/dist/vtc/admin/events/_shared/0.1/topic.js +6 -0
- package/dist/vtc/admin/events/_shared/0.1/topic.js.map +1 -0
- package/dist/vtc/admin/events/event/0.1/payload.d.ts +172 -0
- package/dist/vtc/admin/events/event/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/event/0.1/payload.js +99 -0
- package/dist/vtc/admin/events/event/0.1/payload.js.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.1/payload.d.ts +409 -0
- package/dist/vtc/admin/events/subscribe/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/admin/events/subscribe/0.1/payload.js +230 -0
- package/dist/vtc/admin/events/subscribe/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +8 -0
- package/src/git-ns/bridge/event/0.4/payload.ts +1283 -0
- package/src/git-ns/bridge/job/0.5/payload.ts +728 -0
- package/src/index.ts +5 -0
- package/src/vtc/admin/events/_shared/0.1/topic.ts +28 -0
- package/src/vtc/admin/events/event/0.1/payload.ts +133 -0
- package/src/vtc/admin/events/subscribe/0.1/payload.ts +302 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vtc/admin/events/subscribe/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vtc/admin/events/subscribe/0.1";
|
|
7
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
8
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vtc/admin/events/subscribe/0.1#response";
|
|
9
|
+
/**
|
|
10
|
+
* This specification's payload schema, as a value.
|
|
11
|
+
*
|
|
12
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
13
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
14
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
15
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
16
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
17
|
+
*/
|
|
18
|
+
export const PAYLOAD_SCHEMA = {
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"$id": "https://trusttasks.org/spec/vtc/admin/events/subscribe/0.1",
|
|
21
|
+
"title": "VTC Admin Events — Subscribe — payload",
|
|
22
|
+
"description": "Open an administrator console's live channel of hint-only events. The success response is the first document on a stream that then carries vtc/admin/events/event/0.1 documents; over HTTPS that stream is the streamed response of bindings/https/0.3 §2.1. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"topics"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"topics": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"minItems": 1,
|
|
32
|
+
"maxItems": 6,
|
|
33
|
+
"uniqueItems": true,
|
|
34
|
+
"items": {
|
|
35
|
+
"$ref": "#/$defs/Topic"
|
|
36
|
+
},
|
|
37
|
+
"description": "The topics the console renders. The community narrows this to the topics the caller may read and reports the result as the response's `topics`."
|
|
38
|
+
},
|
|
39
|
+
"since": {
|
|
40
|
+
"$ref": "#/$defs/ResumeToken",
|
|
41
|
+
"description": "The last `resumeToken` the console received on an earlier stream, to resume from. A token the community does not recognise, has expired, or minted for another caller is not an error: the stream starts fresh and the response says `resumed: false`."
|
|
42
|
+
},
|
|
43
|
+
"ext": {
|
|
44
|
+
"$ref": "#/$defs/Ext"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"$defs": {
|
|
48
|
+
"Response": {
|
|
49
|
+
"$anchor": "response",
|
|
50
|
+
"title": "VTC Admin Events — Subscribe — response payload",
|
|
51
|
+
"description": "The subscription as granted, sent as the first document on the stream. Failures use trust-task-error and open no stream.",
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": [
|
|
55
|
+
"topics",
|
|
56
|
+
"heartbeatSeconds",
|
|
57
|
+
"resumed",
|
|
58
|
+
"resumeToken"
|
|
59
|
+
],
|
|
60
|
+
"properties": {
|
|
61
|
+
"topics": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"minItems": 1,
|
|
64
|
+
"maxItems": 6,
|
|
65
|
+
"uniqueItems": true,
|
|
66
|
+
"items": {
|
|
67
|
+
"$ref": "#/$defs/Topic"
|
|
68
|
+
},
|
|
69
|
+
"description": "The effective topics: those requested that the caller may read. The community sends events for these and no others. A requested topic missing here is one the caller may not read, and the console MUST NOT present it as live."
|
|
70
|
+
},
|
|
71
|
+
"heartbeatSeconds": {
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"minimum": 5,
|
|
74
|
+
"maximum": 60,
|
|
75
|
+
"description": "The longest the community lets the stream go without sending anything. Over HTTPS the heartbeat is an SSE comment. A console that receives nothing for twice this interval MUST treat the stream as dead."
|
|
76
|
+
},
|
|
77
|
+
"resumed": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"description": "`true` when the community recognised `since` and will send a hint for every effective topic that changed after it. `false` when no `since` was given or it could not be honoured; the console MUST then re-fetch every effective topic, because it may have missed changes."
|
|
80
|
+
},
|
|
81
|
+
"resumeToken": {
|
|
82
|
+
"$ref": "#/$defs/ResumeToken",
|
|
83
|
+
"description": "The stream position as of this response, so that a console that disconnects before its first event still has a token to resume from."
|
|
84
|
+
},
|
|
85
|
+
"ext": {
|
|
86
|
+
"$ref": "#/$defs/Ext"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"Ext": {
|
|
91
|
+
"title": "Ext",
|
|
92
|
+
"description": "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.",
|
|
93
|
+
"type": "object",
|
|
94
|
+
"minProperties": 1,
|
|
95
|
+
"additionalProperties": true,
|
|
96
|
+
"propertyNames": {
|
|
97
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"ResumeToken": {
|
|
101
|
+
"title": "ResumeToken",
|
|
102
|
+
"description": "Opaque, community-minted position in one caller's event stream. A console MUST NOT parse, construct or order it; it only hands the latest one back as `since` when it re-subscribes. A community binds it to the caller it was minted for and treats a token minted for anyone else as unknown.",
|
|
103
|
+
"type": "string",
|
|
104
|
+
"minLength": 1,
|
|
105
|
+
"maxLength": 256,
|
|
106
|
+
"pattern": "^[A-Za-z0-9._~-]+$"
|
|
107
|
+
},
|
|
108
|
+
"Topic": {
|
|
109
|
+
"title": "Topic",
|
|
110
|
+
"description": "One kind of change a console can be told about. A closed set: a topic not listed here is a new MINOR version of this component, not an `ext` member, because each topic is bound to the read that authorizes it.",
|
|
111
|
+
"type": "string",
|
|
112
|
+
"enum": [
|
|
113
|
+
"actions",
|
|
114
|
+
"acknowledgements",
|
|
115
|
+
"joinRequests",
|
|
116
|
+
"members",
|
|
117
|
+
"singleAdminMode",
|
|
118
|
+
"config"
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
124
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
125
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
126
|
+
"$ref": "#/$defs/Response",
|
|
127
|
+
"$defs": {
|
|
128
|
+
"Response": {
|
|
129
|
+
"$anchor": "response",
|
|
130
|
+
"title": "VTC Admin Events — Subscribe — response payload",
|
|
131
|
+
"description": "The subscription as granted, sent as the first document on the stream. Failures use trust-task-error and open no stream.",
|
|
132
|
+
"type": "object",
|
|
133
|
+
"additionalProperties": false,
|
|
134
|
+
"required": [
|
|
135
|
+
"topics",
|
|
136
|
+
"heartbeatSeconds",
|
|
137
|
+
"resumed",
|
|
138
|
+
"resumeToken"
|
|
139
|
+
],
|
|
140
|
+
"properties": {
|
|
141
|
+
"topics": {
|
|
142
|
+
"type": "array",
|
|
143
|
+
"minItems": 1,
|
|
144
|
+
"maxItems": 6,
|
|
145
|
+
"uniqueItems": true,
|
|
146
|
+
"items": {
|
|
147
|
+
"$ref": "#/$defs/Topic"
|
|
148
|
+
},
|
|
149
|
+
"description": "The effective topics: those requested that the caller may read. The community sends events for these and no others. A requested topic missing here is one the caller may not read, and the console MUST NOT present it as live."
|
|
150
|
+
},
|
|
151
|
+
"heartbeatSeconds": {
|
|
152
|
+
"type": "integer",
|
|
153
|
+
"minimum": 5,
|
|
154
|
+
"maximum": 60,
|
|
155
|
+
"description": "The longest the community lets the stream go without sending anything. Over HTTPS the heartbeat is an SSE comment. A console that receives nothing for twice this interval MUST treat the stream as dead."
|
|
156
|
+
},
|
|
157
|
+
"resumed": {
|
|
158
|
+
"type": "boolean",
|
|
159
|
+
"description": "`true` when the community recognised `since` and will send a hint for every effective topic that changed after it. `false` when no `since` was given or it could not be honoured; the console MUST then re-fetch every effective topic, because it may have missed changes."
|
|
160
|
+
},
|
|
161
|
+
"resumeToken": {
|
|
162
|
+
"$ref": "#/$defs/ResumeToken",
|
|
163
|
+
"description": "The stream position as of this response, so that a console that disconnects before its first event still has a token to resume from."
|
|
164
|
+
},
|
|
165
|
+
"ext": {
|
|
166
|
+
"$ref": "#/$defs/Ext"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"Ext": {
|
|
171
|
+
"title": "Ext",
|
|
172
|
+
"description": "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.",
|
|
173
|
+
"type": "object",
|
|
174
|
+
"minProperties": 1,
|
|
175
|
+
"additionalProperties": true,
|
|
176
|
+
"propertyNames": {
|
|
177
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"ResumeToken": {
|
|
181
|
+
"title": "ResumeToken",
|
|
182
|
+
"description": "Opaque, community-minted position in one caller's event stream. A console MUST NOT parse, construct or order it; it only hands the latest one back as `since` when it re-subscribes. A community binds it to the caller it was minted for and treats a token minted for anyone else as unknown.",
|
|
183
|
+
"type": "string",
|
|
184
|
+
"minLength": 1,
|
|
185
|
+
"maxLength": 256,
|
|
186
|
+
"pattern": "^[A-Za-z0-9._~-]+$"
|
|
187
|
+
},
|
|
188
|
+
"Topic": {
|
|
189
|
+
"title": "Topic",
|
|
190
|
+
"description": "One kind of change a console can be told about. A closed set: a topic not listed here is a new MINOR version of this component, not an `ext` member, because each topic is bound to the read that authorizes it.",
|
|
191
|
+
"type": "string",
|
|
192
|
+
"enum": [
|
|
193
|
+
"actions",
|
|
194
|
+
"acknowledgements",
|
|
195
|
+
"joinRequests",
|
|
196
|
+
"members",
|
|
197
|
+
"singleAdminMode",
|
|
198
|
+
"config"
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
205
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
206
|
+
* per-specification and cannot be derived from the document alone, and
|
|
207
|
+
* item 2 needs the schema this carries.
|
|
208
|
+
*/
|
|
209
|
+
export const SPEC = {
|
|
210
|
+
typeUri: TYPE_URI,
|
|
211
|
+
isBearer: false,
|
|
212
|
+
isProofRequired: true,
|
|
213
|
+
isRecipientRequired: true,
|
|
214
|
+
isIssuedAtRequired: true,
|
|
215
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
219
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
220
|
+
* parties (§7.3 item 5).
|
|
221
|
+
*/
|
|
222
|
+
export const RESPONSE_SPEC = {
|
|
223
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
224
|
+
isBearer: false,
|
|
225
|
+
isProofRequired: false,
|
|
226
|
+
isRecipientRequired: true,
|
|
227
|
+
isIssuedAtRequired: true,
|
|
228
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
229
|
+
};
|
|
230
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vtc/admin/events/subscribe/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+DH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,4DAAqE,CAAC;AAK9F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAA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a,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,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -637,6 +637,10 @@ export type Resource = string;
|
|
|
637
637
|
* Opaque qualifier naming the part of the maintainer's resources a capability applies to (e.g. `git-ns:github.com/acme`, `git-repo:github.com/acme/r#4211`, `policy:join`). Its grammar and containment rule are the maintainer's: a qualified capability covers the named resource and the resources inside it. A qualifier MUST NOT be read as widening the entry's act scope.
|
|
638
638
|
*/
|
|
639
639
|
export type ResourceQualifier = string;
|
|
640
|
+
/**
|
|
641
|
+
* Opaque, community-minted position in one caller's event stream. A console MUST NOT parse, construct or order it; it only hands the latest one back as `since` when it re-subscribes. A community binds it to the caller it was minted for and treats a token minted for anyone else as unknown.
|
|
642
|
+
*/
|
|
643
|
+
export type ResumeToken = string;
|
|
640
644
|
/**
|
|
641
645
|
* Whether a room keeps its history readable across a membership change, fixed at creation and immutable thereafter — like `Visibility`, and for the same reason: the rungs of an epoch key chain either exist for an epoch or they do not, and no later change of mind can seal key material that was never sealed or unseal what was already severed. `chained`: each advance produces an `EpochLink`, so every member reads the room's whole retained history however long they have been in it — what a **library** wants, at the cost of post-compromise security for record content, since a compromised current key then reaches every retained epoch. `fromJoin`: no rungs are produced, so a member reads only from the epoch their group state is at — what a **stream** wants, and what a room under a strict forward-secrecy obligation wants, at the cost that a joining member finds an empty-looking room and nobody can reread a record once their group state has moved past the epoch it was sealed under. Absent means `chained`; see the prose on why the absent case is the readable one.
|
|
642
646
|
*/
|
|
@@ -801,6 +805,10 @@ export type SyncEvent_SyncV0_2 =
|
|
|
801
805
|
| VaultDeletedEvent_SyncV0_2
|
|
802
806
|
| AclChangedEvent_SyncV0_2
|
|
803
807
|
| PolicyChangedEvent_SyncV0_2;
|
|
808
|
+
/**
|
|
809
|
+
* One kind of change a console can be told about. A closed set: a topic not listed here is a new MINOR version of this component, not an `ext` member, because each topic is bound to the read that authorizes it.
|
|
810
|
+
*/
|
|
811
|
+
export type Topic = "actions" | "acknowledgements" | "joinRequests" | "members" | "singleAdminMode" | "config";
|
|
804
812
|
/**
|
|
805
813
|
* How the traffic reached or left the mediator. `peerMediator` is mediator-to-mediator forwarding.
|
|
806
814
|
*/
|