@api-client/core 0.3.3 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/build/browser.d.ts +3 -0
  2. package/build/browser.js +9 -0
  3. package/build/browser.js.map +1 -1
  4. package/build/index.d.ts +11 -2
  5. package/build/index.js +20 -2
  6. package/build/index.js.map +1 -1
  7. package/build/src/lib/fs/Fs.d.ts +52 -0
  8. package/build/src/lib/fs/Fs.js +245 -0
  9. package/build/src/lib/fs/Fs.js.map +1 -0
  10. package/build/src/lib/timers/Timers.d.ts +5 -0
  11. package/build/src/lib/timers/Timers.js +10 -0
  12. package/build/src/lib/timers/Timers.js.map +1 -0
  13. package/build/src/mocking/ProjectMock.d.ts +13 -0
  14. package/build/src/mocking/ProjectMock.js +16 -0
  15. package/build/src/mocking/ProjectMock.js.map +1 -0
  16. package/build/src/mocking/lib/Request.d.ts +32 -0
  17. package/build/src/mocking/lib/Request.js +63 -0
  18. package/build/src/mocking/lib/Request.js.map +1 -0
  19. package/build/src/mocking/lib/Response.d.ts +33 -0
  20. package/build/src/mocking/lib/Response.js +79 -0
  21. package/build/src/mocking/lib/Response.js.map +1 -0
  22. package/build/src/models/ErrorResponse.d.ts +5 -4
  23. package/build/src/models/ErrorResponse.js +18 -5
  24. package/build/src/models/ErrorResponse.js.map +1 -1
  25. package/build/src/models/SerializableError.d.ts +30 -0
  26. package/build/src/models/SerializableError.js +63 -0
  27. package/build/src/models/SerializableError.js.map +1 -0
  28. package/build/src/runtime/http-engine/ArcEngine.js +8 -4
  29. package/build/src/runtime/http-engine/ArcEngine.js.map +1 -1
  30. package/build/src/runtime/http-engine/HttpEngine.d.ts +3 -3
  31. package/build/src/runtime/http-engine/HttpEngine.js +3 -3
  32. package/build/src/runtime/http-engine/HttpEngine.js.map +1 -1
  33. package/build/src/runtime/http-engine/NodeEngine.js +9 -4
  34. package/build/src/runtime/http-engine/NodeEngine.js.map +1 -1
  35. package/build/src/runtime/http-engine/NodeEngineDirect.js +8 -2
  36. package/build/src/runtime/http-engine/NodeEngineDirect.js.map +1 -1
  37. package/build/src/runtime/node/BaseRunner.d.ts +21 -0
  38. package/build/src/runtime/node/BaseRunner.js +27 -0
  39. package/build/src/runtime/node/BaseRunner.js.map +1 -0
  40. package/build/src/runtime/node/ProjectParallelRunner.d.ts +81 -0
  41. package/build/src/runtime/node/ProjectParallelRunner.js +173 -0
  42. package/build/src/runtime/node/ProjectParallelRunner.js.map +1 -0
  43. package/build/src/runtime/node/ProjectRequestRunner.d.ts +125 -0
  44. package/build/src/runtime/node/ProjectRequestRunner.js +185 -0
  45. package/build/src/runtime/node/ProjectRequestRunner.js.map +1 -0
  46. package/build/src/runtime/node/ProjectRunner.d.ts +166 -64
  47. package/build/src/runtime/node/ProjectRunner.js +191 -139
  48. package/build/src/runtime/node/ProjectRunner.js.map +1 -1
  49. package/build/src/runtime/node/ProjectRunnerWorker.d.ts +1 -0
  50. package/build/src/runtime/node/ProjectRunnerWorker.js +58 -0
  51. package/build/src/runtime/node/ProjectRunnerWorker.js.map +1 -0
  52. package/build/src/runtime/node/ProjectSerialRunner.d.ts +11 -0
  53. package/build/src/runtime/node/ProjectSerialRunner.js +34 -0
  54. package/build/src/runtime/node/ProjectSerialRunner.js.map +1 -0
  55. package/build/src/runtime/reporters/ProjectRunCliReporter.d.ts +7 -0
  56. package/build/src/runtime/reporters/ProjectRunCliReporter.js +73 -0
  57. package/build/src/runtime/reporters/ProjectRunCliReporter.js.map +1 -0
  58. package/build/src/runtime/reporters/Reporter.d.ts +62 -0
  59. package/build/src/runtime/reporters/Reporter.js +98 -0
  60. package/build/src/runtime/reporters/Reporter.js.map +1 -0
  61. package/build/src/testing/TestCliHelper.d.ts +23 -0
  62. package/build/src/testing/TestCliHelper.js +71 -0
  63. package/build/src/testing/TestCliHelper.js.map +1 -0
  64. package/build/src/testing/getPort.d.ts +52 -0
  65. package/build/src/testing/getPort.js +169 -0
  66. package/build/src/testing/getPort.js.map +1 -0
  67. package/package.json +2 -1
  68. package/src/data/DataReader.ts +11 -0
  69. package/src/data/DataUtils.ts +108 -0
  70. package/src/data/JmesparthReader.ts +26 -0
  71. package/src/data/Json2Xml.ts +190 -0
  72. package/src/data/JsonReader.ts +41 -0
  73. package/src/data/PayloadPointer.ts +48 -0
  74. package/src/data/RequestDataExtractor.ts +133 -0
  75. package/src/data/UrlEncodedReader.ts +20 -0
  76. package/src/data/XmlReader.ts +103 -0
  77. package/src/events/BaseEvents.ts +259 -0
  78. package/src/events/CustomEvent.ts +27 -0
  79. package/src/events/EventTypes.ts +19 -0
  80. package/src/events/Events.ts +19 -0
  81. package/src/events/authorization/AuthorizationEventTypes.ts +22 -0
  82. package/src/events/authorization/AuthorizationEvents.ts +61 -0
  83. package/src/events/cookies/CookieEventTypes.ts +13 -0
  84. package/src/events/cookies/CookieEvents.ts +157 -0
  85. package/src/events/encryption/EncryptionEventTypes.ts +4 -0
  86. package/src/events/encryption/EncryptionEvents.ts +51 -0
  87. package/src/events/environment/EnvironmentEventTypes.ts +3 -0
  88. package/src/events/environment/EnvironmentEvents.ts +24 -0
  89. package/src/events/models/ClientCertificateEvents.ts +87 -0
  90. package/src/events/models/ModelEventTypes.ts +47 -0
  91. package/src/events/models/ModelEvents.ts +7 -0
  92. package/src/events/models/ProjectEvents.ts +331 -0
  93. package/src/events/process/ProcessEventTypes.ts +5 -0
  94. package/src/events/process/ProcessEvents.ts +76 -0
  95. package/src/events/readme.md +22 -0
  96. package/src/events/reporting/ReportingEventTypes.ts +3 -0
  97. package/src/events/reporting/ReportingEvents.ts +28 -0
  98. package/src/events/telemetry/TelemetryEventTypes.ts +10 -0
  99. package/src/events/telemetry/TelemetryEvents.ts +156 -0
  100. package/src/lib/cookies/Cookie.ts +312 -0
  101. package/src/lib/cookies/Cookies.ts +326 -0
  102. package/src/lib/cookies/Utils.ts +168 -0
  103. package/src/lib/fs/Fs.ts +258 -0
  104. package/src/lib/headers/Headers.ts +219 -0
  105. package/src/lib/logging/DefaultLogger.ts +19 -0
  106. package/src/lib/logging/DummyLogger.ts +21 -0
  107. package/src/lib/logging/Logger.ts +16 -0
  108. package/src/lib/timers/Timers.ts +9 -0
  109. package/src/lib/transformers/PayloadSerializer.ts +332 -0
  110. package/src/lib/transformers/Utils.ts +18 -0
  111. package/src/lib/uuid.ts +40 -0
  112. package/src/mocking/LegacyInterfaces.ts +52 -0
  113. package/src/mocking/LegacyMock.ts +37 -0
  114. package/src/mocking/ProjectMock.ts +20 -0
  115. package/src/mocking/legacy/Authorization.ts +39 -0
  116. package/src/mocking/legacy/Certificates.ts +145 -0
  117. package/src/mocking/legacy/Cookies.ts +51 -0
  118. package/src/mocking/legacy/HostRules.ts +43 -0
  119. package/src/mocking/legacy/Http.ts +236 -0
  120. package/src/mocking/legacy/HttpResponse.ts +106 -0
  121. package/src/mocking/legacy/RestApi.ts +68 -0
  122. package/src/mocking/legacy/Urls.ts +44 -0
  123. package/src/mocking/legacy/Variables.ts +53 -0
  124. package/src/mocking/lib/Request.ts +85 -0
  125. package/src/mocking/lib/Response.ts +101 -0
  126. package/src/models/ArcResponse.ts +166 -0
  127. package/src/models/Authorization.ts +481 -0
  128. package/src/models/AuthorizationData.ts +60 -0
  129. package/src/models/Backend.ts +107 -0
  130. package/src/models/ClientCertificate.ts +68 -0
  131. package/src/models/Environment.ts +279 -0
  132. package/src/models/ErrorResponse.ts +113 -0
  133. package/src/models/HistoryIndex.ts +76 -0
  134. package/src/models/HistoryRequest.ts +28 -0
  135. package/src/models/HostRule.ts +163 -0
  136. package/src/models/HttpCookie.ts +285 -0
  137. package/src/models/HttpProject.ts +1294 -0
  138. package/src/models/HttpProjectListItem.ts +23 -0
  139. package/src/models/HttpRequest.ts +124 -0
  140. package/src/models/HttpResponse.ts +143 -0
  141. package/src/models/License.ts +113 -0
  142. package/src/models/ProjectDefinitionProperty.ts +40 -0
  143. package/src/models/ProjectFolder.ts +439 -0
  144. package/src/models/ProjectItem.ts +135 -0
  145. package/src/models/ProjectParent.ts +113 -0
  146. package/src/models/ProjectRequest.ts +277 -0
  147. package/src/models/ProjectSchema.ts +202 -0
  148. package/src/models/Property.ts +423 -0
  149. package/src/models/Provider.ts +98 -0
  150. package/src/models/README.md +20 -0
  151. package/src/models/Request.ts +452 -0
  152. package/src/models/RequestActions.ts +163 -0
  153. package/src/models/RequestAuthorization.ts +115 -0
  154. package/src/models/RequestConfig.ts +317 -0
  155. package/src/models/RequestLog.ts +159 -0
  156. package/src/models/RequestTime.ts +108 -0
  157. package/src/models/RequestUiMeta.ts +258 -0
  158. package/src/models/RequestsSize.ts +65 -0
  159. package/src/models/ResponseAuthorization.ts +104 -0
  160. package/src/models/ResponseRedirect.ts +158 -0
  161. package/src/models/RevisionInfo.ts +37 -0
  162. package/src/models/SentRequest.ts +125 -0
  163. package/src/models/SerializableError.ts +80 -0
  164. package/src/models/SerializablePayload.ts +68 -0
  165. package/src/models/Server.ts +153 -0
  166. package/src/models/Thing.ts +110 -0
  167. package/src/models/Url.ts +90 -0
  168. package/src/models/User.ts +120 -0
  169. package/src/models/WebApi.ts +234 -0
  170. package/src/models/WebApiIndex.ts +122 -0
  171. package/src/models/Workspace.ts +182 -0
  172. package/src/models/actions/Action.ts +213 -0
  173. package/src/models/actions/ActionView.ts +40 -0
  174. package/src/models/actions/Condition.ts +207 -0
  175. package/src/models/actions/ConditionView.ts +42 -0
  176. package/src/models/actions/Enums.ts +29 -0
  177. package/src/models/actions/RunnableAction.ts +144 -0
  178. package/src/models/actions/runnable/DeleteCookieAction.ts +113 -0
  179. package/src/models/actions/runnable/Runnable.ts +9 -0
  180. package/src/models/actions/runnable/SetCookieAction.ts +216 -0
  181. package/src/models/actions/runnable/SetVariableAction.ts +81 -0
  182. package/src/models/legacy/DataExport.ts +172 -0
  183. package/src/models/legacy/Normalizer.ts +110 -0
  184. package/src/models/legacy/actions/Actions.ts +269 -0
  185. package/src/models/legacy/authorization/Authorization.ts +572 -0
  186. package/src/models/legacy/models/ApiTypes.ts +202 -0
  187. package/src/models/legacy/models/ArcLegacyProject.ts +39 -0
  188. package/src/models/legacy/models/AuthData.ts +17 -0
  189. package/src/models/legacy/models/ClientCertificate.ts +95 -0
  190. package/src/models/legacy/models/Cookies.ts +52 -0
  191. package/src/models/legacy/models/HostRule.ts +35 -0
  192. package/src/models/legacy/models/RestApi.ts +49 -0
  193. package/src/models/legacy/models/UrlHistory.ts +37 -0
  194. package/src/models/legacy/models/Variable.ts +43 -0
  195. package/src/models/legacy/models/base.d.ts +95 -0
  196. package/src/models/legacy/request/ArcRequest.ts +405 -0
  197. package/src/models/legacy/request/ArcResponse.ts +177 -0
  198. package/src/models/legacy/request/HistoryData.ts +47 -0
  199. package/src/models/legacy/request/Legacy.ts +45 -0
  200. package/src/models/legacy/request/RequestBody.ts +87 -0
  201. package/src/models/transformers/ArcDexieTransformer.ts +323 -0
  202. package/src/models/transformers/ArcLegacyNormalizer.ts +85 -0
  203. package/src/models/transformers/ArcLegacyTransformer.ts +200 -0
  204. package/src/models/transformers/ArcPouchTransformer.ts +184 -0
  205. package/src/models/transformers/BaseTransformer.ts +116 -0
  206. package/src/models/transformers/ImportUtils.ts +141 -0
  207. package/src/models/transformers/LegacyDataExportToApiProject.ts +76 -0
  208. package/src/models/transformers/LegacyExportProcessor.ts +252 -0
  209. package/src/models/transformers/PostmanBackupTransformer.ts +306 -0
  210. package/src/models/transformers/PostmanDataTransformer.ts +50 -0
  211. package/src/models/transformers/PostmanTransformer.ts +106 -0
  212. package/src/models/transformers/PostmanV21Transformer.ts +311 -0
  213. package/src/models/transformers/PostmanV2Transformer.ts +308 -0
  214. package/src/models/transformers/har.ts +865 -0
  215. package/src/runtime/actions/ActionRunner.ts +83 -0
  216. package/src/runtime/actions/ConditionRunner.ts +194 -0
  217. package/src/runtime/actions/RunnableCondition.ts +57 -0
  218. package/src/runtime/actions/runnable/ActionRunnable.ts +19 -0
  219. package/src/runtime/actions/runnable/DeleteCookieRunnable.ts +39 -0
  220. package/src/runtime/actions/runnable/SetCookieRunnable.ts +92 -0
  221. package/src/runtime/actions/runnable/SetVariableRunnable.ts +53 -0
  222. package/src/runtime/http-engine/ArcEngine.ts +1068 -0
  223. package/src/runtime/http-engine/FormData.ts +85 -0
  224. package/src/runtime/http-engine/HttpEngine.ts +874 -0
  225. package/src/runtime/http-engine/HttpErrorCodes.ts +270 -0
  226. package/src/runtime/http-engine/NodeEngine.ts +792 -0
  227. package/src/runtime/http-engine/NodeEngineDirect.ts +482 -0
  228. package/src/runtime/http-engine/PayloadSupport.ts +84 -0
  229. package/src/runtime/http-engine/RequestUtils.ts +164 -0
  230. package/src/runtime/http-engine/ntlm/Des.ts +345 -0
  231. package/src/runtime/http-engine/ntlm/MD4.ts +135 -0
  232. package/src/runtime/http-engine/ntlm/NtlmAuth.ts +186 -0
  233. package/src/runtime/http-engine/ntlm/NtlmMessage.ts +57 -0
  234. package/src/runtime/modules/BasicAuthCache.ts +133 -0
  235. package/src/runtime/modules/ExecutionResponse.ts +4 -0
  236. package/src/runtime/modules/ModulesRegistry.ts +136 -0
  237. package/src/runtime/modules/RequestAuthorization.ts +110 -0
  238. package/src/runtime/modules/RequestCookies.ts +145 -0
  239. package/src/runtime/node/BaseRunner.ts +29 -0
  240. package/src/runtime/node/ProjectParallelRunner.ts +234 -0
  241. package/src/runtime/node/ProjectRequestRunner.ts +281 -0
  242. package/src/runtime/node/ProjectRunner.ts +374 -0
  243. package/src/runtime/node/ProjectRunnerWorker.ts +62 -0
  244. package/src/runtime/node/ProjectSerialRunner.ts +36 -0
  245. package/src/runtime/node/RequestFactory.ts +422 -0
  246. package/src/runtime/node/VariablesStore.ts +25 -0
  247. package/src/runtime/reporters/ProjectRunCliReporter.ts +79 -0
  248. package/src/runtime/reporters/Reporter.ts +142 -0
  249. package/src/runtime/store/StoreSdk.ts +838 -0
  250. package/src/runtime/variables/Cache.ts +53 -0
  251. package/src/runtime/variables/EvalFunctions.ts +132 -0
  252. package/src/runtime/variables/ProjectVariables.ts +6 -0
  253. package/src/runtime/variables/VariablesProcessor.ts +543 -0
  254. package/src/runtime/variables/VariablesTokenizer.ts +55 -0
  255. package/src/testing/TestCliHelper.ts +76 -0
  256. package/src/testing/getPort.ts +212 -0
  257. package/build/src/runtime/http-engine/Errors.d.ts +0 -10
  258. package/build/src/runtime/http-engine/Errors.js +0 -14
  259. package/build/src/runtime/http-engine/Errors.js.map +0 -1
