@coldtea/pr-lens-schema 0.1.0

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 (93) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +150 -0
  3. package/dist/apply.d.ts +42 -0
  4. package/dist/apply.d.ts.map +1 -0
  5. package/dist/apply.js +315 -0
  6. package/dist/apply.js.map +1 -0
  7. package/dist/config.d.ts +58 -0
  8. package/dist/config.d.ts.map +1 -0
  9. package/dist/config.js +61 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/errors.d.ts +24 -0
  12. package/dist/errors.d.ts.map +1 -0
  13. package/dist/errors.js +12 -0
  14. package/dist/errors.js.map +1 -0
  15. package/dist/examples/baseline.d.ts +18 -0
  16. package/dist/examples/baseline.d.ts.map +1 -0
  17. package/dist/examples/baseline.js +433 -0
  18. package/dist/examples/baseline.js.map +1 -0
  19. package/dist/examples/index.d.ts +1194 -0
  20. package/dist/examples/index.d.ts.map +1 -0
  21. package/dist/examples/index.js +20 -0
  22. package/dist/examples/index.js.map +1 -0
  23. package/dist/examples/minimal.d.ts +4 -0
  24. package/dist/examples/minimal.d.ts.map +1 -0
  25. package/dist/examples/minimal.js +25 -0
  26. package/dist/examples/minimal.js.map +1 -0
  27. package/dist/examples/postmark-refactor.d.ts +16 -0
  28. package/dist/examples/postmark-refactor.d.ts.map +1 -0
  29. package/dist/examples/postmark-refactor.js +468 -0
  30. package/dist/examples/postmark-refactor.js.map +1 -0
  31. package/dist/graph.d.ts +568 -0
  32. package/dist/graph.d.ts.map +1 -0
  33. package/dist/graph.js +266 -0
  34. package/dist/graph.js.map +1 -0
  35. package/dist/index.d.ts +12 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +12 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/integrity.d.ts +20 -0
  40. package/dist/integrity.d.ts.map +1 -0
  41. package/dist/integrity.js +167 -0
  42. package/dist/integrity.js.map +1 -0
  43. package/dist/manifest.d.ts +65 -0
  44. package/dist/manifest.d.ts.map +1 -0
  45. package/dist/manifest.js +60 -0
  46. package/dist/manifest.js.map +1 -0
  47. package/dist/patch.d.ts +824 -0
  48. package/dist/patch.d.ts.map +1 -0
  49. package/dist/patch.js +84 -0
  50. package/dist/patch.js.map +1 -0
  51. package/dist/primitives.d.ts +92 -0
  52. package/dist/primitives.d.ts.map +1 -0
  53. package/dist/primitives.js +120 -0
  54. package/dist/primitives.js.map +1 -0
  55. package/dist/utils.d.ts +6 -0
  56. package/dist/utils.d.ts.map +1 -0
  57. package/dist/utils.js +8 -0
  58. package/dist/utils.js.map +1 -0
  59. package/dist/validate.d.ts +18 -0
  60. package/dist/validate.d.ts.map +1 -0
  61. package/dist/validate.js +95 -0
  62. package/dist/validate.js.map +1 -0
  63. package/dist/version.d.ts +21 -0
  64. package/dist/version.d.ts.map +1 -0
  65. package/dist/version.js +24 -0
  66. package/dist/version.js.map +1 -0
  67. package/examples/broadcast-baseline.graph.json +289 -0
  68. package/examples/broadcast-baseline.patch.json +321 -0
  69. package/examples/minimal.graph.json +45 -0
  70. package/examples/postmark-refactor.graph.json +580 -0
  71. package/examples/postmark-refactor.render-manifest.json +67 -0
  72. package/examples/pr-lens.config.json +32 -0
  73. package/json-schema/config.schema.json +153 -0
  74. package/json-schema/graph-doc.schema.json +1032 -0
  75. package/json-schema/patch-doc.schema.json +1383 -0
  76. package/json-schema/render-manifest.schema.json +183 -0
  77. package/package.json +66 -0
  78. package/src/apply.ts +399 -0
  79. package/src/config.ts +69 -0
  80. package/src/errors.ts +34 -0
  81. package/src/examples/baseline.ts +437 -0
  82. package/src/examples/index.ts +25 -0
  83. package/src/examples/minimal.ts +26 -0
  84. package/src/examples/postmark-refactor.ts +480 -0
  85. package/src/graph.ts +331 -0
  86. package/src/index.ts +82 -0
  87. package/src/integrity.ts +216 -0
  88. package/src/manifest.ts +64 -0
  89. package/src/patch.ts +100 -0
  90. package/src/primitives.ts +146 -0
  91. package/src/utils.ts +7 -0
  92. package/src/validate.ts +132 -0
  93. package/src/version.ts +31 -0
