sysprom 1.0.0 → 1.0.6

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.
Files changed (148) hide show
  1. package/README.md +207 -0
  2. package/dist/schema.json +510 -0
  3. package/dist/src/canonical-json.d.ts +23 -0
  4. package/dist/src/canonical-json.js +120 -0
  5. package/dist/src/cli/commands/add.d.ts +22 -0
  6. package/dist/src/cli/commands/add.js +95 -0
  7. package/dist/src/cli/commands/check.d.ts +10 -0
  8. package/dist/src/cli/commands/check.js +33 -0
  9. package/dist/src/cli/commands/graph.d.ts +15 -0
  10. package/dist/src/cli/commands/graph.js +32 -0
  11. package/dist/src/cli/commands/init.d.ts +2 -0
  12. package/dist/src/cli/commands/init.js +44 -0
  13. package/dist/src/cli/commands/json2md.d.ts +2 -0
  14. package/dist/src/cli/commands/json2md.js +60 -0
  15. package/dist/src/cli/commands/md2json.d.ts +2 -0
  16. package/dist/src/cli/commands/md2json.js +29 -0
  17. package/dist/src/cli/commands/plan.d.ts +2 -0
  18. package/dist/src/cli/commands/plan.js +227 -0
  19. package/dist/src/cli/commands/query.d.ts +2 -0
  20. package/dist/src/cli/commands/query.js +275 -0
  21. package/dist/src/cli/commands/remove.d.ts +13 -0
  22. package/dist/src/cli/commands/remove.js +50 -0
  23. package/dist/src/cli/commands/rename.d.ts +14 -0
  24. package/dist/src/cli/commands/rename.js +34 -0
  25. package/dist/src/cli/commands/search.d.ts +11 -0
  26. package/dist/src/cli/commands/search.js +37 -0
  27. package/dist/src/cli/commands/speckit.d.ts +2 -0
  28. package/dist/src/cli/commands/speckit.js +318 -0
  29. package/dist/src/cli/commands/stats.d.ts +10 -0
  30. package/dist/src/cli/commands/stats.js +51 -0
  31. package/dist/src/cli/commands/task.d.ts +2 -0
  32. package/dist/src/cli/commands/task.js +162 -0
  33. package/dist/src/cli/commands/update.d.ts +2 -0
  34. package/dist/src/cli/commands/update.js +219 -0
  35. package/dist/src/cli/commands/validate.d.ts +10 -0
  36. package/dist/src/cli/commands/validate.js +30 -0
  37. package/dist/src/cli/define-command.d.ts +34 -0
  38. package/dist/src/cli/define-command.js +237 -0
  39. package/dist/src/cli/index.d.ts +2 -0
  40. package/dist/src/cli/index.js +3 -0
  41. package/dist/src/cli/program.d.ts +4 -0
  42. package/dist/src/cli/program.js +46 -0
  43. package/dist/src/cli/shared.d.ts +26 -0
  44. package/dist/src/cli/shared.js +41 -0
  45. package/dist/src/generate-schema.d.ts +1 -0
  46. package/dist/src/generate-schema.js +9 -0
  47. package/dist/src/index.d.ts +48 -0
  48. package/dist/src/index.js +99 -0
  49. package/dist/src/io.d.ts +22 -0
  50. package/dist/src/io.js +66 -0
  51. package/dist/src/json-to-md.d.ts +26 -0
  52. package/dist/src/json-to-md.js +498 -0
  53. package/dist/src/md-to-json.d.ts +22 -0
  54. package/dist/src/md-to-json.js +548 -0
  55. package/dist/src/operations/add-node.d.ts +887 -0
  56. package/dist/src/operations/add-node.js +21 -0
  57. package/dist/src/operations/add-plan-task.d.ts +594 -0
  58. package/dist/src/operations/add-plan-task.js +25 -0
  59. package/dist/src/operations/add-relationship.d.ts +635 -0
  60. package/dist/src/operations/add-relationship.js +25 -0
  61. package/dist/src/operations/check.d.ts +301 -0
  62. package/dist/src/operations/check.js +66 -0
  63. package/dist/src/operations/define-operation.d.ts +14 -0
  64. package/dist/src/operations/define-operation.js +21 -0
  65. package/dist/src/operations/graph.d.ts +303 -0
  66. package/dist/src/operations/graph.js +71 -0
  67. package/dist/src/operations/index.d.ts +38 -0
  68. package/dist/src/operations/index.js +45 -0
  69. package/dist/src/operations/init-document.d.ts +299 -0
  70. package/dist/src/operations/init-document.js +26 -0
  71. package/dist/src/operations/json-to-markdown.d.ts +298 -0
  72. package/dist/src/operations/json-to-markdown.js +13 -0
  73. package/dist/src/operations/mark-task-done.d.ts +594 -0
  74. package/dist/src/operations/mark-task-done.js +26 -0
  75. package/dist/src/operations/mark-task-undone.d.ts +594 -0
  76. package/dist/src/operations/mark-task-undone.js +26 -0
  77. package/dist/src/operations/markdown-to-json.d.ts +298 -0
  78. package/dist/src/operations/markdown-to-json.js +13 -0
  79. package/dist/src/operations/next-id.d.ts +322 -0
  80. package/dist/src/operations/next-id.js +29 -0
  81. package/dist/src/operations/node-history.d.ts +313 -0
  82. package/dist/src/operations/node-history.js +55 -0
  83. package/dist/src/operations/plan-add-task.d.ts +595 -0
  84. package/dist/src/operations/plan-add-task.js +18 -0
  85. package/dist/src/operations/plan-gate.d.ts +351 -0
  86. package/dist/src/operations/plan-gate.js +41 -0
  87. package/dist/src/operations/plan-init.d.ts +299 -0
  88. package/dist/src/operations/plan-init.js +17 -0
  89. package/dist/src/operations/plan-progress.d.ts +313 -0
  90. package/dist/src/operations/plan-progress.js +23 -0
  91. package/dist/src/operations/plan-status.d.ts +349 -0
  92. package/dist/src/operations/plan-status.js +41 -0
  93. package/dist/src/operations/query-node.d.ts +1065 -0
  94. package/dist/src/operations/query-node.js +27 -0
  95. package/dist/src/operations/query-nodes.d.ts +594 -0
  96. package/dist/src/operations/query-nodes.js +23 -0
  97. package/dist/src/operations/query-relationships.d.ts +343 -0
  98. package/dist/src/operations/query-relationships.js +27 -0
  99. package/dist/src/operations/remove-node.d.ts +895 -0
  100. package/dist/src/operations/remove-node.js +58 -0
  101. package/dist/src/operations/remove-relationship.d.ts +622 -0
  102. package/dist/src/operations/remove-relationship.js +26 -0
  103. package/dist/src/operations/rename.d.ts +594 -0
  104. package/dist/src/operations/rename.js +113 -0
  105. package/dist/src/operations/search.d.ts +593 -0
  106. package/dist/src/operations/search.js +39 -0
  107. package/dist/src/operations/speckit-diff.d.ts +330 -0
  108. package/dist/src/operations/speckit-diff.js +89 -0
  109. package/dist/src/operations/speckit-export.d.ts +300 -0
  110. package/dist/src/operations/speckit-export.js +17 -0
  111. package/dist/src/operations/speckit-import.d.ts +299 -0
  112. package/dist/src/operations/speckit-import.js +39 -0
  113. package/dist/src/operations/speckit-sync.d.ts +900 -0
  114. package/dist/src/operations/speckit-sync.js +116 -0
  115. package/dist/src/operations/state-at.d.ts +309 -0
  116. package/dist/src/operations/state-at.js +53 -0
  117. package/dist/src/operations/stats.d.ts +324 -0
  118. package/dist/src/operations/stats.js +85 -0
  119. package/dist/src/operations/task-list.d.ts +305 -0
  120. package/dist/src/operations/task-list.js +44 -0
  121. package/dist/src/operations/timeline.d.ts +312 -0
  122. package/dist/src/operations/timeline.js +46 -0
  123. package/dist/src/operations/trace-from-node.d.ts +1197 -0
  124. package/dist/src/operations/trace-from-node.js +36 -0
  125. package/dist/src/operations/update-metadata.d.ts +593 -0
  126. package/dist/src/operations/update-metadata.js +18 -0
  127. package/dist/src/operations/update-node.d.ts +957 -0
  128. package/dist/src/operations/update-node.js +24 -0
  129. package/dist/src/operations/update-plan-task.d.ts +595 -0
  130. package/dist/src/operations/update-plan-task.js +31 -0
  131. package/dist/src/operations/validate.d.ts +310 -0
  132. package/dist/src/operations/validate.js +82 -0
  133. package/dist/src/schema.d.ts +891 -0
  134. package/dist/src/schema.js +356 -0
  135. package/dist/src/speckit/generate.d.ts +7 -0
  136. package/dist/src/speckit/generate.js +546 -0
  137. package/dist/src/speckit/index.d.ts +4 -0
  138. package/dist/src/speckit/index.js +4 -0
  139. package/dist/src/speckit/parse.d.ts +11 -0
  140. package/dist/src/speckit/parse.js +712 -0
  141. package/dist/src/speckit/plan.d.ts +125 -0
  142. package/dist/src/speckit/plan.js +636 -0
  143. package/dist/src/speckit/project.d.ts +39 -0
  144. package/dist/src/speckit/project.js +141 -0
  145. package/dist/src/text.d.ts +23 -0
  146. package/dist/src/text.js +32 -0
  147. package/package.json +86 -8
  148. package/schema.json +510 -0
