@42ch/spoke-schemas 0.1.0-alpha.1 → 0.1.0-alpha.2
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/README.md +19 -0
- package/package.json +2 -3
- package/src/generated/common/common.ts +0 -159
- package/src/generated/common/error-envelope.ts +0 -36
- package/src/generated/common/index.ts +0 -8
- package/src/generated/data/assemble-packet.ts +0 -56
- package/src/generated/data/finding.ts +0 -109
- package/src/generated/data/index.ts +0 -13
- package/src/generated/data/knowledge-entry.ts +0 -111
- package/src/generated/data/relation.ts +0 -60
- package/src/generated/data/rule.ts +0 -103
- package/src/generated/data/source-anchor.ts +0 -52
- package/src/generated/data/timeline-event.ts +0 -151
- package/src/generated/index.ts +0 -9
- package/src/generated/ops/assemble-request.ts +0 -60
- package/src/generated/ops/assemble-response.ts +0 -109
- package/src/generated/ops/check-request.ts +0 -165
- package/src/generated/ops/check-response.ts +0 -165
- package/src/generated/ops/compute-request.ts +0 -41
- package/src/generated/ops/compute-response.ts +0 -90
- package/src/generated/ops/index.ts +0 -20
- package/src/generated/ops/project-request.ts +0 -37
- package/src/generated/ops/project-response.ts +0 -83
- package/src/generated/ops/promote-request.ts +0 -132
- package/src/generated/ops/promote-response.ts +0 -168
- package/src/generated/ops/relate-request.ts +0 -77
- package/src/generated/ops/relate-response.ts +0 -113
- package/src/generated/ops/upsert-request.ts +0 -137
- package/src/generated/ops/upsert-response.ts +0 -185
- package/src/index.ts +0 -4
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @42ch/spoke-schemas
|
|
2
|
+
|
|
3
|
+
Generated TypeScript wire types for [SPOKE](https://github.com/42ch-dev/spoke) — the Standardized Programmable Ontology Knowledge Engine.
|
|
4
|
+
|
|
5
|
+
Types are produced from the repository JSON Schema SSOT (`schemas/`). Pair with [`@42ch/spoke-operations`](https://www.npmjs.com/package/@42ch/spoke-operations) for pure lifecycle helpers.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @42ch/spoke-schemas
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import type { KnowledgeEntry, TimelineEvent } from "@42ch/spoke-schemas";
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Protocol docs, concepts, and the lockstep SemVer release policy live in the [SPOKE repository](https://github.com/42ch-dev/spoke).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@42ch/spoke-schemas",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "SPOKE wire types — TypeScript generated from JSON Schema",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
|
-
"dist"
|
|
31
|
-
"src"
|
|
30
|
+
"dist"
|
|
32
31
|
],
|
|
33
32
|
"devDependencies": {
|
|
34
33
|
"tsup": "^8.0.0",
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
-
* Source: schemas/
|
|
4
|
-
* Generated by: pnpm run codegen
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Wire schema version (integer >= 1).
|
|
9
|
-
*
|
|
10
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
11
|
-
* via the `definition` "SchemaVersion".
|
|
12
|
-
*/
|
|
13
|
-
export type SchemaVersion = number;
|
|
14
|
-
/**
|
|
15
|
-
* RFC 3339 UTC datetime string.
|
|
16
|
-
*
|
|
17
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
18
|
-
* via the `definition` "Timestamp".
|
|
19
|
-
*/
|
|
20
|
-
export type Timestamp = string;
|
|
21
|
-
/**
|
|
22
|
-
* L5 Timeline projection tier (open string). Core vocabulary (documented, not enforced): brief, narrative, moment. Wire field name timeline_scale — not tier or projection.
|
|
23
|
-
*
|
|
24
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
25
|
-
* via the `definition` "TimelineScale".
|
|
26
|
-
*/
|
|
27
|
-
export type TimelineScale = string;
|
|
28
|
-
/**
|
|
29
|
-
* Opaque world-history branch identity (l5-fork).
|
|
30
|
-
*
|
|
31
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
32
|
-
* via the `definition` "ForkId".
|
|
33
|
-
*/
|
|
34
|
-
export type ForkId = string;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Shared type definitions for SPOKE wire schemas.
|
|
38
|
-
*/
|
|
39
|
-
export interface SPOKECommonTypes {
|
|
40
|
-
[k: string]: unknown | undefined;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Product namespace bag keyed by product-chosen ids matching ^[a-z][a-z0-9_-]*$. Values are opaque JSON objects. Adapters MUST preserve unknown namespaces and keys on round-trip.
|
|
44
|
-
*
|
|
45
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
46
|
-
* via the `definition` "ExtensionMap".
|
|
47
|
-
*/
|
|
48
|
-
export interface ExtensionMap {
|
|
49
|
-
[k: string]:
|
|
50
|
-
| {
|
|
51
|
-
[k: string]: unknown | undefined;
|
|
52
|
-
}
|
|
53
|
-
| undefined;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
57
|
-
* via the `definition` "SourceSpan".
|
|
58
|
-
*/
|
|
59
|
-
export interface SourceSpan {
|
|
60
|
-
/**
|
|
61
|
-
* Start offset (inclusive).
|
|
62
|
-
*/
|
|
63
|
-
start: number;
|
|
64
|
-
/**
|
|
65
|
-
* End offset (exclusive).
|
|
66
|
-
*/
|
|
67
|
-
end: number;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
71
|
-
* via the `definition` "Scope".
|
|
72
|
-
*/
|
|
73
|
-
export interface Scope {
|
|
74
|
-
/**
|
|
75
|
-
* Protocol-neutral opaque selector. Products map World/Book/chapter/manuscript ids via adapters or op extensions.
|
|
76
|
-
*/
|
|
77
|
-
scope_id: string;
|
|
78
|
-
/**
|
|
79
|
-
* Optional narrow scope to explicit KnowledgeEntries.
|
|
80
|
-
*/
|
|
81
|
-
entry_ids?: string[];
|
|
82
|
-
/**
|
|
83
|
-
* Optional filter by open entry_type vocabulary.
|
|
84
|
-
*/
|
|
85
|
-
entry_types?: string[];
|
|
86
|
-
/**
|
|
87
|
-
* Optional narrow scope to explicit L5 TimelineEvent ids.
|
|
88
|
-
*/
|
|
89
|
-
timeline_event_ids?: string[];
|
|
90
|
-
/**
|
|
91
|
-
* Optional provenance or manuscript locator scope.
|
|
92
|
-
*/
|
|
93
|
-
source_id?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Optional L5 tier filter (brief, narrative, moment).
|
|
96
|
-
*/
|
|
97
|
-
timeline_scale?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Optional L5 branch filter — strict equality on TimelineEvent.fork_id (l5-fork).
|
|
100
|
-
*/
|
|
101
|
-
fork_id?: string;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Open map of product-owned computable field names to domain values. Shared by KnowledgeEntry body.state and body.computable under l2-computable. Protocol does not require WASM bytecode or executable artifacts.
|
|
105
|
-
*
|
|
106
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
107
|
-
* via the `definition` "ComputableFieldMap".
|
|
108
|
-
*/
|
|
109
|
-
export interface ComputableFieldMap {
|
|
110
|
-
[k: string]: unknown | undefined;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
114
|
-
* via the `definition` "ComputableLogChange".
|
|
115
|
-
*/
|
|
116
|
-
export interface ComputableLogChange {
|
|
117
|
-
/**
|
|
118
|
-
* Dot-path or JSON Pointer to changed field within body.computable.
|
|
119
|
-
*/
|
|
120
|
-
path: string;
|
|
121
|
-
/**
|
|
122
|
-
* Opaque JSON — value before change.
|
|
123
|
-
*/
|
|
124
|
-
previous?: {
|
|
125
|
-
[k: string]: unknown | undefined;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Opaque JSON — value after change.
|
|
129
|
-
*/
|
|
130
|
-
next?: {
|
|
131
|
-
[k: string]: unknown | undefined;
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* This interface was referenced by `SPOKECommonTypes`'s JSON-Schema
|
|
136
|
-
* via the `definition` "ComputableLogEntry".
|
|
137
|
-
*/
|
|
138
|
-
export interface ComputableLogEntry {
|
|
139
|
-
/**
|
|
140
|
-
* When the computable field change was recorded (RFC 3339).
|
|
141
|
-
*/
|
|
142
|
-
logged_at: string;
|
|
143
|
-
/**
|
|
144
|
-
* KnowledgeEntry id whose computable fields changed.
|
|
145
|
-
*/
|
|
146
|
-
entry_id: string;
|
|
147
|
-
/**
|
|
148
|
-
* Field-level change records within body.computable.
|
|
149
|
-
*/
|
|
150
|
-
changes: ComputableLogChange[];
|
|
151
|
-
/**
|
|
152
|
-
* Opaque Session correlation (matches op session_id when omitted on parent context).
|
|
153
|
-
*/
|
|
154
|
-
session_id?: string;
|
|
155
|
-
/**
|
|
156
|
-
* Human-readable presentation note (presentation only).
|
|
157
|
-
*/
|
|
158
|
-
message?: string;
|
|
159
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
-
* Source: schemas/
|
|
4
|
-
* Generated by: pnpm run codegen
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Shared ops error shape. Ops responses use either a success payload or a top-level error field — not both.
|
|
9
|
-
*/
|
|
10
|
-
export interface ErrorEnvelope {
|
|
11
|
-
/**
|
|
12
|
-
* Machine-readable error code.
|
|
13
|
-
*/
|
|
14
|
-
code: string;
|
|
15
|
-
/**
|
|
16
|
-
* Human-readable error message.
|
|
17
|
-
*/
|
|
18
|
-
message: string;
|
|
19
|
-
/**
|
|
20
|
-
* Optional structured error context.
|
|
21
|
-
*/
|
|
22
|
-
details?: {
|
|
23
|
-
[k: string]: unknown | undefined;
|
|
24
|
-
};
|
|
25
|
-
extensions: ExtensionMap;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Product namespace bag keyed by product-chosen ids matching ^[a-z][a-z0-9_-]*$. Values are opaque JSON objects. Adapters MUST preserve unknown namespaces and keys on round-trip.
|
|
29
|
-
*/
|
|
30
|
-
export interface ExtensionMap {
|
|
31
|
-
[k: string]:
|
|
32
|
-
| {
|
|
33
|
-
[k: string]: unknown | undefined;
|
|
34
|
-
}
|
|
35
|
-
| undefined;
|
|
36
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
-
* Source: schemas/
|
|
4
|
-
* Generated by: pnpm run codegen
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Wire-only context-assembly payload. No ranking, retrieval, or token-budget fields in v0.1.
|
|
9
|
-
*/
|
|
10
|
-
export interface AssemblePacket {
|
|
11
|
-
/**
|
|
12
|
-
* Wire schema version (integer >= 1).
|
|
13
|
-
*/
|
|
14
|
-
schema_version: number;
|
|
15
|
-
/**
|
|
16
|
-
* Stable packet id.
|
|
17
|
-
*/
|
|
18
|
-
packet_id: string;
|
|
19
|
-
/**
|
|
20
|
-
* Slim context entries (default). Full KnowledgeEntry embedding is op-specific.
|
|
21
|
-
*/
|
|
22
|
-
entries: AssembleEntry[];
|
|
23
|
-
extensions: ExtensionMap;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* This interface was referenced by `AssemblePacket`'s JSON-Schema
|
|
27
|
-
* via the `definition` "AssembleEntry".
|
|
28
|
-
*/
|
|
29
|
-
export interface AssembleEntry {
|
|
30
|
-
/**
|
|
31
|
-
* Referenced KnowledgeEntry id.
|
|
32
|
-
*/
|
|
33
|
-
entry_id: string;
|
|
34
|
-
/**
|
|
35
|
-
* Open string. Same core vocabulary as KnowledgeEntry.entry_type.
|
|
36
|
-
*/
|
|
37
|
-
entry_type: string;
|
|
38
|
-
/**
|
|
39
|
-
* Display name for context window.
|
|
40
|
-
*/
|
|
41
|
-
canonical_name: string;
|
|
42
|
-
/**
|
|
43
|
-
* Optional trimmed text for context window.
|
|
44
|
-
*/
|
|
45
|
-
snippet?: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Product namespace bag keyed by product-chosen ids matching ^[a-z][a-z0-9_-]*$. Values are opaque JSON objects. Adapters MUST preserve unknown namespaces and keys on round-trip.
|
|
49
|
-
*/
|
|
50
|
-
export interface ExtensionMap {
|
|
51
|
-
[k: string]:
|
|
52
|
-
| {
|
|
53
|
-
[k: string]: unknown | undefined;
|
|
54
|
-
}
|
|
55
|
-
| undefined;
|
|
56
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
-
* Source: schemas/
|
|
4
|
-
* Generated by: pnpm run codegen
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Checker output — not a KnowledgeEntry body.
|
|
9
|
-
*/
|
|
10
|
-
export interface Finding {
|
|
11
|
-
/**
|
|
12
|
-
* Wire schema version (integer >= 1).
|
|
13
|
-
*/
|
|
14
|
-
schema_version: number;
|
|
15
|
-
/**
|
|
16
|
-
* Stable finding id.
|
|
17
|
-
*/
|
|
18
|
-
finding_id: string;
|
|
19
|
-
/**
|
|
20
|
-
* Open string. Core vocabulary (documented, not enforced): info, warning, error.
|
|
21
|
-
*/
|
|
22
|
-
severity: string;
|
|
23
|
-
/**
|
|
24
|
-
* Open string. Core vocabulary (documented, not enforced): open, resolved, dismissed.
|
|
25
|
-
*/
|
|
26
|
-
status: string;
|
|
27
|
-
/**
|
|
28
|
-
* Short finding title.
|
|
29
|
-
*/
|
|
30
|
-
title: string;
|
|
31
|
-
/**
|
|
32
|
-
* Finding detail text.
|
|
33
|
-
*/
|
|
34
|
-
description: string;
|
|
35
|
-
/**
|
|
36
|
-
* Optional checker kind or category.
|
|
37
|
-
*/
|
|
38
|
-
kind?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Optional KnowledgeEntry the finding targets.
|
|
41
|
-
*/
|
|
42
|
-
target_entry_id?: string;
|
|
43
|
-
source_anchor?: SourceAnchor;
|
|
44
|
-
/**
|
|
45
|
-
* Optional suggested remediation text.
|
|
46
|
-
*/
|
|
47
|
-
suggested_fix?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Optional position hint within source text.
|
|
50
|
-
*/
|
|
51
|
-
text_position?: {
|
|
52
|
-
[k: string]: unknown | undefined;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* RFC 3339 UTC datetime string.
|
|
56
|
-
*/
|
|
57
|
-
created_at?: string;
|
|
58
|
-
/**
|
|
59
|
-
* RFC 3339 UTC datetime string.
|
|
60
|
-
*/
|
|
61
|
-
updated_at?: string;
|
|
62
|
-
extensions: ExtensionMap;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Optional provenance pointer.
|
|
66
|
-
*/
|
|
67
|
-
export interface SourceAnchor {
|
|
68
|
-
/**
|
|
69
|
-
* Wire schema version (integer >= 1).
|
|
70
|
-
*/
|
|
71
|
-
schema_version: number;
|
|
72
|
-
/**
|
|
73
|
-
* Opaque source locator; products define grammar.
|
|
74
|
-
*/
|
|
75
|
-
source_id: string;
|
|
76
|
-
span?: SourceSpan;
|
|
77
|
-
/**
|
|
78
|
-
* Optional human label for the anchor.
|
|
79
|
-
*/
|
|
80
|
-
label?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Optional MIME type of the referenced source.
|
|
83
|
-
*/
|
|
84
|
-
mime_type?: string;
|
|
85
|
-
extensions: ExtensionMap;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Optional byte or character span within the source.
|
|
89
|
-
*/
|
|
90
|
-
export interface SourceSpan {
|
|
91
|
-
/**
|
|
92
|
-
* Start offset (inclusive).
|
|
93
|
-
*/
|
|
94
|
-
start: number;
|
|
95
|
-
/**
|
|
96
|
-
* End offset (exclusive).
|
|
97
|
-
*/
|
|
98
|
-
end: number;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Product namespace bag keyed by product-chosen ids matching ^[a-z][a-z0-9_-]*$. Values are opaque JSON objects. Adapters MUST preserve unknown namespaces and keys on round-trip.
|
|
102
|
-
*/
|
|
103
|
-
export interface ExtensionMap {
|
|
104
|
-
[k: string]:
|
|
105
|
-
| {
|
|
106
|
-
[k: string]: unknown | undefined;
|
|
107
|
-
}
|
|
108
|
-
| undefined;
|
|
109
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
-
* Source: schemas/
|
|
4
|
-
* Generated by: pnpm run codegen
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export type { AssemblePacket } from './assemble-packet';
|
|
8
|
-
export type { Finding } from './finding';
|
|
9
|
-
export type { KnowledgeEntry } from './knowledge-entry';
|
|
10
|
-
export type { Relation } from './relation';
|
|
11
|
-
export type { Rule } from './rule';
|
|
12
|
-
export type { SourceAnchor } from './source-anchor';
|
|
13
|
-
export type { TimelineEvent } from './timeline-event';
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
-
* Source: schemas/
|
|
4
|
-
* Generated by: pnpm run codegen
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Atomic narrative knowledge unit: identity, typed body, provenance envelope.
|
|
9
|
-
*/
|
|
10
|
-
export interface KnowledgeEntry {
|
|
11
|
-
/**
|
|
12
|
-
* Wire schema version (integer >= 1).
|
|
13
|
-
*/
|
|
14
|
-
schema_version: number;
|
|
15
|
-
/**
|
|
16
|
-
* Stable KnowledgeEntry id (opaque to protocol).
|
|
17
|
-
*/
|
|
18
|
-
entry_id: string;
|
|
19
|
-
/**
|
|
20
|
-
* Open string. Core vocabulary (documented, not enforced): character, location, event (ontology label; ≠ TimelineEvent wire object), scene, act, organization, item, conflict, info_point, era, worldbuilding, note, research, ability, rule (ontology label; ≠ L6 Rule wire object). Products MAY emit values outside this list.
|
|
21
|
-
*/
|
|
22
|
-
entry_type: string;
|
|
23
|
-
/**
|
|
24
|
-
* Human-stable name.
|
|
25
|
-
*/
|
|
26
|
-
canonical_name: string;
|
|
27
|
-
/**
|
|
28
|
-
* Open string. Core vocabulary (documented, not enforced): provisional, confirmed, deprecated, merged, deleted.
|
|
29
|
-
*/
|
|
30
|
-
status: string;
|
|
31
|
-
/**
|
|
32
|
-
* Structured payload. Typed attributes (summary, tags, attributes) live here — not as protocol siblings. Under l2-computable: optional state (static durable computable) and computable (dynamic Session-scoped projection).
|
|
33
|
-
*/
|
|
34
|
-
body: {
|
|
35
|
-
state?: ComputableFieldMap;
|
|
36
|
-
computable?: ComputableFieldMap1;
|
|
37
|
-
[k: string]: unknown | undefined;
|
|
38
|
-
};
|
|
39
|
-
source_anchor?: SourceAnchor;
|
|
40
|
-
/**
|
|
41
|
-
* Optimistic concurrency revision.
|
|
42
|
-
*/
|
|
43
|
-
revision?: number;
|
|
44
|
-
/**
|
|
45
|
-
* RFC 3339 UTC datetime string.
|
|
46
|
-
*/
|
|
47
|
-
created_at?: string;
|
|
48
|
-
/**
|
|
49
|
-
* RFC 3339 UTC datetime string.
|
|
50
|
-
*/
|
|
51
|
-
updated_at?: string;
|
|
52
|
-
extensions: ExtensionMap;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Static durable computable state (l2-computable optional). Authoritative pre-Session and after settle.
|
|
56
|
-
*/
|
|
57
|
-
export interface ComputableFieldMap {
|
|
58
|
-
[k: string]: unknown | undefined;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Dynamic Session-scoped computable projection (l2-computable optional). Absent or inert pre-Session; mutates mid-Session only.
|
|
62
|
-
*/
|
|
63
|
-
export interface ComputableFieldMap1 {
|
|
64
|
-
[k: string]: unknown | undefined;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Optional provenance pointer.
|
|
68
|
-
*/
|
|
69
|
-
export interface SourceAnchor {
|
|
70
|
-
/**
|
|
71
|
-
* Wire schema version (integer >= 1).
|
|
72
|
-
*/
|
|
73
|
-
schema_version: number;
|
|
74
|
-
/**
|
|
75
|
-
* Opaque source locator; products define grammar.
|
|
76
|
-
*/
|
|
77
|
-
source_id: string;
|
|
78
|
-
span?: SourceSpan;
|
|
79
|
-
/**
|
|
80
|
-
* Optional human label for the anchor.
|
|
81
|
-
*/
|
|
82
|
-
label?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Optional MIME type of the referenced source.
|
|
85
|
-
*/
|
|
86
|
-
mime_type?: string;
|
|
87
|
-
extensions: ExtensionMap;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Optional byte or character span within the source.
|
|
91
|
-
*/
|
|
92
|
-
export interface SourceSpan {
|
|
93
|
-
/**
|
|
94
|
-
* Start offset (inclusive).
|
|
95
|
-
*/
|
|
96
|
-
start: number;
|
|
97
|
-
/**
|
|
98
|
-
* End offset (exclusive).
|
|
99
|
-
*/
|
|
100
|
-
end: number;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Product namespace bag keyed by product-chosen ids matching ^[a-z][a-z0-9_-]*$. Values are opaque JSON objects. Adapters MUST preserve unknown namespaces and keys on round-trip.
|
|
104
|
-
*/
|
|
105
|
-
export interface ExtensionMap {
|
|
106
|
-
[k: string]:
|
|
107
|
-
| {
|
|
108
|
-
[k: string]: unknown | undefined;
|
|
109
|
-
}
|
|
110
|
-
| undefined;
|
|
111
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
-
* Source: schemas/
|
|
4
|
-
* Generated by: pnpm run codegen
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Directed edge between two KnowledgeEntries (or KnowledgeEntry and source anchor).
|
|
9
|
-
*/
|
|
10
|
-
export interface Relation {
|
|
11
|
-
/**
|
|
12
|
-
* Wire schema version (integer >= 1).
|
|
13
|
-
*/
|
|
14
|
-
schema_version: number;
|
|
15
|
-
/**
|
|
16
|
-
* Stable relation id.
|
|
17
|
-
*/
|
|
18
|
-
relation_id: string;
|
|
19
|
-
/**
|
|
20
|
-
* Open string. Core vocabulary (documented, not enforced): related_to, parent_of, member_of, located_in, participates_in, causes, foreshadows.
|
|
21
|
-
*/
|
|
22
|
-
relation_type: string;
|
|
23
|
-
/**
|
|
24
|
-
* Source endpoint id (KnowledgeEntry or anchor id).
|
|
25
|
-
*/
|
|
26
|
-
from_id: string;
|
|
27
|
-
/**
|
|
28
|
-
* Target endpoint id (KnowledgeEntry or anchor id).
|
|
29
|
-
*/
|
|
30
|
-
to_id: string;
|
|
31
|
-
/**
|
|
32
|
-
* Optional human label.
|
|
33
|
-
*/
|
|
34
|
-
label?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Optional open metadata bag.
|
|
37
|
-
*/
|
|
38
|
-
metadata?: {
|
|
39
|
-
[k: string]: unknown | undefined;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* RFC 3339 UTC datetime string.
|
|
43
|
-
*/
|
|
44
|
-
created_at?: string;
|
|
45
|
-
/**
|
|
46
|
-
* RFC 3339 UTC datetime string.
|
|
47
|
-
*/
|
|
48
|
-
updated_at?: string;
|
|
49
|
-
extensions: ExtensionMap;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Product namespace bag keyed by product-chosen ids matching ^[a-z][a-z0-9_-]*$. Values are opaque JSON objects. Adapters MUST preserve unknown namespaces and keys on round-trip.
|
|
53
|
-
*/
|
|
54
|
-
export interface ExtensionMap {
|
|
55
|
-
[k: string]:
|
|
56
|
-
| {
|
|
57
|
-
[k: string]: unknown | undefined;
|
|
58
|
-
}
|
|
59
|
-
| undefined;
|
|
60
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
-
* Source: schemas/
|
|
4
|
-
* Generated by: pnpm run codegen
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Declarative constraint input to check — never checker output.
|
|
9
|
-
*/
|
|
10
|
-
export interface Rule {
|
|
11
|
-
/**
|
|
12
|
-
* Wire schema version (integer >= 1).
|
|
13
|
-
*/
|
|
14
|
-
schema_version: number;
|
|
15
|
-
/**
|
|
16
|
-
* Stable rule id (opaque to protocol).
|
|
17
|
-
*/
|
|
18
|
-
rule_id: string;
|
|
19
|
-
/**
|
|
20
|
-
* Human-stable name.
|
|
21
|
-
*/
|
|
22
|
-
canonical_name: string;
|
|
23
|
-
/**
|
|
24
|
-
* Open string. Core vocabulary (documented, not enforced): rule, prohibition, style.
|
|
25
|
-
*/
|
|
26
|
-
kind: string;
|
|
27
|
-
/**
|
|
28
|
-
* Declarative constraint text (human- or machine-readable; products choose grammar).
|
|
29
|
-
*/
|
|
30
|
-
statement?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Longer explanation for integrators or authors.
|
|
33
|
-
*/
|
|
34
|
-
description?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Optional ontology filter — open strings matching KnowledgeEntry entry_type vocabulary.
|
|
37
|
-
*/
|
|
38
|
-
target_entry_types?: string[];
|
|
39
|
-
/**
|
|
40
|
-
* Optional checker hint. Core vocabulary (documented, not enforced): info, warning, error.
|
|
41
|
-
*/
|
|
42
|
-
severity_hint?: string;
|
|
43
|
-
source_anchor?: SourceAnchor;
|
|
44
|
-
/**
|
|
45
|
-
* Open string. Core vocabulary (documented, not enforced): draft, active, deprecated.
|
|
46
|
-
*/
|
|
47
|
-
status?: string;
|
|
48
|
-
/**
|
|
49
|
-
* RFC 3339 UTC datetime string.
|
|
50
|
-
*/
|
|
51
|
-
created_at?: string;
|
|
52
|
-
/**
|
|
53
|
-
* RFC 3339 UTC datetime string.
|
|
54
|
-
*/
|
|
55
|
-
updated_at?: string;
|
|
56
|
-
extensions: ExtensionMap;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Optional provenance pointer when rule is anchored to manuscript.
|
|
60
|
-
*/
|
|
61
|
-
export interface SourceAnchor {
|
|
62
|
-
/**
|
|
63
|
-
* Wire schema version (integer >= 1).
|
|
64
|
-
*/
|
|
65
|
-
schema_version: number;
|
|
66
|
-
/**
|
|
67
|
-
* Opaque source locator; products define grammar.
|
|
68
|
-
*/
|
|
69
|
-
source_id: string;
|
|
70
|
-
span?: SourceSpan;
|
|
71
|
-
/**
|
|
72
|
-
* Optional human label for the anchor.
|
|
73
|
-
*/
|
|
74
|
-
label?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Optional MIME type of the referenced source.
|
|
77
|
-
*/
|
|
78
|
-
mime_type?: string;
|
|
79
|
-
extensions: ExtensionMap;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Optional byte or character span within the source.
|
|
83
|
-
*/
|
|
84
|
-
export interface SourceSpan {
|
|
85
|
-
/**
|
|
86
|
-
* Start offset (inclusive).
|
|
87
|
-
*/
|
|
88
|
-
start: number;
|
|
89
|
-
/**
|
|
90
|
-
* End offset (exclusive).
|
|
91
|
-
*/
|
|
92
|
-
end: number;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Product namespace bag keyed by product-chosen ids matching ^[a-z][a-z0-9_-]*$. Values are opaque JSON objects. Adapters MUST preserve unknown namespaces and keys on round-trip.
|
|
96
|
-
*/
|
|
97
|
-
export interface ExtensionMap {
|
|
98
|
-
[k: string]:
|
|
99
|
-
| {
|
|
100
|
-
[k: string]: unknown | undefined;
|
|
101
|
-
}
|
|
102
|
-
| undefined;
|
|
103
|
-
}
|