Experiment to rebuild Diffuse using web applets.
1{
2 "name": "diffuse/input/opensubsonic",
3 "title": "Diffuse Input | OpenSubsonic API",
4 "entrypoint": "index.html",
5 "input_properties": {
6 "scheme": "opensubsonic"
7 },
8 "actions": {
9 "consult": {
10 "title": "Consult",
11 "params_schema": {
12 "type": "string",
13 "description": "The uri to check the availability of."
14 }
15 },
16 "contextualize": {
17 "title": "Contextualize",
18 "params_schema": {
19 "type": "array",
20 "description": "Array of tracks",
21 "items": { "type": "object" }
22 }
23 },
24 "list": {
25 "title": "List",
26 "description": "List tracks.",
27 "params_schema": {
28 "type": "array",
29 "description": "A list of (cached) tracks with an uri matching the scheme",
30 "items": {
31 "type": "object"
32 }
33 }
34 },
35 "resolve": {
36 "title": "Resolve",
37 "description": "Potentially translates a track uri with a matching scheme into a URL pointing at the audio bytes or an audio stream. If it can be resolved that is, otherwise you'll get `undefined`. Use the `consult` action to get a more detailed answer.",
38 "params_schema": {
39 "type": "object",
40 "properties": {
41 "method": {
42 "type": "string",
43 "description": "The HTTP method that is going to be used on the resolved URI."
44 },
45 "uri": { "type": "string", "description": "The URI to resolve." }
46 },
47 "required": ["method", "uri"]
48 }
49 },
50 "mount": {
51 "title": "Mount",
52 "description": "Prepare for usage."
53 },
54 "unmount": {
55 "title": "Unmount",
56 "description": "Callback after usage.",
57 "params_schema": {
58 "type": "string",
59 "description": "The handle id to unmount"
60 }
61 }
62 }
63}