@@ -0,0 +1,1065 @@
1
+ import * as z from "zod";
2
+ export declare const NodeDetail: z.ZodNullable<z.ZodObject<{
3
+ node: z.ZodObject<{
4
+ id: z.ZodString;
5
+ type: z.ZodEnum<{
6
+ intent: "intent";
7
+ concept: "concept";
8
+ capability: "capability";
9
+ element: "element";
10
+ realisation: "realisation";
11
+ invariant: "invariant";
12
+ principle: "principle";
13
+ policy: "policy";
14
+ protocol: "protocol";
15
+ stage: "stage";
16
+ role: "role";
17
+ gate: "gate";
18
+ mode: "mode";
19
+ artefact: "artefact";
20
+ artefact_flow: "artefact_flow";
21
+ decision: "decision";
22
+ change: "change";
23
+ view: "view";
24
+ milestone: "milestone";
25
+ version: "version";
26
+ }> & {
27
+ is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
28
+ };
29
+ name: z.ZodString;
30
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
31
+ is(value: unknown): value is string | string[];
32
+ }>;
33
+ status: z.ZodOptional<z.ZodEnum<{
34
+ deprecated: "deprecated";
35
+ proposed: "proposed";
36
+ accepted: "accepted";
37
+ active: "active";
38
+ implemented: "implemented";
39
+ adopted: "adopted";
40
+ defined: "defined";
41
+ introduced: "introduced";
42
+ in_progress: "in_progress";
43
+ complete: "complete";
44
+ consolidated: "consolidated";
45
+ experimental: "experimental";
46
+ retired: "retired";
47
+ superseded: "superseded";
48
+ abandoned: "abandoned";
49
+ deferred: "deferred";
50
+ }> & {
51
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
52
+ }>;
53
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
54
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
55
+ is(value: unknown): value is string | string[];
56
+ }>;
57
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ id: z.ZodString;
59
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
60
+ is(value: unknown): value is string | string[];
61
+ };
62
+ }, z.core.$loose> & {
63
+ is(value: unknown): value is {
64
+ [x: string]: unknown;
65
+ id: string;
66
+ description: string | string[];
67
+ };
68
+ }>>;
69
+ selected: z.ZodOptional<z.ZodString>;
70
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
71
+ is(value: unknown): value is string | string[];
72
+ }>;
73
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
75
+ type: z.ZodEnum<{
76
+ link: "link";
77
+ add: "add";
78
+ update: "update";
79
+ remove: "remove";
80
+ }>;
81
+ target: z.ZodOptional<z.ZodString>;
82
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
83
+ is(value: unknown): value is string | string[];
84
+ }>;
85
+ }, z.core.$loose> & {
86
+ is(value: unknown): value is {
87
+ [x: string]: unknown;
88
+ type: "link" | "add" | "update" | "remove";
89
+ target?: string | undefined;
90
+ description?: string | string[] | undefined;
91
+ };
92
+ }>>;
93
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
94
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
95
+ is(value: unknown): value is string | string[];
96
+ };
97
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
98
+ }, z.core.$loose> & {
99
+ is(value: unknown): value is {
100
+ [x: string]: unknown;
101
+ description: string | string[];
102
+ done?: boolean | undefined;
103
+ };
104
+ }>>;
105
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
106
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
+ input: z.ZodOptional<z.ZodString>;
108
+ output: z.ZodOptional<z.ZodString>;
109
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
110
+ role: z.ZodEnum<{
111
+ output: "output";
112
+ input: "input";
113
+ context: "context";
114
+ evidence: "evidence";
115
+ source: "source";
116
+ standard: "standard";
117
+ prior_art: "prior_art";
118
+ }> & {
119
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
120
+ };
121
+ identifier: z.ZodString;
122
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
123
+ is(value: unknown): value is string | string[];
124
+ }>;
125
+ node_id: z.ZodOptional<z.ZodString>;
126
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
127
+ is(value: unknown): value is string | string[];
128
+ }>;
129
+ }, z.core.$strip> & {
130
+ is(value: unknown): value is {
131
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
132
+ identifier: string;
133
+ description?: string | string[] | undefined;
134
+ node_id?: string | undefined;
135
+ internalised?: string | string[] | undefined;
136
+ };
137
+ }>>;
138
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
139
+ $schema: z.ZodOptional<z.ZodString>;
140
+ metadata: z.ZodOptional<z.ZodObject<{
141
+ title: z.ZodOptional<z.ZodString>;
142
+ doc_type: z.ZodOptional<z.ZodString>;
143
+ scope: z.ZodOptional<z.ZodString>;
144
+ status: z.ZodOptional<z.ZodString>;
145
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
146
+ }, z.core.$loose> & {
147
+ is(value: unknown): value is {
148
+ [x: string]: unknown;
149
+ title?: string | undefined;
150
+ doc_type?: string | undefined;
151
+ scope?: string | undefined;
152
+ status?: string | undefined;
153
+ version?: string | number | undefined;
154
+ };
155
+ }>;
156
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
157
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
158
+ from: z.ZodString;
159
+ to: z.ZodString;
160
+ type: z.ZodEnum<{
161
+ refines: "refines";
162
+ realises: "realises";
163
+ implements: "implements";
164
+ depends_on: "depends_on";
165
+ constrained_by: "constrained_by";
166
+ affects: "affects";
167
+ supersedes: "supersedes";
168
+ must_preserve: "must_preserve";
169
+ performs: "performs";
170
+ part_of: "part_of";
171
+ precedes: "precedes";
172
+ must_follow: "must_follow";
173
+ blocks: "blocks";
174
+ routes_to: "routes_to";
175
+ governed_by: "governed_by";
176
+ modifies: "modifies";
177
+ triggered_by: "triggered_by";
178
+ applies_to: "applies_to";
179
+ produces: "produces";
180
+ consumes: "consumes";
181
+ transforms_into: "transforms_into";
182
+ selects: "selects";
183
+ requires: "requires";
184
+ disables: "disables";
185
+ }> & {
186
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
187
+ };
188
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
189
+ is(value: unknown): value is string | string[];
190
+ }>;
191
+ }, z.core.$loose> & {
192
+ is(value: unknown): value is {
193
+ [x: string]: unknown;
194
+ from: string;
195
+ to: string;
196
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
197
+ description?: string | string[] | undefined;
198
+ };
199
+ }>>;
200
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
201
+ role: z.ZodEnum<{
202
+ output: "output";
203
+ input: "input";
204
+ context: "context";
205
+ evidence: "evidence";
206
+ source: "source";
207
+ standard: "standard";
208
+ prior_art: "prior_art";
209
+ }> & {
210
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
211
+ };
212
+ identifier: z.ZodString;
213
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
214
+ is(value: unknown): value is string | string[];
215
+ }>;
216
+ node_id: z.ZodOptional<z.ZodString>;
217
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
218
+ is(value: unknown): value is string | string[];
219
+ }>;
220
+ }, z.core.$strip> & {
221
+ is(value: unknown): value is {
222
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
223
+ identifier: string;
224
+ description?: string | string[] | undefined;
225
+ node_id?: string | undefined;
226
+ internalised?: string | string[] | undefined;
227
+ };
228
+ }>>;
229
+ }, z.core.$strip>>;
230
+ }, z.core.$loose> & {
231
+ is(value: unknown): value is {
232
+ [x: string]: unknown;
233
+ id: string;
234
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
235
+ name: string;
236
+ description?: string | string[] | undefined;
237
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
238
+ lifecycle?: Record<string, string | boolean> | undefined;
239
+ context?: string | string[] | undefined;
240
+ options?: {
241
+ [x: string]: unknown;
242
+ id: string;
243
+ description: string | string[];
244
+ }[] | undefined;
245
+ selected?: string | undefined;
246
+ rationale?: string | string[] | undefined;
247
+ scope?: string[] | undefined;
248
+ operations?: {
249
+ [x: string]: unknown;
250
+ type: "link" | "add" | "update" | "remove";
251
+ target?: string | undefined;
252
+ description?: string | string[] | undefined;
253
+ }[] | undefined;
254
+ plan?: {
255
+ [x: string]: unknown;
256
+ description: string | string[];
257
+ done?: boolean | undefined;
258
+ }[] | undefined;
259
+ propagation?: Record<string, boolean> | undefined;
260
+ includes?: string[] | undefined;
261
+ input?: string | undefined;
262
+ output?: string | undefined;
263
+ external_references?: {
264
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
265
+ identifier: string;
266
+ description?: string | string[] | undefined;
267
+ node_id?: string | undefined;
268
+ internalised?: string | string[] | undefined;
269
+ }[] | undefined;
270
+ subsystem?: {
271
+ nodes: /*elided*/ any[];
272
+ $schema?: string | undefined;
273
+ metadata?: {
274
+ [x: string]: unknown;
275
+ title?: string | undefined;
276
+ doc_type?: string | undefined;
277
+ scope?: string | undefined;
278
+ status?: string | undefined;
279
+ version?: string | number | undefined;
280
+ } | undefined;
281
+ relationships?: {
282
+ [x: string]: unknown;
283
+ from: string;
284
+ to: string;
285
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
286
+ description?: string | string[] | undefined;
287
+ }[] | undefined;
288
+ external_references?: {
289
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
290
+ identifier: string;
291
+ description?: string | string[] | undefined;
292
+ node_id?: string | undefined;
293
+ internalised?: string | string[] | undefined;
294
+ }[] | undefined;
295
+ } | undefined;
296
+ };
297
+ };
298
+ outgoing: z.ZodArray<z.ZodObject<{
299
+ from: z.ZodString;
300
+ to: z.ZodString;
301
+ type: z.ZodEnum<{
302
+ refines: "refines";
303
+ realises: "realises";
304
+ implements: "implements";
305
+ depends_on: "depends_on";
306
+ constrained_by: "constrained_by";
307
+ affects: "affects";
308
+ supersedes: "supersedes";
309
+ must_preserve: "must_preserve";
310
+ performs: "performs";
311
+ part_of: "part_of";
312
+ precedes: "precedes";
313
+ must_follow: "must_follow";
314
+ blocks: "blocks";
315
+ routes_to: "routes_to";
316
+ governed_by: "governed_by";
317
+ modifies: "modifies";
318
+ triggered_by: "triggered_by";
319
+ applies_to: "applies_to";
320
+ produces: "produces";
321
+ consumes: "consumes";
322
+ transforms_into: "transforms_into";
323
+ selects: "selects";
324
+ requires: "requires";
325
+ disables: "disables";
326
+ }> & {
327
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
328
+ };
329
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
330
+ is(value: unknown): value is string | string[];
331
+ }>;
332
+ }, z.core.$loose> & {
333
+ is(value: unknown): value is {
334
+ [x: string]: unknown;
335
+ from: string;
336
+ to: string;
337
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
338
+ description?: string | string[] | undefined;
339
+ };
340
+ }>;
341
+ incoming: z.ZodArray<z.ZodObject<{
342
+ from: z.ZodString;
343
+ to: z.ZodString;
344
+ type: z.ZodEnum<{
345
+ refines: "refines";
346
+ realises: "realises";
347
+ implements: "implements";
348
+ depends_on: "depends_on";
349
+ constrained_by: "constrained_by";
350
+ affects: "affects";
351
+ supersedes: "supersedes";
352
+ must_preserve: "must_preserve";
353
+ performs: "performs";
354
+ part_of: "part_of";
355
+ precedes: "precedes";
356
+ must_follow: "must_follow";
357
+ blocks: "blocks";
358
+ routes_to: "routes_to";
359
+ governed_by: "governed_by";
360
+ modifies: "modifies";
361
+ triggered_by: "triggered_by";
362
+ applies_to: "applies_to";
363
+ produces: "produces";
364
+ consumes: "consumes";
365
+ transforms_into: "transforms_into";
366
+ selects: "selects";
367
+ requires: "requires";
368
+ disables: "disables";
369
+ }> & {
370
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
371
+ };
372
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
373
+ is(value: unknown): value is string | string[];
374
+ }>;
375
+ }, z.core.$loose> & {
376
+ is(value: unknown): value is {
377
+ [x: string]: unknown;
378
+ from: string;
379
+ to: string;
380
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
381
+ description?: string | string[] | undefined;
382
+ };
383
+ }>;
384
+ }, z.core.$strip>>;
385
+ export type NodeDetail = z.infer<typeof NodeDetail>;
386
+ export declare const queryNodeOp: import("./define-operation.js").DefinedOperation<z.ZodObject<{
387
+ doc: z.ZodObject<{
388
+ $schema: z.ZodOptional<z.ZodString>;
389
+ metadata: z.ZodOptional<z.ZodObject<{
390
+ title: z.ZodOptional<z.ZodString>;
391
+ doc_type: z.ZodOptional<z.ZodString>;
392
+ scope: z.ZodOptional<z.ZodString>;
393
+ status: z.ZodOptional<z.ZodString>;
394
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
395
+ }, z.core.$loose> & {
396
+ is(value: unknown): value is {
397
+ [x: string]: unknown;
398
+ title?: string | undefined;
399
+ doc_type?: string | undefined;
400
+ scope?: string | undefined;
401
+ status?: string | undefined;
402
+ version?: string | number | undefined;
403
+ };
404
+ }>;
405
+ nodes: z.ZodArray<z.ZodObject<{
406
+ id: z.ZodString;
407
+ type: z.ZodEnum<{
408
+ intent: "intent";
409
+ concept: "concept";
410
+ capability: "capability";
411
+ element: "element";
412
+ realisation: "realisation";
413
+ invariant: "invariant";
414
+ principle: "principle";
415
+ policy: "policy";
416
+ protocol: "protocol";
417
+ stage: "stage";
418
+ role: "role";
419
+ gate: "gate";
420
+ mode: "mode";
421
+ artefact: "artefact";
422
+ artefact_flow: "artefact_flow";
423
+ decision: "decision";
424
+ change: "change";
425
+ view: "view";
426
+ milestone: "milestone";
427
+ version: "version";
428
+ }> & {
429
+ is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
430
+ };
431
+ name: z.ZodString;
432
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
433
+ is(value: unknown): value is string | string[];
434
+ }>;
435
+ status: z.ZodOptional<z.ZodEnum<{
436
+ deprecated: "deprecated";
437
+ proposed: "proposed";
438
+ accepted: "accepted";
439
+ active: "active";
440
+ implemented: "implemented";
441
+ adopted: "adopted";
442
+ defined: "defined";
443
+ introduced: "introduced";
444
+ in_progress: "in_progress";
445
+ complete: "complete";
446
+ consolidated: "consolidated";
447
+ experimental: "experimental";
448
+ retired: "retired";
449
+ superseded: "superseded";
450
+ abandoned: "abandoned";
451
+ deferred: "deferred";
452
+ }> & {
453
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
454
+ }>;
455
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
456
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
457
+ is(value: unknown): value is string | string[];
458
+ }>;
459
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
460
+ id: z.ZodString;
461
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
462
+ is(value: unknown): value is string | string[];
463
+ };
464
+ }, z.core.$loose> & {
465
+ is(value: unknown): value is {
466
+ [x: string]: unknown;
467
+ id: string;
468
+ description: string | string[];
469
+ };
470
+ }>>;
471
+ selected: z.ZodOptional<z.ZodString>;
472
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
473
+ is(value: unknown): value is string | string[];
474
+ }>;
475
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
476
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
477
+ type: z.ZodEnum<{
478
+ link: "link";
479
+ add: "add";
480
+ update: "update";
481
+ remove: "remove";
482
+ }>;
483
+ target: z.ZodOptional<z.ZodString>;
484
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
485
+ is(value: unknown): value is string | string[];
486
+ }>;
487
+ }, z.core.$loose> & {
488
+ is(value: unknown): value is {
489
+ [x: string]: unknown;
490
+ type: "link" | "add" | "update" | "remove";
491
+ target?: string | undefined;
492
+ description?: string | string[] | undefined;
493
+ };
494
+ }>>;
495
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
496
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
497
+ is(value: unknown): value is string | string[];
498
+ };
499
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
500
+ }, z.core.$loose> & {
501
+ is(value: unknown): value is {
502
+ [x: string]: unknown;
503
+ description: string | string[];
504
+ done?: boolean | undefined;
505
+ };
506
+ }>>;
507
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
508
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
509
+ input: z.ZodOptional<z.ZodString>;
510
+ output: z.ZodOptional<z.ZodString>;
511
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
512
+ role: z.ZodEnum<{
513
+ output: "output";
514
+ input: "input";
515
+ context: "context";
516
+ evidence: "evidence";
517
+ source: "source";
518
+ standard: "standard";
519
+ prior_art: "prior_art";
520
+ }> & {
521
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
522
+ };
523
+ identifier: z.ZodString;
524
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
525
+ is(value: unknown): value is string | string[];
526
+ }>;
527
+ node_id: z.ZodOptional<z.ZodString>;
528
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
529
+ is(value: unknown): value is string | string[];
530
+ }>;
531
+ }, z.core.$strip> & {
532
+ is(value: unknown): value is {
533
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
534
+ identifier: string;
535
+ description?: string | string[] | undefined;
536
+ node_id?: string | undefined;
537
+ internalised?: string | string[] | undefined;
538
+ };
539
+ }>>;
540
+ readonly subsystem: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>;
541
+ }, z.core.$loose>>;
542
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
543
+ from: z.ZodString;
544
+ to: z.ZodString;
545
+ type: z.ZodEnum<{
546
+ refines: "refines";
547
+ realises: "realises";
548
+ implements: "implements";
549
+ depends_on: "depends_on";
550
+ constrained_by: "constrained_by";
551
+ affects: "affects";
552
+ supersedes: "supersedes";
553
+ must_preserve: "must_preserve";
554
+ performs: "performs";
555
+ part_of: "part_of";
556
+ precedes: "precedes";
557
+ must_follow: "must_follow";
558
+ blocks: "blocks";
559
+ routes_to: "routes_to";
560
+ governed_by: "governed_by";
561
+ modifies: "modifies";
562
+ triggered_by: "triggered_by";
563
+ applies_to: "applies_to";
564
+ produces: "produces";
565
+ consumes: "consumes";
566
+ transforms_into: "transforms_into";
567
+ selects: "selects";
568
+ requires: "requires";
569
+ disables: "disables";
570
+ }> & {
571
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
572
+ };
573
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
574
+ is(value: unknown): value is string | string[];
575
+ }>;
576
+ }, z.core.$loose> & {
577
+ is(value: unknown): value is {
578
+ [x: string]: unknown;
579
+ from: string;
580
+ to: string;
581
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
582
+ description?: string | string[] | undefined;
583
+ };
584
+ }>>;
585
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
586
+ role: z.ZodEnum<{
587
+ output: "output";
588
+ input: "input";
589
+ context: "context";
590
+ evidence: "evidence";
591
+ source: "source";
592
+ standard: "standard";
593
+ prior_art: "prior_art";
594
+ }> & {
595
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
596
+ };
597
+ identifier: z.ZodString;
598
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
599
+ is(value: unknown): value is string | string[];
600
+ }>;
601
+ node_id: z.ZodOptional<z.ZodString>;
602
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
603
+ is(value: unknown): value is string | string[];
604
+ }>;
605
+ }, z.core.$strip> & {
606
+ is(value: unknown): value is {
607
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
608
+ identifier: string;
609
+ description?: string | string[] | undefined;
610
+ node_id?: string | undefined;
611
+ internalised?: string | string[] | undefined;
612
+ };
613
+ }>>;
614
+ }, z.core.$strip> & {
615
+ is(value: unknown): value is {
616
+ nodes: {
617
+ [x: string]: unknown;
618
+ id: string;
619
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
620
+ name: string;
621
+ description?: string | string[] | undefined;
622
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
623
+ lifecycle?: Record<string, string | boolean> | undefined;
624
+ context?: string | string[] | undefined;
625
+ options?: {
626
+ [x: string]: unknown;
627
+ id: string;
628
+ description: string | string[];
629
+ }[] | undefined;
630
+ selected?: string | undefined;
631
+ rationale?: string | string[] | undefined;
632
+ scope?: string[] | undefined;
633
+ operations?: {
634
+ [x: string]: unknown;
635
+ type: "link" | "add" | "update" | "remove";
636
+ target?: string | undefined;
637
+ description?: string | string[] | undefined;
638
+ }[] | undefined;
639
+ plan?: {
640
+ [x: string]: unknown;
641
+ description: string | string[];
642
+ done?: boolean | undefined;
643
+ }[] | undefined;
644
+ propagation?: Record<string, boolean> | undefined;
645
+ includes?: string[] | undefined;
646
+ input?: string | undefined;
647
+ output?: string | undefined;
648
+ external_references?: {
649
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
650
+ identifier: string;
651
+ description?: string | string[] | undefined;
652
+ node_id?: string | undefined;
653
+ internalised?: string | string[] | undefined;
654
+ }[] | undefined;
655
+ subsystem?: /*elided*/ any | undefined;
656
+ }[];
657
+ $schema?: string | undefined;
658
+ metadata?: {
659
+ [x: string]: unknown;
660
+ title?: string | undefined;
661
+ doc_type?: string | undefined;
662
+ scope?: string | undefined;
663
+ status?: string | undefined;
664
+ version?: string | number | undefined;
665
+ } | undefined;
666
+ relationships?: {
667
+ [x: string]: unknown;
668
+ from: string;
669
+ to: string;
670
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
671
+ description?: string | string[] | undefined;
672
+ }[] | undefined;
673
+ external_references?: {
674
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
675
+ identifier: string;
676
+ description?: string | string[] | undefined;
677
+ node_id?: string | undefined;
678
+ internalised?: string | string[] | undefined;
679
+ }[] | undefined;
680
+ };
681
+ };
682
+ id: z.ZodString;
683
+ }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
684
+ node: z.ZodObject<{
685
+ id: z.ZodString;
686
+ type: z.ZodEnum<{
687
+ intent: "intent";
688
+ concept: "concept";
689
+ capability: "capability";
690
+ element: "element";
691
+ realisation: "realisation";
692
+ invariant: "invariant";
693
+ principle: "principle";
694
+ policy: "policy";
695
+ protocol: "protocol";
696
+ stage: "stage";
697
+ role: "role";
698
+ gate: "gate";
699
+ mode: "mode";
700
+ artefact: "artefact";
701
+ artefact_flow: "artefact_flow";
702
+ decision: "decision";
703
+ change: "change";
704
+ view: "view";
705
+ milestone: "milestone";
706
+ version: "version";
707
+ }> & {
708
+ is(value: unknown): value is "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
709
+ };
710
+ name: z.ZodString;
711
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
712
+ is(value: unknown): value is string | string[];
713
+ }>;
714
+ status: z.ZodOptional<z.ZodEnum<{
715
+ deprecated: "deprecated";
716
+ proposed: "proposed";
717
+ accepted: "accepted";
718
+ active: "active";
719
+ implemented: "implemented";
720
+ adopted: "adopted";
721
+ defined: "defined";
722
+ introduced: "introduced";
723
+ in_progress: "in_progress";
724
+ complete: "complete";
725
+ consolidated: "consolidated";
726
+ experimental: "experimental";
727
+ retired: "retired";
728
+ superseded: "superseded";
729
+ abandoned: "abandoned";
730
+ deferred: "deferred";
731
+ }> & {
732
+ is(value: unknown): value is "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred";
733
+ }>;
734
+ lifecycle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
735
+ context: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
736
+ is(value: unknown): value is string | string[];
737
+ }>;
738
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
739
+ id: z.ZodString;
740
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
741
+ is(value: unknown): value is string | string[];
742
+ };
743
+ }, z.core.$loose> & {
744
+ is(value: unknown): value is {
745
+ [x: string]: unknown;
746
+ id: string;
747
+ description: string | string[];
748
+ };
749
+ }>>;
750
+ selected: z.ZodOptional<z.ZodString>;
751
+ rationale: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
752
+ is(value: unknown): value is string | string[];
753
+ }>;
754
+ scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
755
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
756
+ type: z.ZodEnum<{
757
+ link: "link";
758
+ add: "add";
759
+ update: "update";
760
+ remove: "remove";
761
+ }>;
762
+ target: z.ZodOptional<z.ZodString>;
763
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
764
+ is(value: unknown): value is string | string[];
765
+ }>;
766
+ }, z.core.$loose> & {
767
+ is(value: unknown): value is {
768
+ [x: string]: unknown;
769
+ type: "link" | "add" | "update" | "remove";
770
+ target?: string | undefined;
771
+ description?: string | string[] | undefined;
772
+ };
773
+ }>>;
774
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
775
+ description: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
776
+ is(value: unknown): value is string | string[];
777
+ };
778
+ done: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
779
+ }, z.core.$loose> & {
780
+ is(value: unknown): value is {
781
+ [x: string]: unknown;
782
+ description: string | string[];
783
+ done?: boolean | undefined;
784
+ };
785
+ }>>;
786
+ propagation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
787
+ includes: z.ZodOptional<z.ZodArray<z.ZodString>>;
788
+ input: z.ZodOptional<z.ZodString>;
789
+ output: z.ZodOptional<z.ZodString>;
790
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
791
+ role: z.ZodEnum<{
792
+ output: "output";
793
+ input: "input";
794
+ context: "context";
795
+ evidence: "evidence";
796
+ source: "source";
797
+ standard: "standard";
798
+ prior_art: "prior_art";
799
+ }> & {
800
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
801
+ };
802
+ identifier: z.ZodString;
803
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
804
+ is(value: unknown): value is string | string[];
805
+ }>;
806
+ node_id: z.ZodOptional<z.ZodString>;
807
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
808
+ is(value: unknown): value is string | string[];
809
+ }>;
810
+ }, z.core.$strip> & {
811
+ is(value: unknown): value is {
812
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
813
+ identifier: string;
814
+ description?: string | string[] | undefined;
815
+ node_id?: string | undefined;
816
+ internalised?: string | string[] | undefined;
817
+ };
818
+ }>>;
819
+ readonly subsystem: z.ZodOptional<z.ZodObject<{
820
+ $schema: z.ZodOptional<z.ZodString>;
821
+ metadata: z.ZodOptional<z.ZodObject<{
822
+ title: z.ZodOptional<z.ZodString>;
823
+ doc_type: z.ZodOptional<z.ZodString>;
824
+ scope: z.ZodOptional<z.ZodString>;
825
+ status: z.ZodOptional<z.ZodString>;
826
+ version: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
827
+ }, z.core.$loose> & {
828
+ is(value: unknown): value is {
829
+ [x: string]: unknown;
830
+ title?: string | undefined;
831
+ doc_type?: string | undefined;
832
+ scope?: string | undefined;
833
+ status?: string | undefined;
834
+ version?: string | number | undefined;
835
+ };
836
+ }>;
837
+ nodes: z.ZodArray<z.ZodObject</*elided*/ any, z.core.$loose>>;
838
+ relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
839
+ from: z.ZodString;
840
+ to: z.ZodString;
841
+ type: z.ZodEnum<{
842
+ refines: "refines";
843
+ realises: "realises";
844
+ implements: "implements";
845
+ depends_on: "depends_on";
846
+ constrained_by: "constrained_by";
847
+ affects: "affects";
848
+ supersedes: "supersedes";
849
+ must_preserve: "must_preserve";
850
+ performs: "performs";
851
+ part_of: "part_of";
852
+ precedes: "precedes";
853
+ must_follow: "must_follow";
854
+ blocks: "blocks";
855
+ routes_to: "routes_to";
856
+ governed_by: "governed_by";
857
+ modifies: "modifies";
858
+ triggered_by: "triggered_by";
859
+ applies_to: "applies_to";
860
+ produces: "produces";
861
+ consumes: "consumes";
862
+ transforms_into: "transforms_into";
863
+ selects: "selects";
864
+ requires: "requires";
865
+ disables: "disables";
866
+ }> & {
867
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
868
+ };
869
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
870
+ is(value: unknown): value is string | string[];
871
+ }>;
872
+ }, z.core.$loose> & {
873
+ is(value: unknown): value is {
874
+ [x: string]: unknown;
875
+ from: string;
876
+ to: string;
877
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
878
+ description?: string | string[] | undefined;
879
+ };
880
+ }>>;
881
+ external_references: z.ZodOptional<z.ZodArray<z.ZodObject<{
882
+ role: z.ZodEnum<{
883
+ output: "output";
884
+ input: "input";
885
+ context: "context";
886
+ evidence: "evidence";
887
+ source: "source";
888
+ standard: "standard";
889
+ prior_art: "prior_art";
890
+ }> & {
891
+ is(value: unknown): value is "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
892
+ };
893
+ identifier: z.ZodString;
894
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
895
+ is(value: unknown): value is string | string[];
896
+ }>;
897
+ node_id: z.ZodOptional<z.ZodString>;
898
+ internalised: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
899
+ is(value: unknown): value is string | string[];
900
+ }>;
901
+ }, z.core.$strip> & {
902
+ is(value: unknown): value is {
903
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
904
+ identifier: string;
905
+ description?: string | string[] | undefined;
906
+ node_id?: string | undefined;
907
+ internalised?: string | string[] | undefined;
908
+ };
909
+ }>>;
910
+ }, z.core.$strip>>;
911
+ }, z.core.$loose> & {
912
+ is(value: unknown): value is {
913
+ [x: string]: unknown;
914
+ id: string;
915
+ type: "intent" | "concept" | "capability" | "element" | "realisation" | "invariant" | "principle" | "policy" | "protocol" | "stage" | "role" | "gate" | "mode" | "artefact" | "artefact_flow" | "decision" | "change" | "view" | "milestone" | "version";
916
+ name: string;
917
+ description?: string | string[] | undefined;
918
+ status?: "deprecated" | "proposed" | "accepted" | "active" | "implemented" | "adopted" | "defined" | "introduced" | "in_progress" | "complete" | "consolidated" | "experimental" | "retired" | "superseded" | "abandoned" | "deferred" | undefined;
919
+ lifecycle?: Record<string, string | boolean> | undefined;
920
+ context?: string | string[] | undefined;
921
+ options?: {
922
+ [x: string]: unknown;
923
+ id: string;
924
+ description: string | string[];
925
+ }[] | undefined;
926
+ selected?: string | undefined;
927
+ rationale?: string | string[] | undefined;
928
+ scope?: string[] | undefined;
929
+ operations?: {
930
+ [x: string]: unknown;
931
+ type: "link" | "add" | "update" | "remove";
932
+ target?: string | undefined;
933
+ description?: string | string[] | undefined;
934
+ }[] | undefined;
935
+ plan?: {
936
+ [x: string]: unknown;
937
+ description: string | string[];
938
+ done?: boolean | undefined;
939
+ }[] | undefined;
940
+ propagation?: Record<string, boolean> | undefined;
941
+ includes?: string[] | undefined;
942
+ input?: string | undefined;
943
+ output?: string | undefined;
944
+ external_references?: {
945
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
946
+ identifier: string;
947
+ description?: string | string[] | undefined;
948
+ node_id?: string | undefined;
949
+ internalised?: string | string[] | undefined;
950
+ }[] | undefined;
951
+ subsystem?: {
952
+ nodes: /*elided*/ any[];
953
+ $schema?: string | undefined;
954
+ metadata?: {
955
+ [x: string]: unknown;
956
+ title?: string | undefined;
957
+ doc_type?: string | undefined;
958
+ scope?: string | undefined;
959
+ status?: string | undefined;
960
+ version?: string | number | undefined;
961
+ } | undefined;
962
+ relationships?: {
963
+ [x: string]: unknown;
964
+ from: string;
965
+ to: string;
966
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
967
+ description?: string | string[] | undefined;
968
+ }[] | undefined;
969
+ external_references?: {
970
+ role: "output" | "input" | "context" | "evidence" | "source" | "standard" | "prior_art";
971
+ identifier: string;
972
+ description?: string | string[] | undefined;
973
+ node_id?: string | undefined;
974
+ internalised?: string | string[] | undefined;
975
+ }[] | undefined;
976
+ } | undefined;
977
+ };
978
+ };
979
+ outgoing: z.ZodArray<z.ZodObject<{
980
+ from: z.ZodString;
981
+ to: z.ZodString;
982
+ type: z.ZodEnum<{
983
+ refines: "refines";
984
+ realises: "realises";
985
+ implements: "implements";
986
+ depends_on: "depends_on";
987
+ constrained_by: "constrained_by";
988
+ affects: "affects";
989
+ supersedes: "supersedes";
990
+ must_preserve: "must_preserve";
991
+ performs: "performs";
992
+ part_of: "part_of";
993
+ precedes: "precedes";
994
+ must_follow: "must_follow";
995
+ blocks: "blocks";
996
+ routes_to: "routes_to";
997
+ governed_by: "governed_by";
998
+ modifies: "modifies";
999
+ triggered_by: "triggered_by";
1000
+ applies_to: "applies_to";
1001
+ produces: "produces";
1002
+ consumes: "consumes";
1003
+ transforms_into: "transforms_into";
1004
+ selects: "selects";
1005
+ requires: "requires";
1006
+ disables: "disables";
1007
+ }> & {
1008
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
1009
+ };
1010
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1011
+ is(value: unknown): value is string | string[];
1012
+ }>;
1013
+ }, z.core.$loose> & {
1014
+ is(value: unknown): value is {
1015
+ [x: string]: unknown;
1016
+ from: string;
1017
+ to: string;
1018
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
1019
+ description?: string | string[] | undefined;
1020
+ };
1021
+ }>;
1022
+ incoming: z.ZodArray<z.ZodObject<{
1023
+ from: z.ZodString;
1024
+ to: z.ZodString;
1025
+ type: z.ZodEnum<{
1026
+ refines: "refines";
1027
+ realises: "realises";
1028
+ implements: "implements";
1029
+ depends_on: "depends_on";
1030
+ constrained_by: "constrained_by";
1031
+ affects: "affects";
1032
+ supersedes: "supersedes";
1033
+ must_preserve: "must_preserve";
1034
+ performs: "performs";
1035
+ part_of: "part_of";
1036
+ precedes: "precedes";
1037
+ must_follow: "must_follow";
1038
+ blocks: "blocks";
1039
+ routes_to: "routes_to";
1040
+ governed_by: "governed_by";
1041
+ modifies: "modifies";
1042
+ triggered_by: "triggered_by";
1043
+ applies_to: "applies_to";
1044
+ produces: "produces";
1045
+ consumes: "consumes";
1046
+ transforms_into: "transforms_into";
1047
+ selects: "selects";
1048
+ requires: "requires";
1049
+ disables: "disables";
1050
+ }> & {
1051
+ is(value: unknown): value is "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
1052
+ };
1053
+ description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]> & {
1054
+ is(value: unknown): value is string | string[];
1055
+ }>;
1056
+ }, z.core.$loose> & {
1057
+ is(value: unknown): value is {
1058
+ [x: string]: unknown;
1059
+ from: string;
1060
+ to: string;
1061
+ type: "refines" | "realises" | "implements" | "depends_on" | "constrained_by" | "affects" | "supersedes" | "must_preserve" | "performs" | "part_of" | "precedes" | "must_follow" | "blocks" | "routes_to" | "governed_by" | "modifies" | "triggered_by" | "applies_to" | "produces" | "consumes" | "transforms_into" | "selects" | "requires" | "disables";
1062
+ description?: string | string[] | undefined;
1063
+ };
1064
+ }>;
1065
+ }, z.core.$strip>>>;