@3dverse/livelink.core 0.7.13 → 1.0.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.
Files changed (101) hide show
  1. package/README.md +61 -17
  2. package/dist/_prebuild/EditorConnection.d.ts +1 -29
  3. package/dist/_prebuild/EditorMessageHandler.d.ts +1 -139
  4. package/dist/_prebuild/GatewayConnection.d.ts +1 -58
  5. package/dist/_prebuild/GatewayMessageHandler.d.ts +1 -194
  6. package/dist/_prebuild/engine_types/ComponentsHashes.d.ts +5 -0
  7. package/dist/_prebuild/engine_types/ComponentsRecord.d.ts +207 -0
  8. package/dist/_prebuild/engine_types/SceneSettingsRecord.d.ts +50 -0
  9. package/dist/_prebuild/engine_types/assets.d.ts +96 -0
  10. package/dist/_prebuild/{types → engine_types}/components.d.ts +221 -159
  11. package/dist/_prebuild/{types/settings.d.ts → engine_types/sceneSettings.d.ts} +85 -70
  12. package/dist/_prebuild/messages/editor/ConnectConfirmation.d.ts +1 -70
  13. package/dist/_prebuild/messages/editor/EditorEntity.d.ts +0 -25
  14. package/dist/_prebuild/messages/editor/EntityUpdatedEvent.d.ts +1 -7
  15. package/dist/_prebuild/messages/editor/EntityVisibilityChangedEvent.d.ts +1 -5
  16. package/dist/_prebuild/messages/editor/UpdateComponentsCommand.d.ts +1 -6
  17. package/dist/_prebuild/messages/editor/index.d.ts +0 -1
  18. package/dist/_prebuild/messages/gateway/commands/AssignClientToScriptCommand.d.ts +9 -0
  19. package/dist/_prebuild/messages/gateway/commands/AuthenticationCommand.d.ts +1 -0
  20. package/dist/_prebuild/messages/gateway/{ClientConfig.d.ts → commands/ConfigureClientCommand.d.ts} +11 -13
  21. package/dist/_prebuild/messages/gateway/commands/FireEventCommand.d.ts +11 -0
  22. package/dist/_prebuild/messages/gateway/commands/HighlightEntitiesCommand.d.ts +8 -0
  23. package/dist/_prebuild/messages/gateway/commands/InputStateCommand.d.ts +8 -0
  24. package/dist/_prebuild/messages/gateway/commands/RemoveComponentsCommand.d.ts +1 -0
  25. package/dist/_prebuild/messages/gateway/commands/RemoveFilterCommand.d.ts +7 -0
  26. package/dist/_prebuild/messages/gateway/commands/ResizeCommand.d.ts +13 -0
  27. package/dist/_prebuild/messages/gateway/commands/SendSkeletonPoseCommand.d.ts +25 -0
  28. package/dist/_prebuild/messages/gateway/commands/SetFilterCommand.d.ts +8 -0
  29. package/dist/_prebuild/messages/gateway/commands/ToggleFilterCommand.d.ts +8 -0
  30. package/dist/_prebuild/messages/gateway/commands/UpdateEntitiesFromBytesCommand.d.ts +1 -0
  31. package/dist/_prebuild/messages/gateway/commands/UpdateEntitiesFromJsonCommand.d.ts +1 -0
  32. package/dist/_prebuild/messages/gateway/commands/ViewportConfigCommand.d.ts +16 -0
  33. package/dist/_prebuild/messages/gateway/commands/index.d.ts +15 -0
  34. package/dist/_prebuild/messages/gateway/enums.d.ts +4 -111
  35. package/dist/_prebuild/messages/gateway/events/AssetLoadingEvent.d.ts +1 -0
  36. package/dist/_prebuild/messages/gateway/{FrameData.d.ts → events/FrameDataEvent.d.ts} +1 -17
  37. package/dist/_prebuild/messages/gateway/events/ScriptEvent.d.ts +10 -0
  38. package/dist/_prebuild/messages/gateway/events/index.d.ts +3 -0
  39. package/dist/_prebuild/messages/gateway/index.d.ts +16 -22
  40. package/dist/_prebuild/messages/gateway/queries/ScreenSpaceRayQuery.d.ts +18 -0
  41. package/dist/_prebuild/messages/gateway/queries/index.d.ts +1 -0
  42. package/dist/_prebuild/messages/index.d.ts +2 -0
  43. package/dist/library.cjs +1 -1
  44. package/dist/library.cjs.map +4 -4
  45. package/dist/library.mjs +1 -1
  46. package/dist/library.mjs.map +4 -4
  47. package/dist/sources/ActivityWatcher.d.ts +63 -0
  48. package/dist/sources/CoreEvents.d.ts +35 -0
  49. package/dist/sources/DynamicLoader.d.ts +38 -0
  50. package/dist/sources/EntityUtils.d.ts +117 -0
  51. package/dist/sources/LivelinkCore.d.ts +133 -128
  52. package/dist/sources/SessionInterface.d.ts +20 -0
  53. package/dist/sources/TypedEventTarget.d.ts +14 -0
  54. package/dist/sources/controllers/EditorController.d.ts +1 -21
  55. package/dist/sources/controllers/EditorEvents.d.ts +27 -0
  56. package/dist/sources/controllers/GatewayController.d.ts +1 -53
  57. package/dist/sources/controllers/GatewayEvents.d.ts +54 -0
  58. package/dist/sources/core.d.ts +29 -8
  59. package/dist/sources/internal/RequestHandler.d.ts +1 -0
  60. package/dist/sources/internal/Serializer.d.ts +1 -0
  61. package/dist/sources/library.d.ts +1 -1
  62. package/dist/sources/types/RTID.d.ts +6 -20
  63. package/dist/sources/types/UUID.d.ts +7 -17
  64. package/dist/sources/types/dataObjects.d.ts +52 -0
  65. package/dist/sources/types/index.d.ts +3 -5
  66. package/dist/sources/types/math.d.ts +8 -91
  67. package/dist/sources/types/nativeTypes.d.ts +25 -86
  68. package/dist/sources/types/utils.d.ts +19 -0
  69. package/package.json +13 -3
  70. package/dist/_prebuild/enums.d.ts +0 -3
  71. package/dist/_prebuild/messages/editor/EntityCreationCoreOptions.d.ts +0 -6
  72. package/dist/_prebuild/messages/gateway/AssetLoadingEvent.d.ts +0 -14
  73. package/dist/_prebuild/messages/gateway/AssignClientToScriptMessage.d.ts +0 -21
  74. package/dist/_prebuild/messages/gateway/AuthenticationResponse.d.ts +0 -31
  75. package/dist/_prebuild/messages/gateway/ClientConfigResponse.d.ts +0 -16
  76. package/dist/_prebuild/messages/gateway/FireEventMessage.d.ts +0 -23
  77. package/dist/_prebuild/messages/gateway/HighlightEntitiesMessage.d.ts +0 -22
  78. package/dist/_prebuild/messages/gateway/InputState.d.ts +0 -22
  79. package/dist/_prebuild/messages/gateway/RemoveComponentsCommand.d.ts +0 -23
  80. package/dist/_prebuild/messages/gateway/RemoveFilterMessage.d.ts +0 -18
  81. package/dist/_prebuild/messages/gateway/ResizeResponse.d.ts +0 -14
  82. package/dist/_prebuild/messages/gateway/ScreenSpaceRayQuery.d.ts +0 -29
  83. package/dist/_prebuild/messages/gateway/ScreenSpaceRayResult.d.ts +0 -16
  84. package/dist/_prebuild/messages/gateway/ScriptEvent.d.ts +0 -17
  85. package/dist/_prebuild/messages/gateway/SendSkeletonPoseMessage.d.ts +0 -28
  86. package/dist/_prebuild/messages/gateway/SessionAuth.d.ts +0 -8
  87. package/dist/_prebuild/messages/gateway/SetFilterMessage.d.ts +0 -19
  88. package/dist/_prebuild/messages/gateway/ToggleFilterMessage.d.ts +0 -19
  89. package/dist/_prebuild/messages/gateway/UpdateEntitiesFromBytesMessage.d.ts +0 -25
  90. package/dist/_prebuild/messages/gateway/UpdateEntitiesFromJsonMessage.d.ts +0 -23
  91. package/dist/_prebuild/messages/gateway/ViewportConfig.d.ts +0 -30
  92. package/dist/_prebuild/types/assets.d.ts +0 -23
  93. package/dist/sources/LivelinkCoreModule.d.ts +0 -39
  94. package/dist/sources/RequestHandler.d.ts +0 -47
  95. package/dist/sources/Serializer.d.ts +0 -34
  96. package/dist/sources/controllers/ActivityWatcher.d.ts +0 -42
  97. package/dist/sources/interfaces/ClientInterface.d.ts +0 -7
  98. package/dist/sources/interfaces/EntityInterface.d.ts +0 -9
  99. package/dist/sources/interfaces/SessionInterface.d.ts +0 -19
  100. package/dist/sources/interfaces/index.d.ts +0 -3
  101. /package/dist/sources/{types/constants.d.ts → constants.d.ts} +0 -0
@@ -6,199 +6,214 @@ import type { Vec3, UInt32, Float } from "../../sources/types";
6
6
  /**
7
7
  * Settings for debug lines
8
8
  */
9
- export type DebugLines = Partial<{
9
+ export type DebugLines = {
10
10
  /**
11
11
  * Whether to draw debug lines
12
+ * @defaultValue false
12
13
  */
13
- drawDebugLines: boolean;
14
+ drawDebugLines?: boolean;
14
15
  /**
15
16
  * Whether to draw geometry of physics bodies
17
+ * @defaultValue true
16
18
  */
17
- drawPhysicsBodies: boolean;
19
+ drawPhysicsBodies?: boolean;
18
20
  /**
19
21
  * Whether to draw physics body axes
22
+ * @defaultValue true
20
23
  */
21
- drawPhysicsBodyAxes: boolean;
24
+ drawPhysicsBodyAxes?: boolean;
22
25
  /**
23
26
  * Whether to draw the center of mass of physics bodies
27
+ * @defaultValue false
24
28
  */
25
- drawCenterOfMass: boolean;
29
+ drawCenterOfMass?: boolean;
26
30
  /**
27
31
  * Whether to draw joint-related debug lines
32
+ * @defaultValue false
28
33
  */
29
- drawJoints: boolean;
34
+ drawJoints?: boolean;
30
35
  /**
31
36
  * Whether to draw the skeletons of rigged characters
37
+ * @defaultValue false
32
38
  */
33
- drawSkeletons: boolean;
39
+ drawSkeletons?: boolean;
34
40
  /**
35
41
  * Whether to draw certain IK parameters like the forward and up vector of an IK Aim node, or the pole vector of an IK Two Bone node
42
+ * @defaultValue false
36
43
  */
37
- drawIK: boolean;
44
+ drawIK?: boolean;
38
45
  /**
39
46
  * Whether to draw the bouding boxes of entities
47
+ * @defaultValue false
40
48
  */
41
- drawBoundingBoxes: boolean;
49
+ drawBoundingBoxes?: boolean;
42
50
  /**
43
51
  * Whether to draw camera frustums
52
+ * @defaultValue false
44
53
  */
45
- drawCameraFrustums: boolean;
54
+ drawCameraFrustums?: boolean;
46
55
  /**
47
56
  * Whether to draw light-related debug lines
57
+ * @defaultValue false
48
58
  */
49
- drawLights: boolean;
59
+ drawLights?: boolean;
50
60
  /**
51
61
  * Whether to draw reflection probes
62
+ * @defaultValue false
52
63
  */
53
- drawReflectionProbes: boolean;
54
- }>;
64
+ drawReflectionProbes?: boolean;
65
+ };
55
66
  /**
56
67
  * Settings for the display
57
68
  */
58
- export type Display = Partial<{
69
+ export type Display = {
59
70
  /**
60
71
  * Maximum number of Frames Per Second the renderer is allowed to produce
72
+ * @defaultValue 30
61
73
  */
62
- maxFPS: UInt32;
74
+ maxFPS?: UInt32;
63
75
  /**
64
76
  * Maximum resolution of loaded textures
77
+ * @defaultValue 4294967295
65
78
  */
66
- maxTextureSize: UInt32;
79
+ maxTextureSize?: UInt32;
67
80
  /**
68
81
  * Draw frame without input events
82
+ * @defaultValue false
69
83
  */
70
- forceRedraw: boolean;
84
+ forceRedraw?: boolean;
71
85
  /**
72
86
  * When 'Force Redraw' is off, this setting controls the number of frames the renderer will draw before going back to idle
87
+ * @defaultValue 90
73
88
  */
74
- framePersistence: UInt32;
89
+ framePersistence?: UInt32;
75
90
  /**
76
91
  * Toggle frustum culling
92
+ * @defaultValue true
77
93
  */
78
- enableFrustumCulling: boolean;
94
+ enableFrustumCulling?: boolean;
79
95
  /**
80
96
  * Toggle texture streaming
97
+ * @defaultValue false
81
98
  */
82
- enableTextureStreaming: boolean;
83
- }>;
99
+ enableTextureStreaming?: boolean;
100
+ };
84
101
  /**
85
102
  * Settings for the environment
86
103
  */
87
- export type Environment = Partial<{
104
+ export type Environment = {
88
105
  /**
89
106
  * Solid color used to clear the screen before drawing.
107
+ * @defaultValue 0,0,0
90
108
  */
91
- clearColor: Vec3;
109
+ clearColor?: Vec3;
92
110
  /**
93
111
  * Color of the spherical gradient at the top of the sphere.
112
+ * @defaultValue 1,1,1
94
113
  */
95
- ambientColorTop: Vec3;
114
+ ambientColorTop?: Vec3;
96
115
  /**
97
116
  * Color of the spherical gradient at the bottom of the sphere.
117
+ * @defaultValue 1,1,1
98
118
  */
99
- ambientColorBottom: Vec3;
100
- }>;
119
+ ambientColorBottom?: Vec3;
120
+ };
101
121
  /**
102
122
  * Miscellaneous settings
103
123
  */
104
- export type Misc = Partial<{
124
+ export type Misc = {
105
125
  /**
106
126
  * The maximum number of time a linker can reference itself.
127
+ * @defaultValue 2
107
128
  */
108
- maxLinkersRecursionCount: UInt32;
129
+ maxLinkersRecursionCount?: UInt32;
109
130
  /**
110
131
  * Plugins to load at startup
111
132
  */
112
- plugins: Array<string>;
113
- }>;
133
+ plugins?: Array<string>;
134
+ };
114
135
  /**
115
136
  * Settings for the physics engine.
116
137
  */
117
- export type Physics = Partial<{
138
+ export type Physics = {
118
139
  /**
119
140
  * The engine that is powering the physics of the scene.
141
+ * @defaultValue physx
120
142
  */
121
- engine: string;
143
+ engine?: string;
122
144
  /**
123
145
  * Global gravity applied throughout the scene.
146
+ * @defaultValue 0,-9.8,0
124
147
  */
125
- gravity: Vec3;
148
+ gravity?: Vec3;
126
149
  /**
127
150
  * A frame-rate-independent interval that dictates when physics calculations are performed.
151
+ * @defaultValue 0.01666
128
152
  */
129
- timestepInS: Float;
153
+ timestepInS?: Float;
130
154
  /**
131
155
  * The epsilon used to mark whether the transform of an entity has changed and so whether to notify the physics engine.
156
+ * @defaultValue 0.000001
132
157
  */
133
- epsilon: Float;
158
+ epsilon?: Float;
134
159
  /**
135
160
  * The approximate size of objects in the simulation. This is used to estimate certain length-related tolerances.
161
+ * @defaultValue 1
136
162
  */
137
- toleranceLength: Float;
163
+ toleranceLength?: Float;
138
164
  /**
139
165
  * The typical magnitude of velocities of objects in simulation. This is used to estimate whether a contact should be treated as bouncing or resting based on its impact velocity, and a kinetic energy threshold below which the simulation may put objects to sleep. For normal physical environments, a good choice is the approximate speed of an object falling under gravity for one second.
166
+ * @defaultValue 10
140
167
  */
141
- toleranceSpeed: Float;
168
+ toleranceSpeed?: Float;
142
169
  /**
143
170
  * The bigger LMD Max is, the greater the area that is searched for future contacts, and so the greater time taken per iteration. Note that XDE resolves contacts pre-collision, not once collision has taken place, like the majority of physics engines. Displacement of any object per iteration should not exceed LMD Max.
171
+ * @defaultValue 1
144
172
  */
145
- lmdMax: Float;
146
- }>;
173
+ lmdMax?: Float;
174
+ };
147
175
  /**
148
176
  * Renderer settings
149
177
  */
150
- export type Renderer = Partial<{
178
+ export type Renderer = {
151
179
  /**
152
180
  * Enable occlusion culling.
181
+ * @defaultValue false
153
182
  */
154
- cpuOcclusionCulling: boolean;
155
- }>;
183
+ cpuOcclusionCulling?: boolean;
184
+ };
156
185
  /**
157
186
  * Sound settings
158
187
  */
159
- export type Sound = Partial<{
188
+ export type Sound = {
160
189
  /**
161
190
  * Enable 3dverse sound.
191
+ * @defaultValue false
162
192
  */
163
- enabled: boolean;
164
- }>;
193
+ enabled?: boolean;
194
+ };
165
195
  /**
166
196
  * Settings for the scene streaming
167
197
  */
168
- export type Streaming = Partial<{
198
+ export type Streaming = {
169
199
  /**
170
200
  * Scenes that enter this radius around the camera get loaded.
201
+ * @defaultValue 0
171
202
  */
172
- streamingLoadingRadius: Float;
203
+ streamingLoadingRadius?: Float;
173
204
  /**
174
205
  * Scenes that exit this radius around the camera get unloaded.
206
+ * @defaultValue 0
175
207
  */
176
- streamingUnloadingRadius: Float;
177
- }>;
208
+ streamingUnloadingRadius?: Float;
209
+ };
178
210
  /**
179
211
  * Settings for voxel rendering
180
212
  */
181
- export type Voxel = Partial<{
213
+ export type Voxel = {
182
214
  /**
183
215
  * Maximum number of color samples used to compute the color LUT.
216
+ * @defaultValue 512
184
217
  */
185
- maxNumberAlbedoValues: UInt32;
186
- }>;
187
- /**
188
- *
189
- */
190
- export type SettingsBaseType = Partial<{
191
- debug_lines: DebugLines;
192
- display: Display;
193
- environment: Environment;
194
- misc: Misc;
195
- physics: Physics;
196
- renderer: Renderer;
197
- sound: Sound;
198
- streaming: Streaming;
199
- voxel: Voxel;
200
- }>;
201
- /**
202
- *
203
- */
204
- export type SettingType = keyof SettingsBaseType;
218
+ maxNumberAlbedoValues?: UInt32;
219
+ };
@@ -1,70 +1 @@
1
- import type { UUID } from "../../../sources/types";
2
- import { SettingsBaseType, SettingType } from "../../types/settings";
3
- /**
4
- *
5
- */
6
- export type SceneStats = {
7
- readonly triangleCount: number;
8
- readonly totalTriangleCount: number;
9
- readonly entityCount: number;
10
- };
11
- /**
12
- *
13
- */
14
- export type AttributeDescriptor = {
15
- readonly type: string;
16
- readonly name: string;
17
- readonly mods: Array<"editor-only" | "engine-only" | "transient">;
18
- readonly default?: unknown;
19
- };
20
- /**
21
- *
22
- */
23
- export type ComponentDescriptor = {
24
- readonly attributes: Array<AttributeDescriptor>;
25
- readonly binarySupport: boolean;
26
- readonly description: string;
27
- readonly dynamicSize: boolean;
28
- readonly hash: number;
29
- readonly mods: Array<"editor-only" | "engine-only" | "transient">;
30
- readonly name: string;
31
- readonly size: number;
32
- };
33
- /**
34
- *
35
- */
36
- export type SettingAttributeDescriptor<T extends SettingType> = {
37
- readonly default: T;
38
- readonly name: string;
39
- readonly type: string;
40
- };
41
- /**
42
- *
43
- */
44
- export type SettingDescriptor<T extends SettingType> = {
45
- readonly attributes: Array<SettingAttributeDescriptor<T>>;
46
- readonly name: string;
47
- };
48
- /**
49
- *
50
- */
51
- export type ConnectConfirmation = {
52
- readonly canEdit: boolean;
53
- readonly clientColors: {};
54
- readonly clientRTID: {};
55
- readonly components: Record<string, ComponentDescriptor>;
56
- readonly isTransient: boolean;
57
- readonly rootNodes: {};
58
- readonly sceneUUID: UUID;
59
- readonly selectColor: string;
60
- readonly sessionUUID: UUID;
61
- readonly settingDescriptions: Record<SettingType, SettingDescriptor<SettingType>>;
62
- readonly settings: SettingsBaseType;
63
- readonly stats: SceneStats;
64
- readonly undoRedo: {
65
- undo: {};
66
- redo: {};
67
- };
68
- readonly userUUID: UUID;
69
- readonly workspaceUUID: UUID;
70
- };
1
+ export {};
@@ -1,26 +1 @@
1
- import type { UUID } from "../../../sources/types";
2
- /**
3
- *
4
- */
5
- type ClientSelection = {
6
- clientUUID: UUID;
7
- directSelection?: boolean;
8
- color?: string;
9
- isExternal?: boolean;
10
- };
11
- /**
12
- *
13
- */
14
- export type EditorEntity = {
15
- rtid: string;
16
- components: Record<string, {}>;
17
- children: string[];
18
- selectingClients: ClientSelection[];
19
- selectedDescendants: Record<string, ClientSelection[]>;
20
- isVisible: boolean;
21
- isRuntime: boolean;
22
- isExternal: boolean;
23
- isTransient: boolean;
24
- ancestors?: EditorEntity[];
25
- };
26
1
  export {};
@@ -1,7 +1 @@
1
- /**
2
- *
3
- */
4
- export type EntityUpdatedEvent = {
5
- updatedAncestors: Array<unknown>;
6
- updatedComponents: Record<string, unknown>;
7
- };
1
+ export {};
@@ -1,5 +1 @@
1
- import { RTID } from "../../../sources/types";
2
- export type EntityVisibilityChangedEvent = {
3
- entityRTID: RTID;
4
- isVisible: boolean;
5
- };
1
+ export {};
@@ -1,6 +1 @@
1
- import type { UUID } from "../../../sources/types";
2
- import type { ComponentType } from "../../types/components";
3
- /**
4
- *
5
- */
6
- export type UpdateComponentsCommand = Record<UUID, Record<ComponentType, {}>>;
1
+ export {};
@@ -1,6 +1,5 @@
1
1
  export * from "./ConnectConfirmation";
2
2
  export * from "./EditorEntity";
3
- export * from "./EntityCreationCoreOptions";
4
3
  export * from "./EntityUpdatedEvent";
5
4
  export * from "./UpdateComponentsCommand";
6
5
  export * from "./EntityVisibilityChangedEvent";
@@ -0,0 +1,9 @@
1
+ import { RTID, UUID } from "../../../../sources/types";
2
+ /**
3
+ * @category Payloads
4
+ */
5
+ export type AssignClientToScriptData = {
6
+ client_uuid: UUID;
7
+ script_uuid: UUID;
8
+ entity_rtid: RTID;
9
+ };
@@ -1,7 +1,7 @@
1
- import type { Vec2i } from "../../../sources/types";
2
- import { CodecType } from "./enums";
1
+ import type { Vec2i } from "../../../../sources/types";
2
+ import { CodecType, EncodingProfile } from "../enums";
3
3
  /**
4
- *
4
+ * @category Payloads
5
5
  */
