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