TypeScript type definitions and interfaces for Music Assistant Queue Actions, a custom integration for Home Assistant. Version 1.1.3 provides Zod-based schemas for service calls, responses, and WebSocket commands (e.g., get_queue_items, play_queue_item). Released on GitHub under the MIT license, maintained by droans. Differentiates by offering both PARTIAL (service data only) and FULL (complete call validation) schemas, plus response schemas for the three services that return data. Intended for developers building Home Assistant custom cards or automations involving Music Assistant queues.
npm install mass-queue-typesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows importing service and response schemas, inferring TypeScript types, and validating both PARTIAL and FULL schemas.
Set 'type': 'module' in your package.json or use .mjs files.
Update imports to '@droans/mass-queue-types' and switch to ESM.
Only use ResponseSchemas for those three services. For others, expect no response data.
Check the documentation for each WebSocket command's schema availability.
Use import syntax or set "type": "module" in package.json.
Run 'npm install @droans/mass-queue-types' and ensure you use the scoped name with @droans prefix.
Import ServiceSchemas and access .get_queue_items: import { ServiceSchemas } from '@droans/mass-queue-types'. Use ServiceSchemas.get_queue_items.parse(...).