@aibloom/schemas 0.2.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 (54) hide show
  1. package/README.md +20 -0
  2. package/dist/config.d.ts +124 -0
  3. package/dist/config.d.ts.map +1 -0
  4. package/dist/config.js +27 -0
  5. package/dist/config.js.map +1 -0
  6. package/dist/design-reference.d.ts +860 -0
  7. package/dist/design-reference.d.ts.map +1 -0
  8. package/dist/design-reference.js +147 -0
  9. package/dist/design-reference.js.map +1 -0
  10. package/dist/design-system.d.ts +191 -0
  11. package/dist/design-system.d.ts.map +1 -0
  12. package/dist/design-system.js +47 -0
  13. package/dist/design-system.js.map +1 -0
  14. package/dist/design-tokens.d.ts +318 -0
  15. package/dist/design-tokens.d.ts.map +1 -0
  16. package/dist/design-tokens.js +78 -0
  17. package/dist/design-tokens.js.map +1 -0
  18. package/dist/framework.d.ts +90 -0
  19. package/dist/framework.d.ts.map +1 -0
  20. package/dist/framework.js +34 -0
  21. package/dist/framework.js.map +1 -0
  22. package/dist/host-task.d.ts +197 -0
  23. package/dist/host-task.d.ts.map +1 -0
  24. package/dist/host-task.js +38 -0
  25. package/dist/host-task.js.map +1 -0
  26. package/dist/implementation-plan.d.ts +69 -0
  27. package/dist/implementation-plan.d.ts.map +1 -0
  28. package/dist/implementation-plan.js +21 -0
  29. package/dist/implementation-plan.js.map +1 -0
  30. package/dist/index.d.ts +13 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +13 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/page-shape.d.ts +334 -0
  35. package/dist/page-shape.d.ts.map +1 -0
  36. package/dist/page-shape.js +62 -0
  37. package/dist/page-shape.js.map +1 -0
  38. package/dist/product.d.ts +153 -0
  39. package/dist/product.d.ts.map +1 -0
  40. package/dist/product.js +32 -0
  41. package/dist/product.js.map +1 -0
  42. package/dist/state.d.ts +505 -0
  43. package/dist/state.d.ts.map +1 -0
  44. package/dist/state.js +115 -0
  45. package/dist/state.js.map +1 -0
  46. package/dist/verification.d.ts +197 -0
  47. package/dist/verification.d.ts.map +1 -0
  48. package/dist/verification.js +50 -0
  49. package/dist/verification.js.map +1 -0
  50. package/dist/visual-input.d.ts +130 -0
  51. package/dist/visual-input.d.ts.map +1 -0
  52. package/dist/visual-input.js +34 -0
  53. package/dist/visual-input.js.map +1 -0
  54. package/package.json +23 -0
