OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "experimental.record", | 3 "namespace": "experimental.record", |
4 "types": [ | 4 "types": [ |
5 { | 5 { |
6 "id": "SessionDetails", | 6 "id": "SessionDetails", |
7 "type": "object", | 7 "type": "object", |
8 "description": "", | 8 "description": "", |
9 "properties": { | 9 "properties": { |
10 "extensionPath": {"type": "string", "optional": true, "description": "
A path to an extension to run in the session. Should be an unpacked extension."} | 10 "extensionPath": { |
11 } | 11 "type": "string", |
12 }, | 12 "optional": true, |
13 { | 13 "description": |
14 "id": "ReplayURLsResult", | 14 "Absolute path to an unpacked extension to run in the subbrowser
session." |
15 "type": "object", | 15 } |
16 "description": "", | |
17 "properties": { | |
18 "runTime": {"type": "integer", "description": "Time in milliseconds to
complete all runs."}, | |
19 "stats": {"type": "string", "description": "Full multiline dump of out
put stats."}, | |
20 "errors": {"type": "array", "items": {"type": "string"}, "description"
: "List of errors during replay."} | |
21 } | 16 } |
22 } | 17 } |
23 ], | 18 ], |
24 "functions": [ | 19 "functions": [ |
25 { | 20 { |
26 "name": "captureURLs", | 21 "name": "captureURLs", |
27 "description": "", | 22 "description": "", |
28 "type": "function", | 23 "type": "function", |
29 "parameters": [ | 24 "parameters": [ |
30 { | 25 { |
| 26 "type": "string", |
| 27 "description": "Unique name of the capture.", |
| 28 "name": "captureName" |
| 29 }, |
| 30 { |
31 "type": "array", | 31 "type": "array", |
32 "items": {"type": "string"}, | 32 "items": {"type": "string"}, |
| 33 "description": "URL list to visit during capture.", |
33 "name": "urls" | 34 "name": "urls" |
34 }, | 35 }, |
35 { | 36 { |
36 "type": "string", | |
37 "name": "cacheDirectoryPath" | |
38 }, | |
39 { | |
40 "name": "callback", | 37 "name": "callback", |
41 "type": "function", | 38 "type": "function", |
42 "description": "Called when capture has completed.", | 39 "description": "Called when capture has completed.", |
43 "optional": true, | 40 "optional": true, |
44 "parameters": [ | 41 "parameters": [ |
45 { | 42 { |
46 "type": "array", | 43 "type": "array", |
47 "items": {"type": "string"}, | 44 "items": {"type": "string"}, |
48 "name": "errors" | 45 "name": "errors" |
49 } | 46 } |
50 ] | 47 ] |
51 } | 48 } |
52 ] | 49 ] |
53 }, | 50 }, |
54 { | 51 { |
55 "name": "replayURLs", | 52 "name": "replayURLs", |
56 "description": "", | 53 "description": "", |
57 "type": "function", | 54 "type": "function", |
58 "parameters": [ | 55 "parameters": [ |
59 { | 56 { |
60 "type": "array", | |
61 "items": {"type": "string"}, | |
62 "name": "urls" | |
63 }, | |
64 { | |
65 "type": "string", | 57 "type": "string", |
66 "name": "captureDirectoryPath" | 58 "name": "captureName", |
| 59 "description": "Unique name of capture. Use to determine cache." |
67 }, | 60 }, |
68 { | 61 { |
69 "type": "integer", | 62 "type": "integer", |
70 "name": "repeatCount", | 63 "name": "repeatCount", |
71 "minimum": 0, | 64 "minimum": 0, |
72 "maximum": 100 | 65 "maximum": 100 |
73 }, | 66 }, |
74 { | 67 { |
75 "$ref": "SessionDetails", | 68 "$ref": "SessionDetails", |
76 "name": "details", | 69 "name": "details", |
77 "optional": true | 70 "optional": true |
78 }, | 71 }, |
79 { | 72 { |
80 "name": "callback", | 73 "name": "callback", |
81 "type": "function", | 74 "type": "function", |
82 "description": "Called when playback has completed.", | 75 "description": "Called when playback has completed.", |
83 "parameters": [{"$ref": "ReplayURLsResult", "name": "result"}] | 76 "parameters": [ |
| 77 { |
| 78 "type": "integer", |
| 79 "name": "runTime", |
| 80 "description": "Time in milliseconds to complete all runs." |
| 81 }, |
| 82 { |
| 83 "type": "string", |
| 84 "name": "stats", |
| 85 "description": "Full multiline dump of output stats." |
| 86 }, |
| 87 { |
| 88 "type": "array", |
| 89 "name": "errors", |
| 90 "items": {"type": "string"}, |
| 91 "description": "List of errors during replay." |
| 92 } |
| 93 ] |
84 } | 94 } |
85 ] | 95 ] |
86 } | 96 } |
87 ] | 97 ] |
88 } | 98 } |
89 ] | 99 ] |
OLD | NEW |