@3dverse/livelink.core 0.5.4 → 0.6.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.
@@ -3,7 +3,7 @@
3
3
  * This file has been generated automatically from its AsyncAPI spec file.
4
4
  * See : https://gitlab.com/3dverse/platform/libs/js/asyncapi-server-generator
5
5
  */
6
- import { AssignClientToScriptMessage, AuthenticationResponse, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ResizeResponse, ScreenSpaceRayQuery, ScreenSpaceRayResult, SessionAuth, SkeletonPoseMessage, UpdateEntitiesFromJsonMessage, ViewportConfigs } from "./messages/gateway";
6
+ import { AssignClientToScriptMessage, AuthenticationResponse, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, RemoveFilterMessage, ResizeResponse, ScreenSpaceRayQuery, ScreenSpaceRayResult, SessionAuth, SetFilterMessage, SkeletonPoseMessage, ToggleFilterMessage, UpdateEntitiesFromJsonMessage, ViewportConfigs } from "./messages/gateway";
7
7
  import { UUID, Vec2ui16 } from "../sources/types";
8
8
  /**
9
9
  * Message handlers interface.
@@ -152,6 +152,18 @@ export declare class GatewayMessageHandler extends EventTarget {
152
152
  * Send
153
153
  */
154
154
  removeComponents(removeComponentsCommand: RemoveComponentsCommand): void;
155
+ /**
156
+ * Send
157
+ */
158
+ setFilter(setFilterMessage: SetFilterMessage): void;
159
+ /**
160
+ * Send
161
+ */
162
+ toggleFilter(toggleFilterMessage: ToggleFilterMessage): void;
163
+ /**
164
+ * Send
165
+ */
166
+ removeFilter(removeFilterMessage: RemoveFilterMessage): void;
155
167
  /***************************************************************************
156
168
  * SCRIPT EVENTS (14)
157
169
  **************************************************************************/
