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