@hytopia.com/server-protocol 1.4.37 → 1.4.38-prerelease2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.4.37",
3
+ "version": "1.4.38-prerelease2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Entity.ts CHANGED
@@ -18,6 +18,8 @@ export type EntitySchema = {
18
18
  bt?: string; // block texture uri
19
19
  e?: boolean; // environmental
20
20
  h?: string[]; // model nodes to hide by partial case insensitive match of gltf node names
21
+ ir?: string; // input resolver function
22
+ irs?: object; // input resolver state; TODO: this should be a json type?
21
23
  m?: string; // model uri
22
24
  mo?: ModelNodeOverrideSchema[]; // model node overrides, (not implemented yet)
23
25
  mt?: string; // model texture uri (custom override)
@@ -46,6 +48,8 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
46
48
  bt: { type: 'string', nullable: true },
47
49
  e: { type: 'boolean', nullable: true },
48
50
  h: { type: 'array', items: { type: 'string' }, nullable: true },
51
+ ir: { type: 'string', nullable: true },
52
+ irs: { type: 'object', nullable: true },
49
53
  m: { type: 'string', nullable: true },
50
54
  mo: { type: 'array', items: { ...modelNodeOverrideSchema }, nullable: true },
51
55
  mt: { type: 'string', nullable: true },