@openvtc/trust-tasks 0.22.7 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/dist/git-ns/activity/list/0.1/payload.d.ts +21 -0
- package/dist/git-ns/activity/list/0.1/payload.d.ts.map +1 -1
- package/dist/git-ns/activity/list/0.1/payload.js +8 -0
- package/dist/git-ns/activity/list/0.1/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/git-ns/activity/list/0.1/payload.ts +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,39 @@ The package versions over **its own API** — what a consumer compiles against
|
|
|
11
11
|
not over `SPEC.md`. Below 1.0 a breaking change bumps the leading non-zero
|
|
12
12
|
component.
|
|
13
13
|
|
|
14
|
+
## 0.23.0 — 2026-10-03
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Specifications
|
|
18
|
+
|
|
19
|
+
- **git-ns**: Activity/list 0.1 declares the `source` its ActivityItem requires (#718)
|
|
20
|
+
|
|
21
|
+
`$defs/ActivityItem` listed `source` in `required` but defined no `source`
|
|
22
|
+
property, under `additionalProperties: false`. No item could validate, so no
|
|
23
|
+
non-empty `git-ns/activity/list/0.1#response` could either: a consumer that
|
|
24
|
+
validates rejected every conforming response. The `Source` enum (`audit` |
|
|
25
|
+
`job`) was defined in `$defs` but never referenced. The spec prose, its
|
|
26
|
+
examples and the one implementation (the VTC) all carry `source`; only the
|
|
27
|
+
schema lost it. The property now references `#/$defs/Source`.
|
|
28
|
+
|
|
29
|
+
The spec is a draft and the change makes the schema accept the wire its prose
|
|
30
|
+
and implementation already use, so it is edited in place (SPEC §5.2).
|
|
31
|
+
|
|
32
|
+
The registry's unsatisfiable-schema lint (added after
|
|
33
|
+
`provision/integration/0.3`, #326) checked only the root and
|
|
34
|
+
`$defs.Response`, so an item definition reached through `Response.items`
|
|
35
|
+
went unseen. It now walks every subschema closed by
|
|
36
|
+
`additionalProperties: false`; against main it reports exactly this defect
|
|
37
|
+
and nothing else.
|
|
38
|
+
|
|
39
|
+
Breaking for Rust: the generated `ActivityItem.source` was an untyped
|
|
40
|
+
`serde_json::Value` (the codegen's fallback for a required member with no
|
|
41
|
+
schema) and is now the generated `Source` enum. Go and Dart gain a typed
|
|
42
|
+
`source` field; TypeScript gains it on the interface and the embedded schema.
|
|
43
|
+
|
|
44
|
+
Reported by the VTA browser plugin's schema-satisfiability test against
|
|
45
|
+
@openvtc/trust-tasks 0.22.7.
|
|
46
|
+
|
|
14
47
|
## 0.22.7 — 2026-10-02
|
|
15
48
|
|
|
16
49
|
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
* Source: specs/git-ns/activity/list/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
5
|
import type { Did_GitNsV0_3 as Did, Ext, NamespaceId, Resource, Right } from "../../../../_shared/components.js";
|
|
6
|
+
/**
|
|
7
|
+
* Where the item came from: an audit row or a bridge job.
|
|
8
|
+
*/
|
|
9
|
+
export type Source = "audit" | "job";
|
|
6
10
|
/**
|
|
7
11
|
* A namespace's administrators list recent rights changes, drift reports and bridge jobs in the namespaces they administer — every namespace, for a community administrator. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
8
12
|
*/
|
|
@@ -47,6 +51,7 @@ export interface ActivityItem {
|
|
|
47
51
|
* What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.
|
|
48
52
|
*/
|
|
49
53
|
action: string;
|
|
54
|
+
source: Source;
|
|
50
55
|
/**
|
|
51
56
|
* The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).
|
|
52
57
|
*/
|
|
@@ -143,6 +148,10 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
143
148
|
readonly pattern: "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$";
|
|
144
149
|
readonly description: "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.";
|
|
145
150
|
};
|
|
151
|
+
readonly source: {
|
|
152
|
+
readonly $ref: "#/$defs/Source";
|
|
153
|
+
readonly description: "Where the item came from: an audit row or a bridge job.";
|
|
154
|
+
};
|
|
146
155
|
readonly namespace: {
|
|
147
156
|
readonly $ref: "#/$defs/NamespaceId";
|
|
148
157
|
readonly description: "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).";
|
|
@@ -263,6 +272,10 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
263
272
|
readonly pattern: "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$";
|
|
264
273
|
readonly description: "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.";
|
|
265
274
|
};
|
|
275
|
+
readonly source: {
|
|
276
|
+
readonly $ref: "#/$defs/Source";
|
|
277
|
+
readonly description: "Where the item came from: an audit row or a bridge job.";
|
|
278
|
+
};
|
|
266
279
|
readonly namespace: {
|
|
267
280
|
readonly $ref: "#/$defs/NamespaceId";
|
|
268
281
|
readonly description: "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).";
|
|
@@ -417,6 +430,10 @@ export declare const SPEC: {
|
|
|
417
430
|
readonly pattern: "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$";
|
|
418
431
|
readonly description: "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.";
|
|
419
432
|
};
|
|
433
|
+
readonly source: {
|
|
434
|
+
readonly $ref: "#/$defs/Source";
|
|
435
|
+
readonly description: "Where the item came from: an audit row or a bridge job.";
|
|
436
|
+
};
|
|
420
437
|
readonly namespace: {
|
|
421
438
|
readonly $ref: "#/$defs/NamespaceId";
|
|
422
439
|
readonly description: "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).";
|
|
@@ -548,6 +565,10 @@ export declare const RESPONSE_SPEC: {
|
|
|
548
565
|
readonly pattern: "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$";
|
|
549
566
|
readonly description: "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.";
|
|
550
567
|
};
|
|
568
|
+
readonly source: {
|
|
569
|
+
readonly $ref: "#/$defs/Source";
|
|
570
|
+
readonly description: "Where the item came from: an audit row or a bridge job.";
|
|
571
|
+
};
|
|
551
572
|
readonly namespace: {
|
|
552
573
|
readonly $ref: "#/$defs/NamespaceId";
|
|
553
574
|
readonly description: "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/git-ns/activity/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAA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,MAAM,QAAQ,GAAG,wCAAwC,CAAC;AAEhE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/git-ns/activity/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,IAAI,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAGjH;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD;;OAEG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED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74,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
74
74
|
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$",
|
|
75
75
|
"description": "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it."
|
|
76
76
|
},
|
|
77
|
+
"source": {
|
|
78
|
+
"$ref": "#/$defs/Source",
|
|
79
|
+
"description": "Where the item came from: an audit row or a bridge job."
|
|
80
|
+
},
|
|
77
81
|
"namespace": {
|
|
78
82
|
"$ref": "#/$defs/NamespaceId",
|
|
79
83
|
"description": "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only)."
|
|
@@ -212,6 +216,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
212
216
|
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$",
|
|
213
217
|
"description": "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it."
|
|
214
218
|
},
|
|
219
|
+
"source": {
|
|
220
|
+
"$ref": "#/$defs/Source",
|
|
221
|
+
"description": "Where the item came from: an audit row or a bridge job."
|
|
222
|
+
},
|
|
215
223
|
"namespace": {
|
|
216
224
|
"$ref": "#/$defs/NamespaceId",
|
|
217
225
|
"description": "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only)."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/git-ns/activity/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/git-ns/activity/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoFH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,sDAA+D,CAAC;AAKxF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,+DAAwE,CAAC;AAK1G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,sDAAsD;IAC7D,OAAO,EAAE,0CAA0C;IACnD,aAAa,EAAE,ySAAyS;IACxT,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,WAAW,EAAE;YACX,MAAM,EAAE,qBAAqB;YAC7B,aAAa,EAAE,wEAAwE;SACxF;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,sMAAsM;SACtN;QACD,OAAO,EAAE;YACP,MAAM,EAAE,SAAS;YACjB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;YACd,aAAa,EAAE,8EAA8E;SAC9F;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,QAAQ,EAAE;YACR,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,OAAO;gBACP,KAAK;aACN;YACD,aAAa,EAAE,iJAAiJ;SACjK;QACD,cAAc,EAAE;YACd,OAAO,EAAE,cAAc;YACvB,aAAa,EAAE,yCAAyC;YACxD,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,IAAI;gBACJ,QAAQ;gBACR,QAAQ;aACT;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE;oBACJ,MAAM,EAAE,QAAQ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Ae,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
import type { Did_GitNsV0_3 as Did, Ext, NamespaceId, Resource, Right } from "../../../../_shared/components.js";
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Where the item came from: an audit row or a bridge job.
|
|
11
|
+
*/
|
|
12
|
+
export type Source = "audit" | "job";
|
|
13
|
+
|
|
9
14
|
/**
|
|
10
15
|
* A namespace's administrators list recent rights changes, drift reports and bridge jobs in the namespaces they administer — every namespace, for a community administrator. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
16
|
*/
|
|
@@ -50,6 +55,7 @@ export interface ActivityItem {
|
|
|
50
55
|
* What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it.
|
|
51
56
|
*/
|
|
52
57
|
action: string;
|
|
58
|
+
source: Source;
|
|
53
59
|
/**
|
|
54
60
|
* The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only).
|
|
55
61
|
*/
|
|
@@ -159,6 +165,10 @@ export const PAYLOAD_SCHEMA = {
|
|
|
159
165
|
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$",
|
|
160
166
|
"description": "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it."
|
|
161
167
|
},
|
|
168
|
+
"source": {
|
|
169
|
+
"$ref": "#/$defs/Source",
|
|
170
|
+
"description": "Where the item came from: an audit row or a bridge job."
|
|
171
|
+
},
|
|
162
172
|
"namespace": {
|
|
163
173
|
"$ref": "#/$defs/NamespaceId",
|
|
164
174
|
"description": "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only)."
|
|
@@ -298,6 +308,10 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
298
308
|
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(\\.[a-zA-Z][a-zA-Z0-9]*)*$",
|
|
299
309
|
"description": "What happened: `gitNs.right.granted`, `gitNs.repo.renamed`, `gitNs.drift.reported`, `gitNs.job.createRepo`, and so on. Not a closed enumeration — a VTC MAY add its own dot-separated `gitNs.*` actions, and a consumer MUST treat one it does not recognise as an opaque activity item rather than failing to parse it."
|
|
300
310
|
},
|
|
311
|
+
"source": {
|
|
312
|
+
"$ref": "#/$defs/Source",
|
|
313
|
+
"description": "Where the item came from: an audit row or a bridge job."
|
|
314
|
+
},
|
|
301
315
|
"namespace": {
|
|
302
316
|
"$ref": "#/$defs/NamespaceId",
|
|
303
317
|
"description": "The namespace the item belongs to. Absent only for a community-wide audit row from before any namespace was unbound (visible to a community administrator with no `namespace` filter only)."
|