@hytopia.com/server-protocol 1.1.3 → 1.1.5

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/bun.lockb ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -11,6 +11,7 @@
11
11
  "quicktype": "^23.0.170"
12
12
  },
13
13
  "dependencies": {
14
+ "@hytopia.com/server-protocol": "^1.1.3",
14
15
  "ajv": "^8.17.1"
15
16
  },
16
17
  "repository": {
package/schemas/Entity.ts CHANGED
@@ -4,20 +4,18 @@ import type { JSONSchemaType } from 'ajv';
4
4
  import type { QuaternionSchema } from './Quaternion';
5
5
  import type { VectorSchema } from './Vector';
6
6
 
7
-
8
7
  export type EntitySchema = {
9
8
  i: number; // entity id
10
- al?: string[]; // animations looped
11
- ao?: string[]; // animations one shot
12
- as?: string[]; // animations stop
13
- b?: VectorSchema; // model visual bounding box half extents
9
+ al?: string[]; // model animations looped
10
+ ao?: string[]; // model animations one shot
11
+ as?: string[]; // model animations stop
14
12
  f?: boolean; // focused
15
13
  m?: string; // model uri
16
14
  n?: string; // name
17
15
  p?: VectorSchema; // position
18
16
  r?: QuaternionSchema; // rotation
19
17
  rm?: boolean; // removed/remove
20
- s?: VectorSchema; // model scale relative to visual bounding box
18
+ s?: number; // model scale
21
19
  }
22
20
 
23
21
  export const entitySchema: JSONSchemaType<EntitySchema> = {
@@ -27,14 +25,13 @@ export const entitySchema: JSONSchemaType<EntitySchema> = {
27
25
  al: { type: 'array', items: { type: 'string' }, nullable: true },
28
26
  ao: { type: 'array', items: { type: 'string' }, nullable: true },
29
27
  as: { type: 'array', items: { type: 'string' }, nullable: true },
30
- b: { ...vectorSchema, nullable: true },
31
28
  f: { type: 'boolean', nullable: true },
32
29
  m: { type: 'string', nullable: true },
33
30
  n: { type: 'string', nullable: true },
34
31
  p: { ...vectorSchema, nullable: true },
35
32
  r: { ...quaternionSchema, nullable: true },
36
33
  rm: { type: 'boolean', nullable: true },
37
- s: { ...vectorSchema, nullable: true },
34
+ s: { type: 'number', nullable: true },
38
35
  },
39
36
  required: [ 'i' ],
40
37
  additionalProperties: false,