cloudflare-api-js 0.12.0 → 0.12.1
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/index.d.cts +42 -0
- package/dist/index.d.mts +42 -0
- package/dist/index.d.ts +42 -0
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> cloudflare-api-js@0.12.
|
|
2
|
+
> cloudflare-api-js@0.12.1 build /home/runner/work/openapi-clients/openapi-clients/packages/cloudflare-api
|
|
3
3
|
> unbuild
|
|
4
4
|
|
|
5
5
|
[info] Automatically detected entries: src/index [esm] [cjs] [dts]
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -29028,6 +29028,7 @@ type ObservatoryApiResponseCommon = {
|
|
|
29028
29028
|
* Whether the API call was successful.
|
|
29029
29029
|
*
|
|
29030
29030
|
* @example true
|
|
29031
|
+
* @x-auditable true
|
|
29031
29032
|
*/
|
|
29032
29033
|
success: boolean;
|
|
29033
29034
|
};
|
|
@@ -29053,6 +29054,7 @@ type ObservatoryAvailabilities = {
|
|
|
29053
29054
|
* Cloudflare plan.
|
|
29054
29055
|
*
|
|
29055
29056
|
* @example free
|
|
29057
|
+
* @x-auditable true
|
|
29056
29058
|
*/
|
|
29057
29059
|
plan?: string;
|
|
29058
29060
|
/**
|
|
@@ -29065,12 +29067,14 @@ type ObservatoryAvailabilities = {
|
|
|
29065
29067
|
* The number of remaining schedules available.
|
|
29066
29068
|
*
|
|
29067
29069
|
* @example 1
|
|
29070
|
+
* @x-auditable true
|
|
29068
29071
|
*/
|
|
29069
29072
|
remainingSchedules?: number;
|
|
29070
29073
|
/**
|
|
29071
29074
|
* The number of remaining tests available.
|
|
29072
29075
|
*
|
|
29073
29076
|
* @example 30
|
|
29077
|
+
* @x-auditable true
|
|
29074
29078
|
*/
|
|
29075
29079
|
remainingTests?: number;
|
|
29076
29080
|
/**
|
|
@@ -29100,6 +29104,7 @@ type ObservatoryCountResponse = ObservatoryApiResponseSingle & {
|
|
|
29100
29104
|
* Number of items affected.
|
|
29101
29105
|
*
|
|
29102
29106
|
* @example 1
|
|
29107
|
+
* @x-auditable true
|
|
29103
29108
|
*/
|
|
29104
29109
|
count?: number;
|
|
29105
29110
|
};
|
|
@@ -29114,6 +29119,7 @@ type ObservatoryCreateScheduleResponse = ObservatoryApiResponseSingle & {
|
|
|
29114
29119
|
* The type of device.
|
|
29115
29120
|
*
|
|
29116
29121
|
* @example DESKTOP
|
|
29122
|
+
* @x-auditable true
|
|
29117
29123
|
*/
|
|
29118
29124
|
type ObservatoryDeviceType = 'DESKTOP' | 'MOBILE';
|
|
29119
29125
|
/**
|
|
@@ -29129,6 +29135,7 @@ type ObservatoryIdentifier = string;
|
|
|
29129
29135
|
type ObservatoryLabeledRegion = {
|
|
29130
29136
|
/**
|
|
29131
29137
|
* @example Iowa, USA
|
|
29138
|
+
* @x-auditable true
|
|
29132
29139
|
*/
|
|
29133
29140
|
label?: string;
|
|
29134
29141
|
value?: ObservatoryRegion;
|
|
@@ -29137,6 +29144,7 @@ type ObservatoryLabeledRegion = {
|
|
|
29137
29144
|
* The error code of the Lighthouse result.
|
|
29138
29145
|
*
|
|
29139
29146
|
* @example NOT_REACHABLE
|
|
29147
|
+
* @x-auditable true
|
|
29140
29148
|
*/
|
|
29141
29149
|
type ObservatoryLighthouseErrorCode = 'NOT_REACHABLE' | 'DNS_FAILURE' | 'NOT_HTML' | 'LIGHTHOUSE_TIMEOUT' | 'UNKNOWN';
|
|
29142
29150
|
/**
|
|
@@ -29147,6 +29155,7 @@ type ObservatoryLighthouseReport = {
|
|
|
29147
29155
|
* Cumulative Layout Shift.
|
|
29148
29156
|
*
|
|
29149
29157
|
* @example 100
|
|
29158
|
+
* @x-auditable true
|
|
29150
29159
|
*/
|
|
29151
29160
|
cls?: number;
|
|
29152
29161
|
deviceType?: ObservatoryDeviceType;
|
|
@@ -29156,12 +29165,14 @@ type ObservatoryLighthouseReport = {
|
|
|
29156
29165
|
* Detailed error message.
|
|
29157
29166
|
*
|
|
29158
29167
|
* @example Details: net::ERR_CONNECTION_CLOSED
|
|
29168
|
+
* @x-auditable true
|
|
29159
29169
|
*/
|
|
29160
29170
|
detail?: string;
|
|
29161
29171
|
/**
|
|
29162
29172
|
* The final URL displayed to the user.
|
|
29163
29173
|
*
|
|
29164
29174
|
* @example example.com
|
|
29175
|
+
* @x-auditable true
|
|
29165
29176
|
*/
|
|
29166
29177
|
finalDisplayedUrl?: string;
|
|
29167
29178
|
};
|
|
@@ -29169,28 +29180,34 @@ type ObservatoryLighthouseReport = {
|
|
|
29169
29180
|
* First Contentful Paint.
|
|
29170
29181
|
*
|
|
29171
29182
|
* @example 100
|
|
29183
|
+
* @x-auditable true
|
|
29172
29184
|
*/
|
|
29173
29185
|
fcp?: number;
|
|
29174
29186
|
/**
|
|
29175
29187
|
* The URL to the full Lighthouse JSON report.
|
|
29188
|
+
*
|
|
29189
|
+
* @x-auditable true
|
|
29176
29190
|
*/
|
|
29177
29191
|
jsonReportUrl?: string;
|
|
29178
29192
|
/**
|
|
29179
29193
|
* Largest Contentful Paint.
|
|
29180
29194
|
*
|
|
29181
29195
|
* @example 100
|
|
29196
|
+
* @x-auditable true
|
|
29182
29197
|
*/
|
|
29183
29198
|
lcp?: number;
|
|
29184
29199
|
/**
|
|
29185
29200
|
* The Lighthouse performance score.
|
|
29186
29201
|
*
|
|
29187
29202
|
* @example 90
|
|
29203
|
+
* @x-auditable true
|
|
29188
29204
|
*/
|
|
29189
29205
|
performanceScore?: number;
|
|
29190
29206
|
/**
|
|
29191
29207
|
* Speed Index.
|
|
29192
29208
|
*
|
|
29193
29209
|
* @example 100
|
|
29210
|
+
* @x-auditable true
|
|
29194
29211
|
*/
|
|
29195
29212
|
si?: number;
|
|
29196
29213
|
state?: ObservatoryLighthouseState;
|
|
@@ -29198,18 +29215,21 @@ type ObservatoryLighthouseReport = {
|
|
|
29198
29215
|
* Total Blocking Time.
|
|
29199
29216
|
*
|
|
29200
29217
|
* @example 100
|
|
29218
|
+
* @x-auditable true
|
|
29201
29219
|
*/
|
|
29202
29220
|
tbt?: number;
|
|
29203
29221
|
/**
|
|
29204
29222
|
* Time To First Byte.
|
|
29205
29223
|
*
|
|
29206
29224
|
* @example 100
|
|
29225
|
+
* @x-auditable true
|
|
29207
29226
|
*/
|
|
29208
29227
|
ttfb?: number;
|
|
29209
29228
|
/**
|
|
29210
29229
|
* Time To Interactive.
|
|
29211
29230
|
*
|
|
29212
29231
|
* @example 100
|
|
29232
|
+
* @x-auditable true
|
|
29213
29233
|
*/
|
|
29214
29234
|
tti?: number;
|
|
29215
29235
|
};
|
|
@@ -29217,13 +29237,18 @@ type ObservatoryLighthouseReport = {
|
|
|
29217
29237
|
* The state of the Lighthouse report.
|
|
29218
29238
|
*
|
|
29219
29239
|
* @example COMPLETE
|
|
29240
|
+
* @x-auditable true
|
|
29220
29241
|
*/
|
|
29221
29242
|
type ObservatoryLighthouseState = 'RUNNING' | 'COMPLETE' | 'FAILED';
|
|
29222
29243
|
type ObservatoryMessages = {
|
|
29223
29244
|
/**
|
|
29224
29245
|
* @minimum 1000
|
|
29246
|
+
* @x-auditable true
|
|
29225
29247
|
*/
|
|
29226
29248
|
code: number;
|
|
29249
|
+
/**
|
|
29250
|
+
* @x-auditable true
|
|
29251
|
+
*/
|
|
29227
29252
|
message: string;
|
|
29228
29253
|
}[];
|
|
29229
29254
|
type ObservatoryPageTestResponseCollection = ObservatoryApiResponseCollection & {
|
|
@@ -29257,18 +29282,22 @@ type ObservatoryPagesResponseCollection = ObservatoryApiResponseCollection & {
|
|
|
29257
29282
|
type ObservatoryPlanPropertiesInfo = {
|
|
29258
29283
|
/**
|
|
29259
29284
|
* @example 1
|
|
29285
|
+
* @x-auditable true
|
|
29260
29286
|
*/
|
|
29261
29287
|
business?: number;
|
|
29262
29288
|
/**
|
|
29263
29289
|
* @example 1
|
|
29290
|
+
* @x-auditable true
|
|
29264
29291
|
*/
|
|
29265
29292
|
enterprise?: number;
|
|
29266
29293
|
/**
|
|
29267
29294
|
* @example 1
|
|
29295
|
+
* @x-auditable true
|
|
29268
29296
|
*/
|
|
29269
29297
|
free?: number;
|
|
29270
29298
|
/**
|
|
29271
29299
|
* @example 1
|
|
29300
|
+
* @x-auditable true
|
|
29272
29301
|
*/
|
|
29273
29302
|
pro?: number;
|
|
29274
29303
|
};
|
|
@@ -29276,23 +29305,28 @@ type ObservatoryPlanPropertiesInfo = {
|
|
|
29276
29305
|
* A test region.
|
|
29277
29306
|
*
|
|
29278
29307
|
* @example us-central1
|
|
29308
|
+
* @x-auditable true
|
|
29279
29309
|
*/
|
|
29280
29310
|
type ObservatoryRegion = 'asia-east1' | 'asia-northeast1' | 'asia-northeast2' | 'asia-south1' | 'asia-southeast1' | 'australia-southeast1' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west8' | 'europe-west9' | 'me-west1' | 'southamerica-east1' | 'us-central1' | 'us-east1' | 'us-east4' | 'us-south1' | 'us-west1';
|
|
29281
29311
|
type ObservatoryResultInfo = {
|
|
29282
29312
|
/**
|
|
29283
29313
|
* @example 5
|
|
29314
|
+
* @x-auditable true
|
|
29284
29315
|
*/
|
|
29285
29316
|
count?: number;
|
|
29286
29317
|
/**
|
|
29287
29318
|
* @example 1
|
|
29319
|
+
* @x-auditable true
|
|
29288
29320
|
*/
|
|
29289
29321
|
page?: number;
|
|
29290
29322
|
/**
|
|
29291
29323
|
* @example 5
|
|
29324
|
+
* @x-auditable true
|
|
29292
29325
|
*/
|
|
29293
29326
|
per_page?: number;
|
|
29294
29327
|
/**
|
|
29295
29328
|
* @example 3
|
|
29329
|
+
* @x-auditable true
|
|
29296
29330
|
*/
|
|
29297
29331
|
total_count?: number;
|
|
29298
29332
|
};
|
|
@@ -29311,6 +29345,7 @@ type ObservatoryScheduleResponseSingle = ObservatoryApiResponseSingle & {
|
|
|
29311
29345
|
* The frequency of the test.
|
|
29312
29346
|
*
|
|
29313
29347
|
* @example DAILY
|
|
29348
|
+
* @x-auditable true
|
|
29314
29349
|
*/
|
|
29315
29350
|
type ObservatoryScheduleFrequency = 'DAILY' | 'WEEKLY';
|
|
29316
29351
|
type ObservatorySchemasMessages = {
|
|
@@ -29370,6 +29405,7 @@ type ObservatoryTrendResponse = ObservatoryApiResponseSingle & {
|
|
|
29370
29405
|
* A URL.
|
|
29371
29406
|
*
|
|
29372
29407
|
* @example example.com
|
|
29408
|
+
* @x-auditable true
|
|
29373
29409
|
*/
|
|
29374
29410
|
type ObservatoryUrl = string;
|
|
29375
29411
|
/**
|
|
@@ -151043,6 +151079,7 @@ type SpeedDeleteTestsQueryParams = {
|
|
|
151043
151079
|
* A test region.
|
|
151044
151080
|
*
|
|
151045
151081
|
* @example us-central1
|
|
151082
|
+
* @x-auditable true
|
|
151046
151083
|
* @default us-central1
|
|
151047
151084
|
*/
|
|
151048
151085
|
region?: ObservatoryRegion & void;
|
|
@@ -151078,6 +151115,7 @@ type SpeedListTestHistoryQueryParams = {
|
|
|
151078
151115
|
* A test region.
|
|
151079
151116
|
*
|
|
151080
151117
|
* @example us-central1
|
|
151118
|
+
* @x-auditable true
|
|
151081
151119
|
* @default us-central1
|
|
151082
151120
|
*/
|
|
151083
151121
|
region?: ObservatoryRegion & void;
|
|
@@ -151107,6 +151145,7 @@ type SpeedCreateTestRequestBody = {
|
|
|
151107
151145
|
* A test region.
|
|
151108
151146
|
*
|
|
151109
151147
|
* @example us-central1
|
|
151148
|
+
* @x-auditable true
|
|
151110
151149
|
* @default us-central1
|
|
151111
151150
|
*/
|
|
151112
151151
|
region?: ObservatoryRegion & void;
|
|
@@ -151176,6 +151215,7 @@ type SpeedDeleteTestScheduleQueryParams = {
|
|
|
151176
151215
|
* A test region.
|
|
151177
151216
|
*
|
|
151178
151217
|
* @example us-central1
|
|
151218
|
+
* @x-auditable true
|
|
151179
151219
|
* @default us-central1
|
|
151180
151220
|
*/
|
|
151181
151221
|
region?: ObservatoryRegion & void;
|
|
@@ -151201,6 +151241,7 @@ type SpeedGetScheduledTestQueryParams = {
|
|
|
151201
151241
|
* A test region.
|
|
151202
151242
|
*
|
|
151203
151243
|
* @example us-central1
|
|
151244
|
+
* @x-auditable true
|
|
151204
151245
|
* @default us-central1
|
|
151205
151246
|
*/
|
|
151206
151247
|
region?: ObservatoryRegion & void;
|
|
@@ -151226,6 +151267,7 @@ type SpeedCreateScheduledTestQueryParams = {
|
|
|
151226
151267
|
* A test region.
|
|
151227
151268
|
*
|
|
151228
151269
|
* @example us-central1
|
|
151270
|
+
* @x-auditable true
|
|
151229
151271
|
* @default us-central1
|
|
151230
151272
|
*/
|
|
151231
151273
|
region?: ObservatoryRegion & void;
|
package/dist/index.d.mts
CHANGED
|
@@ -29028,6 +29028,7 @@ type ObservatoryApiResponseCommon = {
|
|
|
29028
29028
|
* Whether the API call was successful.
|
|
29029
29029
|
*
|
|
29030
29030
|
* @example true
|
|
29031
|
+
* @x-auditable true
|
|
29031
29032
|
*/
|
|
29032
29033
|
success: boolean;
|
|
29033
29034
|
};
|
|
@@ -29053,6 +29054,7 @@ type ObservatoryAvailabilities = {
|
|
|
29053
29054
|
* Cloudflare plan.
|
|
29054
29055
|
*
|
|
29055
29056
|
* @example free
|
|
29057
|
+
* @x-auditable true
|
|
29056
29058
|
*/
|
|
29057
29059
|
plan?: string;
|
|
29058
29060
|
/**
|
|
@@ -29065,12 +29067,14 @@ type ObservatoryAvailabilities = {
|
|
|
29065
29067
|
* The number of remaining schedules available.
|
|
29066
29068
|
*
|
|
29067
29069
|
* @example 1
|
|
29070
|
+
* @x-auditable true
|
|
29068
29071
|
*/
|
|
29069
29072
|
remainingSchedules?: number;
|
|
29070
29073
|
/**
|
|
29071
29074
|
* The number of remaining tests available.
|
|
29072
29075
|
*
|
|
29073
29076
|
* @example 30
|
|
29077
|
+
* @x-auditable true
|
|
29074
29078
|
*/
|
|
29075
29079
|
remainingTests?: number;
|
|
29076
29080
|
/**
|
|
@@ -29100,6 +29104,7 @@ type ObservatoryCountResponse = ObservatoryApiResponseSingle & {
|
|
|
29100
29104
|
* Number of items affected.
|
|
29101
29105
|
*
|
|
29102
29106
|
* @example 1
|
|
29107
|
+
* @x-auditable true
|
|
29103
29108
|
*/
|
|
29104
29109
|
count?: number;
|
|
29105
29110
|
};
|
|
@@ -29114,6 +29119,7 @@ type ObservatoryCreateScheduleResponse = ObservatoryApiResponseSingle & {
|
|
|
29114
29119
|
* The type of device.
|
|
29115
29120
|
*
|
|
29116
29121
|
* @example DESKTOP
|
|
29122
|
+
* @x-auditable true
|
|
29117
29123
|
*/
|
|
29118
29124
|
type ObservatoryDeviceType = 'DESKTOP' | 'MOBILE';
|
|
29119
29125
|
/**
|
|
@@ -29129,6 +29135,7 @@ type ObservatoryIdentifier = string;
|
|
|
29129
29135
|
type ObservatoryLabeledRegion = {
|
|
29130
29136
|
/**
|
|
29131
29137
|
* @example Iowa, USA
|
|
29138
|
+
* @x-auditable true
|
|
29132
29139
|
*/
|
|
29133
29140
|
label?: string;
|
|
29134
29141
|
value?: ObservatoryRegion;
|
|
@@ -29137,6 +29144,7 @@ type ObservatoryLabeledRegion = {
|
|
|
29137
29144
|
* The error code of the Lighthouse result.
|
|
29138
29145
|
*
|
|
29139
29146
|
* @example NOT_REACHABLE
|
|
29147
|
+
* @x-auditable true
|
|
29140
29148
|
*/
|
|
29141
29149
|
type ObservatoryLighthouseErrorCode = 'NOT_REACHABLE' | 'DNS_FAILURE' | 'NOT_HTML' | 'LIGHTHOUSE_TIMEOUT' | 'UNKNOWN';
|
|
29142
29150
|
/**
|
|
@@ -29147,6 +29155,7 @@ type ObservatoryLighthouseReport = {
|
|
|
29147
29155
|
* Cumulative Layout Shift.
|
|
29148
29156
|
*
|
|
29149
29157
|
* @example 100
|
|
29158
|
+
* @x-auditable true
|
|
29150
29159
|
*/
|
|
29151
29160
|
cls?: number;
|
|
29152
29161
|
deviceType?: ObservatoryDeviceType;
|
|
@@ -29156,12 +29165,14 @@ type ObservatoryLighthouseReport = {
|
|
|
29156
29165
|
* Detailed error message.
|
|
29157
29166
|
*
|
|
29158
29167
|
* @example Details: net::ERR_CONNECTION_CLOSED
|
|
29168
|
+
* @x-auditable true
|
|
29159
29169
|
*/
|
|
29160
29170
|
detail?: string;
|
|
29161
29171
|
/**
|
|
29162
29172
|
* The final URL displayed to the user.
|
|
29163
29173
|
*
|
|
29164
29174
|
* @example example.com
|
|
29175
|
+
* @x-auditable true
|
|
29165
29176
|
*/
|
|
29166
29177
|
finalDisplayedUrl?: string;
|
|
29167
29178
|
};
|
|
@@ -29169,28 +29180,34 @@ type ObservatoryLighthouseReport = {
|
|
|
29169
29180
|
* First Contentful Paint.
|
|
29170
29181
|
*
|
|
29171
29182
|
* @example 100
|
|
29183
|
+
* @x-auditable true
|
|
29172
29184
|
*/
|
|
29173
29185
|
fcp?: number;
|
|
29174
29186
|
/**
|
|
29175
29187
|
* The URL to the full Lighthouse JSON report.
|
|
29188
|
+
*
|
|
29189
|
+
* @x-auditable true
|
|
29176
29190
|
*/
|
|
29177
29191
|
jsonReportUrl?: string;
|
|
29178
29192
|
/**
|
|
29179
29193
|
* Largest Contentful Paint.
|
|
29180
29194
|
*
|
|
29181
29195
|
* @example 100
|
|
29196
|
+
* @x-auditable true
|
|
29182
29197
|
*/
|
|
29183
29198
|
lcp?: number;
|
|
29184
29199
|
/**
|
|
29185
29200
|
* The Lighthouse performance score.
|
|
29186
29201
|
*
|
|
29187
29202
|
* @example 90
|
|
29203
|
+
* @x-auditable true
|
|
29188
29204
|
*/
|
|
29189
29205
|
performanceScore?: number;
|
|
29190
29206
|
/**
|
|
29191
29207
|
* Speed Index.
|
|
29192
29208
|
*
|
|
29193
29209
|
* @example 100
|
|
29210
|
+
* @x-auditable true
|
|
29194
29211
|
*/
|
|
29195
29212
|
si?: number;
|
|
29196
29213
|
state?: ObservatoryLighthouseState;
|
|
@@ -29198,18 +29215,21 @@ type ObservatoryLighthouseReport = {
|
|
|
29198
29215
|
* Total Blocking Time.
|
|
29199
29216
|
*
|
|
29200
29217
|
* @example 100
|
|
29218
|
+
* @x-auditable true
|
|
29201
29219
|
*/
|
|
29202
29220
|
tbt?: number;
|
|
29203
29221
|
/**
|
|
29204
29222
|
* Time To First Byte.
|
|
29205
29223
|
*
|
|
29206
29224
|
* @example 100
|
|
29225
|
+
* @x-auditable true
|
|
29207
29226
|
*/
|
|
29208
29227
|
ttfb?: number;
|
|
29209
29228
|
/**
|
|
29210
29229
|
* Time To Interactive.
|
|
29211
29230
|
*
|
|
29212
29231
|
* @example 100
|
|
29232
|
+
* @x-auditable true
|
|
29213
29233
|
*/
|
|
29214
29234
|
tti?: number;
|
|
29215
29235
|
};
|
|
@@ -29217,13 +29237,18 @@ type ObservatoryLighthouseReport = {
|
|
|
29217
29237
|
* The state of the Lighthouse report.
|
|
29218
29238
|
*
|
|
29219
29239
|
* @example COMPLETE
|
|
29240
|
+
* @x-auditable true
|
|
29220
29241
|
*/
|
|
29221
29242
|
type ObservatoryLighthouseState = 'RUNNING' | 'COMPLETE' | 'FAILED';
|
|
29222
29243
|
type ObservatoryMessages = {
|
|
29223
29244
|
/**
|
|
29224
29245
|
* @minimum 1000
|
|
29246
|
+
* @x-auditable true
|
|
29225
29247
|
*/
|
|
29226
29248
|
code: number;
|
|
29249
|
+
/**
|
|
29250
|
+
* @x-auditable true
|
|
29251
|
+
*/
|
|
29227
29252
|
message: string;
|
|
29228
29253
|
}[];
|
|
29229
29254
|
type ObservatoryPageTestResponseCollection = ObservatoryApiResponseCollection & {
|
|
@@ -29257,18 +29282,22 @@ type ObservatoryPagesResponseCollection = ObservatoryApiResponseCollection & {
|
|
|
29257
29282
|
type ObservatoryPlanPropertiesInfo = {
|
|
29258
29283
|
/**
|
|
29259
29284
|
* @example 1
|
|
29285
|
+
* @x-auditable true
|
|
29260
29286
|
*/
|
|
29261
29287
|
business?: number;
|
|
29262
29288
|
/**
|
|
29263
29289
|
* @example 1
|
|
29290
|
+
* @x-auditable true
|
|
29264
29291
|
*/
|
|
29265
29292
|
enterprise?: number;
|
|
29266
29293
|
/**
|
|
29267
29294
|
* @example 1
|
|
29295
|
+
* @x-auditable true
|
|
29268
29296
|
*/
|
|
29269
29297
|
free?: number;
|
|
29270
29298
|
/**
|
|
29271
29299
|
* @example 1
|
|
29300
|
+
* @x-auditable true
|
|
29272
29301
|
*/
|
|
29273
29302
|
pro?: number;
|
|
29274
29303
|
};
|
|
@@ -29276,23 +29305,28 @@ type ObservatoryPlanPropertiesInfo = {
|
|
|
29276
29305
|
* A test region.
|
|
29277
29306
|
*
|
|
29278
29307
|
* @example us-central1
|
|
29308
|
+
* @x-auditable true
|
|
29279
29309
|
*/
|
|
29280
29310
|
type ObservatoryRegion = 'asia-east1' | 'asia-northeast1' | 'asia-northeast2' | 'asia-south1' | 'asia-southeast1' | 'australia-southeast1' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west8' | 'europe-west9' | 'me-west1' | 'southamerica-east1' | 'us-central1' | 'us-east1' | 'us-east4' | 'us-south1' | 'us-west1';
|
|
29281
29311
|
type ObservatoryResultInfo = {
|
|
29282
29312
|
/**
|
|
29283
29313
|
* @example 5
|
|
29314
|
+
* @x-auditable true
|
|
29284
29315
|
*/
|
|
29285
29316
|
count?: number;
|
|
29286
29317
|
/**
|
|
29287
29318
|
* @example 1
|
|
29319
|
+
* @x-auditable true
|
|
29288
29320
|
*/
|
|
29289
29321
|
page?: number;
|
|
29290
29322
|
/**
|
|
29291
29323
|
* @example 5
|
|
29324
|
+
* @x-auditable true
|
|
29292
29325
|
*/
|
|
29293
29326
|
per_page?: number;
|
|
29294
29327
|
/**
|
|
29295
29328
|
* @example 3
|
|
29329
|
+
* @x-auditable true
|
|
29296
29330
|
*/
|
|
29297
29331
|
total_count?: number;
|
|
29298
29332
|
};
|
|
@@ -29311,6 +29345,7 @@ type ObservatoryScheduleResponseSingle = ObservatoryApiResponseSingle & {
|
|
|
29311
29345
|
* The frequency of the test.
|
|
29312
29346
|
*
|
|
29313
29347
|
* @example DAILY
|
|
29348
|
+
* @x-auditable true
|
|
29314
29349
|
*/
|
|
29315
29350
|
type ObservatoryScheduleFrequency = 'DAILY' | 'WEEKLY';
|
|
29316
29351
|
type ObservatorySchemasMessages = {
|
|
@@ -29370,6 +29405,7 @@ type ObservatoryTrendResponse = ObservatoryApiResponseSingle & {
|
|
|
29370
29405
|
* A URL.
|
|
29371
29406
|
*
|
|
29372
29407
|
* @example example.com
|
|
29408
|
+
* @x-auditable true
|
|
29373
29409
|
*/
|
|
29374
29410
|
type ObservatoryUrl = string;
|
|
29375
29411
|
/**
|
|
@@ -151043,6 +151079,7 @@ type SpeedDeleteTestsQueryParams = {
|
|
|
151043
151079
|
* A test region.
|
|
151044
151080
|
*
|
|
151045
151081
|
* @example us-central1
|
|
151082
|
+
* @x-auditable true
|
|
151046
151083
|
* @default us-central1
|
|
151047
151084
|
*/
|
|
151048
151085
|
region?: ObservatoryRegion & void;
|
|
@@ -151078,6 +151115,7 @@ type SpeedListTestHistoryQueryParams = {
|
|
|
151078
151115
|
* A test region.
|
|
151079
151116
|
*
|
|
151080
151117
|
* @example us-central1
|
|
151118
|
+
* @x-auditable true
|
|
151081
151119
|
* @default us-central1
|
|
151082
151120
|
*/
|
|
151083
151121
|
region?: ObservatoryRegion & void;
|
|
@@ -151107,6 +151145,7 @@ type SpeedCreateTestRequestBody = {
|
|
|
151107
151145
|
* A test region.
|
|
151108
151146
|
*
|
|
151109
151147
|
* @example us-central1
|
|
151148
|
+
* @x-auditable true
|
|
151110
151149
|
* @default us-central1
|
|
151111
151150
|
*/
|
|
151112
151151
|
region?: ObservatoryRegion & void;
|
|
@@ -151176,6 +151215,7 @@ type SpeedDeleteTestScheduleQueryParams = {
|
|
|
151176
151215
|
* A test region.
|
|
151177
151216
|
*
|
|
151178
151217
|
* @example us-central1
|
|
151218
|
+
* @x-auditable true
|
|
151179
151219
|
* @default us-central1
|
|
151180
151220
|
*/
|
|
151181
151221
|
region?: ObservatoryRegion & void;
|
|
@@ -151201,6 +151241,7 @@ type SpeedGetScheduledTestQueryParams = {
|
|
|
151201
151241
|
* A test region.
|
|
151202
151242
|
*
|
|
151203
151243
|
* @example us-central1
|
|
151244
|
+
* @x-auditable true
|
|
151204
151245
|
* @default us-central1
|
|
151205
151246
|
*/
|
|
151206
151247
|
region?: ObservatoryRegion & void;
|
|
@@ -151226,6 +151267,7 @@ type SpeedCreateScheduledTestQueryParams = {
|
|
|
151226
151267
|
* A test region.
|
|
151227
151268
|
*
|
|
151228
151269
|
* @example us-central1
|
|
151270
|
+
* @x-auditable true
|
|
151229
151271
|
* @default us-central1
|
|
151230
151272
|
*/
|
|
151231
151273
|
region?: ObservatoryRegion & void;
|
package/dist/index.d.ts
CHANGED
|
@@ -29028,6 +29028,7 @@ type ObservatoryApiResponseCommon = {
|
|
|
29028
29028
|
* Whether the API call was successful.
|
|
29029
29029
|
*
|
|
29030
29030
|
* @example true
|
|
29031
|
+
* @x-auditable true
|
|
29031
29032
|
*/
|
|
29032
29033
|
success: boolean;
|
|
29033
29034
|
};
|
|
@@ -29053,6 +29054,7 @@ type ObservatoryAvailabilities = {
|
|
|
29053
29054
|
* Cloudflare plan.
|
|
29054
29055
|
*
|
|
29055
29056
|
* @example free
|
|
29057
|
+
* @x-auditable true
|
|
29056
29058
|
*/
|
|
29057
29059
|
plan?: string;
|
|
29058
29060
|
/**
|
|
@@ -29065,12 +29067,14 @@ type ObservatoryAvailabilities = {
|
|
|
29065
29067
|
* The number of remaining schedules available.
|
|
29066
29068
|
*
|
|
29067
29069
|
* @example 1
|
|
29070
|
+
* @x-auditable true
|
|
29068
29071
|
*/
|
|
29069
29072
|
remainingSchedules?: number;
|
|
29070
29073
|
/**
|
|
29071
29074
|
* The number of remaining tests available.
|
|
29072
29075
|
*
|
|
29073
29076
|
* @example 30
|
|
29077
|
+
* @x-auditable true
|
|
29074
29078
|
*/
|
|
29075
29079
|
remainingTests?: number;
|
|
29076
29080
|
/**
|
|
@@ -29100,6 +29104,7 @@ type ObservatoryCountResponse = ObservatoryApiResponseSingle & {
|
|
|
29100
29104
|
* Number of items affected.
|
|
29101
29105
|
*
|
|
29102
29106
|
* @example 1
|
|
29107
|
+
* @x-auditable true
|
|
29103
29108
|
*/
|
|
29104
29109
|
count?: number;
|
|
29105
29110
|
};
|
|
@@ -29114,6 +29119,7 @@ type ObservatoryCreateScheduleResponse = ObservatoryApiResponseSingle & {
|
|
|
29114
29119
|
* The type of device.
|
|
29115
29120
|
*
|
|
29116
29121
|
* @example DESKTOP
|
|
29122
|
+
* @x-auditable true
|
|
29117
29123
|
*/
|
|
29118
29124
|
type ObservatoryDeviceType = 'DESKTOP' | 'MOBILE';
|
|
29119
29125
|
/**
|
|
@@ -29129,6 +29135,7 @@ type ObservatoryIdentifier = string;
|
|
|
29129
29135
|
type ObservatoryLabeledRegion = {
|
|
29130
29136
|
/**
|
|
29131
29137
|
* @example Iowa, USA
|
|
29138
|
+
* @x-auditable true
|
|
29132
29139
|
*/
|
|
29133
29140
|
label?: string;
|
|
29134
29141
|
value?: ObservatoryRegion;
|
|
@@ -29137,6 +29144,7 @@ type ObservatoryLabeledRegion = {
|
|
|
29137
29144
|
* The error code of the Lighthouse result.
|
|
29138
29145
|
*
|
|
29139
29146
|
* @example NOT_REACHABLE
|
|
29147
|
+
* @x-auditable true
|
|
29140
29148
|
*/
|
|
29141
29149
|
type ObservatoryLighthouseErrorCode = 'NOT_REACHABLE' | 'DNS_FAILURE' | 'NOT_HTML' | 'LIGHTHOUSE_TIMEOUT' | 'UNKNOWN';
|
|
29142
29150
|
/**
|
|
@@ -29147,6 +29155,7 @@ type ObservatoryLighthouseReport = {
|
|
|
29147
29155
|
* Cumulative Layout Shift.
|
|
29148
29156
|
*
|
|
29149
29157
|
* @example 100
|
|
29158
|
+
* @x-auditable true
|
|
29150
29159
|
*/
|
|
29151
29160
|
cls?: number;
|
|
29152
29161
|
deviceType?: ObservatoryDeviceType;
|
|
@@ -29156,12 +29165,14 @@ type ObservatoryLighthouseReport = {
|
|
|
29156
29165
|
* Detailed error message.
|
|
29157
29166
|
*
|
|
29158
29167
|
* @example Details: net::ERR_CONNECTION_CLOSED
|
|
29168
|
+
* @x-auditable true
|
|
29159
29169
|
*/
|
|
29160
29170
|
detail?: string;
|
|
29161
29171
|
/**
|
|
29162
29172
|
* The final URL displayed to the user.
|
|
29163
29173
|
*
|
|
29164
29174
|
* @example example.com
|
|
29175
|
+
* @x-auditable true
|
|
29165
29176
|
*/
|
|
29166
29177
|
finalDisplayedUrl?: string;
|
|
29167
29178
|
};
|
|
@@ -29169,28 +29180,34 @@ type ObservatoryLighthouseReport = {
|
|
|
29169
29180
|
* First Contentful Paint.
|
|
29170
29181
|
*
|
|
29171
29182
|
* @example 100
|
|
29183
|
+
* @x-auditable true
|
|
29172
29184
|
*/
|
|
29173
29185
|
fcp?: number;
|
|
29174
29186
|
/**
|
|
29175
29187
|
* The URL to the full Lighthouse JSON report.
|
|
29188
|
+
*
|
|
29189
|
+
* @x-auditable true
|
|
29176
29190
|
*/
|
|
29177
29191
|
jsonReportUrl?: string;
|
|
29178
29192
|
/**
|
|
29179
29193
|
* Largest Contentful Paint.
|
|
29180
29194
|
*
|
|
29181
29195
|
* @example 100
|
|
29196
|
+
* @x-auditable true
|
|
29182
29197
|
*/
|
|
29183
29198
|
lcp?: number;
|
|
29184
29199
|
/**
|
|
29185
29200
|
* The Lighthouse performance score.
|
|
29186
29201
|
*
|
|
29187
29202
|
* @example 90
|
|
29203
|
+
* @x-auditable true
|
|
29188
29204
|
*/
|
|
29189
29205
|
performanceScore?: number;
|
|
29190
29206
|
/**
|
|
29191
29207
|
* Speed Index.
|
|
29192
29208
|
*
|
|
29193
29209
|
* @example 100
|
|
29210
|
+
* @x-auditable true
|
|
29194
29211
|
*/
|
|
29195
29212
|
si?: number;
|
|
29196
29213
|
state?: ObservatoryLighthouseState;
|
|
@@ -29198,18 +29215,21 @@ type ObservatoryLighthouseReport = {
|
|
|
29198
29215
|
* Total Blocking Time.
|
|
29199
29216
|
*
|
|
29200
29217
|
* @example 100
|
|
29218
|
+
* @x-auditable true
|
|
29201
29219
|
*/
|
|
29202
29220
|
tbt?: number;
|
|
29203
29221
|
/**
|
|
29204
29222
|
* Time To First Byte.
|
|
29205
29223
|
*
|
|
29206
29224
|
* @example 100
|
|
29225
|
+
* @x-auditable true
|
|
29207
29226
|
*/
|
|
29208
29227
|
ttfb?: number;
|
|
29209
29228
|
/**
|
|
29210
29229
|
* Time To Interactive.
|
|
29211
29230
|
*
|
|
29212
29231
|
* @example 100
|
|
29232
|
+
* @x-auditable true
|
|
29213
29233
|
*/
|
|
29214
29234
|
tti?: number;
|
|
29215
29235
|
};
|
|
@@ -29217,13 +29237,18 @@ type ObservatoryLighthouseReport = {
|
|
|
29217
29237
|
* The state of the Lighthouse report.
|
|
29218
29238
|
*
|
|
29219
29239
|
* @example COMPLETE
|
|
29240
|
+
* @x-auditable true
|
|
29220
29241
|
*/
|
|
29221
29242
|
type ObservatoryLighthouseState = 'RUNNING' | 'COMPLETE' | 'FAILED';
|
|
29222
29243
|
type ObservatoryMessages = {
|
|
29223
29244
|
/**
|
|
29224
29245
|
* @minimum 1000
|
|
29246
|
+
* @x-auditable true
|
|
29225
29247
|
*/
|
|
29226
29248
|
code: number;
|
|
29249
|
+
/**
|
|
29250
|
+
* @x-auditable true
|
|
29251
|
+
*/
|
|
29227
29252
|
message: string;
|
|
29228
29253
|
}[];
|
|
29229
29254
|
type ObservatoryPageTestResponseCollection = ObservatoryApiResponseCollection & {
|
|
@@ -29257,18 +29282,22 @@ type ObservatoryPagesResponseCollection = ObservatoryApiResponseCollection & {
|
|
|
29257
29282
|
type ObservatoryPlanPropertiesInfo = {
|
|
29258
29283
|
/**
|
|
29259
29284
|
* @example 1
|
|
29285
|
+
* @x-auditable true
|
|
29260
29286
|
*/
|
|
29261
29287
|
business?: number;
|
|
29262
29288
|
/**
|
|
29263
29289
|
* @example 1
|
|
29290
|
+
* @x-auditable true
|
|
29264
29291
|
*/
|
|
29265
29292
|
enterprise?: number;
|
|
29266
29293
|
/**
|
|
29267
29294
|
* @example 1
|
|
29295
|
+
* @x-auditable true
|
|
29268
29296
|
*/
|
|
29269
29297
|
free?: number;
|
|
29270
29298
|
/**
|
|
29271
29299
|
* @example 1
|
|
29300
|
+
* @x-auditable true
|
|
29272
29301
|
*/
|
|
29273
29302
|
pro?: number;
|
|
29274
29303
|
};
|
|
@@ -29276,23 +29305,28 @@ type ObservatoryPlanPropertiesInfo = {
|
|
|
29276
29305
|
* A test region.
|
|
29277
29306
|
*
|
|
29278
29307
|
* @example us-central1
|
|
29308
|
+
* @x-auditable true
|
|
29279
29309
|
*/
|
|
29280
29310
|
type ObservatoryRegion = 'asia-east1' | 'asia-northeast1' | 'asia-northeast2' | 'asia-south1' | 'asia-southeast1' | 'australia-southeast1' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west8' | 'europe-west9' | 'me-west1' | 'southamerica-east1' | 'us-central1' | 'us-east1' | 'us-east4' | 'us-south1' | 'us-west1';
|
|
29281
29311
|
type ObservatoryResultInfo = {
|
|
29282
29312
|
/**
|
|
29283
29313
|
* @example 5
|
|
29314
|
+
* @x-auditable true
|
|
29284
29315
|
*/
|
|
29285
29316
|
count?: number;
|
|
29286
29317
|
/**
|
|
29287
29318
|
* @example 1
|
|
29319
|
+
* @x-auditable true
|
|
29288
29320
|
*/
|
|
29289
29321
|
page?: number;
|
|
29290
29322
|
/**
|
|
29291
29323
|
* @example 5
|
|
29324
|
+
* @x-auditable true
|
|
29292
29325
|
*/
|
|
29293
29326
|
per_page?: number;
|
|
29294
29327
|
/**
|
|
29295
29328
|
* @example 3
|
|
29329
|
+
* @x-auditable true
|
|
29296
29330
|
*/
|
|
29297
29331
|
total_count?: number;
|
|
29298
29332
|
};
|
|
@@ -29311,6 +29345,7 @@ type ObservatoryScheduleResponseSingle = ObservatoryApiResponseSingle & {
|
|
|
29311
29345
|
* The frequency of the test.
|
|
29312
29346
|
*
|
|
29313
29347
|
* @example DAILY
|
|
29348
|
+
* @x-auditable true
|
|
29314
29349
|
*/
|
|
29315
29350
|
type ObservatoryScheduleFrequency = 'DAILY' | 'WEEKLY';
|
|
29316
29351
|
type ObservatorySchemasMessages = {
|
|
@@ -29370,6 +29405,7 @@ type ObservatoryTrendResponse = ObservatoryApiResponseSingle & {
|
|
|
29370
29405
|
* A URL.
|
|
29371
29406
|
*
|
|
29372
29407
|
* @example example.com
|
|
29408
|
+
* @x-auditable true
|
|
29373
29409
|
*/
|
|
29374
29410
|
type ObservatoryUrl = string;
|
|
29375
29411
|
/**
|
|
@@ -151043,6 +151079,7 @@ type SpeedDeleteTestsQueryParams = {
|
|
|
151043
151079
|
* A test region.
|
|
151044
151080
|
*
|
|
151045
151081
|
* @example us-central1
|
|
151082
|
+
* @x-auditable true
|
|
151046
151083
|
* @default us-central1
|
|
151047
151084
|
*/
|
|
151048
151085
|
region?: ObservatoryRegion & void;
|
|
@@ -151078,6 +151115,7 @@ type SpeedListTestHistoryQueryParams = {
|
|
|
151078
151115
|
* A test region.
|
|
151079
151116
|
*
|
|
151080
151117
|
* @example us-central1
|
|
151118
|
+
* @x-auditable true
|
|
151081
151119
|
* @default us-central1
|
|
151082
151120
|
*/
|
|
151083
151121
|
region?: ObservatoryRegion & void;
|
|
@@ -151107,6 +151145,7 @@ type SpeedCreateTestRequestBody = {
|
|
|
151107
151145
|
* A test region.
|
|
151108
151146
|
*
|
|
151109
151147
|
* @example us-central1
|
|
151148
|
+
* @x-auditable true
|
|
151110
151149
|
* @default us-central1
|
|
151111
151150
|
*/
|
|
151112
151151
|
region?: ObservatoryRegion & void;
|
|
@@ -151176,6 +151215,7 @@ type SpeedDeleteTestScheduleQueryParams = {
|
|
|
151176
151215
|
* A test region.
|
|
151177
151216
|
*
|
|
151178
151217
|
* @example us-central1
|
|
151218
|
+
* @x-auditable true
|
|
151179
151219
|
* @default us-central1
|
|
151180
151220
|
*/
|
|
151181
151221
|
region?: ObservatoryRegion & void;
|
|
@@ -151201,6 +151241,7 @@ type SpeedGetScheduledTestQueryParams = {
|
|
|
151201
151241
|
* A test region.
|
|
151202
151242
|
*
|
|
151203
151243
|
* @example us-central1
|
|
151244
|
+
* @x-auditable true
|
|
151204
151245
|
* @default us-central1
|
|
151205
151246
|
*/
|
|
151206
151247
|
region?: ObservatoryRegion & void;
|
|
@@ -151226,6 +151267,7 @@ type SpeedCreateScheduledTestQueryParams = {
|
|
|
151226
151267
|
* A test region.
|
|
151227
151268
|
*
|
|
151228
151269
|
* @example us-central1
|
|
151270
|
+
* @x-auditable true
|
|
151229
151271
|
* @default us-central1
|
|
151230
151272
|
*/
|
|
151231
151273
|
region?: ObservatoryRegion & void;
|