@@ -161,4 +173,13 @@ export declare class GatewayMessageHandler extends EventTarget {
161
173
  _onScriptEventReceived({ data_view }: {
162
174
  data_view: DataView;
163
175
  }): void;
176
+ /***************************************************************************
177
+ * ASSET LOADING EVENT (15)
178
+ **************************************************************************/
179
+ /**
180
+ * Receive
181
+ */
182
+ _onAssetLoadingEventReceived({ data_view }: {
183
+ data_view: DataView;
184
+ }): void;
164
185
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ *
3
+ */
4
+ export type AssetLoadingEvent = {
5
+ loading_payloads: boolean;
6
+ pending_requests: number;
7
+ pending_scenes: number;
8
+ };
9
+ /**
10
+ *
11
+ */
12
+ export declare function deserialize_AssetLoadingEvent({ data_view }: {
13
+ data_view: DataView;
14
+ }): AssetLoadingEvent;
@@ -0,0 +1,56 @@
1
+ /**
2
+ *
3
+ */
4
+ export type SetFilterMessage = {
5
+ name: string;
6
+ rpn: string;
7
+ };
8
+ /**
9
+ *
10
+ */
11
+ export declare function compute_SetFilterMessage_size(setFilterCommand: SetFilterMessage): number;
12
+ /**
13
+ *
14
+ */
15
+ export declare function serialize_SetFilterMessage({ buffer, offset, setFilterMessage, }: {
16
+ buffer: ArrayBuffer;
17
+ offset: number;
18
+ setFilterMessage: SetFilterMessage;
19
+ }): void;
20
+ /**
21
+ *
22
+ */
23
+ export type ToggleFilterMessage = {
24
+ name: string;
25
+ enabled: boolean;
26
+ };
27
+ /**
28
+ *
29
+ */
30
+ export declare function compute_ToggleFilterMessage_size(toggleFilterMessage: ToggleFilterMessage): number;
31
+ /**
32
+ *
33
+ */
34
+ export declare function serialize_ToggleFilterMessage({ buffer, offset, toggleFilterMessage, }: {
35
+ buffer: ArrayBuffer;
36
+ offset: number;
37
+ toggleFilterMessage: ToggleFilterMessage;
38
+ }): void;
39
+ /**
40
+ *
41
+ */
42
+ export type RemoveFilterMessage = {
43
+ name: string;
44
+ };
45
+ /**
46
+ *
47
+ */
48
+ export declare function compute_RemoveFilterMessage_size(removeFilterMessage: RemoveFilterMessage): number;
49
+ /**
50
+ *
51
+ */
52
+ export declare function serialize_RemoveFilterMessage({ buffer, offset, removeFilterMessage, }: {
53
+ buffer: ArrayBuffer;
54
+ offset: number;
55
+ removeFilterMessage: RemoveFilterMessage;
56
+ }): void;
@@ -1,7 +1,9 @@
1
+ export * from "./AssetLoadingEvent";
1
2
  export * from "./AssignClientToScriptMessage";
2
3
  export * from "./AuthenticationResponse";
3
4
  export * from "./ClientConfig";
4
5
  export * from "./ClientConfigResponse";
6
+ export * from "./FilterCommands";
5
7
  export * from "./FireEventMessage";
6
8
  export * from "./FrameData";
7
9
  export * from "./HighlightEntitiesMessage";
package/dist/library.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var t=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var m=(e,i)=>{for(var r in i)t(e,r,{get:i[r],enumerable:!0})},u=(e,i,r,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of c(i))!p.call(e,n)&&n!==r&&t(e,n,{get:()=>i[n],enumerable:!(o=l(i,n))||o.enumerable});return e};var C=e=>u(t({},"__esModule",{value:!0}),e);var y={};m(y,{LivelinkCoreModule:()=>s});module.exports=C(y);var s=class e{static#e=null;static#i=null;static async init(){if(e.#e)return;let i=new Function("return import('https://storage.googleapis.com/livelink-prod/core/core.mjs');"),{LivelinkCore:r,CoreEnums:o}=await i();e.#e=r,e.#i=o,console.info("Livelink core initialized")}static get Core(){if(!e.#e)throw new Error("Livelink core not initialized");return e.#e}static get Enums(){if(!e.#i)throw new Error("Livelink core not initialized");return e.#i}};
1
+ "use strict";var i=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(e,r)=>{for(var o in r)i(e,o,{get:r[o],enumerable:!0})},m=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of a(r))!c.call(e,t)&&t!==o&&i(e,t,{get:()=>r[t],enumerable:!(n=p(r,t))||n.enumerable});return e};var u=e=>m(i({},"__esModule",{value:!0}),e);var y={};l(y,{LivelinkCoreModule:()=>s});module.exports=u(y);var C=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,s=class e{static#e=null;static#r=null;static async init(){if(e.#e)return;let r=await e.createImporter(),{LivelinkCore:o,CoreEnums:n}=await r();e.#e=o,e.#r=n,console.info("Livelink core initialized")}static async createImporter(){if(!C)return new Function("return import('https://storage.googleapis.com/livelink-prod/core/core.mjs');");let o=await(await fetch("https://storage.googleapis.com/livelink-prod/core/core.mjs")).text();return new Function("return import('data:text/javascript;base64,"+btoa(o)+"')")}static get Core(){if(!e.#e)throw new Error("Livelink core not initialized");return e.#e}static get Enums(){if(!e.#r)throw new Error("Livelink core not initialized");return e.#r}};
2
2
  //# sourceMappingURL=library.cjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../sources/library.ts", "../sources/LivelinkCoreModule.ts"],
4
- "sourcesContent": ["export * from \"./LivelinkCoreModule\";\nexport type * from \"./core\";\n", "import type { LivelinkCore, CoreEnums } from \"./core\";\n\n/**\n *\n */\ndeclare const LIVELINK_CORE_URL: string;\n\n/**\n *\n */\ntype LivelinkCoreType = typeof LivelinkCore;\n\n/**\n *\n */\ntype CoreEnumsType = typeof CoreEnums;\n\n/**\n *\n */\nexport class LivelinkCoreModule {\n /**\n *\n */\n static #core: LivelinkCoreType | null = null;\n\n /**\n *\n */\n static #enums: CoreEnumsType | null = null;\n\n /**\n *\n */\n static async init() {\n if (LivelinkCoreModule.#core) {\n return;\n }\n\n // Force webpack keep the dynamic import\n const dynamicImport = new Function(\"return import('\" + LIVELINK_CORE_URL + \"');\") as () => Promise<{\n LivelinkCore: LivelinkCoreType;\n CoreEnums: CoreEnumsType;\n }>;\n const { LivelinkCore, CoreEnums } = await dynamicImport();\n\n LivelinkCoreModule.#core = LivelinkCore;\n LivelinkCoreModule.#enums = CoreEnums;\n\n console.info(\"Livelink core initialized\");\n }\n\n /**\n *\n */\n static get Core(): LivelinkCoreType {\n if (!LivelinkCoreModule.#core) {\n throw new Error(\"Livelink core not initialized\");\n }\n return LivelinkCoreModule.#core;\n }\n\n /**\n *\n */\n static get Enums(): CoreEnumsType {\n if (!LivelinkCoreModule.#enums) {\n throw new Error(\"Livelink core not initialized\");\n }\n return LivelinkCoreModule.#enums;\n }\n}\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,IAAA,eAAAC,EAAAH,GCoBO,IAAMI,EAAN,MAAMC,CAAmB,CAI5B,MAAOC,GAAiC,KAKxC,MAAOC,GAA+B,KAKtC,aAAa,MAAO,CAChB,GAAIF,EAAmBC,GACnB,OAIJ,IAAME,EAAgB,IAAI,SAAS,8EAA6C,EAI1E,CAAE,aAAAC,EAAc,UAAAC,CAAU,EAAI,MAAMF,EAAc,EAExDH,EAAmBC,GAAQG,EAC3BJ,EAAmBE,GAASG,EAE5B,QAAQ,KAAK,2BAA2B,CAC5C,CAKA,WAAW,MAAyB,CAChC,GAAI,CAACL,EAAmBC,GACpB,MAAM,IAAI,MAAM,+BAA+B,EAEnD,OAAOD,EAAmBC,EAC9B,CAKA,WAAW,OAAuB,CAC9B,GAAI,CAACD,EAAmBE,GACpB,MAAM,IAAI,MAAM,+BAA+B,EAEnD,OAAOF,EAAmBE,EAC9B,CACJ",
6
- "names": ["library_exports", "__export", "LivelinkCoreModule", "__toCommonJS", "LivelinkCoreModule", "_LivelinkCoreModule", "#core", "#enums", "dynamicImport", "LivelinkCore", "CoreEnums"]
4
+ "sourcesContent": ["export * from \"./LivelinkCoreModule\";\nexport type * from \"./core\";\n", "import type { LivelinkCore, CoreEnums } from \"./core\";\n\n/**\n *\n */\nconst isNode = typeof process !== \"undefined\" && process.versions != null && process.versions.node != null;\n\n/**\n *\n */\ndeclare const LIVELINK_CORE_URL: string;\n\n/**\n *\n */\ntype LivelinkCoreType = typeof LivelinkCore;\n\n/**\n *\n */\ntype CoreEnumsType = typeof CoreEnums;\n\n/**\n *\n */\ntype CoreImporter = () => Promise<{\n LivelinkCore: LivelinkCoreType;\n CoreEnums: CoreEnumsType;\n}>;\n\n/**\n *\n */\nexport class LivelinkCoreModule {\n /**\n *\n */\n static #core: LivelinkCoreType | null = null;\n\n /**\n *\n */\n static #enums: CoreEnumsType | null = null;\n\n /**\n *\n */\n static async init() {\n if (LivelinkCoreModule.#core) {\n return;\n }\n\n const dynamicImport = await LivelinkCoreModule.createImporter();\n const { LivelinkCore, CoreEnums } = await dynamicImport();\n\n LivelinkCoreModule.#core = LivelinkCore;\n LivelinkCoreModule.#enums = CoreEnums;\n\n console.info(\"Livelink core initialized\");\n }\n\n /**\n *\n */\n static async createImporter(): Promise<CoreImporter> {\n if (!isNode) {\n return new Function(\"return import('\" + LIVELINK_CORE_URL + \"');\") as CoreImporter;\n }\n\n const response = await fetch(LIVELINK_CORE_URL);\n const moduleData = await response.text();\n return new Function(\"return import('data:text/javascript;base64,\" + btoa(moduleData) + \"')\") as CoreImporter;\n }\n\n /**\n *\n */\n static get Core(): LivelinkCoreType {\n if (!LivelinkCoreModule.#core) {\n throw new Error(\"Livelink core not initialized\");\n }\n return LivelinkCoreModule.#core;\n }\n\n /**\n *\n */\n static get Enums(): CoreEnumsType {\n if (!LivelinkCoreModule.#enums) {\n throw new Error(\"Livelink core not initialized\");\n }\n return LivelinkCoreModule.#enums;\n }\n}\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,IAAA,eAAAC,EAAAH,GCKA,IAAMI,EAAS,OAAO,QAAY,KAAe,QAAQ,UAAY,MAAQ,QAAQ,SAAS,MAAQ,KA4BzFC,EAAN,MAAMC,CAAmB,CAI5B,MAAOC,GAAiC,KAKxC,MAAOC,GAA+B,KAKtC,aAAa,MAAO,CAChB,GAAIF,EAAmBC,GACnB,OAGJ,IAAME,EAAgB,MAAMH,EAAmB,eAAe,EACxD,CAAE,aAAAI,EAAc,UAAAC,CAAU,EAAI,MAAMF,EAAc,EAExDH,EAAmBC,GAAQG,EAC3BJ,EAAmBE,GAASG,EAE5B,QAAQ,KAAK,2BAA2B,CAC5C,CAKA,aAAa,gBAAwC,CACjD,GAAI,CAACP,EACD,OAAO,IAAI,SAAS,8EAA6C,EAIrE,IAAMQ,EAAa,MADF,MAAM,MAAM,4DAAiB,GACZ,KAAK,EACvC,OAAO,IAAI,SAAS,8CAAgD,KAAKA,CAAU,EAAI,IAAI,CAC/F,CAKA,WAAW,MAAyB,CAChC,GAAI,CAACN,EAAmBC,GACpB,MAAM,IAAI,MAAM,+BAA+B,EAEnD,OAAOD,EAAmBC,EAC9B,CAKA,WAAW,OAAuB,CAC9B,GAAI,CAACD,EAAmBE,GACpB,MAAM,IAAI,MAAM,+BAA+B,EAEnD,OAAOF,EAAmBE,EAC9B,CACJ",
6
+ "names": ["library_exports", "__export", "LivelinkCoreModule", "__toCommonJS", "isNode", "LivelinkCoreModule", "_LivelinkCoreModule", "#core", "#enums", "dynamicImport", "LivelinkCore", "CoreEnums", "moduleData"]
7
7
  }
package/dist/library.mjs CHANGED
@@ -1,2 +1,2 @@
1
- var i=class e{static#e=null;static#i=null;static async init(){if(e.#e)return;let r=new Function("return import('https://storage.googleapis.com/livelink-prod/core/core.mjs');"),{LivelinkCore:n,CoreEnums:o}=await r();e.#e=n,e.#i=o,console.info("Livelink core initialized")}static get Core(){if(!e.#e)throw new Error("Livelink core not initialized");return e.#e}static get Enums(){if(!e.#i)throw new Error("Livelink core not initialized");return e.#i}};export{i as LivelinkCoreModule};
1
+ var i=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,t=class e{static#e=null;static#r=null;static async init(){if(e.#e)return;let o=await e.createImporter(),{LivelinkCore:r,CoreEnums:n}=await o();e.#e=r,e.#r=n,console.info("Livelink core initialized")}static async createImporter(){if(!i)return new Function("return import('https://storage.googleapis.com/livelink-prod/core/core.mjs');");let r=await(await fetch("https://storage.googleapis.com/livelink-prod/core/core.mjs")).text();return new Function("return import('data:text/javascript;base64,"+btoa(r)+"')")}static get Core(){if(!e.#e)throw new Error("Livelink core not initialized");return e.#e}static get Enums(){if(!e.#r)throw new Error("Livelink core not initialized");return e.#r}};export{t as LivelinkCoreModule};
2
2
  //# sourceMappingURL=library.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../sources/LivelinkCoreModule.ts"],
4
- "sourcesContent": ["import type { LivelinkCore, CoreEnums } from \"./core\";\n\n/**\n *\n */\ndeclare const LIVELINK_CORE_URL: string;\n\n/**\n *\n */\ntype LivelinkCoreType = typeof LivelinkCore;\n\n/**\n *\n */\ntype CoreEnumsType = typeof CoreEnums;\n\n/**\n *\n */\nexport class LivelinkCoreModule {\n /**\n *\n */\n static #core: LivelinkCoreType | null = null;\n\n /**\n *\n */\n static #enums: CoreEnumsType | null = null;\n\n /**\n *\n */\n static async init() {\n if (LivelinkCoreModule.#core) {\n return;\n }\n\n // Force webpack keep the dynamic import\n const dynamicImport = new Function(\"return import('\" + LIVELINK_CORE_URL + \"');\") as () => Promise<{\n LivelinkCore: LivelinkCoreType;\n CoreEnums: CoreEnumsType;\n }>;\n const { LivelinkCore, CoreEnums } = await dynamicImport();\n\n LivelinkCoreModule.#core = LivelinkCore;\n LivelinkCoreModule.#enums = CoreEnums;\n\n console.info(\"Livelink core initialized\");\n }\n\n /**\n *\n */\n static get Core(): LivelinkCoreType {\n if (!LivelinkCoreModule.#core) {\n throw new Error(\"Livelink core not initialized\");\n }\n return LivelinkCoreModule.#core;\n }\n\n /**\n *\n */\n static get Enums(): CoreEnumsType {\n if (!LivelinkCoreModule.#enums) {\n throw new Error(\"Livelink core not initialized\");\n }\n return LivelinkCoreModule.#enums;\n }\n}\n"],
5
- "mappings": "AAoBO,IAAMA,EAAN,MAAMC,CAAmB,CAI5B,MAAOC,GAAiC,KAKxC,MAAOC,GAA+B,KAKtC,aAAa,MAAO,CAChB,GAAIF,EAAmBC,GACnB,OAIJ,IAAME,EAAgB,IAAI,SAAS,8EAA6C,EAI1E,CAAE,aAAAC,EAAc,UAAAC,CAAU,EAAI,MAAMF,EAAc,EAExDH,EAAmBC,GAAQG,EAC3BJ,EAAmBE,GAASG,EAE5B,QAAQ,KAAK,2BAA2B,CAC5C,CAKA,WAAW,MAAyB,CAChC,GAAI,CAACL,EAAmBC,GACpB,MAAM,IAAI,MAAM,+BAA+B,EAEnD,OAAOD,EAAmBC,EAC9B,CAKA,WAAW,OAAuB,CAC9B,GAAI,CAACD,EAAmBE,GACpB,MAAM,IAAI,MAAM,+BAA+B,EAEnD,OAAOF,EAAmBE,EAC9B,CACJ",
6
- "names": ["LivelinkCoreModule", "_LivelinkCoreModule", "#core", "#enums", "dynamicImport", "LivelinkCore", "CoreEnums"]
4
+ "sourcesContent": ["import type { LivelinkCore, CoreEnums } from \"./core\";\n\n/**\n *\n */\nconst isNode = typeof process !== \"undefined\" && process.versions != null && process.versions.node != null;\n\n/**\n *\n */\ndeclare const LIVELINK_CORE_URL: string;\n\n/**\n *\n */\ntype LivelinkCoreType = typeof LivelinkCore;\n\n/**\n *\n */\ntype CoreEnumsType = typeof CoreEnums;\n\n/**\n *\n */\ntype CoreImporter = () => Promise<{\n LivelinkCore: LivelinkCoreType;\n CoreEnums: CoreEnumsType;\n}>;\n\n/**\n *\n */\nexport class LivelinkCoreModule {\n /**\n *\n */\n static #core: LivelinkCoreType | null = null;\n\n /**\n *\n */\n static #enums: CoreEnumsType | null = null;\n\n /**\n *\n */\n static async init() {\n if (LivelinkCoreModule.#core) {\n return;\n }\n\n const dynamicImport = await LivelinkCoreModule.createImporter();\n const { LivelinkCore, CoreEnums } = await dynamicImport();\n\n LivelinkCoreModule.#core = LivelinkCore;\n LivelinkCoreModule.#enums = CoreEnums;\n\n console.info(\"Livelink core initialized\");\n }\n\n /**\n *\n */\n static async createImporter(): Promise<CoreImporter> {\n if (!isNode) {\n return new Function(\"return import('\" + LIVELINK_CORE_URL + \"');\") as CoreImporter;\n }\n\n const response = await fetch(LIVELINK_CORE_URL);\n const moduleData = await response.text();\n return new Function(\"return import('data:text/javascript;base64,\" + btoa(moduleData) + \"')\") as CoreImporter;\n }\n\n /**\n *\n */\n static get Core(): LivelinkCoreType {\n if (!LivelinkCoreModule.#core) {\n throw new Error(\"Livelink core not initialized\");\n }\n return LivelinkCoreModule.#core;\n }\n\n /**\n *\n */\n static get Enums(): CoreEnumsType {\n if (!LivelinkCoreModule.#enums) {\n throw new Error(\"Livelink core not initialized\");\n }\n return LivelinkCoreModule.#enums;\n }\n}\n"],
5
+ "mappings": "AAKA,IAAMA,EAAS,OAAO,QAAY,KAAe,QAAQ,UAAY,MAAQ,QAAQ,SAAS,MAAQ,KA4BzFC,EAAN,MAAMC,CAAmB,CAI5B,MAAOC,GAAiC,KAKxC,MAAOC,GAA+B,KAKtC,aAAa,MAAO,CAChB,GAAIF,EAAmBC,GACnB,OAGJ,IAAME,EAAgB,MAAMH,EAAmB,eAAe,EACxD,CAAE,aAAAI,EAAc,UAAAC,CAAU,EAAI,MAAMF,EAAc,EAExDH,EAAmBC,GAAQG,EAC3BJ,EAAmBE,GAASG,EAE5B,QAAQ,KAAK,2BAA2B,CAC5C,CAKA,aAAa,gBAAwC,CACjD,GAAI,CAACP,EACD,OAAO,IAAI,SAAS,8EAA6C,EAIrE,IAAMQ,EAAa,MADF,MAAM,MAAM,4DAAiB,GACZ,KAAK,EACvC,OAAO,IAAI,SAAS,8CAAgD,KAAKA,CAAU,EAAI,IAAI,CAC/F,CAKA,WAAW,MAAyB,CAChC,GAAI,CAACN,EAAmBC,GACpB,MAAM,IAAI,MAAM,+BAA+B,EAEnD,OAAOD,EAAmBC,EAC9B,CAKA,WAAW,OAAuB,CAC9B,GAAI,CAACD,EAAmBE,GACpB,MAAM,IAAI,MAAM,+BAA+B,EAEnD,OAAOF,EAAmBE,EAC9B,CACJ",
6
+ "names": ["isNode", "LivelinkCoreModule", "_LivelinkCoreModule", "#core", "#enums", "dynamicImport", "LivelinkCore", "CoreEnums", "moduleData"]
7
7
  }
@@ -1,4 +1,4 @@
1
- import type { AssignClientToScriptMessage, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, ScreenSpaceRayQuery, ScreenSpaceRayResult, SkeletonPoseMessage, UpdateEntitiesFromJsonMessage, ViewportConfigs } from "../_prebuild/messages/gateway";
1
+ import type { AssignClientToScriptMessage, ClientConfig, ClientConfigResponse, FireEventMessage, HighlightEntitiesMessage, InputState, RemoveComponentsCommand, RemoveFilterMessage, ScreenSpaceRayQuery, ScreenSpaceRayResult, SetFilterMessage, SkeletonPoseMessage, ToggleFilterMessage, UpdateEntitiesFromJsonMessage, ViewportConfigs } from "../_prebuild/messages/gateway";
2
2
  import { Serializer } from "./Serializer";
3
3
  import { RTID, UUID, Vec2i } from "./types";
4
4
  import { EntityInterface } from "./interfaces/EntityInterface";
@@ -120,6 +120,18 @@ export declare class LivelinkCore {
120
120
  * 15
121
121
  */
122
122
  updateEntitiesFromJson(updateEntitiesFromJsonMessage: UpdateEntitiesFromJsonMessage): void;
123
+ /**
124
+ * 16
125
+ */
126
+ setFilter(setFilterMessage: SetFilterMessage): void;
127
+ /**
128
+ * 17
129
+ */
130
+ removeFilter(removeFilterMessage: RemoveFilterMessage): void;
131
+ /**
132
+ * 18
133
+ */
134
+ toggleFilter(toggleFilterMessage: ToggleFilterMessage): void;
123
135
  /**
124
136
  * 20
125
137
  */
@@ -7,6 +7,13 @@ type LivelinkCoreType = typeof LivelinkCore;
7
7
  *
8
8
  */
9
9
  type CoreEnumsType = typeof CoreEnums;
10
+ /**
11
+ *
12
+ */
13
+ type CoreImporter = () => Promise<{
14
+ LivelinkCore: LivelinkCoreType;
15
+ CoreEnums: CoreEnumsType;
16
+ }>;
10
17
  /**
11
18
  *
12
19
  */
@@ -16,6 +23,10 @@ export declare class LivelinkCoreModule {
16
23
  *
17
24
  */
18
25
  static init(): Promise<void>;
26
+ /**
27
+ *
28
+ */
29
+ static createImporter(): Promise<CoreImporter>;
19
30
  /**
20
31
  *
21
32
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dverse/livelink.core",
3
- "version": "0.5.4",
3
+ "version": "0.6.1",
4
4
  "description": "3dverse Livelink Core types.",
5
5
  "main": "./dist/library.cjs",
6
6
  "module": "./dist/library.mjs",
@@ -25,6 +25,7 @@
25
25
  },
26
26
  "license": "SEE LICENSE IN LICENSE",
27
27
  "devDependencies": {
28
+ "@types/node": "^22.5.3",
28
29
  "esbuild": "^0.20.1",
29
30
  "http-server": "^14.1.1",
30
31
  "npm-run-all": "^4.1.5",