@nuxtseo/protocol 0.1.0

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 (44) hide show
  1. package/dist/analytics-codecs/analytics-row.d.ts +265 -0
  2. package/dist/analytics-codecs/analytics-row.js +175 -0
  3. package/dist/analytics-codecs/analytics-web-vitals.d.ts +57 -0
  4. package/dist/analytics-codecs/analytics-web-vitals.js +76 -0
  5. package/dist/analytics-codecs/capabilities.d.ts +35 -0
  6. package/dist/analytics-codecs/capabilities.js +76 -0
  7. package/dist/analytics-codecs/index.d.ts +3 -0
  8. package/dist/analytics-codecs/index.js +3 -0
  9. package/dist/cli-pairing.d.ts +67 -0
  10. package/dist/cli-pairing.js +52 -0
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.js +1 -0
  13. package/dist/v1/account.d.ts +715 -0
  14. package/dist/v1/account.js +123 -0
  15. package/dist/v1/actions.d.ts +2591 -0
  16. package/dist/v1/actions.js +460 -0
  17. package/dist/v1/analytics.d.ts +6145 -0
  18. package/dist/v1/analytics.js +296 -0
  19. package/dist/v1/audit.d.ts +4053 -0
  20. package/dist/v1/audit.js +609 -0
  21. package/dist/v1/backlinks.d.ts +1002 -0
  22. package/dist/v1/backlinks.js +239 -0
  23. package/dist/v1/content.d.ts +2745 -0
  24. package/dist/v1/content.js +326 -0
  25. package/dist/v1/core.d.ts +301 -0
  26. package/dist/v1/core.js +333 -0
  27. package/dist/v1/documents.d.ts +4 -0
  28. package/dist/v1/documents.js +216 -0
  29. package/dist/v1/gsc.d.ts +5172 -0
  30. package/dist/v1/gsc.js +583 -0
  31. package/dist/v1/index.d.ts +49 -0
  32. package/dist/v1/index.js +52 -0
  33. package/dist/v1/pages.d.ts +1404 -0
  34. package/dist/v1/pages.js +287 -0
  35. package/dist/v1/performance.d.ts +1379 -0
  36. package/dist/v1/performance.js +198 -0
  37. package/dist/v1/research.d.ts +1173 -0
  38. package/dist/v1/research.js +174 -0
  39. package/dist/v1/sitemaps.d.ts +1506 -0
  40. package/dist/v1/sitemaps.js +199 -0
  41. package/dist/v1/sites.d.ts +591 -0
  42. package/dist/v1/sites.js +101 -0
  43. package/generated/openapi.v1.json +1 -0
  44. package/package.json +131 -0
