1[
2  {
3    "namespace": "functionsOnTypes",
4    "description": "The functionsOnTypes API.",
5    "types": [
6      {
7        "id": "StorageArea",
8        "type": "object",
9        "functions": [
10          {
11            "name": "get",
12            "type": "function",
13            "description": "Gets one or more items from storage.",
14            "parameters": [
15              {
16                "name": "keys",
17                "choices": [
18                  { "type": "string" },
19                  {
20                    "type": "object",
21                    "description": "Storage items to return in the callback, where the values are replaced with those from storage if they exist.",
22                    "properties": {},
23                    "additionalProperties": { "type": "any" }
24                  }
25                ],
26                "description": "A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object).  An empty list or object will return an empty result object.  Pass in <code>null</code> to get the entire contents of storage.",
27                "optional": true
28              },
29              {
30                "name": "callback",
31                "type": "function",
32                "description": "Callback with storage items, or on failure (in which case lastError will be set).",
33                "parameters": [
34                  {
35                    "name": "items",
36                    "type": "object",
37                    "properties": {},
38                    "additionalProperties": { "type": "any" },
39                    "description": "Object with items in their key-value mappings."
40                  }
41                ]
42              }
43            ]
44          }
45        ]
46      },
47      {
48        "id": "ChromeSetting",
49        "type": "object",
50        "description": "An interface which allows access to a Chrome browser setting.",
51        "functions": [
52          {
53            "name": "get",
54            "type": "function",
55            "description": "Gets the value of a setting.",
56            "parameters": [
57              {
58                "name": "details",
59                "type": "object",
60                "description": "What setting to consider.",
61                "properties": {
62                  "incognito": {
63                    "type": "boolean",
64                    "optional": true,
65                    "description": "Whether to return the setting that applies to the incognito session (default false)."
66                  }
67                }
68              }
69            ]
70          }
71        ]
72      }
73    ]
74  }
75]
76