Experiment to rebuild Diffuse using web applets.
1{
2 "name": "diffuse/engine/queue",
3 "title": "Diffuse Queue",
4 "entrypoint": "index.html",
5 "actions": {
6 "add": {
7 "title": "Add",
8 "description": "Add items to the queue.",
9 "params_schema": {
10 "type": "array",
11 "items": {
12 "anyOf": [
13 {
14 "type": "object",
15 "properties": {
16 "expiresAt": { "type": "number" },
17 "id": { "type": "string" },
18 "url": { "type": "string" }
19 },
20 "required": ["expiresAt", "id", "url"]
21 }
22 ]
23 }
24 }
25 },
26 "shift": {
27 "title": "Shift",
28 "description": "Shift the queue, picking the first item from the up next array and putting the currently playing item into the history list."
29 }
30 }
31}