@joplo-app/core 0.2.18 → 0.4.1

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 (61) hide show
  1. package/dist/actions.d.ts +6 -0
  2. package/dist/actions.js +34 -0
  3. package/dist/agent-skill.d.ts +9 -15
  4. package/dist/agent-skill.js +41 -44
  5. package/dist/auto-caption.d.ts +3 -0
  6. package/dist/auto-caption.js +33 -0
  7. package/dist/catalog.d.ts +39 -47
  8. package/dist/catalog.js +27 -334
  9. package/dist/compile.d.ts +2 -8
  10. package/dist/compile.js +230 -393
  11. package/dist/content-i18n.js +27 -16
  12. package/dist/feature-diff.d.ts +9 -9
  13. package/dist/feature-diff.js +28 -6
  14. package/dist/focus.d.ts +6 -2
  15. package/dist/focus.js +28 -36
  16. package/dist/guide.d.ts +10 -12
  17. package/dist/guide.js +372 -594
  18. package/dist/index.d.ts +3 -1
  19. package/dist/index.js +3 -1
  20. package/dist/media.d.ts +10 -0
  21. package/dist/media.js +43 -0
  22. package/dist/node.d.ts +1 -2
  23. package/dist/node.js +1 -2
  24. package/dist/outline.js +1 -1
  25. package/dist/pace.d.ts +4 -1
  26. package/dist/pace.js +7 -3
  27. package/dist/player.d.ts +8 -41
  28. package/dist/player.js +83 -147
  29. package/dist/playground.d.ts +38 -0
  30. package/dist/playground.js +111 -0
  31. package/dist/plugin-data.d.ts +11 -0
  32. package/dist/plugin-data.js +96 -0
  33. package/dist/plugins/compiler.d.ts +67 -0
  34. package/dist/plugins/compiler.js +434 -0
  35. package/dist/plugins/data.d.ts +12 -0
  36. package/dist/plugins/data.js +120 -0
  37. package/dist/result.d.ts +1 -1
  38. package/dist/result.js +1 -0
  39. package/dist/runtime.d.ts +22 -0
  40. package/dist/runtime.js +18 -0
  41. package/dist/schema.d.ts +593 -112
  42. package/dist/schema.js +62 -52
  43. package/dist/scope.js +14 -5
  44. package/dist/step-identity.d.ts +1 -1
  45. package/dist/step-identity.js +1 -1
  46. package/dist/themes.d.ts +7 -0
  47. package/dist/themes.js +5 -0
  48. package/dist/traits.d.ts +7 -0
  49. package/dist/traits.js +26 -0
  50. package/dist/validate.js +17 -4
  51. package/package.json +7 -4
  52. package/dist/diagram/elk.d.ts +0 -6
  53. package/dist/diagram/elk.js +0 -56
  54. package/dist/diagram/graph-layout.d.ts +0 -123
  55. package/dist/diagram/graph-layout.js +0 -620
  56. package/dist/diagram/index.d.ts +0 -41
  57. package/dist/diagram/index.js +0 -92
  58. package/dist/diagram/model.d.ts +0 -217
  59. package/dist/diagram/model.js +0 -189
  60. package/dist/diagram/sequence-layout.d.ts +0 -12
  61. package/dist/diagram/sequence-layout.js +0 -185
package/dist/schema.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { ElementTraits } from '@joplo-app/kit/plugin';
1
2
  /**
2
3
  * Joplo IR(schemaVersion 2):由 TSX 源文件编译得到的中间表示,不是作者直接编辑的格式。
3
4
  * 权威源是项目文件夹里的 TSX/TS 文件(ADR-0002);渲染器、播放器、校验器、构建只消费这里的 IR。
@@ -5,8 +6,6 @@
5
6
  * 带 `source` 的对象记录其来源 `相对路径:行:列`,用于选中元素、诊断定位,让 Agent 只读写那一处。
6
7
  */
7
8
  import { z } from 'zod';
8
- import { COMPONENT_TYPES } from './catalog.js';
9
- import type { DiagramLayout as DiagramLayoutT } from './diagram/model.js';
10
9
  /** 层级标签的预设图标(标签压窄时靠它认出是哪一层)。不写时:手机视口 mobile,其余 window。 */
11
10
  export declare const LAYER_ICONS: readonly ["window", "browser", "mobile", "desktop", "terminal", "chat", "agent", "server", "data", "email", "doc", "flow"];
12
11
  export type LayerIcon = (typeof LAYER_ICONS)[number];
@@ -39,12 +38,13 @@ export type Condition = {
39
38
  not: Condition;
40
39
  };
41
40
  export declare const Condition: z.ZodType<Condition>;
