@mochiya/avatar-composition 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3262 @@
1
+ import { z } from 'zod';
2
+ import * as three from 'three';
3
+ import { Object3D, Mesh, Bone, BufferGeometry, Material, Matrix4, Skeleton, Texture, AnimationClip } from 'three';
4
+ import { GLTFLoaderPlugin, GLTFParser, GLTF } from 'three/addons/loaders/GLTFLoader.js';
5
+ import { VRM } from '@pixiv/three-vrm';
6
+
7
+ declare const EXTENSION_NAME = "MOCHIYA_avatar_composition";
8
+ declare const SPEC_VERSION = "0.1";
9
+ declare const ASSET_KINDS: readonly ["avatar", "attachment"];
10
+ type AssetKind = (typeof ASSET_KINDS)[number];
11
+ declare const CAPABILITIES: readonly ["mergeArmature", "boneProxy", "shapeChanger", "blendshapeSync", "objectToggle", "materialSetter", "menuItem"];
12
+ declare const selectorSchema: z.ZodEffects<z.ZodObject<{
13
+ asset: z.ZodEnum<["self", "base"]>;
14
+ node: z.ZodOptional<z.ZodNumber>;
15
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
+ morphIndex: z.ZodOptional<z.ZodNumber>;
21
+ humanBone: z.ZodOptional<z.ZodString>;
22
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
+ }, "strict", z.ZodTypeAny, {
25
+ asset: "self" | "base";
26
+ path?: string[] | undefined;
27
+ node?: number | undefined;
28
+ boneKeywords?: string[] | undefined;
29
+ meshKeywords?: string[] | undefined;
30
+ nodeKeywords?: string[] | undefined;
31
+ blendshapeKeywords?: string[] | undefined;
32
+ morphIndex?: number | undefined;
33
+ humanBone?: string | undefined;
34
+ humanBonePath?: string[] | undefined;
35
+ parentKeywords?: string[] | undefined;
36
+ }, {
37
+ asset: "self" | "base";
38
+ path?: string[] | undefined;
39
+ node?: number | undefined;
40
+ boneKeywords?: string[] | undefined;
41
+ meshKeywords?: string[] | undefined;
42
+ nodeKeywords?: string[] | undefined;
43
+ blendshapeKeywords?: string[] | undefined;
44
+ morphIndex?: number | undefined;
45
+ humanBone?: string | undefined;
46
+ humanBonePath?: string[] | undefined;
47
+ parentKeywords?: string[] | undefined;
48
+ }>, {
49
+ asset: "self" | "base";
50
+ path?: string[] | undefined;
51
+ node?: number | undefined;
52
+ boneKeywords?: string[] | undefined;
53
+ meshKeywords?: string[] | undefined;
54
+ nodeKeywords?: string[] | undefined;
55
+ blendshapeKeywords?: string[] | undefined;
56
+ morphIndex?: number | undefined;
57
+ humanBone?: string | undefined;
58
+ humanBonePath?: string[] | undefined;
59
+ parentKeywords?: string[] | undefined;
60
+ }, {
61
+ asset: "self" | "base";
62
+ path?: string[] | undefined;
63
+ node?: number | undefined;
64
+ boneKeywords?: string[] | undefined;
65
+ meshKeywords?: string[] | undefined;
66
+ nodeKeywords?: string[] | undefined;
67
+ blendshapeKeywords?: string[] | undefined;
68
+ morphIndex?: number | undefined;
69
+ humanBone?: string | undefined;
70
+ humanBonePath?: string[] | undefined;
71
+ parentKeywords?: string[] | undefined;
72
+ }>;
73
+ type Selector = z.infer<typeof selectorSchema>;
74
+ declare const conditionSchema: z.ZodEffects<z.ZodObject<{
75
+ type: z.ZodEnum<["nodeActive", "control"]>;
76
+ asset: z.ZodOptional<z.ZodEnum<["self", "base"]>>;
77
+ node: z.ZodOptional<z.ZodNumber>;
78
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
79
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
80
+ control: z.ZodOptional<z.ZodString>;
81
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
82
+ inverse: z.ZodOptional<z.ZodBoolean>;
83
+ }, "strict", z.ZodTypeAny, {
84
+ type: "nodeActive" | "control";
85
+ value?: number | boolean | undefined;
86
+ path?: string[] | undefined;
87
+ asset?: "self" | "base" | undefined;
88
+ node?: number | undefined;
89
+ nodeKeywords?: string[] | undefined;
90
+ control?: string | undefined;
91
+ inverse?: boolean | undefined;
92
+ }, {
93
+ type: "nodeActive" | "control";
94
+ value?: number | boolean | undefined;
95
+ path?: string[] | undefined;
96
+ asset?: "self" | "base" | undefined;
97
+ node?: number | undefined;
98
+ nodeKeywords?: string[] | undefined;
99
+ control?: string | undefined;
100
+ inverse?: boolean | undefined;
101
+ }>, {
102
+ type: "nodeActive" | "control";
103
+ value?: number | boolean | undefined;
104
+ path?: string[] | undefined;
105
+ asset?: "self" | "base" | undefined;
106
+ node?: number | undefined;
107
+ nodeKeywords?: string[] | undefined;
108
+ control?: string | undefined;
109
+ inverse?: boolean | undefined;
110
+ }, {
111
+ type: "nodeActive" | "control";
112
+ value?: number | boolean | undefined;
113
+ path?: string[] | undefined;
114
+ asset?: "self" | "base" | undefined;
115
+ node?: number | undefined;
116
+ nodeKeywords?: string[] | undefined;
117
+ control?: string | undefined;
118
+ inverse?: boolean | undefined;
119
+ }>;
120
+ type Condition = z.infer<typeof conditionSchema>;
121
+ declare const curveSchema: z.ZodEffects<z.ZodObject<{
122
+ interpolation: z.ZodEnum<["linear", "step"]>;
123
+ points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
124
+ }, "strict", z.ZodTypeAny, {
125
+ interpolation: "linear" | "step";
126
+ points: [number, number][];
127
+ }, {
128
+ interpolation: "linear" | "step";
129
+ points: [number, number][];
130
+ }>, {
131
+ interpolation: "linear" | "step";
132
+ points: [number, number][];
133
+ }, {
134
+ interpolation: "linear" | "step";
135
+ points: [number, number][];
136
+ }>;
137
+ type RemapCurve = z.infer<typeof curveSchema>;
138
+ declare const componentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
139
+ type: z.ZodLiteral<"mergeArmature">;
140
+ target: z.ZodEffects<z.ZodObject<{
141
+ asset: z.ZodEnum<["self", "base"]>;
142
+ node: z.ZodOptional<z.ZodNumber>;
143
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
144
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
145
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
146
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
147
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
148
+ morphIndex: z.ZodOptional<z.ZodNumber>;
149
+ humanBone: z.ZodOptional<z.ZodString>;
150
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
151
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
152
+ }, "strict", z.ZodTypeAny, {
153
+ asset: "self" | "base";
154
+ path?: string[] | undefined;
155
+ node?: number | undefined;
156
+ boneKeywords?: string[] | undefined;
157
+ meshKeywords?: string[] | undefined;
158
+ nodeKeywords?: string[] | undefined;
159
+ blendshapeKeywords?: string[] | undefined;
160
+ morphIndex?: number | undefined;
161
+ humanBone?: string | undefined;
162
+ humanBonePath?: string[] | undefined;
163
+ parentKeywords?: string[] | undefined;
164
+ }, {
165
+ asset: "self" | "base";
166
+ path?: string[] | undefined;
167
+ node?: number | undefined;
168
+ boneKeywords?: string[] | undefined;
169
+ meshKeywords?: string[] | undefined;
170
+ nodeKeywords?: string[] | undefined;
171
+ blendshapeKeywords?: string[] | undefined;
172
+ morphIndex?: number | undefined;
173
+ humanBone?: string | undefined;
174
+ humanBonePath?: string[] | undefined;
175
+ parentKeywords?: string[] | undefined;
176
+ }>, {
177
+ asset: "self" | "base";
178
+ path?: string[] | undefined;
179
+ node?: number | undefined;
180
+ boneKeywords?: string[] | undefined;
181
+ meshKeywords?: string[] | undefined;
182
+ nodeKeywords?: string[] | undefined;
183
+ blendshapeKeywords?: string[] | undefined;
184
+ morphIndex?: number | undefined;
185
+ humanBone?: string | undefined;
186
+ humanBonePath?: string[] | undefined;
187
+ parentKeywords?: string[] | undefined;
188
+ }, {
189
+ asset: "self" | "base";
190
+ path?: string[] | undefined;
191
+ node?: number | undefined;
192
+ boneKeywords?: string[] | undefined;
193
+ meshKeywords?: string[] | undefined;
194
+ nodeKeywords?: string[] | undefined;
195
+ blendshapeKeywords?: string[] | undefined;
196
+ morphIndex?: number | undefined;
197
+ humanBone?: string | undefined;
198
+ humanBonePath?: string[] | undefined;
199
+ parentKeywords?: string[] | undefined;
200
+ }>;
201
+ prefix: z.ZodDefault<z.ZodString>;
202
+ suffix: z.ZodDefault<z.ZodString>;
203
+ lockMode: z.ZodDefault<z.ZodEnum<["unidirectional", "bidirectional", "notLocked"]>>;
204
+ mangleNames: z.ZodDefault<z.ZodBoolean>;
205
+ id: z.ZodString;
206
+ sourceNode: z.ZodNumber;
207
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
208
+ }, "strict", z.ZodTypeAny, {
209
+ type: "mergeArmature";
210
+ target: {
211
+ asset: "self" | "base";
212
+ path?: string[] | undefined;
213
+ node?: number | undefined;
214
+ boneKeywords?: string[] | undefined;
215
+ meshKeywords?: string[] | undefined;
216
+ nodeKeywords?: string[] | undefined;
217
+ blendshapeKeywords?: string[] | undefined;
218
+ morphIndex?: number | undefined;
219
+ humanBone?: string | undefined;
220
+ humanBonePath?: string[] | undefined;
221
+ parentKeywords?: string[] | undefined;
222
+ };
223
+ prefix: string;
224
+ suffix: string;
225
+ lockMode: "unidirectional" | "bidirectional" | "notLocked";
226
+ mangleNames: boolean;
227
+ id: string;
228
+ sourceNode: number;
229
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
230
+ }, {
231
+ type: "mergeArmature";
232
+ target: {
233
+ asset: "self" | "base";
234
+ path?: string[] | undefined;
235
+ node?: number | undefined;
236
+ boneKeywords?: string[] | undefined;
237
+ meshKeywords?: string[] | undefined;
238
+ nodeKeywords?: string[] | undefined;
239
+ blendshapeKeywords?: string[] | undefined;
240
+ morphIndex?: number | undefined;
241
+ humanBone?: string | undefined;
242
+ humanBonePath?: string[] | undefined;
243
+ parentKeywords?: string[] | undefined;
244
+ };
245
+ id: string;
246
+ sourceNode: number;
247
+ prefix?: string | undefined;
248
+ suffix?: string | undefined;
249
+ lockMode?: "unidirectional" | "bidirectional" | "notLocked" | undefined;
250
+ mangleNames?: boolean | undefined;
251
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
252
+ }>, z.ZodObject<{
253
+ type: z.ZodLiteral<"boneProxy">;
254
+ target: z.ZodEffects<z.ZodObject<{
255
+ asset: z.ZodEnum<["self", "base"]>;
256
+ node: z.ZodOptional<z.ZodNumber>;
257
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
258
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
259
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
260
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
261
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
262
+ morphIndex: z.ZodOptional<z.ZodNumber>;
263
+ humanBone: z.ZodOptional<z.ZodString>;
264
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
265
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
266
+ }, "strict", z.ZodTypeAny, {
267
+ asset: "self" | "base";
268
+ path?: string[] | undefined;
269
+ node?: number | undefined;
270
+ boneKeywords?: string[] | undefined;
271
+ meshKeywords?: string[] | undefined;
272
+ nodeKeywords?: string[] | undefined;
273
+ blendshapeKeywords?: string[] | undefined;
274
+ morphIndex?: number | undefined;
275
+ humanBone?: string | undefined;
276
+ humanBonePath?: string[] | undefined;
277
+ parentKeywords?: string[] | undefined;
278
+ }, {
279
+ asset: "self" | "base";
280
+ path?: string[] | undefined;
281
+ node?: number | undefined;
282
+ boneKeywords?: string[] | undefined;
283
+ meshKeywords?: string[] | undefined;
284
+ nodeKeywords?: string[] | undefined;
285
+ blendshapeKeywords?: string[] | undefined;
286
+ morphIndex?: number | undefined;
287
+ humanBone?: string | undefined;
288
+ humanBonePath?: string[] | undefined;
289
+ parentKeywords?: string[] | undefined;
290
+ }>, {
291
+ asset: "self" | "base";
292
+ path?: string[] | undefined;
293
+ node?: number | undefined;
294
+ boneKeywords?: string[] | undefined;
295
+ meshKeywords?: string[] | undefined;
296
+ nodeKeywords?: string[] | undefined;
297
+ blendshapeKeywords?: string[] | undefined;
298
+ morphIndex?: number | undefined;
299
+ humanBone?: string | undefined;
300
+ humanBonePath?: string[] | undefined;
301
+ parentKeywords?: string[] | undefined;
302
+ }, {
303
+ asset: "self" | "base";
304
+ path?: string[] | undefined;
305
+ node?: number | undefined;
306
+ boneKeywords?: string[] | undefined;
307
+ meshKeywords?: string[] | undefined;
308
+ nodeKeywords?: string[] | undefined;
309
+ blendshapeKeywords?: string[] | undefined;
310
+ morphIndex?: number | undefined;
311
+ humanBone?: string | undefined;
312
+ humanBonePath?: string[] | undefined;
313
+ parentKeywords?: string[] | undefined;
314
+ }>;
315
+ attachmentMode: z.ZodDefault<z.ZodEnum<["keepWorldPose", "atRoot", "keepPosition", "keepRotation"]>>;
316
+ matchScale: z.ZodDefault<z.ZodBoolean>;
317
+ id: z.ZodString;
318
+ sourceNode: z.ZodNumber;
319
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
320
+ }, "strict", z.ZodTypeAny, {
321
+ type: "boneProxy";
322
+ target: {
323
+ asset: "self" | "base";
324
+ path?: string[] | undefined;
325
+ node?: number | undefined;
326
+ boneKeywords?: string[] | undefined;
327
+ meshKeywords?: string[] | undefined;
328
+ nodeKeywords?: string[] | undefined;
329
+ blendshapeKeywords?: string[] | undefined;
330
+ morphIndex?: number | undefined;
331
+ humanBone?: string | undefined;
332
+ humanBonePath?: string[] | undefined;
333
+ parentKeywords?: string[] | undefined;
334
+ };
335
+ id: string;
336
+ sourceNode: number;
337
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
338
+ attachmentMode: "keepWorldPose" | "atRoot" | "keepPosition" | "keepRotation";
339
+ matchScale: boolean;
340
+ }, {
341
+ type: "boneProxy";
342
+ target: {
343
+ asset: "self" | "base";
344
+ path?: string[] | undefined;
345
+ node?: number | undefined;
346
+ boneKeywords?: string[] | undefined;
347
+ meshKeywords?: string[] | undefined;
348
+ nodeKeywords?: string[] | undefined;
349
+ blendshapeKeywords?: string[] | undefined;
350
+ morphIndex?: number | undefined;
351
+ humanBone?: string | undefined;
352
+ humanBonePath?: string[] | undefined;
353
+ parentKeywords?: string[] | undefined;
354
+ };
355
+ id: string;
356
+ sourceNode: number;
357
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
358
+ attachmentMode?: "keepWorldPose" | "atRoot" | "keepPosition" | "keepRotation" | undefined;
359
+ matchScale?: boolean | undefined;
360
+ }>, z.ZodObject<{
361
+ type: z.ZodLiteral<"shapeChanger">;
362
+ threshold: z.ZodDefault<z.ZodNumber>;
363
+ condition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
364
+ type: z.ZodEnum<["nodeActive", "control"]>;
365
+ asset: z.ZodOptional<z.ZodEnum<["self", "base"]>>;
366
+ node: z.ZodOptional<z.ZodNumber>;
367
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
368
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
369
+ control: z.ZodOptional<z.ZodString>;
370
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
371
+ inverse: z.ZodOptional<z.ZodBoolean>;
372
+ }, "strict", z.ZodTypeAny, {
373
+ type: "nodeActive" | "control";
374
+ value?: number | boolean | undefined;
375
+ path?: string[] | undefined;
376
+ asset?: "self" | "base" | undefined;
377
+ node?: number | undefined;
378
+ nodeKeywords?: string[] | undefined;
379
+ control?: string | undefined;
380
+ inverse?: boolean | undefined;
381
+ }, {
382
+ type: "nodeActive" | "control";
383
+ value?: number | boolean | undefined;
384
+ path?: string[] | undefined;
385
+ asset?: "self" | "base" | undefined;
386
+ node?: number | undefined;
387
+ nodeKeywords?: string[] | undefined;
388
+ control?: string | undefined;
389
+ inverse?: boolean | undefined;
390
+ }>, {
391
+ type: "nodeActive" | "control";
392
+ value?: number | boolean | undefined;
393
+ path?: string[] | undefined;
394
+ asset?: "self" | "base" | undefined;
395
+ node?: number | undefined;
396
+ nodeKeywords?: string[] | undefined;
397
+ control?: string | undefined;
398
+ inverse?: boolean | undefined;
399
+ }, {
400
+ type: "nodeActive" | "control";
401
+ value?: number | boolean | undefined;
402
+ path?: string[] | undefined;
403
+ asset?: "self" | "base" | undefined;
404
+ node?: number | undefined;
405
+ nodeKeywords?: string[] | undefined;
406
+ control?: string | undefined;
407
+ inverse?: boolean | undefined;
408
+ }>>;
409
+ shapes: z.ZodArray<z.ZodObject<{
410
+ target: z.ZodEffects<z.ZodObject<{
411
+ asset: z.ZodEnum<["self", "base"]>;
412
+ node: z.ZodOptional<z.ZodNumber>;
413
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
414
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
415
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
416
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
417
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
418
+ morphIndex: z.ZodOptional<z.ZodNumber>;
419
+ humanBone: z.ZodOptional<z.ZodString>;
420
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
421
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
422
+ }, "strict", z.ZodTypeAny, {
423
+ asset: "self" | "base";
424
+ path?: string[] | undefined;
425
+ node?: number | undefined;
426
+ boneKeywords?: string[] | undefined;
427
+ meshKeywords?: string[] | undefined;
428
+ nodeKeywords?: string[] | undefined;
429
+ blendshapeKeywords?: string[] | undefined;
430
+ morphIndex?: number | undefined;
431
+ humanBone?: string | undefined;
432
+ humanBonePath?: string[] | undefined;
433
+ parentKeywords?: string[] | undefined;
434
+ }, {
435
+ asset: "self" | "base";
436
+ path?: string[] | undefined;
437
+ node?: number | undefined;
438
+ boneKeywords?: string[] | undefined;
439
+ meshKeywords?: string[] | undefined;
440
+ nodeKeywords?: string[] | undefined;
441
+ blendshapeKeywords?: string[] | undefined;
442
+ morphIndex?: number | undefined;
443
+ humanBone?: string | undefined;
444
+ humanBonePath?: string[] | undefined;
445
+ parentKeywords?: string[] | undefined;
446
+ }>, {
447
+ asset: "self" | "base";
448
+ path?: string[] | undefined;
449
+ node?: number | undefined;
450
+ boneKeywords?: string[] | undefined;
451
+ meshKeywords?: string[] | undefined;
452
+ nodeKeywords?: string[] | undefined;
453
+ blendshapeKeywords?: string[] | undefined;
454
+ morphIndex?: number | undefined;
455
+ humanBone?: string | undefined;
456
+ humanBonePath?: string[] | undefined;
457
+ parentKeywords?: string[] | undefined;
458
+ }, {
459
+ asset: "self" | "base";
460
+ path?: string[] | undefined;
461
+ node?: number | undefined;
462
+ boneKeywords?: string[] | undefined;
463
+ meshKeywords?: string[] | undefined;
464
+ nodeKeywords?: string[] | undefined;
465
+ blendshapeKeywords?: string[] | undefined;
466
+ morphIndex?: number | undefined;
467
+ humanBone?: string | undefined;
468
+ humanBonePath?: string[] | undefined;
469
+ parentKeywords?: string[] | undefined;
470
+ }>;
471
+ changeType: z.ZodEnum<["set", "delete"]>;
472
+ value: z.ZodDefault<z.ZodNumber>;
473
+ }, "strict", z.ZodTypeAny, {
474
+ value: number;
475
+ target: {
476
+ asset: "self" | "base";
477
+ path?: string[] | undefined;
478
+ node?: number | undefined;
479
+ boneKeywords?: string[] | undefined;
480
+ meshKeywords?: string[] | undefined;
481
+ nodeKeywords?: string[] | undefined;
482
+ blendshapeKeywords?: string[] | undefined;
483
+ morphIndex?: number | undefined;
484
+ humanBone?: string | undefined;
485
+ humanBonePath?: string[] | undefined;
486
+ parentKeywords?: string[] | undefined;
487
+ };
488
+ changeType: "set" | "delete";
489
+ }, {
490
+ target: {
491
+ asset: "self" | "base";
492
+ path?: string[] | undefined;
493
+ node?: number | undefined;
494
+ boneKeywords?: string[] | undefined;
495
+ meshKeywords?: string[] | undefined;
496
+ nodeKeywords?: string[] | undefined;
497
+ blendshapeKeywords?: string[] | undefined;
498
+ morphIndex?: number | undefined;
499
+ humanBone?: string | undefined;
500
+ humanBonePath?: string[] | undefined;
501
+ parentKeywords?: string[] | undefined;
502
+ };
503
+ changeType: "set" | "delete";
504
+ value?: number | undefined;
505
+ }>, "many">;
506
+ id: z.ZodString;
507
+ sourceNode: z.ZodNumber;
508
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
509
+ }, "strict", z.ZodTypeAny, {
510
+ type: "shapeChanger";
511
+ id: string;
512
+ sourceNode: number;
513
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
514
+ threshold: number;
515
+ shapes: {
516
+ value: number;
517
+ target: {
518
+ asset: "self" | "base";
519
+ path?: string[] | undefined;
520
+ node?: number | undefined;
521
+ boneKeywords?: string[] | undefined;
522
+ meshKeywords?: string[] | undefined;
523
+ nodeKeywords?: string[] | undefined;
524
+ blendshapeKeywords?: string[] | undefined;
525
+ morphIndex?: number | undefined;
526
+ humanBone?: string | undefined;
527
+ humanBonePath?: string[] | undefined;
528
+ parentKeywords?: string[] | undefined;
529
+ };
530
+ changeType: "set" | "delete";
531
+ }[];
532
+ condition?: {
533
+ type: "nodeActive" | "control";
534
+ value?: number | boolean | undefined;
535
+ path?: string[] | undefined;
536
+ asset?: "self" | "base" | undefined;
537
+ node?: number | undefined;
538
+ nodeKeywords?: string[] | undefined;
539
+ control?: string | undefined;
540
+ inverse?: boolean | undefined;
541
+ } | undefined;
542
+ }, {
543
+ type: "shapeChanger";
544
+ id: string;
545
+ sourceNode: number;
546
+ shapes: {
547
+ target: {
548
+ asset: "self" | "base";
549
+ path?: string[] | undefined;
550
+ node?: number | undefined;
551
+ boneKeywords?: string[] | undefined;
552
+ meshKeywords?: string[] | undefined;
553
+ nodeKeywords?: string[] | undefined;
554
+ blendshapeKeywords?: string[] | undefined;
555
+ morphIndex?: number | undefined;
556
+ humanBone?: string | undefined;
557
+ humanBonePath?: string[] | undefined;
558
+ parentKeywords?: string[] | undefined;
559
+ };
560
+ changeType: "set" | "delete";
561
+ value?: number | undefined;
562
+ }[];
563
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
564
+ threshold?: number | undefined;
565
+ condition?: {
566
+ type: "nodeActive" | "control";
567
+ value?: number | boolean | undefined;
568
+ path?: string[] | undefined;
569
+ asset?: "self" | "base" | undefined;
570
+ node?: number | undefined;
571
+ nodeKeywords?: string[] | undefined;
572
+ control?: string | undefined;
573
+ inverse?: boolean | undefined;
574
+ } | undefined;
575
+ }>, z.ZodObject<{
576
+ type: z.ZodLiteral<"blendshapeSync">;
577
+ condition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
578
+ type: z.ZodEnum<["nodeActive", "control"]>;
579
+ asset: z.ZodOptional<z.ZodEnum<["self", "base"]>>;
580
+ node: z.ZodOptional<z.ZodNumber>;
581
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
582
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
583
+ control: z.ZodOptional<z.ZodString>;
584
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
585
+ inverse: z.ZodOptional<z.ZodBoolean>;
586
+ }, "strict", z.ZodTypeAny, {
587
+ type: "nodeActive" | "control";
588
+ value?: number | boolean | undefined;
589
+ path?: string[] | undefined;
590
+ asset?: "self" | "base" | undefined;
591
+ node?: number | undefined;
592
+ nodeKeywords?: string[] | undefined;
593
+ control?: string | undefined;
594
+ inverse?: boolean | undefined;
595
+ }, {
596
+ type: "nodeActive" | "control";
597
+ value?: number | boolean | undefined;
598
+ path?: string[] | undefined;
599
+ asset?: "self" | "base" | undefined;
600
+ node?: number | undefined;
601
+ nodeKeywords?: string[] | undefined;
602
+ control?: string | undefined;
603
+ inverse?: boolean | undefined;
604
+ }>, {
605
+ type: "nodeActive" | "control";
606
+ value?: number | boolean | undefined;
607
+ path?: string[] | undefined;
608
+ asset?: "self" | "base" | undefined;
609
+ node?: number | undefined;
610
+ nodeKeywords?: string[] | undefined;
611
+ control?: string | undefined;
612
+ inverse?: boolean | undefined;
613
+ }, {
614
+ type: "nodeActive" | "control";
615
+ value?: number | boolean | undefined;
616
+ path?: string[] | undefined;
617
+ asset?: "self" | "base" | undefined;
618
+ node?: number | undefined;
619
+ nodeKeywords?: string[] | undefined;
620
+ control?: string | undefined;
621
+ inverse?: boolean | undefined;
622
+ }>>;
623
+ bindings: z.ZodArray<z.ZodObject<{
624
+ driver: z.ZodEffects<z.ZodObject<{
625
+ asset: z.ZodEnum<["self", "base"]>;
626
+ node: z.ZodOptional<z.ZodNumber>;
627
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
628
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
629
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
630
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
631
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
632
+ morphIndex: z.ZodOptional<z.ZodNumber>;
633
+ humanBone: z.ZodOptional<z.ZodString>;
634
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
635
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
636
+ }, "strict", z.ZodTypeAny, {
637
+ asset: "self" | "base";
638
+ path?: string[] | undefined;
639
+ node?: number | undefined;
640
+ boneKeywords?: string[] | undefined;
641
+ meshKeywords?: string[] | undefined;
642
+ nodeKeywords?: string[] | undefined;
643
+ blendshapeKeywords?: string[] | undefined;
644
+ morphIndex?: number | undefined;
645
+ humanBone?: string | undefined;
646
+ humanBonePath?: string[] | undefined;
647
+ parentKeywords?: string[] | undefined;
648
+ }, {
649
+ asset: "self" | "base";
650
+ path?: string[] | undefined;
651
+ node?: number | undefined;
652
+ boneKeywords?: string[] | undefined;
653
+ meshKeywords?: string[] | undefined;
654
+ nodeKeywords?: string[] | undefined;
655
+ blendshapeKeywords?: string[] | undefined;
656
+ morphIndex?: number | undefined;
657
+ humanBone?: string | undefined;
658
+ humanBonePath?: string[] | undefined;
659
+ parentKeywords?: string[] | undefined;
660
+ }>, {
661
+ asset: "self" | "base";
662
+ path?: string[] | undefined;
663
+ node?: number | undefined;
664
+ boneKeywords?: string[] | undefined;
665
+ meshKeywords?: string[] | undefined;
666
+ nodeKeywords?: string[] | undefined;
667
+ blendshapeKeywords?: string[] | undefined;
668
+ morphIndex?: number | undefined;
669
+ humanBone?: string | undefined;
670
+ humanBonePath?: string[] | undefined;
671
+ parentKeywords?: string[] | undefined;
672
+ }, {
673
+ asset: "self" | "base";
674
+ path?: string[] | undefined;
675
+ node?: number | undefined;
676
+ boneKeywords?: string[] | undefined;
677
+ meshKeywords?: string[] | undefined;
678
+ nodeKeywords?: string[] | undefined;
679
+ blendshapeKeywords?: string[] | undefined;
680
+ morphIndex?: number | undefined;
681
+ humanBone?: string | undefined;
682
+ humanBonePath?: string[] | undefined;
683
+ parentKeywords?: string[] | undefined;
684
+ }>;
685
+ driven: z.ZodEffects<z.ZodObject<{
686
+ asset: z.ZodEnum<["self", "base"]>;
687
+ node: z.ZodOptional<z.ZodNumber>;
688
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
689
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
690
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
691
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
692
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
693
+ morphIndex: z.ZodOptional<z.ZodNumber>;
694
+ humanBone: z.ZodOptional<z.ZodString>;
695
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
696
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
697
+ }, "strict", z.ZodTypeAny, {
698
+ asset: "self" | "base";
699
+ path?: string[] | undefined;
700
+ node?: number | undefined;
701
+ boneKeywords?: string[] | undefined;
702
+ meshKeywords?: string[] | undefined;
703
+ nodeKeywords?: string[] | undefined;
704
+ blendshapeKeywords?: string[] | undefined;
705
+ morphIndex?: number | undefined;
706
+ humanBone?: string | undefined;
707
+ humanBonePath?: string[] | undefined;
708
+ parentKeywords?: string[] | undefined;
709
+ }, {
710
+ asset: "self" | "base";
711
+ path?: string[] | undefined;
712
+ node?: number | undefined;
713
+ boneKeywords?: string[] | undefined;
714
+ meshKeywords?: string[] | undefined;
715
+ nodeKeywords?: string[] | undefined;
716
+ blendshapeKeywords?: string[] | undefined;
717
+ morphIndex?: number | undefined;
718
+ humanBone?: string | undefined;
719
+ humanBonePath?: string[] | undefined;
720
+ parentKeywords?: string[] | undefined;
721
+ }>, {
722
+ asset: "self" | "base";
723
+ path?: string[] | undefined;
724
+ node?: number | undefined;
725
+ boneKeywords?: string[] | undefined;
726
+ meshKeywords?: string[] | undefined;
727
+ nodeKeywords?: string[] | undefined;
728
+ blendshapeKeywords?: string[] | undefined;
729
+ morphIndex?: number | undefined;
730
+ humanBone?: string | undefined;
731
+ humanBonePath?: string[] | undefined;
732
+ parentKeywords?: string[] | undefined;
733
+ }, {
734
+ asset: "self" | "base";
735
+ path?: string[] | undefined;
736
+ node?: number | undefined;
737
+ boneKeywords?: string[] | undefined;
738
+ meshKeywords?: string[] | undefined;
739
+ nodeKeywords?: string[] | undefined;
740
+ blendshapeKeywords?: string[] | undefined;
741
+ morphIndex?: number | undefined;
742
+ humanBone?: string | undefined;
743
+ humanBonePath?: string[] | undefined;
744
+ parentKeywords?: string[] | undefined;
745
+ }>;
746
+ curve: z.ZodOptional<z.ZodEffects<z.ZodObject<{
747
+ interpolation: z.ZodEnum<["linear", "step"]>;
748
+ points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
749
+ }, "strict", z.ZodTypeAny, {
750
+ interpolation: "linear" | "step";
751
+ points: [number, number][];
752
+ }, {
753
+ interpolation: "linear" | "step";
754
+ points: [number, number][];
755
+ }>, {
756
+ interpolation: "linear" | "step";
757
+ points: [number, number][];
758
+ }, {
759
+ interpolation: "linear" | "step";
760
+ points: [number, number][];
761
+ }>>;
762
+ }, "strict", z.ZodTypeAny, {
763
+ driver: {
764
+ asset: "self" | "base";
765
+ path?: string[] | undefined;
766
+ node?: number | undefined;
767
+ boneKeywords?: string[] | undefined;
768
+ meshKeywords?: string[] | undefined;
769
+ nodeKeywords?: string[] | undefined;
770
+ blendshapeKeywords?: string[] | undefined;
771
+ morphIndex?: number | undefined;
772
+ humanBone?: string | undefined;
773
+ humanBonePath?: string[] | undefined;
774
+ parentKeywords?: string[] | undefined;
775
+ };
776
+ driven: {
777
+ asset: "self" | "base";
778
+ path?: string[] | undefined;
779
+ node?: number | undefined;
780
+ boneKeywords?: string[] | undefined;
781
+ meshKeywords?: string[] | undefined;
782
+ nodeKeywords?: string[] | undefined;
783
+ blendshapeKeywords?: string[] | undefined;
784
+ morphIndex?: number | undefined;
785
+ humanBone?: string | undefined;
786
+ humanBonePath?: string[] | undefined;
787
+ parentKeywords?: string[] | undefined;
788
+ };
789
+ curve?: {
790
+ interpolation: "linear" | "step";
791
+ points: [number, number][];
792
+ } | undefined;
793
+ }, {
794
+ driver: {
795
+ asset: "self" | "base";
796
+ path?: string[] | undefined;
797
+ node?: number | undefined;
798
+ boneKeywords?: string[] | undefined;
799
+ meshKeywords?: string[] | undefined;
800
+ nodeKeywords?: string[] | undefined;
801
+ blendshapeKeywords?: string[] | undefined;
802
+ morphIndex?: number | undefined;
803
+ humanBone?: string | undefined;
804
+ humanBonePath?: string[] | undefined;
805
+ parentKeywords?: string[] | undefined;
806
+ };
807
+ driven: {
808
+ asset: "self" | "base";
809
+ path?: string[] | undefined;
810
+ node?: number | undefined;
811
+ boneKeywords?: string[] | undefined;
812
+ meshKeywords?: string[] | undefined;
813
+ nodeKeywords?: string[] | undefined;
814
+ blendshapeKeywords?: string[] | undefined;
815
+ morphIndex?: number | undefined;
816
+ humanBone?: string | undefined;
817
+ humanBonePath?: string[] | undefined;
818
+ parentKeywords?: string[] | undefined;
819
+ };
820
+ curve?: {
821
+ interpolation: "linear" | "step";
822
+ points: [number, number][];
823
+ } | undefined;
824
+ }>, "many">;
825
+ id: z.ZodString;
826
+ sourceNode: z.ZodNumber;
827
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
828
+ }, "strict", z.ZodTypeAny, {
829
+ type: "blendshapeSync";
830
+ id: string;
831
+ sourceNode: number;
832
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
833
+ bindings: {
834
+ driver: {
835
+ asset: "self" | "base";
836
+ path?: string[] | undefined;
837
+ node?: number | undefined;
838
+ boneKeywords?: string[] | undefined;
839
+ meshKeywords?: string[] | undefined;
840
+ nodeKeywords?: string[] | undefined;
841
+ blendshapeKeywords?: string[] | undefined;
842
+ morphIndex?: number | undefined;
843
+ humanBone?: string | undefined;
844
+ humanBonePath?: string[] | undefined;
845
+ parentKeywords?: string[] | undefined;
846
+ };
847
+ driven: {
848
+ asset: "self" | "base";
849
+ path?: string[] | undefined;
850
+ node?: number | undefined;
851
+ boneKeywords?: string[] | undefined;
852
+ meshKeywords?: string[] | undefined;
853
+ nodeKeywords?: string[] | undefined;
854
+ blendshapeKeywords?: string[] | undefined;
855
+ morphIndex?: number | undefined;
856
+ humanBone?: string | undefined;
857
+ humanBonePath?: string[] | undefined;
858
+ parentKeywords?: string[] | undefined;
859
+ };
860
+ curve?: {
861
+ interpolation: "linear" | "step";
862
+ points: [number, number][];
863
+ } | undefined;
864
+ }[];
865
+ condition?: {
866
+ type: "nodeActive" | "control";
867
+ value?: number | boolean | undefined;
868
+ path?: string[] | undefined;
869
+ asset?: "self" | "base" | undefined;
870
+ node?: number | undefined;
871
+ nodeKeywords?: string[] | undefined;
872
+ control?: string | undefined;
873
+ inverse?: boolean | undefined;
874
+ } | undefined;
875
+ }, {
876
+ type: "blendshapeSync";
877
+ id: string;
878
+ sourceNode: number;
879
+ bindings: {
880
+ driver: {
881
+ asset: "self" | "base";
882
+ path?: string[] | undefined;
883
+ node?: number | undefined;
884
+ boneKeywords?: string[] | undefined;
885
+ meshKeywords?: string[] | undefined;
886
+ nodeKeywords?: string[] | undefined;
887
+ blendshapeKeywords?: string[] | undefined;
888
+ morphIndex?: number | undefined;
889
+ humanBone?: string | undefined;
890
+ humanBonePath?: string[] | undefined;
891
+ parentKeywords?: string[] | undefined;
892
+ };
893
+ driven: {
894
+ asset: "self" | "base";
895
+ path?: string[] | undefined;
896
+ node?: number | undefined;
897
+ boneKeywords?: string[] | undefined;
898
+ meshKeywords?: string[] | undefined;
899
+ nodeKeywords?: string[] | undefined;
900
+ blendshapeKeywords?: string[] | undefined;
901
+ morphIndex?: number | undefined;
902
+ humanBone?: string | undefined;
903
+ humanBonePath?: string[] | undefined;
904
+ parentKeywords?: string[] | undefined;
905
+ };
906
+ curve?: {
907
+ interpolation: "linear" | "step";
908
+ points: [number, number][];
909
+ } | undefined;
910
+ }[];
911
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
912
+ condition?: {
913
+ type: "nodeActive" | "control";
914
+ value?: number | boolean | undefined;
915
+ path?: string[] | undefined;
916
+ asset?: "self" | "base" | undefined;
917
+ node?: number | undefined;
918
+ nodeKeywords?: string[] | undefined;
919
+ control?: string | undefined;
920
+ inverse?: boolean | undefined;
921
+ } | undefined;
922
+ }>, z.ZodObject<{
923
+ type: z.ZodLiteral<"objectToggle">;
924
+ condition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
925
+ type: z.ZodEnum<["nodeActive", "control"]>;
926
+ asset: z.ZodOptional<z.ZodEnum<["self", "base"]>>;
927
+ node: z.ZodOptional<z.ZodNumber>;
928
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
929
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
930
+ control: z.ZodOptional<z.ZodString>;
931
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
932
+ inverse: z.ZodOptional<z.ZodBoolean>;
933
+ }, "strict", z.ZodTypeAny, {
934
+ type: "nodeActive" | "control";
935
+ value?: number | boolean | undefined;
936
+ path?: string[] | undefined;
937
+ asset?: "self" | "base" | undefined;
938
+ node?: number | undefined;
939
+ nodeKeywords?: string[] | undefined;
940
+ control?: string | undefined;
941
+ inverse?: boolean | undefined;
942
+ }, {
943
+ type: "nodeActive" | "control";
944
+ value?: number | boolean | undefined;
945
+ path?: string[] | undefined;
946
+ asset?: "self" | "base" | undefined;
947
+ node?: number | undefined;
948
+ nodeKeywords?: string[] | undefined;
949
+ control?: string | undefined;
950
+ inverse?: boolean | undefined;
951
+ }>, {
952
+ type: "nodeActive" | "control";
953
+ value?: number | boolean | undefined;
954
+ path?: string[] | undefined;
955
+ asset?: "self" | "base" | undefined;
956
+ node?: number | undefined;
957
+ nodeKeywords?: string[] | undefined;
958
+ control?: string | undefined;
959
+ inverse?: boolean | undefined;
960
+ }, {
961
+ type: "nodeActive" | "control";
962
+ value?: number | boolean | undefined;
963
+ path?: string[] | undefined;
964
+ asset?: "self" | "base" | undefined;
965
+ node?: number | undefined;
966
+ nodeKeywords?: string[] | undefined;
967
+ control?: string | undefined;
968
+ inverse?: boolean | undefined;
969
+ }>>;
970
+ objects: z.ZodArray<z.ZodObject<{
971
+ target: z.ZodEffects<z.ZodObject<{
972
+ asset: z.ZodEnum<["self", "base"]>;
973
+ node: z.ZodOptional<z.ZodNumber>;
974
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
975
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
976
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
977
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
978
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
979
+ morphIndex: z.ZodOptional<z.ZodNumber>;
980
+ humanBone: z.ZodOptional<z.ZodString>;
981
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
982
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
983
+ }, "strict", z.ZodTypeAny, {
984
+ asset: "self" | "base";
985
+ path?: string[] | undefined;
986
+ node?: number | undefined;
987
+ boneKeywords?: string[] | undefined;
988
+ meshKeywords?: string[] | undefined;
989
+ nodeKeywords?: string[] | undefined;
990
+ blendshapeKeywords?: string[] | undefined;
991
+ morphIndex?: number | undefined;
992
+ humanBone?: string | undefined;
993
+ humanBonePath?: string[] | undefined;
994
+ parentKeywords?: string[] | undefined;
995
+ }, {
996
+ asset: "self" | "base";
997
+ path?: string[] | undefined;
998
+ node?: number | undefined;
999
+ boneKeywords?: string[] | undefined;
1000
+ meshKeywords?: string[] | undefined;
1001
+ nodeKeywords?: string[] | undefined;
1002
+ blendshapeKeywords?: string[] | undefined;
1003
+ morphIndex?: number | undefined;
1004
+ humanBone?: string | undefined;
1005
+ humanBonePath?: string[] | undefined;
1006
+ parentKeywords?: string[] | undefined;
1007
+ }>, {
1008
+ asset: "self" | "base";
1009
+ path?: string[] | undefined;
1010
+ node?: number | undefined;
1011
+ boneKeywords?: string[] | undefined;
1012
+ meshKeywords?: string[] | undefined;
1013
+ nodeKeywords?: string[] | undefined;
1014
+ blendshapeKeywords?: string[] | undefined;
1015
+ morphIndex?: number | undefined;
1016
+ humanBone?: string | undefined;
1017
+ humanBonePath?: string[] | undefined;
1018
+ parentKeywords?: string[] | undefined;
1019
+ }, {
1020
+ asset: "self" | "base";
1021
+ path?: string[] | undefined;
1022
+ node?: number | undefined;
1023
+ boneKeywords?: string[] | undefined;
1024
+ meshKeywords?: string[] | undefined;
1025
+ nodeKeywords?: string[] | undefined;
1026
+ blendshapeKeywords?: string[] | undefined;
1027
+ morphIndex?: number | undefined;
1028
+ humanBone?: string | undefined;
1029
+ humanBonePath?: string[] | undefined;
1030
+ parentKeywords?: string[] | undefined;
1031
+ }>;
1032
+ value: z.ZodBoolean;
1033
+ }, "strict", z.ZodTypeAny, {
1034
+ value: boolean;
1035
+ target: {
1036
+ asset: "self" | "base";
1037
+ path?: string[] | undefined;
1038
+ node?: number | undefined;
1039
+ boneKeywords?: string[] | undefined;
1040
+ meshKeywords?: string[] | undefined;
1041
+ nodeKeywords?: string[] | undefined;
1042
+ blendshapeKeywords?: string[] | undefined;
1043
+ morphIndex?: number | undefined;
1044
+ humanBone?: string | undefined;
1045
+ humanBonePath?: string[] | undefined;
1046
+ parentKeywords?: string[] | undefined;
1047
+ };
1048
+ }, {
1049
+ value: boolean;
1050
+ target: {
1051
+ asset: "self" | "base";
1052
+ path?: string[] | undefined;
1053
+ node?: number | undefined;
1054
+ boneKeywords?: string[] | undefined;
1055
+ meshKeywords?: string[] | undefined;
1056
+ nodeKeywords?: string[] | undefined;
1057
+ blendshapeKeywords?: string[] | undefined;
1058
+ morphIndex?: number | undefined;
1059
+ humanBone?: string | undefined;
1060
+ humanBonePath?: string[] | undefined;
1061
+ parentKeywords?: string[] | undefined;
1062
+ };
1063
+ }>, "many">;
1064
+ id: z.ZodString;
1065
+ sourceNode: z.ZodNumber;
1066
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
1067
+ }, "strict", z.ZodTypeAny, {
1068
+ type: "objectToggle";
1069
+ id: string;
1070
+ sourceNode: number;
1071
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
1072
+ objects: {
1073
+ value: boolean;
1074
+ target: {
1075
+ asset: "self" | "base";
1076
+ path?: string[] | undefined;
1077
+ node?: number | undefined;
1078
+ boneKeywords?: string[] | undefined;
1079
+ meshKeywords?: string[] | undefined;
1080
+ nodeKeywords?: string[] | undefined;
1081
+ blendshapeKeywords?: string[] | undefined;
1082
+ morphIndex?: number | undefined;
1083
+ humanBone?: string | undefined;
1084
+ humanBonePath?: string[] | undefined;
1085
+ parentKeywords?: string[] | undefined;
1086
+ };
1087
+ }[];
1088
+ condition?: {
1089
+ type: "nodeActive" | "control";
1090
+ value?: number | boolean | undefined;
1091
+ path?: string[] | undefined;
1092
+ asset?: "self" | "base" | undefined;
1093
+ node?: number | undefined;
1094
+ nodeKeywords?: string[] | undefined;
1095
+ control?: string | undefined;
1096
+ inverse?: boolean | undefined;
1097
+ } | undefined;
1098
+ }, {
1099
+ type: "objectToggle";
1100
+ id: string;
1101
+ sourceNode: number;
1102
+ objects: {
1103
+ value: boolean;
1104
+ target: {
1105
+ asset: "self" | "base";
1106
+ path?: string[] | undefined;
1107
+ node?: number | undefined;
1108
+ boneKeywords?: string[] | undefined;
1109
+ meshKeywords?: string[] | undefined;
1110
+ nodeKeywords?: string[] | undefined;
1111
+ blendshapeKeywords?: string[] | undefined;
1112
+ morphIndex?: number | undefined;
1113
+ humanBone?: string | undefined;
1114
+ humanBonePath?: string[] | undefined;
1115
+ parentKeywords?: string[] | undefined;
1116
+ };
1117
+ }[];
1118
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
1119
+ condition?: {
1120
+ type: "nodeActive" | "control";
1121
+ value?: number | boolean | undefined;
1122
+ path?: string[] | undefined;
1123
+ asset?: "self" | "base" | undefined;
1124
+ node?: number | undefined;
1125
+ nodeKeywords?: string[] | undefined;
1126
+ control?: string | undefined;
1127
+ inverse?: boolean | undefined;
1128
+ } | undefined;
1129
+ }>, z.ZodObject<{
1130
+ type: z.ZodLiteral<"materialSetter">;
1131
+ condition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1132
+ type: z.ZodEnum<["nodeActive", "control"]>;
1133
+ asset: z.ZodOptional<z.ZodEnum<["self", "base"]>>;
1134
+ node: z.ZodOptional<z.ZodNumber>;
1135
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1136
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1137
+ control: z.ZodOptional<z.ZodString>;
1138
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
1139
+ inverse: z.ZodOptional<z.ZodBoolean>;
1140
+ }, "strict", z.ZodTypeAny, {
1141
+ type: "nodeActive" | "control";
1142
+ value?: number | boolean | undefined;
1143
+ path?: string[] | undefined;
1144
+ asset?: "self" | "base" | undefined;
1145
+ node?: number | undefined;
1146
+ nodeKeywords?: string[] | undefined;
1147
+ control?: string | undefined;
1148
+ inverse?: boolean | undefined;
1149
+ }, {
1150
+ type: "nodeActive" | "control";
1151
+ value?: number | boolean | undefined;
1152
+ path?: string[] | undefined;
1153
+ asset?: "self" | "base" | undefined;
1154
+ node?: number | undefined;
1155
+ nodeKeywords?: string[] | undefined;
1156
+ control?: string | undefined;
1157
+ inverse?: boolean | undefined;
1158
+ }>, {
1159
+ type: "nodeActive" | "control";
1160
+ value?: number | boolean | undefined;
1161
+ path?: string[] | undefined;
1162
+ asset?: "self" | "base" | undefined;
1163
+ node?: number | undefined;
1164
+ nodeKeywords?: string[] | undefined;
1165
+ control?: string | undefined;
1166
+ inverse?: boolean | undefined;
1167
+ }, {
1168
+ type: "nodeActive" | "control";
1169
+ value?: number | boolean | undefined;
1170
+ path?: string[] | undefined;
1171
+ asset?: "self" | "base" | undefined;
1172
+ node?: number | undefined;
1173
+ nodeKeywords?: string[] | undefined;
1174
+ control?: string | undefined;
1175
+ inverse?: boolean | undefined;
1176
+ }>>;
1177
+ objects: z.ZodArray<z.ZodObject<{
1178
+ target: z.ZodEffects<z.ZodObject<{
1179
+ asset: z.ZodEnum<["self", "base"]>;
1180
+ node: z.ZodOptional<z.ZodNumber>;
1181
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1182
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1183
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1184
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1185
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1186
+ morphIndex: z.ZodOptional<z.ZodNumber>;
1187
+ humanBone: z.ZodOptional<z.ZodString>;
1188
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1189
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1190
+ }, "strict", z.ZodTypeAny, {
1191
+ asset: "self" | "base";
1192
+ path?: string[] | undefined;
1193
+ node?: number | undefined;
1194
+ boneKeywords?: string[] | undefined;
1195
+ meshKeywords?: string[] | undefined;
1196
+ nodeKeywords?: string[] | undefined;
1197
+ blendshapeKeywords?: string[] | undefined;
1198
+ morphIndex?: number | undefined;
1199
+ humanBone?: string | undefined;
1200
+ humanBonePath?: string[] | undefined;
1201
+ parentKeywords?: string[] | undefined;
1202
+ }, {
1203
+ asset: "self" | "base";
1204
+ path?: string[] | undefined;
1205
+ node?: number | undefined;
1206
+ boneKeywords?: string[] | undefined;
1207
+ meshKeywords?: string[] | undefined;
1208
+ nodeKeywords?: string[] | undefined;
1209
+ blendshapeKeywords?: string[] | undefined;
1210
+ morphIndex?: number | undefined;
1211
+ humanBone?: string | undefined;
1212
+ humanBonePath?: string[] | undefined;
1213
+ parentKeywords?: string[] | undefined;
1214
+ }>, {
1215
+ asset: "self" | "base";
1216
+ path?: string[] | undefined;
1217
+ node?: number | undefined;
1218
+ boneKeywords?: string[] | undefined;
1219
+ meshKeywords?: string[] | undefined;
1220
+ nodeKeywords?: string[] | undefined;
1221
+ blendshapeKeywords?: string[] | undefined;
1222
+ morphIndex?: number | undefined;
1223
+ humanBone?: string | undefined;
1224
+ humanBonePath?: string[] | undefined;
1225
+ parentKeywords?: string[] | undefined;
1226
+ }, {
1227
+ asset: "self" | "base";
1228
+ path?: string[] | undefined;
1229
+ node?: number | undefined;
1230
+ boneKeywords?: string[] | undefined;
1231
+ meshKeywords?: string[] | undefined;
1232
+ nodeKeywords?: string[] | undefined;
1233
+ blendshapeKeywords?: string[] | undefined;
1234
+ morphIndex?: number | undefined;
1235
+ humanBone?: string | undefined;
1236
+ humanBonePath?: string[] | undefined;
1237
+ parentKeywords?: string[] | undefined;
1238
+ }>;
1239
+ slot: z.ZodNumber;
1240
+ material: z.ZodNumber;
1241
+ }, "strict", z.ZodTypeAny, {
1242
+ target: {
1243
+ asset: "self" | "base";
1244
+ path?: string[] | undefined;
1245
+ node?: number | undefined;
1246
+ boneKeywords?: string[] | undefined;
1247
+ meshKeywords?: string[] | undefined;
1248
+ nodeKeywords?: string[] | undefined;
1249
+ blendshapeKeywords?: string[] | undefined;
1250
+ morphIndex?: number | undefined;
1251
+ humanBone?: string | undefined;
1252
+ humanBonePath?: string[] | undefined;
1253
+ parentKeywords?: string[] | undefined;
1254
+ };
1255
+ slot: number;
1256
+ material: number;
1257
+ }, {
1258
+ target: {
1259
+ asset: "self" | "base";
1260
+ path?: string[] | undefined;
1261
+ node?: number | undefined;
1262
+ boneKeywords?: string[] | undefined;
1263
+ meshKeywords?: string[] | undefined;
1264
+ nodeKeywords?: string[] | undefined;
1265
+ blendshapeKeywords?: string[] | undefined;
1266
+ morphIndex?: number | undefined;
1267
+ humanBone?: string | undefined;
1268
+ humanBonePath?: string[] | undefined;
1269
+ parentKeywords?: string[] | undefined;
1270
+ };
1271
+ slot: number;
1272
+ material: number;
1273
+ }>, "many">;
1274
+ id: z.ZodString;
1275
+ sourceNode: z.ZodNumber;
1276
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
1277
+ }, "strict", z.ZodTypeAny, {
1278
+ type: "materialSetter";
1279
+ id: string;
1280
+ sourceNode: number;
1281
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
1282
+ objects: {
1283
+ target: {
1284
+ asset: "self" | "base";
1285
+ path?: string[] | undefined;
1286
+ node?: number | undefined;
1287
+ boneKeywords?: string[] | undefined;
1288
+ meshKeywords?: string[] | undefined;
1289
+ nodeKeywords?: string[] | undefined;
1290
+ blendshapeKeywords?: string[] | undefined;
1291
+ morphIndex?: number | undefined;
1292
+ humanBone?: string | undefined;
1293
+ humanBonePath?: string[] | undefined;
1294
+ parentKeywords?: string[] | undefined;
1295
+ };
1296
+ slot: number;
1297
+ material: number;
1298
+ }[];
1299
+ condition?: {
1300
+ type: "nodeActive" | "control";
1301
+ value?: number | boolean | undefined;
1302
+ path?: string[] | undefined;
1303
+ asset?: "self" | "base" | undefined;
1304
+ node?: number | undefined;
1305
+ nodeKeywords?: string[] | undefined;
1306
+ control?: string | undefined;
1307
+ inverse?: boolean | undefined;
1308
+ } | undefined;
1309
+ }, {
1310
+ type: "materialSetter";
1311
+ id: string;
1312
+ sourceNode: number;
1313
+ objects: {
1314
+ target: {
1315
+ asset: "self" | "base";
1316
+ path?: string[] | undefined;
1317
+ node?: number | undefined;
1318
+ boneKeywords?: string[] | undefined;
1319
+ meshKeywords?: string[] | undefined;
1320
+ nodeKeywords?: string[] | undefined;
1321
+ blendshapeKeywords?: string[] | undefined;
1322
+ morphIndex?: number | undefined;
1323
+ humanBone?: string | undefined;
1324
+ humanBonePath?: string[] | undefined;
1325
+ parentKeywords?: string[] | undefined;
1326
+ };
1327
+ slot: number;
1328
+ material: number;
1329
+ }[];
1330
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
1331
+ condition?: {
1332
+ type: "nodeActive" | "control";
1333
+ value?: number | boolean | undefined;
1334
+ path?: string[] | undefined;
1335
+ asset?: "self" | "base" | undefined;
1336
+ node?: number | undefined;
1337
+ nodeKeywords?: string[] | undefined;
1338
+ control?: string | undefined;
1339
+ inverse?: boolean | undefined;
1340
+ } | undefined;
1341
+ }>, z.ZodObject<{
1342
+ type: z.ZodLiteral<"menuItem">;
1343
+ label: z.ZodString;
1344
+ controlType: z.ZodEnum<["toggle", "button"]>;
1345
+ parameter: z.ZodOptional<z.ZodString>;
1346
+ value: z.ZodDefault<z.ZodNumber>;
1347
+ defaultValue: z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
1348
+ automatic: z.ZodDefault<z.ZodBoolean>;
1349
+ id: z.ZodString;
1350
+ sourceNode: z.ZodNumber;
1351
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
1352
+ }, "strict", z.ZodTypeAny, {
1353
+ value: number;
1354
+ type: "menuItem";
1355
+ id: string;
1356
+ sourceNode: number;
1357
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
1358
+ label: string;
1359
+ controlType: "toggle" | "button";
1360
+ defaultValue: number | boolean;
1361
+ automatic: boolean;
1362
+ parameter?: string | undefined;
1363
+ }, {
1364
+ type: "menuItem";
1365
+ id: string;
1366
+ sourceNode: number;
1367
+ label: string;
1368
+ controlType: "toggle" | "button";
1369
+ value?: number | undefined;
1370
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
1371
+ parameter?: string | undefined;
1372
+ defaultValue?: number | boolean | undefined;
1373
+ automatic?: boolean | undefined;
1374
+ }>]>;
1375
+ type CompositionComponent = z.infer<typeof componentSchema>;
1376
+ type MergeArmature = Extract<CompositionComponent, {
1377
+ type: "mergeArmature";
1378
+ }>;
1379
+ type MenuItem = Extract<CompositionComponent, {
1380
+ type: "menuItem";
1381
+ }>;
1382
+ declare const manifestSchema: z.ZodObject<{
1383
+ specVersion: z.ZodLiteral<"0.1">;
1384
+ assetKind: z.ZodEnum<["avatar", "attachment"]>;
1385
+ requiredCapabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1386
+ matching: z.ZodOptional<z.ZodObject<{
1387
+ mode: z.ZodLiteral<"keywordBestEffort">;
1388
+ armatureKeywords: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1389
+ onUnresolved: z.ZodLiteral<"warnAndContinue">;
1390
+ }, "strict", z.ZodTypeAny, {
1391
+ mode: "keywordBestEffort";
1392
+ armatureKeywords: string[];
1393
+ onUnresolved: "warnAndContinue";
1394
+ }, {
1395
+ mode: "keywordBestEffort";
1396
+ onUnresolved: "warnAndContinue";
1397
+ armatureKeywords?: string[] | undefined;
1398
+ }>>;
1399
+ rig: z.ZodOptional<z.ZodObject<{
1400
+ role: z.ZodEnum<["avatar", "attachmentReference"]>;
1401
+ }, "strict", z.ZodTypeAny, {
1402
+ role: "avatar" | "attachmentReference";
1403
+ }, {
1404
+ role: "avatar" | "attachmentReference";
1405
+ }>>;
1406
+ nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1407
+ node: z.ZodNumber;
1408
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1409
+ active: z.ZodDefault<z.ZodBoolean>;
1410
+ }, "strict", z.ZodTypeAny, {
1411
+ node: number;
1412
+ aliases: string[];
1413
+ active: boolean;
1414
+ }, {
1415
+ node: number;
1416
+ aliases?: string[] | undefined;
1417
+ active?: boolean | undefined;
1418
+ }>, "many">>;
1419
+ components: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1420
+ type: z.ZodLiteral<"mergeArmature">;
1421
+ target: z.ZodEffects<z.ZodObject<{
1422
+ asset: z.ZodEnum<["self", "base"]>;
1423
+ node: z.ZodOptional<z.ZodNumber>;
1424
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1425
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1426
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1427
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1428
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1429
+ morphIndex: z.ZodOptional<z.ZodNumber>;
1430
+ humanBone: z.ZodOptional<z.ZodString>;
1431
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1432
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1433
+ }, "strict", z.ZodTypeAny, {
1434
+ asset: "self" | "base";
1435
+ path?: string[] | undefined;
1436
+ node?: number | undefined;
1437
+ boneKeywords?: string[] | undefined;
1438
+ meshKeywords?: string[] | undefined;
1439
+ nodeKeywords?: string[] | undefined;
1440
+ blendshapeKeywords?: string[] | undefined;
1441
+ morphIndex?: number | undefined;
1442
+ humanBone?: string | undefined;
1443
+ humanBonePath?: string[] | undefined;
1444
+ parentKeywords?: string[] | undefined;
1445
+ }, {
1446
+ asset: "self" | "base";
1447
+ path?: string[] | undefined;
1448
+ node?: number | undefined;
1449
+ boneKeywords?: string[] | undefined;
1450
+ meshKeywords?: string[] | undefined;
1451
+ nodeKeywords?: string[] | undefined;
1452
+ blendshapeKeywords?: string[] | undefined;
1453
+ morphIndex?: number | undefined;
1454
+ humanBone?: string | undefined;
1455
+ humanBonePath?: string[] | undefined;
1456
+ parentKeywords?: string[] | undefined;
1457
+ }>, {
1458
+ asset: "self" | "base";
1459
+ path?: string[] | undefined;
1460
+ node?: number | undefined;
1461
+ boneKeywords?: string[] | undefined;
1462
+ meshKeywords?: string[] | undefined;
1463
+ nodeKeywords?: string[] | undefined;
1464
+ blendshapeKeywords?: string[] | undefined;
1465
+ morphIndex?: number | undefined;
1466
+ humanBone?: string | undefined;
1467
+ humanBonePath?: string[] | undefined;
1468
+ parentKeywords?: string[] | undefined;
1469
+ }, {
1470
+ asset: "self" | "base";
1471
+ path?: string[] | undefined;
1472
+ node?: number | undefined;
1473
+ boneKeywords?: string[] | undefined;
1474
+ meshKeywords?: string[] | undefined;
1475
+ nodeKeywords?: string[] | undefined;
1476
+ blendshapeKeywords?: string[] | undefined;
1477
+ morphIndex?: number | undefined;
1478
+ humanBone?: string | undefined;
1479
+ humanBonePath?: string[] | undefined;
1480
+ parentKeywords?: string[] | undefined;
1481
+ }>;
1482
+ prefix: z.ZodDefault<z.ZodString>;
1483
+ suffix: z.ZodDefault<z.ZodString>;
1484
+ lockMode: z.ZodDefault<z.ZodEnum<["unidirectional", "bidirectional", "notLocked"]>>;
1485
+ mangleNames: z.ZodDefault<z.ZodBoolean>;
1486
+ id: z.ZodString;
1487
+ sourceNode: z.ZodNumber;
1488
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
1489
+ }, "strict", z.ZodTypeAny, {
1490
+ type: "mergeArmature";
1491
+ target: {
1492
+ asset: "self" | "base";
1493
+ path?: string[] | undefined;
1494
+ node?: number | undefined;
1495
+ boneKeywords?: string[] | undefined;
1496
+ meshKeywords?: string[] | undefined;
1497
+ nodeKeywords?: string[] | undefined;
1498
+ blendshapeKeywords?: string[] | undefined;
1499
+ morphIndex?: number | undefined;
1500
+ humanBone?: string | undefined;
1501
+ humanBonePath?: string[] | undefined;
1502
+ parentKeywords?: string[] | undefined;
1503
+ };
1504
+ prefix: string;
1505
+ suffix: string;
1506
+ lockMode: "unidirectional" | "bidirectional" | "notLocked";
1507
+ mangleNames: boolean;
1508
+ id: string;
1509
+ sourceNode: number;
1510
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
1511
+ }, {
1512
+ type: "mergeArmature";
1513
+ target: {
1514
+ asset: "self" | "base";
1515
+ path?: string[] | undefined;
1516
+ node?: number | undefined;
1517
+ boneKeywords?: string[] | undefined;
1518
+ meshKeywords?: string[] | undefined;
1519
+ nodeKeywords?: string[] | undefined;
1520
+ blendshapeKeywords?: string[] | undefined;
1521
+ morphIndex?: number | undefined;
1522
+ humanBone?: string | undefined;
1523
+ humanBonePath?: string[] | undefined;
1524
+ parentKeywords?: string[] | undefined;
1525
+ };
1526
+ id: string;
1527
+ sourceNode: number;
1528
+ prefix?: string | undefined;
1529
+ suffix?: string | undefined;
1530
+ lockMode?: "unidirectional" | "bidirectional" | "notLocked" | undefined;
1531
+ mangleNames?: boolean | undefined;
1532
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
1533
+ }>, z.ZodObject<{
1534
+ type: z.ZodLiteral<"boneProxy">;
1535
+ target: z.ZodEffects<z.ZodObject<{
1536
+ asset: z.ZodEnum<["self", "base"]>;
1537
+ node: z.ZodOptional<z.ZodNumber>;
1538
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1539
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1540
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1541
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1542
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1543
+ morphIndex: z.ZodOptional<z.ZodNumber>;
1544
+ humanBone: z.ZodOptional<z.ZodString>;
1545
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1546
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1547
+ }, "strict", z.ZodTypeAny, {
1548
+ asset: "self" | "base";
1549
+ path?: string[] | undefined;
1550
+ node?: number | undefined;
1551
+ boneKeywords?: string[] | undefined;
1552
+ meshKeywords?: string[] | undefined;
1553
+ nodeKeywords?: string[] | undefined;
1554
+ blendshapeKeywords?: string[] | undefined;
1555
+ morphIndex?: number | undefined;
1556
+ humanBone?: string | undefined;
1557
+ humanBonePath?: string[] | undefined;
1558
+ parentKeywords?: string[] | undefined;
1559
+ }, {
1560
+ asset: "self" | "base";
1561
+ path?: string[] | undefined;
1562
+ node?: number | undefined;
1563
+ boneKeywords?: string[] | undefined;
1564
+ meshKeywords?: string[] | undefined;
1565
+ nodeKeywords?: string[] | undefined;
1566
+ blendshapeKeywords?: string[] | undefined;
1567
+ morphIndex?: number | undefined;
1568
+ humanBone?: string | undefined;
1569
+ humanBonePath?: string[] | undefined;
1570
+ parentKeywords?: string[] | undefined;
1571
+ }>, {
1572
+ asset: "self" | "base";
1573
+ path?: string[] | undefined;
1574
+ node?: number | undefined;
1575
+ boneKeywords?: string[] | undefined;
1576
+ meshKeywords?: string[] | undefined;
1577
+ nodeKeywords?: string[] | undefined;
1578
+ blendshapeKeywords?: string[] | undefined;
1579
+ morphIndex?: number | undefined;
1580
+ humanBone?: string | undefined;
1581
+ humanBonePath?: string[] | undefined;
1582
+ parentKeywords?: string[] | undefined;
1583
+ }, {
1584
+ asset: "self" | "base";
1585
+ path?: string[] | undefined;
1586
+ node?: number | undefined;
1587
+ boneKeywords?: string[] | undefined;
1588
+ meshKeywords?: string[] | undefined;
1589
+ nodeKeywords?: string[] | undefined;
1590
+ blendshapeKeywords?: string[] | undefined;
1591
+ morphIndex?: number | undefined;
1592
+ humanBone?: string | undefined;
1593
+ humanBonePath?: string[] | undefined;
1594
+ parentKeywords?: string[] | undefined;
1595
+ }>;
1596
+ attachmentMode: z.ZodDefault<z.ZodEnum<["keepWorldPose", "atRoot", "keepPosition", "keepRotation"]>>;
1597
+ matchScale: z.ZodDefault<z.ZodBoolean>;
1598
+ id: z.ZodString;
1599
+ sourceNode: z.ZodNumber;
1600
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
1601
+ }, "strict", z.ZodTypeAny, {
1602
+ type: "boneProxy";
1603
+ target: {
1604
+ asset: "self" | "base";
1605
+ path?: string[] | undefined;
1606
+ node?: number | undefined;
1607
+ boneKeywords?: string[] | undefined;
1608
+ meshKeywords?: string[] | undefined;
1609
+ nodeKeywords?: string[] | undefined;
1610
+ blendshapeKeywords?: string[] | undefined;
1611
+ morphIndex?: number | undefined;
1612
+ humanBone?: string | undefined;
1613
+ humanBonePath?: string[] | undefined;
1614
+ parentKeywords?: string[] | undefined;
1615
+ };
1616
+ id: string;
1617
+ sourceNode: number;
1618
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
1619
+ attachmentMode: "keepWorldPose" | "atRoot" | "keepPosition" | "keepRotation";
1620
+ matchScale: boolean;
1621
+ }, {
1622
+ type: "boneProxy";
1623
+ target: {
1624
+ asset: "self" | "base";
1625
+ path?: string[] | undefined;
1626
+ node?: number | undefined;
1627
+ boneKeywords?: string[] | undefined;
1628
+ meshKeywords?: string[] | undefined;
1629
+ nodeKeywords?: string[] | undefined;
1630
+ blendshapeKeywords?: string[] | undefined;
1631
+ morphIndex?: number | undefined;
1632
+ humanBone?: string | undefined;
1633
+ humanBonePath?: string[] | undefined;
1634
+ parentKeywords?: string[] | undefined;
1635
+ };
1636
+ id: string;
1637
+ sourceNode: number;
1638
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
1639
+ attachmentMode?: "keepWorldPose" | "atRoot" | "keepPosition" | "keepRotation" | undefined;
1640
+ matchScale?: boolean | undefined;
1641
+ }>, z.ZodObject<{
1642
+ type: z.ZodLiteral<"shapeChanger">;
1643
+ threshold: z.ZodDefault<z.ZodNumber>;
1644
+ condition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1645
+ type: z.ZodEnum<["nodeActive", "control"]>;
1646
+ asset: z.ZodOptional<z.ZodEnum<["self", "base"]>>;
1647
+ node: z.ZodOptional<z.ZodNumber>;
1648
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1649
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1650
+ control: z.ZodOptional<z.ZodString>;
1651
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
1652
+ inverse: z.ZodOptional<z.ZodBoolean>;
1653
+ }, "strict", z.ZodTypeAny, {
1654
+ type: "nodeActive" | "control";
1655
+ value?: number | boolean | undefined;
1656
+ path?: string[] | undefined;
1657
+ asset?: "self" | "base" | undefined;
1658
+ node?: number | undefined;
1659
+ nodeKeywords?: string[] | undefined;
1660
+ control?: string | undefined;
1661
+ inverse?: boolean | undefined;
1662
+ }, {
1663
+ type: "nodeActive" | "control";
1664
+ value?: number | boolean | undefined;
1665
+ path?: string[] | undefined;
1666
+ asset?: "self" | "base" | undefined;
1667
+ node?: number | undefined;
1668
+ nodeKeywords?: string[] | undefined;
1669
+ control?: string | undefined;
1670
+ inverse?: boolean | undefined;
1671
+ }>, {
1672
+ type: "nodeActive" | "control";
1673
+ value?: number | boolean | undefined;
1674
+ path?: string[] | undefined;
1675
+ asset?: "self" | "base" | undefined;
1676
+ node?: number | undefined;
1677
+ nodeKeywords?: string[] | undefined;
1678
+ control?: string | undefined;
1679
+ inverse?: boolean | undefined;
1680
+ }, {
1681
+ type: "nodeActive" | "control";
1682
+ value?: number | boolean | undefined;
1683
+ path?: string[] | undefined;
1684
+ asset?: "self" | "base" | undefined;
1685
+ node?: number | undefined;
1686
+ nodeKeywords?: string[] | undefined;
1687
+ control?: string | undefined;
1688
+ inverse?: boolean | undefined;
1689
+ }>>;
1690
+ shapes: z.ZodArray<z.ZodObject<{
1691
+ target: z.ZodEffects<z.ZodObject<{
1692
+ asset: z.ZodEnum<["self", "base"]>;
1693
+ node: z.ZodOptional<z.ZodNumber>;
1694
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1695
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1696
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1697
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1698
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1699
+ morphIndex: z.ZodOptional<z.ZodNumber>;
1700
+ humanBone: z.ZodOptional<z.ZodString>;
1701
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1702
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1703
+ }, "strict", z.ZodTypeAny, {
1704
+ asset: "self" | "base";
1705
+ path?: string[] | undefined;
1706
+ node?: number | undefined;
1707
+ boneKeywords?: string[] | undefined;
1708
+ meshKeywords?: string[] | undefined;
1709
+ nodeKeywords?: string[] | undefined;
1710
+ blendshapeKeywords?: string[] | undefined;
1711
+ morphIndex?: number | undefined;
1712
+ humanBone?: string | undefined;
1713
+ humanBonePath?: string[] | undefined;
1714
+ parentKeywords?: string[] | undefined;
1715
+ }, {
1716
+ asset: "self" | "base";
1717
+ path?: string[] | undefined;
1718
+ node?: number | undefined;
1719
+ boneKeywords?: string[] | undefined;
1720
+ meshKeywords?: string[] | undefined;
1721
+ nodeKeywords?: string[] | undefined;
1722
+ blendshapeKeywords?: string[] | undefined;
1723
+ morphIndex?: number | undefined;
1724
+ humanBone?: string | undefined;
1725
+ humanBonePath?: string[] | undefined;
1726
+ parentKeywords?: string[] | undefined;
1727
+ }>, {
1728
+ asset: "self" | "base";
1729
+ path?: string[] | undefined;
1730
+ node?: number | undefined;
1731
+ boneKeywords?: string[] | undefined;
1732
+ meshKeywords?: string[] | undefined;
1733
+ nodeKeywords?: string[] | undefined;
1734
+ blendshapeKeywords?: string[] | undefined;
1735
+ morphIndex?: number | undefined;
1736
+ humanBone?: string | undefined;
1737
+ humanBonePath?: string[] | undefined;
1738
+ parentKeywords?: string[] | undefined;
1739
+ }, {
1740
+ asset: "self" | "base";
1741
+ path?: string[] | undefined;
1742
+ node?: number | undefined;
1743
+ boneKeywords?: string[] | undefined;
1744
+ meshKeywords?: string[] | undefined;
1745
+ nodeKeywords?: string[] | undefined;
1746
+ blendshapeKeywords?: string[] | undefined;
1747
+ morphIndex?: number | undefined;
1748
+ humanBone?: string | undefined;
1749
+ humanBonePath?: string[] | undefined;
1750
+ parentKeywords?: string[] | undefined;
1751
+ }>;
1752
+ changeType: z.ZodEnum<["set", "delete"]>;
1753
+ value: z.ZodDefault<z.ZodNumber>;
1754
+ }, "strict", z.ZodTypeAny, {
1755
+ value: number;
1756
+ target: {
1757
+ asset: "self" | "base";
1758
+ path?: string[] | undefined;
1759
+ node?: number | undefined;
1760
+ boneKeywords?: string[] | undefined;
1761
+ meshKeywords?: string[] | undefined;
1762
+ nodeKeywords?: string[] | undefined;
1763
+ blendshapeKeywords?: string[] | undefined;
1764
+ morphIndex?: number | undefined;
1765
+ humanBone?: string | undefined;
1766
+ humanBonePath?: string[] | undefined;
1767
+ parentKeywords?: string[] | undefined;
1768
+ };
1769
+ changeType: "set" | "delete";
1770
+ }, {
1771
+ target: {
1772
+ asset: "self" | "base";
1773
+ path?: string[] | undefined;
1774
+ node?: number | undefined;
1775
+ boneKeywords?: string[] | undefined;
1776
+ meshKeywords?: string[] | undefined;
1777
+ nodeKeywords?: string[] | undefined;
1778
+ blendshapeKeywords?: string[] | undefined;
1779
+ morphIndex?: number | undefined;
1780
+ humanBone?: string | undefined;
1781
+ humanBonePath?: string[] | undefined;
1782
+ parentKeywords?: string[] | undefined;
1783
+ };
1784
+ changeType: "set" | "delete";
1785
+ value?: number | undefined;
1786
+ }>, "many">;
1787
+ id: z.ZodString;
1788
+ sourceNode: z.ZodNumber;
1789
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
1790
+ }, "strict", z.ZodTypeAny, {
1791
+ type: "shapeChanger";
1792
+ id: string;
1793
+ sourceNode: number;
1794
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
1795
+ threshold: number;
1796
+ shapes: {
1797
+ value: number;
1798
+ target: {
1799
+ asset: "self" | "base";
1800
+ path?: string[] | undefined;
1801
+ node?: number | undefined;
1802
+ boneKeywords?: string[] | undefined;
1803
+ meshKeywords?: string[] | undefined;
1804
+ nodeKeywords?: string[] | undefined;
1805
+ blendshapeKeywords?: string[] | undefined;
1806
+ morphIndex?: number | undefined;
1807
+ humanBone?: string | undefined;
1808
+ humanBonePath?: string[] | undefined;
1809
+ parentKeywords?: string[] | undefined;
1810
+ };
1811
+ changeType: "set" | "delete";
1812
+ }[];
1813
+ condition?: {
1814
+ type: "nodeActive" | "control";
1815
+ value?: number | boolean | undefined;
1816
+ path?: string[] | undefined;
1817
+ asset?: "self" | "base" | undefined;
1818
+ node?: number | undefined;
1819
+ nodeKeywords?: string[] | undefined;
1820
+ control?: string | undefined;
1821
+ inverse?: boolean | undefined;
1822
+ } | undefined;
1823
+ }, {
1824
+ type: "shapeChanger";
1825
+ id: string;
1826
+ sourceNode: number;
1827
+ shapes: {
1828
+ target: {
1829
+ asset: "self" | "base";
1830
+ path?: string[] | undefined;
1831
+ node?: number | undefined;
1832
+ boneKeywords?: string[] | undefined;
1833
+ meshKeywords?: string[] | undefined;
1834
+ nodeKeywords?: string[] | undefined;
1835
+ blendshapeKeywords?: string[] | undefined;
1836
+ morphIndex?: number | undefined;
1837
+ humanBone?: string | undefined;
1838
+ humanBonePath?: string[] | undefined;
1839
+ parentKeywords?: string[] | undefined;
1840
+ };
1841
+ changeType: "set" | "delete";
1842
+ value?: number | undefined;
1843
+ }[];
1844
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
1845
+ threshold?: number | undefined;
1846
+ condition?: {
1847
+ type: "nodeActive" | "control";
1848
+ value?: number | boolean | undefined;
1849
+ path?: string[] | undefined;
1850
+ asset?: "self" | "base" | undefined;
1851
+ node?: number | undefined;
1852
+ nodeKeywords?: string[] | undefined;
1853
+ control?: string | undefined;
1854
+ inverse?: boolean | undefined;
1855
+ } | undefined;
1856
+ }>, z.ZodObject<{
1857
+ type: z.ZodLiteral<"blendshapeSync">;
1858
+ condition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1859
+ type: z.ZodEnum<["nodeActive", "control"]>;
1860
+ asset: z.ZodOptional<z.ZodEnum<["self", "base"]>>;
1861
+ node: z.ZodOptional<z.ZodNumber>;
1862
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1863
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1864
+ control: z.ZodOptional<z.ZodString>;
1865
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
1866
+ inverse: z.ZodOptional<z.ZodBoolean>;
1867
+ }, "strict", z.ZodTypeAny, {
1868
+ type: "nodeActive" | "control";
1869
+ value?: number | boolean | undefined;
1870
+ path?: string[] | undefined;
1871
+ asset?: "self" | "base" | undefined;
1872
+ node?: number | undefined;
1873
+ nodeKeywords?: string[] | undefined;
1874
+ control?: string | undefined;
1875
+ inverse?: boolean | undefined;
1876
+ }, {
1877
+ type: "nodeActive" | "control";
1878
+ value?: number | boolean | undefined;
1879
+ path?: string[] | undefined;
1880
+ asset?: "self" | "base" | undefined;
1881
+ node?: number | undefined;
1882
+ nodeKeywords?: string[] | undefined;
1883
+ control?: string | undefined;
1884
+ inverse?: boolean | undefined;
1885
+ }>, {
1886
+ type: "nodeActive" | "control";
1887
+ value?: number | boolean | undefined;
1888
+ path?: string[] | undefined;
1889
+ asset?: "self" | "base" | undefined;
1890
+ node?: number | undefined;
1891
+ nodeKeywords?: string[] | undefined;
1892
+ control?: string | undefined;
1893
+ inverse?: boolean | undefined;
1894
+ }, {
1895
+ type: "nodeActive" | "control";
1896
+ value?: number | boolean | undefined;
1897
+ path?: string[] | undefined;
1898
+ asset?: "self" | "base" | undefined;
1899
+ node?: number | undefined;
1900
+ nodeKeywords?: string[] | undefined;
1901
+ control?: string | undefined;
1902
+ inverse?: boolean | undefined;
1903
+ }>>;
1904
+ bindings: z.ZodArray<z.ZodObject<{
1905
+ driver: z.ZodEffects<z.ZodObject<{
1906
+ asset: z.ZodEnum<["self", "base"]>;
1907
+ node: z.ZodOptional<z.ZodNumber>;
1908
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1909
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1910
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1911
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1912
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1913
+ morphIndex: z.ZodOptional<z.ZodNumber>;
1914
+ humanBone: z.ZodOptional<z.ZodString>;
1915
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1916
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1917
+ }, "strict", z.ZodTypeAny, {
1918
+ asset: "self" | "base";
1919
+ path?: string[] | undefined;
1920
+ node?: number | undefined;
1921
+ boneKeywords?: string[] | undefined;
1922
+ meshKeywords?: string[] | undefined;
1923
+ nodeKeywords?: string[] | undefined;
1924
+ blendshapeKeywords?: string[] | undefined;
1925
+ morphIndex?: number | undefined;
1926
+ humanBone?: string | undefined;
1927
+ humanBonePath?: string[] | undefined;
1928
+ parentKeywords?: string[] | undefined;
1929
+ }, {
1930
+ asset: "self" | "base";
1931
+ path?: string[] | undefined;
1932
+ node?: number | undefined;
1933
+ boneKeywords?: string[] | undefined;
1934
+ meshKeywords?: string[] | undefined;
1935
+ nodeKeywords?: string[] | undefined;
1936
+ blendshapeKeywords?: string[] | undefined;
1937
+ morphIndex?: number | undefined;
1938
+ humanBone?: string | undefined;
1939
+ humanBonePath?: string[] | undefined;
1940
+ parentKeywords?: string[] | undefined;
1941
+ }>, {
1942
+ asset: "self" | "base";
1943
+ path?: string[] | undefined;
1944
+ node?: number | undefined;
1945
+ boneKeywords?: string[] | undefined;
1946
+ meshKeywords?: string[] | undefined;
1947
+ nodeKeywords?: string[] | undefined;
1948
+ blendshapeKeywords?: string[] | undefined;
1949
+ morphIndex?: number | undefined;
1950
+ humanBone?: string | undefined;
1951
+ humanBonePath?: string[] | undefined;
1952
+ parentKeywords?: string[] | undefined;
1953
+ }, {
1954
+ asset: "self" | "base";
1955
+ path?: string[] | undefined;
1956
+ node?: number | undefined;
1957
+ boneKeywords?: string[] | undefined;
1958
+ meshKeywords?: string[] | undefined;
1959
+ nodeKeywords?: string[] | undefined;
1960
+ blendshapeKeywords?: string[] | undefined;
1961
+ morphIndex?: number | undefined;
1962
+ humanBone?: string | undefined;
1963
+ humanBonePath?: string[] | undefined;
1964
+ parentKeywords?: string[] | undefined;
1965
+ }>;
1966
+ driven: z.ZodEffects<z.ZodObject<{
1967
+ asset: z.ZodEnum<["self", "base"]>;
1968
+ node: z.ZodOptional<z.ZodNumber>;
1969
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1970
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1971
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1972
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1973
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1974
+ morphIndex: z.ZodOptional<z.ZodNumber>;
1975
+ humanBone: z.ZodOptional<z.ZodString>;
1976
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1977
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1978
+ }, "strict", z.ZodTypeAny, {
1979
+ asset: "self" | "base";
1980
+ path?: string[] | undefined;
1981
+ node?: number | undefined;
1982
+ boneKeywords?: string[] | undefined;
1983
+ meshKeywords?: string[] | undefined;
1984
+ nodeKeywords?: string[] | undefined;
1985
+ blendshapeKeywords?: string[] | undefined;
1986
+ morphIndex?: number | undefined;
1987
+ humanBone?: string | undefined;
1988
+ humanBonePath?: string[] | undefined;
1989
+ parentKeywords?: string[] | undefined;
1990
+ }, {
1991
+ asset: "self" | "base";
1992
+ path?: string[] | undefined;
1993
+ node?: number | undefined;
1994
+ boneKeywords?: string[] | undefined;
1995
+ meshKeywords?: string[] | undefined;
1996
+ nodeKeywords?: string[] | undefined;
1997
+ blendshapeKeywords?: string[] | undefined;
1998
+ morphIndex?: number | undefined;
1999
+ humanBone?: string | undefined;
2000
+ humanBonePath?: string[] | undefined;
2001
+ parentKeywords?: string[] | undefined;
2002
+ }>, {
2003
+ asset: "self" | "base";
2004
+ path?: string[] | undefined;
2005
+ node?: number | undefined;
2006
+ boneKeywords?: string[] | undefined;
2007
+ meshKeywords?: string[] | undefined;
2008
+ nodeKeywords?: string[] | undefined;
2009
+ blendshapeKeywords?: string[] | undefined;
2010
+ morphIndex?: number | undefined;
2011
+ humanBone?: string | undefined;
2012
+ humanBonePath?: string[] | undefined;
2013
+ parentKeywords?: string[] | undefined;
2014
+ }, {
2015
+ asset: "self" | "base";
2016
+ path?: string[] | undefined;
2017
+ node?: number | undefined;
2018
+ boneKeywords?: string[] | undefined;
2019
+ meshKeywords?: string[] | undefined;
2020
+ nodeKeywords?: string[] | undefined;
2021
+ blendshapeKeywords?: string[] | undefined;
2022
+ morphIndex?: number | undefined;
2023
+ humanBone?: string | undefined;
2024
+ humanBonePath?: string[] | undefined;
2025
+ parentKeywords?: string[] | undefined;
2026
+ }>;
2027
+ curve: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2028
+ interpolation: z.ZodEnum<["linear", "step"]>;
2029
+ points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
2030
+ }, "strict", z.ZodTypeAny, {
2031
+ interpolation: "linear" | "step";
2032
+ points: [number, number][];
2033
+ }, {
2034
+ interpolation: "linear" | "step";
2035
+ points: [number, number][];
2036
+ }>, {
2037
+ interpolation: "linear" | "step";
2038
+ points: [number, number][];
2039
+ }, {
2040
+ interpolation: "linear" | "step";
2041
+ points: [number, number][];
2042
+ }>>;
2043
+ }, "strict", z.ZodTypeAny, {
2044
+ driver: {
2045
+ asset: "self" | "base";
2046
+ path?: string[] | undefined;
2047
+ node?: number | undefined;
2048
+ boneKeywords?: string[] | undefined;
2049
+ meshKeywords?: string[] | undefined;
2050
+ nodeKeywords?: string[] | undefined;
2051
+ blendshapeKeywords?: string[] | undefined;
2052
+ morphIndex?: number | undefined;
2053
+ humanBone?: string | undefined;
2054
+ humanBonePath?: string[] | undefined;
2055
+ parentKeywords?: string[] | undefined;
2056
+ };
2057
+ driven: {
2058
+ asset: "self" | "base";
2059
+ path?: string[] | undefined;
2060
+ node?: number | undefined;
2061
+ boneKeywords?: string[] | undefined;
2062
+ meshKeywords?: string[] | undefined;
2063
+ nodeKeywords?: string[] | undefined;
2064
+ blendshapeKeywords?: string[] | undefined;
2065
+ morphIndex?: number | undefined;
2066
+ humanBone?: string | undefined;
2067
+ humanBonePath?: string[] | undefined;
2068
+ parentKeywords?: string[] | undefined;
2069
+ };
2070
+ curve?: {
2071
+ interpolation: "linear" | "step";
2072
+ points: [number, number][];
2073
+ } | undefined;
2074
+ }, {
2075
+ driver: {
2076
+ asset: "self" | "base";
2077
+ path?: string[] | undefined;
2078
+ node?: number | undefined;
2079
+ boneKeywords?: string[] | undefined;
2080
+ meshKeywords?: string[] | undefined;
2081
+ nodeKeywords?: string[] | undefined;
2082
+ blendshapeKeywords?: string[] | undefined;
2083
+ morphIndex?: number | undefined;
2084
+ humanBone?: string | undefined;
2085
+ humanBonePath?: string[] | undefined;
2086
+ parentKeywords?: string[] | undefined;
2087
+ };
2088
+ driven: {
2089
+ asset: "self" | "base";
2090
+ path?: string[] | undefined;
2091
+ node?: number | undefined;
2092
+ boneKeywords?: string[] | undefined;
2093
+ meshKeywords?: string[] | undefined;
2094
+ nodeKeywords?: string[] | undefined;
2095
+ blendshapeKeywords?: string[] | undefined;
2096
+ morphIndex?: number | undefined;
2097
+ humanBone?: string | undefined;
2098
+ humanBonePath?: string[] | undefined;
2099
+ parentKeywords?: string[] | undefined;
2100
+ };
2101
+ curve?: {
2102
+ interpolation: "linear" | "step";
2103
+ points: [number, number][];
2104
+ } | undefined;
2105
+ }>, "many">;
2106
+ id: z.ZodString;
2107
+ sourceNode: z.ZodNumber;
2108
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
2109
+ }, "strict", z.ZodTypeAny, {
2110
+ type: "blendshapeSync";
2111
+ id: string;
2112
+ sourceNode: number;
2113
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2114
+ bindings: {
2115
+ driver: {
2116
+ asset: "self" | "base";
2117
+ path?: string[] | undefined;
2118
+ node?: number | undefined;
2119
+ boneKeywords?: string[] | undefined;
2120
+ meshKeywords?: string[] | undefined;
2121
+ nodeKeywords?: string[] | undefined;
2122
+ blendshapeKeywords?: string[] | undefined;
2123
+ morphIndex?: number | undefined;
2124
+ humanBone?: string | undefined;
2125
+ humanBonePath?: string[] | undefined;
2126
+ parentKeywords?: string[] | undefined;
2127
+ };
2128
+ driven: {
2129
+ asset: "self" | "base";
2130
+ path?: string[] | undefined;
2131
+ node?: number | undefined;
2132
+ boneKeywords?: string[] | undefined;
2133
+ meshKeywords?: string[] | undefined;
2134
+ nodeKeywords?: string[] | undefined;
2135
+ blendshapeKeywords?: string[] | undefined;
2136
+ morphIndex?: number | undefined;
2137
+ humanBone?: string | undefined;
2138
+ humanBonePath?: string[] | undefined;
2139
+ parentKeywords?: string[] | undefined;
2140
+ };
2141
+ curve?: {
2142
+ interpolation: "linear" | "step";
2143
+ points: [number, number][];
2144
+ } | undefined;
2145
+ }[];
2146
+ condition?: {
2147
+ type: "nodeActive" | "control";
2148
+ value?: number | boolean | undefined;
2149
+ path?: string[] | undefined;
2150
+ asset?: "self" | "base" | undefined;
2151
+ node?: number | undefined;
2152
+ nodeKeywords?: string[] | undefined;
2153
+ control?: string | undefined;
2154
+ inverse?: boolean | undefined;
2155
+ } | undefined;
2156
+ }, {
2157
+ type: "blendshapeSync";
2158
+ id: string;
2159
+ sourceNode: number;
2160
+ bindings: {
2161
+ driver: {
2162
+ asset: "self" | "base";
2163
+ path?: string[] | undefined;
2164
+ node?: number | undefined;
2165
+ boneKeywords?: string[] | undefined;
2166
+ meshKeywords?: string[] | undefined;
2167
+ nodeKeywords?: string[] | undefined;
2168
+ blendshapeKeywords?: string[] | undefined;
2169
+ morphIndex?: number | undefined;
2170
+ humanBone?: string | undefined;
2171
+ humanBonePath?: string[] | undefined;
2172
+ parentKeywords?: string[] | undefined;
2173
+ };
2174
+ driven: {
2175
+ asset: "self" | "base";
2176
+ path?: string[] | undefined;
2177
+ node?: number | undefined;
2178
+ boneKeywords?: string[] | undefined;
2179
+ meshKeywords?: string[] | undefined;
2180
+ nodeKeywords?: string[] | undefined;
2181
+ blendshapeKeywords?: string[] | undefined;
2182
+ morphIndex?: number | undefined;
2183
+ humanBone?: string | undefined;
2184
+ humanBonePath?: string[] | undefined;
2185
+ parentKeywords?: string[] | undefined;
2186
+ };
2187
+ curve?: {
2188
+ interpolation: "linear" | "step";
2189
+ points: [number, number][];
2190
+ } | undefined;
2191
+ }[];
2192
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
2193
+ condition?: {
2194
+ type: "nodeActive" | "control";
2195
+ value?: number | boolean | undefined;
2196
+ path?: string[] | undefined;
2197
+ asset?: "self" | "base" | undefined;
2198
+ node?: number | undefined;
2199
+ nodeKeywords?: string[] | undefined;
2200
+ control?: string | undefined;
2201
+ inverse?: boolean | undefined;
2202
+ } | undefined;
2203
+ }>, z.ZodObject<{
2204
+ type: z.ZodLiteral<"objectToggle">;
2205
+ condition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2206
+ type: z.ZodEnum<["nodeActive", "control"]>;
2207
+ asset: z.ZodOptional<z.ZodEnum<["self", "base"]>>;
2208
+ node: z.ZodOptional<z.ZodNumber>;
2209
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2210
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2211
+ control: z.ZodOptional<z.ZodString>;
2212
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
2213
+ inverse: z.ZodOptional<z.ZodBoolean>;
2214
+ }, "strict", z.ZodTypeAny, {
2215
+ type: "nodeActive" | "control";
2216
+ value?: number | boolean | undefined;
2217
+ path?: string[] | undefined;
2218
+ asset?: "self" | "base" | undefined;
2219
+ node?: number | undefined;
2220
+ nodeKeywords?: string[] | undefined;
2221
+ control?: string | undefined;
2222
+ inverse?: boolean | undefined;
2223
+ }, {
2224
+ type: "nodeActive" | "control";
2225
+ value?: number | boolean | undefined;
2226
+ path?: string[] | undefined;
2227
+ asset?: "self" | "base" | undefined;
2228
+ node?: number | undefined;
2229
+ nodeKeywords?: string[] | undefined;
2230
+ control?: string | undefined;
2231
+ inverse?: boolean | undefined;
2232
+ }>, {
2233
+ type: "nodeActive" | "control";
2234
+ value?: number | boolean | undefined;
2235
+ path?: string[] | undefined;
2236
+ asset?: "self" | "base" | undefined;
2237
+ node?: number | undefined;
2238
+ nodeKeywords?: string[] | undefined;
2239
+ control?: string | undefined;
2240
+ inverse?: boolean | undefined;
2241
+ }, {
2242
+ type: "nodeActive" | "control";
2243
+ value?: number | boolean | undefined;
2244
+ path?: string[] | undefined;
2245
+ asset?: "self" | "base" | undefined;
2246
+ node?: number | undefined;
2247
+ nodeKeywords?: string[] | undefined;
2248
+ control?: string | undefined;
2249
+ inverse?: boolean | undefined;
2250
+ }>>;
2251
+ objects: z.ZodArray<z.ZodObject<{
2252
+ target: z.ZodEffects<z.ZodObject<{
2253
+ asset: z.ZodEnum<["self", "base"]>;
2254
+ node: z.ZodOptional<z.ZodNumber>;
2255
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2256
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2257
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2258
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2259
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2260
+ morphIndex: z.ZodOptional<z.ZodNumber>;
2261
+ humanBone: z.ZodOptional<z.ZodString>;
2262
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2263
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2264
+ }, "strict", z.ZodTypeAny, {
2265
+ asset: "self" | "base";
2266
+ path?: string[] | undefined;
2267
+ node?: number | undefined;
2268
+ boneKeywords?: string[] | undefined;
2269
+ meshKeywords?: string[] | undefined;
2270
+ nodeKeywords?: string[] | undefined;
2271
+ blendshapeKeywords?: string[] | undefined;
2272
+ morphIndex?: number | undefined;
2273
+ humanBone?: string | undefined;
2274
+ humanBonePath?: string[] | undefined;
2275
+ parentKeywords?: string[] | undefined;
2276
+ }, {
2277
+ asset: "self" | "base";
2278
+ path?: string[] | undefined;
2279
+ node?: number | undefined;
2280
+ boneKeywords?: string[] | undefined;
2281
+ meshKeywords?: string[] | undefined;
2282
+ nodeKeywords?: string[] | undefined;
2283
+ blendshapeKeywords?: string[] | undefined;
2284
+ morphIndex?: number | undefined;
2285
+ humanBone?: string | undefined;
2286
+ humanBonePath?: string[] | undefined;
2287
+ parentKeywords?: string[] | undefined;
2288
+ }>, {
2289
+ asset: "self" | "base";
2290
+ path?: string[] | undefined;
2291
+ node?: number | undefined;
2292
+ boneKeywords?: string[] | undefined;
2293
+ meshKeywords?: string[] | undefined;
2294
+ nodeKeywords?: string[] | undefined;
2295
+ blendshapeKeywords?: string[] | undefined;
2296
+ morphIndex?: number | undefined;
2297
+ humanBone?: string | undefined;
2298
+ humanBonePath?: string[] | undefined;
2299
+ parentKeywords?: string[] | undefined;
2300
+ }, {
2301
+ asset: "self" | "base";
2302
+ path?: string[] | undefined;
2303
+ node?: number | undefined;
2304
+ boneKeywords?: string[] | undefined;
2305
+ meshKeywords?: string[] | undefined;
2306
+ nodeKeywords?: string[] | undefined;
2307
+ blendshapeKeywords?: string[] | undefined;
2308
+ morphIndex?: number | undefined;
2309
+ humanBone?: string | undefined;
2310
+ humanBonePath?: string[] | undefined;
2311
+ parentKeywords?: string[] | undefined;
2312
+ }>;
2313
+ value: z.ZodBoolean;
2314
+ }, "strict", z.ZodTypeAny, {
2315
+ value: boolean;
2316
+ target: {
2317
+ asset: "self" | "base";
2318
+ path?: string[] | undefined;
2319
+ node?: number | undefined;
2320
+ boneKeywords?: string[] | undefined;
2321
+ meshKeywords?: string[] | undefined;
2322
+ nodeKeywords?: string[] | undefined;
2323
+ blendshapeKeywords?: string[] | undefined;
2324
+ morphIndex?: number | undefined;
2325
+ humanBone?: string | undefined;
2326
+ humanBonePath?: string[] | undefined;
2327
+ parentKeywords?: string[] | undefined;
2328
+ };
2329
+ }, {
2330
+ value: boolean;
2331
+ target: {
2332
+ asset: "self" | "base";
2333
+ path?: string[] | undefined;
2334
+ node?: number | undefined;
2335
+ boneKeywords?: string[] | undefined;
2336
+ meshKeywords?: string[] | undefined;
2337
+ nodeKeywords?: string[] | undefined;
2338
+ blendshapeKeywords?: string[] | undefined;
2339
+ morphIndex?: number | undefined;
2340
+ humanBone?: string | undefined;
2341
+ humanBonePath?: string[] | undefined;
2342
+ parentKeywords?: string[] | undefined;
2343
+ };
2344
+ }>, "many">;
2345
+ id: z.ZodString;
2346
+ sourceNode: z.ZodNumber;
2347
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
2348
+ }, "strict", z.ZodTypeAny, {
2349
+ type: "objectToggle";
2350
+ id: string;
2351
+ sourceNode: number;
2352
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2353
+ objects: {
2354
+ value: boolean;
2355
+ target: {
2356
+ asset: "self" | "base";
2357
+ path?: string[] | undefined;
2358
+ node?: number | undefined;
2359
+ boneKeywords?: string[] | undefined;
2360
+ meshKeywords?: string[] | undefined;
2361
+ nodeKeywords?: string[] | undefined;
2362
+ blendshapeKeywords?: string[] | undefined;
2363
+ morphIndex?: number | undefined;
2364
+ humanBone?: string | undefined;
2365
+ humanBonePath?: string[] | undefined;
2366
+ parentKeywords?: string[] | undefined;
2367
+ };
2368
+ }[];
2369
+ condition?: {
2370
+ type: "nodeActive" | "control";
2371
+ value?: number | boolean | undefined;
2372
+ path?: string[] | undefined;
2373
+ asset?: "self" | "base" | undefined;
2374
+ node?: number | undefined;
2375
+ nodeKeywords?: string[] | undefined;
2376
+ control?: string | undefined;
2377
+ inverse?: boolean | undefined;
2378
+ } | undefined;
2379
+ }, {
2380
+ type: "objectToggle";
2381
+ id: string;
2382
+ sourceNode: number;
2383
+ objects: {
2384
+ value: boolean;
2385
+ target: {
2386
+ asset: "self" | "base";
2387
+ path?: string[] | undefined;
2388
+ node?: number | undefined;
2389
+ boneKeywords?: string[] | undefined;
2390
+ meshKeywords?: string[] | undefined;
2391
+ nodeKeywords?: string[] | undefined;
2392
+ blendshapeKeywords?: string[] | undefined;
2393
+ morphIndex?: number | undefined;
2394
+ humanBone?: string | undefined;
2395
+ humanBonePath?: string[] | undefined;
2396
+ parentKeywords?: string[] | undefined;
2397
+ };
2398
+ }[];
2399
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
2400
+ condition?: {
2401
+ type: "nodeActive" | "control";
2402
+ value?: number | boolean | undefined;
2403
+ path?: string[] | undefined;
2404
+ asset?: "self" | "base" | undefined;
2405
+ node?: number | undefined;
2406
+ nodeKeywords?: string[] | undefined;
2407
+ control?: string | undefined;
2408
+ inverse?: boolean | undefined;
2409
+ } | undefined;
2410
+ }>, z.ZodObject<{
2411
+ type: z.ZodLiteral<"materialSetter">;
2412
+ condition: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2413
+ type: z.ZodEnum<["nodeActive", "control"]>;
2414
+ asset: z.ZodOptional<z.ZodEnum<["self", "base"]>>;
2415
+ node: z.ZodOptional<z.ZodNumber>;
2416
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2417
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2418
+ control: z.ZodOptional<z.ZodString>;
2419
+ value: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
2420
+ inverse: z.ZodOptional<z.ZodBoolean>;
2421
+ }, "strict", z.ZodTypeAny, {
2422
+ type: "nodeActive" | "control";
2423
+ value?: number | boolean | undefined;
2424
+ path?: string[] | undefined;
2425
+ asset?: "self" | "base" | undefined;
2426
+ node?: number | undefined;
2427
+ nodeKeywords?: string[] | undefined;
2428
+ control?: string | undefined;
2429
+ inverse?: boolean | undefined;
2430
+ }, {
2431
+ type: "nodeActive" | "control";
2432
+ value?: number | boolean | undefined;
2433
+ path?: string[] | undefined;
2434
+ asset?: "self" | "base" | undefined;
2435
+ node?: number | undefined;
2436
+ nodeKeywords?: string[] | undefined;
2437
+ control?: string | undefined;
2438
+ inverse?: boolean | undefined;
2439
+ }>, {
2440
+ type: "nodeActive" | "control";
2441
+ value?: number | boolean | undefined;
2442
+ path?: string[] | undefined;
2443
+ asset?: "self" | "base" | undefined;
2444
+ node?: number | undefined;
2445
+ nodeKeywords?: string[] | undefined;
2446
+ control?: string | undefined;
2447
+ inverse?: boolean | undefined;
2448
+ }, {
2449
+ type: "nodeActive" | "control";
2450
+ value?: number | boolean | undefined;
2451
+ path?: string[] | undefined;
2452
+ asset?: "self" | "base" | undefined;
2453
+ node?: number | undefined;
2454
+ nodeKeywords?: string[] | undefined;
2455
+ control?: string | undefined;
2456
+ inverse?: boolean | undefined;
2457
+ }>>;
2458
+ objects: z.ZodArray<z.ZodObject<{
2459
+ target: z.ZodEffects<z.ZodObject<{
2460
+ asset: z.ZodEnum<["self", "base"]>;
2461
+ node: z.ZodOptional<z.ZodNumber>;
2462
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2463
+ boneKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2464
+ meshKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2465
+ nodeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2466
+ blendshapeKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2467
+ morphIndex: z.ZodOptional<z.ZodNumber>;
2468
+ humanBone: z.ZodOptional<z.ZodString>;
2469
+ humanBonePath: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2470
+ parentKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2471
+ }, "strict", z.ZodTypeAny, {
2472
+ asset: "self" | "base";
2473
+ path?: string[] | undefined;
2474
+ node?: number | undefined;
2475
+ boneKeywords?: string[] | undefined;
2476
+ meshKeywords?: string[] | undefined;
2477
+ nodeKeywords?: string[] | undefined;
2478
+ blendshapeKeywords?: string[] | undefined;
2479
+ morphIndex?: number | undefined;
2480
+ humanBone?: string | undefined;
2481
+ humanBonePath?: string[] | undefined;
2482
+ parentKeywords?: string[] | undefined;
2483
+ }, {
2484
+ asset: "self" | "base";
2485
+ path?: string[] | undefined;
2486
+ node?: number | undefined;
2487
+ boneKeywords?: string[] | undefined;
2488
+ meshKeywords?: string[] | undefined;
2489
+ nodeKeywords?: string[] | undefined;
2490
+ blendshapeKeywords?: string[] | undefined;
2491
+ morphIndex?: number | undefined;
2492
+ humanBone?: string | undefined;
2493
+ humanBonePath?: string[] | undefined;
2494
+ parentKeywords?: string[] | undefined;
2495
+ }>, {
2496
+ asset: "self" | "base";
2497
+ path?: string[] | undefined;
2498
+ node?: number | undefined;
2499
+ boneKeywords?: string[] | undefined;
2500
+ meshKeywords?: string[] | undefined;
2501
+ nodeKeywords?: string[] | undefined;
2502
+ blendshapeKeywords?: string[] | undefined;
2503
+ morphIndex?: number | undefined;
2504
+ humanBone?: string | undefined;
2505
+ humanBonePath?: string[] | undefined;
2506
+ parentKeywords?: string[] | undefined;
2507
+ }, {
2508
+ asset: "self" | "base";
2509
+ path?: string[] | undefined;
2510
+ node?: number | undefined;
2511
+ boneKeywords?: string[] | undefined;
2512
+ meshKeywords?: string[] | undefined;
2513
+ nodeKeywords?: string[] | undefined;
2514
+ blendshapeKeywords?: string[] | undefined;
2515
+ morphIndex?: number | undefined;
2516
+ humanBone?: string | undefined;
2517
+ humanBonePath?: string[] | undefined;
2518
+ parentKeywords?: string[] | undefined;
2519
+ }>;
2520
+ slot: z.ZodNumber;
2521
+ material: z.ZodNumber;
2522
+ }, "strict", z.ZodTypeAny, {
2523
+ target: {
2524
+ asset: "self" | "base";
2525
+ path?: string[] | undefined;
2526
+ node?: number | undefined;
2527
+ boneKeywords?: string[] | undefined;
2528
+ meshKeywords?: string[] | undefined;
2529
+ nodeKeywords?: string[] | undefined;
2530
+ blendshapeKeywords?: string[] | undefined;
2531
+ morphIndex?: number | undefined;
2532
+ humanBone?: string | undefined;
2533
+ humanBonePath?: string[] | undefined;
2534
+ parentKeywords?: string[] | undefined;
2535
+ };
2536
+ slot: number;
2537
+ material: number;
2538
+ }, {
2539
+ target: {
2540
+ asset: "self" | "base";
2541
+ path?: string[] | undefined;
2542
+ node?: number | undefined;
2543
+ boneKeywords?: string[] | undefined;
2544
+ meshKeywords?: string[] | undefined;
2545
+ nodeKeywords?: string[] | undefined;
2546
+ blendshapeKeywords?: string[] | undefined;
2547
+ morphIndex?: number | undefined;
2548
+ humanBone?: string | undefined;
2549
+ humanBonePath?: string[] | undefined;
2550
+ parentKeywords?: string[] | undefined;
2551
+ };
2552
+ slot: number;
2553
+ material: number;
2554
+ }>, "many">;
2555
+ id: z.ZodString;
2556
+ sourceNode: z.ZodNumber;
2557
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
2558
+ }, "strict", z.ZodTypeAny, {
2559
+ type: "materialSetter";
2560
+ id: string;
2561
+ sourceNode: number;
2562
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2563
+ objects: {
2564
+ target: {
2565
+ asset: "self" | "base";
2566
+ path?: string[] | undefined;
2567
+ node?: number | undefined;
2568
+ boneKeywords?: string[] | undefined;
2569
+ meshKeywords?: string[] | undefined;
2570
+ nodeKeywords?: string[] | undefined;
2571
+ blendshapeKeywords?: string[] | undefined;
2572
+ morphIndex?: number | undefined;
2573
+ humanBone?: string | undefined;
2574
+ humanBonePath?: string[] | undefined;
2575
+ parentKeywords?: string[] | undefined;
2576
+ };
2577
+ slot: number;
2578
+ material: number;
2579
+ }[];
2580
+ condition?: {
2581
+ type: "nodeActive" | "control";
2582
+ value?: number | boolean | undefined;
2583
+ path?: string[] | undefined;
2584
+ asset?: "self" | "base" | undefined;
2585
+ node?: number | undefined;
2586
+ nodeKeywords?: string[] | undefined;
2587
+ control?: string | undefined;
2588
+ inverse?: boolean | undefined;
2589
+ } | undefined;
2590
+ }, {
2591
+ type: "materialSetter";
2592
+ id: string;
2593
+ sourceNode: number;
2594
+ objects: {
2595
+ target: {
2596
+ asset: "self" | "base";
2597
+ path?: string[] | undefined;
2598
+ node?: number | undefined;
2599
+ boneKeywords?: string[] | undefined;
2600
+ meshKeywords?: string[] | undefined;
2601
+ nodeKeywords?: string[] | undefined;
2602
+ blendshapeKeywords?: string[] | undefined;
2603
+ morphIndex?: number | undefined;
2604
+ humanBone?: string | undefined;
2605
+ humanBonePath?: string[] | undefined;
2606
+ parentKeywords?: string[] | undefined;
2607
+ };
2608
+ slot: number;
2609
+ material: number;
2610
+ }[];
2611
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
2612
+ condition?: {
2613
+ type: "nodeActive" | "control";
2614
+ value?: number | boolean | undefined;
2615
+ path?: string[] | undefined;
2616
+ asset?: "self" | "base" | undefined;
2617
+ node?: number | undefined;
2618
+ nodeKeywords?: string[] | undefined;
2619
+ control?: string | undefined;
2620
+ inverse?: boolean | undefined;
2621
+ } | undefined;
2622
+ }>, z.ZodObject<{
2623
+ type: z.ZodLiteral<"menuItem">;
2624
+ label: z.ZodString;
2625
+ controlType: z.ZodEnum<["toggle", "button"]>;
2626
+ parameter: z.ZodOptional<z.ZodString>;
2627
+ value: z.ZodDefault<z.ZodNumber>;
2628
+ defaultValue: z.ZodDefault<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
2629
+ automatic: z.ZodDefault<z.ZodBoolean>;
2630
+ id: z.ZodString;
2631
+ sourceNode: z.ZodNumber;
2632
+ origin: z.ZodDefault<z.ZodEnum<["modularAvatar", "referenceRig", "colliderAnchor", "authored"]>>;
2633
+ }, "strict", z.ZodTypeAny, {
2634
+ value: number;
2635
+ type: "menuItem";
2636
+ id: string;
2637
+ sourceNode: number;
2638
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2639
+ label: string;
2640
+ controlType: "toggle" | "button";
2641
+ defaultValue: number | boolean;
2642
+ automatic: boolean;
2643
+ parameter?: string | undefined;
2644
+ }, {
2645
+ type: "menuItem";
2646
+ id: string;
2647
+ sourceNode: number;
2648
+ label: string;
2649
+ controlType: "toggle" | "button";
2650
+ value?: number | undefined;
2651
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
2652
+ parameter?: string | undefined;
2653
+ defaultValue?: number | boolean | undefined;
2654
+ automatic?: boolean | undefined;
2655
+ }>]>, "many">>;
2656
+ }, "strict", z.ZodTypeAny, {
2657
+ specVersion: "0.1";
2658
+ assetKind: "avatar" | "attachment";
2659
+ requiredCapabilities: string[];
2660
+ nodes: {
2661
+ node: number;
2662
+ aliases: string[];
2663
+ active: boolean;
2664
+ }[];
2665
+ components: ({
2666
+ type: "mergeArmature";
2667
+ target: {
2668
+ asset: "self" | "base";
2669
+ path?: string[] | undefined;
2670
+ node?: number | undefined;
2671
+ boneKeywords?: string[] | undefined;
2672
+ meshKeywords?: string[] | undefined;
2673
+ nodeKeywords?: string[] | undefined;
2674
+ blendshapeKeywords?: string[] | undefined;
2675
+ morphIndex?: number | undefined;
2676
+ humanBone?: string | undefined;
2677
+ humanBonePath?: string[] | undefined;
2678
+ parentKeywords?: string[] | undefined;
2679
+ };
2680
+ prefix: string;
2681
+ suffix: string;
2682
+ lockMode: "unidirectional" | "bidirectional" | "notLocked";
2683
+ mangleNames: boolean;
2684
+ id: string;
2685
+ sourceNode: number;
2686
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2687
+ } | {
2688
+ type: "boneProxy";
2689
+ target: {
2690
+ asset: "self" | "base";
2691
+ path?: string[] | undefined;
2692
+ node?: number | undefined;
2693
+ boneKeywords?: string[] | undefined;
2694
+ meshKeywords?: string[] | undefined;
2695
+ nodeKeywords?: string[] | undefined;
2696
+ blendshapeKeywords?: string[] | undefined;
2697
+ morphIndex?: number | undefined;
2698
+ humanBone?: string | undefined;
2699
+ humanBonePath?: string[] | undefined;
2700
+ parentKeywords?: string[] | undefined;
2701
+ };
2702
+ id: string;
2703
+ sourceNode: number;
2704
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2705
+ attachmentMode: "keepWorldPose" | "atRoot" | "keepPosition" | "keepRotation";
2706
+ matchScale: boolean;
2707
+ } | {
2708
+ type: "shapeChanger";
2709
+ id: string;
2710
+ sourceNode: number;
2711
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2712
+ threshold: number;
2713
+ shapes: {
2714
+ value: number;
2715
+ target: {
2716
+ asset: "self" | "base";
2717
+ path?: string[] | undefined;
2718
+ node?: number | undefined;
2719
+ boneKeywords?: string[] | undefined;
2720
+ meshKeywords?: string[] | undefined;
2721
+ nodeKeywords?: string[] | undefined;
2722
+ blendshapeKeywords?: string[] | undefined;
2723
+ morphIndex?: number | undefined;
2724
+ humanBone?: string | undefined;
2725
+ humanBonePath?: string[] | undefined;
2726
+ parentKeywords?: string[] | undefined;
2727
+ };
2728
+ changeType: "set" | "delete";
2729
+ }[];
2730
+ condition?: {
2731
+ type: "nodeActive" | "control";
2732
+ value?: number | boolean | undefined;
2733
+ path?: string[] | undefined;
2734
+ asset?: "self" | "base" | undefined;
2735
+ node?: number | undefined;
2736
+ nodeKeywords?: string[] | undefined;
2737
+ control?: string | undefined;
2738
+ inverse?: boolean | undefined;
2739
+ } | undefined;
2740
+ } | {
2741
+ type: "blendshapeSync";
2742
+ id: string;
2743
+ sourceNode: number;
2744
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2745
+ bindings: {
2746
+ driver: {
2747
+ asset: "self" | "base";
2748
+ path?: string[] | undefined;
2749
+ node?: number | undefined;
2750
+ boneKeywords?: string[] | undefined;
2751
+ meshKeywords?: string[] | undefined;
2752
+ nodeKeywords?: string[] | undefined;
2753
+ blendshapeKeywords?: string[] | undefined;
2754
+ morphIndex?: number | undefined;
2755
+ humanBone?: string | undefined;
2756
+ humanBonePath?: string[] | undefined;
2757
+ parentKeywords?: string[] | undefined;
2758
+ };
2759
+ driven: {
2760
+ asset: "self" | "base";
2761
+ path?: string[] | undefined;
2762
+ node?: number | undefined;
2763
+ boneKeywords?: string[] | undefined;
2764
+ meshKeywords?: string[] | undefined;
2765
+ nodeKeywords?: string[] | undefined;
2766
+ blendshapeKeywords?: string[] | undefined;
2767
+ morphIndex?: number | undefined;
2768
+ humanBone?: string | undefined;
2769
+ humanBonePath?: string[] | undefined;
2770
+ parentKeywords?: string[] | undefined;
2771
+ };
2772
+ curve?: {
2773
+ interpolation: "linear" | "step";
2774
+ points: [number, number][];
2775
+ } | undefined;
2776
+ }[];
2777
+ condition?: {
2778
+ type: "nodeActive" | "control";
2779
+ value?: number | boolean | undefined;
2780
+ path?: string[] | undefined;
2781
+ asset?: "self" | "base" | undefined;
2782
+ node?: number | undefined;
2783
+ nodeKeywords?: string[] | undefined;
2784
+ control?: string | undefined;
2785
+ inverse?: boolean | undefined;
2786
+ } | undefined;
2787
+ } | {
2788
+ type: "objectToggle";
2789
+ id: string;
2790
+ sourceNode: number;
2791
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2792
+ objects: {
2793
+ value: boolean;
2794
+ target: {
2795
+ asset: "self" | "base";
2796
+ path?: string[] | undefined;
2797
+ node?: number | undefined;
2798
+ boneKeywords?: string[] | undefined;
2799
+ meshKeywords?: string[] | undefined;
2800
+ nodeKeywords?: string[] | undefined;
2801
+ blendshapeKeywords?: string[] | undefined;
2802
+ morphIndex?: number | undefined;
2803
+ humanBone?: string | undefined;
2804
+ humanBonePath?: string[] | undefined;
2805
+ parentKeywords?: string[] | undefined;
2806
+ };
2807
+ }[];
2808
+ condition?: {
2809
+ type: "nodeActive" | "control";
2810
+ value?: number | boolean | undefined;
2811
+ path?: string[] | undefined;
2812
+ asset?: "self" | "base" | undefined;
2813
+ node?: number | undefined;
2814
+ nodeKeywords?: string[] | undefined;
2815
+ control?: string | undefined;
2816
+ inverse?: boolean | undefined;
2817
+ } | undefined;
2818
+ } | {
2819
+ type: "materialSetter";
2820
+ id: string;
2821
+ sourceNode: number;
2822
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2823
+ objects: {
2824
+ target: {
2825
+ asset: "self" | "base";
2826
+ path?: string[] | undefined;
2827
+ node?: number | undefined;
2828
+ boneKeywords?: string[] | undefined;
2829
+ meshKeywords?: string[] | undefined;
2830
+ nodeKeywords?: string[] | undefined;
2831
+ blendshapeKeywords?: string[] | undefined;
2832
+ morphIndex?: number | undefined;
2833
+ humanBone?: string | undefined;
2834
+ humanBonePath?: string[] | undefined;
2835
+ parentKeywords?: string[] | undefined;
2836
+ };
2837
+ slot: number;
2838
+ material: number;
2839
+ }[];
2840
+ condition?: {
2841
+ type: "nodeActive" | "control";
2842
+ value?: number | boolean | undefined;
2843
+ path?: string[] | undefined;
2844
+ asset?: "self" | "base" | undefined;
2845
+ node?: number | undefined;
2846
+ nodeKeywords?: string[] | undefined;
2847
+ control?: string | undefined;
2848
+ inverse?: boolean | undefined;
2849
+ } | undefined;
2850
+ } | {
2851
+ value: number;
2852
+ type: "menuItem";
2853
+ id: string;
2854
+ sourceNode: number;
2855
+ origin: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored";
2856
+ label: string;
2857
+ controlType: "toggle" | "button";
2858
+ defaultValue: number | boolean;
2859
+ automatic: boolean;
2860
+ parameter?: string | undefined;
2861
+ })[];
2862
+ matching?: {
2863
+ mode: "keywordBestEffort";
2864
+ armatureKeywords: string[];
2865
+ onUnresolved: "warnAndContinue";
2866
+ } | undefined;
2867
+ rig?: {
2868
+ role: "avatar" | "attachmentReference";
2869
+ } | undefined;
2870
+ }, {
2871
+ specVersion: "0.1";
2872
+ assetKind: "avatar" | "attachment";
2873
+ requiredCapabilities?: string[] | undefined;
2874
+ matching?: {
2875
+ mode: "keywordBestEffort";
2876
+ onUnresolved: "warnAndContinue";
2877
+ armatureKeywords?: string[] | undefined;
2878
+ } | undefined;
2879
+ rig?: {
2880
+ role: "avatar" | "attachmentReference";
2881
+ } | undefined;
2882
+ nodes?: {
2883
+ node: number;
2884
+ aliases?: string[] | undefined;
2885
+ active?: boolean | undefined;
2886
+ }[] | undefined;
2887
+ components?: ({
2888
+ type: "mergeArmature";
2889
+ target: {
2890
+ asset: "self" | "base";
2891
+ path?: string[] | undefined;
2892
+ node?: number | undefined;
2893
+ boneKeywords?: string[] | undefined;
2894
+ meshKeywords?: string[] | undefined;
2895
+ nodeKeywords?: string[] | undefined;
2896
+ blendshapeKeywords?: string[] | undefined;
2897
+ morphIndex?: number | undefined;
2898
+ humanBone?: string | undefined;
2899
+ humanBonePath?: string[] | undefined;
2900
+ parentKeywords?: string[] | undefined;
2901
+ };
2902
+ id: string;
2903
+ sourceNode: number;
2904
+ prefix?: string | undefined;
2905
+ suffix?: string | undefined;
2906
+ lockMode?: "unidirectional" | "bidirectional" | "notLocked" | undefined;
2907
+ mangleNames?: boolean | undefined;
2908
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
2909
+ } | {
2910
+ type: "boneProxy";
2911
+ target: {
2912
+ asset: "self" | "base";
2913
+ path?: string[] | undefined;
2914
+ node?: number | undefined;
2915
+ boneKeywords?: string[] | undefined;
2916
+ meshKeywords?: string[] | undefined;
2917
+ nodeKeywords?: string[] | undefined;
2918
+ blendshapeKeywords?: string[] | undefined;
2919
+ morphIndex?: number | undefined;
2920
+ humanBone?: string | undefined;
2921
+ humanBonePath?: string[] | undefined;
2922
+ parentKeywords?: string[] | undefined;
2923
+ };
2924
+ id: string;
2925
+ sourceNode: number;
2926
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
2927
+ attachmentMode?: "keepWorldPose" | "atRoot" | "keepPosition" | "keepRotation" | undefined;
2928
+ matchScale?: boolean | undefined;
2929
+ } | {
2930
+ type: "shapeChanger";
2931
+ id: string;
2932
+ sourceNode: number;
2933
+ shapes: {
2934
+ target: {
2935
+ asset: "self" | "base";
2936
+ path?: string[] | undefined;
2937
+ node?: number | undefined;
2938
+ boneKeywords?: string[] | undefined;
2939
+ meshKeywords?: string[] | undefined;
2940
+ nodeKeywords?: string[] | undefined;
2941
+ blendshapeKeywords?: string[] | undefined;
2942
+ morphIndex?: number | undefined;
2943
+ humanBone?: string | undefined;
2944
+ humanBonePath?: string[] | undefined;
2945
+ parentKeywords?: string[] | undefined;
2946
+ };
2947
+ changeType: "set" | "delete";
2948
+ value?: number | undefined;
2949
+ }[];
2950
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
2951
+ threshold?: number | undefined;
2952
+ condition?: {
2953
+ type: "nodeActive" | "control";
2954
+ value?: number | boolean | undefined;
2955
+ path?: string[] | undefined;
2956
+ asset?: "self" | "base" | undefined;
2957
+ node?: number | undefined;
2958
+ nodeKeywords?: string[] | undefined;
2959
+ control?: string | undefined;
2960
+ inverse?: boolean | undefined;
2961
+ } | undefined;
2962
+ } | {
2963
+ type: "blendshapeSync";
2964
+ id: string;
2965
+ sourceNode: number;
2966
+ bindings: {
2967
+ driver: {
2968
+ asset: "self" | "base";
2969
+ path?: string[] | undefined;
2970
+ node?: number | undefined;
2971
+ boneKeywords?: string[] | undefined;
2972
+ meshKeywords?: string[] | undefined;
2973
+ nodeKeywords?: string[] | undefined;
2974
+ blendshapeKeywords?: string[] | undefined;
2975
+ morphIndex?: number | undefined;
2976
+ humanBone?: string | undefined;
2977
+ humanBonePath?: string[] | undefined;
2978
+ parentKeywords?: string[] | undefined;
2979
+ };
2980
+ driven: {
2981
+ asset: "self" | "base";
2982
+ path?: string[] | undefined;
2983
+ node?: number | undefined;
2984
+ boneKeywords?: string[] | undefined;
2985
+ meshKeywords?: string[] | undefined;
2986
+ nodeKeywords?: string[] | undefined;
2987
+ blendshapeKeywords?: string[] | undefined;
2988
+ morphIndex?: number | undefined;
2989
+ humanBone?: string | undefined;
2990
+ humanBonePath?: string[] | undefined;
2991
+ parentKeywords?: string[] | undefined;
2992
+ };
2993
+ curve?: {
2994
+ interpolation: "linear" | "step";
2995
+ points: [number, number][];
2996
+ } | undefined;
2997
+ }[];
2998
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
2999
+ condition?: {
3000
+ type: "nodeActive" | "control";
3001
+ value?: number | boolean | undefined;
3002
+ path?: string[] | undefined;
3003
+ asset?: "self" | "base" | undefined;
3004
+ node?: number | undefined;
3005
+ nodeKeywords?: string[] | undefined;
3006
+ control?: string | undefined;
3007
+ inverse?: boolean | undefined;
3008
+ } | undefined;
3009
+ } | {
3010
+ type: "objectToggle";
3011
+ id: string;
3012
+ sourceNode: number;
3013
+ objects: {
3014
+ value: boolean;
3015
+ target: {
3016
+ asset: "self" | "base";
3017
+ path?: string[] | undefined;
3018
+ node?: number | undefined;
3019
+ boneKeywords?: string[] | undefined;
3020
+ meshKeywords?: string[] | undefined;
3021
+ nodeKeywords?: string[] | undefined;
3022
+ blendshapeKeywords?: string[] | undefined;
3023
+ morphIndex?: number | undefined;
3024
+ humanBone?: string | undefined;
3025
+ humanBonePath?: string[] | undefined;
3026
+ parentKeywords?: string[] | undefined;
3027
+ };
3028
+ }[];
3029
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
3030
+ condition?: {
3031
+ type: "nodeActive" | "control";
3032
+ value?: number | boolean | undefined;
3033
+ path?: string[] | undefined;
3034
+ asset?: "self" | "base" | undefined;
3035
+ node?: number | undefined;
3036
+ nodeKeywords?: string[] | undefined;
3037
+ control?: string | undefined;
3038
+ inverse?: boolean | undefined;
3039
+ } | undefined;
3040
+ } | {
3041
+ type: "materialSetter";
3042
+ id: string;
3043
+ sourceNode: number;
3044
+ objects: {
3045
+ target: {
3046
+ asset: "self" | "base";
3047
+ path?: string[] | undefined;
3048
+ node?: number | undefined;
3049
+ boneKeywords?: string[] | undefined;
3050
+ meshKeywords?: string[] | undefined;
3051
+ nodeKeywords?: string[] | undefined;
3052
+ blendshapeKeywords?: string[] | undefined;
3053
+ morphIndex?: number | undefined;
3054
+ humanBone?: string | undefined;
3055
+ humanBonePath?: string[] | undefined;
3056
+ parentKeywords?: string[] | undefined;
3057
+ };
3058
+ slot: number;
3059
+ material: number;
3060
+ }[];
3061
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
3062
+ condition?: {
3063
+ type: "nodeActive" | "control";
3064
+ value?: number | boolean | undefined;
3065
+ path?: string[] | undefined;
3066
+ asset?: "self" | "base" | undefined;
3067
+ node?: number | undefined;
3068
+ nodeKeywords?: string[] | undefined;
3069
+ control?: string | undefined;
3070
+ inverse?: boolean | undefined;
3071
+ } | undefined;
3072
+ } | {
3073
+ type: "menuItem";
3074
+ id: string;
3075
+ sourceNode: number;
3076
+ label: string;
3077
+ controlType: "toggle" | "button";
3078
+ value?: number | undefined;
3079
+ origin?: "modularAvatar" | "referenceRig" | "colliderAnchor" | "authored" | undefined;
3080
+ parameter?: string | undefined;
3081
+ defaultValue?: number | boolean | undefined;
3082
+ automatic?: boolean | undefined;
3083
+ })[] | undefined;
3084
+ }>;
3085
+ type AvatarCompositionManifest = z.infer<typeof manifestSchema>;
3086
+ type ManifestInput = z.input<typeof manifestSchema>;
3087
+ declare class CompositionError extends Error {
3088
+ readonly code: string;
3089
+ constructor(code: string, message: string);
3090
+ }
3091
+ declare function parseManifest(input: unknown): AvatarCompositionManifest;
3092
+ declare function menuItems(manifest?: AvatarCompositionManifest): MenuItem[];
3093
+ interface CompositionWarning {
3094
+ code: string;
3095
+ message: string;
3096
+ operation?: string;
3097
+ query?: Selector;
3098
+ candidates?: string[];
3099
+ }
3100
+
3101
+ declare class MochiyaAvatarCompositionLoaderPlugin implements GLTFLoaderPlugin {
3102
+ readonly parser: GLTFParser;
3103
+ readonly name = "MOCHIYA_avatar_composition";
3104
+ constructor(parser: GLTFParser);
3105
+ afterRoot(gltf: GLTF): Promise<void>;
3106
+ }
3107
+ /** Explicit ownership; shared resources can be omitted and disposed by their host. */
3108
+ interface AvatarAssetResources {
3109
+ geometries?: Iterable<BufferGeometry>;
3110
+ skeletons?: Iterable<Skeleton>;
3111
+ materials?: Iterable<Material>;
3112
+ textures?: Iterable<Texture>;
3113
+ }
3114
+ declare class AvatarAsset {
3115
+ readonly scene: Object3D;
3116
+ readonly resources: Set<{
3117
+ dispose(): void;
3118
+ }>;
3119
+ disposed: boolean;
3120
+ readonly meshes: Mesh[];
3121
+ readonly bones: Bone[];
3122
+ readonly names: Map<Object3D<three.Object3DEventMap>, string[]>;
3123
+ readonly nodes: Map<number, Object3D<three.Object3DEventMap>>;
3124
+ readonly indices: Map<Object3D<three.Object3DEventMap>, number>;
3125
+ readonly primitiveSlots: Map<Mesh<BufferGeometry<three.NormalBufferAttributes, three.BufferGeometryEventMap>, Material<three.MaterialEventMap> | Material<three.MaterialEventMap>[], three.Object3DEventMap>, number>;
3126
+ readonly materials: Material[];
3127
+ readonly restWorld: Map<Object3D<three.Object3DEventMap>, Matrix4>;
3128
+ readonly authoredActive: Map<Object3D<three.Object3DEventMap>, boolean>;
3129
+ readonly authoredParents: Map<Object3D<three.Object3DEventMap>, Object3D<three.Object3DEventMap> | null>;
3130
+ readonly rootRestWorld: Matrix4;
3131
+ readonly manifest?: AvatarCompositionManifest;
3132
+ readonly vrm?: VRM;
3133
+ constructor(scene: Object3D, options?: {
3134
+ manifest?: ManifestInput;
3135
+ vrm?: VRM;
3136
+ nodes?: Map<number, Object3D>;
3137
+ materials?: Material[];
3138
+ aliases?: Map<Object3D, string[]>;
3139
+ authoredObjects?: Set<Object3D>;
3140
+ resources?: AvatarAssetResources;
3141
+ });
3142
+ nodeMeshes(node: Object3D): Mesh[];
3143
+ restAtCurrentRoot(node: Object3D): Matrix4;
3144
+ }
3145
+ /** Call after GLTFLoader.loadAsync/parseAsync resolves, with that loader's parser. */
3146
+ declare function prepareAvatarAsset(gltf: GLTF): Promise<AvatarAsset>;
3147
+ /** Dispose only after detaching this asset from a composition session. */
3148
+ declare function disposeAvatarAsset(asset: AvatarAsset): void;
3149
+
3150
+ declare function tokens(value: string): string[];
3151
+ declare function keywordScore(name: string, query: string): number;
3152
+ interface Match<T> {
3153
+ value?: T;
3154
+ warning?: CompositionWarning;
3155
+ }
3156
+ declare class NameResolver {
3157
+ readonly base: AvatarAsset;
3158
+ readonly self: AvatarAsset;
3159
+ constructor(base: AvatarAsset, self: AvatarAsset);
3160
+ asset(selector: Selector): AvatarAsset;
3161
+ node(selector: Selector, kind?: "bone" | "mesh" | "node"): Match<Object3D>;
3162
+ private pathMatches;
3163
+ private score;
3164
+ morph(selector: Selector): Match<{
3165
+ mesh: Mesh;
3166
+ index: number;
3167
+ }[]>;
3168
+ warning(query: Selector, candidates?: string[]): CompositionWarning;
3169
+ }
3170
+
3171
+ interface ResolvedOperation {
3172
+ componentId: string;
3173
+ operation: string;
3174
+ sourceNode?: number;
3175
+ target?: string;
3176
+ status: "resolved" | "skipped";
3177
+ query?: Selector;
3178
+ deletion?: {
3179
+ active: boolean;
3180
+ selectedVertices: number;
3181
+ removedTriangles: number;
3182
+ fallback?: string;
3183
+ };
3184
+ }
3185
+
3186
+ interface ItemState {
3187
+ id: string;
3188
+ visible?: boolean;
3189
+ layerOrder?: number;
3190
+ controls?: Record<string, number | boolean>;
3191
+ nodeVisibility?: Record<number, boolean>;
3192
+ }
3193
+ interface Attachment {
3194
+ id: string;
3195
+ asset: AvatarAsset;
3196
+ status: "attached" | "partial" | "unbound";
3197
+ warnings: CompositionWarning[];
3198
+ matchedBones: number;
3199
+ requestedBones: number;
3200
+ appliedActions: number;
3201
+ resolved: ResolvedOperation[];
3202
+ }
3203
+ declare function evaluateCurve(curve: RemapCurve | undefined, value: number): number;
3204
+ /** One session owns one live base. Use update(), or bracket a custom base update with the lifecycle hooks. */
3205
+ declare class AvatarCompositionSession {
3206
+ readonly base: AvatarAsset;
3207
+ private readonly items;
3208
+ private readonly layers;
3209
+ private readonly baseItem;
3210
+ private disposed;
3211
+ private mixer;
3212
+ private animation;
3213
+ private readonly userMorphs;
3214
+ private readonly meshOwners;
3215
+ private readonly morphWriters;
3216
+ private indexMorphs;
3217
+ private readonly deletion;
3218
+ constructor(options: {
3219
+ base: AvatarAsset;
3220
+ });
3221
+ get warnings(): readonly CompositionWarning[];
3222
+ get resolved(): readonly ResolvedOperation[];
3223
+ get attachments(): readonly Attachment[];
3224
+ attach(asset: AvatarAsset, state: ItemState): Attachment;
3225
+ setItemState(id: string, patch: Partial<Omit<ItemState, "id">>): void;
3226
+ setBaseControl(id: string, value: number | boolean): void;
3227
+ /** Use for explicit edits so removing an attachment never overwrites newer user values. */
3228
+ setBaseMorph(selector: Omit<Selector, "asset">, value: number): void;
3229
+ /** Whether an active component currently owns this mesh weight. Geometry deletion alone does not drive it. */
3230
+ isMorphControlled(mesh: Mesh, index: number): boolean;
3231
+ /** Edit any session-owned mesh without overriding a composition-driven weight. */
3232
+ setMorph(mesh: Mesh, index: number, value: number, options?: {
3233
+ deferEvaluation?: boolean;
3234
+ }): boolean;
3235
+ /** Supply a clip retargeted to the base. Attachments follow the base through composition. */
3236
+ setAnimation(clip: AnimationClip | null, time?: number): void;
3237
+ get animationTime(): number;
3238
+ /** Complete frame lifecycle; use instead of separately advancing base and attachment VRMs. */
3239
+ update(delta: number, paused?: boolean): void;
3240
+ beforeVrmUpdate(): void;
3241
+ afterVrmUpdate(delta: number): void;
3242
+ detach(id: string): void;
3243
+ dispose(): void;
3244
+ private requireLive;
3245
+ private state;
3246
+ private orderedItems;
3247
+ private take;
3248
+ private bindRig;
3249
+ private compileComponents;
3250
+ private refreshSprings;
3251
+ private logicalActive;
3252
+ private condition;
3253
+ private morphBinding;
3254
+ private visibleBinding;
3255
+ private compile;
3256
+ private checkGraph;
3257
+ private write;
3258
+ private restoreLayers;
3259
+ private evaluate;
3260
+ }
3261
+
3262
+ export { ASSET_KINDS, type AssetKind, type Attachment, AvatarAsset, type AvatarAssetResources, type AvatarCompositionManifest, AvatarCompositionSession, CAPABILITIES, type CompositionComponent, CompositionError, type CompositionWarning, type Condition, EXTENSION_NAME, type ItemState, type ManifestInput, type Match, type MenuItem, type MergeArmature, MochiyaAvatarCompositionLoaderPlugin, NameResolver, type RemapCurve, type ResolvedOperation, SPEC_VERSION, type Selector, componentSchema, conditionSchema, curveSchema, disposeAvatarAsset, evaluateCurve, keywordScore, manifestSchema, menuItems, parseManifest, prepareAvatarAsset, selectorSchema, tokens };