@@ -0,0 +1,568 @@
1
+ import { z } from "zod";
2
+ import { Lens } from "./primitives.js";
3
+ /**
4
+ * Coarse on purpose: this drives the card icon and shape, never analysis.
5
+ * Anything that does not fit is `other`, which still renders.
6
+ */
7
+ export declare const NodeKind: z.ZodEnum<{
8
+ app: "app";
9
+ cache: "cache";
10
+ config: "config";
11
+ datastore: "datastore";
12
+ external: "external";
13
+ function: "function";
14
+ job: "job";
15
+ module: "module";
16
+ other: "other";
17
+ package: "package";
18
+ queue: "queue";
19
+ route: "route";
20
+ service: "service";
21
+ test: "test";
22
+ ui: "ui";
23
+ }>;
24
+ export type NodeKind = z.infer<typeof NodeKind>;
25
+ export declare const Lane: z.ZodObject<{
26
+ id: z.ZodString;
27
+ label: z.ZodString;
28
+ subtitle: z.ZodOptional<z.ZodString>;
29
+ order: z.ZodOptional<z.ZodInt>;
30
+ delta: z.ZodOptional<z.ZodEnum<{
31
+ added: "added";
32
+ modified: "modified";
33
+ removed: "removed";
34
+ unchanged: "unchanged";
35
+ }>>;
36
+ summary: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strict>;
38
+ export type Lane = z.infer<typeof Lane>;
39
+ export declare const GraphNode: z.ZodObject<{
40
+ id: z.ZodString;
41
+ label: z.ZodString;
42
+ kind: z.ZodEnum<{
43
+ app: "app";
44
+ cache: "cache";
45
+ config: "config";
46
+ datastore: "datastore";
47
+ external: "external";
48
+ function: "function";
49
+ job: "job";
50
+ module: "module";
51
+ other: "other";
52
+ package: "package";
53
+ queue: "queue";
54
+ route: "route";
55
+ service: "service";
56
+ test: "test";
57
+ ui: "ui";
58
+ }>;
59
+ delta: z.ZodEnum<{
60
+ added: "added";
61
+ modified: "modified";
62
+ removed: "removed";
63
+ unchanged: "unchanged";
64
+ }>;
65
+ lane: z.ZodString;
66
+ group: z.ZodOptional<z.ZodString>;
67
+ subtitle: z.ZodOptional<z.ZodString>;
68
+ summary: z.ZodOptional<z.ZodString>;
69
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
70
+ path: z.ZodString;
71
+ startLine: z.ZodOptional<z.ZodInt>;
72
+ endLine: z.ZodOptional<z.ZodInt>;
73
+ revision: z.ZodOptional<z.ZodEnum<{
74
+ base: "base";
75
+ head: "head";
76
+ }>>;
77
+ }, z.core.$strict>>>;
78
+ badges: z.ZodDefault<z.ZodArray<z.ZodString>>;
79
+ }, z.core.$strict>;
80
+ export type GraphNode = z.infer<typeof GraphNode>;
81
+ export declare const EdgeKind: z.ZodEnum<{
82
+ call: "call";
83
+ data: "data";
84
+ dependency: "dependency";
85
+ event: "event";
86
+ http: "http";
87
+ other: "other";
88
+ queue: "queue";
89
+ render: "render";
90
+ rpc: "rpc";
91
+ }>;
92
+ export type EdgeKind = z.infer<typeof EdgeKind>;
93
+ /**
94
+ * `hero` is the one connection the change is really about. More than a couple
95
+ * per diagram and the emphasis stops meaning anything.
96
+ */
97
+ export declare const EdgeEmphasis: z.ZodEnum<{
98
+ hero: "hero";
99
+ muted: "muted";
100
+ normal: "normal";
101
+ }>;
102
+ export type EdgeEmphasis = z.infer<typeof EdgeEmphasis>;
103
+ export declare const GraphEdge: z.ZodObject<{
104
+ id: z.ZodString;
105
+ from: z.ZodString;
106
+ to: z.ZodString;
107
+ kind: z.ZodEnum<{
108
+ call: "call";
109
+ data: "data";
110
+ dependency: "dependency";
111
+ event: "event";
112
+ http: "http";
113
+ other: "other";
114
+ queue: "queue";
115
+ render: "render";
116
+ rpc: "rpc";
117
+ }>;
118
+ delta: z.ZodEnum<{
119
+ added: "added";
120
+ modified: "modified";
121
+ removed: "removed";
122
+ unchanged: "unchanged";
123
+ }>;
124
+ label: z.ZodOptional<z.ZodString>;
125
+ emphasis: z.ZodDefault<z.ZodEnum<{
126
+ hero: "hero";
127
+ muted: "muted";
128
+ normal: "normal";
129
+ }>>;
130
+ animated: z.ZodDefault<z.ZodBoolean>;
131
+ summary: z.ZodOptional<z.ZodString>;
132
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
133
+ path: z.ZodString;
134
+ startLine: z.ZodOptional<z.ZodInt>;
135
+ endLine: z.ZodOptional<z.ZodInt>;
136
+ revision: z.ZodOptional<z.ZodEnum<{
137
+ base: "base";
138
+ head: "head";
139
+ }>>;
140
+ }, z.core.$strict>>>;
141
+ }, z.core.$strict>;
142
+ export type GraphEdge = z.infer<typeof GraphEdge>;
143
+ /** `async` fires and forgets, `return` carries a result back, `self` never leaves the participant. */
144
+ export declare const MessageKind: z.ZodEnum<{
145
+ async: "async";
146
+ return: "return";
147
+ self: "self";
148
+ sync: "sync";
149
+ }>;
150
+ export type MessageKind = z.infer<typeof MessageKind>;
151
+ /**
152
+ * Order is the array position. An explicit step number would let a producer
153
+ * emit a document whose animation order disagrees with its own message list.
154
+ */
155
+ export declare const FlowMessage: z.ZodObject<{
156
+ id: z.ZodString;
157
+ from: z.ZodString;
158
+ to: z.ZodString;
159
+ label: z.ZodString;
160
+ kind: z.ZodDefault<z.ZodEnum<{
161
+ async: "async";
162
+ return: "return";
163
+ self: "self";
164
+ sync: "sync";
165
+ }>>;
166
+ delta: z.ZodEnum<{
167
+ added: "added";
168
+ modified: "modified";
169
+ removed: "removed";
170
+ unchanged: "unchanged";
171
+ }>;
172
+ animated: z.ZodDefault<z.ZodBoolean>;
173
+ repeat: z.ZodOptional<z.ZodInt>;
174
+ note: z.ZodOptional<z.ZodString>;
175
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
176
+ path: z.ZodString;
177
+ startLine: z.ZodOptional<z.ZodInt>;
178
+ endLine: z.ZodOptional<z.ZodInt>;
179
+ revision: z.ZodOptional<z.ZodEnum<{
180
+ base: "base";
181
+ head: "head";
182
+ }>>;
183
+ }, z.core.$strict>>>;
184
+ }, z.core.$strict>;
185
+ export type FlowMessage = z.infer<typeof FlowMessage>;
186
+ export declare const FlowParticipant: z.ZodObject<{
187
+ node: z.ZodString;
188
+ label: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$strict>;
190
+ export type FlowParticipant = z.infer<typeof FlowParticipant>;
191
+ export declare const Flow: z.ZodObject<{
192
+ id: z.ZodString;
193
+ title: z.ZodString;
194
+ summary: z.ZodOptional<z.ZodString>;
195
+ delta: z.ZodDefault<z.ZodEnum<{
196
+ added: "added";
197
+ modified: "modified";
198
+ removed: "removed";
199
+ unchanged: "unchanged";
200
+ }>>;
201
+ participants: z.ZodArray<z.ZodObject<{
202
+ node: z.ZodString;
203
+ label: z.ZodOptional<z.ZodString>;
204
+ }, z.core.$strict>>;
205
+ messages: z.ZodArray<z.ZodObject<{
206
+ id: z.ZodString;
207
+ from: z.ZodString;
208
+ to: z.ZodString;
209
+ label: z.ZodString;
210
+ kind: z.ZodDefault<z.ZodEnum<{
211
+ async: "async";
212
+ return: "return";
213
+ self: "self";
214
+ sync: "sync";
215
+ }>>;
216
+ delta: z.ZodEnum<{
217
+ added: "added";
218
+ modified: "modified";
219
+ removed: "removed";
220
+ unchanged: "unchanged";
221
+ }>;
222
+ animated: z.ZodDefault<z.ZodBoolean>;
223
+ repeat: z.ZodOptional<z.ZodInt>;
224
+ note: z.ZodOptional<z.ZodString>;
225
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
226
+ path: z.ZodString;
227
+ startLine: z.ZodOptional<z.ZodInt>;
228
+ endLine: z.ZodOptional<z.ZodInt>;
229
+ revision: z.ZodOptional<z.ZodEnum<{
230
+ base: "base";
231
+ head: "head";
232
+ }>>;
233
+ }, z.core.$strict>>>;
234
+ }, z.core.$strict>>;
235
+ }, z.core.$strict>;
236
+ export type Flow = z.infer<typeof Flow>;
237
+ export declare const StatChip: z.ZodObject<{
238
+ label: z.ZodString;
239
+ value: z.ZodString;
240
+ tone: z.ZodDefault<z.ZodEnum<{
241
+ added: "added";
242
+ hero: "hero";
243
+ modified: "modified";
244
+ neutral: "neutral";
245
+ removed: "removed";
246
+ }>>;
247
+ }, z.core.$strict>;
248
+ export type StatChip = z.infer<typeof StatChip>;
249
+ /**
250
+ * Counts that cannot be derived from the document, plus free-form chips.
251
+ * Per-delta element counts are deliberately absent: they are derivable, and a
252
+ * stored copy can only ever go stale against the node and edge lists.
253
+ */
254
+ export declare const Stats: z.ZodObject<{
255
+ filesChanged: z.ZodOptional<z.ZodInt>;
256
+ additions: z.ZodOptional<z.ZodInt>;
257
+ deletions: z.ZodOptional<z.ZodInt>;
258
+ chips: z.ZodDefault<z.ZodArray<z.ZodObject<{
259
+ label: z.ZodString;
260
+ value: z.ZodString;
261
+ tone: z.ZodDefault<z.ZodEnum<{
262
+ added: "added";
263
+ hero: "hero";
264
+ modified: "modified";
265
+ neutral: "neutral";
266
+ removed: "removed";
267
+ }>>;
268
+ }, z.core.$strict>>>;
269
+ }, z.core.$strict>;
270
+ export type Stats = z.infer<typeof Stats>;
271
+ /**
272
+ * A view either shows the whole document or a named selection. The two are
273
+ * distinct states rather than "a selection that happens to be empty", so
274
+ * removing the last element a view pointed at can never silently turn it into
275
+ * a view of everything.
276
+ */
277
+ export declare const ViewScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
278
+ kind: z.ZodLiteral<"all">;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ kind: z.ZodLiteral<"selection">;
281
+ lanes: z.ZodDefault<z.ZodArray<z.ZodString>>;
282
+ nodes: z.ZodDefault<z.ZodArray<z.ZodString>>;
283
+ edges: z.ZodDefault<z.ZodArray<z.ZodString>>;
284
+ flows: z.ZodDefault<z.ZodArray<z.ZodString>>;
285
+ }, z.core.$strict>], "kind">;
286
+ export type ViewScope = z.infer<typeof ViewScope>;
287
+ export type View = {
288
+ id: string;
289
+ title: string;
290
+ lens: Lens;
291
+ summary?: string;
292
+ scope: ViewScope;
293
+ defaultOpen: boolean;
294
+ children: View[];
295
+ };
296
+ /**
297
+ * One node of the nested `<details>` tree in the PR comment. The whole tree
298
+ * ships pre-rendered, so expanding a section costs no round trip.
299
+ */
300
+ export type ViewInput = {
301
+ id: string;
302
+ title: string;
303
+ lens: Lens;
304
+ summary?: string;
305
+ scope?: {
306
+ kind: "all";
307
+ } | {
308
+ kind: "selection";
309
+ lanes?: string[];
310
+ nodes?: string[];
311
+ edges?: string[];
312
+ flows?: string[];
313
+ };
314
+ defaultOpen?: boolean;
315
+ children?: ViewInput[];
316
+ };
317
+ export declare const View: z.ZodType<View, ViewInput>;
318
+ /**
319
+ * Hints, not instructions: the renderer owns final placement so that layout
320
+ * stays deterministic for a given document. A hint is a floor rather than an
321
+ * answer — it can push a node further down the page, never above something
322
+ * that feeds it — so a stale hint can leave a gap but can never invert an
323
+ * edge. Absolute coordinates are intentionally not expressible.
324
+ */
325
+ export declare const LayoutHints: z.ZodObject<{
326
+ direction: z.ZodDefault<z.ZodEnum<{
327
+ down: "down";
328
+ right: "right";
329
+ }>>;
330
+ laneOrder: z.ZodDefault<z.ZodArray<z.ZodString>>;
331
+ rank: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodInt>>;
332
+ }, z.core.$strict>;
333
+ export type LayoutHints = z.infer<typeof LayoutHints>;
334
+ /** Everything needed to rebuild a permalink to any file this document points at. */
335
+ export declare const Provenance: z.ZodObject<{
336
+ repo: z.ZodObject<{
337
+ owner: z.ZodString;
338
+ name: z.ZodString;
339
+ host: z.ZodDefault<z.ZodString>;
340
+ }, z.core.$strict>;
341
+ base: z.ZodObject<{
342
+ sha: z.ZodString;
343
+ ref: z.ZodOptional<z.ZodString>;
344
+ }, z.core.$strict>;
345
+ head: z.ZodObject<{
346
+ sha: z.ZodString;
347
+ ref: z.ZodOptional<z.ZodString>;
348
+ }, z.core.$strict>;
349
+ pullRequest: z.ZodOptional<z.ZodObject<{
350
+ number: z.ZodInt;
351
+ title: z.ZodOptional<z.ZodString>;
352
+ url: z.ZodOptional<z.ZodURL>;
353
+ }, z.core.$strict>>;
354
+ generator: z.ZodOptional<z.ZodObject<{
355
+ name: z.ZodString;
356
+ version: z.ZodOptional<z.ZodString>;
357
+ model: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strict>>;
359
+ }, z.core.$strict>;
360
+ export type Provenance = z.infer<typeof Provenance>;
361
+ /**
362
+ * The document every PR Lens component speaks: extraction emits it, the
363
+ * renderer consumes it, and a baseline map is one of these kept current by
364
+ * patch documents.
365
+ */
366
+ export declare const GraphDoc: z.ZodObject<{
367
+ schemaVersion: z.ZodString;
368
+ kind: z.ZodLiteral<"graph">;
369
+ id: z.ZodOptional<z.ZodString>;
370
+ generatedAt: z.ZodOptional<z.ZodISODateTime>;
371
+ title: z.ZodString;
372
+ summary: z.ZodOptional<z.ZodString>;
373
+ lenses: z.ZodArray<z.ZodEnum<{
374
+ architecture: "architecture";
375
+ "data-flow": "data-flow";
376
+ }>>;
377
+ provenance: z.ZodObject<{
378
+ repo: z.ZodObject<{
379
+ owner: z.ZodString;
380
+ name: z.ZodString;
381
+ host: z.ZodDefault<z.ZodString>;
382
+ }, z.core.$strict>;
383
+ base: z.ZodObject<{
384
+ sha: z.ZodString;
385
+ ref: z.ZodOptional<z.ZodString>;
386
+ }, z.core.$strict>;
387
+ head: z.ZodObject<{
388
+ sha: z.ZodString;
389
+ ref: z.ZodOptional<z.ZodString>;
390
+ }, z.core.$strict>;
391
+ pullRequest: z.ZodOptional<z.ZodObject<{
392
+ number: z.ZodInt;
393
+ title: z.ZodOptional<z.ZodString>;
394
+ url: z.ZodOptional<z.ZodURL>;
395
+ }, z.core.$strict>>;
396
+ generator: z.ZodOptional<z.ZodObject<{
397
+ name: z.ZodString;
398
+ version: z.ZodOptional<z.ZodString>;
399
+ model: z.ZodOptional<z.ZodString>;
400
+ }, z.core.$strict>>;
401
+ }, z.core.$strict>;
402
+ lanes: z.ZodArray<z.ZodObject<{
403
+ id: z.ZodString;
404
+ label: z.ZodString;
405
+ subtitle: z.ZodOptional<z.ZodString>;
406
+ order: z.ZodOptional<z.ZodInt>;
407
+ delta: z.ZodOptional<z.ZodEnum<{
408
+ added: "added";
409
+ modified: "modified";
410
+ removed: "removed";
411
+ unchanged: "unchanged";
412
+ }>>;
413
+ summary: z.ZodOptional<z.ZodString>;
414
+ }, z.core.$strict>>;
415
+ nodes: z.ZodArray<z.ZodObject<{
416
+ id: z.ZodString;
417
+ label: z.ZodString;
418
+ kind: z.ZodEnum<{
419
+ app: "app";
420
+ cache: "cache";
421
+ config: "config";
422
+ datastore: "datastore";
423
+ external: "external";
424
+ function: "function";
425
+ job: "job";
426
+ module: "module";
427
+ other: "other";
428
+ package: "package";
429
+ queue: "queue";
430
+ route: "route";
431
+ service: "service";
432
+ test: "test";
433
+ ui: "ui";
434
+ }>;
435
+ delta: z.ZodEnum<{
436
+ added: "added";
437
+ modified: "modified";
438
+ removed: "removed";
439
+ unchanged: "unchanged";
440
+ }>;
441
+ lane: z.ZodString;
442
+ group: z.ZodOptional<z.ZodString>;
443
+ subtitle: z.ZodOptional<z.ZodString>;
444
+ summary: z.ZodOptional<z.ZodString>;
445
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
446
+ path: z.ZodString;
447
+ startLine: z.ZodOptional<z.ZodInt>;
448
+ endLine: z.ZodOptional<z.ZodInt>;
449
+ revision: z.ZodOptional<z.ZodEnum<{
450
+ base: "base";
451
+ head: "head";
452
+ }>>;
453
+ }, z.core.$strict>>>;
454
+ badges: z.ZodDefault<z.ZodArray<z.ZodString>>;
455
+ }, z.core.$strict>>;
456
+ edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
457
+ id: z.ZodString;
458
+ from: z.ZodString;
459
+ to: z.ZodString;
460
+ kind: z.ZodEnum<{
461
+ call: "call";
462
+ data: "data";
463
+ dependency: "dependency";
464
+ event: "event";
465
+ http: "http";
466
+ other: "other";
467
+ queue: "queue";
468
+ render: "render";
469
+ rpc: "rpc";
470
+ }>;
471
+ delta: z.ZodEnum<{
472
+ added: "added";
473
+ modified: "modified";
474
+ removed: "removed";
475
+ unchanged: "unchanged";
476
+ }>;
477
+ label: z.ZodOptional<z.ZodString>;
478
+ emphasis: z.ZodDefault<z.ZodEnum<{
479
+ hero: "hero";
480
+ muted: "muted";
481
+ normal: "normal";
482
+ }>>;
483
+ animated: z.ZodDefault<z.ZodBoolean>;
484
+ summary: z.ZodOptional<z.ZodString>;
485
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
486
+ path: z.ZodString;
487
+ startLine: z.ZodOptional<z.ZodInt>;
488
+ endLine: z.ZodOptional<z.ZodInt>;
489
+ revision: z.ZodOptional<z.ZodEnum<{
490
+ base: "base";
491
+ head: "head";
492
+ }>>;
493
+ }, z.core.$strict>>>;
494
+ }, z.core.$strict>>>;
495
+ flows: z.ZodDefault<z.ZodArray<z.ZodObject<{
496
+ id: z.ZodString;
497
+ title: z.ZodString;
498
+ summary: z.ZodOptional<z.ZodString>;
499
+ delta: z.ZodDefault<z.ZodEnum<{
500
+ added: "added";
501
+ modified: "modified";
502
+ removed: "removed";
503
+ unchanged: "unchanged";
504
+ }>>;
505
+ participants: z.ZodArray<z.ZodObject<{
506
+ node: z.ZodString;
507
+ label: z.ZodOptional<z.ZodString>;
508
+ }, z.core.$strict>>;
509
+ messages: z.ZodArray<z.ZodObject<{
510
+ id: z.ZodString;
511
+ from: z.ZodString;
512
+ to: z.ZodString;
513
+ label: z.ZodString;
514
+ kind: z.ZodDefault<z.ZodEnum<{
515
+ async: "async";
516
+ return: "return";
517
+ self: "self";
518
+ sync: "sync";
519
+ }>>;
520
+ delta: z.ZodEnum<{
521
+ added: "added";
522
+ modified: "modified";
523
+ removed: "removed";
524
+ unchanged: "unchanged";
525
+ }>;
526
+ animated: z.ZodDefault<z.ZodBoolean>;
527
+ repeat: z.ZodOptional<z.ZodInt>;
528
+ note: z.ZodOptional<z.ZodString>;
529
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
530
+ path: z.ZodString;
531
+ startLine: z.ZodOptional<z.ZodInt>;
532
+ endLine: z.ZodOptional<z.ZodInt>;
533
+ revision: z.ZodOptional<z.ZodEnum<{
534
+ base: "base";
535
+ head: "head";
536
+ }>>;
537
+ }, z.core.$strict>>>;
538
+ }, z.core.$strict>>;
539
+ }, z.core.$strict>>>;
540
+ stats: z.ZodOptional<z.ZodObject<{
541
+ filesChanged: z.ZodOptional<z.ZodInt>;
542
+ additions: z.ZodOptional<z.ZodInt>;
543
+ deletions: z.ZodOptional<z.ZodInt>;
544
+ chips: z.ZodDefault<z.ZodArray<z.ZodObject<{
545
+ label: z.ZodString;
546
+ value: z.ZodString;
547
+ tone: z.ZodDefault<z.ZodEnum<{
548
+ added: "added";
549
+ hero: "hero";
550
+ modified: "modified";
551
+ neutral: "neutral";
552
+ removed: "removed";
553
+ }>>;
554
+ }, z.core.$strict>>>;
555
+ }, z.core.$strict>>;
556
+ views: z.ZodDefault<z.ZodArray<z.ZodType<View, ViewInput, z.core.$ZodTypeInternals<View, ViewInput>>>>;
557
+ layout: z.ZodOptional<z.ZodObject<{
558
+ direction: z.ZodDefault<z.ZodEnum<{
559
+ down: "down";
560
+ right: "right";
561
+ }>>;
562
+ laneOrder: z.ZodDefault<z.ZodArray<z.ZodString>>;
563
+ rank: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodInt>>;
564
+ }, z.core.$strict>>;
565
+ }, z.core.$strict>;
566
+ export type GraphDoc = z.infer<typeof GraphDoc>;
567
+ export type GraphDocInput = z.input<typeof GraphDoc>;
568
+ //# sourceMappingURL=graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../src/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA6B,IAAI,EAAoC,MAAM,iBAAiB,CAAC;AAEpG;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;EAgBnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,eAAO,MAAM,IAAI;;;;;;;;;;;;kBAcqE,CAAC;AACvF,MAAM,MAAM,IAAI,GAA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