42
- export declare const DiagramLayoutSchema: z.ZodType<DiagramLayoutT>;
43
41
  export type SceneNode = {
44
42
  /** 可操作元素必须由作者给出;其余由编译器按位置生成(以 `_` 开头)。 */
45
43
  id: string;
46
- type: (typeof COMPONENT_TYPES)[number];
44
+ /** 目录组件,或插件组件 `<插件 id>:<组件名>`(D86)。 */
45
+ type: string;
47
46
  /** Mantine 属性原样保留(可含响应式对象 { base, md });值可以是字面量或 `$ui.x` / `$data.x` / `$inputs.x` 整值绑定。 */
47
+ traits?: ElementTraits;
48
48
  props?: Record<string, unknown>;
49
49
  children?: SceneNode[];
50
50
  when?: Condition;
@@ -56,8 +56,13 @@ export type SceneNode = {
56
56
  redact?: boolean | Condition;
57
57
  /** 来自哪个功能方案(堆叠到路径上的元素);页面和布局自身的元素没有此字段。 */
58
58
  from?: string;
59
- /** 图表根节点(Diagram / StateMachine / Sequence)的布局,编译期算好(D69);其他节点没有。 */
60
- layout?: DiagramLayoutT;
59
+ /** 命名空间插件派生数据;只允许 JSON。 */
60
+ ext?: Record<string, unknown>;
61
+ /** 取景关联由编译钩子给出,播放器只读取。 */
62
+ framing?: {
63
+ include?: string[];
64
+ kind?: 'root' | 'group' | 'block' | 'content' | 'edge' | 'row';
65
+ };
61
66
  source?: string;
62
67
  };
63
68
  export declare const SceneNode: z.ZodType<SceneNode>;
@@ -68,15 +73,54 @@ export declare const Scene: z.ZodObject<{
68
73
  route: z.ZodString;
69
74
  name: z.ZodString;
70
75
  viewport: z.ZodDefault<z.ZodEnum<{
71
- mobile: "mobile";
72
76
  desktop: "desktop";
77
+ mobile: "mobile";
73
78
  }>>;
74
79
  root: z.ZodType<SceneNode, unknown, z.core.$ZodTypeInternals<SceneNode, unknown>>;
75
80
  layer: z.ZodOptional<z.ZodString>;
76
81
  }, z.core.$strict>;
82
+ export declare const PluginAction: z.ZodObject<{
83
+ caption: z.ZodString;
84
+ durationMs: z.ZodNumber;
85
+ fields: z.ZodRecord<z.ZodString, z.ZodObject<{
86
+ type: z.ZodEnum<{
87
+ string: "string";
88
+ number: "number";
89
+ boolean: "boolean";
90
+ }>;
91
+ min: z.ZodOptional<z.ZodNumber>;
92
+ max: z.ZodOptional<z.ZodNumber>;
93
+ tolerance: z.ZodOptional<z.ZodNumber>;
94
+ text: z.ZodOptional<z.ZodBoolean>;
95
+ }, z.core.$strict>>;
96
+ targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
97
+ }, z.core.$strict>;
77
98
  export declare const Action: z.ZodDiscriminatedUnion<[z.ZodObject<{
78
99
  type: z.ZodLiteral<"click">;
79
100
  target: z.ZodString;
101
+ }, z.core.$strict>, z.ZodObject<{
102
+ type: z.ZodLiteral<"drag">;
103
+ target: z.ZodString;
104
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
105
+ x: z.ZodNumber;
106
+ y: z.ZodNumber;
107
+ }, z.core.$strict>]>;
108
+ }, z.core.$strict>, z.ZodObject<{
109
+ type: z.ZodLiteral<"hover">;
110
+ target: z.ZodString;
111
+ ms: z.ZodNumber;
112
+ }, z.core.$strict>, z.ZodObject<{
113
+ type: z.ZodLiteral<"scroll">;
114
+ target: z.ZodString;
115
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
116
+ x: z.ZodNumber;
117
+ y: z.ZodNumber;
118
+ }, z.core.$strict>]>;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ type: z.ZodLiteral<"plugin">;
121
+ name: z.ZodString;
122
+ target: z.ZodString;
123
+ data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
80
124
  }, z.core.$strict>, z.ZodObject<{
81
125
  type: z.ZodLiteral<"type">;
82
126
  target: z.ZodString;
@@ -116,8 +160,8 @@ export declare const Effect: z.ZodDiscriminatedUnion<[z.ZodObject<{
116
160
  type: z.ZodLiteral<"toast">;
117
161
  text: z.ZodString;
118
162
  tone: z.ZodDefault<z.ZodEnum<{
119
- error: "error";
120
163
  success: "success";
164
+ error: "error";
121
165
  info: "info";
122
166
  }>>;
123
167
  }, z.core.$strict>, z.ZodObject<{
@@ -136,25 +180,6 @@ export declare const Effect: z.ZodDiscriminatedUnion<[z.ZodObject<{
136
180
  path: z.ZodString;
137
181
  value: z.ZodString;
138
182
  }, z.core.$strict>], "type">;
139
- /**
140
- * 调用链(D48):这一步 trace 的一条路径。nodes 按路径顺序;edges 是路径上的连线,reverse = 沿连线的 to→from 方向走。
141
- * mode:ok = 正常调用(本步 active,之后 ok);fail = 失败(连线与终点节点 error);skip = 没被调用(dim)。
142
- */
143
- export declare const Trace: z.ZodObject<{
144
- mode: z.ZodEnum<{
145
- ok: "ok";
146
- fail: "fail";
147
- skip: "skip";
148
- }>;
149
- nodes: z.ZodArray<z.ZodString>;
150
- edges: z.ZodArray<z.ZodObject<{
151
- id: z.ZodString;
152
- reverse: z.ZodDefault<z.ZodBoolean>;
153
- }, z.core.$strict>>;
154
- groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
- errorGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
156
- targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
- }, z.core.$strict>;
158
183
  /** 镜头(D43):这一步在某个层级里对准哪些元素;targets 为空 = 这一层的整体。 */
159
184
  export declare const Shot: z.ZodObject<{
160
185
  layer: z.ZodString;
@@ -168,9 +193,9 @@ export declare const Fork: z.ZodObject<{
168
193
  export declare const Mark: z.ZodObject<{
169
194
  target: z.ZodString;
170
195
  kind: z.ZodEnum<{
171
- box: "box";
172
196
  circle: "circle";
173
197
  underline: "underline";
198
+ box: "box";
174
199
  arrow: "arrow";
175
200
  }>;
176
201
  note: z.ZodOptional<z.ZodString>;
@@ -194,23 +219,66 @@ export declare const Callout: z.ZodObject<{
194
219
  target: z.ZodString;
195
220
  text: z.ZodString;
196
221
  side: z.ZodOptional<z.ZodEnum<{
197
- right: "right";
198
222
  top: "top";
223
+ right: "right";
199
224
  bottom: "bottom";
200
225
  left: "left";
201
226
  }>>;
202
227
  }, z.core.$strict>;
228
+ export declare const MediaSnapshot: z.ZodRecord<z.ZodString, z.ZodObject<{
229
+ plugin: z.ZodString;
230
+ resource: z.ZodString;
231
+ offsetMs: z.ZodNumber;
232
+ startOffsetMs: z.ZodOptional<z.ZodNumber>;
233
+ volume: z.ZodNumber;
234
+ loop: z.ZodBoolean;
235
+ fadeInMs: z.ZodNumber;
236
+ stopAfterMs: z.ZodOptional<z.ZodNumber>;
237
+ }, z.core.$strict>>;
203
238
  export declare const Step: z.ZodObject<{
239
+ media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
240
+ plugin: z.ZodString;
241
+ resource: z.ZodString;
242
+ offsetMs: z.ZodNumber;
243
+ startOffsetMs: z.ZodOptional<z.ZodNumber>;
244
+ volume: z.ZodNumber;
245
+ loop: z.ZodBoolean;
246
+ fadeInMs: z.ZodNumber;
247
+ stopAfterMs: z.ZodOptional<z.ZodNumber>;
248
+ }, z.core.$strict>>>;
204
249
  id: z.ZodString;
205
250
  key: z.ZodOptional<z.ZodString>;
206
251
  kind: z.ZodEnum<{
207
252
  user: "user";
208
- card: "card";
209
253
  system: "system";
254
+ card: "card";
210
255
  }>;
211
256
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
212
257
  type: z.ZodLiteral<"click">;
213
258
  target: z.ZodString;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ type: z.ZodLiteral<"drag">;
261
+ target: z.ZodString;
262
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
263
+ x: z.ZodNumber;
264
+ y: z.ZodNumber;
265
+ }, z.core.$strict>]>;
266
+ }, z.core.$strict>, z.ZodObject<{
267
+ type: z.ZodLiteral<"hover">;
268
+ target: z.ZodString;
269
+ ms: z.ZodNumber;
270
+ }, z.core.$strict>, z.ZodObject<{
271
+ type: z.ZodLiteral<"scroll">;
272
+ target: z.ZodString;
273
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
274
+ x: z.ZodNumber;
275
+ y: z.ZodNumber;
276
+ }, z.core.$strict>]>;
277
+ }, z.core.$strict>, z.ZodObject<{
278
+ type: z.ZodLiteral<"plugin">;
279
+ name: z.ZodString;
280
+ target: z.ZodString;
281
+ data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
214
282
  }, z.core.$strict>, z.ZodObject<{
215
283
  type: z.ZodLiteral<"type">;
216
284
  target: z.ZodString;
@@ -241,12 +309,15 @@ export declare const Step: z.ZodObject<{
241
309
  caption: z.ZodString;
242
310
  captionAuto: z.ZodOptional<z.ZodObject<{
243
311
  kind: z.ZodEnum<{
244
- check: "check";
245
- type: "type";
246
312
  click: "click";
313
+ drag: "drag";
314
+ hover: "hover";
315
+ scroll: "scroll";
316
+ type: "type";
247
317
  select: "select";
248
- back: "back";
249
318
  press: "press";
319
+ back: "back";
320
+ check: "check";
250
321
  uncheck: "uncheck";
251
322
  switch_on: "switch_on";
252
323
  switch_off: "switch_off";
@@ -267,8 +338,8 @@ export declare const Step: z.ZodObject<{
267
338
  type: z.ZodLiteral<"toast">;
268
339
  text: z.ZodString;
269
340
  tone: z.ZodDefault<z.ZodEnum<{
270
- error: "error";
271
341
  success: "success";
342
+ error: "error";
272
343
  info: "info";
273
344
  }>>;
274
345
  }, z.core.$strict>, z.ZodObject<{
@@ -294,21 +365,9 @@ export declare const Step: z.ZodObject<{
294
365
  }, z.core.$strict>>>;
295
366
  directorLayer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
296
367
  explain: z.ZodOptional<z.ZodString>;
297
- traces: z.ZodDefault<z.ZodArray<z.ZodObject<{
298
- mode: z.ZodEnum<{
299
- ok: "ok";
300
- fail: "fail";
301
- skip: "skip";
302
- }>;
303
- nodes: z.ZodArray<z.ZodString>;
304
- edges: z.ZodArray<z.ZodObject<{
305
- id: z.ZodString;
306
- reverse: z.ZodDefault<z.ZodBoolean>;
307
- }, z.core.$strict>>;
308
- groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
309
- errorGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
- targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
311
- }, z.core.$strict>>>;
368
+ ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
369
+ focusTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
370
+ references: z.ZodOptional<z.ZodArray<z.ZodString>>;
312
371
  forks: z.ZodDefault<z.ZodArray<z.ZodObject<{
313
372
  label: z.ZodString;
314
373
  scenarioId: z.ZodString;
@@ -317,9 +376,9 @@ export declare const Step: z.ZodObject<{
317
376
  marks: z.ZodDefault<z.ZodArray<z.ZodObject<{
318
377
  target: z.ZodString;
319
378
  kind: z.ZodEnum<{
320
- box: "box";
321
379
  circle: "circle";
322
380
  underline: "underline";
381
+ box: "box";
323
382
  arrow: "arrow";
324
383
  }>;
325
384
  note: z.ZodOptional<z.ZodString>;
@@ -336,18 +395,36 @@ export declare const Step: z.ZodObject<{
336
395
  target: z.ZodString;
337
396
  text: z.ZodString;
338
397
  side: z.ZodOptional<z.ZodEnum<{
339
- right: "right";
340
398
  top: "top";
399
+ right: "right";
341
400
  bottom: "bottom";
342
401
  left: "left";
343
402
  }>>;
344
403
  }, z.core.$strict>>>;
345
404
  hold: z.ZodOptional<z.ZodNumber>;
405
+ effectHold: z.ZodOptional<z.ZodNumber>;
346
406
  say: z.ZodOptional<z.ZodString>;
347
407
  narrate: z.ZodOptional<z.ZodString>;
348
408
  source: z.ZodOptional<z.ZodString>;
349
409
  }, z.core.$strict>;
350
410
  export declare const Scenario: z.ZodObject<{
411
+ autoplay: z.ZodOptional<z.ZodBoolean>;
412
+ actionEntry: z.ZodOptional<z.ZodEnum<{
413
+ before: "before";
414
+ after: "after";
415
+ }>>;
416
+ from: z.ZodOptional<z.ZodString>;
417
+ media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
418
+ plugin: z.ZodString;
419
+ resource: z.ZodString;
420
+ offsetMs: z.ZodNumber;
421
+ startOffsetMs: z.ZodOptional<z.ZodNumber>;
422
+ volume: z.ZodNumber;
423
+ loop: z.ZodBoolean;
424
+ fadeInMs: z.ZodNumber;
425
+ stopAfterMs: z.ZodOptional<z.ZodNumber>;
426
+ }, z.core.$strict>>>;
427
+ ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
351
428
  id: z.ZodString;
352
429
  optionId: z.ZodString;
353
430
  name: z.ZodString;
@@ -371,16 +448,49 @@ export declare const Scenario: z.ZodObject<{
371
448
  layer: z.ZodOptional<z.ZodString>;
372
449
  }, z.core.$strict>;
373
450
  steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
451
+ media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
452
+ plugin: z.ZodString;
453
+ resource: z.ZodString;
454
+ offsetMs: z.ZodNumber;
455
+ startOffsetMs: z.ZodOptional<z.ZodNumber>;
456
+ volume: z.ZodNumber;
457
+ loop: z.ZodBoolean;
458
+ fadeInMs: z.ZodNumber;
459
+ stopAfterMs: z.ZodOptional<z.ZodNumber>;
460
+ }, z.core.$strict>>>;
374
461
  id: z.ZodString;
375
462
  key: z.ZodOptional<z.ZodString>;
376
463
  kind: z.ZodEnum<{
377
464
  user: "user";
378
- card: "card";
379
465
  system: "system";
466
+ card: "card";
380
467
  }>;
381
468
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
382
469
  type: z.ZodLiteral<"click">;
383
470
  target: z.ZodString;
471
+ }, z.core.$strict>, z.ZodObject<{
472
+ type: z.ZodLiteral<"drag">;
473
+ target: z.ZodString;
474
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
475
+ x: z.ZodNumber;
476
+ y: z.ZodNumber;
477
+ }, z.core.$strict>]>;
478
+ }, z.core.$strict>, z.ZodObject<{
479
+ type: z.ZodLiteral<"hover">;
480
+ target: z.ZodString;
481
+ ms: z.ZodNumber;
482
+ }, z.core.$strict>, z.ZodObject<{
483
+ type: z.ZodLiteral<"scroll">;
484
+ target: z.ZodString;
485
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
486
+ x: z.ZodNumber;
487
+ y: z.ZodNumber;
488
+ }, z.core.$strict>]>;
489
+ }, z.core.$strict>, z.ZodObject<{
490
+ type: z.ZodLiteral<"plugin">;
491
+ name: z.ZodString;
492
+ target: z.ZodString;
493
+ data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
384
494
  }, z.core.$strict>, z.ZodObject<{
385
495
  type: z.ZodLiteral<"type">;
386
496
  target: z.ZodString;
@@ -411,12 +521,15 @@ export declare const Scenario: z.ZodObject<{
411
521
  caption: z.ZodString;
412
522
  captionAuto: z.ZodOptional<z.ZodObject<{
413
523
  kind: z.ZodEnum<{
414
- check: "check";
415
- type: "type";
416
524
  click: "click";
525
+ drag: "drag";
526
+ hover: "hover";
527
+ scroll: "scroll";
528
+ type: "type";
417
529
  select: "select";
418
- back: "back";
419
530
  press: "press";
531
+ back: "back";
532
+ check: "check";
420
533
  uncheck: "uncheck";
421
534
  switch_on: "switch_on";
422
535
  switch_off: "switch_off";
@@ -437,8 +550,8 @@ export declare const Scenario: z.ZodObject<{
437
550
  type: z.ZodLiteral<"toast">;
438
551
  text: z.ZodString;
439
552
  tone: z.ZodDefault<z.ZodEnum<{
440
- error: "error";
441
553
  success: "success";
554
+ error: "error";
442
555
  info: "info";
443
556
  }>>;
444
557
  }, z.core.$strict>, z.ZodObject<{
@@ -464,21 +577,9 @@ export declare const Scenario: z.ZodObject<{
464
577
  }, z.core.$strict>>>;
465
578
  directorLayer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
466
579
  explain: z.ZodOptional<z.ZodString>;
467
- traces: z.ZodDefault<z.ZodArray<z.ZodObject<{
468
- mode: z.ZodEnum<{
469
- ok: "ok";
470
- fail: "fail";
471
- skip: "skip";
472
- }>;
473
- nodes: z.ZodArray<z.ZodString>;
474
- edges: z.ZodArray<z.ZodObject<{
475
- id: z.ZodString;
476
- reverse: z.ZodDefault<z.ZodBoolean>;
477
- }, z.core.$strict>>;
478
- groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
479
- errorGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
480
- targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
481
- }, z.core.$strict>>>;
580
+ ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
581
+ focusTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
582
+ references: z.ZodOptional<z.ZodArray<z.ZodString>>;
482
583
  forks: z.ZodDefault<z.ZodArray<z.ZodObject<{
483
584
  label: z.ZodString;
484
585
  scenarioId: z.ZodString;
@@ -487,9 +588,9 @@ export declare const Scenario: z.ZodObject<{
487
588
  marks: z.ZodDefault<z.ZodArray<z.ZodObject<{
488
589
  target: z.ZodString;
489
590
  kind: z.ZodEnum<{
490
- box: "box";
491
591
  circle: "circle";
492
592
  underline: "underline";
593
+ box: "box";
493
594
  arrow: "arrow";
494
595
  }>;
495
596
  note: z.ZodOptional<z.ZodString>;
@@ -506,13 +607,14 @@ export declare const Scenario: z.ZodObject<{
506
607
  target: z.ZodString;
507
608
  text: z.ZodString;
508
609
  side: z.ZodOptional<z.ZodEnum<{
509
- right: "right";
510
610
  top: "top";
611
+ right: "right";
511
612
  bottom: "bottom";
512
613
  left: "left";
513
614
  }>>;
514
615
  }, z.core.$strict>>>;
515
616
  hold: z.ZodOptional<z.ZodNumber>;
617
+ effectHold: z.ZodOptional<z.ZodNumber>;
516
618
  say: z.ZodOptional<z.ZodString>;
517
619
  narrate: z.ZodOptional<z.ZodString>;
518
620
  source: z.ZodOptional<z.ZodString>;
@@ -555,10 +657,10 @@ export declare const Case: z.ZodObject<{
555
657
  title: z.ZodString;
556
658
  dimension: z.ZodEnum<{
557
659
  main: "main";
558
- async: "async";
559
660
  input: "input";
560
661
  permission: "permission";
561
662
  lifecycle: "lifecycle";
663
+ async: "async";
562
664
  interrupt: "interrupt";
563
665
  conflict: "conflict";
564
666
  consistency: "consistency";
@@ -574,11 +676,11 @@ export declare const Case: z.ZodObject<{
574
676
  export declare const COVERAGE_STATUSES: readonly ["expressed", "undecided", "missing", "not_applicable", "excluded"];
575
677
  export declare const Coverage: z.ZodObject<{
576
678
  status: z.ZodEnum<{
577
- expressed: "expressed";
578
679
  undecided: "undecided";
579
680
  missing: "missing";
580
681
  not_applicable: "not_applicable";
581
682
  excluded: "excluded";
683
+ expressed: "expressed";
582
684
  }>;
583
685
  scenarioIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
584
686
  reason: z.ZodOptional<z.ZodString>;
@@ -587,7 +689,183 @@ export declare const Coverage: z.ZodObject<{
587
689
  declared: "declared";
588
690
  }>>;
589
691
  }, z.core.$strict>;
692
+ export declare const FreeReaction: z.ZodObject<{
693
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
694
+ type: z.ZodLiteral<"click">;
695
+ target: z.ZodString;
696
+ }, z.core.$strict>, z.ZodObject<{
697
+ type: z.ZodLiteral<"drag">;
698
+ target: z.ZodString;
699
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
700
+ x: z.ZodNumber;
701
+ y: z.ZodNumber;
702
+ }, z.core.$strict>]>;
703
+ }, z.core.$strict>, z.ZodObject<{
704
+ type: z.ZodLiteral<"hover">;
705
+ target: z.ZodString;
706
+ ms: z.ZodNumber;
707
+ }, z.core.$strict>, z.ZodObject<{
708
+ type: z.ZodLiteral<"scroll">;
709
+ target: z.ZodString;
710
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
711
+ x: z.ZodNumber;
712
+ y: z.ZodNumber;
713
+ }, z.core.$strict>]>;
714
+ }, z.core.$strict>, z.ZodObject<{
715
+ type: z.ZodLiteral<"plugin">;
716
+ name: z.ZodString;
717
+ target: z.ZodString;
718
+ data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
719
+ }, z.core.$strict>, z.ZodObject<{
720
+ type: z.ZodLiteral<"type">;
721
+ target: z.ZodString;
722
+ value: z.ZodString;
723
+ }, z.core.$strict>, z.ZodObject<{
724
+ type: z.ZodLiteral<"select">;
725
+ target: z.ZodString;
726
+ value: z.ZodString;
727
+ }, z.core.$strict>, z.ZodObject<{
728
+ type: z.ZodLiteral<"toggle">;
729
+ target: z.ZodString;
730
+ value: z.ZodBoolean;
731
+ }, z.core.$strict>, z.ZodObject<{
732
+ type: z.ZodLiteral<"back">;
733
+ }, z.core.$strict>, z.ZodObject<{
734
+ type: z.ZodLiteral<"press">;
735
+ keys: z.ZodString;
736
+ }, z.core.$strict>, z.ZodObject<{
737
+ type: z.ZodLiteral<"event">;
738
+ name: z.ZodString;
739
+ }, z.core.$strict>, z.ZodObject<{
740
+ type: z.ZodLiteral<"card">;
741
+ title: z.ZodString;
742
+ sub: z.ZodOptional<z.ZodString>;
743
+ points: z.ZodOptional<z.ZodArray<z.ZodString>>;
744
+ role: z.ZodOptional<z.ZodString>;
745
+ }, z.core.$strict>], "type">;
746
+ effects: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
747
+ type: z.ZodLiteral<"set">;
748
+ path: z.ZodString;
749
+ value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
750
+ }, z.core.$strict>, z.ZodObject<{
751
+ type: z.ZodLiteral<"append">;
752
+ path: z.ZodString;
753
+ value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
754
+ }, z.core.$strict>, z.ZodObject<{
755
+ type: z.ZodLiteral<"toast">;
756
+ text: z.ZodString;
757
+ tone: z.ZodDefault<z.ZodEnum<{
758
+ success: "success";
759
+ error: "error";
760
+ info: "info";
761
+ }>>;
762
+ }, z.core.$strict>, z.ZodObject<{
763
+ type: z.ZodLiteral<"navigate">;
764
+ sceneId: z.ZodString;
765
+ }, z.core.$strict>, z.ZodObject<{
766
+ type: z.ZodLiteral<"complete">;
767
+ text: z.ZodString;
768
+ outcome: z.ZodEnum<{
769
+ success: "success";
770
+ failure: "failure";
771
+ cancelled: "cancelled";
772
+ }>;
773
+ }, z.core.$strict>, z.ZodObject<{
774
+ type: z.ZodLiteral<"stream">;
775
+ path: z.ZodString;
776
+ value: z.ZodString;
777
+ }, z.core.$strict>], "type">>>;
778
+ source: z.ZodOptional<z.ZodString>;
779
+ }, z.core.$strict>;
590
780
  export declare const Option: z.ZodObject<{
781
+ free: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
782
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
783
+ type: z.ZodLiteral<"click">;
784
+ target: z.ZodString;
785
+ }, z.core.$strict>, z.ZodObject<{
786
+ type: z.ZodLiteral<"drag">;
787
+ target: z.ZodString;
788
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
789
+ x: z.ZodNumber;
790
+ y: z.ZodNumber;
791
+ }, z.core.$strict>]>;
792
+ }, z.core.$strict>, z.ZodObject<{
793
+ type: z.ZodLiteral<"hover">;
794
+ target: z.ZodString;
795
+ ms: z.ZodNumber;
796
+ }, z.core.$strict>, z.ZodObject<{
797
+ type: z.ZodLiteral<"scroll">;
798
+ target: z.ZodString;
799
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
800
+ x: z.ZodNumber;
801
+ y: z.ZodNumber;
802
+ }, z.core.$strict>]>;
803
+ }, z.core.$strict>, z.ZodObject<{
804
+ type: z.ZodLiteral<"plugin">;
805
+ name: z.ZodString;
806
+ target: z.ZodString;
807
+ data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
808
+ }, z.core.$strict>, z.ZodObject<{
809
+ type: z.ZodLiteral<"type">;
810
+ target: z.ZodString;
811
+ value: z.ZodString;
812
+ }, z.core.$strict>, z.ZodObject<{
813
+ type: z.ZodLiteral<"select">;
814
+ target: z.ZodString;
815
+ value: z.ZodString;
816
+ }, z.core.$strict>, z.ZodObject<{
817
+ type: z.ZodLiteral<"toggle">;
818
+ target: z.ZodString;
819
+ value: z.ZodBoolean;
820
+ }, z.core.$strict>, z.ZodObject<{
821
+ type: z.ZodLiteral<"back">;
822
+ }, z.core.$strict>, z.ZodObject<{
823
+ type: z.ZodLiteral<"press">;
824
+ keys: z.ZodString;
825
+ }, z.core.$strict>, z.ZodObject<{
826
+ type: z.ZodLiteral<"event">;
827
+ name: z.ZodString;
828
+ }, z.core.$strict>, z.ZodObject<{
829
+ type: z.ZodLiteral<"card">;
830
+ title: z.ZodString;
831
+ sub: z.ZodOptional<z.ZodString>;
832
+ points: z.ZodOptional<z.ZodArray<z.ZodString>>;
833
+ role: z.ZodOptional<z.ZodString>;
834
+ }, z.core.$strict>], "type">;
835
+ effects: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
836
+ type: z.ZodLiteral<"set">;
837
+ path: z.ZodString;
838
+ value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
839
+ }, z.core.$strict>, z.ZodObject<{
840
+ type: z.ZodLiteral<"append">;
841
+ path: z.ZodString;
842
+ value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
843
+ }, z.core.$strict>, z.ZodObject<{
844
+ type: z.ZodLiteral<"toast">;
845
+ text: z.ZodString;
846
+ tone: z.ZodDefault<z.ZodEnum<{
847
+ success: "success";
848
+ error: "error";
849
+ info: "info";
850
+ }>>;
851
+ }, z.core.$strict>, z.ZodObject<{
852
+ type: z.ZodLiteral<"navigate">;
853
+ sceneId: z.ZodString;
854
+ }, z.core.$strict>, z.ZodObject<{
855
+ type: z.ZodLiteral<"complete">;
856
+ text: z.ZodString;
857
+ outcome: z.ZodEnum<{
858
+ success: "success";
859
+ failure: "failure";
860
+ cancelled: "cancelled";
861
+ }>;
862
+ }, z.core.$strict>, z.ZodObject<{
863
+ type: z.ZodLiteral<"stream">;
864
+ path: z.ZodString;
865
+ value: z.ZodString;
866
+ }, z.core.$strict>], "type">>>;
867
+ source: z.ZodOptional<z.ZodString>;
868
+ }, z.core.$strict>>>;
591
869
  id: z.ZodString;
