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