@laplace.live/persona-sdk 0.16.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/values/labels.js +2 -0
- package/dist/values/limits.d.ts +3 -0
- package/dist/values/limits.js +3 -0
- package/dist/wire/types.d.ts +4 -3
- package/dist/wire/types.js +11 -2
- package/package.json +2 -2
package/dist/values/labels.js
CHANGED
|
@@ -12,7 +12,9 @@ const SHORTCUT_ACTION_KIND_LABELS = {
|
|
|
12
12
|
'effect-toggle': 'Toggle Effect',
|
|
13
13
|
'effect-params': 'Effect Settings',
|
|
14
14
|
'camera-pose': 'Camera Position',
|
|
15
|
+
'reset-camera': 'Reset Camera',
|
|
15
16
|
'layer-visibility': 'Layer Visibility',
|
|
17
|
+
'stream-mode': 'Stream Mode',
|
|
16
18
|
};
|
|
17
19
|
/** English label for one shortcut action kind; kinds newer than this SDK read `Action`. */
|
|
18
20
|
export function shortcutActionLabel(kind) {
|
package/dist/values/limits.d.ts
CHANGED
|
@@ -37,6 +37,9 @@ export declare function sceneLightShadowRadiusMax(type: SceneLightType): number;
|
|
|
37
37
|
export declare const SCENE_FOG_DENSITY_MAX = 0.5;
|
|
38
38
|
/** ×4 is +2 stops — enough to rescue an AgX-dimmed avatar without turning the slider to mush. */
|
|
39
39
|
export declare const SCENE_EXPOSURE_MAX = 4;
|
|
40
|
+
/** Vertical field of view in degrees; the band either side of a portrait lens, before the framing distorts. */
|
|
41
|
+
export declare const SCENE_FOV_MIN = 10;
|
|
42
|
+
export declare const SCENE_FOV_MAX = 90;
|
|
40
43
|
export declare const MTOON_NORMAL_SCALE_MAX = 2;
|
|
41
44
|
export declare const MTOON_RIM_MAX = 2;
|
|
42
45
|
/** ×0 flattens the Fresnel to a flood fill, ×4 tightens a default power-5 rim to a hairline. */
|
package/dist/values/limits.js
CHANGED
|
@@ -52,6 +52,9 @@ export function sceneLightShadowRadiusMax(type) {
|
|
|
52
52
|
export const SCENE_FOG_DENSITY_MAX = 0.5;
|
|
53
53
|
/** ×4 is +2 stops — enough to rescue an AgX-dimmed avatar without turning the slider to mush. */
|
|
54
54
|
export const SCENE_EXPOSURE_MAX = 4;
|
|
55
|
+
/** Vertical field of view in degrees; the band either side of a portrait lens, before the framing distorts. */
|
|
56
|
+
export const SCENE_FOV_MIN = 10;
|
|
57
|
+
export const SCENE_FOV_MAX = 90;
|
|
55
58
|
export const MTOON_NORMAL_SCALE_MAX = 2;
|
|
56
59
|
export const MTOON_RIM_MAX = 2;
|
|
57
60
|
/** ×0 flattens the Fresnel to a flood fill, ×4 tightens a default power-5 rim to a hairline. */
|
package/dist/wire/types.d.ts
CHANGED
|
@@ -792,7 +792,7 @@ export interface HotkeyState extends HotkeyConfig {
|
|
|
792
792
|
registered: string[];
|
|
793
793
|
}
|
|
794
794
|
/** Action kinds an app shortcut can carry today; servers may send kinds newer than this list. */
|
|
795
|
-
export declare const SHORTCUT_ACTION_KINDS: readonly ["effect-toggle", "effect-params", "camera-pose", "layer-visibility"];
|
|
795
|
+
export declare const SHORTCUT_ACTION_KINDS: readonly ["effect-toggle", "effect-params", "camera-pose", "reset-camera", "layer-visibility", "stream-mode"];
|
|
796
796
|
export type ShortcutActionKind = (typeof SHORTCUT_ACTION_KINDS)[number];
|
|
797
797
|
/**
|
|
798
798
|
* One app-level global shortcut (a multi-action macro) as clients see it. Action
|
|
@@ -857,6 +857,7 @@ export type EffectsQuality = (typeof EFFECTS_QUALITY_LEVELS)[number];
|
|
|
857
857
|
export declare const FPS_LIMIT_PRESETS: readonly [0, 15, 30, 60, 90];
|
|
858
858
|
/** The curated settings surface the API exposes — never the raw store shape. */
|
|
859
859
|
export interface Settings {
|
|
860
|
+
/** `alwaysOnTop` floats the control-panel window, never the stage. */
|
|
860
861
|
window: {
|
|
861
862
|
alwaysOnTop: boolean;
|
|
862
863
|
};
|
|
@@ -896,8 +897,8 @@ export interface SettingsPatch {
|
|
|
896
897
|
effectsQuality?: EffectsQuality;
|
|
897
898
|
};
|
|
898
899
|
}
|
|
899
|
-
/** VTS's input vocabulary — the valid `id`s for `input` inject targets (and the names a model's `.vtube.json` references). */
|
|
900
|
-
export declare const INPUT_NAMES: readonly ["FaceAngleX", "FaceAngleY", "FaceAngleZ", "FacePositionX", "FacePositionY", "FacePositionZ", "EyeOpenLeft", "EyeOpenRight", "EyeLeftX", "EyeLeftY", "EyeRightX", "EyeRightY", "Brows", "BrowLeftY", "BrowRightY", "MouthSmile", "MouthOpen", "MouthX", "CheekPuff", "JawOpen", "TongueOut", "MouthPucker", "MouthFunnel", "MouthShrug", "MouthPress"];
|
|
900
|
+
/** VTS's input vocabulary plus the VBridger-standard extras — the valid `id`s for `input` inject targets (and the names a model's `.vtube.json` references). */
|
|
901
|
+
export declare const INPUT_NAMES: readonly ["FaceAngleX", "FaceAngleY", "FaceAngleZ", "FacePositionX", "FacePositionY", "FacePositionZ", "EyeOpenLeft", "EyeOpenRight", "EyeLeftX", "EyeLeftY", "EyeRightX", "EyeRightY", "Brows", "BrowLeftY", "BrowRightY", "MouthSmile", "MouthOpen", "MouthX", "CheekPuff", "JawOpen", "JawX", "TongueOut", "MouthPucker", "MouthFunnel", "MouthShrug", "MouthPress", "MouthPressLipOpen"];
|
|
901
902
|
export type InputName = (typeof INPUT_NAMES)[number];
|
|
902
903
|
/**
|
|
903
904
|
* What an injected value drives:
|
package/dist/wire/types.js
CHANGED
|
@@ -28,7 +28,14 @@ export function isAppCapability(v) {
|
|
|
28
28
|
}
|
|
29
29
|
// ---- App shortcuts --------------------------------------------------------------
|
|
30
30
|
/** Action kinds an app shortcut can carry today; servers may send kinds newer than this list. */
|
|
31
|
-
export const SHORTCUT_ACTION_KINDS = [
|
|
31
|
+
export const SHORTCUT_ACTION_KINDS = [
|
|
32
|
+
'effect-toggle',
|
|
33
|
+
'effect-params',
|
|
34
|
+
'camera-pose',
|
|
35
|
+
'reset-camera',
|
|
36
|
+
'layer-visibility',
|
|
37
|
+
'stream-mode',
|
|
38
|
+
];
|
|
32
39
|
// ---- Settings ------------------------------------------------------------------
|
|
33
40
|
export const TRACKING_SOURCE_IDS = ['vts-ios', 'vts-ios-native', 'ifacialmocap'];
|
|
34
41
|
/** Body-pose protocols. Every one so far is UDP with a configurable port. */
|
|
@@ -46,7 +53,7 @@ export const EFFECTS_QUALITY_LEVELS = ['low', 'medium', 'high'];
|
|
|
46
53
|
*/
|
|
47
54
|
export const FPS_LIMIT_PRESETS = [0, 15, 30, 60, 90];
|
|
48
55
|
// ---- Injection -----------------------------------------------------------------
|
|
49
|
-
/** VTS's input vocabulary — the valid `id`s for `input` inject targets (and the names a model's `.vtube.json` references). */
|
|
56
|
+
/** VTS's input vocabulary plus the VBridger-standard extras — the valid `id`s for `input` inject targets (and the names a model's `.vtube.json` references). */
|
|
50
57
|
export const INPUT_NAMES = [
|
|
51
58
|
'FaceAngleX',
|
|
52
59
|
'FaceAngleY',
|
|
@@ -68,9 +75,11 @@ export const INPUT_NAMES = [
|
|
|
68
75
|
'MouthX',
|
|
69
76
|
'CheekPuff',
|
|
70
77
|
'JawOpen',
|
|
78
|
+
'JawX',
|
|
71
79
|
'TongueOut',
|
|
72
80
|
'MouthPucker',
|
|
73
81
|
'MouthFunnel',
|
|
74
82
|
'MouthShrug',
|
|
75
83
|
'MouthPress',
|
|
84
|
+
'MouthPressLipOpen',
|
|
76
85
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@laplace.live/persona-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "TypeScript SDK and wire schema for the LAPLACE Persona plugin API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"node": ">=22"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"zod": "^4.
|
|
51
|
+
"zod": "^4.5.2"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "rimraf dist && tsc -p tsconfig.build.json",
|