@@ -0,0 +1,865 @@
1
+ /**
2
+ * HTTP Archive 1.2
3
+ *
4
+ * http://www.softwareishard.com/blog/har-12-spec
5
+ */
6
+ export interface Har {
7
+ /** This object represents the root of exported data. */
8
+ log: Log;
9
+ }
10
+ /**
11
+ * This object (`log`) represents the root of exported data.
12
+ *
13
+ * http://www.softwareishard.com/blog/har-12-spec/#log
14
+ */
15
+ export interface Log {
16
+ /**
17
+ * Version number of the format.
18
+ *
19
+ * _If empty, string "1.1" is assumed by default._
20
+ */
21
+ version: string;
22
+ /** Name and version info of the log creator application. */
23
+ creator: Creator;
24
+ /** Name and version info of used browser. */
25
+ browser?: Browser | undefined;
26
+ /**
27
+ * List of all exported (tracked) pages.
28
+ *
29
+ * _Leave out this field if the application
30
+ * does not support grouping by pages._
31
+ *
32
+ * There is one `<page>` object for every exported web page and one
33
+ * `<entry>` object for every HTTP request.
34
+ * In case when an HTTP trace tool isn't able to group requests by a page,
35
+ * the `<pages>` object is empty and individual requests doesn't have a
36
+ * parent page.
37
+ */
38
+ pages?: Page[] | undefined;
39
+ /** List of all exported (tracked) requests. */
40
+ entries: Entry[];
41
+ /** A comment provided by the user or the application. */
42
+ comment?: string | undefined;
43
+ }
44
+ /**
45
+ * Infos about application/browser used to export the log.
46
+ *
47
+ * `Creator` and `Browser` objects share the same structure.
48
+ *
49
+ * http://www.softwareishard.com/blog/har-12-spec/#creator
50
+ */
51
+ export interface Creator {
52
+ /** Name of the application/browser used to export the log. */
53
+ name: string;
54
+ /** Version of the application/browser used to export the log. */
55
+ version: string;
56
+ /** A comment provided by the user or the application. */
57
+ comment?: string | undefined;
58
+ }
59
+ /**
60
+ * Infos about application/browser used to export the log.
61
+ *
62
+ * `Browser` and `Creator` objects share the same structure.
63
+ *
64
+ * http://www.softwareishard.com/blog/har-12-spec/#browser
65
+ */
66
+ export interface Browser {
67
+ /** Name of the application/browser used to export the log. */
68
+ name: string;
69
+ /** Version of the application/browser used to export the log. */
70
+ version: string;
71
+ /** A comment provided by the user or the application. */
72
+ comment?: string | undefined;
73
+ }
74
+ /**
75
+ * This object represents list of exported pages.
76
+ *
77
+ * http://www.softwareishard.com/blog/har-12-spec/#pages
78
+ */
79
+ export interface Page {
80
+ /**
81
+ * Date and time stamp for the beginning of the page load
82
+ *
83
+ * (ISO 8601 - `YYYY-MM-DDThh:mm:ss.sTZD`,
84
+ * e.g. `2009-07-24T19:20:30.45+01:00`).
85
+ */
86
+ startedDateTime: string;
87
+ /**
88
+ * Unique identifier of a page within the `<log>` (HAR doc).
89
+ * Entries use it to refer the parent page.
90
+ */
91
+ id: string;
92
+ /** Page title. */
93
+ title: string;
94
+ /** Detailed timing info about page load */
95
+ pageTimings: PageTiming;
96
+ /** A comment provided by the user or the application */
97
+ comment?: string | undefined;
98
+ /** _non-standard_ */
99
+ /** _non-standard_ */
100
+ _adult_site?: number | null | undefined;
101
+ /** _non-standard_ */
102
+ _aft?: number | null | undefined;
103
+ /** _non-standard_ */
104
+ _base_page_cdn?: string | null | undefined;
105
+ /** _non-standard_ */
106
+ _base_page_redirects?: number | null | undefined;
107
+ /** _non-standard_ */
108
+ _base_page_ttfb?: number | null | undefined;
109
+ /** _non-standard_ */
110
+ _browser_main_memory_kb?: number | null | undefined;
111
+ /** _non-standard_ */
112
+ _browser_name?: string | null | undefined;
113
+ /** _non-standard_ */
114
+ _browser_other_private_memory_kb?: number | null | undefined;
115
+ /** _non-standard_ */
116
+ _browser_process_count?: number | null | undefined;
117
+ /** _non-standard_ */
118
+ _browser_version?: string | null | undefined;
119
+ /** _non-standard_ */
120
+ _browser_working_set_kb?: number | null | undefined;
121
+ /** _non-standard_ */
122
+ _bytesIn?: number | null | undefined;
123
+ /** _non-standard_ */
124
+ _bytesInDoc?: number | null | undefined;
125
+ /** _non-standard_ */
126
+ _bytesOut?: number | null | undefined;
127
+ /** _non-standard_ */
128
+ _bytesOutDoc?: number | null | undefined;
129
+ /** _non-standard_ */
130
+ _cached?: number | null | undefined;
131
+ /** _non-standard_ */
132
+ _certificate_bytes?: number | null | undefined;
133
+ /** _non-standard_ */
134
+ _connections?: number | null | undefined;
135
+ /** _non-standard_ */
136
+ _date?: number | null | undefined;
137
+ /** _non-standard_ */
138
+ _docCPUms?: number | null | undefined;
139
+ /** _non-standard_ */
140
+ _docCPUpct?: number | null | undefined;
141
+ /** _non-standard_ */
142
+ _docTime?: number | null | undefined;
143
+ /** _non-standard_ */
144
+ _domContentLoadedEventEnd?: number | null | undefined;
145
+ /** _non-standard_ */
146
+ _domContentLoadedEventStart?: number | null | undefined;
147
+ /** _non-standard_ */
148
+ _domElements?: number | null | undefined;
149
+ /** _non-standard_ */
150
+ _domInteractive?: number | null | undefined;
151
+ /** _non-standard_ */
152
+ _domLoading?: number | null | undefined;
153
+ /** _non-standard_ */
154
+ _domTime?: number | null | undefined;
155
+ /** _non-standard_ */
156
+ _effectiveBps?: number | null | undefined;
157
+ /** _non-standard_ */
158
+ _effectiveBpsDoc?: number | null | undefined;
159
+ /** _non-standard_ */
160
+ _eventName?: string | null | undefined;
161
+ /** _non-standard_ */
162
+ _firstPaint?: number | null | undefined;
163
+ /** _non-standard_ */
164
+ _fixed_viewport?: number | null | undefined;
165
+ /** _non-standard_ */
166
+ _fullyLoaded?: number | null | undefined;
167
+ /** _non-standard_ */
168
+ _fullyLoadedCPUms?: number | null | undefined;
169
+ /** _non-standard_ */
170
+ _fullyLoadedCPUpct?: number | null | undefined;
171
+ /** _non-standard_ */
172
+ _gzip_savings?: number | null | undefined;
173
+ /** _non-standard_ */
174
+ _gzip_total?: number | null | undefined;
175
+ /** _non-standard_ */
176
+ _image_savings?: number | null | undefined;
177
+ /** _non-standard_ */
178
+ _image_total?: number | null | undefined;
179
+ /** _non-standard_ */
180
+ _isResponsive?: number | null | undefined;
181
+ /** _non-standard_ */
182
+ _lastVisualChange?: number | null | undefined;
183
+ /** _non-standard_ */
184
+ _loadEventEnd?: number | null | undefined;
185
+ /** _non-standard_ */
186
+ _loadEventStart?: number | null | undefined;
187
+ /** _non-standard_ */
188
+ _loadTime?: number | null | undefined;
189
+ /** _non-standard_ */
190
+ _minify_savings?: number | null | undefined;
191
+ /** _non-standard_ */
192
+ _minify_total?: number | null | undefined;
193
+ /** _non-standard_ */
194
+ _optimization_checked?: number | null | undefined;
195
+ /** _non-standard_ */
196
+ _pageSpeedVersion?: string | null | undefined;
197
+ /** _non-standard_ */
198
+ _render?: number | null | undefined;
199
+ /** _non-standard_ */
200
+ _requests?: number | null | undefined;
201
+ /** _non-standard_ */
202
+ _requestsDoc?: number | null | undefined;
203
+ /** _non-standard_ */
204
+ _requestsFull?: number | null | undefined;
205
+ /** _non-standard_ */
206
+ _responses_200?: number | null | undefined;
207
+ /** _non-standard_ */
208
+ _responses_404?: number | null | undefined;
209
+ /** _non-standard_ */
210
+ _responses_other?: number | null | undefined;
211
+ /** _non-standard_ */
212
+ _result?: number | null | undefined;
213
+ /** _non-standard_ */
214
+ _run?: number | null | undefined;
215
+ /** _non-standard_ */
216
+ _score_cache?: number | null | undefined;
217
+ /** _non-standard_ */
218
+ _score_cdn?: number | null | undefined;
219
+ /** _non-standard_ */
220
+ _score_combine?: number | null | undefined;
221
+ /** _non-standard_ */
222
+ _score_compress?: number | null | undefined;
223
+ /** _non-standard_ */
224
+ _score_cookies?: number | null | undefined;
225
+ /** _non-standard_ */
226
+ _score_etags?: number | null | undefined;
227
+ /** _non-standard_ */
228
+ _score_gzip?: number | null | undefined;
229
+ /** _non-standard_ */
230
+ '_score_keep-alive'?: number | null | undefined;
231
+ /** _non-standard_ */
232
+ _score_minify?: number | null | undefined;
233
+ /** _non-standard_ */
234
+ _score_progressive_jpeg?: number | null | undefined;
235
+ /** _non-standard_ */
236
+ _server_count?: number | null | undefined;
237
+ /** _non-standard_ */
238
+ _server_rtt?: number | null | undefined;
239
+ /** _non-standard_ */
240
+ _SpeedIndex?: number | null | undefined;
241
+ /** _non-standard_ */
242
+ _step?: number | null | undefined;
243
+ /** _non-standard_ */
244
+ _title?: string | null | undefined;
245
+ /** _non-standard_ */
246
+ _titleTime?: number | null | undefined;
247
+ /** _non-standard_ */
248
+ _TTFB?: number | null | undefined;
249
+ /** _non-standard_ */
250
+ _URL?: string | null | undefined;
251
+ /** _non-standard_ */
252
+ _visualComplete?: number | null | undefined;
253
+ /**
254
+ * _non-standard_
255
+ *
256
+ * See "Custom Fields" under http://www.softwareishard.com/blog/har-12-spec
257
+ */
258
+ [customField: `_${string}`]: unknown | null | undefined;
259
+ }
260
+ /**
261
+ * This object describes timings for various events (states) fired during the
262
+ * page load.
263
+ *
264
+ * All times are specified in milliseconds.
265
+ *
266
+ * If a time info is not available appropriate field is set to `-1`.
267
+ *
268
+ * http://www.softwareishard.com/blog/har-12-spec/#pageTimings
269
+ */
270
+ export interface PageTiming {
271
+ /**
272
+ * Content of the page loaded. Number of milliseconds since page load
273
+ * started (`page.startedDateTime`).
274
+ *
275
+ * Use `-1` if the timing does not apply to the current request.
276
+ */
277
+ onContentLoad?: number | undefined;
278
+ /**
279
+ * Page is loaded (`onLoad` event fired). Number of milliseconds since
280
+ * page load started (`page.startedDateTime`).
281
+ *
282
+ * Use `-1` if the timing does not apply to the current request.
283
+ */
284
+ onLoad?: number | undefined;
285
+ /** A comment provided by the user or the application */
286
+ comment?: string | undefined;
287
+ _startRender?: number | null | undefined;
288
+ }
289
+ /**
290
+ * _non-standard_
291
+ *
292
+ * Data for Chunk as provided by e.g. WebPageTest
293
+ */
294
+ export interface Chunk {
295
+ bytes: number;
296
+ ts: number;
297
+ }
298
+ /**
299
+ * This object represents an array with all exported HTTP requests. Sorting
300
+ * entries by `startedDateTime` (starting from the oldest) is preferred way how
301
+ * to export data since it can make importing faster.
302
+ * However the reader application should always make sure the array is sorted
303
+ * (if required for the import).
304
+ *
305
+ * http://www.softwareishard.com/blog/har-12-spec/#entries
306
+ */
307
+ export interface Entry {
308
+ /**
309
+ * Reference to the parent page. Leave out this field if the application
310
+ * does not support grouping by pages.
311
+ */
312
+ pageref?: string | undefined;
313
+ /**
314
+ * Date and time stamp of the request start
315
+ *
316
+ * (ISO 8601 - `YYYY-MM-DDThh:mm:ss.sTZD`).
317
+ */
318
+ startedDateTime: string;
319
+ /**
320
+ * Total elapsed time of the request in milliseconds.
321
+ *
322
+ * This is the sum of all timings available in the timings object
323
+ * (i.e. not including `-1` values).
324
+ */
325
+ time: number;
326
+ /** Detailed info about the request. */
327
+ request: Request;
328
+ /** Detailed info about the response. */
329
+ response: Response;
330
+ /** Info about cache usage. */
331
+ cache: Cache;
332
+ /** Detailed timing info about request/response round trip. */
333
+ timings: Timings;
334
+ /**
335
+ * IP address of the server that was connected
336
+ * (result of DNS resolution).
337
+ */
338
+ serverIPAddress?: string | undefined;
339
+ /**
340
+ * Unique ID of the parent TCP/IP connection, can be the client or server
341
+ * port number.
342
+ *
343
+ * Note that a port number doesn't have to be unique identifier
344
+ * in cases where the port is shared for more connections.
345
+ *
346
+ * If the port isn't available for the application, any other unique
347
+ * connection ID can be used instead (e.g. connection index). Leave out
348
+ * this field if the application doesn't support this info.
349
+ */
350
+ connection?: string | undefined;
351
+ /** A comment provided by the user or the application */
352
+ comment?: string | undefined;
353
+ /** _non-standard_ */
354
+ _all_end?: number | string | null | undefined;
355
+ /** _non-standard_ */
356
+ _all_ms?: number | string | null | undefined;
357
+ /** _non-standard_ */
358
+ _all_start?: number | string | null | undefined;
359
+ /** _non-standard_ */
360
+ _bytesIn?: number | string | null | undefined;
361
+ /** _non-standard_ */
362
+ _bytesOut?: number | string | null | undefined;
363
+ /** _non-standard_ */
364
+ _cacheControl?: string | null | undefined;
365
+ /** _non-standard_ */
366
+ _cache_time?: number | string | null | undefined;
367
+ /** _non-standard_ */
368
+ _cdn_provider?: string | null | undefined;
369
+ /** _non-standard_ */
370
+ _certificate_bytes?: number | string | null | undefined;
371
+ /** _non-standard_ */
372
+ _chunks?: Chunk[] | null | undefined;
373
+ /** _non-standard_ */
374
+ _client_port?: number | string | null | undefined;
375
+ /** _non-standard_ */
376
+ _connect_end?: number | string | null | undefined;
377
+ /** _non-standard_ */
378
+ _connect_ms?: number | string | null | undefined;
379
+ /** _non-standard_ */
380
+ _connect_start?: number | string | null | undefined;
381
+ /** _non-standard_ */
382
+ _contentEncoding?: string | null | undefined;
383
+ /** _non-standard_ */
384
+ _contentType?: string | null | undefined;
385
+ /** _non-standard_ */
386
+ _dns_end?: number | string | null | undefined;
387
+ /** _non-standard_ */
388
+ _dns_ms?: number | string | null | undefined;
389
+ /** _non-standard_ */
390
+ _dns_start?: number | string | null | undefined;
391
+ /** _non-standard_ */
392
+ _download_end?: number | string | null | undefined;
393
+ /** _non-standard_ */
394
+ _download_ms?: number | string | null | undefined;
395
+ /** _non-standard_ */
396
+ _download_start?: number | string | null | undefined;
397
+ /** _non-standard_ */
398
+ _expires?: string | null | undefined;
399
+ /** _non-standard_ */
400
+ _full_url?: string | null | undefined;
401
+ /** _non-standard_ */
402
+ _gzip_save?: number | string | null | undefined;
403
+ /** _non-standard_ */
404
+ _gzip_total?: number | string | null | undefined;
405
+ /** _non-standard_ */
406
+ _host?: string | null | undefined;
407
+ /** _non-standard_ */
408
+ _http2_stream_dependency?: number | string | null | undefined;
409
+ /** _non-standard_ */
410
+ _http2_stream_exclusive?: number | string | null | undefined;
411
+ /** _non-standard_ */
412
+ _http2_stream_id?: number | string | null | undefined;
413
+ /** _non-standard_ */
414
+ _http2_stream_weight?: number | string | null | undefined;
415
+ /** _non-standard_ */
416
+ _image_save?: number | string | null | undefined;
417
+ /** _non-standard_ */
418
+ _image_total?: number | string | null | undefined;
419
+ /** _non-standard_ */
420
+ _index?: number | null | undefined;
421
+ /** _non-standard_ */
422
+ _initiator?: string | null | undefined;
423
+ /** _non-standard_ */
424
+ _initiator_column?: string | null | undefined;
425
+ /** _non-standard_ */
426
+ _initiator_detail?: string | null | undefined;
427
+ /** _non-standard_ */
428
+ _initiator_function?: string | null | undefined;
429
+ /** _non-standard_ */
430
+ _initiator_line?: string | null | undefined;
431
+ /** _non-standard_ */
432
+ _initiator_type?: string | null | undefined;
433
+ /** _non-standard_ */
434
+ _ip_addr?: string | null | undefined;
435
+ /** _non-standard_ */
436
+ _is_secure?: number | string | null | undefined;
437
+ /** _non-standard_ */
438
+ _jpeg_scan_count?: number | string | null | undefined;
439
+ /** _non-standard_ */
440
+ _load_end?: number | string | null | undefined;
441
+ /** _non-standard_ */
442
+ _load_ms?: number | string | null | undefined;
443
+ /** _non-standard_ */
444
+ _load_start?: number | string | null | undefined;
445
+ /** _non-standard_ */
446
+ _method?: string | null | undefined;
447
+ /** _non-standard_ */
448
+ _minify_save?: number | string | null | undefined;
449
+ /** _non-standard_ */
450
+ _minify_total?: number | string | null | undefined;
451
+ /** _non-standard_ */
452
+ _number?: number | null | undefined;
453
+ /** _non-standard_ */
454
+ _objectSize?: number | string | null | undefined;
455
+ /** _non-standard_ */
456
+ _objectSizeUncompressed?: number | string | null | undefined;
457
+ /** _non-standard_ */
458
+ _priority?: string | null | undefined;
459
+ /** _non-standard_ */
460
+ _protocol?: number | string | null | undefined;
461
+ /** _non-standard_ */
462
+ _request_id?: number | string | null | undefined;
463
+ /** _non-standard_ */
464
+ _responseCode?: number | string | null | undefined;
465
+ /** _non-standard_ */
466
+ _score_cache?: number | string | null | undefined;
467
+ /** _non-standard_ */
468
+ _score_cdn?: number | string | null | undefined;
469
+ /** _non-standard_ */
470
+ _score_combine?: number | string | null | undefined;
471
+ /** _non-standard_ */
472
+ _score_compress?: number | string | null | undefined;
473
+ /** _non-standard_ */
474
+ _score_cookies?: number | string | null | undefined;
475
+ /** _non-standard_ */
476
+ _score_etags?: number | string | null | undefined;
477
+ /** _non-standard_ */
478
+ _score_gzip?: number | string | null | undefined;
479
+ /** _non-standard_ */
480
+ '_score_keep-alive'?: number | string | null | undefined;
481
+ /** _non-standard_ */
482
+ _score_minify?: number | string | null | undefined;
483
+ /** _non-standard_ */
484
+ _score_progressive_jpeg?: number | null | undefined;
485
+ /** _non-standard_ */
486
+ _server_count?: number | string | null | undefined;
487
+ /** _non-standard_ */
488
+ _server_rtt?: number | string | null | undefined;
489
+ /** _non-standard_ */
490
+ _socket?: number | string | null | undefined;
491
+ /** _non-standard_ */
492
+ _ssl_end?: number | string | null | undefined;
493
+ /** _non-standard_ */
494
+ _ssl_ms?: number | string | null | undefined;
495
+ /** _non-standard_ */
496
+ _ssl_start?: number | string | null | undefined;
497
+ /** _non-standard_ */
498
+ _ttfb_end?: number | string | null | undefined;
499
+ /** _non-standard_ */
500
+ _ttfb_ms?: number | string | null | undefined;
501
+ /** _non-standard_ */
502
+ _ttfb_start?: number | string | null | undefined;
503
+ /** _non-standard_ */
504
+ _type?: number | string | null | undefined;
505
+ /** _non-standard_ */
506
+ _url?: string | null | undefined;
507
+ /** _non-standard_ */
508
+ _was_pushed?: number | string | null | undefined;
509
+ /** _non-standard_ */
510
+ _initialPriority?: string | null | undefined;
511
+ /** _non-standard_ */
512
+ _renderBlocking?: string | null | undefined;
513
+ /** _non-standard_ */
514
+ _isLCP?: boolean | null | undefined;
515
+ /**
516
+ * _non-standard_
517
+ *
518
+ * See "Custom Fields" under http://www.softwareishard.com/blog/har-12-spec
519
+ */
520
+ [customField: `_${string}`]: unknown | null | undefined;
521
+ }
522
+ /**
523
+ * This object contains detailed info about performed request.
524
+ *
525
+ * http://www.softwareishard.com/blog/har-12-spec/#request
526
+ */
527
+ export interface Request {
528
+ /** Request method (`GET`, `POST`, ...). */
529
+ method: string;
530
+ /** Absolute URL of the request (fragments are not included). */
531
+ url: string;
532
+ /** Request HTTP Version. */
533
+ httpVersion: string;
534
+ /** List of cookie objects. */
535
+ cookies: Cookie[];
536
+ /** List of header objects. */
537
+ headers: Header[];
538
+ /** List of query parameter objects. */
539
+ queryString: QueryString[];
540
+ /** Posted data info. */
541
+ postData?: PostData | undefined;
542
+ /**
543
+ * Total number of bytes from the start of the HTTP request message until
544
+ * (and including) the double CRLF before the body.
545
+ *
546
+ * Set to `-1` if the info is not available.
547
+ */
548
+ headersSize: number;
549
+ /**
550
+ * Size of the request body (POST data payload) in bytes.
551
+ *
552
+ * Set to `-1` if the info is not available.
553
+ */
554
+ bodySize: number;
555
+ /** A comment provided by the user or the application */
556
+ comment?: string | undefined;
557
+ }
558
+ /**
559
+ * This object contains detailed info about the response.
560
+ *
561
+ * http://www.softwareishard.com/blog/har-12-spec/#response
562
+ */
563
+ export interface Response {
564
+ /** Response status. */
565
+ status: number;
566
+ /** Response status description. */
567
+ statusText: string;
568
+ /** Response HTTP Version. */
569
+ httpVersion: string;
570
+ /** List of cookie objects. */
571
+ cookies: Cookie[];
572
+ /** List of header objects. */
573
+ headers: Header[];
574
+ /** Details about the response body. */
575
+ content: Content;
576
+ /** Redirection target URL from the Location response header. */
577
+ redirectURL: string;
578
+ /**
579
+ * Total number of bytes from the start of the HTTP response message until
580
+ * (and including) the double CRLF before the body.
581
+ *
582
+ * Set to `-1` if the info is not available.
583
+ *
584
+ * _The size of received response-headers is computed only from headers
585
+ * that are really received from the server. Additional headers appended by
586
+ * the browser are not included in this number, but they appear in the list
587
+ * of header objects._
588
+ */
589
+ headersSize: number;
590
+ /**
591
+ * Size of the received response body in bytes.
592
+ *
593
+ * - Set to zero in case of responses coming from the cache (`304`).
594
+ * - Set to `-1` if the info is not available.
595
+ */
596
+ bodySize: number;
597
+ /** A comment provided by the user or the application */
598
+ comment?: string | undefined;
599
+ /** _non-standard_ */
600
+ _transferSize?: number | null | undefined;
601
+ }
602
+ /**
603
+ * This object contains list of all cookies (used in `request` and `response`
604
+ * objects).
605
+ *
606
+ * http://www.softwareishard.com/blog/har-12-spec/#cookies
607
+ */
608
+ export interface Cookie {
609
+ /** The name of the cookie. */
610
+ name: string;
611
+ /** The cookie value. */
612
+ value: string;
613
+ /** The path pertaining to the cookie. */
614
+ path?: string | undefined;
615
+ /** The host of the cookie. */
616
+ domain?: string | undefined;
617
+ /**
618
+ * Cookie expiration time.
619
+ * (ISO 8601 - `YYYY-MM-DDThh:mm:ss.sTZD`,
620
+ * e.g. `2009-07-24T19:20:30.123+02:00`).
621
+ */
622
+ expires?: string | undefined;
623
+ /** Set to true if the cookie is HTTP only, false otherwise. */
624
+ httpOnly?: boolean | undefined;
625
+ /** True if the cookie was transmitted over ssl, false otherwise. */
626
+ secure?: boolean | undefined;
627
+ /** A comment provided by the user or the application */
628
+ comment?: string | undefined;
629
+ }
630
+
631
+ /**
632
+ * This object represents a headers (used in `request` and `response` objects).
633
+ *
634
+ * http://www.softwareishard.com/blog/har-12-spec/#headers
635
+ */
636
+ export interface Header {
637
+ name: string;
638
+ value: string;
639
+ /** A comment provided by the user or the application */
640
+ comment?: string | undefined;
641
+ }
642
+ /**
643
+ * This object represents a parameter & value parsed from a query string,
644
+ * if any (embedded in `request` object).
645
+ *
646
+ * http://www.softwareishard.com/blog/har-12-spec/#queryString
647
+ */
648
+ export interface QueryString {
649
+ name: string;
650
+ value: string;
651
+ /** A comment provided by the user or the application */
652
+ comment?: string | undefined;
653
+ }
654
+ /**
655
+ * This object describes posted data, if any (embedded in `request` object).
656
+ *
657
+ * http://www.softwareishard.com/blog/har-12-spec/#postData
658
+ */
659
+ export type PostData = PostDataCommon & (PostDataParams | PostDataText);
660
+
661
+ /**
662
+ * The common properties of PostData
663
+ */
664
+ export interface PostDataCommon {
665
+ /** Mime type of posted data. */
666
+ mimeType: string;
667
+ /** A comment provided by the user or the application */
668
+ comment?: string | undefined;
669
+ }
670
+
671
+ /**
672
+ * Post data with `params` specified.
673
+ */
674
+ export interface PostDataParams {
675
+ /**
676
+ * List of posted parameters (in case of URL encoded parameters).
677
+ */
678
+ params: Param[];
679
+
680
+ /**
681
+ * _`params` and `text` fields are mutually exclusive._
682
+ */
683
+ text?: never | undefined;
684
+ }
685
+
686
+ /**
687
+ * Post data with `text` specified.
688
+ */
689
+ export interface PostDataText {
690
+ /**
691
+ * Plain text posted data
692
+ */
693
+ text: string;
694
+
695
+ /**
696
+ * _`params` and `text` fields are mutually exclusive._
697
+ */
698
+ params?: never | undefined;
699
+ }
700
+
701
+ /**
702
+ * List of posted parameters, if any (embedded in `postData` object).
703
+ *
704
+ * http://www.softwareishard.com/blog/har-12-spec/#params
705
+ */
706
+ export interface Param {
707
+ /** name of a posted parameter. */
708
+ name: string;
709
+ /** value of a posted parameter or content of a posted file */
710
+ value?: string | undefined;
711
+ /** name of a posted file. */
712
+ fileName?: string | undefined;
713
+ /** content type of a posted file. */
714
+ contentType?: string | undefined;
715
+ /** A comment provided by the user or the application */
716
+ comment?: string | undefined;
717
+ }
718
+
719
+ /**
720
+ * This object describes details about response content
721
+ * (embedded in `response` object).
722
+ *
723
+ * http://www.softwareishard.com/blog/har-12-spec/#content
724
+ */
725
+ export interface Content {
726
+ /**
727
+ * Length of the returned content in bytes.
728
+ *
729
+ * Should be equal to `response.bodySize` if there is no compression and
730
+ * bigger when the content has been compressed.
731
+ */
732
+ size: number;
733
+ /**
734
+ * Number of bytes saved. Leave out this field if the information is not
735
+ * available.
736
+ */
737
+ compression?: number | undefined;
738
+ /**
739
+ * MIME type of the response text (value of the Content-Type response
740
+ * header).
741
+ *
742
+ * The charset attribute of the MIME type is included (if available).
743
+ */
744
+ mimeType: string;
745
+ /**
746
+ * Response body sent from the server or loaded from the browser cache.
747
+ *
748
+ * This field is populated with textual content only.
749
+ *
750
+ * The text field is either HTTP decoded text or a encoded (e.g. `base64`)
751
+ * representation of the response body.
752
+ *
753
+ * Leave out this field if the information is not available.
754
+ */
755
+ text?: string | undefined;
756
+ /**
757
+ * Encoding used for response text field e.g `base64`.
758
+ *
759
+ * Leave out this field if the text field is HTTP decoded
760
+ * (decompressed & unchunked), than trans-coded from its original character
761
+ * set into UTF-8.
762
+ */
763
+ encoding?: string | undefined;
764
+ /** A comment provided by the user or the application */
765
+ comment?: string | undefined;
766
+ }
767
+ /**
768
+ * This objects contains info about a request coming from browser cache.
769
+ *
770
+ * http://www.softwareishard.com/blog/har-12-spec/#cache
771
+ */
772
+ export interface Cache {
773
+ /**
774
+ * State of a cache entry before the request.
775
+ *
776
+ * Leave out this field if the information is not available.
777
+ */
778
+ beforeRequest?: CacheDetails | null | undefined;
779
+ /**
780
+ * State of a cache entry after the request.
781
+ *
782
+ * Leave out this field if the information is not available.
783
+ */
784
+ afterRequest?: CacheDetails | null | undefined;
785
+ /** A comment provided by the user or the application */
786
+ comment?: string | undefined;
787
+ }
788
+ export interface CacheDetails {
789
+ /**
790
+ * Expiration time of the cache entry.
791
+ *
792
+ * _(Format not documente but assumingly ISO 8601 -
793
+ * `YYYY-MM-DDThh:mm:ss.sTZD`)_
794
+ */
795
+ expires?: string | undefined;
796
+ /**
797
+ * The last time the cache entry was opened.
798
+ *
799
+ * _(Format not documente but assumingly ISO 8601 -
800
+ * `YYYY-MM-DDThh:mm:ss.sTZD`)_
801
+ */
802
+ lastAccess: string;
803
+ /** Etag */
804
+ eTag: string;
805
+ /** The number of times the cache entry has been opened. */
806
+ hitCount: number;
807
+ /** A comment provided by the user or the application */
808
+ comment?: string | undefined;
809
+ }
810
+ /**
811
+ * This object describes various phases within request-response round trip.
812
+ *
813
+ * All times are specified in milliseconds.
814
+ *
815
+ * http://www.softwareishard.com/blog/har-12-spec/#timings
816
+ */
817
+ export interface Timings {
818
+ /**
819
+ * Time spent in a queue waiting for a network connection.
820
+ *
821
+ * Use `-1` if the timing does not apply to the current request.
822
+ */
823
+ blocked?: number | undefined;
824
+ /**
825
+ * DNS resolution time. The time required to resolve a host name.
826
+ *
827
+ * Use `-1` if the timing does not apply to the current request.
828
+ */
829
+ dns?: number | undefined;
830
+ /**
831
+ * Time required to create TCP connection.
832
+ *
833
+ * Use `-1` if the timing does not apply to the current request.
834
+ */
835
+ connect?: number | undefined;
836
+ /**
837
+ * Time required to send HTTP request to the server.
838
+ *
839
+ * _Not optional and must have non-negative values._
840
+ */
841
+ send?: number | undefined;
842
+ /**
843
+ * Waiting for a response from the server.
844
+ *
845
+ * _Not optional and must have non-negative values._
846
+ */
847
+ wait: number;
848
+ /**
849
+ * Time required to read entire response from the server (or cache).
850
+ *
851
+ * _Not optional and must have non-negative values._
852
+ */
853
+ receive: number;
854
+ /**
855
+ * Time required for SSL/TLS negotiation.
856
+ *
857
+ * If this field is defined then the time is also included in the connect
858
+ * field (to ensure backward compatibility with HAR 1.1).
859
+ *
860
+ * Use `-1` if the timing does not apply to the current request.
861
+ */
862
+ ssl?: number | undefined;
863
+ /** A comment provided by the user or the application */
864
+ comment?: string | undefined;
865
+ }