@character-foundry/character-foundry 0.4.2 → 0.4.3-dev.1766103111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charx.cjs +87 -54
- package/dist/charx.cjs.map +1 -1
- package/dist/charx.d.cts +40 -31
- package/dist/charx.d.ts +40 -31
- package/dist/charx.js +87 -54
- package/dist/charx.js.map +1 -1
- package/dist/exporter.cjs +106 -56
- package/dist/exporter.cjs.map +1 -1
- package/dist/exporter.d.cts +37 -28
- package/dist/exporter.d.ts +37 -28
- package/dist/exporter.js +106 -56
- package/dist/exporter.js.map +1 -1
- package/dist/federation.cjs +104 -36
- package/dist/federation.cjs.map +1 -1
- package/dist/federation.d.cts +72 -28
- package/dist/federation.d.ts +72 -28
- package/dist/federation.js +104 -36
- package/dist/federation.js.map +1 -1
- package/dist/index.cjs +106 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -50
- package/dist/index.d.ts +71 -50
- package/dist/index.js +106 -56
- package/dist/index.js.map +1 -1
- package/dist/loader.cjs +173 -33
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.d.cts +65 -37
- package/dist/loader.d.ts +65 -37
- package/dist/loader.js +173 -33
- package/dist/loader.js.map +1 -1
- package/dist/lorebook.d.cts +57 -40
- package/dist/lorebook.d.ts +57 -40
- package/dist/normalizer.cjs +74 -20
- package/dist/normalizer.cjs.map +1 -1
- package/dist/normalizer.d.cts +97 -67
- package/dist/normalizer.d.ts +97 -67
- package/dist/normalizer.js +74 -20
- package/dist/normalizer.js.map +1 -1
- package/dist/png.cjs +74 -20
- package/dist/png.cjs.map +1 -1
- package/dist/png.d.cts +57 -41
- package/dist/png.d.ts +57 -41
- package/dist/png.js +74 -20
- package/dist/png.js.map +1 -1
- package/dist/schemas.cjs +82 -25
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +181 -115
- package/dist/schemas.d.ts +181 -115
- package/dist/schemas.js +82 -25
- package/dist/schemas.js.map +1 -1
- package/dist/voxta.cjs +93 -22
- package/dist/voxta.cjs.map +1 -1
- package/dist/voxta.d.cts +51 -37
- package/dist/voxta.d.ts +51 -37
- package/dist/voxta.js +93 -22
- package/dist/voxta.js.map +1 -1
- package/package.json +5 -5
package/dist/png.d.cts
CHANGED
|
@@ -31,8 +31,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
31
31
|
character_book: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
32
32
|
name: z.ZodOptional<z.ZodString>;
|
|
33
33
|
description: z.ZodOptional<z.ZodString>;
|
|
34
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
35
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
36
36
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
38
38
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -51,7 +51,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
51
51
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
52
52
|
z.ZodEnum<[
|
|
53
53
|
"before_char",
|
|
54
|
-
"after_char"
|
|
54
|
+
"after_char",
|
|
55
|
+
"in_chat"
|
|
55
56
|
]>,
|
|
56
57
|
z.ZodNumber,
|
|
57
58
|
z.ZodLiteral<"">
|
|
@@ -94,7 +95,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
94
95
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
95
96
|
z.ZodEnum<[
|
|
96
97
|
"before_char",
|
|
97
|
-
"after_char"
|
|
98
|
+
"after_char",
|
|
99
|
+
"in_chat"
|
|
98
100
|
]>,
|
|
99
101
|
z.ZodNumber,
|
|
100
102
|
z.ZodLiteral<"">
|
|
@@ -137,7 +139,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
137
139
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
138
140
|
z.ZodEnum<[
|
|
139
141
|
"before_char",
|
|
140
|
-
"after_char"
|
|
142
|
+
"after_char",
|
|
143
|
+
"in_chat"
|
|
141
144
|
]>,
|
|
142
145
|
z.ZodNumber,
|
|
143
146
|
z.ZodLiteral<"">
|
|
@@ -182,7 +185,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
182
185
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
183
186
|
z.ZodEnum<[
|
|
184
187
|
"before_char",
|
|
185
|
-
"after_char"
|
|
188
|
+
"after_char",
|
|
189
|
+
"in_chat"
|
|
186
190
|
]>,
|
|
187
191
|
z.ZodNumber,
|
|
188
192
|
z.ZodLiteral<"">
|
|
@@ -233,7 +237,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
233
237
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
234
238
|
z.ZodEnum<[
|
|
235
239
|
"before_char",
|
|
236
|
-
"after_char"
|
|
240
|
+
"after_char",
|
|
241
|
+
"in_chat"
|
|
237
242
|
]>,
|
|
238
243
|
z.ZodNumber,
|
|
239
244
|
z.ZodLiteral<"">
|
|
@@ -263,14 +268,14 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
263
268
|
}, z.ZodTypeAny, "passthrough">[];
|
|
264
269
|
name?: string | undefined;
|
|
265
270
|
description?: string | undefined;
|
|
266
|
-
scan_depth?:
|
|
267
|
-
token_budget?:
|
|
271
|
+
scan_depth?: unknown;
|
|
272
|
+
token_budget?: unknown;
|
|
268
273
|
recursive_scanning?: boolean | undefined;
|
|
269
274
|
extensions?: Record<string, unknown> | undefined;
|
|
270
275
|
}>>>;
|
|
271
276
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
272
277
|
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
273
|
-
type: z.ZodEnum<[
|
|
278
|
+
type: z.ZodEffects<z.ZodEnum<[
|
|
274
279
|
"icon",
|
|
275
280
|
"background",
|
|
276
281
|
"emotion",
|
|
@@ -279,7 +284,7 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
279
284
|
"video",
|
|
280
285
|
"custom",
|
|
281
286
|
"x-risu-asset"
|
|
282
|
-
]>;
|
|
287
|
+
]>, "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset", unknown>;
|
|
283
288
|
uri: z.ZodString;
|
|
284
289
|
name: z.ZodString;
|
|
285
290
|
ext: z.ZodString;
|
|
@@ -290,15 +295,15 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
290
295
|
ext: string;
|
|
291
296
|
}, {
|
|
292
297
|
name: string;
|
|
293
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
294
298
|
uri: string;
|
|
295
299
|
ext: string;
|
|
300
|
+
type?: unknown;
|
|
296
301
|
}>, "many">>;
|
|
297
302
|
nickname: z.ZodOptional<z.ZodString>;
|
|
298
303
|
creator_notes_multilingual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
299
304
|
source: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
300
|
-
creation_date: z.ZodOptional<z.ZodNumber>;
|
|
301
|
-
modification_date: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
creation_date: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
306
|
+
modification_date: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
302
307
|
}, "strip", z.ZodTypeAny, {
|
|
303
308
|
name: string;
|
|
304
309
|
description: string;
|
|
@@ -332,7 +337,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
332
337
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
333
338
|
z.ZodEnum<[
|
|
334
339
|
"before_char",
|
|
335
|
-
"after_char"
|
|
340
|
+
"after_char",
|
|
341
|
+
"in_chat"
|
|
336
342
|
]>,
|
|
337
343
|
z.ZodNumber,
|
|
338
344
|
z.ZodLiteral<"">
|
|
@@ -407,7 +413,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
407
413
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
408
414
|
z.ZodEnum<[
|
|
409
415
|
"before_char",
|
|
410
|
-
"after_char"
|
|
416
|
+
"after_char",
|
|
417
|
+
"in_chat"
|
|
411
418
|
]>,
|
|
412
419
|
z.ZodNumber,
|
|
413
420
|
z.ZodLiteral<"">
|
|
@@ -437,8 +444,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
437
444
|
}, z.ZodTypeAny, "passthrough">[];
|
|
438
445
|
name?: string | undefined;
|
|
439
446
|
description?: string | undefined;
|
|
440
|
-
scan_depth?:
|
|
441
|
-
token_budget?:
|
|
447
|
+
scan_depth?: unknown;
|
|
448
|
+
token_budget?: unknown;
|
|
442
449
|
recursive_scanning?: boolean | undefined;
|
|
443
450
|
extensions?: Record<string, unknown> | undefined;
|
|
444
451
|
} | null | undefined;
|
|
@@ -448,15 +455,15 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
448
455
|
group_only_greetings?: string[] | undefined;
|
|
449
456
|
assets?: {
|
|
450
457
|
name: string;
|
|
451
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
452
458
|
uri: string;
|
|
453
459
|
ext: string;
|
|
460
|
+
type?: unknown;
|
|
454
461
|
}[] | undefined;
|
|
455
462
|
nickname?: string | undefined;
|
|
456
463
|
creator_notes_multilingual?: Record<string, string> | undefined;
|
|
457
464
|
source?: string[] | undefined;
|
|
458
|
-
creation_date?:
|
|
459
|
-
modification_date?:
|
|
465
|
+
creation_date?: unknown;
|
|
466
|
+
modification_date?: unknown;
|
|
460
467
|
}>;
|
|
461
468
|
}, "strip", z.ZodTypeAny, {
|
|
462
469
|
data: {
|
|
@@ -492,7 +499,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
492
499
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
493
500
|
z.ZodEnum<[
|
|
494
501
|
"before_char",
|
|
495
|
-
"after_char"
|
|
502
|
+
"after_char",
|
|
503
|
+
"in_chat"
|
|
496
504
|
]>,
|
|
497
505
|
z.ZodNumber,
|
|
498
506
|
z.ZodLiteral<"">
|
|
@@ -571,7 +579,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
571
579
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
572
580
|
z.ZodEnum<[
|
|
573
581
|
"before_char",
|
|
574
|
-
"after_char"
|
|
582
|
+
"after_char",
|
|
583
|
+
"in_chat"
|
|
575
584
|
]>,
|
|
576
585
|
z.ZodNumber,
|
|
577
586
|
z.ZodLiteral<"">
|
|
@@ -601,8 +610,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
601
610
|
}, z.ZodTypeAny, "passthrough">[];
|
|
602
611
|
name?: string | undefined;
|
|
603
612
|
description?: string | undefined;
|
|
604
|
-
scan_depth?:
|
|
605
|
-
token_budget?:
|
|
613
|
+
scan_depth?: unknown;
|
|
614
|
+
token_budget?: unknown;
|
|
606
615
|
recursive_scanning?: boolean | undefined;
|
|
607
616
|
extensions?: Record<string, unknown> | undefined;
|
|
608
617
|
} | null | undefined;
|
|
@@ -612,15 +621,15 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
612
621
|
group_only_greetings?: string[] | undefined;
|
|
613
622
|
assets?: {
|
|
614
623
|
name: string;
|
|
615
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
616
624
|
uri: string;
|
|
617
625
|
ext: string;
|
|
626
|
+
type?: unknown;
|
|
618
627
|
}[] | undefined;
|
|
619
628
|
nickname?: string | undefined;
|
|
620
629
|
creator_notes_multilingual?: Record<string, string> | undefined;
|
|
621
630
|
source?: string[] | undefined;
|
|
622
|
-
creation_date?:
|
|
623
|
-
modification_date?:
|
|
631
|
+
creation_date?: unknown;
|
|
632
|
+
modification_date?: unknown;
|
|
624
633
|
};
|
|
625
634
|
spec: "chara_card_v3";
|
|
626
635
|
spec_version: "3.0";
|
|
@@ -651,8 +660,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
651
660
|
character_book: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
652
661
|
name: z.ZodOptional<z.ZodString>;
|
|
653
662
|
description: z.ZodOptional<z.ZodString>;
|
|
654
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
655
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
663
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
664
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
656
665
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
657
666
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
658
667
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -672,7 +681,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
672
681
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
673
682
|
z.ZodEnum<[
|
|
674
683
|
"before_char",
|
|
675
|
-
"after_char"
|
|
684
|
+
"after_char",
|
|
685
|
+
"in_chat"
|
|
676
686
|
]>,
|
|
677
687
|
z.ZodNumber,
|
|
678
688
|
z.ZodLiteral<"">
|
|
@@ -694,7 +704,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
694
704
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
695
705
|
z.ZodEnum<[
|
|
696
706
|
"before_char",
|
|
697
|
-
"after_char"
|
|
707
|
+
"after_char",
|
|
708
|
+
"in_chat"
|
|
698
709
|
]>,
|
|
699
710
|
z.ZodNumber,
|
|
700
711
|
z.ZodLiteral<"">
|
|
@@ -716,7 +727,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
716
727
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
717
728
|
z.ZodEnum<[
|
|
718
729
|
"before_char",
|
|
719
|
-
"after_char"
|
|
730
|
+
"after_char",
|
|
731
|
+
"in_chat"
|
|
720
732
|
]>,
|
|
721
733
|
z.ZodNumber,
|
|
722
734
|
z.ZodLiteral<"">
|
|
@@ -740,7 +752,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
740
752
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
741
753
|
z.ZodEnum<[
|
|
742
754
|
"before_char",
|
|
743
|
-
"after_char"
|
|
755
|
+
"after_char",
|
|
756
|
+
"in_chat"
|
|
744
757
|
]>,
|
|
745
758
|
z.ZodNumber,
|
|
746
759
|
z.ZodLiteral<"">
|
|
@@ -770,7 +783,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
770
783
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
771
784
|
z.ZodEnum<[
|
|
772
785
|
"before_char",
|
|
773
|
-
"after_char"
|
|
786
|
+
"after_char",
|
|
787
|
+
"in_chat"
|
|
774
788
|
]>,
|
|
775
789
|
z.ZodNumber,
|
|
776
790
|
z.ZodLiteral<"">
|
|
@@ -778,8 +792,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
778
792
|
}, z.ZodTypeAny, "passthrough">[];
|
|
779
793
|
name?: string | undefined;
|
|
780
794
|
description?: string | undefined;
|
|
781
|
-
scan_depth?:
|
|
782
|
-
token_budget?:
|
|
795
|
+
scan_depth?: unknown;
|
|
796
|
+
token_budget?: unknown;
|
|
783
797
|
recursive_scanning?: boolean | undefined;
|
|
784
798
|
extensions?: Record<string, unknown> | undefined;
|
|
785
799
|
}>>>;
|
|
@@ -817,7 +831,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
817
831
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
818
832
|
z.ZodEnum<[
|
|
819
833
|
"before_char",
|
|
820
|
-
"after_char"
|
|
834
|
+
"after_char",
|
|
835
|
+
"in_chat"
|
|
821
836
|
]>,
|
|
822
837
|
z.ZodNumber,
|
|
823
838
|
z.ZodLiteral<"">
|
|
@@ -863,7 +878,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
863
878
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
864
879
|
z.ZodEnum<[
|
|
865
880
|
"before_char",
|
|
866
|
-
"after_char"
|
|
881
|
+
"after_char",
|
|
882
|
+
"in_chat"
|
|
867
883
|
]>,
|
|
868
884
|
z.ZodNumber,
|
|
869
885
|
z.ZodLiteral<"">
|
|
@@ -871,8 +887,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
871
887
|
}, z.ZodTypeAny, "passthrough">[];
|
|
872
888
|
name?: string | undefined;
|
|
873
889
|
description?: string | undefined;
|
|
874
|
-
scan_depth?:
|
|
875
|
-
token_budget?:
|
|
890
|
+
scan_depth?: unknown;
|
|
891
|
+
token_budget?: unknown;
|
|
876
892
|
recursive_scanning?: boolean | undefined;
|
|
877
893
|
extensions?: Record<string, unknown> | undefined;
|
|
878
894
|
} | null | undefined;
|
package/dist/png.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
31
31
|
character_book: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
32
32
|
name: z.ZodOptional<z.ZodString>;
|
|
33
33
|
description: z.ZodOptional<z.ZodString>;
|
|
34
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
35
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
36
36
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
38
38
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -51,7 +51,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
51
51
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
52
52
|
z.ZodEnum<[
|
|
53
53
|
"before_char",
|
|
54
|
-
"after_char"
|
|
54
|
+
"after_char",
|
|
55
|
+
"in_chat"
|
|
55
56
|
]>,
|
|
56
57
|
z.ZodNumber,
|
|
57
58
|
z.ZodLiteral<"">
|
|
@@ -94,7 +95,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
94
95
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
95
96
|
z.ZodEnum<[
|
|
96
97
|
"before_char",
|
|
97
|
-
"after_char"
|
|
98
|
+
"after_char",
|
|
99
|
+
"in_chat"
|
|
98
100
|
]>,
|
|
99
101
|
z.ZodNumber,
|
|
100
102
|
z.ZodLiteral<"">
|
|
@@ -137,7 +139,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
137
139
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
138
140
|
z.ZodEnum<[
|
|
139
141
|
"before_char",
|
|
140
|
-
"after_char"
|
|
142
|
+
"after_char",
|
|
143
|
+
"in_chat"
|
|
141
144
|
]>,
|
|
142
145
|
z.ZodNumber,
|
|
143
146
|
z.ZodLiteral<"">
|
|
@@ -182,7 +185,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
182
185
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
183
186
|
z.ZodEnum<[
|
|
184
187
|
"before_char",
|
|
185
|
-
"after_char"
|
|
188
|
+
"after_char",
|
|
189
|
+
"in_chat"
|
|
186
190
|
]>,
|
|
187
191
|
z.ZodNumber,
|
|
188
192
|
z.ZodLiteral<"">
|
|
@@ -233,7 +237,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
233
237
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
234
238
|
z.ZodEnum<[
|
|
235
239
|
"before_char",
|
|
236
|
-
"after_char"
|
|
240
|
+
"after_char",
|
|
241
|
+
"in_chat"
|
|
237
242
|
]>,
|
|
238
243
|
z.ZodNumber,
|
|
239
244
|
z.ZodLiteral<"">
|
|
@@ -263,14 +268,14 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
263
268
|
}, z.ZodTypeAny, "passthrough">[];
|
|
264
269
|
name?: string | undefined;
|
|
265
270
|
description?: string | undefined;
|
|
266
|
-
scan_depth?:
|
|
267
|
-
token_budget?:
|
|
271
|
+
scan_depth?: unknown;
|
|
272
|
+
token_budget?: unknown;
|
|
268
273
|
recursive_scanning?: boolean | undefined;
|
|
269
274
|
extensions?: Record<string, unknown> | undefined;
|
|
270
275
|
}>>>;
|
|
271
276
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
272
277
|
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
273
|
-
type: z.ZodEnum<[
|
|
278
|
+
type: z.ZodEffects<z.ZodEnum<[
|
|
274
279
|
"icon",
|
|
275
280
|
"background",
|
|
276
281
|
"emotion",
|
|
@@ -279,7 +284,7 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
279
284
|
"video",
|
|
280
285
|
"custom",
|
|
281
286
|
"x-risu-asset"
|
|
282
|
-
]>;
|
|
287
|
+
]>, "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset", unknown>;
|
|
283
288
|
uri: z.ZodString;
|
|
284
289
|
name: z.ZodString;
|
|
285
290
|
ext: z.ZodString;
|
|
@@ -290,15 +295,15 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
290
295
|
ext: string;
|
|
291
296
|
}, {
|
|
292
297
|
name: string;
|
|
293
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
294
298
|
uri: string;
|
|
295
299
|
ext: string;
|
|
300
|
+
type?: unknown;
|
|
296
301
|
}>, "many">>;
|
|
297
302
|
nickname: z.ZodOptional<z.ZodString>;
|
|
298
303
|
creator_notes_multilingual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
299
304
|
source: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
300
|
-
creation_date: z.ZodOptional<z.ZodNumber>;
|
|
301
|
-
modification_date: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
creation_date: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
306
|
+
modification_date: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
302
307
|
}, "strip", z.ZodTypeAny, {
|
|
303
308
|
name: string;
|
|
304
309
|
description: string;
|
|
@@ -332,7 +337,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
332
337
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
333
338
|
z.ZodEnum<[
|
|
334
339
|
"before_char",
|
|
335
|
-
"after_char"
|
|
340
|
+
"after_char",
|
|
341
|
+
"in_chat"
|
|
336
342
|
]>,
|
|
337
343
|
z.ZodNumber,
|
|
338
344
|
z.ZodLiteral<"">
|
|
@@ -407,7 +413,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
407
413
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
408
414
|
z.ZodEnum<[
|
|
409
415
|
"before_char",
|
|
410
|
-
"after_char"
|
|
416
|
+
"after_char",
|
|
417
|
+
"in_chat"
|
|
411
418
|
]>,
|
|
412
419
|
z.ZodNumber,
|
|
413
420
|
z.ZodLiteral<"">
|
|
@@ -437,8 +444,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
437
444
|
}, z.ZodTypeAny, "passthrough">[];
|
|
438
445
|
name?: string | undefined;
|
|
439
446
|
description?: string | undefined;
|
|
440
|
-
scan_depth?:
|
|
441
|
-
token_budget?:
|
|
447
|
+
scan_depth?: unknown;
|
|
448
|
+
token_budget?: unknown;
|
|
442
449
|
recursive_scanning?: boolean | undefined;
|
|
443
450
|
extensions?: Record<string, unknown> | undefined;
|
|
444
451
|
} | null | undefined;
|
|
@@ -448,15 +455,15 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
448
455
|
group_only_greetings?: string[] | undefined;
|
|
449
456
|
assets?: {
|
|
450
457
|
name: string;
|
|
451
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
452
458
|
uri: string;
|
|
453
459
|
ext: string;
|
|
460
|
+
type?: unknown;
|
|
454
461
|
}[] | undefined;
|
|
455
462
|
nickname?: string | undefined;
|
|
456
463
|
creator_notes_multilingual?: Record<string, string> | undefined;
|
|
457
464
|
source?: string[] | undefined;
|
|
458
|
-
creation_date?:
|
|
459
|
-
modification_date?:
|
|
465
|
+
creation_date?: unknown;
|
|
466
|
+
modification_date?: unknown;
|
|
460
467
|
}>;
|
|
461
468
|
}, "strip", z.ZodTypeAny, {
|
|
462
469
|
data: {
|
|
@@ -492,7 +499,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
492
499
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
493
500
|
z.ZodEnum<[
|
|
494
501
|
"before_char",
|
|
495
|
-
"after_char"
|
|
502
|
+
"after_char",
|
|
503
|
+
"in_chat"
|
|
496
504
|
]>,
|
|
497
505
|
z.ZodNumber,
|
|
498
506
|
z.ZodLiteral<"">
|
|
@@ -571,7 +579,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
571
579
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
572
580
|
z.ZodEnum<[
|
|
573
581
|
"before_char",
|
|
574
|
-
"after_char"
|
|
582
|
+
"after_char",
|
|
583
|
+
"in_chat"
|
|
575
584
|
]>,
|
|
576
585
|
z.ZodNumber,
|
|
577
586
|
z.ZodLiteral<"">
|
|
@@ -601,8 +610,8 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
601
610
|
}, z.ZodTypeAny, "passthrough">[];
|
|
602
611
|
name?: string | undefined;
|
|
603
612
|
description?: string | undefined;
|
|
604
|
-
scan_depth?:
|
|
605
|
-
token_budget?:
|
|
613
|
+
scan_depth?: unknown;
|
|
614
|
+
token_budget?: unknown;
|
|
606
615
|
recursive_scanning?: boolean | undefined;
|
|
607
616
|
extensions?: Record<string, unknown> | undefined;
|
|
608
617
|
} | null | undefined;
|
|
@@ -612,15 +621,15 @@ declare const CCv3DataSchema: z.ZodObject<{
|
|
|
612
621
|
group_only_greetings?: string[] | undefined;
|
|
613
622
|
assets?: {
|
|
614
623
|
name: string;
|
|
615
|
-
type: "custom" | "icon" | "background" | "emotion" | "user_icon" | "sound" | "video" | "x-risu-asset";
|
|
616
624
|
uri: string;
|
|
617
625
|
ext: string;
|
|
626
|
+
type?: unknown;
|
|
618
627
|
}[] | undefined;
|
|
619
628
|
nickname?: string | undefined;
|
|
620
629
|
creator_notes_multilingual?: Record<string, string> | undefined;
|
|
621
630
|
source?: string[] | undefined;
|
|
622
|
-
creation_date?:
|
|
623
|
-
modification_date?:
|
|
631
|
+
creation_date?: unknown;
|
|
632
|
+
modification_date?: unknown;
|
|
624
633
|
};
|
|
625
634
|
spec: "chara_card_v3";
|
|
626
635
|
spec_version: "3.0";
|
|
@@ -651,8 +660,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
651
660
|
character_book: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
652
661
|
name: z.ZodOptional<z.ZodString>;
|
|
653
662
|
description: z.ZodOptional<z.ZodString>;
|
|
654
|
-
scan_depth: z.ZodOptional<z.ZodNumber>;
|
|
655
|
-
token_budget: z.ZodOptional<z.ZodNumber>;
|
|
663
|
+
scan_depth: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
664
|
+
token_budget: z.ZodEffects<z.ZodOptional<z.ZodNumber>, number | undefined, unknown>;
|
|
656
665
|
recursive_scanning: z.ZodOptional<z.ZodBoolean>;
|
|
657
666
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
658
667
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -672,7 +681,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
672
681
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
673
682
|
z.ZodEnum<[
|
|
674
683
|
"before_char",
|
|
675
|
-
"after_char"
|
|
684
|
+
"after_char",
|
|
685
|
+
"in_chat"
|
|
676
686
|
]>,
|
|
677
687
|
z.ZodNumber,
|
|
678
688
|
z.ZodLiteral<"">
|
|
@@ -694,7 +704,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
694
704
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
695
705
|
z.ZodEnum<[
|
|
696
706
|
"before_char",
|
|
697
|
-
"after_char"
|
|
707
|
+
"after_char",
|
|
708
|
+
"in_chat"
|
|
698
709
|
]>,
|
|
699
710
|
z.ZodNumber,
|
|
700
711
|
z.ZodLiteral<"">
|
|
@@ -716,7 +727,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
716
727
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
717
728
|
z.ZodEnum<[
|
|
718
729
|
"before_char",
|
|
719
|
-
"after_char"
|
|
730
|
+
"after_char",
|
|
731
|
+
"in_chat"
|
|
720
732
|
]>,
|
|
721
733
|
z.ZodNumber,
|
|
722
734
|
z.ZodLiteral<"">
|
|
@@ -740,7 +752,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
740
752
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
741
753
|
z.ZodEnum<[
|
|
742
754
|
"before_char",
|
|
743
|
-
"after_char"
|
|
755
|
+
"after_char",
|
|
756
|
+
"in_chat"
|
|
744
757
|
]>,
|
|
745
758
|
z.ZodNumber,
|
|
746
759
|
z.ZodLiteral<"">
|
|
@@ -770,7 +783,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
770
783
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
771
784
|
z.ZodEnum<[
|
|
772
785
|
"before_char",
|
|
773
|
-
"after_char"
|
|
786
|
+
"after_char",
|
|
787
|
+
"in_chat"
|
|
774
788
|
]>,
|
|
775
789
|
z.ZodNumber,
|
|
776
790
|
z.ZodLiteral<"">
|
|
@@ -778,8 +792,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
778
792
|
}, z.ZodTypeAny, "passthrough">[];
|
|
779
793
|
name?: string | undefined;
|
|
780
794
|
description?: string | undefined;
|
|
781
|
-
scan_depth?:
|
|
782
|
-
token_budget?:
|
|
795
|
+
scan_depth?: unknown;
|
|
796
|
+
token_budget?: unknown;
|
|
783
797
|
recursive_scanning?: boolean | undefined;
|
|
784
798
|
extensions?: Record<string, unknown> | undefined;
|
|
785
799
|
}>>>;
|
|
@@ -817,7 +831,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
817
831
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
818
832
|
z.ZodEnum<[
|
|
819
833
|
"before_char",
|
|
820
|
-
"after_char"
|
|
834
|
+
"after_char",
|
|
835
|
+
"in_chat"
|
|
821
836
|
]>,
|
|
822
837
|
z.ZodNumber,
|
|
823
838
|
z.ZodLiteral<"">
|
|
@@ -863,7 +878,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
863
878
|
position: z.ZodOptional<z.ZodNullable<z.ZodUnion<[
|
|
864
879
|
z.ZodEnum<[
|
|
865
880
|
"before_char",
|
|
866
|
-
"after_char"
|
|
881
|
+
"after_char",
|
|
882
|
+
"in_chat"
|
|
867
883
|
]>,
|
|
868
884
|
z.ZodNumber,
|
|
869
885
|
z.ZodLiteral<"">
|
|
@@ -871,8 +887,8 @@ declare const CCv2DataSchema: z.ZodObject<{
|
|
|
871
887
|
}, z.ZodTypeAny, "passthrough">[];
|
|
872
888
|
name?: string | undefined;
|
|
873
889
|
description?: string | undefined;
|
|
874
|
-
scan_depth?:
|
|
875
|
-
token_budget?:
|
|
890
|
+
scan_depth?: unknown;
|
|
891
|
+
token_budget?: unknown;
|
|
876
892
|
recursive_scanning?: boolean | undefined;
|
|
877
893
|
extensions?: Record<string, unknown> | undefined;
|
|
878
894
|
} | null | undefined;
|