mass-queue-types
v0.8.1
Published
Custom Types and Interfaces for Music Assistant Queue Actions
Downloads
1,388
Maintainers
Readme
Music Assistant Queue Actions Types
Typescript types and interfaces for the Music Assistant Queue Actions
Table of Contents
Installation
- Add
@droans/mass-queue-actionsto your package.json file or runnpm i @droans/mass-queue-actions
Usage
Service Schemas
All service schemas are available as PARTIAL (service data only) or FULL (entire service call) schemas. Full will only work when calling hass.callWS due to the function schemas.
Use FULL when...
- You are calling
hass.callWS. - You want complete validation, including the
type,domain,service, and (if applicable),return_response.
Use PARTIAL when...
- You are calling
hass.callService. - You only want to validate the service data being passed.
Available service schemas
All mass_queue services have schemas available:
get_group_volumeget_queue_itemsget_recommendationsmove_queue_item_downmove_queue_item_nextmove_queue_item_upplay_queue_itemremove_queue_itemsend_commandset_group_volumeunfavorite_current_item
Response Schemas
There are only a few services in Music Assistant Queue Actions which can return a service response. All of these are available.
Like with Service Schemas, these are available as PARTIAL (response data only) or FULL (data inside the response key).
Available service response schemas:
get_group_volumeget_queue_itemsget_recommendations
Websocket Commands
Music Assistant Queue Actions supports a handful of WebSocket commands which aren't available as service calls. All of them have their service and response schemas available.
Available WebSocket schemas:
mass_queue/download_and_encode_image- NOTE: No response schema is available since this only returns a string
mass_queue/encode_imagesmass_queue.get_info
FAQs
I would like to sponsor you/the card and/or pay to add a new feature!
While I appreciate it, I am not going to accept any funding.
When someone funds development, there's often an implied belief that the card will keep being developed or the maintainer will provide new projects. I want to be able to drop development on this card when I feel that it is complete. I do not want people to feel misled, cheated, or that I should prioritize their wants over anything else. This card is something I created for myself
I have other questions or issues not addressed
Check the repository issues to see if your question has already been asked. If not, feel free to submit a new issue.
Contributing
I am happy to accept any new contributions to this repository. Feel free to fork and submit pull requests.
Developing
This card uses corepack for development and relies on Node 22.
Clone the repository:
git clone https://github.com/droans/mass-queue-typesSet up the environment
Switch to Node 22:
nvm use 22Install corepack:
npm install corepackInstall dependencies:
yarn install