@joplo-app/core 0.2.17 → 0.3.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.
- package/dist/actions.d.ts +6 -0
- package/dist/actions.js +34 -0
- package/dist/agent-skill.d.ts +10 -13
- package/dist/agent-skill.js +52 -31
- package/dist/auto-caption.d.ts +22 -0
- package/dist/auto-caption.js +166 -0
- package/dist/catalog.d.ts +38 -41
- package/dist/catalog.js +26 -317
- package/dist/compile.d.ts +2 -8
- package/dist/compile.js +302 -353
- package/dist/content-i18n.js +27 -16
- package/dist/feature-diff.d.ts +3 -3
- package/dist/feature-diff.js +28 -6
- package/dist/focus.d.ts +3 -1
- package/dist/focus.js +16 -34
- package/dist/guide.d.ts +10 -12
- package/dist/guide.js +419 -519
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/media.d.ts +10 -0
- package/dist/media.js +43 -0
- package/dist/node.d.ts +1 -2
- package/dist/node.js +1 -2
- package/dist/outline.d.ts +1 -1
- package/dist/outline.js +3 -3
- package/dist/pace.d.ts +9 -1
- package/dist/pace.js +23 -3
- package/dist/player.d.ts +8 -41
- package/dist/player.js +85 -148
- package/dist/playground.d.ts +38 -0
- package/dist/playground.js +111 -0
- package/dist/plugin-data.d.ts +11 -0
- package/dist/plugin-data.js +96 -0
- package/dist/plugins/compiler.d.ts +66 -0
- package/dist/plugins/compiler.js +428 -0
- package/dist/plugins/data.d.ts +12 -0
- package/dist/plugins/data.js +120 -0
- package/dist/result.d.ts +1 -1
- package/dist/result.js +1 -0
- package/dist/runtime.d.ts +22 -0
- package/dist/runtime.js +18 -0
- package/dist/schema.d.ts +566 -82
- package/dist/schema.js +65 -53
- package/dist/scope.js +14 -5
- package/dist/step-identity.d.ts +1 -1
- package/dist/step-identity.js +1 -1
- package/dist/themes.d.ts +7 -0
- package/dist/themes.js +5 -0
- package/dist/traits.d.ts +7 -0
- package/dist/traits.js +26 -0
- package/dist/validate.js +17 -4
- package/dist/voice.d.ts +8 -2
- package/dist/voice.js +14 -2
- package/package.json +7 -4
- package/dist/diagram/elk.d.ts +0 -6
- package/dist/diagram/elk.js +0 -56
- package/dist/diagram/graph-layout.d.ts +0 -123
- package/dist/diagram/graph-layout.js +0 -620
- package/dist/diagram/index.d.ts +0 -41
- package/dist/diagram/index.js +0 -92
- package/dist/diagram/model.d.ts +0 -217
- package/dist/diagram/model.js +0 -189
- package/dist/diagram/sequence-layout.d.ts +0 -12
- 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
|
-
|
|
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
|
-
/**
|
|
60
|
-
|
|
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>;
|
|
@@ -74,9 +79,48 @@ export declare const Scene: z.ZodObject<{
|
|
|
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;
|
|
@@ -200,7 +225,27 @@ export declare const Callout: z.ZodObject<{
|
|
|
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<{
|
|
@@ -211,6 +256,29 @@ export declare const Step: z.ZodObject<{
|
|
|
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
312
|
click: "click";
|
|
313
|
+
drag: "drag";
|
|
314
|
+
hover: "hover";
|
|
315
|
+
scroll: "scroll";
|
|
246
316
|
type: "type";
|
|
247
317
|
select: "select";
|
|
248
318
|
press: "press";
|
|
249
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
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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;
|
|
@@ -348,6 +407,23 @@ export declare const Step: z.ZodObject<{
|
|
|
348
407
|
source: z.ZodOptional<z.ZodString>;
|
|
349
408
|
}, z.core.$strict>;
|
|
350
409
|
export declare const Scenario: z.ZodObject<{
|
|
410
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
actionEntry: z.ZodOptional<z.ZodEnum<{
|
|
412
|
+
before: "before";
|
|
413
|
+
after: "after";
|
|
414
|
+
}>>;
|
|
415
|
+
from: z.ZodOptional<z.ZodString>;
|
|
416
|
+
media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
417
|
+
plugin: z.ZodString;
|
|
418
|
+
resource: z.ZodString;
|
|
419
|
+
offsetMs: z.ZodNumber;
|
|
420
|
+
startOffsetMs: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
volume: z.ZodNumber;
|
|
422
|
+
loop: z.ZodBoolean;
|
|
423
|
+
fadeInMs: z.ZodNumber;
|
|
424
|
+
stopAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
425
|
+
}, z.core.$strict>>>;
|
|
426
|
+
ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
351
427
|
id: z.ZodString;
|
|
352
428
|
optionId: z.ZodString;
|
|
353
429
|
name: z.ZodString;
|
|
@@ -368,8 +444,19 @@ export declare const Scenario: z.ZodObject<{
|
|
|
368
444
|
ui: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
369
445
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
370
446
|
inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
447
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
371
448
|
}, z.core.$strict>;
|
|
372
449
|
steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
450
|
+
media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
451
|
+
plugin: z.ZodString;
|
|
452
|
+
resource: z.ZodString;
|
|
453
|
+
offsetMs: z.ZodNumber;
|
|
454
|
+
startOffsetMs: z.ZodOptional<z.ZodNumber>;
|
|
455
|
+
volume: z.ZodNumber;
|
|
456
|
+
loop: z.ZodBoolean;
|
|
457
|
+
fadeInMs: z.ZodNumber;
|
|
458
|
+
stopAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
}, z.core.$strict>>>;
|
|
373
460
|
id: z.ZodString;
|
|
374
461
|
key: z.ZodOptional<z.ZodString>;
|
|
375
462
|
kind: z.ZodEnum<{
|
|
@@ -380,6 +467,29 @@ export declare const Scenario: z.ZodObject<{
|
|
|
380
467
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
381
468
|
type: z.ZodLiteral<"click">;
|
|
382
469
|
target: z.ZodString;
|
|
470
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
471
|
+
type: z.ZodLiteral<"drag">;
|
|
472
|
+
target: z.ZodString;
|
|
473
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
474
|
+
x: z.ZodNumber;
|
|
475
|
+
y: z.ZodNumber;
|
|
476
|
+
}, z.core.$strict>]>;
|
|
477
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
478
|
+
type: z.ZodLiteral<"hover">;
|
|
479
|
+
target: z.ZodString;
|
|
480
|
+
ms: z.ZodNumber;
|
|
481
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
482
|
+
type: z.ZodLiteral<"scroll">;
|
|
483
|
+
target: z.ZodString;
|
|
484
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
485
|
+
x: z.ZodNumber;
|
|
486
|
+
y: z.ZodNumber;
|
|
487
|
+
}, z.core.$strict>]>;
|
|
488
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
489
|
+
type: z.ZodLiteral<"plugin">;
|
|
490
|
+
name: z.ZodString;
|
|
491
|
+
target: z.ZodString;
|
|
492
|
+
data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
383
493
|
}, z.core.$strict>, z.ZodObject<{
|
|
384
494
|
type: z.ZodLiteral<"type">;
|
|
385
495
|
target: z.ZodString;
|
|
@@ -410,12 +520,15 @@ export declare const Scenario: z.ZodObject<{
|
|
|
410
520
|
caption: z.ZodString;
|
|
411
521
|
captionAuto: z.ZodOptional<z.ZodObject<{
|
|
412
522
|
kind: z.ZodEnum<{
|
|
413
|
-
check: "check";
|
|
414
523
|
click: "click";
|
|
524
|
+
drag: "drag";
|
|
525
|
+
hover: "hover";
|
|
526
|
+
scroll: "scroll";
|
|
415
527
|
type: "type";
|
|
416
528
|
select: "select";
|
|
417
529
|
press: "press";
|
|
418
530
|
back: "back";
|
|
531
|
+
check: "check";
|
|
419
532
|
uncheck: "uncheck";
|
|
420
533
|
switch_on: "switch_on";
|
|
421
534
|
switch_off: "switch_off";
|
|
@@ -436,8 +549,8 @@ export declare const Scenario: z.ZodObject<{
|
|
|
436
549
|
type: z.ZodLiteral<"toast">;
|
|
437
550
|
text: z.ZodString;
|
|
438
551
|
tone: z.ZodDefault<z.ZodEnum<{
|
|
439
|
-
error: "error";
|
|
440
552
|
success: "success";
|
|
553
|
+
error: "error";
|
|
441
554
|
info: "info";
|
|
442
555
|
}>>;
|
|
443
556
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -463,21 +576,9 @@ export declare const Scenario: z.ZodObject<{
|
|
|
463
576
|
}, z.core.$strict>>>;
|
|
464
577
|
directorLayer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
465
578
|
explain: z.ZodOptional<z.ZodString>;
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
fail: "fail";
|
|
470
|
-
skip: "skip";
|
|
471
|
-
}>;
|
|
472
|
-
nodes: z.ZodArray<z.ZodString>;
|
|
473
|
-
edges: z.ZodArray<z.ZodObject<{
|
|
474
|
-
id: z.ZodString;
|
|
475
|
-
reverse: z.ZodDefault<z.ZodBoolean>;
|
|
476
|
-
}, z.core.$strict>>;
|
|
477
|
-
groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
478
|
-
errorGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
479
|
-
targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
480
|
-
}, z.core.$strict>>>;
|
|
579
|
+
ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
580
|
+
focusTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
581
|
+
references: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
481
582
|
forks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
482
583
|
label: z.ZodString;
|
|
483
584
|
scenarioId: z.ZodString;
|
|
@@ -586,7 +687,183 @@ export declare const Coverage: z.ZodObject<{
|
|
|
586
687
|
declared: "declared";
|
|
587
688
|
}>>;
|
|
588
689
|
}, z.core.$strict>;
|
|
690
|
+
export declare const FreeReaction: z.ZodObject<{
|
|
691
|
+
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
692
|
+
type: z.ZodLiteral<"click">;
|
|
693
|
+
target: z.ZodString;
|
|
694
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
695
|
+
type: z.ZodLiteral<"drag">;
|
|
696
|
+
target: z.ZodString;
|
|
697
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
698
|
+
x: z.ZodNumber;
|
|
699
|
+
y: z.ZodNumber;
|
|
700
|
+
}, z.core.$strict>]>;
|
|
701
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
702
|
+
type: z.ZodLiteral<"hover">;
|
|
703
|
+
target: z.ZodString;
|
|
704
|
+
ms: z.ZodNumber;
|
|
705
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
706
|
+
type: z.ZodLiteral<"scroll">;
|
|
707
|
+
target: z.ZodString;
|
|
708
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
709
|
+
x: z.ZodNumber;
|
|
710
|
+
y: z.ZodNumber;
|
|
711
|
+
}, z.core.$strict>]>;
|
|
712
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
713
|
+
type: z.ZodLiteral<"plugin">;
|
|
714
|
+
name: z.ZodString;
|
|
715
|
+
target: z.ZodString;
|
|
716
|
+
data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
717
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
718
|
+
type: z.ZodLiteral<"type">;
|
|
719
|
+
target: z.ZodString;
|
|
720
|
+
value: z.ZodString;
|
|
721
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
722
|
+
type: z.ZodLiteral<"select">;
|
|
723
|
+
target: z.ZodString;
|
|
724
|
+
value: z.ZodString;
|
|
725
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
726
|
+
type: z.ZodLiteral<"toggle">;
|
|
727
|
+
target: z.ZodString;
|
|
728
|
+
value: z.ZodBoolean;
|
|
729
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
730
|
+
type: z.ZodLiteral<"back">;
|
|
731
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
732
|
+
type: z.ZodLiteral<"press">;
|
|
733
|
+
keys: z.ZodString;
|
|
734
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
735
|
+
type: z.ZodLiteral<"event">;
|
|
736
|
+
name: z.ZodString;
|
|
737
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
738
|
+
type: z.ZodLiteral<"card">;
|
|
739
|
+
title: z.ZodString;
|
|
740
|
+
sub: z.ZodOptional<z.ZodString>;
|
|
741
|
+
points: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
742
|
+
role: z.ZodOptional<z.ZodString>;
|
|
743
|
+
}, z.core.$strict>], "type">;
|
|
744
|
+
effects: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
745
|
+
type: z.ZodLiteral<"set">;
|
|
746
|
+
path: z.ZodString;
|
|
747
|
+
value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
748
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
749
|
+
type: z.ZodLiteral<"append">;
|
|
750
|
+
path: z.ZodString;
|
|
751
|
+
value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
752
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
753
|
+
type: z.ZodLiteral<"toast">;
|
|
754
|
+
text: z.ZodString;
|
|
755
|
+
tone: z.ZodDefault<z.ZodEnum<{
|
|
756
|
+
success: "success";
|
|
757
|
+
error: "error";
|
|
758
|
+
info: "info";
|
|
759
|
+
}>>;
|
|
760
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
761
|
+
type: z.ZodLiteral<"navigate">;
|
|
762
|
+
sceneId: z.ZodString;
|
|
763
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
764
|
+
type: z.ZodLiteral<"complete">;
|
|
765
|
+
text: z.ZodString;
|
|
766
|
+
outcome: z.ZodEnum<{
|
|
767
|
+
success: "success";
|
|
768
|
+
failure: "failure";
|
|
769
|
+
cancelled: "cancelled";
|
|
770
|
+
}>;
|
|
771
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
772
|
+
type: z.ZodLiteral<"stream">;
|
|
773
|
+
path: z.ZodString;
|
|
774
|
+
value: z.ZodString;
|
|
775
|
+
}, z.core.$strict>], "type">>>;
|
|
776
|
+
source: z.ZodOptional<z.ZodString>;
|
|
777
|
+
}, z.core.$strict>;
|
|
589
778
|
export declare const Option: z.ZodObject<{
|
|
779
|
+
free: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
780
|
+
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
781
|
+
type: z.ZodLiteral<"click">;
|
|
782
|
+
target: z.ZodString;
|
|
783
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
784
|
+
type: z.ZodLiteral<"drag">;
|
|
785
|
+
target: z.ZodString;
|
|
786
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
787
|
+
x: z.ZodNumber;
|
|
788
|
+
y: z.ZodNumber;
|
|
789
|
+
}, z.core.$strict>]>;
|
|
790
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
791
|
+
type: z.ZodLiteral<"hover">;
|
|
792
|
+
target: z.ZodString;
|
|
793
|
+
ms: z.ZodNumber;
|
|
794
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
795
|
+
type: z.ZodLiteral<"scroll">;
|
|
796
|
+
target: z.ZodString;
|
|
797
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
798
|
+
x: z.ZodNumber;
|
|
799
|
+
y: z.ZodNumber;
|
|
800
|
+
}, z.core.$strict>]>;
|
|
801
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
802
|
+
type: z.ZodLiteral<"plugin">;
|
|
803
|
+
name: z.ZodString;
|
|
804
|
+
target: z.ZodString;
|
|
805
|
+
data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
806
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
807
|
+
type: z.ZodLiteral<"type">;
|
|
808
|
+
target: z.ZodString;
|
|
809
|
+
value: z.ZodString;
|
|
810
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
811
|
+
type: z.ZodLiteral<"select">;
|
|
812
|
+
target: z.ZodString;
|
|
813
|
+
value: z.ZodString;
|
|
814
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
815
|
+
type: z.ZodLiteral<"toggle">;
|
|
816
|
+
target: z.ZodString;
|
|
817
|
+
value: z.ZodBoolean;
|
|
818
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
819
|
+
type: z.ZodLiteral<"back">;
|
|
820
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
821
|
+
type: z.ZodLiteral<"press">;
|
|
822
|
+
keys: z.ZodString;
|
|
823
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
824
|
+
type: z.ZodLiteral<"event">;
|
|
825
|
+
name: z.ZodString;
|
|
826
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
827
|
+
type: z.ZodLiteral<"card">;
|
|
828
|
+
title: z.ZodString;
|
|
829
|
+
sub: z.ZodOptional<z.ZodString>;
|
|
830
|
+
points: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
831
|
+
role: z.ZodOptional<z.ZodString>;
|
|
832
|
+
}, z.core.$strict>], "type">;
|
|
833
|
+
effects: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
834
|
+
type: z.ZodLiteral<"set">;
|
|
835
|
+
path: z.ZodString;
|
|
836
|
+
value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
837
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
838
|
+
type: z.ZodLiteral<"append">;
|
|
839
|
+
path: z.ZodString;
|
|
840
|
+
value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
841
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
842
|
+
type: z.ZodLiteral<"toast">;
|
|
843
|
+
text: z.ZodString;
|
|
844
|
+
tone: z.ZodDefault<z.ZodEnum<{
|
|
845
|
+
success: "success";
|
|
846
|
+
error: "error";
|
|
847
|
+
info: "info";
|
|
848
|
+
}>>;
|
|
849
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
850
|
+
type: z.ZodLiteral<"navigate">;
|
|
851
|
+
sceneId: z.ZodString;
|
|
852
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
853
|
+
type: z.ZodLiteral<"complete">;
|
|
854
|
+
text: z.ZodString;
|
|
855
|
+
outcome: z.ZodEnum<{
|
|
856
|
+
success: "success";
|
|
857
|
+
failure: "failure";
|
|
858
|
+
cancelled: "cancelled";
|
|
859
|
+
}>;
|
|
860
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
861
|
+
type: z.ZodLiteral<"stream">;
|
|
862
|
+
path: z.ZodString;
|
|
863
|
+
value: z.ZodString;
|
|
864
|
+
}, z.core.$strict>], "type">>>;
|
|
865
|
+
source: z.ZodOptional<z.ZodString>;
|
|
866
|
+
}, z.core.$strict>>>;
|
|
590
867
|
id: z.ZodString;
|
|
591
868
|
featureId: z.ZodString;
|
|
592
869
|
key: z.ZodString;
|
|
@@ -615,12 +892,12 @@ export declare const Option: z.ZodObject<{
|
|
|
615
892
|
sceneId: z.ZodString;
|
|
616
893
|
role: z.ZodOptional<z.ZodString>;
|
|
617
894
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
618
|
-
terminal: "terminal";
|
|
619
895
|
data: "data";
|
|
620
896
|
desktop: "desktop";
|
|
621
897
|
mobile: "mobile";
|
|
622
898
|
window: "window";
|
|
623
899
|
browser: "browser";
|
|
900
|
+
terminal: "terminal";
|
|
624
901
|
chat: "chat";
|
|
625
902
|
agent: "agent";
|
|
626
903
|
server: "server";
|
|
@@ -693,11 +970,24 @@ export declare const VoiceIndex: z.ZodObject<{
|
|
|
693
970
|
narrator: z.ZodNullable<z.ZodString>;
|
|
694
971
|
roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
695
972
|
clips: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
973
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
696
974
|
locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
697
975
|
narrator: z.ZodNullable<z.ZodString>;
|
|
698
976
|
roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
977
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
699
978
|
}, z.core.$strict>>>;
|
|
700
979
|
}, z.core.$strict>;
|
|
980
|
+
/** Only calibrated numeric playback data may cross the author/public boundary. */
|
|
981
|
+
export declare const AudioRegionSchema: z.ZodObject<{
|
|
982
|
+
sourceSampleRate: z.ZodNumber;
|
|
983
|
+
cycleFrames: z.ZodNumber;
|
|
984
|
+
contentStartFrame: z.ZodNumber;
|
|
985
|
+
contentFrames: z.ZodNumber;
|
|
986
|
+
decodedFrames: z.ZodNumber;
|
|
987
|
+
encoderDelayFrames: z.ZodNumber;
|
|
988
|
+
paddingFrames: z.ZodNumber;
|
|
989
|
+
channels: z.ZodNumber;
|
|
990
|
+
}, z.core.$strict>;
|
|
701
991
|
export declare const Project: z.ZodObject<{
|
|
702
992
|
schemaVersion: z.ZodLiteral<2>;
|
|
703
993
|
name: z.ZodString;
|
|
@@ -717,22 +1007,86 @@ export declare const Project: z.ZodObject<{
|
|
|
717
1007
|
narrator: z.ZodNullable<z.ZodString>;
|
|
718
1008
|
roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
719
1009
|
clips: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1010
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
720
1011
|
locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
721
1012
|
narrator: z.ZodNullable<z.ZodString>;
|
|
722
1013
|
roles: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1014
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
723
1015
|
}, z.core.$strict>>>;
|
|
724
1016
|
}, z.core.$strict>>;
|
|
1017
|
+
mediaAssets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1018
|
+
mediaInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1019
|
+
sourceSampleRate: z.ZodNumber;
|
|
1020
|
+
cycleFrames: z.ZodNumber;
|
|
1021
|
+
contentStartFrame: z.ZodNumber;
|
|
1022
|
+
contentFrames: z.ZodNumber;
|
|
1023
|
+
decodedFrames: z.ZodNumber;
|
|
1024
|
+
encoderDelayFrames: z.ZodNumber;
|
|
1025
|
+
paddingFrames: z.ZodNumber;
|
|
1026
|
+
channels: z.ZodNumber;
|
|
1027
|
+
}, z.core.$strict>>>;
|
|
725
1028
|
i18n: z.ZodOptional<z.ZodObject<{
|
|
726
1029
|
default: z.ZodString;
|
|
727
1030
|
locales: z.ZodArray<z.ZodString>;
|
|
728
1031
|
messages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
729
1032
|
stale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
730
1033
|
}, z.core.$strict>>;
|
|
1034
|
+
plugins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1035
|
+
actions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1036
|
+
caption: z.ZodString;
|
|
1037
|
+
durationMs: z.ZodNumber;
|
|
1038
|
+
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1039
|
+
type: z.ZodEnum<{
|
|
1040
|
+
string: "string";
|
|
1041
|
+
number: "number";
|
|
1042
|
+
boolean: "boolean";
|
|
1043
|
+
}>;
|
|
1044
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1045
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
+
tolerance: z.ZodOptional<z.ZodNumber>;
|
|
1047
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
1048
|
+
}, z.core.$strict>>;
|
|
1049
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1050
|
+
}, z.core.$strict>>>;
|
|
1051
|
+
themes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1052
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1053
|
+
type: z.ZodEnum<{
|
|
1054
|
+
string: "string";
|
|
1055
|
+
number: "number";
|
|
1056
|
+
boolean: "boolean";
|
|
1057
|
+
}>;
|
|
1058
|
+
attribute: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1060
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1061
|
+
nonempty: z.ZodOptional<z.ZodBoolean>;
|
|
1062
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1063
|
+
}, z.core.$strict>>>;
|
|
1064
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
1065
|
+
node: z.ZodOptional<z.ZodObject<{
|
|
1066
|
+
text: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
1067
|
+
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>>>]>>;
|
|
1068
|
+
}, z.core.$strict>>;
|
|
1069
|
+
step: z.ZodOptional<z.ZodObject<{
|
|
1070
|
+
text: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
1071
|
+
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>>>]>>;
|
|
1072
|
+
}, z.core.$strict>>;
|
|
1073
|
+
}, z.core.$strict>>;
|
|
1074
|
+
id: z.ZodString;
|
|
1075
|
+
title: z.ZodString;
|
|
1076
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
components: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1078
|
+
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
1079
|
+
parent: z.ZodOptional<z.ZodString>;
|
|
1080
|
+
needsId: z.ZodOptional<z.ZodBoolean>;
|
|
1081
|
+
selfEvident: z.ZodOptional<z.ZodBoolean>;
|
|
1082
|
+
traits: z.ZodOptional<z.ZodType<ElementTraits, unknown, z.core.$ZodTypeInternals<ElementTraits, unknown>>>;
|
|
1083
|
+
}, z.core.$strict>>;
|
|
1084
|
+
}, z.core.$strict>>>;
|
|
731
1085
|
themes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
732
1086
|
mode: z.ZodEnum<{
|
|
733
|
-
review: "review";
|
|
734
|
-
publish: "publish";
|
|
735
1087
|
dev: "dev";
|
|
1088
|
+
publish: "publish";
|
|
1089
|
+
review: "review";
|
|
736
1090
|
}>;
|
|
737
1091
|
routes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
738
1092
|
path: z.ZodString;
|
|
@@ -786,6 +1140,94 @@ export declare const Project: z.ZodObject<{
|
|
|
786
1140
|
source: z.ZodOptional<z.ZodString>;
|
|
787
1141
|
}, z.core.$strict>>>;
|
|
788
1142
|
options: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1143
|
+
free: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1144
|
+
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1145
|
+
type: z.ZodLiteral<"click">;
|
|
1146
|
+
target: z.ZodString;
|
|
1147
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1148
|
+
type: z.ZodLiteral<"drag">;
|
|
1149
|
+
target: z.ZodString;
|
|
1150
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1151
|
+
x: z.ZodNumber;
|
|
1152
|
+
y: z.ZodNumber;
|
|
1153
|
+
}, z.core.$strict>]>;
|
|
1154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1155
|
+
type: z.ZodLiteral<"hover">;
|
|
1156
|
+
target: z.ZodString;
|
|
1157
|
+
ms: z.ZodNumber;
|
|
1158
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1159
|
+
type: z.ZodLiteral<"scroll">;
|
|
1160
|
+
target: z.ZodString;
|
|
1161
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1162
|
+
x: z.ZodNumber;
|
|
1163
|
+
y: z.ZodNumber;
|
|
1164
|
+
}, z.core.$strict>]>;
|
|
1165
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1166
|
+
type: z.ZodLiteral<"plugin">;
|
|
1167
|
+
name: z.ZodString;
|
|
1168
|
+
target: z.ZodString;
|
|
1169
|
+
data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
1170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1171
|
+
type: z.ZodLiteral<"type">;
|
|
1172
|
+
target: z.ZodString;
|
|
1173
|
+
value: z.ZodString;
|
|
1174
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1175
|
+
type: z.ZodLiteral<"select">;
|
|
1176
|
+
target: z.ZodString;
|
|
1177
|
+
value: z.ZodString;
|
|
1178
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1179
|
+
type: z.ZodLiteral<"toggle">;
|
|
1180
|
+
target: z.ZodString;
|
|
1181
|
+
value: z.ZodBoolean;
|
|
1182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1183
|
+
type: z.ZodLiteral<"back">;
|
|
1184
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1185
|
+
type: z.ZodLiteral<"press">;
|
|
1186
|
+
keys: z.ZodString;
|
|
1187
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1188
|
+
type: z.ZodLiteral<"event">;
|
|
1189
|
+
name: z.ZodString;
|
|
1190
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1191
|
+
type: z.ZodLiteral<"card">;
|
|
1192
|
+
title: z.ZodString;
|
|
1193
|
+
sub: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
points: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1195
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
}, z.core.$strict>], "type">;
|
|
1197
|
+
effects: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1198
|
+
type: z.ZodLiteral<"set">;
|
|
1199
|
+
path: z.ZodString;
|
|
1200
|
+
value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
1201
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1202
|
+
type: z.ZodLiteral<"append">;
|
|
1203
|
+
path: z.ZodString;
|
|
1204
|
+
value: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
1205
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1206
|
+
type: z.ZodLiteral<"toast">;
|
|
1207
|
+
text: z.ZodString;
|
|
1208
|
+
tone: z.ZodDefault<z.ZodEnum<{
|
|
1209
|
+
success: "success";
|
|
1210
|
+
error: "error";
|
|
1211
|
+
info: "info";
|
|
1212
|
+
}>>;
|
|
1213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1214
|
+
type: z.ZodLiteral<"navigate">;
|
|
1215
|
+
sceneId: z.ZodString;
|
|
1216
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1217
|
+
type: z.ZodLiteral<"complete">;
|
|
1218
|
+
text: z.ZodString;
|
|
1219
|
+
outcome: z.ZodEnum<{
|
|
1220
|
+
success: "success";
|
|
1221
|
+
failure: "failure";
|
|
1222
|
+
cancelled: "cancelled";
|
|
1223
|
+
}>;
|
|
1224
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1225
|
+
type: z.ZodLiteral<"stream">;
|
|
1226
|
+
path: z.ZodString;
|
|
1227
|
+
value: z.ZodString;
|
|
1228
|
+
}, z.core.$strict>], "type">>>;
|
|
1229
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1230
|
+
}, z.core.$strict>>>;
|
|
789
1231
|
id: z.ZodString;
|
|
790
1232
|
featureId: z.ZodString;
|
|
791
1233
|
key: z.ZodString;
|
|
@@ -814,12 +1256,12 @@ export declare const Project: z.ZodObject<{
|
|
|
814
1256
|
sceneId: z.ZodString;
|
|
815
1257
|
role: z.ZodOptional<z.ZodString>;
|
|
816
1258
|
icon: z.ZodOptional<z.ZodEnum<{
|
|
817
|
-
terminal: "terminal";
|
|
818
1259
|
data: "data";
|
|
819
1260
|
desktop: "desktop";
|
|
820
1261
|
mobile: "mobile";
|
|
821
1262
|
window: "window";
|
|
822
1263
|
browser: "browser";
|
|
1264
|
+
terminal: "terminal";
|
|
823
1265
|
chat: "chat";
|
|
824
1266
|
agent: "agent";
|
|
825
1267
|
server: "server";
|
|
@@ -865,6 +1307,23 @@ export declare const Project: z.ZodObject<{
|
|
|
865
1307
|
layer: z.ZodOptional<z.ZodString>;
|
|
866
1308
|
}, z.core.$strict>>>;
|
|
867
1309
|
scenarios: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1310
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
1311
|
+
actionEntry: z.ZodOptional<z.ZodEnum<{
|
|
1312
|
+
before: "before";
|
|
1313
|
+
after: "after";
|
|
1314
|
+
}>>;
|
|
1315
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1316
|
+
media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1317
|
+
plugin: z.ZodString;
|
|
1318
|
+
resource: z.ZodString;
|
|
1319
|
+
offsetMs: z.ZodNumber;
|
|
1320
|
+
startOffsetMs: z.ZodOptional<z.ZodNumber>;
|
|
1321
|
+
volume: z.ZodNumber;
|
|
1322
|
+
loop: z.ZodBoolean;
|
|
1323
|
+
fadeInMs: z.ZodNumber;
|
|
1324
|
+
stopAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
1325
|
+
}, z.core.$strict>>>;
|
|
1326
|
+
ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
868
1327
|
id: z.ZodString;
|
|
869
1328
|
optionId: z.ZodString;
|
|
870
1329
|
name: z.ZodString;
|
|
@@ -885,8 +1344,19 @@ export declare const Project: z.ZodObject<{
|
|
|
885
1344
|
ui: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
886
1345
|
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
887
1346
|
inputs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1347
|
+
layer: z.ZodOptional<z.ZodString>;
|
|
888
1348
|
}, z.core.$strict>;
|
|
889
1349
|
steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1350
|
+
media: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1351
|
+
plugin: z.ZodString;
|
|
1352
|
+
resource: z.ZodString;
|
|
1353
|
+
offsetMs: z.ZodNumber;
|
|
1354
|
+
startOffsetMs: z.ZodOptional<z.ZodNumber>;
|
|
1355
|
+
volume: z.ZodNumber;
|
|
1356
|
+
loop: z.ZodBoolean;
|
|
1357
|
+
fadeInMs: z.ZodNumber;
|
|
1358
|
+
stopAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
1359
|
+
}, z.core.$strict>>>;
|
|
890
1360
|
id: z.ZodString;
|
|
891
1361
|
key: z.ZodOptional<z.ZodString>;
|
|
892
1362
|
kind: z.ZodEnum<{
|
|
@@ -897,6 +1367,29 @@ export declare const Project: z.ZodObject<{
|
|
|
897
1367
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
898
1368
|
type: z.ZodLiteral<"click">;
|
|
899
1369
|
target: z.ZodString;
|
|
1370
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1371
|
+
type: z.ZodLiteral<"drag">;
|
|
1372
|
+
target: z.ZodString;
|
|
1373
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1374
|
+
x: z.ZodNumber;
|
|
1375
|
+
y: z.ZodNumber;
|
|
1376
|
+
}, z.core.$strict>]>;
|
|
1377
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1378
|
+
type: z.ZodLiteral<"hover">;
|
|
1379
|
+
target: z.ZodString;
|
|
1380
|
+
ms: z.ZodNumber;
|
|
1381
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1382
|
+
type: z.ZodLiteral<"scroll">;
|
|
1383
|
+
target: z.ZodString;
|
|
1384
|
+
to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1385
|
+
x: z.ZodNumber;
|
|
1386
|
+
y: z.ZodNumber;
|
|
1387
|
+
}, z.core.$strict>]>;
|
|
1388
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1389
|
+
type: z.ZodLiteral<"plugin">;
|
|
1390
|
+
name: z.ZodString;
|
|
1391
|
+
target: z.ZodString;
|
|
1392
|
+
data: z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
900
1393
|
}, z.core.$strict>, z.ZodObject<{
|
|
901
1394
|
type: z.ZodLiteral<"type">;
|
|
902
1395
|
target: z.ZodString;
|
|
@@ -927,12 +1420,15 @@ export declare const Project: z.ZodObject<{
|
|
|
927
1420
|
caption: z.ZodString;
|
|
928
1421
|
captionAuto: z.ZodOptional<z.ZodObject<{
|
|
929
1422
|
kind: z.ZodEnum<{
|
|
930
|
-
check: "check";
|
|
931
1423
|
click: "click";
|
|
1424
|
+
drag: "drag";
|
|
1425
|
+
hover: "hover";
|
|
1426
|
+
scroll: "scroll";
|
|
932
1427
|
type: "type";
|
|
933
1428
|
select: "select";
|
|
934
1429
|
press: "press";
|
|
935
1430
|
back: "back";
|
|
1431
|
+
check: "check";
|
|
936
1432
|
uncheck: "uncheck";
|
|
937
1433
|
switch_on: "switch_on";
|
|
938
1434
|
switch_off: "switch_off";
|
|
@@ -953,8 +1449,8 @@ export declare const Project: z.ZodObject<{
|
|
|
953
1449
|
type: z.ZodLiteral<"toast">;
|
|
954
1450
|
text: z.ZodString;
|
|
955
1451
|
tone: z.ZodDefault<z.ZodEnum<{
|
|
956
|
-
error: "error";
|
|
957
1452
|
success: "success";
|
|
1453
|
+
error: "error";
|
|
958
1454
|
info: "info";
|
|
959
1455
|
}>>;
|
|
960
1456
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -980,21 +1476,9 @@ export declare const Project: z.ZodObject<{
|
|
|
980
1476
|
}, z.core.$strict>>>;
|
|
981
1477
|
directorLayer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
982
1478
|
explain: z.ZodOptional<z.ZodString>;
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
fail: "fail";
|
|
987
|
-
skip: "skip";
|
|
988
|
-
}>;
|
|
989
|
-
nodes: z.ZodArray<z.ZodString>;
|
|
990
|
-
edges: z.ZodArray<z.ZodObject<{
|
|
991
|
-
id: z.ZodString;
|
|
992
|
-
reverse: z.ZodDefault<z.ZodBoolean>;
|
|
993
|
-
}, z.core.$strict>>;
|
|
994
|
-
groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
995
|
-
errorGroups: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
996
|
-
targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
997
|
-
}, z.core.$strict>>>;
|
|
1479
|
+
ext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
1480
|
+
focusTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1481
|
+
references: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
998
1482
|
forks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
999
1483
|
label: z.ZodString;
|
|
1000
1484
|
scenarioId: z.ZodString;
|
|
@@ -1063,7 +1547,7 @@ export type Scenario = z.infer<typeof Scenario>;
|
|
|
1063
1547
|
export type Step = z.infer<typeof Step>;
|
|
1064
1548
|
export type Action = z.infer<typeof Action>;
|
|
1065
1549
|
export type Effect = z.infer<typeof Effect>;
|
|
1066
|
-
export type
|
|
1550
|
+
export type FreeReaction = z.infer<typeof FreeReaction>;
|
|
1067
1551
|
export type Shot = z.infer<typeof Shot>;
|
|
1068
1552
|
export type Fork = z.infer<typeof Fork>;
|
|
1069
1553
|
export type Mark = z.infer<typeof Mark>;
|