@altnovatrail/spec 0.8.3 → 0.8.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.
@@ -1264,7 +1264,7 @@ export interface IndexVector {
1264
1264
  * The versions that the release withdraws from publication, by module ID and version. A release
1265
1265
  * that withdraws none leaves this field out.
1266
1266
  */
1267
- readonly withdrawals?: Readonly<Record<ModuleID, Readonly<Record<ModuleVersion, WithdrawalReason>>>>;
1267
+ readonly withdrawals?: Withdrawals;
1268
1268
  /**
1269
1269
  * The index that the release builds, when it builds one.
1270
1270
  */
@@ -1369,6 +1369,16 @@ export type AnchorSkillID = string;
1369
1369
  */
1370
1370
  export type WithdrawalReason = "wrong_key" | "answer_leak" | "unsuitable_content";
1371
1371
 
1372
+ /**
1373
+ * Withdrawals is the type of module-index.schema.json#/$defs/withdrawals.
1374
+ *
1375
+ * The withdrawals of a release of modules, which the build of its index marks (section 26 of the
1376
+ * format text): under each module's ID, under each version it withdraws, the reason of the
1377
+ * withdrawal. modules keeps them in a file of its own, and a test vector of the index in its member
1378
+ * withdrawals. A release that withdraws none has no withdrawals, rather than an empty object.
1379
+ */
1380
+ export type Withdrawals = Readonly<Record<ModuleID, Readonly<Record<ModuleVersion, WithdrawalReason>>>>;
1381
+
1372
1382
  // The types of inventory.schema.json.
1373
1383
 
1374
1384
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altnovatrail/spec",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "The types of NovaTrail's module format for TypeScript, generated from its schemas: the parts of a module and their open views, the canonical view, the inventory, the module index and the test vectors. And the types of the element <novatrail-canvas>, the contract of the canvas and the app. And the types of the admission table, which says which AI provider may serve which age category.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {