/**
* Physics Message Types
* @module types/physics
*/
import { z } from "zod";
/**
* Command types enum
*/
export var PhysicsCommandType;
(function (PhysicsCommandType) {
PhysicsCommandType["HEALTH"] = "health";
PhysicsCommandType["GENERIC"] = "generic";
PhysicsCommandType["START"] = "start";
PhysicsCommandType["STOP"] = "stop";
PhysicsCommandType["PAUSE"] = "pause";
PhysicsCommandType["RESUME"] = "resume";
PhysicsCommandType["DESTROY"] = "destroy";
})(PhysicsCommandType || (PhysicsCommandType = {}));
/**
* Zod schema for physics command validation
*/
export const PhysicsCommandSchema = z.object({
type: z.nativeEnum(PhysicsCommandType),
investigationId: z.string(),
connectionId: z.string().optional(),
payload: z.record(z.unknown()).optional().default({}),
});
Source