@laplace.live/persona-sdk 1.6.0 → 1.7.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.
@@ -9,7 +9,7 @@ export declare function fileBasename(path: string): string;
9
9
  export declare function motionLabel(file: string): string;
10
10
  /** English label for one automation action kind; kinds newer than this SDK read `Action`. */
11
11
  export declare function automationActionLabel(kind: string): string;
12
- /** True for a Wait or Switch Scene: the kinds that end an action batch. */
12
+ /** True for an action that ends a batch and waits before continuing. */
13
13
  export declare function isAutomationBoundary(kind: string | undefined): kind is AutomationBoundaryKind;
14
14
  /**
15
15
  * Join one automation's action labels: a batch boundary reads as an arrow, while actions
@@ -22,13 +22,18 @@ const AUTOMATION_ACTION_KIND_LABELS = {
22
22
  'layer-visibility': 'Layer Visibility',
23
23
  'stream-mode': 'Stream Mode',
24
24
  'switch-scene': 'Switch Scene',
25
+ 'toggle-expression': 'Toggle Expression',
26
+ 'play-motion': 'Play Motion',
27
+ 'remove-all-expressions': 'Clear All Expressions',
28
+ 'load-model': 'Swap Model',
29
+ 'model-position': 'Model Position',
25
30
  delay: 'Wait',
26
31
  };
27
32
  /** English label for one automation action kind; kinds newer than this SDK read `Action`. */
28
33
  export function automationActionLabel(kind) {
29
34
  return AUTOMATION_ACTION_KIND_LABELS[kind] ?? 'Action';
30
35
  }
31
- /** True for a Wait or Switch Scene: the kinds that end an action batch. */
36
+ /** True for an action that ends a batch and waits before continuing. */
32
37
  export function isAutomationBoundary(kind) {
33
38
  return isOneOf(kind, AUTOMATION_BOUNDARY_KINDS);
34
39
  }
@@ -969,10 +969,10 @@ export interface HotkeyState extends HotkeyConfig {
969
969
  registered: string[];
970
970
  }
971
971
  /** Action kinds an app automation can carry today; servers may send kinds newer than this list. */
972
- export declare const AUTOMATION_ACTION_KINDS: readonly ["effect-toggle", "effect-params", "camera-pose", "reset-camera", "layer-visibility", "stream-mode", "switch-scene", "delay"];
972
+ export declare const AUTOMATION_ACTION_KINDS: readonly ["effect-toggle", "effect-params", "camera-pose", "reset-camera", "layer-visibility", "stream-mode", "switch-scene", "toggle-expression", "play-motion", "remove-all-expressions", "load-model", "model-position", "delay"];
973
973
  export type AutomationActionKind = (typeof AUTOMATION_ACTION_KINDS)[number];
974
974
  /** Kinds that end an action batch: the actions after one wait until it finishes. */
975
- export declare const AUTOMATION_BOUNDARY_KINDS: readonly ["switch-scene", "delay"];
975
+ export declare const AUTOMATION_BOUNDARY_KINDS: readonly ["switch-scene", "load-model", "delay"];
976
976
  export type AutomationBoundaryKind = (typeof AUTOMATION_BOUNDARY_KINDS)[number];
977
977
  /**
978
978
  * One app automation as clients see it. Action kinds and scene targets drive derived
@@ -52,10 +52,19 @@ export const AUTOMATION_ACTION_KINDS = [
52
52
  'layer-visibility',
53
53
  'stream-mode',
54
54
  'switch-scene',
55
+ 'toggle-expression',
56
+ 'play-motion',
57
+ 'remove-all-expressions',
58
+ 'load-model',
59
+ 'model-position',
55
60
  'delay',
56
61
  ];
57
62
  /** Kinds that end an action batch: the actions after one wait until it finishes. */
58
- export const AUTOMATION_BOUNDARY_KINDS = ['switch-scene', 'delay'];
63
+ export const AUTOMATION_BOUNDARY_KINDS = [
64
+ 'switch-scene',
65
+ 'load-model',
66
+ 'delay',
67
+ ];
59
68
  // ---- Settings ------------------------------------------------------------------
60
69
  export const LIVE2D_ENGINES = ['pixi', 'three'];
61
70
  export const TRACKING_SOURCE_IDS = ['persona-ios', 'ifacialmocap', 'vts-ios'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/persona-sdk",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "TypeScript SDK and wire schema for the LAPLACE Persona plugin API",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  "node": ">=24"
35
35
  },
36
36
  "dependencies": {
37
- "zod": "^4.5.4"
37
+ "zod": "^4.6.1"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "rimraf dist && tsc -p tsconfig.build.json",