OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "history", | 3 "namespace": "history", |
4 "types": [ | 4 "types": [ |
5 { | 5 { |
6 "id": "HistoryItem", | 6 "id": "HistoryItem", |
7 "type": "object", | 7 "type": "object", |
8 "description": "An object encapsulating one result of a history query.", | 8 "description": "An object encapsulating one result of a history query.", |
9 "properties": { | 9 "properties": { |
10 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, | 10 "id": {"type": "string", "minimum": 0, "description": "The unique iden
tifier for the item."}, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 { | 51 { |
52 "name": "callback", | 52 "name": "callback", |
53 "type": "function", | 53 "type": "function", |
54 "parameters": [ | 54 "parameters": [ |
55 { "name": "results", "type": "array", "items": { "$ref": "HistoryI
tem"} } | 55 { "name": "results", "type": "array", "items": { "$ref": "HistoryI
tem"} } |
56 ] | 56 ] |
57 } | 57 } |
58 ] | 58 ] |
59 }, | 59 }, |
60 { | 60 { |
| 61 "name": "getMostVisited", |
| 62 "type": "function", |
| 63 "description": "Retrieves most visited URLs on the time specified.", |
| 64 "parameters": [ |
| 65 { |
| 66 "name": "details", |
| 67 "type": "object", |
| 68 "properties": { |
| 69 "startTime": {"type": "number", "optional": true, "description": "
Limit results to those visited between this and |endTime| on each day, represent
ed in milliseconds since the epoch."}, |
| 70 "endTime": {"type": "number", "optional": true, "description": "Li
mit results to those visited between |startTime| and this on each day, represent
ed in milliseconds since the epoch."}, |
| 71 "dayOfTheWeek": {"type": "integer", "optional": true, "minimum": 0
, "description": "Limit results to those visited on this day of the week (0 - Su
nday, 1 - Monday, etc.) starting with this week."}, |
| 72 "maxResults": {"type": "integer", "optional": true, "minimum": 0,
"description": "The maximum number of results to retrieve. Defaults to 100."} |
| 73 } |
| 74 }, |
| 75 { |
| 76 "name": "callback", |
| 77 "type": "function", |
| 78 "parameters": [ |
| 79 { "name": "results", "type": "array", "items": { "$ref": "HistoryI
tem"} } |
| 80 ] |
| 81 } |
| 82 ] |
| 83 }, |
| 84 { |
61 "name": "getVisits", | 85 "name": "getVisits", |
62 "type": "function", | 86 "type": "function", |
63 "description": "Retrieves information about visits to a URL.", | 87 "description": "Retrieves information about visits to a URL.", |
64 "parameters": [ | 88 "parameters": [ |
65 { | 89 { |
66 "name": "details", | 90 "name": "details", |
67 "type": "object", | 91 "type": "object", |
68 "properties": { | 92 "properties": { |
69 "url": {"type": "string", "description": "The URL for which to ret
rieve visit information. It must be in the format as returned from a call to hi
story.search."} | 93 "url": {"type": "string", "description": "The URL for which to ret
rieve visit information. It must be in the format as returned from a call to hi
story.search."} |
70 } | 94 } |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 "properties": { | 179 "properties": { |
156 "allHistory": { "type": "boolean", "description": "True if all his
tory was removed. If true, then urls will be empty." }, | 180 "allHistory": { "type": "boolean", "description": "True if all his
tory was removed. If true, then urls will be empty." }, |
157 "urls": { "type": "array", "items": { "type": "string" }, "optiona
l": true} | 181 "urls": { "type": "array", "items": { "type": "string" }, "optiona
l": true} |
158 } | 182 } |
159 } | 183 } |
160 ] | 184 ] |
161 } | 185 } |
162 ] | 186 ] |
163 } | 187 } |
164 ] | 188 ] |
OLD | NEW |