592
870
  featureId: z.ZodString;
593
871
  key: z.ZodString;
@@ -598,11 +876,11 @@ export declare const Option: z.ZodObject<{
598
876
  routes: z.ZodDefault<z.ZodArray<z.ZodString>>;
599
877
  coverage: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
600
878
  status: z.ZodEnum<{
601
- expressed: "expressed";
602
879
  undecided: "undecided";
603
880
  missing: "missing";
604
881
  not_applicable: "not_applicable";
605
882
  excluded: "excluded";
883
+ expressed: "expressed";
606
884
  }>;
607
885
  scenarioIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
608
886
  reason: z.ZodOptional<z.ZodString>;
@@ -616,15 +894,15 @@ export declare const Option: z.ZodObject<{
616
894
  sceneId: z.ZodString;
617
895
  role: z.ZodOptional<z.ZodString>;
618
896
  icon: z.ZodOptional<z.ZodEnum<{
619
- terminal: "terminal";
897
+ data: "data";
898
+ desktop: "desktop";
899
+ mobile: "mobile";
620
900
  window: "window";
621
901
  browser: "browser";
622
- mobile: "mobile";
623
- desktop: "desktop";
902
+ terminal: "terminal";
624
903
  chat: "chat";
625
904
  agent: "agent";
626
905
  server: "server";
627
- data: "data";
628
906
  email: "email";
629
907
  doc: "doc";
630
908
  flow: "flow";
@@ -701,6 +979,17 @@ export declare const VoiceIndex: z.ZodObject<{
701
979
  overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
702
980
  }, z.core.$strict>>>;
703
981
  }, z.core.$strict>;
982
+ /** Only calibrated numeric playback data may cross the author/public boundary. */
983
+ export declare const AudioRegionSchema: z.ZodObject<{
984
+ sourceSampleRate: z.ZodNumber;
985
+ cycleFrames: z.ZodNumber;
986
+ contentStartFrame: z.ZodNumber;
987
+ contentFrames: z.ZodNumber;
988
+ decodedFrames: z.ZodNumber;
989
+ encoderDelayFrames: z.ZodNumber;
990
+ paddingFrames: z.ZodNumber;
991
+ channels: z.ZodNumber;
992
+ }, z.core.$strict>;
704
993
  export declare const Project: z.ZodObject<{
705
994
  schemaVersion: z.ZodLiteral<2>;
706
995
  name: z.ZodString;
@@ -727,17 +1016,79 @@ export declare const Project: z.ZodObject<{
727
1016
  overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
728
1017
  }, z.core.$strict>>>;
729
1018
  }, z.core.$strict>>;
1019
+ mediaAssets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1020
+ mediaInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1021
+ sourceSampleRate: z.ZodNumber;
1022
+ cycleFrames: z.ZodNumber;
1023
+ contentStartFrame: z.ZodNumber;
1024
+ contentFrames: z.ZodNumber;
1025
+ decodedFrames: z.ZodNumber;
1026
+ encoderDelayFrames: z.ZodNumber;
1027
+ paddingFrames: z.ZodNumber;
1028
+ channels: z.ZodNumber;
1029
+ }, z.core.$strict>>>;
730
1030
  i18n: z.ZodOptional<z.ZodObject<{
731
1031
  default: z.ZodString;
732
1032
  locales: z.ZodArray<z.ZodString>;
733
1033
  messages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
734
1034
  stale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
735
1035
  }, z.core.$strict>>;
1036
+ plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1037
+ actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1038
+ caption: z.ZodString;
1039
+ durationMs: z.ZodNumber;
1040
+ fields: z.ZodRecord<z.ZodString, z.ZodObject<{
1041
+ type: z.ZodEnum<{
1042
+ string: "string";
1043
+ number: "number";
1044
+ boolean: "boolean";
1045
+ }>;
1046
+ min: z.ZodOptional<z.ZodNumber>;
1047
+ max: z.ZodOptional<z.ZodNumber>;
1048
+ tolerance: z.ZodOptional<z.ZodNumber>;
1049
+ text: z.ZodOptional<z.ZodBoolean>;
1050
+ }, z.core.$strict>>;
1051
+ targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
1052
+ }, z.core.$strict>>>;
1053
+ themes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1054
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1055
+ type: z.ZodEnum<{
1056
+ string: "string";
1057
+ number: "number";
1058
+ boolean: "boolean";
1059
+ }>;
1060
+ attribute: z.ZodOptional<z.ZodString>;
1061
+ min: z.ZodOptional<z.ZodNumber>;
1062
+ max: z.ZodOptional<z.ZodNumber>;
1063
+ nonempty: z.ZodOptional<z.ZodBoolean>;
1064
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1065
+ }, z.core.$strict>>>;
1066
+ data: z.ZodOptional<z.ZodObject<{
1067
+ node: z.ZodOptional<z.ZodObject<{
1068
+ text: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
1069
+ scope: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodArray<z.ZodType<import("@joplo-app/kit/plugin").PluginScopeRule, unknown, z.core.$ZodTypeInternals<import("@joplo-app/kit/plugin").PluginScopeRule, unknown>>>]>>;
1070
+ }, z.core.$strict>>;
1071
+ step: z.ZodOptional<z.ZodObject<{
1072
+ text: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
1073
+ scope: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodArray<z.ZodType<import("@joplo-app/kit/plugin").PluginScopeRule, unknown, z.core.$ZodTypeInternals<import("@joplo-app/kit/plugin").PluginScopeRule, unknown>>>]>>;
1074
+ }, z.core.$strict>>;
1075
+ }, z.core.$strict>>;
1076
+ id: z.ZodString;
1077
+ title: z.ZodString;
1078
+ version: z.ZodOptional<z.ZodString>;
1079
+ components: z.ZodRecord<z.ZodString, z.ZodObject<{
1080
+ interactive: z.ZodOptional<z.ZodBoolean>;
1081
+ parent: z.ZodOptional<z.ZodString>;
1082
+ needsId: z.ZodOptional<z.ZodBoolean>;
1083
+ selfEvident: z.ZodOptional<z.ZodBoolean>;
1084
+ traits: z.ZodOptional<z.ZodType<ElementTraits, unknown, z.core.$ZodTypeInternals<ElementTraits, unknown>>>;
1085
+ }, z.core.$strict>>;
1086
+ }, z.core.$strict>>>;
736
1087
  themes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
