@42ch/spoke-schemas 0.1.0-alpha.1
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/LICENSE +201 -0
- package/dist/index.d.mts +2296 -0
- package/dist/index.d.ts +2296 -0
- package/dist/index.js +18 -0
- package/dist/index.mjs +0 -0
- package/package.json +48 -0
- package/src/generated/common/common.ts +159 -0
- package/src/generated/common/error-envelope.ts +36 -0
- package/src/generated/common/index.ts +8 -0
- package/src/generated/data/assemble-packet.ts +56 -0
- package/src/generated/data/finding.ts +109 -0
- package/src/generated/data/index.ts +13 -0
- package/src/generated/data/knowledge-entry.ts +111 -0
- package/src/generated/data/relation.ts +60 -0
- package/src/generated/data/rule.ts +103 -0
- package/src/generated/data/source-anchor.ts +52 -0
- package/src/generated/data/timeline-event.ts +151 -0
- package/src/generated/index.ts +9 -0
- package/src/generated/ops/assemble-request.ts +60 -0
- package/src/generated/ops/assemble-response.ts +109 -0
- package/src/generated/ops/check-request.ts +165 -0
- package/src/generated/ops/check-response.ts +165 -0
- package/src/generated/ops/compute-request.ts +41 -0
- package/src/generated/ops/compute-response.ts +90 -0
- package/src/generated/ops/index.ts +20 -0
- package/src/generated/ops/project-request.ts +37 -0
- package/src/generated/ops/project-response.ts +83 -0
- package/src/generated/ops/promote-request.ts +132 -0
- package/src/generated/ops/promote-response.ts +168 -0
- package/src/generated/ops/relate-request.ts +77 -0
- package/src/generated/ops/relate-response.ts +113 -0
- package/src/generated/ops/upsert-request.ts +137 -0
- package/src/generated/ops/upsert-response.ts +185 -0
- package/src/index.ts +4 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
+
* Source: schemas/
|
|
4
|
+
* Generated by: pnpm run codegen
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Checker findings or wire error. Use findings OR error — not both.
|
|
9
|
+
*/
|
|
10
|
+
export type CheckResponse =
|
|
11
|
+
| {
|
|
12
|
+
/**
|
|
13
|
+
* Success: checker output findings.
|
|
14
|
+
*/
|
|
15
|
+
findings: Finding[];
|
|
16
|
+
extensions?: ExtensionMap1;
|
|
17
|
+
}
|
|
18
|
+
| {
|
|
19
|
+
error: ErrorEnvelope;
|
|
20
|
+
extensions?: ExtensionMap2;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Checker output — not a KnowledgeEntry body.
|
|
25
|
+
*/
|
|
26
|
+
export interface Finding {
|
|
27
|
+
/**
|
|
28
|
+
* Wire schema version (integer >= 1).
|
|
29
|
+
*/
|
|
30
|
+
schema_version: number;
|
|
31
|
+
/**
|
|
32
|
+
* Stable finding id.
|
|
33
|
+
*/
|
|
34
|
+
finding_id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Open string. Core vocabulary (documented, not enforced): info, warning, error.
|
|
37
|
+
*/
|
|
38
|
+
severity: string;
|
|
39
|
+
/**
|
|
40
|
+
* Open string. Core vocabulary (documented, not enforced): open, resolved, dismissed.
|
|
41
|
+
*/
|
|
42
|
+
status: string;
|
|
43
|
+
/**
|
|
44
|
+
* Short finding title.
|
|
45
|
+
*/
|
|
46
|
+
title: string;
|
|
47
|
+
/**
|
|
48
|
+
* Finding detail text.
|
|
49
|
+
*/
|
|
50
|
+
description: string;
|
|
51
|
+
/**
|
|
52
|
+
* Optional checker kind or category.
|
|
53
|
+
*/
|
|
54
|
+
kind?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Optional KnowledgeEntry the finding targets.
|
|
57
|
+
*/
|
|
58
|
+
target_entry_id?: string;
|
|
59
|
+
source_anchor?: SourceAnchor;
|
|
60
|
+
/**
|
|
61
|
+
* Optional suggested remediation text.
|
|
62
|
+
*/
|
|
63
|
+
suggested_fix?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Optional position hint within source text.
|
|
66
|
+
*/
|
|
67
|
+
text_position?: {
|
|
68
|
+
[k: string]: unknown | undefined;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* RFC 3339 UTC datetime string.
|
|
72
|
+
*/
|
|
73
|
+
created_at?: string;
|
|
74
|
+
/**
|
|
75
|
+
* RFC 3339 UTC datetime string.
|
|
76
|
+
*/
|
|
77
|
+
updated_at?: string;
|
|
78
|
+
extensions: ExtensionMap;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Optional provenance pointer.
|
|
82
|
+
*/
|
|
83
|
+
export interface SourceAnchor {
|
|
84
|
+
/**
|
|
85
|
+
* Wire schema version (integer >= 1).
|
|
86
|
+
*/
|
|
87
|
+
schema_version: number;
|
|
88
|
+
/**
|
|
89
|
+
* Opaque source locator; products define grammar.
|
|
90
|
+
*/
|
|
91
|
+
source_id: string;
|
|
92
|
+
span?: SourceSpan;
|
|
93
|
+
/**
|
|
94
|
+
* Optional human label for the anchor.
|
|
95
|
+
*/
|
|
96
|
+
label?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Optional MIME type of the referenced source.
|
|
99
|
+
*/
|
|
100
|
+
mime_type?: string;
|
|
101
|
+
extensions: ExtensionMap;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Optional byte or character span within the source.
|
|
105
|
+
*/
|
|
106
|
+
export interface SourceSpan {
|
|
107
|
+
/**
|
|
108
|
+
* Start offset (inclusive).
|
|
109
|
+
*/
|
|
110
|
+
start: number;
|
|
111
|
+
/**
|
|
112
|
+
* End offset (exclusive).
|
|
113
|
+
*/
|
|
114
|
+
end: number;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* 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.
|
|
118
|
+
*/
|
|
119
|
+
export interface ExtensionMap {
|
|
120
|
+
[k: string]:
|
|
121
|
+
| {
|
|
122
|
+
[k: string]: unknown | undefined;
|
|
123
|
+
}
|
|
124
|
+
| undefined;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 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.
|
|
128
|
+
*/
|
|
129
|
+
export interface ExtensionMap1 {
|
|
130
|
+
[k: string]:
|
|
131
|
+
| {
|
|
132
|
+
[k: string]: unknown | undefined;
|
|
133
|
+
}
|
|
134
|
+
| undefined;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Failure: shared error envelope.
|
|
138
|
+
*/
|
|
139
|
+
export interface ErrorEnvelope {
|
|
140
|
+
/**
|
|
141
|
+
* Machine-readable error code.
|
|
142
|
+
*/
|
|
143
|
+
code: string;
|
|
144
|
+
/**
|
|
145
|
+
* Human-readable error message.
|
|
146
|
+
*/
|
|
147
|
+
message: string;
|
|
148
|
+
/**
|
|
149
|
+
* Optional structured error context.
|
|
150
|
+
*/
|
|
151
|
+
details?: {
|
|
152
|
+
[k: string]: unknown | undefined;
|
|
153
|
+
};
|
|
154
|
+
extensions: ExtensionMap;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* 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.
|
|
158
|
+
*/
|
|
159
|
+
export interface ExtensionMap2 {
|
|
160
|
+
[k: string]:
|
|
161
|
+
| {
|
|
162
|
+
[k: string]: unknown | undefined;
|
|
163
|
+
}
|
|
164
|
+
| undefined;
|
|
165
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
+
* Source: schemas/
|
|
4
|
+
* Generated by: pnpm run codegen
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Apply / settle I/O — carry computable updates; merge to static state when settle is true.
|
|
9
|
+
*/
|
|
10
|
+
export interface ComputeRequest {
|
|
11
|
+
/**
|
|
12
|
+
* Opaque Session correlation id. Products own Session stores.
|
|
13
|
+
*/
|
|
14
|
+
session_id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Target KnowledgeEntry id.
|
|
17
|
+
*/
|
|
18
|
+
entry_id: string;
|
|
19
|
+
computable: ComputableFieldMap;
|
|
20
|
+
/**
|
|
21
|
+
* When true, product merges computable into static state at Session end. Defaults to false when omitted.
|
|
22
|
+
*/
|
|
23
|
+
settle?: boolean;
|
|
24
|
+
extensions?: ExtensionMap;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Session-scoped dynamic computable payload (body.computable).
|
|
28
|
+
*/
|
|
29
|
+
export interface ComputableFieldMap {
|
|
30
|
+
[k: string]: unknown | undefined;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Optional transport metadata.
|
|
34
|
+
*/
|
|
35
|
+
export interface ExtensionMap {
|
|
36
|
+
[k: string]:
|
|
37
|
+
| {
|
|
38
|
+
[k: string]: unknown | undefined;
|
|
39
|
+
}
|
|
40
|
+
| undefined;
|
|
41
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
+
* Source: schemas/
|
|
4
|
+
* Generated by: pnpm run codegen
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Updated computable view (and merged static state when settle was true) or wire error. Use session_id, entry_id, and computable OR error — not both.
|
|
9
|
+
*/
|
|
10
|
+
export type ComputeResponse =
|
|
11
|
+
| {
|
|
12
|
+
/**
|
|
13
|
+
* Echo of request Session correlation id.
|
|
14
|
+
*/
|
|
15
|
+
session_id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Target KnowledgeEntry id.
|
|
18
|
+
*/
|
|
19
|
+
entry_id: string;
|
|
20
|
+
computable: ComputableFieldMap;
|
|
21
|
+
state?: ComputableFieldMap1;
|
|
22
|
+
extensions?: ExtensionMap;
|
|
23
|
+
}
|
|
24
|
+
| {
|
|
25
|
+
error: ErrorEnvelope;
|
|
26
|
+
extensions?: ExtensionMap2;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Success: updated dynamic computable view.
|
|
31
|
+
*/
|
|
32
|
+
export interface ComputableFieldMap {
|
|
33
|
+
[k: string]: unknown | undefined;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Merged static state after settle. Products MUST include when request settle was true.
|
|
37
|
+
*/
|
|
38
|
+
export interface ComputableFieldMap1 {
|
|
39
|
+
[k: string]: unknown | undefined;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Optional transport metadata.
|
|
43
|
+
*/
|
|
44
|
+
export interface ExtensionMap {
|
|
45
|
+
[k: string]:
|
|
46
|
+
| {
|
|
47
|
+
[k: string]: unknown | undefined;
|
|
48
|
+
}
|
|
49
|
+
| undefined;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Failure: shared error envelope.
|
|
53
|
+
*/
|
|
54
|
+
export interface ErrorEnvelope {
|
|
55
|
+
/**
|
|
56
|
+
* Machine-readable error code.
|
|
57
|
+
*/
|
|
58
|
+
code: string;
|
|
59
|
+
/**
|
|
60
|
+
* Human-readable error message.
|
|
61
|
+
*/
|
|
62
|
+
message: string;
|
|
63
|
+
/**
|
|
64
|
+
* Optional structured error context.
|
|
65
|
+
*/
|
|
66
|
+
details?: {
|
|
67
|
+
[k: string]: unknown | undefined;
|
|
68
|
+
};
|
|
69
|
+
extensions: ExtensionMap1;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* 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.
|
|
73
|
+
*/
|
|
74
|
+
export interface ExtensionMap1 {
|
|
75
|
+
[k: string]:
|
|
76
|
+
| {
|
|
77
|
+
[k: string]: unknown | undefined;
|
|
78
|
+
}
|
|
79
|
+
| undefined;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 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.
|
|
83
|
+
*/
|
|
84
|
+
export interface ExtensionMap2 {
|
|
85
|
+
[k: string]:
|
|
86
|
+
| {
|
|
87
|
+
[k: string]: unknown | undefined;
|
|
88
|
+
}
|
|
89
|
+
| undefined;
|
|
90
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
+
* Source: schemas/
|
|
4
|
+
* Generated by: pnpm run codegen
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export type { AssembleRequest } from './assemble-request';
|
|
8
|
+
export type { AssembleResponse } from './assemble-response';
|
|
9
|
+
export type { CheckRequest } from './check-request';
|
|
10
|
+
export type { CheckResponse } from './check-response';
|
|
11
|
+
export type { ComputeRequest } from './compute-request';
|
|
12
|
+
export type { ComputeResponse } from './compute-response';
|
|
13
|
+
export type { ProjectRequest } from './project-request';
|
|
14
|
+
export type { ProjectResponse } from './project-response';
|
|
15
|
+
export type { PromoteRequest } from './promote-request';
|
|
16
|
+
export type { PromoteResponse } from './promote-response';
|
|
17
|
+
export type { RelateRequest } from './relate-request';
|
|
18
|
+
export type { RelateResponse } from './relate-response';
|
|
19
|
+
export type { UpsertRequest } from './upsert-request';
|
|
20
|
+
export type { UpsertResponse } from './upsert-response';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
+
* Source: schemas/
|
|
4
|
+
* Generated by: pnpm run codegen
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Init / projection — materialize Session dynamic computable view from static state.
|
|
9
|
+
*/
|
|
10
|
+
export interface ProjectRequest {
|
|
11
|
+
/**
|
|
12
|
+
* Opaque Session correlation id. Products own Session stores.
|
|
13
|
+
*/
|
|
14
|
+
session_id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Target KnowledgeEntry id.
|
|
17
|
+
*/
|
|
18
|
+
entry_id: string;
|
|
19
|
+
state: ComputableFieldMap;
|
|
20
|
+
extensions?: ExtensionMap;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Static computable source (body.state).
|
|
24
|
+
*/
|
|
25
|
+
export interface ComputableFieldMap {
|
|
26
|
+
[k: string]: unknown | undefined;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Optional transport metadata.
|
|
30
|
+
*/
|
|
31
|
+
export interface ExtensionMap {
|
|
32
|
+
[k: string]:
|
|
33
|
+
| {
|
|
34
|
+
[k: string]: unknown | undefined;
|
|
35
|
+
}
|
|
36
|
+
| undefined;
|
|
37
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
+
* Source: schemas/
|
|
4
|
+
* Generated by: pnpm run codegen
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Projected computable view or wire error. Use session_id, entry_id, and computable OR error — not both.
|
|
9
|
+
*/
|
|
10
|
+
export type ProjectResponse =
|
|
11
|
+
| {
|
|
12
|
+
/**
|
|
13
|
+
* Echo of request Session correlation id.
|
|
14
|
+
*/
|
|
15
|
+
session_id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Target KnowledgeEntry id.
|
|
18
|
+
*/
|
|
19
|
+
entry_id: string;
|
|
20
|
+
computable: ComputableFieldMap;
|
|
21
|
+
extensions?: ExtensionMap;
|
|
22
|
+
}
|
|
23
|
+
| {
|
|
24
|
+
error: ErrorEnvelope;
|
|
25
|
+
extensions?: ExtensionMap2;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Success: materialized dynamic computable view (body.computable).
|
|
30
|
+
*/
|
|
31
|
+
export interface ComputableFieldMap {
|
|
32
|
+
[k: string]: unknown | undefined;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Optional transport metadata.
|
|
36
|
+
*/
|
|
37
|
+
export interface ExtensionMap {
|
|
38
|
+
[k: string]:
|
|
39
|
+
| {
|
|
40
|
+
[k: string]: unknown | undefined;
|
|
41
|
+
}
|
|
42
|
+
| undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Failure: shared error envelope.
|
|
46
|
+
*/
|
|
47
|
+
export interface ErrorEnvelope {
|
|
48
|
+
/**
|
|
49
|
+
* Machine-readable error code.
|
|
50
|
+
*/
|
|
51
|
+
code: string;
|
|
52
|
+
/**
|
|
53
|
+
* Human-readable error message.
|
|
54
|
+
*/
|
|
55
|
+
message: string;
|
|
56
|
+
/**
|
|
57
|
+
* Optional structured error context.
|
|
58
|
+
*/
|
|
59
|
+
details?: {
|
|
60
|
+
[k: string]: unknown | undefined;
|
|
61
|
+
};
|
|
62
|
+
extensions: ExtensionMap1;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* 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.
|
|
66
|
+
*/
|
|
67
|
+
export interface ExtensionMap1 {
|
|
68
|
+
[k: string]:
|
|
69
|
+
| {
|
|
70
|
+
[k: string]: unknown | undefined;
|
|
71
|
+
}
|
|
72
|
+
| undefined;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* 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.
|
|
76
|
+
*/
|
|
77
|
+
export interface ExtensionMap2 {
|
|
78
|
+
[k: string]:
|
|
79
|
+
| {
|
|
80
|
+
[k: string]: unknown | undefined;
|
|
81
|
+
}
|
|
82
|
+
| undefined;
|
|
83
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FROM JSON SCHEMA - DO NOT MODIFY
|
|
3
|
+
* Source: schemas/
|
|
4
|
+
* Generated by: pnpm run codegen
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Extract-to-promote: promote a candidate KnowledgeEntry to durable storage.
|
|
9
|
+
*/
|
|
10
|
+
export interface PromoteRequest {
|
|
11
|
+
candidate: KnowledgeEntry;
|
|
12
|
+
/**
|
|
13
|
+
* Optional merge target KnowledgeEntry id.
|
|
14
|
+
*/
|
|
15
|
+
target_entry_id?: string;
|
|
16
|
+
extensions?: ExtensionMap1;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Candidate KnowledgeEntry (typically status provisional).
|
|
20
|
+
*/
|
|
21
|
+
export interface KnowledgeEntry {
|
|
22
|
+
/**
|
|
23
|
+
* Wire schema version (integer >= 1).
|
|
24
|
+
*/
|
|
25
|
+
schema_version: number;
|
|
26
|
+
/**
|
|
27
|
+
* Stable KnowledgeEntry id (opaque to protocol).
|
|
28
|
+
*/
|
|
29
|
+
entry_id: string;
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
*/
|
|
33
|
+
entry_type: string;
|
|
34
|
+
/**
|
|
35
|
+
* Human-stable name.
|
|
36
|
+
*/
|
|
37
|
+
canonical_name: string;
|
|
38
|
+
/**
|
|
39
|
+
* Open string. Core vocabulary (documented, not enforced): provisional, confirmed, deprecated, merged, deleted.
|
|
40
|
+
*/
|
|
41
|
+
status: string;
|
|
42
|
+
/**
|
|
43
|
+
* 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).
|
|
44
|
+
*/
|
|
45
|
+
body: {
|
|
46
|
+
state?: ComputableFieldMap;
|
|
47
|
+
computable?: ComputableFieldMap1;
|
|
48
|
+
[k: string]: unknown | undefined;
|
|
49
|
+
};
|
|
50
|
+
source_anchor?: SourceAnchor;
|
|
51
|
+
/**
|
|
52
|
+
* Optimistic concurrency revision.
|
|
53
|
+
*/
|
|
54
|
+
revision?: number;
|
|
55
|
+
/**
|
|
56
|
+
* RFC 3339 UTC datetime string.
|
|
57
|
+
*/
|
|
58
|
+
created_at?: string;
|
|
59
|
+
/**
|
|
60
|
+
* RFC 3339 UTC datetime string.
|
|
61
|
+
*/
|
|
62
|
+
updated_at?: string;
|
|
63
|
+
extensions: ExtensionMap;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Static durable computable state (l2-computable optional). Authoritative pre-Session and after settle.
|
|
67
|
+
*/
|
|
68
|
+
export interface ComputableFieldMap {
|
|
69
|
+
[k: string]: unknown | undefined;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Dynamic Session-scoped computable projection (l2-computable optional). Absent or inert pre-Session; mutates mid-Session only.
|
|
73
|
+
*/
|
|
74
|
+
export interface ComputableFieldMap1 {
|
|
75
|
+
[k: string]: unknown | undefined;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Optional provenance pointer.
|
|
79
|
+
*/
|
|
80
|
+
export interface SourceAnchor {
|
|
81
|
+
/**
|
|
82
|
+
* Wire schema version (integer >= 1).
|
|
83
|
+
*/
|
|
84
|
+
schema_version: number;
|
|
85
|
+
/**
|
|
86
|
+
* Opaque source locator; products define grammar.
|
|
87
|
+
*/
|
|
88
|
+
source_id: string;
|
|
89
|
+
span?: SourceSpan;
|
|
90
|
+
/**
|
|
91
|
+
* Optional human label for the anchor.
|
|
92
|
+
*/
|
|
93
|
+
label?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Optional MIME type of the referenced source.
|
|
96
|
+
*/
|
|
97
|
+
mime_type?: string;
|
|
98
|
+
extensions: ExtensionMap;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Optional byte or character span within the source.
|
|
102
|
+
*/
|
|
103
|
+
export interface SourceSpan {
|
|
104
|
+
/**
|
|
105
|
+
* Start offset (inclusive).
|
|
106
|
+
*/
|
|
107
|
+
start: number;
|
|
108
|
+
/**
|
|
109
|
+
* End offset (exclusive).
|
|
110
|
+
*/
|
|
111
|
+
end: number;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* 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.
|
|
115
|
+
*/
|
|
116
|
+
export interface ExtensionMap {
|
|
117
|
+
[k: string]:
|
|
118
|
+
| {
|
|
119
|
+
[k: string]: unknown | undefined;
|
|
120
|
+
}
|
|
121
|
+
| undefined;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* 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.
|
|
125
|
+
*/
|
|
126
|
+
export interface ExtensionMap1 {
|
|
127
|
+
[k: string]:
|
|
128
|
+
| {
|
|
129
|
+
[k: string]: unknown | undefined;
|
|
130
|
+
}
|
|
131
|
+
| undefined;
|
|
132
|
+
}
|