@maxim_mazurok/gapi.client.pagespeedonline-v5 0.0.20230421 → 0.0.20230427
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.
- package/index.d.ts +325 -163
- package/package.json +1 -1
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://pagespeedonline.googleapis.com/$discovery/rest?version=v5
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230427
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,376 +24,538 @@ declare namespace gapi.client {
|
|
|
24
24
|
namespace pagespeedonline {
|
|
25
25
|
interface AuditRefs {
|
|
26
26
|
/** The conventional acronym for the audit/metric. */
|
|
27
|
-
acronym?:
|
|
27
|
+
acronym?:
|
|
28
|
+
string;
|
|
28
29
|
/** The category group that the audit belongs to (optional). */
|
|
29
|
-
group?:
|
|
30
|
+
group?:
|
|
31
|
+
string;
|
|
30
32
|
/** The audit ref id. */
|
|
31
|
-
id?:
|
|
33
|
+
id?:
|
|
34
|
+
string;
|
|
32
35
|
/** Any audit IDs closely relevant to this one. */
|
|
33
|
-
relevantAudits?:
|
|
36
|
+
relevantAudits?:
|
|
37
|
+
string[];
|
|
34
38
|
/** The weight this audit's score has on the overall category score. */
|
|
35
|
-
weight?:
|
|
39
|
+
weight?:
|
|
40
|
+
number;
|
|
36
41
|
}
|
|
37
42
|
interface Bucket {
|
|
38
43
|
/** Upper bound for a bucket's range. */
|
|
39
|
-
max?:
|
|
44
|
+
max?:
|
|
45
|
+
number;
|
|
40
46
|
/** Lower bound for a bucket's range. */
|
|
41
|
-
min?:
|
|
47
|
+
min?:
|
|
48
|
+
number;
|
|
42
49
|
/** The proportion of data in this bucket. */
|
|
43
|
-
proportion?:
|
|
50
|
+
proportion?:
|
|
51
|
+
number;
|
|
44
52
|
}
|
|
45
53
|
interface Categories {
|
|
46
54
|
/** The accessibility category, containing all accessibility related audits. */
|
|
47
|
-
accessibility?:
|
|
55
|
+
accessibility?:
|
|
56
|
+
LighthouseCategoryV5;
|
|
48
57
|
/** The best practices category, containing all best practices related audits. */
|
|
49
|
-
"best-practices"?:
|
|
58
|
+
"best-practices"?:
|
|
59
|
+
LighthouseCategoryV5;
|
|
50
60
|
/** The performance category, containing all performance related audits. */
|
|
51
|
-
performance?:
|
|
61
|
+
performance?:
|
|
62
|
+
LighthouseCategoryV5;
|
|
52
63
|
/** The Progressive-Web-App (PWA) category, containing all pwa related audits. */
|
|
53
|
-
pwa?:
|
|
64
|
+
pwa?:
|
|
65
|
+
LighthouseCategoryV5;
|
|
54
66
|
/** The Search-Engine-Optimization (SEO) category, containing all seo related audits. */
|
|
55
|
-
seo?:
|
|
67
|
+
seo?:
|
|
68
|
+
LighthouseCategoryV5;
|
|
56
69
|
}
|
|
57
70
|
interface CategoryGroupV5 {
|
|
58
71
|
/** The description of what the category is grouping */
|
|
59
|
-
description?:
|
|
72
|
+
description?:
|
|
73
|
+
string;
|
|
60
74
|
/** The human readable title of the group */
|
|
61
|
-
title?:
|
|
75
|
+
title?:
|
|
76
|
+
string;
|
|
62
77
|
}
|
|
63
78
|
interface ConfigSettings {
|
|
64
79
|
/** How Lighthouse was run, e.g. from the Chrome extension or from the npm module. */
|
|
65
|
-
channel?:
|
|
80
|
+
channel?:
|
|
81
|
+
string;
|
|
66
82
|
/** The form factor the emulation should use. This field is deprecated, form_factor should be used instead. */
|
|
67
|
-
emulatedFormFactor?:
|
|
83
|
+
emulatedFormFactor?:
|
|
84
|
+
string;
|
|
68
85
|
/** How Lighthouse should interpret this run in regards to scoring performance metrics and skipping mobile-only tests in desktop. */
|
|
69
|
-
formFactor?:
|
|
86
|
+
formFactor?:
|
|
87
|
+
string;
|
|
70
88
|
/** The locale setting. */
|
|
71
|
-
locale?:
|
|
89
|
+
locale?:
|
|
90
|
+
string;
|
|
72
91
|
/** List of categories of audits the run should conduct. */
|
|
73
|
-
onlyCategories?:
|
|
92
|
+
onlyCategories?:
|
|
93
|
+
any;
|
|
74
94
|
}
|
|
75
95
|
interface Environment {
|
|
76
96
|
/** The benchmark index number that indicates rough device class. */
|
|
77
|
-
benchmarkIndex?:
|
|
97
|
+
benchmarkIndex?:
|
|
98
|
+
number;
|
|
78
99
|
/** The version of libraries with which these results were generated. Ex: axe-core. */
|
|
79
|
-
credits?:
|
|
100
|
+
credits?:
|
|
101
|
+
{ [P in string]: string };
|
|
80
102
|
/** The user agent string of the version of Chrome used. */
|
|
81
|
-
hostUserAgent?:
|
|
103
|
+
hostUserAgent?:
|
|
104
|
+
string;
|
|
82
105
|
/** The user agent string that was sent over the network. */
|
|
83
|
-
networkUserAgent?:
|
|
106
|
+
networkUserAgent?:
|
|
107
|
+
string;
|
|
84
108
|
}
|
|
85
109
|
// tslint:disable-next-line:interface-name
|
|
86
110
|
interface I18n {
|
|
87
111
|
/** Internationalized strings that are formatted to the locale in configSettings. */
|
|
88
|
-
rendererFormattedStrings?:
|
|
112
|
+
rendererFormattedStrings?:
|
|
113
|
+
RendererFormattedStrings;
|
|
89
114
|
}
|
|
90
115
|
interface LhrEntity {
|
|
91
116
|
/** Optional. An optional category name for the entity. */
|
|
92
|
-
category?:
|
|
117
|
+
category?:
|
|
118
|
+
string;
|
|
93
119
|
/** Optional. An optional homepage URL of the entity. */
|
|
94
|
-
homepage?:
|
|
120
|
+
homepage?:
|
|
121
|
+
string;
|
|
95
122
|
/** Optional. An optional flag indicating if the entity is the first party. */
|
|
96
|
-
isFirstParty?:
|
|
123
|
+
isFirstParty?:
|
|
124
|
+
boolean;
|
|
97
125
|
/** Optional. An optional flag indicating if the entity is not recognized. */
|
|
98
|
-
isUnrecognized?:
|
|
126
|
+
isUnrecognized?:
|
|
127
|
+
boolean;
|
|
99
128
|
/** Required. Name of the entity. */
|
|
100
|
-
name?:
|
|
129
|
+
name?:
|
|
130
|
+
string;
|
|
101
131
|
/** Required. A list of URL origin strings that belong to this entity. */
|
|
102
|
-
origins?:
|
|
132
|
+
origins?:
|
|
133
|
+
string[];
|
|
103
134
|
}
|
|
104
135
|
interface LighthouseAuditResultV5 {
|
|
105
136
|
/** The description of the audit. */
|
|
106
|
-
description?:
|
|
137
|
+
description?:
|
|
138
|
+
string;
|
|
107
139
|
/** Freeform details section of the audit. */
|
|
108
|
-
details?:
|
|
140
|
+
details?:
|
|
141
|
+
{ [P in string]: any };
|
|
109
142
|
/** The value that should be displayed on the UI for this audit. */
|
|
110
|
-
displayValue?:
|
|
143
|
+
displayValue?:
|
|
144
|
+
string;
|
|
111
145
|
/** An error message from a thrown error inside the audit. */
|
|
112
|
-
errorMessage?:
|
|
146
|
+
errorMessage?:
|
|
147
|
+
string;
|
|
113
148
|
/** An explanation of the errors in the audit. */
|
|
114
|
-
explanation?:
|
|
149
|
+
explanation?:
|
|
150
|
+
string;
|
|
115
151
|
/** The audit's id. */
|
|
116
|
-
id?:
|
|
152
|
+
id?:
|
|
153
|
+
string;
|
|
117
154
|
/** The unit of the numeric_value field. Used to format the numeric value for display. */
|
|
118
|
-
numericUnit?:
|
|
155
|
+
numericUnit?:
|
|
156
|
+
string;
|
|
119
157
|
/**
|
|
120
158
|
* A numeric value that has a meaning specific to the audit, e.g. the number of nodes in the DOM or the timestamp of a specific load event. More information can be found in the audit
|
|
121
159
|
* details, if present.
|
|
122
160
|
*/
|
|
123
|
-
numericValue?:
|
|
161
|
+
numericValue?:
|
|
162
|
+
number;
|
|
124
163
|
/** The score of the audit, can be null. */
|
|
125
|
-
score?:
|
|
164
|
+
score?:
|
|
165
|
+
any;
|
|
126
166
|
/** The enumerated score display mode. */
|
|
127
|
-
scoreDisplayMode?:
|
|
167
|
+
scoreDisplayMode?:
|
|
168
|
+
string;
|
|
128
169
|
/** The human readable title. */
|
|
129
|
-
title?:
|
|
170
|
+
title?:
|
|
171
|
+
string;
|
|
130
172
|
/** Possible warnings that occurred in the audit, can be null. */
|
|
131
|
-
warnings?:
|
|
173
|
+
warnings?:
|
|
174
|
+
any;
|
|
132
175
|
}
|
|
133
176
|
interface LighthouseCategoryV5 {
|
|
134
177
|
/** An array of references to all the audit members of this category. */
|
|
135
|
-
auditRefs?:
|
|
178
|
+
auditRefs?:
|
|
179
|
+
AuditRefs[];
|
|
136
180
|
/** A more detailed description of the category and its importance. */
|
|
137
|
-
description?:
|
|
181
|
+
description?:
|
|
182
|
+
string;
|
|
138
183
|
/** The string identifier of the category. */
|
|
139
|
-
id?:
|
|
184
|
+
id?:
|
|
185
|
+
string;
|
|
140
186
|
/** A description for the manual audits in the category. */
|
|
141
|
-
manualDescription?:
|
|
187
|
+
manualDescription?:
|
|
188
|
+
string;
|
|
142
189
|
/** The overall score of the category, the weighted average of all its audits. (The category's score, can be null.) */
|
|
143
|
-
score?:
|
|
190
|
+
score?:
|
|
191
|
+
any;
|
|
144
192
|
/** The human-friendly name of the category. */
|
|
145
|
-
title?:
|
|
193
|
+
title?:
|
|
194
|
+
string;
|
|
146
195
|
}
|
|
147
196
|
interface LighthouseResultV5 {
|
|
148
197
|
/** Map of audits in the LHR. */
|
|
149
|
-
audits?:
|
|
198
|
+
audits?:
|
|
199
|
+
{ [P in string]: LighthouseAuditResultV5 };
|
|
150
200
|
/** Map of categories in the LHR. */
|
|
151
|
-
categories?:
|
|
201
|
+
categories?:
|
|
202
|
+
Categories;
|
|
152
203
|
/** Map of category groups in the LHR. */
|
|
153
|
-
categoryGroups?:
|
|
204
|
+
categoryGroups?:
|
|
205
|
+
{ [P in string]: CategoryGroupV5 };
|
|
154
206
|
/** The configuration settings for this LHR. */
|
|
155
|
-
configSettings?:
|
|
207
|
+
configSettings?:
|
|
208
|
+
ConfigSettings;
|
|
156
209
|
/** Entity classification data. */
|
|
157
|
-
entities?:
|
|
210
|
+
entities?:
|
|
211
|
+
LhrEntity[];
|
|
158
212
|
/** Environment settings that were used when making this LHR. */
|
|
159
|
-
environment?:
|
|
213
|
+
environment?:
|
|
214
|
+
Environment;
|
|
160
215
|
/** The time that this run was fetched. */
|
|
161
|
-
fetchTime?:
|
|
216
|
+
fetchTime?:
|
|
217
|
+
string;
|
|
162
218
|
/** URL displayed on the page after Lighthouse finishes. */
|
|
163
|
-
finalDisplayedUrl?:
|
|
219
|
+
finalDisplayedUrl?:
|
|
220
|
+
string;
|
|
164
221
|
/** The final resolved url that was audited. */
|
|
165
|
-
finalUrl?:
|
|
222
|
+
finalUrl?:
|
|
223
|
+
string;
|
|
166
224
|
/** Screenshot data of the full page, along with node rects relevant to the audit results. */
|
|
167
|
-
fullPageScreenshot?:
|
|
225
|
+
fullPageScreenshot?:
|
|
226
|
+
any;
|
|
168
227
|
/** The internationalization strings that are required to render the LHR. */
|
|
169
|
-
i18n?:
|
|
228
|
+
i18n?:
|
|
229
|
+
I18n;
|
|
170
230
|
/** The lighthouse version that was used to generate this LHR. */
|
|
171
|
-
lighthouseVersion?:
|
|
231
|
+
lighthouseVersion?:
|
|
232
|
+
string;
|
|
172
233
|
/** URL of the main document request of the final navigation. */
|
|
173
|
-
mainDocumentUrl?:
|
|
234
|
+
mainDocumentUrl?:
|
|
235
|
+
string;
|
|
174
236
|
/** The original requested url. */
|
|
175
|
-
requestedUrl?:
|
|
237
|
+
requestedUrl?:
|
|
238
|
+
string;
|
|
176
239
|
/** A top-level error message that, if present, indicates a serious enough problem that this Lighthouse result may need to be discarded. */
|
|
177
|
-
runtimeError?:
|
|
240
|
+
runtimeError?:
|
|
241
|
+
RuntimeError;
|
|
178
242
|
/** List of all run warnings in the LHR. Will always output to at least `[]`. */
|
|
179
|
-
runWarnings?:
|
|
243
|
+
runWarnings?:
|
|
244
|
+
any[];
|
|
180
245
|
/** The Stack Pack advice strings. */
|
|
181
|
-
stackPacks?:
|
|
246
|
+
stackPacks?:
|
|
247
|
+
StackPack[];
|
|
182
248
|
/** Timing information for this LHR. */
|
|
183
|
-
timing?:
|
|
249
|
+
timing?:
|
|
250
|
+
Timing;
|
|
184
251
|
/** The user agent that was used to run this LHR. */
|
|
185
|
-
userAgent?:
|
|
252
|
+
userAgent?:
|
|
253
|
+
string;
|
|
186
254
|
}
|
|
187
255
|
interface PagespeedApiLoadingExperienceV5 {
|
|
188
256
|
/** The url, pattern or origin which the metrics are on. */
|
|
189
|
-
id?:
|
|
257
|
+
id?:
|
|
258
|
+
string;
|
|
190
259
|
/** The requested URL, which may differ from the resolved "id". */
|
|
191
|
-
initial_url?:
|
|
260
|
+
initial_url?:
|
|
261
|
+
string;
|
|
192
262
|
/** The map of . */
|
|
193
|
-
metrics?:
|
|
263
|
+
metrics?:
|
|
264
|
+
{ [P in string]: UserPageLoadMetricV5 };
|
|
194
265
|
/** True if the result is an origin fallback from a page, false otherwise. */
|
|
195
|
-
origin_fallback?:
|
|
266
|
+
origin_fallback?:
|
|
267
|
+
boolean;
|
|
196
268
|
/** The human readable speed "category" of the id. */
|
|
197
|
-
overall_category?:
|
|
269
|
+
overall_category?:
|
|
270
|
+
string;
|
|
198
271
|
}
|
|
199
272
|
interface PagespeedApiPagespeedResponseV5 {
|
|
200
273
|
/** The UTC timestamp of this analysis. */
|
|
201
|
-
analysisUTCTimestamp?:
|
|
274
|
+
analysisUTCTimestamp?:
|
|
275
|
+
string;
|
|
202
276
|
/** The captcha verify result */
|
|
203
|
-
captchaResult?:
|
|
277
|
+
captchaResult?:
|
|
278
|
+
string;
|
|
204
279
|
/** Canonicalized and final URL for the document, after following page redirects (if any). */
|
|
205
|
-
id?:
|
|
280
|
+
id?:
|
|
281
|
+
string;
|
|
206
282
|
/** Kind of result. */
|
|
207
|
-
kind?:
|
|
283
|
+
kind?:
|
|
284
|
+
string;
|
|
208
285
|
/** Lighthouse response for the audit url as an object. */
|
|
209
|
-
lighthouseResult?:
|
|
286
|
+
lighthouseResult?:
|
|
287
|
+
LighthouseResultV5;
|
|
210
288
|
/** Metrics of end users' page loading experience. */
|
|
211
|
-
loadingExperience?:
|
|
289
|
+
loadingExperience?:
|
|
290
|
+
PagespeedApiLoadingExperienceV5;
|
|
212
291
|
/** Metrics of the aggregated page loading experience of the origin */
|
|
213
|
-
originLoadingExperience?:
|
|
292
|
+
originLoadingExperience?:
|
|
293
|
+
PagespeedApiLoadingExperienceV5;
|
|
214
294
|
/** The version of PageSpeed used to generate these results. */
|
|
215
|
-
version?:
|
|
295
|
+
version?:
|
|
296
|
+
PagespeedVersion;
|
|
216
297
|
}
|
|
217
298
|
interface PagespeedVersion {
|
|
218
299
|
/** The major version number of PageSpeed used to generate these results. */
|
|
219
|
-
major?:
|
|
300
|
+
major?:
|
|
301
|
+
string;
|
|
220
302
|
/** The minor version number of PageSpeed used to generate these results. */
|
|
221
|
-
minor?:
|
|
303
|
+
minor?:
|
|
304
|
+
string;
|
|
222
305
|
}
|
|
223
306
|
interface RendererFormattedStrings {
|
|
224
307
|
/** The tooltip text on an expandable chevron icon. */
|
|
225
|
-
auditGroupExpandTooltip?:
|
|
308
|
+
auditGroupExpandTooltip?:
|
|
309
|
+
string;
|
|
226
310
|
/** Text link pointing to the Lighthouse scoring calculator. This link immediately follows a sentence stating the performance score is calculated from the perf metrics. */
|
|
227
|
-
calculatorLink?:
|
|
311
|
+
calculatorLink?:
|
|
312
|
+
string;
|
|
228
313
|
/** The label for the initial request in a critical request chain. */
|
|
229
|
-
crcInitialNavigation?:
|
|
314
|
+
crcInitialNavigation?:
|
|
315
|
+
string;
|
|
230
316
|
/** The label for values shown in the summary of critical request chains. */
|
|
231
|
-
crcLongestDurationLabel?:
|
|
317
|
+
crcLongestDurationLabel?:
|
|
318
|
+
string;
|
|
232
319
|
/** Option in a dropdown menu that copies the Lighthouse JSON object to the system clipboard. */
|
|
233
|
-
dropdownCopyJSON?:
|
|
320
|
+
dropdownCopyJSON?:
|
|
321
|
+
string;
|
|
234
322
|
/** Option in a dropdown menu that toggles the themeing of the report between Light(default) and Dark themes. */
|
|
235
|
-
dropdownDarkTheme?:
|
|
323
|
+
dropdownDarkTheme?:
|
|
324
|
+
string;
|
|
236
325
|
/** Option in a dropdown menu that opens a full Lighthouse report in a print dialog. */
|
|
237
|
-
dropdownPrintExpanded?:
|
|
326
|
+
dropdownPrintExpanded?:
|
|
327
|
+
string;
|
|
238
328
|
/** Option in a dropdown menu that opens a small, summary report in a print dialog. */
|
|
239
|
-
dropdownPrintSummary?:
|
|
329
|
+
dropdownPrintSummary?:
|
|
330
|
+
string;
|
|
240
331
|
/** Option in a dropdown menu that saves the current report as a new GitHub Gist. */
|
|
241
|
-
dropdownSaveGist?:
|
|
332
|
+
dropdownSaveGist?:
|
|
333
|
+
string;
|
|
242
334
|
/** Option in a dropdown menu that saves the Lighthouse report HTML locally to the system as a '.html' file. */
|
|
243
|
-
dropdownSaveHTML?:
|
|
335
|
+
dropdownSaveHTML?:
|
|
336
|
+
string;
|
|
244
337
|
/** Option in a dropdown menu that saves the Lighthouse JSON object to the local system as a '.json' file. */
|
|
245
|
-
dropdownSaveJSON?:
|
|
338
|
+
dropdownSaveJSON?:
|
|
339
|
+
string;
|
|
246
340
|
/** Option in a dropdown menu that opens the current report in the Lighthouse Viewer Application. */
|
|
247
|
-
dropdownViewer?:
|
|
341
|
+
dropdownViewer?:
|
|
342
|
+
string;
|
|
248
343
|
/** The label shown next to an audit or metric that has had an error. */
|
|
249
|
-
errorLabel?:
|
|
344
|
+
errorLabel?:
|
|
345
|
+
string;
|
|
250
346
|
/** The error string shown next to an erroring audit. */
|
|
251
|
-
errorMissingAuditInfo?:
|
|
347
|
+
errorMissingAuditInfo?:
|
|
348
|
+
string;
|
|
252
349
|
/** Label for button to create an issue against the Lighthouse GitHub project. */
|
|
253
|
-
footerIssue?:
|
|
350
|
+
footerIssue?:
|
|
351
|
+
string;
|
|
254
352
|
/** The title of the lab data performance category. */
|
|
255
|
-
labDataTitle?:
|
|
353
|
+
labDataTitle?:
|
|
354
|
+
string;
|
|
256
355
|
/** The disclaimer shown under performance explaining that the network can vary. */
|
|
257
|
-
lsPerformanceCategoryDescription?:
|
|
356
|
+
lsPerformanceCategoryDescription?:
|
|
357
|
+
string;
|
|
258
358
|
/** The heading shown above a list of audits that were not computerd in the run. */
|
|
259
|
-
manualAuditsGroupTitle?:
|
|
359
|
+
manualAuditsGroupTitle?:
|
|
360
|
+
string;
|
|
260
361
|
/** The heading shown above a list of audits that do not apply to a page. */
|
|
261
|
-
notApplicableAuditsGroupTitle?:
|
|
362
|
+
notApplicableAuditsGroupTitle?:
|
|
363
|
+
string;
|
|
262
364
|
/** The heading for the estimated page load savings opportunity of an audit. */
|
|
263
|
-
opportunityResourceColumnLabel?:
|
|
365
|
+
opportunityResourceColumnLabel?:
|
|
366
|
+
string;
|
|
264
367
|
/** The heading for the estimated page load savings of opportunity audits. */
|
|
265
|
-
opportunitySavingsColumnLabel?:
|
|
368
|
+
opportunitySavingsColumnLabel?:
|
|
369
|
+
string;
|
|
266
370
|
/** The heading that is shown above a list of audits that are passing. */
|
|
267
|
-
passedAuditsGroupTitle?:
|
|
371
|
+
passedAuditsGroupTitle?:
|
|
372
|
+
string;
|
|
268
373
|
/** Descriptive explanation for emulation setting when emulating a generic desktop form factor, as opposed to a mobile-device like form factor. */
|
|
269
|
-
runtimeDesktopEmulation?:
|
|
374
|
+
runtimeDesktopEmulation?:
|
|
375
|
+
string;
|
|
270
376
|
/** Descriptive explanation for emulation setting when emulating a Nexus 5X mobile device. */
|
|
271
|
-
runtimeMobileEmulation?:
|
|
377
|
+
runtimeMobileEmulation?:
|
|
378
|
+
string;
|
|
272
379
|
/** Descriptive explanation for emulation setting when no device emulation is set. */
|
|
273
|
-
runtimeNoEmulation?:
|
|
380
|
+
runtimeNoEmulation?:
|
|
381
|
+
string;
|
|
274
382
|
/** Label for a row in a table that shows the version of the Axe library used */
|
|
275
|
-
runtimeSettingsAxeVersion?:
|
|
383
|
+
runtimeSettingsAxeVersion?:
|
|
384
|
+
string;
|
|
276
385
|
/** Label for a row in a table that shows the estimated CPU power of the machine running Lighthouse. Example row values: 532, 1492, 783. */
|
|
277
|
-
runtimeSettingsBenchmark?:
|
|
386
|
+
runtimeSettingsBenchmark?:
|
|
387
|
+
string;
|
|
278
388
|
/** Label for a row in a table that shows in what tool Lighthouse is being run (e.g. The lighthouse CLI, Chrome DevTools, Lightrider, WebPageTest, etc). */
|
|
279
|
-
runtimeSettingsChannel?:
|
|
389
|
+
runtimeSettingsChannel?:
|
|
390
|
+
string;
|
|
280
391
|
/** Label for a row in a table that describes the CPU throttling conditions that were used during a Lighthouse run, if any. */
|
|
281
|
-
runtimeSettingsCPUThrottling?:
|
|
392
|
+
runtimeSettingsCPUThrottling?:
|
|
393
|
+
string;
|
|
282
394
|
/** Label for a row in a table that describes the kind of device that was emulated for the Lighthouse run. Example values for row elements: 'No Emulation', 'Emulated Desktop', etc. */
|
|
283
|
-
runtimeSettingsDevice?:
|
|
395
|
+
runtimeSettingsDevice?:
|
|
396
|
+
string;
|
|
284
397
|
/** Label for a row in a table that shows the time at which a Lighthouse run was conducted; formatted as a timestamp, e.g. Jan 1, 1970 12:00 AM UTC. */
|
|
285
|
-
runtimeSettingsFetchTime?:
|
|
398
|
+
runtimeSettingsFetchTime?:
|
|
399
|
+
string;
|
|
286
400
|
/** Label for a row in a table that describes the network throttling conditions that were used during a Lighthouse run, if any. */
|
|
287
|
-
runtimeSettingsNetworkThrottling?:
|
|
401
|
+
runtimeSettingsNetworkThrottling?:
|
|
402
|
+
string;
|
|
288
403
|
/** Title of the Runtime settings table in a Lighthouse report. Runtime settings are the environment configurations that a specific report used at auditing time. */
|
|
289
|
-
runtimeSettingsTitle?:
|
|
404
|
+
runtimeSettingsTitle?:
|
|
405
|
+
string;
|
|
290
406
|
/** Label for a row in a table that shows the User Agent that was detected on the Host machine that ran Lighthouse. */
|
|
291
|
-
runtimeSettingsUA?:
|
|
407
|
+
runtimeSettingsUA?:
|
|
408
|
+
string;
|
|
292
409
|
/** Label for a row in a table that shows the User Agent that was used to send out all network requests during the Lighthouse run. */
|
|
293
|
-
runtimeSettingsUANetwork?:
|
|
410
|
+
runtimeSettingsUANetwork?:
|
|
411
|
+
string;
|
|
294
412
|
/** Label for a row in a table that shows the URL that was audited during a Lighthouse run. */
|
|
295
|
-
runtimeSettingsUrl?:
|
|
413
|
+
runtimeSettingsUrl?:
|
|
414
|
+
string;
|
|
296
415
|
/** Descriptive explanation for a runtime setting that is set to an unknown value. */
|
|
297
|
-
runtimeUnknown?:
|
|
416
|
+
runtimeUnknown?:
|
|
417
|
+
string;
|
|
298
418
|
/** The label that explains the score gauges scale (0-49, 50-89, 90-100). */
|
|
299
|
-
scorescaleLabel?:
|
|
419
|
+
scorescaleLabel?:
|
|
420
|
+
string;
|
|
300
421
|
/**
|
|
301
422
|
* Label preceding a radio control for filtering the list of audits. The radio choices are various performance metrics (FCP, LCP, TBT), and if chosen, the audits in the report are
|
|
302
423
|
* hidden if they are not relevant to the selected metric.
|
|
303
424
|
*/
|
|
304
|
-
showRelevantAudits?:
|
|
425
|
+
showRelevantAudits?:
|
|
426
|
+
string;
|
|
305
427
|
/** The label for the button to show only a few lines of a snippet */
|
|
306
|
-
snippetCollapseButtonLabel?:
|
|
428
|
+
snippetCollapseButtonLabel?:
|
|
429
|
+
string;
|
|
307
430
|
/** The label for the button to show all lines of a snippet */
|
|
308
|
-
snippetExpandButtonLabel?:
|
|
431
|
+
snippetExpandButtonLabel?:
|
|
432
|
+
string;
|
|
309
433
|
/** This label is for a filter checkbox above a table of items */
|
|
310
|
-
thirdPartyResourcesLabel?:
|
|
434
|
+
thirdPartyResourcesLabel?:
|
|
435
|
+
string;
|
|
311
436
|
/** Descriptive explanation for environment throttling that was provided by the runtime environment instead of provided by Lighthouse throttling. */
|
|
312
|
-
throttlingProvided?:
|
|
437
|
+
throttlingProvided?:
|
|
438
|
+
string;
|
|
313
439
|
/** The label shown preceding important warnings that may have invalidated an entire report. */
|
|
314
|
-
toplevelWarningsMessage?:
|
|
440
|
+
toplevelWarningsMessage?:
|
|
441
|
+
string;
|
|
315
442
|
/** The disclaimer shown below a performance metric value. */
|
|
316
|
-
varianceDisclaimer?:
|
|
443
|
+
varianceDisclaimer?:
|
|
444
|
+
string;
|
|
317
445
|
/** Label for a button that opens the Treemap App */
|
|
318
|
-
viewTreemapLabel?:
|
|
446
|
+
viewTreemapLabel?:
|
|
447
|
+
string;
|
|
319
448
|
/** The heading that is shown above a list of audits that have warnings */
|
|
320
|
-
warningAuditsGroupTitle?:
|
|
449
|
+
warningAuditsGroupTitle?:
|
|
450
|
+
string;
|
|
321
451
|
/** The label shown above a bulleted list of warnings. */
|
|
322
|
-
warningHeader?:
|
|
452
|
+
warningHeader?:
|
|
453
|
+
string;
|
|
323
454
|
}
|
|
324
455
|
interface RuntimeError {
|
|
325
456
|
/** The enumerated Lighthouse Error code. */
|
|
326
|
-
code?:
|
|
457
|
+
code?:
|
|
458
|
+
string;
|
|
327
459
|
/** A human readable message explaining the error code. */
|
|
328
|
-
message?:
|
|
460
|
+
message?:
|
|
461
|
+
string;
|
|
329
462
|
}
|
|
330
463
|
interface StackPack {
|
|
331
464
|
/** The stack pack advice strings. */
|
|
332
|
-
descriptions?:
|
|
465
|
+
descriptions?:
|
|
466
|
+
{ [P in string]: string };
|
|
333
467
|
/** The stack pack icon data uri. */
|
|
334
|
-
iconDataURL?:
|
|
468
|
+
iconDataURL?:
|
|
469
|
+
string;
|
|
335
470
|
/** The stack pack id. */
|
|
336
|
-
id?:
|
|
471
|
+
id?:
|
|
472
|
+
string;
|
|
337
473
|
/** The stack pack title. */
|
|
338
|
-
title?:
|
|
474
|
+
title?:
|
|
475
|
+
string;
|
|
339
476
|
}
|
|
340
477
|
interface Timing {
|
|
341
478
|
/** The total duration of Lighthouse's run. */
|
|
342
|
-
total?:
|
|
479
|
+
total?:
|
|
480
|
+
number;
|
|
343
481
|
}
|
|
344
482
|
interface UserPageLoadMetricV5 {
|
|
345
483
|
/** The category of the specific time metric. */
|
|
346
|
-
category?:
|
|
484
|
+
category?:
|
|
485
|
+
string;
|
|
347
486
|
/** Metric distributions. Proportions should sum up to 1. */
|
|
348
|
-
distributions?:
|
|
487
|
+
distributions?:
|
|
488
|
+
Bucket[];
|
|
349
489
|
/** Identifies the form factor of the metric being collected. */
|
|
350
|
-
formFactor?:
|
|
490
|
+
formFactor?:
|
|
491
|
+
string;
|
|
351
492
|
/** The median number of the metric, in millisecond. */
|
|
352
|
-
median?:
|
|
493
|
+
median?:
|
|
494
|
+
number;
|
|
353
495
|
/** Identifies the type of the metric. */
|
|
354
|
-
metricId?:
|
|
496
|
+
metricId?:
|
|
497
|
+
string;
|
|
355
498
|
/** We use this field to store certain percentile value for this metric. For v4, this field contains pc50. For v5, this field contains pc90. */
|
|
356
|
-
percentile?:
|
|
499
|
+
percentile?:
|
|
500
|
+
number;
|
|
357
501
|
}
|
|
358
502
|
interface PagespeedapiResource {
|
|
359
503
|
/** Runs PageSpeed analysis on the page at the specified URL, and returns PageSpeed scores, a list of suggestions to make that page faster, and other information. */
|
|
360
504
|
runpagespeed(request?: {
|
|
361
505
|
/** V1 error format. */
|
|
362
|
-
"$.xgafv"?:
|
|
506
|
+
"$.xgafv"?:
|
|
507
|
+
string;
|
|
363
508
|
/** OAuth access token. */
|
|
364
|
-
access_token?:
|
|
509
|
+
access_token?:
|
|
510
|
+
string;
|
|
365
511
|
/** Data format for response. */
|
|
366
|
-
alt?:
|
|
512
|
+
alt?:
|
|
513
|
+
string;
|
|
367
514
|
/** JSONP */
|
|
368
|
-
callback?:
|
|
515
|
+
callback?:
|
|
516
|
+
string;
|
|
369
517
|
/** The captcha token passed when filling out a captcha. */
|
|
370
|
-
captchaToken?:
|
|
518
|
+
captchaToken?:
|
|
519
|
+
string;
|
|
371
520
|
/** A Lighthouse category to run; if none are given, only Performance category will be run */
|
|
372
|
-
category?:
|
|
521
|
+
category?:
|
|
522
|
+
string | string[];
|
|
373
523
|
/** Selector specifying which fields to include in a partial response. */
|
|
374
|
-
fields?:
|
|
524
|
+
fields?:
|
|
525
|
+
string;
|
|
375
526
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
376
|
-
key?:
|
|
527
|
+
key?:
|
|
528
|
+
string;
|
|
377
529
|
/** The locale used to localize formatted results */
|
|
378
|
-
locale?:
|
|
530
|
+
locale?:
|
|
531
|
+
string;
|
|
379
532
|
/** OAuth 2.0 token for the current user. */
|
|
380
|
-
oauth_token?:
|
|
533
|
+
oauth_token?:
|
|
534
|
+
string;
|
|
381
535
|
/** Returns response with indentations and line breaks. */
|
|
382
|
-
prettyPrint?:
|
|
536
|
+
prettyPrint?:
|
|
537
|
+
boolean;
|
|
383
538
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
384
|
-
quotaUser?:
|
|
539
|
+
quotaUser?:
|
|
540
|
+
string;
|
|
385
541
|
/** The analysis strategy (desktop or mobile) to use, and desktop is the default */
|
|
386
|
-
strategy?:
|
|
542
|
+
strategy?:
|
|
543
|
+
string;
|
|
387
544
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
388
|
-
upload_protocol?:
|
|
545
|
+
upload_protocol?:
|
|
546
|
+
string;
|
|
389
547
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
390
|
-
uploadType?:
|
|
548
|
+
uploadType?:
|
|
549
|
+
string;
|
|
391
550
|
/** Required. The URL to fetch and analyze */
|
|
392
|
-
url:
|
|
551
|
+
url:
|
|
552
|
+
string;
|
|
393
553
|
/** Campaign name for analytics. */
|
|
394
|
-
utm_campaign?:
|
|
554
|
+
utm_campaign?:
|
|
555
|
+
string;
|
|
395
556
|
/** Campaign source for analytics. */
|
|
396
|
-
utm_source?:
|
|
557
|
+
utm_source?:
|
|
558
|
+
string;
|
|
397
559
|
}): Request<PagespeedApiPagespeedResponseV5>;
|
|
398
560
|
}
|
|
399
561
|
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230427
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|