737
1088
  mode: z.ZodEnum<{
738
- review: "review";
739
- publish: "publish";
740
1089
  dev: "dev";
1090
+ publish: "publish";
1091
+ review: "review";
741
1092
  }>;
742
1093
  routes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
743
1094
  path: z.ZodString;
@@ -774,10 +1125,10 @@ export declare const Project: z.ZodObject<{
774
1125
  title: z.ZodString;
775
1126
  dimension: z.ZodEnum<{
776
1127
  main: "main";
777
- async: "async";
778
1128
  input: "input";
779
1129
  permission: "permission";
780
1130
  lifecycle: "lifecycle";
1131
+ async: "async";
781
1132
  interrupt: "interrupt";
782
1133
  conflict: "conflict";
783
1134
  consistency: "consistency";
@@ -791,6 +1142,94 @@ export declare const Project: z.ZodObject<{
791
1142
  source: z.ZodOptional<z.ZodString>;
792
1143
  }, z.core.$strict>>>;
793
1144
  options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1145
+ free: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1146
+ action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1147
+ type: z.ZodLiteral<"click">;
1148
+ target: z.ZodString;
1149
+ }, z.core.$strict>, z.ZodObject<{
1150
+ type: z.ZodLiteral<"drag">;
1151
+ target: z.ZodString;
1152
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1153
+ x: z.ZodNumber;
1154
+ y: z.ZodNumber;
1155
+ }, z.core.$strict>]>;
1156
+ }, z.core.$strict>, z.ZodObject<{
1157
+ type: z.ZodLiteral<"hover">;
1158
+ target: z.ZodString;
1159
+ ms: z.ZodNumber;
1160
+ }, z.core.$strict>, z.ZodObject<{
1161
+ type: z.ZodLiteral<"scroll">;
1162
+ target: z.ZodString;
1163
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1164
+ x: z.ZodNumber;
1165
+ y: z.ZodNumber;
1166
+ }, z.core.$strict>]>;
1167
+ }, z.core.$strict>, z.ZodObject<{
1168
+ type: z.ZodLiteral<"plugin">;
1169
+ name: z.ZodString;
1170
+ target: z.ZodString;
1171
+ data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1172
+ }, z.core.$strict>, z.ZodObject<{
1173
+ type: z.ZodLiteral<"type">;
1174
+ target: z.ZodString;
1175
+ value: z.ZodString;
1176
+ }, z.core.$strict>, z.ZodObject<{
1177
+ type: z.ZodLiteral<"select">;
1178
+ target: z.ZodString;
1179
+ value: z.ZodString;
1180
+ }, z.core.$strict>, z.ZodObject<{
1181
+ type: z.ZodLiteral<"toggle">;
1182
+ target: z.ZodString;
1183
+ value: z.ZodBoolean;
1184
+ }, z.core.$strict>, z.ZodObject<{
1185
+ type: z.ZodLiteral<"back">;
1186
+ }, z.core.$strict>, z.ZodObject<{
1187
+ type: z.ZodLiteral<"press">;
1188
+ keys: z.ZodString;
1189
+ }, z.core.$strict>, z.ZodObject<{
1190
+ type: z.ZodLiteral<"event">;
1191
+ name: z.ZodString;
1192
+ }, z.core.$strict>, z.ZodObject<{
1193
+ type: z.ZodLiteral<"card">;
1194
+ title: z.ZodString;
1195
+ sub: z.ZodOptional<z.ZodString>;
1196
+ points: z.ZodOptional<z.ZodArray<z.ZodString>>;
1197
+ role: z.ZodOptional<z.ZodString>;
1198
+ }, z.core.$strict>], "type">;
1199
+ effects: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1200
+ type: z.ZodLiteral<"set">;
1201
+ path: z.ZodString;
1202
+ value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1203
+ }, z.core.$strict>, z.ZodObject<{
1204
+ type: z.ZodLiteral<"append">;
1205
+ path: z.ZodString;
1206
+ value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1207
+ }, z.core.$strict>, z.ZodObject<{
1208
+ type: z.ZodLiteral<"toast">;
1209
+ text: z.ZodString;
1210
+ tone: z.ZodDefault<z.ZodEnum<{
1211
+ success: "success";
1212
+ error: "error";
1213
+ info: "info";
1214
+ }>>;
1215
+ }, z.core.$strict>, z.ZodObject<{
1216
+ type: z.ZodLiteral<"navigate">;
1217
+ sceneId: z.ZodString;
1218
+ }, z.core.$strict>, z.ZodObject<{
1219
+ type: z.ZodLiteral<"complete">;
1220
+ text: z.ZodString;
1221
+ outcome: z.ZodEnum<{
1222
+ success: "success";
1223
+ failure: "failure";
1224
+ cancelled: "cancelled";
1225
+ }>;
1226
+ }, z.core.$strict>, z.ZodObject<{
1227
+ type: z.ZodLiteral<"stream">;
1228
+ path: z.ZodString;
1229
+ value: z.ZodString;
1230
+ }, z.core.$strict>], "type">>>;
1231
+ source: z.ZodOptional<z.ZodString>;
1232
+ }, z.core.$strict>>>;
794
1233
  id: z.ZodString;