@@ -0,0 +1,860 @@
1
+ import { z } from "zod";
2
+ export declare const DesignReferenceDocumentSchema: z.ZodObject<{
3
+ schemaVersion: z.ZodLiteral<2>;
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ sourceType: z.ZodEnum<["refero", "figma-export", "manual", "unknown", "uploaded", "local", "remote", "image-derived"]>;
7
+ sourceUri: z.ZodOptional<z.ZodString>;
8
+ originalPath: z.ZodString;
9
+ sections: z.ZodArray<z.ZodObject<{
10
+ heading: z.ZodString;
11
+ level: z.ZodNumber;
12
+ content: z.ZodString;
13
+ tables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
+ codeBlocks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ content: string;
17
+ heading: string;
18
+ level: number;
19
+ tables?: string[] | undefined;
20
+ codeBlocks?: string[] | undefined;
21
+ }, {
22
+ content: string;
23
+ heading: string;
24
+ level: number;
25
+ tables?: string[] | undefined;
26
+ codeBlocks?: string[] | undefined;
27
+ }>, "many">;
28
+ rawText: z.ZodString;
29
+ importedAt: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ id: string;
32
+ name: string;
33
+ sourceType: "unknown" | "refero" | "figma-export" | "manual" | "uploaded" | "local" | "remote" | "image-derived";
34
+ importedAt: string;
35
+ schemaVersion: 2;
36
+ originalPath: string;
37
+ sections: {
38
+ content: string;
39
+ heading: string;
40
+ level: number;
41
+ tables?: string[] | undefined;
42
+ codeBlocks?: string[] | undefined;
43
+ }[];
44
+ rawText: string;
45
+ sourceUri?: string | undefined;
46
+ }, {
47
+ id: string;
48
+ name: string;
49
+ sourceType: "unknown" | "refero" | "figma-export" | "manual" | "uploaded" | "local" | "remote" | "image-derived";
50
+ importedAt: string;
51
+ schemaVersion: 2;
52
+ originalPath: string;
53
+ sections: {
54
+ content: string;
55
+ heading: string;
56
+ level: number;
57
+ tables?: string[] | undefined;
58
+ codeBlocks?: string[] | undefined;
59
+ }[];
60
+ rawText: string;
61
+ sourceUri?: string | undefined;
62
+ }>;
63
+ export type DesignReferenceDocument = z.infer<typeof DesignReferenceDocumentSchema>;
64
+ export declare const StyleFingerprintSchema: z.ZodObject<{
65
+ schemaVersion: z.ZodLiteral<2>;
66
+ id: z.ZodString;
67
+ name: z.ZodString;
68
+ theme: z.ZodOptional<z.ZodEnum<["light", "dark", "adaptive", "unknown"]>>;
69
+ styleSummary: z.ZodString;
70
+ personality: z.ZodArray<z.ZodString, "many">;
71
+ visualMetaphor: z.ZodOptional<z.ZodString>;
72
+ productFit: z.ZodArray<z.ZodString, "many">;
73
+ productMisfit: z.ZodArray<z.ZodString, "many">;
74
+ colorSystem: z.ZodObject<{
75
+ canvas: z.ZodArray<z.ZodString, "many">;
76
+ surface: z.ZodArray<z.ZodString, "many">;
77
+ text: z.ZodArray<z.ZodString, "many">;
78
+ mutedText: z.ZodArray<z.ZodString, "many">;
79
+ accent: z.ZodArray<z.ZodString, "many">;
80
+ decorative: z.ZodArray<z.ZodString, "many">;
81
+ danger: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
82
+ success: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
+ saturationLevel: z.ZodEnum<["low", "medium", "high", "mixed"]>;
84
+ tokens: z.ZodOptional<z.ZodArray<z.ZodObject<{
85
+ name: z.ZodString;
86
+ hex: z.ZodString;
87
+ role: z.ZodEnum<["canvas", "surface", "text", "muted-text", "accent", "decorative", "danger", "success", "border"]>;
88
+ usage: z.ZodString;
89
+ source: z.ZodOptional<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ name: string;
92
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
93
+ hex: string;
94
+ usage: string;
95
+ source?: string | undefined;
96
+ }, {
97
+ name: string;
98
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
99
+ hex: string;
100
+ usage: string;
101
+ source?: string | undefined;
102
+ }>, "many">>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ canvas: string[];
105
+ surface: string[];
106
+ text: string[];
107
+ accent: string[];
108
+ decorative: string[];
109
+ mutedText: string[];
110
+ saturationLevel: "low" | "medium" | "high" | "mixed";
111
+ danger?: string[] | undefined;
112
+ success?: string[] | undefined;
113
+ tokens?: {
114
+ name: string;
115
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
116
+ hex: string;
117
+ usage: string;
118
+ source?: string | undefined;
119
+ }[] | undefined;
120
+ }, {
121
+ canvas: string[];
122
+ surface: string[];
123
+ text: string[];
124
+ accent: string[];
125
+ decorative: string[];
126
+ mutedText: string[];
127
+ saturationLevel: "low" | "medium" | "high" | "mixed";
128
+ danger?: string[] | undefined;
129
+ success?: string[] | undefined;
130
+ tokens?: {
131
+ name: string;
132
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
133
+ hex: string;
134
+ usage: string;
135
+ source?: string | undefined;
136
+ }[] | undefined;
137
+ }>;
138
+ typography: z.ZodObject<{
139
+ display: z.ZodOptional<z.ZodObject<{
140
+ family: z.ZodString;
141
+ substitutes: z.ZodArray<z.ZodString, "many">;
142
+ weights: z.ZodArray<z.ZodString, "many">;
143
+ sizes: z.ZodArray<z.ZodString, "many">;
144
+ tone: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ family: string;
147
+ substitutes: string[];
148
+ weights: string[];
149
+ sizes: string[];
150
+ tone: string;
151
+ }, {
152
+ family: string;
153
+ substitutes: string[];
154
+ weights: string[];
155
+ sizes: string[];
156
+ tone: string;
157
+ }>>;
158
+ body: z.ZodOptional<z.ZodObject<{
159
+ family: z.ZodString;
160
+ substitutes: z.ZodArray<z.ZodString, "many">;
161
+ weights: z.ZodArray<z.ZodString, "many">;
162
+ sizes: z.ZodArray<z.ZodString, "many">;
163
+ tone: z.ZodString;
164
+ }, "strip", z.ZodTypeAny, {
165
+ family: string;
166
+ substitutes: string[];
167
+ weights: string[];
168
+ sizes: string[];
169
+ tone: string;
170
+ }, {
171
+ family: string;
172
+ substitutes: string[];
173
+ weights: string[];
174
+ sizes: string[];
175
+ tone: string;
176
+ }>>;
177
+ mono: z.ZodOptional<z.ZodObject<{
178
+ family: z.ZodString;
179
+ substitutes: z.ZodArray<z.ZodString, "many">;
180
+ weights: z.ZodArray<z.ZodString, "many">;
181
+ sizes: z.ZodArray<z.ZodString, "many">;
182
+ tone: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ family: string;
185
+ substitutes: string[];
186
+ weights: string[];
187
+ sizes: string[];
188
+ tone: string;
189
+ }, {
190
+ family: string;
191
+ substitutes: string[];
192
+ weights: string[];
193
+ sizes: string[];
194
+ tone: string;
195
+ }>>;
196
+ rules: z.ZodArray<z.ZodString, "many">;
197
+ }, "strip", z.ZodTypeAny, {
198
+ rules: string[];
199
+ display?: {
200
+ family: string;
201
+ substitutes: string[];
202
+ weights: string[];
203
+ sizes: string[];
204
+ tone: string;
205
+ } | undefined;
206
+ body?: {
207
+ family: string;
208
+ substitutes: string[];
209
+ weights: string[];
210
+ sizes: string[];
211
+ tone: string;
212
+ } | undefined;
213
+ mono?: {
214
+ family: string;
215
+ substitutes: string[];
216
+ weights: string[];
217
+ sizes: string[];
218
+ tone: string;
219
+ } | undefined;
220
+ }, {
221
+ rules: string[];
222
+ display?: {
223
+ family: string;
224
+ substitutes: string[];
225
+ weights: string[];
226
+ sizes: string[];
227
+ tone: string;
228
+ } | undefined;
229
+ body?: {
230
+ family: string;
231
+ substitutes: string[];
232
+ weights: string[];
233
+ sizes: string[];
234
+ tone: string;
235
+ } | undefined;
236
+ mono?: {
237
+ family: string;
238
+ substitutes: string[];
239
+ weights: string[];
240
+ sizes: string[];
241
+ tone: string;
242
+ } | undefined;
243
+ }>;
244
+ spacing: z.ZodObject<{
245
+ baseUnit: z.ZodOptional<z.ZodString>;
246
+ scale: z.ZodArray<z.ZodString, "many">;
247
+ density: z.ZodEnum<["compact", "comfortable", "spacious", "mixed", "unknown"]>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ scale: string[];
250
+ density: "unknown" | "mixed" | "compact" | "comfortable" | "spacious";
251
+ baseUnit?: string | undefined;
252
+ }, {
253
+ scale: string[];
254
+ density: "unknown" | "mixed" | "compact" | "comfortable" | "spacious";
255
+ baseUnit?: string | undefined;
256
+ }>;
257
+ shapeLanguage: z.ZodObject<{
258
+ cardRadius: z.ZodOptional<z.ZodString>;
259
+ buttonRadius: z.ZodOptional<z.ZodString>;
260
+ inputRadius: z.ZodOptional<z.ZodString>;
261
+ borderWeight: z.ZodOptional<z.ZodString>;
262
+ shadowStyle: z.ZodEnum<["none", "subtle", "soft", "dramatic", "mixed"]>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ shadowStyle: "mixed" | "none" | "subtle" | "soft" | "dramatic";
265
+ cardRadius?: string | undefined;
266
+ buttonRadius?: string | undefined;
267
+ inputRadius?: string | undefined;
268
+ borderWeight?: string | undefined;
269
+ }, {
270
+ shadowStyle: "mixed" | "none" | "subtle" | "soft" | "dramatic";
271
+ cardRadius?: string | undefined;
272
+ buttonRadius?: string | undefined;
273
+ inputRadius?: string | undefined;
274
+ borderWeight?: string | undefined;
275
+ }>;
276
+ layoutLanguage: z.ZodObject<{
277
+ maxWidth: z.ZodOptional<z.ZodString>;
278
+ sectionGap: z.ZodOptional<z.ZodString>;
279
+ heroPattern: z.ZodOptional<z.ZodString>;
280
+ gridPattern: z.ZodOptional<z.ZodString>;
281
+ appShellPattern: z.ZodOptional<z.ZodString>;
282
+ density: z.ZodOptional<z.ZodString>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ density?: string | undefined;
285
+ maxWidth?: string | undefined;
286
+ sectionGap?: string | undefined;
287
+ heroPattern?: string | undefined;
288
+ gridPattern?: string | undefined;
289
+ appShellPattern?: string | undefined;
290
+ }, {
291
+ density?: string | undefined;
292
+ maxWidth?: string | undefined;
293
+ sectionGap?: string | undefined;
294
+ heroPattern?: string | undefined;
295
+ gridPattern?: string | undefined;
296
+ appShellPattern?: string | undefined;
297
+ }>;
298
+ componentLanguage: z.ZodArray<z.ZodString, "many">;
299
+ imagery: z.ZodObject<{
300
+ allowed: z.ZodArray<z.ZodString, "many">;
301
+ forbidden: z.ZodArray<z.ZodString, "many">;
302
+ style: z.ZodOptional<z.ZodString>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ allowed: string[];
305
+ forbidden: string[];
306
+ style?: string | undefined;
307
+ }, {
308
+ allowed: string[];
309
+ forbidden: string[];
310
+ style?: string | undefined;
311
+ }>;
312
+ motion: z.ZodObject<{
313
+ explicitRules: z.ZodArray<z.ZodString, "many">;
314
+ inferredTone: z.ZodString;
315
+ }, "strip", z.ZodTypeAny, {
316
+ explicitRules: string[];
317
+ inferredTone: string;
318
+ }, {
319
+ explicitRules: string[];
320
+ inferredTone: string;
321
+ }>;
322
+ hardConstraints: z.ZodArray<z.ZodString, "many">;
323
+ antiPatterns: z.ZodArray<z.ZodString, "many">;
324
+ rawEvidence: z.ZodArray<z.ZodObject<{
325
+ sourceId: z.ZodString;
326
+ section: z.ZodString;
327
+ quote: z.ZodOptional<z.ZodString>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ sourceId: string;
330
+ section: string;
331
+ quote?: string | undefined;
332
+ }, {
333
+ sourceId: string;
334
+ section: string;
335
+ quote?: string | undefined;
336
+ }>, "many">;
337
+ }, "strip", z.ZodTypeAny, {
338
+ id: string;
339
+ name: string;
340
+ schemaVersion: 2;
341
+ styleSummary: string;
342
+ personality: string[];
343
+ productFit: string[];
344
+ productMisfit: string[];
345
+ colorSystem: {
346
+ canvas: string[];
347
+ surface: string[];
348
+ text: string[];
349
+ accent: string[];
350
+ decorative: string[];
351
+ mutedText: string[];
352
+ saturationLevel: "low" | "medium" | "high" | "mixed";
353
+ danger?: string[] | undefined;
354
+ success?: string[] | undefined;
355
+ tokens?: {
356
+ name: string;
357
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
358
+ hex: string;
359
+ usage: string;
360
+ source?: string | undefined;
361
+ }[] | undefined;
362
+ };
363
+ typography: {
364
+ rules: string[];
365
+ display?: {
366
+ family: string;
367
+ substitutes: string[];
368
+ weights: string[];
369
+ sizes: string[];
370
+ tone: string;
371
+ } | undefined;
372
+ body?: {
373
+ family: string;
374
+ substitutes: string[];
375
+ weights: string[];
376
+ sizes: string[];
377
+ tone: string;
378
+ } | undefined;
379
+ mono?: {
380
+ family: string;
381
+ substitutes: string[];
382
+ weights: string[];
383
+ sizes: string[];
384
+ tone: string;
385
+ } | undefined;
386
+ };
387
+ spacing: {
388
+ scale: string[];
389
+ density: "unknown" | "mixed" | "compact" | "comfortable" | "spacious";
390
+ baseUnit?: string | undefined;
391
+ };
392
+ shapeLanguage: {
393
+ shadowStyle: "mixed" | "none" | "subtle" | "soft" | "dramatic";
394
+ cardRadius?: string | undefined;
395
+ buttonRadius?: string | undefined;
396
+ inputRadius?: string | undefined;
397
+ borderWeight?: string | undefined;
398
+ };
399
+ layoutLanguage: {
400
+ density?: string | undefined;
401
+ maxWidth?: string | undefined;
402
+ sectionGap?: string | undefined;
403
+ heroPattern?: string | undefined;
404
+ gridPattern?: string | undefined;
405
+ appShellPattern?: string | undefined;
406
+ };
407
+ componentLanguage: string[];
408
+ imagery: {
409
+ allowed: string[];
410
+ forbidden: string[];
411
+ style?: string | undefined;
412
+ };
413
+ motion: {
414
+ explicitRules: string[];
415
+ inferredTone: string;
416
+ };
417
+ hardConstraints: string[];
418
+ antiPatterns: string[];
419
+ rawEvidence: {
420
+ sourceId: string;
421
+ section: string;
422
+ quote?: string | undefined;
423
+ }[];
424
+ theme?: "unknown" | "light" | "dark" | "adaptive" | undefined;
425
+ visualMetaphor?: string | undefined;
426
+ }, {
427
+ id: string;
428
+ name: string;
429
+ schemaVersion: 2;
430
+ styleSummary: string;
431
+ personality: string[];
432
+ productFit: string[];
433
+ productMisfit: string[];
434
+ colorSystem: {
435
+ canvas: string[];
436
+ surface: string[];
437
+ text: string[];
438
+ accent: string[];
439
+ decorative: string[];
440
+ mutedText: string[];
441
+ saturationLevel: "low" | "medium" | "high" | "mixed";
442
+ danger?: string[] | undefined;
443
+ success?: string[] | undefined;
444
+ tokens?: {
445
+ name: string;
446
+ role: "canvas" | "surface" | "text" | "muted-text" | "accent" | "decorative" | "danger" | "success" | "border";
447
+ hex: string;
448
+ usage: string;
449
+ source?: string | undefined;
450
+ }[] | undefined;
451
+ };
452
+ typography: {
453
+ rules: string[];
454
+ display?: {
455
+ family: string;
456
+ substitutes: string[];
457
+ weights: string[];
458
+ sizes: string[];
459
+ tone: string;
460
+ } | undefined;
461
+ body?: {
462
+ family: string;
463
+ substitutes: string[];
464
+ weights: string[];
465
+ sizes: string[];
466
+ tone: string;
467
+ } | undefined;
468
+ mono?: {
469
+ family: string;
470
+ substitutes: string[];
471
+ weights: string[];
472
+ sizes: string[];
473
+ tone: string;
474
+ } | undefined;
475
+ };
476
+ spacing: {
477
+ scale: string[];
478
+ density: "unknown" | "mixed" | "compact" | "comfortable" | "spacious";
479
+ baseUnit?: string | undefined;
480
+ };
481
+ shapeLanguage: {
482
+ shadowStyle: "mixed" | "none" | "subtle" | "soft" | "dramatic";
483
+ cardRadius?: string | undefined;
484
+ buttonRadius?: string | undefined;
485
+ inputRadius?: string | undefined;
486
+ borderWeight?: string | undefined;
487
+ };
488
+ layoutLanguage: {
489
+ density?: string | undefined;
490
+ maxWidth?: string | undefined;
491
+ sectionGap?: string | undefined;
492
+ heroPattern?: string | undefined;
493
+ gridPattern?: string | undefined;
494
+ appShellPattern?: string | undefined;
495
+ };
496
+ componentLanguage: string[];
497
+ imagery: {
498
+ allowed: string[];
499
+ forbidden: string[];
500
+ style?: string | undefined;
501
+ };
502
+ motion: {
503
+ explicitRules: string[];
504
+ inferredTone: string;
505
+ };
506
+ hardConstraints: string[];
507
+ antiPatterns: string[];
508
+ rawEvidence: {
509
+ sourceId: string;
510
+ section: string;
511
+ quote?: string | undefined;
512
+ }[];
513
+ theme?: "unknown" | "light" | "dark" | "adaptive" | undefined;
514
+ visualMetaphor?: string | undefined;
515
+ }>;
516
+ export type StyleFingerprint = z.infer<typeof StyleFingerprintSchema>;
517
+ export declare const NormalizedTokenSchema: z.ZodObject<{
518
+ name: z.ZodString;
519
+ value: z.ZodString;
520
+ dimension: z.ZodEnum<["color", "typography", "spacing", "radius", "shadow", "surface", "layout"]>;
521
+ standardizedValue: z.ZodString;
522
+ sourceFingerprintId: z.ZodString;
523
+ conflictingWith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
524
+ isCompatible: z.ZodOptional<z.ZodBoolean>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ name: string;
527
+ value: string;
528
+ dimension: "surface" | "typography" | "spacing" | "color" | "radius" | "shadow" | "layout";
529
+ standardizedValue: string;
530
+ sourceFingerprintId: string;
531
+ conflictingWith?: string[] | undefined;
532
+ isCompatible?: boolean | undefined;
533
+ }, {
534
+ name: string;
535
+ value: string;
536
+ dimension: "surface" | "typography" | "spacing" | "color" | "radius" | "shadow" | "layout";
537
+ standardizedValue: string;
538
+ sourceFingerprintId: string;
539
+ conflictingWith?: string[] | undefined;
540
+ isCompatible?: boolean | undefined;
541
+ }>;
542
+ export type NormalizedToken = z.infer<typeof NormalizedTokenSchema>;
543
+ export declare const DesignConflictSchema: z.ZodObject<{
544
+ dimension: z.ZodEnum<["theme", "canvas", "accent", "typography", "radius", "elevation", "layout", "components", "imagery", "motion", "anti-patterns"]>;
545
+ references: z.ZodArray<z.ZodString, "many">;
546
+ relation: z.ZodEnum<["compatible", "weak-conflict", "strong-conflict", "mutually-exclusive", "complementary"]>;
547
+ severity: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
548
+ explanation: z.ZodString;
549
+ recommendation: z.ZodString;
550
+ }, "strip", z.ZodTypeAny, {
551
+ dimension: "canvas" | "accent" | "theme" | "typography" | "imagery" | "motion" | "radius" | "layout" | "elevation" | "components" | "anti-patterns";
552
+ references: string[];
553
+ relation: "compatible" | "weak-conflict" | "strong-conflict" | "mutually-exclusive" | "complementary";
554
+ severity: 0 | 2 | 1 | 3;
555
+ explanation: string;
556
+ recommendation: string;
557
+ }, {
558
+ dimension: "canvas" | "accent" | "theme" | "typography" | "imagery" | "motion" | "radius" | "layout" | "elevation" | "components" | "anti-patterns";
559
+ references: string[];
560
+ relation: "compatible" | "weak-conflict" | "strong-conflict" | "mutually-exclusive" | "complementary";
561
+ severity: 0 | 2 | 1 | 3;
562
+ explanation: string;
563
+ recommendation: string;
564
+ }>;
565
+ export type DesignConflict = z.infer<typeof DesignConflictSchema>;
566
+ export declare const StyleConflictReportSchema: z.ZodObject<{
567
+ schemaVersion: z.ZodLiteral<2>;
568
+ compatibilityScore: z.ZodNumber;
569
+ fusionRisk: z.ZodEnum<["low", "medium", "high"]>;
570
+ summary: z.ZodString;
571
+ conflicts: z.ZodArray<z.ZodObject<{
572
+ dimension: z.ZodEnum<["theme", "canvas", "accent", "typography", "radius", "elevation", "layout", "components", "imagery", "motion", "anti-patterns"]>;
573
+ references: z.ZodArray<z.ZodString, "many">;
574
+ relation: z.ZodEnum<["compatible", "weak-conflict", "strong-conflict", "mutually-exclusive", "complementary"]>;
575
+ severity: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
576
+ explanation: z.ZodString;
577
+ recommendation: z.ZodString;
578
+ }, "strip", z.ZodTypeAny, {
579
+ dimension: "canvas" | "accent" | "theme" | "typography" | "imagery" | "motion" | "radius" | "layout" | "elevation" | "components" | "anti-patterns";
580
+ references: string[];
581
+ relation: "compatible" | "weak-conflict" | "strong-conflict" | "mutually-exclusive" | "complementary";
582
+ severity: 0 | 2 | 1 | 3;
583
+ explanation: string;
584
+ recommendation: string;
585
+ }, {
586
+ dimension: "canvas" | "accent" | "theme" | "typography" | "imagery" | "motion" | "radius" | "layout" | "elevation" | "components" | "anti-patterns";
587
+ references: string[];
588
+ relation: "compatible" | "weak-conflict" | "strong-conflict" | "mutually-exclusive" | "complementary";
589
+ severity: 0 | 2 | 1 | 3;
590
+ explanation: string;
591
+ recommendation: string;
592
+ }>, "many">;
593
+ safeFusions: z.ZodArray<z.ZodString, "many">;
594
+ nonNegotiableConflicts: z.ZodArray<z.ZodObject<{
595
+ description: z.ZodString;
596
+ refA: z.ZodString;
597
+ refB: z.ZodString;
598
+ }, "strip", z.ZodTypeAny, {
599
+ description: string;
600
+ refA: string;
601
+ refB: string;
602
+ }, {
603
+ description: string;
604
+ refA: string;
605
+ refB: string;
606
+ }>, "many">;
607
+ recommendedOptions: z.ZodArray<z.ZodString, "many">;
608
+ }, "strip", z.ZodTypeAny, {
609
+ schemaVersion: 2;
610
+ compatibilityScore: number;
611
+ fusionRisk: "low" | "medium" | "high";
612
+ summary: string;
613
+ conflicts: {
614
+ dimension: "canvas" | "accent" | "theme" | "typography" | "imagery" | "motion" | "radius" | "layout" | "elevation" | "components" | "anti-patterns";
615
+ references: string[];
616
+ relation: "compatible" | "weak-conflict" | "strong-conflict" | "mutually-exclusive" | "complementary";
617
+ severity: 0 | 2 | 1 | 3;
618
+ explanation: string;
619
+ recommendation: string;
620
+ }[];
621
+ safeFusions: string[];
622
+ nonNegotiableConflicts: {
623
+ description: string;
624
+ refA: string;
625
+ refB: string;
626
+ }[];
627
+ recommendedOptions: string[];
628
+ }, {
629
+ schemaVersion: 2;
630
+ compatibilityScore: number;
631
+ fusionRisk: "low" | "medium" | "high";
632
+ summary: string;
633
+ conflicts: {
634
+ dimension: "canvas" | "accent" | "theme" | "typography" | "imagery" | "motion" | "radius" | "layout" | "elevation" | "components" | "anti-patterns";
635
+ references: string[];
636
+ relation: "compatible" | "weak-conflict" | "strong-conflict" | "mutually-exclusive" | "complementary";
637
+ severity: 0 | 2 | 1 | 3;
638
+ explanation: string;
639
+ recommendation: string;
640
+ }[];
641
+ safeFusions: string[];
642
+ nonNegotiableConflicts: {
643
+ description: string;
644
+ refA: string;
645
+ refB: string;
646
+ }[];
647
+ recommendedOptions: string[];
648
+ }>;
649
+ export type StyleConflictReport = z.infer<typeof StyleConflictReportSchema>;
650
+ export declare const FusionOptionSchema: z.ZodObject<{
651
+ id: z.ZodString;
652
+ label: z.ZodString;
653
+ strategy: z.ZodEnum<["primary-plus-accent", "page-type-split", "layered-fusion", "contextual-fusion", "new-derived-system", "reject-and-restart"]>;
654
+ description: z.ZodString;
655
+ primaryReference: z.ZodOptional<z.ZodString>;
656
+ secondaryReferences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
657
+ adoptedRules: z.ZodArray<z.ZodString, "many">;
658
+ rejectedRules: z.ZodArray<z.ZodString, "many">;
659
+ risks: z.ZodArray<z.ZodString, "many">;
660
+ recommendedFor: z.ZodArray<z.ZodString, "many">;
661
+ }, "strip", z.ZodTypeAny, {
662
+ id: string;
663
+ strategy: "primary-plus-accent" | "page-type-split" | "layered-fusion" | "contextual-fusion" | "new-derived-system" | "reject-and-restart";
664
+ description: string;
665
+ label: string;
666
+ adoptedRules: string[];
667
+ rejectedRules: string[];
668
+ risks: string[];
669
+ recommendedFor: string[];
670
+ primaryReference?: string | undefined;
671
+ secondaryReferences?: string[] | undefined;
672
+ }, {
673
+ id: string;
674
+ strategy: "primary-plus-accent" | "page-type-split" | "layered-fusion" | "contextual-fusion" | "new-derived-system" | "reject-and-restart";
675
+ description: string;
676
+ label: string;
677
+ adoptedRules: string[];
678
+ rejectedRules: string[];
679
+ risks: string[];
680
+ recommendedFor: string[];
681
+ primaryReference?: string | undefined;
682
+ secondaryReferences?: string[] | undefined;
683
+ }>;
684
+ export type FusionOption = z.infer<typeof FusionOptionSchema>;
685
+ export declare const FusionDecisionSchema: z.ZodObject<{
686
+ schemaVersion: z.ZodLiteral<2>;
687
+ selectedOptionId: z.ZodString;
688
+ selectedStrategy: z.ZodEnum<["primary-plus-accent", "page-type-split", "layered-fusion", "contextual-fusion", "new-derived-system", "reject-and-restart"]>;
689
+ userInstruction: z.ZodString;
690
+ timestamp: z.ZodString;
691
+ finalReferenceRoles: z.ZodRecord<z.ZodString, z.ZodEnum<["primary", "secondary", "inspiration", "negative", "rejected"]>>;
692
+ rejectedRules: z.ZodArray<z.ZodString, "many">;
693
+ conditionalRules: z.ZodArray<z.ZodString, "many">;
694
+ notes: z.ZodArray<z.ZodString, "many">;
695
+ }, "strip", z.ZodTypeAny, {
696
+ schemaVersion: 2;
697
+ selectedOptionId: string;
698
+ notes: string[];
699
+ rejectedRules: string[];
700
+ selectedStrategy: "primary-plus-accent" | "page-type-split" | "layered-fusion" | "contextual-fusion" | "new-derived-system" | "reject-and-restart";
701
+ userInstruction: string;
702
+ timestamp: string;
703
+ finalReferenceRoles: Record<string, "primary" | "secondary" | "inspiration" | "negative" | "rejected">;
704
+ conditionalRules: string[];
705
+ }, {
706
+ schemaVersion: 2;
707
+ selectedOptionId: string;
708
+ notes: string[];
709
+ rejectedRules: string[];
710
+ selectedStrategy: "primary-plus-accent" | "page-type-split" | "layered-fusion" | "contextual-fusion" | "new-derived-system" | "reject-and-restart";
711
+ userInstruction: string;
712
+ timestamp: string;
713
+ finalReferenceRoles: Record<string, "primary" | "secondary" | "inspiration" | "negative" | "rejected">;
714
+ conditionalRules: string[];
715
+ }>;
716
+ export type FusionDecision = z.infer<typeof FusionDecisionSchema>;
717
+ export declare const DesignDecisionSourceSchema: z.ZodObject<{
718
+ decisionId: z.ZodString;
719
+ dimension: z.ZodString;
720
+ finalRule: z.ZodString;
721
+ sourceReferenceIds: z.ZodArray<z.ZodString, "many">;
722
+ treatment: z.ZodEnum<["adopted", "adapted", "rejected", "conditional", "derived"]>;
723
+ rationale: z.ZodString;
724
+ affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ dimension: string;
727
+ decisionId: string;
728
+ finalRule: string;
729
+ sourceReferenceIds: string[];
730
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
731
+ rationale: string;
732
+ affectedFiles?: string[] | undefined;
733
+ }, {
734
+ dimension: string;
735
+ decisionId: string;
736
+ finalRule: string;
737
+ sourceReferenceIds: string[];
738
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
739
+ rationale: string;
740
+ affectedFiles?: string[] | undefined;
741
+ }>;
742
+ export declare const DesignSourceMapSchema: z.ZodObject<{
743
+ schemaVersion: z.ZodLiteral<2>;
744
+ projectDesignPath: z.ZodString;
745
+ decisions: z.ZodArray<z.ZodObject<{
746
+ decisionId: z.ZodString;
747
+ dimension: z.ZodString;
748
+ finalRule: z.ZodString;
749
+ sourceReferenceIds: z.ZodArray<z.ZodString, "many">;
750
+ treatment: z.ZodEnum<["adopted", "adapted", "rejected", "conditional", "derived"]>;
751
+ rationale: z.ZodString;
752
+ affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ dimension: string;
755
+ decisionId: string;
756
+ finalRule: string;
757
+ sourceReferenceIds: string[];
758
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
759
+ rationale: string;
760
+ affectedFiles?: string[] | undefined;
761
+ }, {
762
+ dimension: string;
763
+ decisionId: string;
764
+ finalRule: string;
765
+ sourceReferenceIds: string[];
766
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
767
+ rationale: string;
768
+ affectedFiles?: string[] | undefined;
769
+ }>, "many">;
770
+ }, "strip", z.ZodTypeAny, {
771
+ schemaVersion: 2;
772
+ projectDesignPath: string;
773
+ decisions: {
774
+ dimension: string;
775
+ decisionId: string;
776
+ finalRule: string;
777
+ sourceReferenceIds: string[];
778
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
779
+ rationale: string;
780
+ affectedFiles?: string[] | undefined;
781
+ }[];
782
+ }, {
783
+ schemaVersion: 2;
784
+ projectDesignPath: string;
785
+ decisions: {
786
+ dimension: string;
787
+ decisionId: string;
788
+ finalRule: string;
789
+ sourceReferenceIds: string[];
790
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
791
+ rationale: string;
792
+ affectedFiles?: string[] | undefined;
793
+ }[];
794
+ }>;
795
+ export declare const SynthesizedDesignSystemSchema: z.ZodObject<{
796
+ schemaVersion: z.ZodLiteral<2>;
797
+ designPath: z.ZodString;
798
+ fusionBriefPath: z.ZodString;
799
+ sourceMapPath: z.ZodString;
800
+ decisions: z.ZodArray<z.ZodObject<{
801
+ decisionId: z.ZodString;
802
+ dimension: z.ZodString;
803
+ finalRule: z.ZodString;
804
+ sourceReferenceIds: z.ZodArray<z.ZodString, "many">;
805
+ treatment: z.ZodEnum<["adopted", "adapted", "rejected", "conditional", "derived"]>;
806
+ rationale: z.ZodString;
807
+ affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ dimension: string;
810
+ decisionId: string;
811
+ finalRule: string;
812
+ sourceReferenceIds: string[];
813
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
814
+ rationale: string;
815
+ affectedFiles?: string[] | undefined;
816
+ }, {
817
+ dimension: string;
818
+ decisionId: string;
819
+ finalRule: string;
820
+ sourceReferenceIds: string[];
821
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
822
+ rationale: string;
823
+ affectedFiles?: string[] | undefined;
824
+ }>, "many">;
825
+ content: z.ZodString;
826
+ }, "strip", z.ZodTypeAny, {
827
+ schemaVersion: 2;
828
+ content: string;
829
+ decisions: {
830
+ dimension: string;
831
+ decisionId: string;
832
+ finalRule: string;
833
+ sourceReferenceIds: string[];
834
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
835
+ rationale: string;
836
+ affectedFiles?: string[] | undefined;
837
+ }[];
838
+ designPath: string;
839
+ fusionBriefPath: string;
840
+ sourceMapPath: string;
841
+ }, {
842
+ schemaVersion: 2;
843
+ content: string;
844
+ decisions: {
845
+ dimension: string;
846
+ decisionId: string;
847
+ finalRule: string;
848
+ sourceReferenceIds: string[];
849
+ treatment: "rejected" | "adopted" | "adapted" | "conditional" | "derived";
850
+ rationale: string;
851
+ affectedFiles?: string[] | undefined;
852
+ }[];
853
+ designPath: string;
854
+ fusionBriefPath: string;
855
+ sourceMapPath: string;
856
+ }>;
857
+ export type DesignDecisionSource = z.infer<typeof DesignDecisionSourceSchema>;
858
+ export type DesignSourceMap = z.infer<typeof DesignSourceMapSchema>;
859
+ export type SynthesizedDesignSystem = z.infer<typeof SynthesizedDesignSystemSchema>;
860
+ //# sourceMappingURL=design-reference.d.ts.map