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 "id": { "type": "string" },
17 "uri": { "type": "string" }
18 },
19 "required": ["id", "uri"]
20 }
21 ]
22 }
23 }
24 },
25 "shift": {
26 "title": "Shift",
27 "description": "Shift the queue, picking the first item from the up next array and putting the currently playing item into the history list."
28 },
29 "unshift": {
30 "title": "Unshift",
31 "description": "Unshift the queue, going backwards in time, picking the last item from the history array and putting the currently playing item into the up next list."
32 }
33 }
34}