795
1234
  featureId: z.ZodString;
796
1235
  key: z.ZodString;
@@ -801,11 +1240,11 @@ export declare const Project: z.ZodObject<{
801
1240
  routes: z.ZodDefault<z.ZodArray<z.ZodString>>;
802
1241
  coverage: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
803
1242
  status: z.ZodEnum<{
804
- expressed: "expressed";
805
1243
  undecided: "undecided";
806
1244
  missing: "missing";
807
1245
  not_applicable: "not_applicable";
808
1246
  excluded: "excluded";
1247
+ expressed: "expressed";
809
1248
  }>;
810
1249
  scenarioIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
811
1250
  reason: z.ZodOptional<z.ZodString>;
@@ -819,15 +1258,15 @@ export declare const Project: z.ZodObject<{
819
1258
  sceneId: z.ZodString;
820
1259
  role: z.ZodOptional<z.ZodString>;
821
1260
  icon: z.ZodOptional<z.ZodEnum<{
822
- terminal: "terminal";
1261
+ data: "data";
1262
+ desktop: "desktop";
1263
+ mobile: "mobile";
823
1264
  window: "window";
824
1265
  browser: "browser";
825
- mobile: "mobile";
826
- desktop: "desktop";
1266
+ terminal: "terminal";
827
1267
  chat: "chat";
828
1268
  agent: "agent";
829
1269
  server: "server";
830
- data: "data";
831
1270
  email: "email";
832
1271
  doc: "doc";
833
1272
  flow: "flow";
@@ -863,13 +1302,30 @@ export declare const Project: z.ZodObject<{
863
1302
  route: z.ZodString;
864
1303
  name: z.ZodString;
865
1304
  viewport: z.ZodDefault<z.ZodEnum<{
866
- mobile: "mobile";
867
1305
  desktop: "desktop";
1306
+ mobile: "mobile";
868
1307
  }>>;
869
1308
  root: z.ZodType<SceneNode, unknown, z.core.$ZodTypeInternals<SceneNode, unknown>>;
870
1309
  layer: z.ZodOptional<z.ZodString>;
871
1310
  }, z.core.$strict>>>;
872
1311
  scenarios: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1312
+ autoplay: z.ZodOptional<z.ZodBoolean>;
1313
+ actionEntry: z.ZodOptional<z.ZodEnum<{
1314
+ before: "before";
1315
+ after: "after";
1316
+ }>>;
1317
+ from: z.ZodOptional<z.ZodString>;
1318
+ media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1319
+ plugin: z.ZodString;
1320
+ resource: z.ZodString;
1321
+ offsetMs: z.ZodNumber;
1322
+ startOffsetMs: z.ZodOptional<z.ZodNumber>;
1323
+ volume: z.ZodNumber;
1324
+ loop: z.ZodBoolean;
1325
+ fadeInMs: z.ZodNumber;
1326
+ stopAfterMs: z.ZodOptional<z.ZodNumber>;
1327
+ }, z.core.$strict>>>;
1328
+ ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
873
1329
  id: z.ZodString;
874
1330
  optionId: z.ZodString;
875
1331
  name: z.ZodString;
@@ -893,16 +1349,49 @@ export declare const Project: z.ZodObject<{
893
1349
  layer: z.ZodOptional<z.ZodString>;
894
1350
  }, z.core.$strict>;
895
1351
  steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
1352
+ media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1353
+ plugin: z.ZodString;
1354
+ resource: z.ZodString;
1355
+ offsetMs: z.ZodNumber;
1356
+ startOffsetMs: z.ZodOptional<z.ZodNumber>;
1357
+ volume: z.ZodNumber;
1358
+ loop: z.ZodBoolean;
1359
+ fadeInMs: z.ZodNumber;
1360
+ stopAfterMs: z.ZodOptional<z.ZodNumber>;
1361
+ }, z.core.$strict>>>;
896
1362
  id: z.ZodString;
897
1363
  key: z.ZodOptional<z.ZodString>;
898
1364
  kind: z.ZodEnum<{
899
1365
  user: "user";
900
- card: "card";
901
1366
  system: "system";
1367
+ card: "card";
902
1368
  }>;
903
1369
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
904
1370
  type: z.ZodLiteral<"click">;
905
1371
  target: z.ZodString;
1372
+ }, z.core.$strict>, z.ZodObject<{
1373
+ type: z.ZodLiteral<"drag">;
1374
+ target: z.ZodString;
1375
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1376
+ x: z.ZodNumber;
1377
+ y: z.ZodNumber;
1378
+ }, z.core.$strict>]>;
1379
+ }, z.core.$strict>, z.ZodObject<{
1380
+ type: z.ZodLiteral<"hover">;
1381
+ target: z.ZodString;
1382
+ ms: z.ZodNumber;
1383
+ }, z.core.$strict>, z.ZodObject<{
1384
+ type: z.ZodLiteral<"scroll">;
1385
+ target: z.ZodString;
1386
+ to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1387
+ x: z.ZodNumber;
1388
+ y: z.ZodNumber;
1389
+ }, z.core.$strict>]>;
1390
+ }, z.core.$strict>, z.ZodObject<{
1391
+ type: z.ZodLiteral<"plugin">;
1392
+ name: z.ZodString;
1393
+ target: z.ZodString;
1394
+ data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
906
1395
  }, z.core.$strict>, z.ZodObject<{
907
1396
  type: z.ZodLiteral<"type">;
908
1397
  target: z.ZodString;
@@ -933,12 +1422,15 @@ export declare const Project: z.ZodObject<{
933
1422
  caption: z.ZodString;
934
1423
  captionAuto: z.ZodOptional<z.ZodObject<{
935
1424
  kind: z.ZodEnum<{
936
- check: "check";
937
- type: "type";
938
1425
  click: "click";
1426
+ drag: "drag";
1427
+ hover: "hover";
1428
+ scroll: "scroll";
1429
+ type: "type";
939
1430
  select: "select";
940
- back: "back";
941
1431
  press: "press";
1432
+ back: "back";
1433
+ check: "check";
942
1434
  uncheck: "uncheck";
943
1435
  switch_on: "switch_on";
944
1436
  switch_off: "switch_off";
@@ -959,8 +1451,8 @@ export declare const Project: z.ZodObject<{
959
1451
  type: z.ZodLiteral<"toast">;
960
1452
  text: z.ZodString;
961
1453
  tone: z.ZodDefault<z.ZodEnum<{
962
- error: "error";
963
1454
  success: "success";
1455
+ error: "error";
964
1456
  info: "info";
965
1457
  }>>;
966
1458
  }, z.core.$strict>, z.ZodObject<{
@@ -986,21 +1478,9 @@ export declare const Project: z.ZodObject<{
986
1478
  }, z.core.$strict>>>;
987
1479
  directorLayer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
988
1480
  explain: z.ZodOptional<z.ZodString>;
989
- traces: z.ZodDefault<z.ZodArray<z.ZodObject<{
990
- mode: z.ZodEnum<{
991
- ok: "ok";
992
- fail: "fail";
993
- skip: "skip";
994
- }>;
995
- nodes: z.ZodArray<z.ZodString>;
996
- edges: z.ZodArray<z.ZodObject<{
997
- id: z.ZodString;
998
- reverse: z.ZodDefault<z.ZodBoolean>;
999
- }, z.core.$strict>>;
1000
- groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
1001
- errorGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
1002
- targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
1003
- }, z.core.$strict>>>;
1481
+ ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
1482
+ focusTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
1483
+ references: z.ZodOptional<z.ZodArray<z.ZodString>>;
1004
1484
  forks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1005
1485
  label: z.ZodString;
1006
1486
  scenarioId: z.ZodString;
@@ -1009,9 +1489,9 @@ export declare const Project: z.ZodObject<{
1009
1489
  marks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1010
1490
  target: z.ZodString;
1011
1491
  kind: z.ZodEnum<{
1012
- box: "box";
1013
1492
  circle: "circle";
1014
1493
  underline: "underline";
1494
+ box: "box";
1015
1495
  arrow: "arrow";
1016
1496
  }>;
1017
1497
  note: z.ZodOptional<z.ZodString>;
@@ -1028,13 +1508,14 @@ export declare const Project: z.ZodObject<{
1028
1508
  target: z.ZodString;
1029
1509
  text: z.ZodString;
1030
1510
  side: z.ZodOptional<z.ZodEnum<{
1031
- right: "right";
1032
1511
  top: "top";
1512
+ right: "right";
1033
1513
  bottom: "bottom";
1034
1514
  left: "left";
1035
1515
  }>>;
1036
1516
  }, z.core.$strict>>>;
1037
1517
  hold: z.ZodOptional<z.ZodNumber>;
1518
+ effectHold: z.ZodOptional<z.ZodNumber>;
1038
1519
  say: z.ZodOptional<z.ZodString>;
1039
1520
  narrate: z.ZodOptional<z.ZodString>;
1040
1521
  source: z.ZodOptional<z.ZodString>;
@@ -1069,7 +1550,7 @@ export type Scenario = z.infer<typeof Scenario>;
1069
1550
  export type Step = z.infer<typeof Step>;
1070
1551
  export type Action = z.infer<typeof Action>;
1071
1552
  export type Effect = z.infer<typeof Effect>;
1072
- export type Trace = z.infer<typeof Trace>;
1553
+ export type FreeReaction = z.infer<typeof FreeReaction>;
1073
1554
  export type Shot = z.infer<typeof Shot>;
1074
1555
  export type Fork = z.infer<typeof Fork>;
1075
1556
  export type Mark = z.infer<typeof Mark>;