6
6
  export type ClientConfig = {
7
7
  remote_canvas_size: Vec2i;
@@ -9,15 +9,7 @@ export type ClientConfig = {
9
9
  supported_devices: SupportedDevices;
10
10
  };
11
11
  /**
12
- *
13
- */
14
- export declare enum EncodingProfile {
15
- base = 0,
16
- main = 1,
17
- high = 2
18
- }
19
- /**
20
- *
12
+ * @category Payloads
21
13
  */
22
14
  export type EncoderConfig = {
23
15
  codec: CodecType;
@@ -26,7 +18,7 @@ export type EncoderConfig = {
26
18
  lossy: boolean;
27
19
  };
28
20
  /**
29
- *
21
+ * @category Payloads
30
22
  */
31
23
  export type SupportedDevices = {
32
24
  keyboard: boolean;
@@ -35,3 +27,9 @@ export type SupportedDevices = {
35
27
  gamepad: boolean;
36
28
  touchscreen: boolean;
37
29
  };
30
+ /**
31
+ * @category Responses
32
+ */
33
+ export type ClientConfigResponse = {
34
+ codec: CodecType;
35
+ };
@@ -0,0 +1,11 @@
1
+ import { RTID, ScriptDataObject, UUID } from "../../../../sources/types";
2
+ /**
3
+ * @category Payloads
4
+ */
5
+ export type FireEventData = {
6
+ event_map_id: UUID;
7
+ event_name: string;
8
+ emitter_entity: RTID;
9
+ target_entities: Array<RTID>;
10
+ data_object: ScriptDataObject;
11
+ };
@@ -0,0 +1,8 @@
1
+ import { RTID } from "../../../../sources/types";
2
+ /**
3
+ * @category Payloads
4
+ */
5
+ export type HighlightEntitiesData = {
6
+ entities: Array<RTID>;
7
+ keep_old_selection: boolean;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { InputOperation } from "../enums";
2
+ /**
3
+ * @category Payloads
4
+ */
5
+ export type InputStateData = {
6
+ input_operation: InputOperation;
7
+ input_data?: Uint8Array;
8
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @experimental
3
+ * @category Payloads
4
+ */
5
+ export type RemoveFilterData = {
6
+ name: string;
7
+ };
@@ -0,0 +1,13 @@
1
+ import { Vec2u16 } from "../../../../sources/types";
2
+ /**
3
+ * @category Payloads
4
+ */
5
+ export type ResizeData = {
6
+ size: Vec2u16;
7
+ };
8
+ /**
9
+ * @category Responses
10
+ */
11
+ export type ResizeResponse = {
12
+ size: Vec2u16;
13
+ };
@@ -0,0 +1,25 @@
1
+ import { RTID, Quat, Vec3, UInt32 } from "../../../../sources/types";
2
+ /**
3
+ * @category Payloads
4
+ */
5
+ export type SkeletonPartialPose = {
6
+ positions?: Array<{
7
+ bone_index: UInt32;
8
+ value: Vec3;
9
+ }>;
10
+ orientations?: Array<{
11
+ bone_index: UInt32;
12
+ value: Quat;
13
+ }>;
14
+ scales?: Array<{
15
+ bone_index: UInt32;
16
+ value: Vec3;
17
+ }>;
18
+ };
19
+ /**
20
+ * @category Payloads
21
+ */
22
+ export type SkeletonPoseData = {
23
+ controller_rtid: RTID;
24
+ partial_pose: SkeletonPartialPose;
25
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @experimental
3
+ * @category Payloads
4
+ */
5
+ export type SetFilterData = {
6
+ name: string;
7
+ rpn: string;
8
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @experimental
3
+ * @category Payloads
4
+ */
5
+ export type ToggleFilterData = {
6
+ name: string;
7
+ enabled: boolean;
8
+ };
@@ -0,0 +1,16 @@
1
+ import { Float, Int32, RTID } from "../../../../sources/types";
2
+ /**
3
+ * @category Payloads
4
+ */
5
+ export type ViewportConfig = {
6
+ left: Float;
7
+ top: Float;
8
+ width: Float;
9
+ height: Float;
10
+ camera_rtid: RTID;
11
+ render_target_index?: Int32;
12
+ };
13
+ /**
14
+ * @category Payloads
15
+ */
16
+ export type ViewportConfigs = Array<ViewportConfig>;
@@ -0,0 +1,15 @@
1
+ export * from "./AssignClientToScriptCommand";
2
+ export * from "./ConfigureClientCommand";
3
+ export * from "./FireEventCommand";
4
+ export * from "./HighlightEntitiesCommand";
5
+ export * from "./InputStateCommand";
6
+ export * from "./RemoveComponentsCommand";
7
+ export * from "./ResizeCommand";
8
+ export * from "./SendSkeletonPoseCommand";
9
+ export * from "./AuthenticationCommand";
10
+ export * from "./UpdateEntitiesFromBytesCommand";
11
+ export * from "./UpdateEntitiesFromJsonCommand";
12
+ export * from "./ViewportConfigCommand";
13
+ export * from "./SetFilterCommand";
14
+ export * from "./ToggleFilterCommand";
15
+ export * from "./RemoveFilterCommand";