@@ -0,0 +1,1404 @@
1
+ import type { z } from 'zod';
2
+ export declare const pageSiteParamsSchema: z.ZodObject<{
3
+ siteId: z.ZodString;
4
+ }, z.core.$strict>;
5
+ export declare const pageInspectQuerySchema: z.ZodObject<{
6
+ url: z.ZodString;
7
+ includeResolved: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
8
+ 0: "0";
9
+ 1: "1";
10
+ false: "false";
11
+ true: "true";
12
+ }>>, z.ZodTransform<boolean, "0" | "1" | "false" | "true">>;
13
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
14
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
15
+ }, z.core.$strict>;
16
+ export declare const pageScanBodySchema: z.ZodObject<{
17
+ url: z.ZodString;
18
+ }, z.core.$strict>;
19
+ export declare const pageObservationSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
20
+ readonly url: z.ZodString;
21
+ readonly path: z.ZodString;
22
+ readonly pathWithQuery: z.ZodString;
23
+ readonly source: z.ZodString;
24
+ readonly issueType: z.ZodString;
25
+ readonly severity: z.ZodEnum<{
26
+ error: "error";
27
+ info: "info";
28
+ warning: "warning";
29
+ }>;
30
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
32
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
33
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
34
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
35
+ excluded: "excluded";
36
+ fixed: "fixed";
37
+ removed: "removed";
38
+ unmonitored: "unmonitored";
39
+ }>>;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ readonly url: z.ZodString;
42
+ readonly path: z.ZodString;
43
+ readonly pathWithQuery: z.ZodString;
44
+ readonly source: z.ZodString;
45
+ readonly issueType: z.ZodString;
46
+ readonly severity: z.ZodEnum<{
47
+ error: "error";
48
+ info: "info";
49
+ warning: "warning";
50
+ }>;
51
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
53
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
54
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
55
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
56
+ excluded: "excluded";
57
+ fixed: "fixed";
58
+ removed: "removed";
59
+ unmonitored: "unmonitored";
60
+ }>>;
61
+ }, z.core.$strip>>;
62
+ export declare const pageLighthouseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
63
+ readonly scanId: z.ZodString;
64
+ readonly strategy: z.ZodEnum<{
65
+ desktop: "desktop";
66
+ mobile: "mobile";
67
+ }>;
68
+ readonly completedAt: z.ZodNullable<z.ZodString>;
69
+ readonly performance: z.ZodNullable<z.ZodNumber>;
70
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
71
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
72
+ readonly seo: z.ZodNullable<z.ZodNumber>;
73
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
74
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
75
+ readonly cls: z.ZodNullable<z.ZodNumber>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ readonly scanId: z.ZodString;
78
+ readonly strategy: z.ZodEnum<{
79
+ desktop: "desktop";
80
+ mobile: "mobile";
81
+ }>;
82
+ readonly completedAt: z.ZodNullable<z.ZodString>;
83
+ readonly performance: z.ZodNullable<z.ZodNumber>;
84
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
85
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
86
+ readonly seo: z.ZodNullable<z.ZodNumber>;
87
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
88
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
89
+ readonly cls: z.ZodNullable<z.ZodNumber>;
90
+ }, z.core.$strip>>;
91
+ export declare const pageRankingKeywordSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
92
+ readonly keyword: z.ZodString;
93
+ readonly volume: z.ZodNullable<z.ZodNumber>;
94
+ readonly position: z.ZodNullable<z.ZodNumber>;
95
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
96
+ }, z.core.$strip>, z.ZodObject<{
97
+ readonly keyword: z.ZodString;
98
+ readonly volume: z.ZodNullable<z.ZodNumber>;
99
+ readonly position: z.ZodNullable<z.ZodNumber>;
100
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
101
+ }, z.core.$strip>>;
102
+ export declare const pageInspectDataSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
103
+ readonly page: z.ZodObject<{
104
+ url: z.ZodString;
105
+ path: z.ZodString;
106
+ }, z.core.$strict>;
107
+ readonly observations: z.ZodObject<{
108
+ rows: z.ZodArray<z.ZodObject<{
109
+ readonly url: z.ZodString;
110
+ readonly path: z.ZodString;
111
+ readonly pathWithQuery: z.ZodString;
112
+ readonly source: z.ZodString;
113
+ readonly issueType: z.ZodString;
114
+ readonly severity: z.ZodEnum<{
115
+ error: "error";
116
+ info: "info";
117
+ warning: "warning";
118
+ }>;
119
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
120
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
121
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
122
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
123
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
124
+ excluded: "excluded";
125
+ fixed: "fixed";
126
+ removed: "removed";
127
+ unmonitored: "unmonitored";
128
+ }>>;
129
+ }, z.core.$strip>>;
130
+ total: z.ZodNumber;
131
+ pagination: z.ZodObject<{
132
+ limit: z.ZodNumber;
133
+ offset: z.ZodNumber;
134
+ hasMore: z.ZodBoolean;
135
+ }, z.core.$strict>;
136
+ }, z.core.$strict>;
137
+ readonly performance: z.ZodObject<{
138
+ lighthouse: z.ZodNullable<z.ZodObject<{
139
+ readonly scanId: z.ZodString;
140
+ readonly strategy: z.ZodEnum<{
141
+ desktop: "desktop";
142
+ mobile: "mobile";
143
+ }>;
144
+ readonly completedAt: z.ZodNullable<z.ZodString>;
145
+ readonly performance: z.ZodNullable<z.ZodNumber>;
146
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
147
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
148
+ readonly seo: z.ZodNullable<z.ZodNumber>;
149
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
150
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
151
+ readonly cls: z.ZodNullable<z.ZodNumber>;
152
+ }, z.core.$strip>>;
153
+ }, z.core.$strict>;
154
+ readonly search: z.ZodObject<{
155
+ keywords: z.ZodArray<z.ZodObject<{
156
+ readonly keyword: z.ZodString;
157
+ readonly volume: z.ZodNullable<z.ZodNumber>;
158
+ readonly position: z.ZodNullable<z.ZodNumber>;
159
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
160
+ }, z.core.$strip>>;
161
+ }, z.core.$strict>;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ readonly page: z.ZodObject<{
164
+ url: z.ZodString;
165
+ path: z.ZodString;
166
+ }, z.core.$loose>;
167
+ readonly observations: z.ZodObject<{
168
+ rows: z.ZodArray<z.ZodObject<{
169
+ readonly url: z.ZodString;
170
+ readonly path: z.ZodString;
171
+ readonly pathWithQuery: z.ZodString;
172
+ readonly source: z.ZodString;
173
+ readonly issueType: z.ZodString;
174
+ readonly severity: z.ZodEnum<{
175
+ error: "error";
176
+ info: "info";
177
+ warning: "warning";
178
+ }>;
179
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
180
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
181
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
182
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
183
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
184
+ excluded: "excluded";
185
+ fixed: "fixed";
186
+ removed: "removed";
187
+ unmonitored: "unmonitored";
188
+ }>>;
189
+ }, z.core.$strip>>;
190
+ total: z.ZodNumber;
191
+ pagination: z.ZodObject<{
192
+ limit: z.ZodNumber;
193
+ offset: z.ZodNumber;
194
+ hasMore: z.ZodBoolean;
195
+ }, z.core.$loose>;
196
+ }, z.core.$loose>;
197
+ readonly performance: z.ZodObject<{
198
+ lighthouse: z.ZodNullable<z.ZodObject<{
199
+ readonly scanId: z.ZodString;
200
+ readonly strategy: z.ZodEnum<{
201
+ desktop: "desktop";
202
+ mobile: "mobile";
203
+ }>;
204
+ readonly completedAt: z.ZodNullable<z.ZodString>;
205
+ readonly performance: z.ZodNullable<z.ZodNumber>;
206
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
207
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
208
+ readonly seo: z.ZodNullable<z.ZodNumber>;
209
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
210
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
211
+ readonly cls: z.ZodNullable<z.ZodNumber>;
212
+ }, z.core.$strip>>;
213
+ }, z.core.$loose>;
214
+ readonly search: z.ZodObject<{
215
+ keywords: z.ZodArray<z.ZodObject<{
216
+ readonly keyword: z.ZodString;
217
+ readonly volume: z.ZodNullable<z.ZodNumber>;
218
+ readonly position: z.ZodNullable<z.ZodNumber>;
219
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
220
+ }, z.core.$strip>>;
221
+ }, z.core.$loose>;
222
+ }, z.core.$strip>>;
223
+ export declare const pageInspectResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
224
+ data: z.ZodObject<{
225
+ readonly page: z.ZodObject<{
226
+ url: z.ZodString;
227
+ path: z.ZodString;
228
+ }, z.core.$strict>;
229
+ readonly observations: z.ZodObject<{
230
+ rows: z.ZodArray<z.ZodObject<{
231
+ readonly url: z.ZodString;
232
+ readonly path: z.ZodString;
233
+ readonly pathWithQuery: z.ZodString;
234
+ readonly source: z.ZodString;
235
+ readonly issueType: z.ZodString;
236
+ readonly severity: z.ZodEnum<{
237
+ error: "error";
238
+ info: "info";
239
+ warning: "warning";
240
+ }>;
241
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
242
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
243
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
244
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
245
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
246
+ excluded: "excluded";
247
+ fixed: "fixed";
248
+ removed: "removed";
249
+ unmonitored: "unmonitored";
250
+ }>>;
251
+ }, z.core.$strip>>;
252
+ total: z.ZodNumber;
253
+ pagination: z.ZodObject<{
254
+ limit: z.ZodNumber;
255
+ offset: z.ZodNumber;
256
+ hasMore: z.ZodBoolean;
257
+ }, z.core.$strict>;
258
+ }, z.core.$strict>;
259
+ readonly performance: z.ZodObject<{
260
+ lighthouse: z.ZodNullable<z.ZodObject<{
261
+ readonly scanId: z.ZodString;
262
+ readonly strategy: z.ZodEnum<{
263
+ desktop: "desktop";
264
+ mobile: "mobile";
265
+ }>;
266
+ readonly completedAt: z.ZodNullable<z.ZodString>;
267
+ readonly performance: z.ZodNullable<z.ZodNumber>;
268
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
269
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
270
+ readonly seo: z.ZodNullable<z.ZodNumber>;
271
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
272
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
273
+ readonly cls: z.ZodNullable<z.ZodNumber>;
274
+ }, z.core.$strip>>;
275
+ }, z.core.$strict>;
276
+ readonly search: z.ZodObject<{
277
+ keywords: z.ZodArray<z.ZodObject<{
278
+ readonly keyword: z.ZodString;
279
+ readonly volume: z.ZodNullable<z.ZodNumber>;
280
+ readonly position: z.ZodNullable<z.ZodNumber>;
281
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
282
+ }, z.core.$strip>>;
283
+ }, z.core.$strict>;
284
+ }, z.core.$strip>;
285
+ meta: z.ZodObject<{
286
+ requestId: z.ZodString;
287
+ version: z.ZodLiteral<"1.0">;
288
+ }, z.core.$strict>;
289
+ }, z.core.$strip>, z.ZodObject<{
290
+ data: z.ZodObject<{
291
+ readonly page: z.ZodObject<{
292
+ url: z.ZodString;
293
+ path: z.ZodString;
294
+ }, z.core.$loose>;
295
+ readonly observations: z.ZodObject<{
296
+ rows: z.ZodArray<z.ZodObject<{
297
+ readonly url: z.ZodString;
298
+ readonly path: z.ZodString;
299
+ readonly pathWithQuery: z.ZodString;
300
+ readonly source: z.ZodString;
301
+ readonly issueType: z.ZodString;
302
+ readonly severity: z.ZodEnum<{
303
+ error: "error";
304
+ info: "info";
305
+ warning: "warning";
306
+ }>;
307
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
308
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
309
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
310
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
311
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
312
+ excluded: "excluded";
313
+ fixed: "fixed";
314
+ removed: "removed";
315
+ unmonitored: "unmonitored";
316
+ }>>;
317
+ }, z.core.$strip>>;
318
+ total: z.ZodNumber;
319
+ pagination: z.ZodObject<{
320
+ limit: z.ZodNumber;
321
+ offset: z.ZodNumber;
322
+ hasMore: z.ZodBoolean;
323
+ }, z.core.$loose>;
324
+ }, z.core.$loose>;
325
+ readonly performance: z.ZodObject<{
326
+ lighthouse: z.ZodNullable<z.ZodObject<{
327
+ readonly scanId: z.ZodString;
328
+ readonly strategy: z.ZodEnum<{
329
+ desktop: "desktop";
330
+ mobile: "mobile";
331
+ }>;
332
+ readonly completedAt: z.ZodNullable<z.ZodString>;
333
+ readonly performance: z.ZodNullable<z.ZodNumber>;
334
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
335
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
336
+ readonly seo: z.ZodNullable<z.ZodNumber>;
337
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
338
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
339
+ readonly cls: z.ZodNullable<z.ZodNumber>;
340
+ }, z.core.$strip>>;
341
+ }, z.core.$loose>;
342
+ readonly search: z.ZodObject<{
343
+ keywords: z.ZodArray<z.ZodObject<{
344
+ readonly keyword: z.ZodString;
345
+ readonly volume: z.ZodNullable<z.ZodNumber>;
346
+ readonly position: z.ZodNullable<z.ZodNumber>;
347
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
348
+ }, z.core.$strip>>;
349
+ }, z.core.$loose>;
350
+ }, z.core.$strip>;
351
+ meta: z.ZodObject<{
352
+ requestId: z.ZodString;
353
+ version: z.ZodLiteral<"1.0">;
354
+ }, z.core.$loose>;
355
+ }, z.core.$strip>>;
356
+ export declare const pageScanItemSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
357
+ readonly scanId: z.ZodString;
358
+ readonly pageId: z.ZodString;
359
+ readonly url: z.ZodString;
360
+ readonly strategy: z.ZodEnum<{
361
+ desktop: "desktop";
362
+ mobile: "mobile";
363
+ }>;
364
+ }, z.core.$strip>, z.ZodObject<{
365
+ readonly scanId: z.ZodString;
366
+ readonly pageId: z.ZodString;
367
+ readonly url: z.ZodString;
368
+ readonly strategy: z.ZodEnum<{
369
+ desktop: "desktop";
370
+ mobile: "mobile";
371
+ }>;
372
+ }, z.core.$strip>>;
373
+ export declare const pageScanDataSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
374
+ readonly pageId: z.ZodString;
375
+ readonly pageCreated: z.ZodBoolean;
376
+ readonly scanId: z.ZodString;
377
+ readonly status: z.ZodLiteral<"running">;
378
+ readonly scans: z.ZodArray<z.ZodObject<{
379
+ readonly scanId: z.ZodString;
380
+ readonly pageId: z.ZodString;
381
+ readonly url: z.ZodString;
382
+ readonly strategy: z.ZodEnum<{
383
+ desktop: "desktop";
384
+ mobile: "mobile";
385
+ }>;
386
+ }, z.core.$strip>>;
387
+ }, z.core.$strip>, z.ZodObject<{
388
+ readonly pageId: z.ZodString;
389
+ readonly pageCreated: z.ZodBoolean;
390
+ readonly scanId: z.ZodString;
391
+ readonly status: z.ZodLiteral<"running">;
392
+ readonly scans: z.ZodArray<z.ZodObject<{
393
+ readonly scanId: z.ZodString;
394
+ readonly pageId: z.ZodString;
395
+ readonly url: z.ZodString;
396
+ readonly strategy: z.ZodEnum<{
397
+ desktop: "desktop";
398
+ mobile: "mobile";
399
+ }>;
400
+ }, z.core.$strip>>;
401
+ }, z.core.$strip>>;
402
+ export declare const pageScanResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
403
+ data: z.ZodObject<{
404
+ readonly pageId: z.ZodString;
405
+ readonly pageCreated: z.ZodBoolean;
406
+ readonly scanId: z.ZodString;
407
+ readonly status: z.ZodLiteral<"running">;
408
+ readonly scans: z.ZodArray<z.ZodObject<{
409
+ readonly scanId: z.ZodString;
410
+ readonly pageId: z.ZodString;
411
+ readonly url: z.ZodString;
412
+ readonly strategy: z.ZodEnum<{
413
+ desktop: "desktop";
414
+ mobile: "mobile";
415
+ }>;
416
+ }, z.core.$strip>>;
417
+ }, z.core.$strip>;
418
+ meta: z.ZodObject<{
419
+ requestId: z.ZodString;
420
+ version: z.ZodLiteral<"1.0">;
421
+ }, z.core.$strict>;
422
+ }, z.core.$strip>, z.ZodObject<{
423
+ data: z.ZodObject<{
424
+ readonly pageId: z.ZodString;
425
+ readonly pageCreated: z.ZodBoolean;
426
+ readonly scanId: z.ZodString;
427
+ readonly status: z.ZodLiteral<"running">;
428
+ readonly scans: z.ZodArray<z.ZodObject<{
429
+ readonly scanId: z.ZodString;
430
+ readonly pageId: z.ZodString;
431
+ readonly url: z.ZodString;
432
+ readonly strategy: z.ZodEnum<{
433
+ desktop: "desktop";
434
+ mobile: "mobile";
435
+ }>;
436
+ }, z.core.$strip>>;
437
+ }, z.core.$strip>;
438
+ meta: z.ZodObject<{
439
+ requestId: z.ZodString;
440
+ version: z.ZodLiteral<"1.0">;
441
+ }, z.core.$loose>;
442
+ }, z.core.$strip>>;
443
+ export type PageInspectQuery = z.output<typeof pageInspectQuerySchema>;
444
+ export type PageInspect = z.output<typeof pageInspectDataSchema.producer>;
445
+ export type PageScanBody = z.output<typeof pageScanBodySchema>;
446
+ export type PageScan = z.output<typeof pageScanDataSchema.producer>;
447
+ export declare const pageInspectOperation: {
448
+ readonly id: 'page.inspect';
449
+ readonly method: 'GET';
450
+ readonly path: '/api/v1/sites/{siteId}/pages/inspect';
451
+ readonly visibility: 'public';
452
+ readonly semantics: {
453
+ readonly kind: 'query';
454
+ readonly sideEffects: 'none';
455
+ readonly retry: 'idempotent';
456
+ readonly readConsistency: 'primary';
457
+ };
458
+ readonly auth: {
459
+ readonly credentials: readonly ["session", "api_token"];
460
+ readonly scopes: readonly ["page:read"];
461
+ readonly minimumRole: 'viewer';
462
+ readonly ownership: 'site';
463
+ };
464
+ readonly request: {
465
+ readonly params: z.ZodObject<{
466
+ siteId: z.ZodString;
467
+ }, z.core.$strict>;
468
+ readonly query: z.ZodObject<{
469
+ url: z.ZodString;
470
+ includeResolved: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
471
+ 0: "0";
472
+ 1: "1";
473
+ false: "false";
474
+ true: "true";
475
+ }>>, z.ZodTransform<boolean, "0" | "1" | "false" | "true">>;
476
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
477
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
478
+ }, z.core.$strict>;
479
+ readonly headers: null;
480
+ readonly body: null;
481
+ };
482
+ readonly responses: {
483
+ readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
484
+ data: z.ZodObject<{
485
+ readonly page: z.ZodObject<{
486
+ url: z.ZodString;
487
+ path: z.ZodString;
488
+ }, z.core.$strict>;
489
+ readonly observations: z.ZodObject<{
490
+ rows: z.ZodArray<z.ZodObject<{
491
+ readonly url: z.ZodString;
492
+ readonly path: z.ZodString;
493
+ readonly pathWithQuery: z.ZodString;
494
+ readonly source: z.ZodString;
495
+ readonly issueType: z.ZodString;
496
+ readonly severity: z.ZodEnum<{
497
+ error: "error";
498
+ info: "info";
499
+ warning: "warning";
500
+ }>;
501
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
502
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
503
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
504
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
505
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
506
+ excluded: "excluded";
507
+ fixed: "fixed";
508
+ removed: "removed";
509
+ unmonitored: "unmonitored";
510
+ }>>;
511
+ }, z.core.$strip>>;
512
+ total: z.ZodNumber;
513
+ pagination: z.ZodObject<{
514
+ limit: z.ZodNumber;
515
+ offset: z.ZodNumber;
516
+ hasMore: z.ZodBoolean;
517
+ }, z.core.$strict>;
518
+ }, z.core.$strict>;
519
+ readonly performance: z.ZodObject<{
520
+ lighthouse: z.ZodNullable<z.ZodObject<{
521
+ readonly scanId: z.ZodString;
522
+ readonly strategy: z.ZodEnum<{
523
+ desktop: "desktop";
524
+ mobile: "mobile";
525
+ }>;
526
+ readonly completedAt: z.ZodNullable<z.ZodString>;
527
+ readonly performance: z.ZodNullable<z.ZodNumber>;
528
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
529
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
530
+ readonly seo: z.ZodNullable<z.ZodNumber>;
531
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
532
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
533
+ readonly cls: z.ZodNullable<z.ZodNumber>;
534
+ }, z.core.$strip>>;
535
+ }, z.core.$strict>;
536
+ readonly search: z.ZodObject<{
537
+ keywords: z.ZodArray<z.ZodObject<{
538
+ readonly keyword: z.ZodString;
539
+ readonly volume: z.ZodNullable<z.ZodNumber>;
540
+ readonly position: z.ZodNullable<z.ZodNumber>;
541
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
542
+ }, z.core.$strip>>;
543
+ }, z.core.$strict>;
544
+ }, z.core.$strip>;
545
+ meta: z.ZodObject<{
546
+ requestId: z.ZodString;
547
+ version: z.ZodLiteral<"1.0">;
548
+ }, z.core.$strict>;
549
+ }, z.core.$strip>, z.ZodObject<{
550
+ data: z.ZodObject<{
551
+ readonly page: z.ZodObject<{
552
+ url: z.ZodString;
553
+ path: z.ZodString;
554
+ }, z.core.$loose>;
555
+ readonly observations: z.ZodObject<{
556
+ rows: z.ZodArray<z.ZodObject<{
557
+ readonly url: z.ZodString;
558
+ readonly path: z.ZodString;
559
+ readonly pathWithQuery: z.ZodString;
560
+ readonly source: z.ZodString;
561
+ readonly issueType: z.ZodString;
562
+ readonly severity: z.ZodEnum<{
563
+ error: "error";
564
+ info: "info";
565
+ warning: "warning";
566
+ }>;
567
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
568
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
569
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
570
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
571
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
572
+ excluded: "excluded";
573
+ fixed: "fixed";
574
+ removed: "removed";
575
+ unmonitored: "unmonitored";
576
+ }>>;
577
+ }, z.core.$strip>>;
578
+ total: z.ZodNumber;
579
+ pagination: z.ZodObject<{
580
+ limit: z.ZodNumber;
581
+ offset: z.ZodNumber;
582
+ hasMore: z.ZodBoolean;
583
+ }, z.core.$loose>;
584
+ }, z.core.$loose>;
585
+ readonly performance: z.ZodObject<{
586
+ lighthouse: z.ZodNullable<z.ZodObject<{
587
+ readonly scanId: z.ZodString;
588
+ readonly strategy: z.ZodEnum<{
589
+ desktop: "desktop";
590
+ mobile: "mobile";
591
+ }>;
592
+ readonly completedAt: z.ZodNullable<z.ZodString>;
593
+ readonly performance: z.ZodNullable<z.ZodNumber>;
594
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
595
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
596
+ readonly seo: z.ZodNullable<z.ZodNumber>;
597
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
598
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
599
+ readonly cls: z.ZodNullable<z.ZodNumber>;
600
+ }, z.core.$strip>>;
601
+ }, z.core.$loose>;
602
+ readonly search: z.ZodObject<{
603
+ keywords: z.ZodArray<z.ZodObject<{
604
+ readonly keyword: z.ZodString;
605
+ readonly volume: z.ZodNullable<z.ZodNumber>;
606
+ readonly position: z.ZodNullable<z.ZodNumber>;
607
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
608
+ }, z.core.$strip>>;
609
+ }, z.core.$loose>;
610
+ }, z.core.$strip>;
611
+ meta: z.ZodObject<{
612
+ requestId: z.ZodString;
613
+ version: z.ZodLiteral<"1.0">;
614
+ }, z.core.$loose>;
615
+ }, z.core.$strip>>;
616
+ };
617
+ readonly errors: readonly ["invalid_request", "unauthorized", "auth_expired", "forbidden", "not_found", "rate_limited", "contract_violation", "internal_error"];
618
+ readonly errorResponse: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
619
+ readonly error: z.ZodObject<{
620
+ code: z.ZodEnum<{
621
+ auth_expired: "auth_expired";
622
+ conflict: "conflict";
623
+ contract_violation: "contract_violation";
624
+ entitlement_required: "entitlement_required";
625
+ forbidden: "forbidden";
626
+ internal_error: "internal_error";
627
+ invalid_request: "invalid_request";
628
+ not_found: "not_found";
629
+ provider_unavailable: "provider_unavailable";
630
+ quota_exhausted: "quota_exhausted";
631
+ rate_limited: "rate_limited";
632
+ site_ambiguous: "site_ambiguous";
633
+ stale_evidence: "stale_evidence";
634
+ unauthorized: "unauthorized";
635
+ }>;
636
+ message: z.ZodString;
637
+ requestId: z.ZodString;
638
+ retryable: z.ZodBoolean;
639
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
640
+ }, z.core.$strict>;
641
+ }, z.core.$strip>, z.ZodObject<{
642
+ readonly error: z.ZodObject<{
643
+ code: z.ZodEnum<{
644
+ auth_expired: "auth_expired";
645
+ conflict: "conflict";
646
+ contract_violation: "contract_violation";
647
+ entitlement_required: "entitlement_required";
648
+ forbidden: "forbidden";
649
+ internal_error: "internal_error";
650
+ invalid_request: "invalid_request";
651
+ not_found: "not_found";
652
+ provider_unavailable: "provider_unavailable";
653
+ quota_exhausted: "quota_exhausted";
654
+ rate_limited: "rate_limited";
655
+ site_ambiguous: "site_ambiguous";
656
+ stale_evidence: "stale_evidence";
657
+ unauthorized: "unauthorized";
658
+ }>;
659
+ message: z.ZodString;
660
+ requestId: z.ZodString;
661
+ retryable: z.ZodBoolean;
662
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
663
+ }, z.core.$loose>;
664
+ }, z.core.$strip>>;
665
+ readonly resources: {
666
+ readonly reads: readonly [{
667
+ readonly type: 'site.page';
668
+ readonly idFrom: 'params.siteId';
669
+ }];
670
+ readonly changes: readonly [];
671
+ };
672
+ readonly policy: {
673
+ readonly rate: {
674
+ readonly name: 'public-v1-fixed-window';
675
+ readonly limit: 50;
676
+ readonly windowSeconds: 60;
677
+ };
678
+ readonly idempotency: {
679
+ readonly _tag: 'none';
680
+ };
681
+ readonly entitlement: null;
682
+ readonly meter: null;
683
+ };
684
+ readonly lifecycle: {
685
+ readonly introduced: '1.0.0';
686
+ };
687
+ readonly docs: {
688
+ readonly summary: 'Inspect a Page';
689
+ readonly description: 'Returns the current stored crawl, indexing, Lighthouse, and tracked ranking observations for one Page on the Site origin.';
690
+ readonly tags: readonly ["Pages"];
691
+ readonly examples: readonly [{
692
+ readonly request: {
693
+ readonly params: {
694
+ readonly siteId: 'site_01JXYZ';
695
+ };
696
+ readonly query: {
697
+ readonly url: 'https://example.com/guide';
698
+ readonly includeResolved: '0';
699
+ readonly limit: 100;
700
+ readonly offset: 0;
701
+ };
702
+ };
703
+ readonly response: {
704
+ readonly status: 200;
705
+ readonly body: {
706
+ readonly data: {
707
+ readonly page: {
708
+ readonly url: 'https://example.com/guide';
709
+ readonly path: '/guide';
710
+ };
711
+ readonly observations: {
712
+ readonly rows: readonly [];
713
+ readonly total: 0;
714
+ readonly pagination: {
715
+ readonly limit: 100;
716
+ readonly offset: 0;
717
+ readonly hasMore: false;
718
+ };
719
+ };
720
+ readonly performance: {
721
+ readonly lighthouse: null;
722
+ };
723
+ readonly search: {
724
+ readonly keywords: readonly [];
725
+ };
726
+ };
727
+ readonly meta: {
728
+ readonly requestId: 'req_01JXYZ';
729
+ readonly version: '1.0';
730
+ };
731
+ };
732
+ };
733
+ }];
734
+ };
735
+ };
736
+ export declare const pageScanOperation: {
737
+ readonly id: 'page.scan';
738
+ readonly method: 'POST';
739
+ readonly path: '/api/v1/sites/{siteId}/pages/scan';
740
+ readonly visibility: 'public';
741
+ readonly semantics: {
742
+ readonly kind: 'mutation';
743
+ readonly sideEffects: 'state';
744
+ readonly retry: 'never';
745
+ readonly readConsistency: null;
746
+ };
747
+ readonly auth: {
748
+ readonly credentials: readonly ["session", "api_token"];
749
+ readonly scopes: readonly ["page:write"];
750
+ readonly minimumRole: 'member';
751
+ readonly ownership: 'site';
752
+ };
753
+ readonly request: {
754
+ readonly params: z.ZodObject<{
755
+ siteId: z.ZodString;
756
+ }, z.core.$strict>;
757
+ readonly query: null;
758
+ readonly headers: null;
759
+ readonly body: z.ZodObject<{
760
+ url: z.ZodString;
761
+ }, z.core.$strict>;
762
+ };
763
+ readonly responses: {
764
+ readonly 202: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
765
+ data: z.ZodObject<{
766
+ readonly pageId: z.ZodString;
767
+ readonly pageCreated: z.ZodBoolean;
768
+ readonly scanId: z.ZodString;
769
+ readonly status: z.ZodLiteral<"running">;
770
+ readonly scans: z.ZodArray<z.ZodObject<{
771
+ readonly scanId: z.ZodString;
772
+ readonly pageId: z.ZodString;
773
+ readonly url: z.ZodString;
774
+ readonly strategy: z.ZodEnum<{
775
+ desktop: "desktop";
776
+ mobile: "mobile";
777
+ }>;
778
+ }, z.core.$strip>>;
779
+ }, z.core.$strip>;
780
+ meta: z.ZodObject<{
781
+ requestId: z.ZodString;
782
+ version: z.ZodLiteral<"1.0">;
783
+ }, z.core.$strict>;
784
+ }, z.core.$strip>, z.ZodObject<{
785
+ data: z.ZodObject<{
786
+ readonly pageId: z.ZodString;
787
+ readonly pageCreated: z.ZodBoolean;
788
+ readonly scanId: z.ZodString;
789
+ readonly status: z.ZodLiteral<"running">;
790
+ readonly scans: z.ZodArray<z.ZodObject<{
791
+ readonly scanId: z.ZodString;
792
+ readonly pageId: z.ZodString;
793
+ readonly url: z.ZodString;
794
+ readonly strategy: z.ZodEnum<{
795
+ desktop: "desktop";
796
+ mobile: "mobile";
797
+ }>;
798
+ }, z.core.$strip>>;
799
+ }, z.core.$strip>;
800
+ meta: z.ZodObject<{
801
+ requestId: z.ZodString;
802
+ version: z.ZodLiteral<"1.0">;
803
+ }, z.core.$loose>;
804
+ }, z.core.$strip>>;
805
+ };
806
+ readonly errors: readonly ["invalid_request", "unauthorized", "auth_expired", "forbidden", "entitlement_required", "quota_exhausted", "conflict", "rate_limited", "contract_violation", "internal_error"];
807
+ readonly errorResponse: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
808
+ readonly error: z.ZodObject<{
809
+ code: z.ZodEnum<{
810
+ auth_expired: "auth_expired";
811
+ conflict: "conflict";
812
+ contract_violation: "contract_violation";
813
+ entitlement_required: "entitlement_required";
814
+ forbidden: "forbidden";
815
+ internal_error: "internal_error";
816
+ invalid_request: "invalid_request";
817
+ not_found: "not_found";
818
+ provider_unavailable: "provider_unavailable";
819
+ quota_exhausted: "quota_exhausted";
820
+ rate_limited: "rate_limited";
821
+ site_ambiguous: "site_ambiguous";
822
+ stale_evidence: "stale_evidence";
823
+ unauthorized: "unauthorized";
824
+ }>;
825
+ message: z.ZodString;
826
+ requestId: z.ZodString;
827
+ retryable: z.ZodBoolean;
828
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
829
+ }, z.core.$strict>;
830
+ }, z.core.$strip>, z.ZodObject<{
831
+ readonly error: z.ZodObject<{
832
+ code: z.ZodEnum<{
833
+ auth_expired: "auth_expired";
834
+ conflict: "conflict";
835
+ contract_violation: "contract_violation";
836
+ entitlement_required: "entitlement_required";
837
+ forbidden: "forbidden";
838
+ internal_error: "internal_error";
839
+ invalid_request: "invalid_request";
840
+ not_found: "not_found";
841
+ provider_unavailable: "provider_unavailable";
842
+ quota_exhausted: "quota_exhausted";
843
+ rate_limited: "rate_limited";
844
+ site_ambiguous: "site_ambiguous";
845
+ stale_evidence: "stale_evidence";
846
+ unauthorized: "unauthorized";
847
+ }>;
848
+ message: z.ZodString;
849
+ requestId: z.ZodString;
850
+ retryable: z.ZodBoolean;
851
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
852
+ }, z.core.$loose>;
853
+ }, z.core.$strip>>;
854
+ readonly resources: {
855
+ readonly reads: readonly [{
856
+ readonly type: 'site.page';
857
+ readonly idFrom: 'params.siteId';
858
+ }];
859
+ readonly changes: readonly [{
860
+ readonly type: 'site.page';
861
+ readonly idFrom: 'params.siteId';
862
+ }];
863
+ };
864
+ readonly policy: {
865
+ readonly rate: {
866
+ readonly name: 'public-v1-fixed-window';
867
+ readonly limit: 50;
868
+ readonly windowSeconds: 60;
869
+ };
870
+ readonly idempotency: {
871
+ readonly _tag: 'none';
872
+ };
873
+ readonly entitlement: 'growth';
874
+ readonly meter: {
875
+ readonly key: 'lighthouse';
876
+ readonly units: 2;
877
+ readonly charge: 'live-only';
878
+ };
879
+ };
880
+ readonly lifecycle: {
881
+ readonly introduced: '1.0.0';
882
+ };
883
+ readonly docs: {
884
+ readonly summary: 'Scan a Page';
885
+ readonly description: 'Ensures one Page is monitored and starts its mobile and desktop Lighthouse scans. This mutation is deliberately non-retryable because it can create monitoring and scan records.';
886
+ readonly tags: readonly ["Pages"];
887
+ readonly examples: readonly [{
888
+ readonly request: {
889
+ readonly params: {
890
+ readonly siteId: 'site_01JXYZ';
891
+ };
892
+ readonly body: {
893
+ readonly url: 'https://example.com/guide';
894
+ };
895
+ };
896
+ readonly response: {
897
+ readonly status: 202;
898
+ readonly body: {
899
+ readonly data: {
900
+ readonly pageId: 'page_01JXYZ';
901
+ readonly pageCreated: true;
902
+ readonly scanId: 'scan_mobile_01JXYZ';
903
+ readonly status: 'running';
904
+ readonly scans: readonly [{
905
+ readonly scanId: 'scan_mobile_01JXYZ';
906
+ readonly pageId: 'page_01JXYZ';
907
+ readonly url: 'https://example.com/guide';
908
+ readonly strategy: 'mobile';
909
+ }, {
910
+ readonly scanId: 'scan_desktop_01JXYZ';
911
+ readonly pageId: 'page_01JXYZ';
912
+ readonly url: 'https://example.com/guide';
913
+ readonly strategy: 'desktop';
914
+ }];
915
+ };
916
+ readonly meta: {
917
+ readonly requestId: 'req_01JXYZ';
918
+ readonly version: '1.0';
919
+ };
920
+ };
921
+ };
922
+ }];
923
+ };
924
+ };
925
+ export declare const pagesV1Registry: import("./core.js").PublicV1Registry<{
926
+ readonly inspect: {
927
+ readonly id: 'page.inspect';
928
+ readonly method: 'GET';
929
+ readonly path: '/api/v1/sites/{siteId}/pages/inspect';
930
+ readonly visibility: 'public';
931
+ readonly semantics: {
932
+ readonly kind: 'query';
933
+ readonly sideEffects: 'none';
934
+ readonly retry: 'idempotent';
935
+ readonly readConsistency: 'primary';
936
+ };
937
+ readonly auth: {
938
+ readonly credentials: readonly ["session", "api_token"];
939
+ readonly scopes: readonly ["page:read"];
940
+ readonly minimumRole: 'viewer';
941
+ readonly ownership: 'site';
942
+ };
943
+ readonly request: {
944
+ readonly params: z.ZodObject<{
945
+ siteId: z.ZodString;
946
+ }, z.core.$strict>;
947
+ readonly query: z.ZodObject<{
948
+ url: z.ZodString;
949
+ includeResolved: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
950
+ 0: "0";
951
+ 1: "1";
952
+ false: "false";
953
+ true: "true";
954
+ }>>, z.ZodTransform<boolean, "0" | "1" | "false" | "true">>;
955
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
956
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
957
+ }, z.core.$strict>;
958
+ readonly headers: null;
959
+ readonly body: null;
960
+ };
961
+ readonly responses: {
962
+ readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
963
+ data: z.ZodObject<{
964
+ readonly page: z.ZodObject<{
965
+ url: z.ZodString;
966
+ path: z.ZodString;
967
+ }, z.core.$strict>;
968
+ readonly observations: z.ZodObject<{
969
+ rows: z.ZodArray<z.ZodObject<{
970
+ readonly url: z.ZodString;
971
+ readonly path: z.ZodString;
972
+ readonly pathWithQuery: z.ZodString;
973
+ readonly source: z.ZodString;
974
+ readonly issueType: z.ZodString;
975
+ readonly severity: z.ZodEnum<{
976
+ error: "error";
977
+ info: "info";
978
+ warning: "warning";
979
+ }>;
980
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
981
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
982
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
983
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
984
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
985
+ excluded: "excluded";
986
+ fixed: "fixed";
987
+ removed: "removed";
988
+ unmonitored: "unmonitored";
989
+ }>>;
990
+ }, z.core.$strip>>;
991
+ total: z.ZodNumber;
992
+ pagination: z.ZodObject<{
993
+ limit: z.ZodNumber;
994
+ offset: z.ZodNumber;
995
+ hasMore: z.ZodBoolean;
996
+ }, z.core.$strict>;
997
+ }, z.core.$strict>;
998
+ readonly performance: z.ZodObject<{
999
+ lighthouse: z.ZodNullable<z.ZodObject<{
1000
+ readonly scanId: z.ZodString;
1001
+ readonly strategy: z.ZodEnum<{
1002
+ desktop: "desktop";
1003
+ mobile: "mobile";
1004
+ }>;
1005
+ readonly completedAt: z.ZodNullable<z.ZodString>;
1006
+ readonly performance: z.ZodNullable<z.ZodNumber>;
1007
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
1008
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
1009
+ readonly seo: z.ZodNullable<z.ZodNumber>;
1010
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
1011
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
1012
+ readonly cls: z.ZodNullable<z.ZodNumber>;
1013
+ }, z.core.$strip>>;
1014
+ }, z.core.$strict>;
1015
+ readonly search: z.ZodObject<{
1016
+ keywords: z.ZodArray<z.ZodObject<{
1017
+ readonly keyword: z.ZodString;
1018
+ readonly volume: z.ZodNullable<z.ZodNumber>;
1019
+ readonly position: z.ZodNullable<z.ZodNumber>;
1020
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
1021
+ }, z.core.$strip>>;
1022
+ }, z.core.$strict>;
1023
+ }, z.core.$strip>;
1024
+ meta: z.ZodObject<{
1025
+ requestId: z.ZodString;
1026
+ version: z.ZodLiteral<"1.0">;
1027
+ }, z.core.$strict>;
1028
+ }, z.core.$strip>, z.ZodObject<{
1029
+ data: z.ZodObject<{
1030
+ readonly page: z.ZodObject<{
1031
+ url: z.ZodString;
1032
+ path: z.ZodString;
1033
+ }, z.core.$loose>;
1034
+ readonly observations: z.ZodObject<{
1035
+ rows: z.ZodArray<z.ZodObject<{
1036
+ readonly url: z.ZodString;
1037
+ readonly path: z.ZodString;
1038
+ readonly pathWithQuery: z.ZodString;
1039
+ readonly source: z.ZodString;
1040
+ readonly issueType: z.ZodString;
1041
+ readonly severity: z.ZodEnum<{
1042
+ error: "error";
1043
+ info: "info";
1044
+ warning: "warning";
1045
+ }>;
1046
+ readonly detail: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1047
+ readonly firstSeenAt: z.ZodNullable<z.ZodString>;
1048
+ readonly lastSeenAt: z.ZodNullable<z.ZodString>;
1049
+ readonly resolvedAt: z.ZodNullable<z.ZodString>;
1050
+ readonly resolution: z.ZodNullable<z.ZodEnum<{
1051
+ excluded: "excluded";
1052
+ fixed: "fixed";
1053
+ removed: "removed";
1054
+ unmonitored: "unmonitored";
1055
+ }>>;
1056
+ }, z.core.$strip>>;
1057
+ total: z.ZodNumber;
1058
+ pagination: z.ZodObject<{
1059
+ limit: z.ZodNumber;
1060
+ offset: z.ZodNumber;
1061
+ hasMore: z.ZodBoolean;
1062
+ }, z.core.$loose>;
1063
+ }, z.core.$loose>;
1064
+ readonly performance: z.ZodObject<{
1065
+ lighthouse: z.ZodNullable<z.ZodObject<{
1066
+ readonly scanId: z.ZodString;
1067
+ readonly strategy: z.ZodEnum<{
1068
+ desktop: "desktop";
1069
+ mobile: "mobile";
1070
+ }>;
1071
+ readonly completedAt: z.ZodNullable<z.ZodString>;
1072
+ readonly performance: z.ZodNullable<z.ZodNumber>;
1073
+ readonly accessibility: z.ZodNullable<z.ZodNumber>;
1074
+ readonly bestPractices: z.ZodNullable<z.ZodNumber>;
1075
+ readonly seo: z.ZodNullable<z.ZodNumber>;
1076
+ readonly lcp: z.ZodNullable<z.ZodNumber>;
1077
+ readonly tbt: z.ZodNullable<z.ZodNumber>;
1078
+ readonly cls: z.ZodNullable<z.ZodNumber>;
1079
+ }, z.core.$strip>>;
1080
+ }, z.core.$loose>;
1081
+ readonly search: z.ZodObject<{
1082
+ keywords: z.ZodArray<z.ZodObject<{
1083
+ readonly keyword: z.ZodString;
1084
+ readonly volume: z.ZodNullable<z.ZodNumber>;
1085
+ readonly position: z.ZodNullable<z.ZodNumber>;
1086
+ readonly checkedAt: z.ZodNullable<z.ZodString>;
1087
+ }, z.core.$strip>>;
1088
+ }, z.core.$loose>;
1089
+ }, z.core.$strip>;
1090
+ meta: z.ZodObject<{
1091
+ requestId: z.ZodString;
1092
+ version: z.ZodLiteral<"1.0">;
1093
+ }, z.core.$loose>;
1094
+ }, z.core.$strip>>;
1095
+ };
1096
+ readonly errors: readonly ["invalid_request", "unauthorized", "auth_expired", "forbidden", "not_found", "rate_limited", "contract_violation", "internal_error"];
1097
+ readonly errorResponse: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1098
+ readonly error: z.ZodObject<{
1099
+ code: z.ZodEnum<{
1100
+ auth_expired: "auth_expired";
1101
+ conflict: "conflict";
1102
+ contract_violation: "contract_violation";
1103
+ entitlement_required: "entitlement_required";
1104
+ forbidden: "forbidden";
1105
+ internal_error: "internal_error";
1106
+ invalid_request: "invalid_request";
1107
+ not_found: "not_found";
1108
+ provider_unavailable: "provider_unavailable";
1109
+ quota_exhausted: "quota_exhausted";
1110
+ rate_limited: "rate_limited";
1111
+ site_ambiguous: "site_ambiguous";
1112
+ stale_evidence: "stale_evidence";
1113
+ unauthorized: "unauthorized";
1114
+ }>;
1115
+ message: z.ZodString;
1116
+ requestId: z.ZodString;
1117
+ retryable: z.ZodBoolean;
1118
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1119
+ }, z.core.$strict>;
1120
+ }, z.core.$strip>, z.ZodObject<{
1121
+ readonly error: z.ZodObject<{
1122
+ code: z.ZodEnum<{
1123
+ auth_expired: "auth_expired";
1124
+ conflict: "conflict";
1125
+ contract_violation: "contract_violation";
1126
+ entitlement_required: "entitlement_required";
1127
+ forbidden: "forbidden";
1128
+ internal_error: "internal_error";
1129
+ invalid_request: "invalid_request";
1130
+ not_found: "not_found";
1131
+ provider_unavailable: "provider_unavailable";
1132
+ quota_exhausted: "quota_exhausted";
1133
+ rate_limited: "rate_limited";
1134
+ site_ambiguous: "site_ambiguous";
1135
+ stale_evidence: "stale_evidence";
1136
+ unauthorized: "unauthorized";
1137
+ }>;
1138
+ message: z.ZodString;
1139
+ requestId: z.ZodString;
1140
+ retryable: z.ZodBoolean;
1141
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1142
+ }, z.core.$loose>;
1143
+ }, z.core.$strip>>;
1144
+ readonly resources: {
1145
+ readonly reads: readonly [{
1146
+ readonly type: 'site.page';
1147
+ readonly idFrom: 'params.siteId';
1148
+ }];
1149
+ readonly changes: readonly [];
1150
+ };
1151
+ readonly policy: {
1152
+ readonly rate: {
1153
+ readonly name: 'public-v1-fixed-window';
1154
+ readonly limit: 50;
1155
+ readonly windowSeconds: 60;
1156
+ };
1157
+ readonly idempotency: {
1158
+ readonly _tag: 'none';
1159
+ };
1160
+ readonly entitlement: null;
1161
+ readonly meter: null;
1162
+ };
1163
+ readonly lifecycle: {
1164
+ readonly introduced: '1.0.0';
1165
+ };
1166
+ readonly docs: {
1167
+ readonly summary: 'Inspect a Page';
1168
+ readonly description: 'Returns the current stored crawl, indexing, Lighthouse, and tracked ranking observations for one Page on the Site origin.';
1169
+ readonly tags: readonly ["Pages"];
1170
+ readonly examples: readonly [{
1171
+ readonly request: {
1172
+ readonly params: {
1173
+ readonly siteId: 'site_01JXYZ';
1174
+ };
1175
+ readonly query: {
1176
+ readonly url: 'https://example.com/guide';
1177
+ readonly includeResolved: '0';
1178
+ readonly limit: 100;
1179
+ readonly offset: 0;
1180
+ };
1181
+ };
1182
+ readonly response: {
1183
+ readonly status: 200;
1184
+ readonly body: {
1185
+ readonly data: {
1186
+ readonly page: {
1187
+ readonly url: 'https://example.com/guide';
1188
+ readonly path: '/guide';
1189
+ };
1190
+ readonly observations: {
1191
+ readonly rows: readonly [];
1192
+ readonly total: 0;
1193
+ readonly pagination: {
1194
+ readonly limit: 100;
1195
+ readonly offset: 0;
1196
+ readonly hasMore: false;
1197
+ };
1198
+ };
1199
+ readonly performance: {
1200
+ readonly lighthouse: null;
1201
+ };
1202
+ readonly search: {
1203
+ readonly keywords: readonly [];
1204
+ };
1205
+ };
1206
+ readonly meta: {
1207
+ readonly requestId: 'req_01JXYZ';
1208
+ readonly version: '1.0';
1209
+ };
1210
+ };
1211
+ };
1212
+ }];
1213
+ };
1214
+ };
1215
+ readonly scan: {
1216
+ readonly id: 'page.scan';
1217
+ readonly method: 'POST';
1218
+ readonly path: '/api/v1/sites/{siteId}/pages/scan';
1219
+ readonly visibility: 'public';
1220
+ readonly semantics: {
1221
+ readonly kind: 'mutation';
1222
+ readonly sideEffects: 'state';
1223
+ readonly retry: 'never';
1224
+ readonly readConsistency: null;
1225
+ };
1226
+ readonly auth: {
1227
+ readonly credentials: readonly ["session", "api_token"];
1228
+ readonly scopes: readonly ["page:write"];
1229
+ readonly minimumRole: 'member';
1230
+ readonly ownership: 'site';
1231
+ };
1232
+ readonly request: {
1233
+ readonly params: z.ZodObject<{
1234
+ siteId: z.ZodString;
1235
+ }, z.core.$strict>;
1236
+ readonly query: null;
1237
+ readonly headers: null;
1238
+ readonly body: z.ZodObject<{
1239
+ url: z.ZodString;
1240
+ }, z.core.$strict>;
1241
+ };
1242
+ readonly responses: {
1243
+ readonly 202: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1244
+ data: z.ZodObject<{
1245
+ readonly pageId: z.ZodString;
1246
+ readonly pageCreated: z.ZodBoolean;
1247
+ readonly scanId: z.ZodString;
1248
+ readonly status: z.ZodLiteral<"running">;
1249
+ readonly scans: z.ZodArray<z.ZodObject<{
1250
+ readonly scanId: z.ZodString;
1251
+ readonly pageId: z.ZodString;
1252
+ readonly url: z.ZodString;
1253
+ readonly strategy: z.ZodEnum<{
1254
+ desktop: "desktop";
1255
+ mobile: "mobile";
1256
+ }>;
1257
+ }, z.core.$strip>>;
1258
+ }, z.core.$strip>;
1259
+ meta: z.ZodObject<{
1260
+ requestId: z.ZodString;
1261
+ version: z.ZodLiteral<"1.0">;
1262
+ }, z.core.$strict>;
1263
+ }, z.core.$strip>, z.ZodObject<{
1264
+ data: z.ZodObject<{
1265
+ readonly pageId: z.ZodString;
1266
+ readonly pageCreated: z.ZodBoolean;
1267
+ readonly scanId: z.ZodString;
1268
+ readonly status: z.ZodLiteral<"running">;
1269
+ readonly scans: z.ZodArray<z.ZodObject<{
1270
+ readonly scanId: z.ZodString;
1271
+ readonly pageId: z.ZodString;
1272
+ readonly url: z.ZodString;
1273
+ readonly strategy: z.ZodEnum<{
1274
+ desktop: "desktop";
1275
+ mobile: "mobile";
1276
+ }>;
1277
+ }, z.core.$strip>>;
1278
+ }, z.core.$strip>;
1279
+ meta: z.ZodObject<{
1280
+ requestId: z.ZodString;
1281
+ version: z.ZodLiteral<"1.0">;
1282
+ }, z.core.$loose>;
1283
+ }, z.core.$strip>>;
1284
+ };
1285
+ readonly errors: readonly ["invalid_request", "unauthorized", "auth_expired", "forbidden", "entitlement_required", "quota_exhausted", "conflict", "rate_limited", "contract_violation", "internal_error"];
1286
+ readonly errorResponse: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1287
+ readonly error: z.ZodObject<{
1288
+ code: z.ZodEnum<{
1289
+ auth_expired: "auth_expired";
1290
+ conflict: "conflict";
1291
+ contract_violation: "contract_violation";
1292
+ entitlement_required: "entitlement_required";
1293
+ forbidden: "forbidden";
1294
+ internal_error: "internal_error";
1295
+ invalid_request: "invalid_request";
1296
+ not_found: "not_found";
1297
+ provider_unavailable: "provider_unavailable";
1298
+ quota_exhausted: "quota_exhausted";
1299
+ rate_limited: "rate_limited";
1300
+ site_ambiguous: "site_ambiguous";
1301
+ stale_evidence: "stale_evidence";
1302
+ unauthorized: "unauthorized";
1303
+ }>;
1304
+ message: z.ZodString;
1305
+ requestId: z.ZodString;
1306
+ retryable: z.ZodBoolean;
1307
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1308
+ }, z.core.$strict>;
1309
+ }, z.core.$strip>, z.ZodObject<{
1310
+ readonly error: z.ZodObject<{
1311
+ code: z.ZodEnum<{
1312
+ auth_expired: "auth_expired";
1313
+ conflict: "conflict";
1314
+ contract_violation: "contract_violation";
1315
+ entitlement_required: "entitlement_required";
1316
+ forbidden: "forbidden";
1317
+ internal_error: "internal_error";
1318
+ invalid_request: "invalid_request";
1319
+ not_found: "not_found";
1320
+ provider_unavailable: "provider_unavailable";
1321
+ quota_exhausted: "quota_exhausted";
1322
+ rate_limited: "rate_limited";
1323
+ site_ambiguous: "site_ambiguous";
1324
+ stale_evidence: "stale_evidence";
1325
+ unauthorized: "unauthorized";
1326
+ }>;
1327
+ message: z.ZodString;
1328
+ requestId: z.ZodString;
1329
+ retryable: z.ZodBoolean;
1330
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1331
+ }, z.core.$loose>;
1332
+ }, z.core.$strip>>;
1333
+ readonly resources: {
1334
+ readonly reads: readonly [{
1335
+ readonly type: 'site.page';
1336
+ readonly idFrom: 'params.siteId';
1337
+ }];
1338
+ readonly changes: readonly [{
1339
+ readonly type: 'site.page';
1340
+ readonly idFrom: 'params.siteId';
1341
+ }];
1342
+ };
1343
+ readonly policy: {
1344
+ readonly rate: {
1345
+ readonly name: 'public-v1-fixed-window';
1346
+ readonly limit: 50;
1347
+ readonly windowSeconds: 60;
1348
+ };
1349
+ readonly idempotency: {
1350
+ readonly _tag: 'none';
1351
+ };
1352
+ readonly entitlement: 'growth';
1353
+ readonly meter: {
1354
+ readonly key: 'lighthouse';
1355
+ readonly units: 2;
1356
+ readonly charge: 'live-only';
1357
+ };
1358
+ };
1359
+ readonly lifecycle: {
1360
+ readonly introduced: '1.0.0';
1361
+ };
1362
+ readonly docs: {
1363
+ readonly summary: 'Scan a Page';
1364
+ readonly description: 'Ensures one Page is monitored and starts its mobile and desktop Lighthouse scans. This mutation is deliberately non-retryable because it can create monitoring and scan records.';
1365
+ readonly tags: readonly ["Pages"];
1366
+ readonly examples: readonly [{
1367
+ readonly request: {
1368
+ readonly params: {
1369
+ readonly siteId: 'site_01JXYZ';
1370
+ };
1371
+ readonly body: {
1372
+ readonly url: 'https://example.com/guide';
1373
+ };
1374
+ };
1375
+ readonly response: {
1376
+ readonly status: 202;
1377
+ readonly body: {
1378
+ readonly data: {
1379
+ readonly pageId: 'page_01JXYZ';
1380
+ readonly pageCreated: true;
1381
+ readonly scanId: 'scan_mobile_01JXYZ';
1382
+ readonly status: 'running';
1383
+ readonly scans: readonly [{
1384
+ readonly scanId: 'scan_mobile_01JXYZ';
1385
+ readonly pageId: 'page_01JXYZ';
1386
+ readonly url: 'https://example.com/guide';
1387
+ readonly strategy: 'mobile';
1388
+ }, {
1389
+ readonly scanId: 'scan_desktop_01JXYZ';
1390
+ readonly pageId: 'page_01JXYZ';
1391
+ readonly url: 'https://example.com/guide';
1392
+ readonly strategy: 'desktop';
1393
+ }];
1394
+ };
1395
+ readonly meta: {
1396
+ readonly requestId: 'req_01JXYZ';
1397
+ readonly version: '1.0';
1398
+ };
1399
+ };
1400
+ };
1401
+ }];
1402
+ };
1403
+ };
1404
+ }>;