@nuxtseo/protocol 0.1.4 → 0.2.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.
package/dist/v1/gsc.d.ts CHANGED
@@ -74,7 +74,8 @@ export declare const searchAnalyticsQuerySchema: z.ZodObject<{
74
74
  export declare const searchAnalyticsDataSchema: {
75
75
  producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
76
76
  readonly site: z.ZodString;
77
- readonly type: z.ZodLiteral<"pages">;
77
+ readonly view: z.ZodLiteral<"pages">;
78
+ readonly type: z.ZodDefault<z.ZodLiteral<"pages">>;
78
79
  readonly period: z.ZodEnum<{
79
80
  "12m": "12m";
80
81
  "28d": "28d";
@@ -108,7 +109,8 @@ export declare const searchAnalyticsDataSchema: {
108
109
  }, z.core.$strip>>;
109
110
  }, z.core.$strip>, z.ZodObject<{
110
111
  readonly site: z.ZodString;
111
- readonly type: z.ZodLiteral<"keywords">;
112
+ readonly view: z.ZodLiteral<"keywords">;
113
+ readonly type: z.ZodDefault<z.ZodLiteral<"keywords">>;
112
114
  readonly period: z.ZodEnum<{
113
115
  "12m": "12m";
114
116
  "28d": "28d";
@@ -142,7 +144,8 @@ export declare const searchAnalyticsDataSchema: {
142
144
  }, z.core.$strip>>;
143
145
  }, z.core.$strip>, z.ZodObject<{
144
146
  readonly site: z.ZodString;
145
- readonly type: z.ZodLiteral<"countries">;
147
+ readonly view: z.ZodLiteral<"countries">;
148
+ readonly type: z.ZodDefault<z.ZodLiteral<"countries">>;
146
149
  readonly period: z.ZodEnum<{
147
150
  "12m": "12m";
148
151
  "28d": "28d";
@@ -174,7 +177,8 @@ export declare const searchAnalyticsDataSchema: {
174
177
  }, z.core.$strip>>;
175
178
  }, z.core.$strip>, z.ZodObject<{
176
179
  readonly site: z.ZodString;
177
- readonly type: z.ZodLiteral<"devices">;
180
+ readonly view: z.ZodLiteral<"devices">;
181
+ readonly type: z.ZodDefault<z.ZodLiteral<"devices">>;
178
182
  readonly period: z.ZodEnum<{
179
183
  "12m": "12m";
180
184
  "28d": "28d";
@@ -204,7 +208,8 @@ export declare const searchAnalyticsDataSchema: {
204
208
  }, z.core.$strip>>;
205
209
  }, z.core.$strip>, z.ZodObject<{
206
210
  readonly site: z.ZodString;
207
- readonly type: z.ZodLiteral<"timeseries">;
211
+ readonly view: z.ZodLiteral<"timeseries">;
212
+ readonly type: z.ZodDefault<z.ZodLiteral<"timeseries">>;
208
213
  readonly period: z.ZodEnum<{
209
214
  "12m": "12m";
210
215
  "28d": "28d";
@@ -233,7 +238,8 @@ export declare const searchAnalyticsDataSchema: {
233
238
  }, z.core.$strip>>;
234
239
  }, z.core.$strip>, z.ZodObject<{
235
240
  readonly site: z.ZodString;
236
- readonly type: z.ZodLiteral<"page-detail">;
241
+ readonly view: z.ZodLiteral<"page-detail">;
242
+ readonly type: z.ZodDefault<z.ZodLiteral<"page-detail">>;
237
243
  readonly pageUrl: z.ZodString;
238
244
  readonly period: z.ZodEnum<{
239
245
  "12m": "12m";
@@ -259,7 +265,8 @@ export declare const searchAnalyticsDataSchema: {
259
265
  }, z.core.$strip>>;
260
266
  }, z.core.$strip>, z.ZodObject<{
261
267
  readonly site: z.ZodString;
262
- readonly type: z.ZodLiteral<"keyword-detail">;
268
+ readonly view: z.ZodLiteral<"keyword-detail">;
269
+ readonly type: z.ZodDefault<z.ZodLiteral<"keyword-detail">>;
263
270
  readonly keyword: z.ZodString;
264
271
  readonly period: z.ZodEnum<{
265
272
  "12m": "12m";
@@ -285,7 +292,8 @@ export declare const searchAnalyticsDataSchema: {
285
292
  }, z.core.$strip>>;
286
293
  }, z.core.$strip>, z.ZodObject<{
287
294
  readonly site: z.ZodString;
288
- readonly type: z.ZodLiteral<"analysis">;
295
+ readonly view: z.ZodLiteral<"analysis">;
296
+ readonly type: z.ZodDefault<z.ZodLiteral<"analysis">>;
289
297
  readonly preset: z.ZodEnum<{
290
298
  "striking-distance": "striking-distance";
291
299
  opportunity: "opportunity";
@@ -323,10 +331,402 @@ export declare const searchAnalyticsDataSchema: {
323
331
  readonly decayPct: z.ZodOptional<z.ZodNumber>;
324
332
  readonly missedClicks: z.ZodOptional<z.ZodNumber>;
325
333
  }, z.core.$strip>>;
326
- }, z.core.$strip>], "type">;
327
- client: z.ZodDiscriminatedUnion<[z.ZodObject<{
334
+ }, z.core.$strip>], "view">;
335
+ client: z.ZodType<{
336
+ site: string;
337
+ view: "countries";
338
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
339
+ total: number;
340
+ totals: {
341
+ clicks: number;
342
+ impressions: number;
343
+ ctr: number;
344
+ position: number;
345
+ } | null;
346
+ totalsScope: string;
347
+ representedTotals: {
348
+ clicks: number;
349
+ impressions: number;
350
+ };
351
+ representedTotalsScope: string;
352
+ rows: {
353
+ country: string;
354
+ clicks: number;
355
+ impressions: number;
356
+ ctr: number;
357
+ pos: number;
358
+ prevClicks?: number | undefined;
359
+ change: number | null;
360
+ }[];
361
+ } | {
362
+ site: string;
363
+ view: "devices";
364
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
365
+ total: number;
366
+ totals: {
367
+ clicks: number;
368
+ impressions: number;
369
+ ctr: number;
370
+ position: number;
371
+ } | null;
372
+ totalsScope: string;
373
+ representedTotals: {
374
+ clicks: number;
375
+ impressions: number;
376
+ };
377
+ representedTotalsScope: string;
378
+ rows: {
379
+ device: string;
380
+ clicks: number;
381
+ impressions: number;
382
+ ctr: number;
383
+ pos: number;
384
+ }[];
385
+ } | {
386
+ site: string;
387
+ view: "keywords";
388
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
389
+ total: number;
390
+ totals: {
391
+ clicks: number;
392
+ impressions: number;
393
+ ctr: number;
394
+ position: number;
395
+ } | null;
396
+ totalsScope: string;
397
+ representedTotals: {
398
+ clicks: number;
399
+ impressions: number;
400
+ };
401
+ representedTotalsScope: string;
402
+ rows: {
403
+ keyword: string;
404
+ clicks: number;
405
+ impressions: number;
406
+ ctr: number;
407
+ pos: number;
408
+ topPage: string | null;
409
+ prevClicks?: number | undefined;
410
+ prevPos?: number | undefined;
411
+ change: number | null;
412
+ }[];
413
+ } | {
414
+ site: string;
415
+ view: "pages";
416
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
417
+ total: number;
418
+ totals: {
419
+ clicks: number;
420
+ impressions: number;
421
+ ctr: number;
422
+ position: number;
423
+ } | null;
424
+ totalsScope: string;
425
+ representedTotals: {
426
+ clicks: number;
427
+ impressions: number;
428
+ };
429
+ representedTotalsScope: string;
430
+ rows: {
431
+ url: string;
432
+ clicks: number;
433
+ impressions: number;
434
+ ctr: number;
435
+ pos: number;
436
+ keyword: string | null;
437
+ prevClicks?: number | undefined;
438
+ prevPos?: number | undefined;
439
+ change: number | null;
440
+ }[];
441
+ } | {
442
+ site: string;
443
+ view: "timeseries";
444
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
445
+ totals: {
446
+ clicks: number;
447
+ impressions: number;
448
+ ctr: number;
449
+ position: number;
450
+ } | null;
451
+ prevTotals: {
452
+ clicks: number;
453
+ impressions: number;
454
+ ctr: number;
455
+ position: number;
456
+ } | null;
457
+ daily: {
458
+ date: string;
459
+ clicks: number;
460
+ impressions: number;
461
+ ctr: number;
462
+ pos: number;
463
+ }[];
464
+ } | {
465
+ site: string;
466
+ view: "page-detail";
467
+ pageUrl: string;
468
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
469
+ totals: {
470
+ clicks: number;
471
+ impressions: number;
472
+ ctr: number;
473
+ position: number;
474
+ } | null;
475
+ rows: {
476
+ keyword: string;
477
+ clicks: number;
478
+ impressions: number;
479
+ ctr: number;
480
+ pos: number;
481
+ prevClicks?: number | undefined;
482
+ prevPos?: number | undefined;
483
+ }[];
484
+ } | {
485
+ site: string;
486
+ view: "keyword-detail";
487
+ keyword: string;
488
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
489
+ totals: {
490
+ clicks: number;
491
+ impressions: number;
492
+ ctr: number;
493
+ position: number;
494
+ } | null;
495
+ rows: {
496
+ page: string;
497
+ clicks: number;
498
+ impressions: number;
499
+ ctr: number;
500
+ pos: number;
501
+ prevClicks?: number | undefined;
502
+ prevPos?: number | undefined;
503
+ }[];
504
+ } | {
505
+ site: string;
506
+ view: "analysis";
507
+ preset: "brand-only" | "decay" | "movers-declining" | "movers-rising" | "non-brand" | "opportunity" | "striking-distance" | "zero-click";
508
+ description: string;
509
+ criteria: Record<string, string | number | null>;
510
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
511
+ total: number;
512
+ summary: Record<string, string | number | boolean | null> | null;
513
+ rows: {
514
+ keyword: string;
515
+ clicks: number;
516
+ impressions: number;
517
+ ctr: number;
518
+ pos: number;
519
+ page?: string | undefined;
520
+ prevClicks?: number | undefined;
521
+ prevPos?: number | undefined;
522
+ potentialClicks?: number | undefined;
523
+ opportunityScore?: number | undefined;
524
+ clicksChange?: number | undefined;
525
+ posChange?: number | undefined;
526
+ decayPct?: number | undefined;
527
+ missedClicks?: number | undefined;
528
+ }[];
529
+ }, unknown, z.core.$ZodTypeInternals<{
530
+ site: string;
531
+ view: "countries";
532
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
533
+ total: number;
534
+ totals: {
535
+ clicks: number;
536
+ impressions: number;
537
+ ctr: number;
538
+ position: number;
539
+ } | null;
540
+ totalsScope: string;
541
+ representedTotals: {
542
+ clicks: number;
543
+ impressions: number;
544
+ };
545
+ representedTotalsScope: string;
546
+ rows: {
547
+ country: string;
548
+ clicks: number;
549
+ impressions: number;
550
+ ctr: number;
551
+ pos: number;
552
+ prevClicks?: number | undefined;
553
+ change: number | null;
554
+ }[];
555
+ } | {
556
+ site: string;
557
+ view: "devices";
558
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
559
+ total: number;
560
+ totals: {
561
+ clicks: number;
562
+ impressions: number;
563
+ ctr: number;
564
+ position: number;
565
+ } | null;
566
+ totalsScope: string;
567
+ representedTotals: {
568
+ clicks: number;
569
+ impressions: number;
570
+ };
571
+ representedTotalsScope: string;
572
+ rows: {
573
+ device: string;
574
+ clicks: number;
575
+ impressions: number;
576
+ ctr: number;
577
+ pos: number;
578
+ }[];
579
+ } | {
580
+ site: string;
581
+ view: "keywords";
582
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
583
+ total: number;
584
+ totals: {
585
+ clicks: number;
586
+ impressions: number;
587
+ ctr: number;
588
+ position: number;
589
+ } | null;
590
+ totalsScope: string;
591
+ representedTotals: {
592
+ clicks: number;
593
+ impressions: number;
594
+ };
595
+ representedTotalsScope: string;
596
+ rows: {
597
+ keyword: string;
598
+ clicks: number;
599
+ impressions: number;
600
+ ctr: number;
601
+ pos: number;
602
+ topPage: string | null;
603
+ prevClicks?: number | undefined;
604
+ prevPos?: number | undefined;
605
+ change: number | null;
606
+ }[];
607
+ } | {
608
+ site: string;
609
+ view: "pages";
610
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
611
+ total: number;
612
+ totals: {
613
+ clicks: number;
614
+ impressions: number;
615
+ ctr: number;
616
+ position: number;
617
+ } | null;
618
+ totalsScope: string;
619
+ representedTotals: {
620
+ clicks: number;
621
+ impressions: number;
622
+ };
623
+ representedTotalsScope: string;
624
+ rows: {
625
+ url: string;
626
+ clicks: number;
627
+ impressions: number;
628
+ ctr: number;
629
+ pos: number;
630
+ keyword: string | null;
631
+ prevClicks?: number | undefined;
632
+ prevPos?: number | undefined;
633
+ change: number | null;
634
+ }[];
635
+ } | {
636
+ site: string;
637
+ view: "timeseries";
638
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
639
+ totals: {
640
+ clicks: number;
641
+ impressions: number;
642
+ ctr: number;
643
+ position: number;
644
+ } | null;
645
+ prevTotals: {
646
+ clicks: number;
647
+ impressions: number;
648
+ ctr: number;
649
+ position: number;
650
+ } | null;
651
+ daily: {
652
+ date: string;
653
+ clicks: number;
654
+ impressions: number;
655
+ ctr: number;
656
+ pos: number;
657
+ }[];
658
+ } | {
659
+ site: string;
660
+ view: "page-detail";
661
+ pageUrl: string;
662
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
663
+ totals: {
664
+ clicks: number;
665
+ impressions: number;
666
+ ctr: number;
667
+ position: number;
668
+ } | null;
669
+ rows: {
670
+ keyword: string;
671
+ clicks: number;
672
+ impressions: number;
673
+ ctr: number;
674
+ pos: number;
675
+ prevClicks?: number | undefined;
676
+ prevPos?: number | undefined;
677
+ }[];
678
+ } | {
679
+ site: string;
680
+ view: "keyword-detail";
681
+ keyword: string;
682
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
683
+ totals: {
684
+ clicks: number;
685
+ impressions: number;
686
+ ctr: number;
687
+ position: number;
688
+ } | null;
689
+ rows: {
690
+ page: string;
691
+ clicks: number;
692
+ impressions: number;
693
+ ctr: number;
694
+ pos: number;
695
+ prevClicks?: number | undefined;
696
+ prevPos?: number | undefined;
697
+ }[];
698
+ } | {
699
+ site: string;
700
+ view: "analysis";
701
+ preset: "brand-only" | "decay" | "movers-declining" | "movers-rising" | "non-brand" | "opportunity" | "striking-distance" | "zero-click";
702
+ description: string;
703
+ criteria: Record<string, string | number | null>;
704
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
705
+ total: number;
706
+ summary: Record<string, string | number | boolean | null> | null;
707
+ rows: {
708
+ keyword: string;
709
+ clicks: number;
710
+ impressions: number;
711
+ ctr: number;
712
+ pos: number;
713
+ page?: string | undefined;
714
+ prevClicks?: number | undefined;
715
+ prevPos?: number | undefined;
716
+ potentialClicks?: number | undefined;
717
+ opportunityScore?: number | undefined;
718
+ clicksChange?: number | undefined;
719
+ posChange?: number | undefined;
720
+ decayPct?: number | undefined;
721
+ missedClicks?: number | undefined;
722
+ }[];
723
+ }, unknown>>;
724
+ };
725
+ export declare const searchAnalyticsResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
726
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
328
727
  readonly site: z.ZodString;
329
- readonly type: z.ZodLiteral<"pages">;
728
+ readonly view: z.ZodLiteral<"pages">;
729
+ readonly type: z.ZodDefault<z.ZodLiteral<"pages">>;
330
730
  readonly period: z.ZodEnum<{
331
731
  "12m": "12m";
332
732
  "28d": "28d";
@@ -360,7 +760,8 @@ export declare const searchAnalyticsDataSchema: {
360
760
  }, z.core.$strip>>;
361
761
  }, z.core.$strip>, z.ZodObject<{
362
762
  readonly site: z.ZodString;
363
- readonly type: z.ZodLiteral<"keywords">;
763
+ readonly view: z.ZodLiteral<"keywords">;
764
+ readonly type: z.ZodDefault<z.ZodLiteral<"keywords">>;
364
765
  readonly period: z.ZodEnum<{
365
766
  "12m": "12m";
366
767
  "28d": "28d";
@@ -394,7 +795,8 @@ export declare const searchAnalyticsDataSchema: {
394
795
  }, z.core.$strip>>;
395
796
  }, z.core.$strip>, z.ZodObject<{
396
797
  readonly site: z.ZodString;
397
- readonly type: z.ZodLiteral<"countries">;
798
+ readonly view: z.ZodLiteral<"countries">;
799
+ readonly type: z.ZodDefault<z.ZodLiteral<"countries">>;
398
800
  readonly period: z.ZodEnum<{
399
801
  "12m": "12m";
400
802
  "28d": "28d";
@@ -426,7 +828,8 @@ export declare const searchAnalyticsDataSchema: {
426
828
  }, z.core.$strip>>;
427
829
  }, z.core.$strip>, z.ZodObject<{
428
830
  readonly site: z.ZodString;
429
- readonly type: z.ZodLiteral<"devices">;
831
+ readonly view: z.ZodLiteral<"devices">;
832
+ readonly type: z.ZodDefault<z.ZodLiteral<"devices">>;
430
833
  readonly period: z.ZodEnum<{
431
834
  "12m": "12m";
432
835
  "28d": "28d";
@@ -456,7 +859,8 @@ export declare const searchAnalyticsDataSchema: {
456
859
  }, z.core.$strip>>;
457
860
  }, z.core.$strip>, z.ZodObject<{
458
861
  readonly site: z.ZodString;
459
- readonly type: z.ZodLiteral<"timeseries">;
862
+ readonly view: z.ZodLiteral<"timeseries">;
863
+ readonly type: z.ZodDefault<z.ZodLiteral<"timeseries">>;
460
864
  readonly period: z.ZodEnum<{
461
865
  "12m": "12m";
462
866
  "28d": "28d";
@@ -485,7 +889,8 @@ export declare const searchAnalyticsDataSchema: {
485
889
  }, z.core.$strip>>;
486
890
  }, z.core.$strip>, z.ZodObject<{
487
891
  readonly site: z.ZodString;
488
- readonly type: z.ZodLiteral<"page-detail">;
892
+ readonly view: z.ZodLiteral<"page-detail">;
893
+ readonly type: z.ZodDefault<z.ZodLiteral<"page-detail">>;
489
894
  readonly pageUrl: z.ZodString;
490
895
  readonly period: z.ZodEnum<{
491
896
  "12m": "12m";
@@ -511,7 +916,8 @@ export declare const searchAnalyticsDataSchema: {
511
916
  }, z.core.$strip>>;
512
917
  }, z.core.$strip>, z.ZodObject<{
513
918
  readonly site: z.ZodString;
514
- readonly type: z.ZodLiteral<"keyword-detail">;
919
+ readonly view: z.ZodLiteral<"keyword-detail">;
920
+ readonly type: z.ZodDefault<z.ZodLiteral<"keyword-detail">>;
515
921
  readonly keyword: z.ZodString;
516
922
  readonly period: z.ZodEnum<{
517
923
  "12m": "12m";
@@ -537,7 +943,8 @@ export declare const searchAnalyticsDataSchema: {
537
943
  }, z.core.$strip>>;
538
944
  }, z.core.$strip>, z.ZodObject<{
539
945
  readonly site: z.ZodString;
540
- readonly type: z.ZodLiteral<"analysis">;
946
+ readonly view: z.ZodLiteral<"analysis">;
947
+ readonly type: z.ZodDefault<z.ZodLiteral<"analysis">>;
541
948
  readonly preset: z.ZodEnum<{
542
949
  "striking-distance": "striking-distance";
543
950
  opportunity: "opportunity";
@@ -575,800 +982,683 @@ export declare const searchAnalyticsDataSchema: {
575
982
  readonly decayPct: z.ZodOptional<z.ZodNumber>;
576
983
  readonly missedClicks: z.ZodOptional<z.ZodNumber>;
577
984
  }, z.core.$strip>>;
578
- }, z.core.$strip>], "type">;
985
+ }, z.core.$strip>], "view">;
986
+ meta: z.ZodObject<{
987
+ requestId: z.ZodString;
988
+ version: z.ZodLiteral<"1.0">;
989
+ }, z.core.$strict>;
990
+ }, z.core.$strip>, z.ZodObject<{
991
+ data: z.ZodType<{
992
+ site: string;
993
+ view: "countries";
994
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
995
+ total: number;
996
+ totals: {
997
+ clicks: number;
998
+ impressions: number;
999
+ ctr: number;
1000
+ position: number;
1001
+ } | null;
1002
+ totalsScope: string;
1003
+ representedTotals: {
1004
+ clicks: number;
1005
+ impressions: number;
1006
+ };
1007
+ representedTotalsScope: string;
1008
+ rows: {
1009
+ country: string;
1010
+ clicks: number;
1011
+ impressions: number;
1012
+ ctr: number;
1013
+ pos: number;
1014
+ prevClicks?: number | undefined;
1015
+ change: number | null;
1016
+ }[];
1017
+ } | {
1018
+ site: string;
1019
+ view: "devices";
1020
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1021
+ total: number;
1022
+ totals: {
1023
+ clicks: number;
1024
+ impressions: number;
1025
+ ctr: number;
1026
+ position: number;
1027
+ } | null;
1028
+ totalsScope: string;
1029
+ representedTotals: {
1030
+ clicks: number;
1031
+ impressions: number;
1032
+ };
1033
+ representedTotalsScope: string;
1034
+ rows: {
1035
+ device: string;
1036
+ clicks: number;
1037
+ impressions: number;
1038
+ ctr: number;
1039
+ pos: number;
1040
+ }[];
1041
+ } | {
1042
+ site: string;
1043
+ view: "keywords";
1044
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1045
+ total: number;
1046
+ totals: {
1047
+ clicks: number;
1048
+ impressions: number;
1049
+ ctr: number;
1050
+ position: number;
1051
+ } | null;
1052
+ totalsScope: string;
1053
+ representedTotals: {
1054
+ clicks: number;
1055
+ impressions: number;
1056
+ };
1057
+ representedTotalsScope: string;
1058
+ rows: {
1059
+ keyword: string;
1060
+ clicks: number;
1061
+ impressions: number;
1062
+ ctr: number;
1063
+ pos: number;
1064
+ topPage: string | null;
1065
+ prevClicks?: number | undefined;
1066
+ prevPos?: number | undefined;
1067
+ change: number | null;
1068
+ }[];
1069
+ } | {
1070
+ site: string;
1071
+ view: "pages";
1072
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1073
+ total: number;
1074
+ totals: {
1075
+ clicks: number;
1076
+ impressions: number;
1077
+ ctr: number;
1078
+ position: number;
1079
+ } | null;
1080
+ totalsScope: string;
1081
+ representedTotals: {
1082
+ clicks: number;
1083
+ impressions: number;
1084
+ };
1085
+ representedTotalsScope: string;
1086
+ rows: {
1087
+ url: string;
1088
+ clicks: number;
1089
+ impressions: number;
1090
+ ctr: number;
1091
+ pos: number;
1092
+ keyword: string | null;
1093
+ prevClicks?: number | undefined;
1094
+ prevPos?: number | undefined;
1095
+ change: number | null;
1096
+ }[];
1097
+ } | {
1098
+ site: string;
1099
+ view: "timeseries";
1100
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1101
+ totals: {
1102
+ clicks: number;
1103
+ impressions: number;
1104
+ ctr: number;
1105
+ position: number;
1106
+ } | null;
1107
+ prevTotals: {
1108
+ clicks: number;
1109
+ impressions: number;
1110
+ ctr: number;
1111
+ position: number;
1112
+ } | null;
1113
+ daily: {
1114
+ date: string;
1115
+ clicks: number;
1116
+ impressions: number;
1117
+ ctr: number;
1118
+ pos: number;
1119
+ }[];
1120
+ } | {
1121
+ site: string;
1122
+ view: "page-detail";
1123
+ pageUrl: string;
1124
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1125
+ totals: {
1126
+ clicks: number;
1127
+ impressions: number;
1128
+ ctr: number;
1129
+ position: number;
1130
+ } | null;
1131
+ rows: {
1132
+ keyword: string;
1133
+ clicks: number;
1134
+ impressions: number;
1135
+ ctr: number;
1136
+ pos: number;
1137
+ prevClicks?: number | undefined;
1138
+ prevPos?: number | undefined;
1139
+ }[];
1140
+ } | {
1141
+ site: string;
1142
+ view: "keyword-detail";
1143
+ keyword: string;
1144
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1145
+ totals: {
1146
+ clicks: number;
1147
+ impressions: number;
1148
+ ctr: number;
1149
+ position: number;
1150
+ } | null;
1151
+ rows: {
1152
+ page: string;
1153
+ clicks: number;
1154
+ impressions: number;
1155
+ ctr: number;
1156
+ pos: number;
1157
+ prevClicks?: number | undefined;
1158
+ prevPos?: number | undefined;
1159
+ }[];
1160
+ } | {
1161
+ site: string;
1162
+ view: "analysis";
1163
+ preset: "brand-only" | "decay" | "movers-declining" | "movers-rising" | "non-brand" | "opportunity" | "striking-distance" | "zero-click";
1164
+ description: string;
1165
+ criteria: Record<string, string | number | null>;
1166
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1167
+ total: number;
1168
+ summary: Record<string, string | number | boolean | null> | null;
1169
+ rows: {
1170
+ keyword: string;
1171
+ clicks: number;
1172
+ impressions: number;
1173
+ ctr: number;
1174
+ pos: number;
1175
+ page?: string | undefined;
1176
+ prevClicks?: number | undefined;
1177
+ prevPos?: number | undefined;
1178
+ potentialClicks?: number | undefined;
1179
+ opportunityScore?: number | undefined;
1180
+ clicksChange?: number | undefined;
1181
+ posChange?: number | undefined;
1182
+ decayPct?: number | undefined;
1183
+ missedClicks?: number | undefined;
1184
+ }[];
1185
+ }, unknown, z.core.$ZodTypeInternals<{
1186
+ site: string;
1187
+ view: "countries";
1188
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1189
+ total: number;
1190
+ totals: {
1191
+ clicks: number;
1192
+ impressions: number;
1193
+ ctr: number;
1194
+ position: number;
1195
+ } | null;
1196
+ totalsScope: string;
1197
+ representedTotals: {
1198
+ clicks: number;
1199
+ impressions: number;
1200
+ };
1201
+ representedTotalsScope: string;
1202
+ rows: {
1203
+ country: string;
1204
+ clicks: number;
1205
+ impressions: number;
1206
+ ctr: number;
1207
+ pos: number;
1208
+ prevClicks?: number | undefined;
1209
+ change: number | null;
1210
+ }[];
1211
+ } | {
1212
+ site: string;
1213
+ view: "devices";
1214
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1215
+ total: number;
1216
+ totals: {
1217
+ clicks: number;
1218
+ impressions: number;
1219
+ ctr: number;
1220
+ position: number;
1221
+ } | null;
1222
+ totalsScope: string;
1223
+ representedTotals: {
1224
+ clicks: number;
1225
+ impressions: number;
1226
+ };
1227
+ representedTotalsScope: string;
1228
+ rows: {
1229
+ device: string;
1230
+ clicks: number;
1231
+ impressions: number;
1232
+ ctr: number;
1233
+ pos: number;
1234
+ }[];
1235
+ } | {
1236
+ site: string;
1237
+ view: "keywords";
1238
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1239
+ total: number;
1240
+ totals: {
1241
+ clicks: number;
1242
+ impressions: number;
1243
+ ctr: number;
1244
+ position: number;
1245
+ } | null;
1246
+ totalsScope: string;
1247
+ representedTotals: {
1248
+ clicks: number;
1249
+ impressions: number;
1250
+ };
1251
+ representedTotalsScope: string;
1252
+ rows: {
1253
+ keyword: string;
1254
+ clicks: number;
1255
+ impressions: number;
1256
+ ctr: number;
1257
+ pos: number;
1258
+ topPage: string | null;
1259
+ prevClicks?: number | undefined;
1260
+ prevPos?: number | undefined;
1261
+ change: number | null;
1262
+ }[];
1263
+ } | {
1264
+ site: string;
1265
+ view: "pages";
1266
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1267
+ total: number;
1268
+ totals: {
1269
+ clicks: number;
1270
+ impressions: number;
1271
+ ctr: number;
1272
+ position: number;
1273
+ } | null;
1274
+ totalsScope: string;
1275
+ representedTotals: {
1276
+ clicks: number;
1277
+ impressions: number;
1278
+ };
1279
+ representedTotalsScope: string;
1280
+ rows: {
1281
+ url: string;
1282
+ clicks: number;
1283
+ impressions: number;
1284
+ ctr: number;
1285
+ pos: number;
1286
+ keyword: string | null;
1287
+ prevClicks?: number | undefined;
1288
+ prevPos?: number | undefined;
1289
+ change: number | null;
1290
+ }[];
1291
+ } | {
1292
+ site: string;
1293
+ view: "timeseries";
1294
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1295
+ totals: {
1296
+ clicks: number;
1297
+ impressions: number;
1298
+ ctr: number;
1299
+ position: number;
1300
+ } | null;
1301
+ prevTotals: {
1302
+ clicks: number;
1303
+ impressions: number;
1304
+ ctr: number;
1305
+ position: number;
1306
+ } | null;
1307
+ daily: {
1308
+ date: string;
1309
+ clicks: number;
1310
+ impressions: number;
1311
+ ctr: number;
1312
+ pos: number;
1313
+ }[];
1314
+ } | {
1315
+ site: string;
1316
+ view: "page-detail";
1317
+ pageUrl: string;
1318
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1319
+ totals: {
1320
+ clicks: number;
1321
+ impressions: number;
1322
+ ctr: number;
1323
+ position: number;
1324
+ } | null;
1325
+ rows: {
1326
+ keyword: string;
1327
+ clicks: number;
1328
+ impressions: number;
1329
+ ctr: number;
1330
+ pos: number;
1331
+ prevClicks?: number | undefined;
1332
+ prevPos?: number | undefined;
1333
+ }[];
1334
+ } | {
1335
+ site: string;
1336
+ view: "keyword-detail";
1337
+ keyword: string;
1338
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1339
+ totals: {
1340
+ clicks: number;
1341
+ impressions: number;
1342
+ ctr: number;
1343
+ position: number;
1344
+ } | null;
1345
+ rows: {
1346
+ page: string;
1347
+ clicks: number;
1348
+ impressions: number;
1349
+ ctr: number;
1350
+ pos: number;
1351
+ prevClicks?: number | undefined;
1352
+ prevPos?: number | undefined;
1353
+ }[];
1354
+ } | {
1355
+ site: string;
1356
+ view: "analysis";
1357
+ preset: "brand-only" | "decay" | "movers-declining" | "movers-rising" | "non-brand" | "opportunity" | "striking-distance" | "zero-click";
1358
+ description: string;
1359
+ criteria: Record<string, string | number | null>;
1360
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
1361
+ total: number;
1362
+ summary: Record<string, string | number | boolean | null> | null;
1363
+ rows: {
1364
+ keyword: string;
1365
+ clicks: number;
1366
+ impressions: number;
1367
+ ctr: number;
1368
+ pos: number;
1369
+ page?: string | undefined;
1370
+ prevClicks?: number | undefined;
1371
+ prevPos?: number | undefined;
1372
+ potentialClicks?: number | undefined;
1373
+ opportunityScore?: number | undefined;
1374
+ clicksChange?: number | undefined;
1375
+ posChange?: number | undefined;
1376
+ decayPct?: number | undefined;
1377
+ missedClicks?: number | undefined;
1378
+ }[];
1379
+ }, unknown>>;
1380
+ meta: z.ZodObject<{
1381
+ requestId: z.ZodString;
1382
+ version: z.ZodLiteral<"1.0">;
1383
+ }, z.core.$loose>;
1384
+ }, z.core.$strip>>;
1385
+ export declare const searchStatusDataSchema: {
1386
+ producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
1387
+ _tag: z.ZodLiteral<"Connected">;
1388
+ site: z.ZodString;
1389
+ }, z.core.$strict>, z.ZodObject<{
1390
+ _tag: z.ZodLiteral<"ActionRequired">;
1391
+ site: z.ZodString;
1392
+ reason: z.ZodEnum<{
1393
+ credential_inactive: "credential_inactive";
1394
+ credential_missing: "credential_missing";
1395
+ }>;
1396
+ }, z.core.$strict>, z.ZodObject<{
1397
+ _tag: z.ZodLiteral<"Disconnected">;
1398
+ site: z.ZodString;
1399
+ }, z.core.$strict>], "_tag">;
1400
+ client: z.ZodDiscriminatedUnion<[z.ZodObject<{
1401
+ _tag: z.ZodLiteral<"Connected">;
1402
+ site: z.ZodString;
1403
+ }, z.core.$loose>, z.ZodObject<{
1404
+ _tag: z.ZodLiteral<"ActionRequired">;
1405
+ site: z.ZodString;
1406
+ reason: z.ZodEnum<{
1407
+ credential_inactive: "credential_inactive";
1408
+ credential_missing: "credential_missing";
1409
+ }>;
1410
+ }, z.core.$loose>, z.ZodObject<{
1411
+ _tag: z.ZodLiteral<"Disconnected">;
1412
+ site: z.ZodString;
1413
+ }, z.core.$loose>], "_tag">;
579
1414
  };
580
- export declare const searchAnalyticsResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1415
+ export declare const searchStatusResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
581
1416
  data: z.ZodDiscriminatedUnion<[z.ZodObject<{
582
- readonly site: z.ZodString;
583
- readonly type: z.ZodLiteral<"pages">;
584
- readonly period: z.ZodEnum<{
585
- "12m": "12m";
586
- "28d": "28d";
587
- "3m": "3m";
588
- "6m": "6m";
589
- "7d": "7d";
1417
+ _tag: z.ZodLiteral<"Connected">;
1418
+ site: z.ZodString;
1419
+ }, z.core.$strict>, z.ZodObject<{
1420
+ _tag: z.ZodLiteral<"ActionRequired">;
1421
+ site: z.ZodString;
1422
+ reason: z.ZodEnum<{
1423
+ credential_inactive: "credential_inactive";
1424
+ credential_missing: "credential_missing";
590
1425
  }>;
591
- readonly total: z.ZodNumber;
592
- readonly totals: z.ZodNullable<z.ZodObject<{
593
- clicks: z.ZodNumber;
594
- impressions: z.ZodNumber;
595
- ctr: z.ZodNumber;
596
- position: z.ZodNumber;
597
- }, z.core.$strip>>;
598
- readonly totalsScope: z.ZodString;
599
- readonly representedTotals: z.ZodObject<{
600
- readonly clicks: z.ZodNumber;
601
- readonly impressions: z.ZodNumber;
602
- }, z.core.$strip>;
603
- readonly representedTotalsScope: z.ZodString;
604
- readonly rows: z.ZodArray<z.ZodObject<{
605
- readonly url: z.ZodString;
606
- readonly clicks: z.ZodNumber;
607
- readonly impressions: z.ZodNumber;
608
- readonly ctr: z.ZodNumber;
609
- readonly pos: z.ZodNumber;
610
- readonly keyword: z.ZodNullable<z.ZodString>;
611
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
612
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
613
- readonly change: z.ZodNullable<z.ZodNumber>;
1426
+ }, z.core.$strict>, z.ZodObject<{
1427
+ _tag: z.ZodLiteral<"Disconnected">;
1428
+ site: z.ZodString;
1429
+ }, z.core.$strict>], "_tag">;
1430
+ meta: z.ZodObject<{
1431
+ requestId: z.ZodString;
1432
+ version: z.ZodLiteral<"1.0">;
1433
+ }, z.core.$strict>;
1434
+ }, z.core.$strip>, z.ZodObject<{
1435
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1436
+ _tag: z.ZodLiteral<"Connected">;
1437
+ site: z.ZodString;
1438
+ }, z.core.$loose>, z.ZodObject<{
1439
+ _tag: z.ZodLiteral<"ActionRequired">;
1440
+ site: z.ZodString;
1441
+ reason: z.ZodEnum<{
1442
+ credential_inactive: "credential_inactive";
1443
+ credential_missing: "credential_missing";
1444
+ }>;
1445
+ }, z.core.$loose>, z.ZodObject<{
1446
+ _tag: z.ZodLiteral<"Disconnected">;
1447
+ site: z.ZodString;
1448
+ }, z.core.$loose>], "_tag">;
1449
+ meta: z.ZodObject<{
1450
+ requestId: z.ZodString;
1451
+ version: z.ZodLiteral<"1.0">;
1452
+ }, z.core.$loose>;
1453
+ }, z.core.$strip>>;
1454
+ export declare const indexingDiagnosticsQuerySchema: z.ZodObject<{
1455
+ view: z.ZodDefault<z.ZodEnum<{
1456
+ summary: "summary";
1457
+ urls: "urls";
1458
+ }>>;
1459
+ issue: z.ZodOptional<z.ZodString>;
1460
+ status: z.ZodOptional<z.ZodEnum<{
1461
+ indexed: "indexed";
1462
+ not_indexed: "not_indexed";
1463
+ pending: "pending";
1464
+ }>>;
1465
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1466
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1467
+ }, z.core.$strict>;
1468
+ export declare const indexingDiagnosticsDataSchema: {
1469
+ producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
1470
+ readonly view: z.ZodLiteral<"summary">;
1471
+ readonly totalUrls: z.ZodNumber;
1472
+ readonly indexed: z.ZodNumber;
1473
+ readonly asOf: z.ZodNullable<z.ZodString>;
1474
+ readonly issues: z.ZodArray<z.ZodObject<{
1475
+ type: z.ZodString;
1476
+ label: z.ZodString;
1477
+ severity: z.ZodEnum<{
1478
+ error: "error";
1479
+ warning: "warning";
1480
+ info: "info";
1481
+ }>;
1482
+ count: z.ZodNumber;
1483
+ description: z.ZodString;
1484
+ fix: z.ZodString;
614
1485
  }, z.core.$strip>>;
615
1486
  }, z.core.$strip>, z.ZodObject<{
616
- readonly site: z.ZodString;
617
- readonly type: z.ZodLiteral<"keywords">;
618
- readonly period: z.ZodEnum<{
619
- "12m": "12m";
620
- "28d": "28d";
621
- "3m": "3m";
622
- "6m": "6m";
623
- "7d": "7d";
624
- }>;
1487
+ readonly view: z.ZodLiteral<"urls">;
625
1488
  readonly total: z.ZodNumber;
626
- readonly totals: z.ZodNullable<z.ZodObject<{
627
- clicks: z.ZodNumber;
628
- impressions: z.ZodNumber;
629
- ctr: z.ZodNumber;
630
- position: z.ZodNumber;
1489
+ readonly limit: z.ZodNumber;
1490
+ readonly offset: z.ZodNumber;
1491
+ readonly hasMore: z.ZodBoolean;
1492
+ readonly urls: z.ZodArray<z.ZodObject<{
1493
+ readonly url: z.ZodString;
1494
+ readonly verdict: z.ZodNullable<z.ZodString>;
1495
+ readonly coverageState: z.ZodNullable<z.ZodString>;
1496
+ readonly indexingState: z.ZodNullable<z.ZodString>;
1497
+ readonly userCanonical: z.ZodNullable<z.ZodString>;
1498
+ readonly googleCanonical: z.ZodNullable<z.ZodString>;
1499
+ readonly lastCrawlTime: z.ZodNullable<z.ZodString>;
1500
+ readonly lastCheckedAt: z.ZodString;
631
1501
  }, z.core.$strip>>;
632
- readonly totalsScope: z.ZodString;
633
- readonly representedTotals: z.ZodObject<{
634
- readonly clicks: z.ZodNumber;
635
- readonly impressions: z.ZodNumber;
636
- }, z.core.$strip>;
637
- readonly representedTotalsScope: z.ZodString;
638
- readonly rows: z.ZodArray<z.ZodObject<{
639
- readonly keyword: z.ZodString;
640
- readonly clicks: z.ZodNumber;
641
- readonly impressions: z.ZodNumber;
642
- readonly ctr: z.ZodNumber;
643
- readonly pos: z.ZodNumber;
644
- readonly topPage: z.ZodNullable<z.ZodString>;
645
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
646
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
647
- readonly change: z.ZodNullable<z.ZodNumber>;
1502
+ }, z.core.$strip>], "view">;
1503
+ client: z.ZodDiscriminatedUnion<[z.ZodObject<{
1504
+ readonly view: z.ZodLiteral<"summary">;
1505
+ readonly totalUrls: z.ZodNumber;
1506
+ readonly indexed: z.ZodNumber;
1507
+ readonly asOf: z.ZodNullable<z.ZodString>;
1508
+ readonly issues: z.ZodArray<z.ZodObject<{
1509
+ type: z.ZodString;
1510
+ label: z.ZodString;
1511
+ severity: z.ZodEnum<{
1512
+ error: "error";
1513
+ warning: "warning";
1514
+ info: "info";
1515
+ }>;
1516
+ count: z.ZodNumber;
1517
+ description: z.ZodString;
1518
+ fix: z.ZodString;
648
1519
  }, z.core.$strip>>;
649
1520
  }, z.core.$strip>, z.ZodObject<{
650
- readonly site: z.ZodString;
651
- readonly type: z.ZodLiteral<"countries">;
652
- readonly period: z.ZodEnum<{
653
- "12m": "12m";
654
- "28d": "28d";
655
- "3m": "3m";
656
- "6m": "6m";
657
- "7d": "7d";
658
- }>;
1521
+ readonly view: z.ZodLiteral<"urls">;
659
1522
  readonly total: z.ZodNumber;
660
- readonly totals: z.ZodNullable<z.ZodObject<{
661
- clicks: z.ZodNumber;
662
- impressions: z.ZodNumber;
663
- ctr: z.ZodNumber;
664
- position: z.ZodNumber;
1523
+ readonly limit: z.ZodNumber;
1524
+ readonly offset: z.ZodNumber;
1525
+ readonly hasMore: z.ZodBoolean;
1526
+ readonly urls: z.ZodArray<z.ZodObject<{
1527
+ readonly url: z.ZodString;
1528
+ readonly verdict: z.ZodNullable<z.ZodString>;
1529
+ readonly coverageState: z.ZodNullable<z.ZodString>;
1530
+ readonly indexingState: z.ZodNullable<z.ZodString>;
1531
+ readonly userCanonical: z.ZodNullable<z.ZodString>;
1532
+ readonly googleCanonical: z.ZodNullable<z.ZodString>;
1533
+ readonly lastCrawlTime: z.ZodNullable<z.ZodString>;
1534
+ readonly lastCheckedAt: z.ZodString;
665
1535
  }, z.core.$strip>>;
666
- readonly totalsScope: z.ZodString;
667
- readonly representedTotals: z.ZodObject<{
668
- readonly clicks: z.ZodNumber;
669
- readonly impressions: z.ZodNumber;
670
- }, z.core.$strip>;
671
- readonly representedTotalsScope: z.ZodString;
672
- readonly rows: z.ZodArray<z.ZodObject<{
673
- readonly country: z.ZodString;
674
- readonly clicks: z.ZodNumber;
675
- readonly impressions: z.ZodNumber;
676
- readonly ctr: z.ZodNumber;
677
- readonly pos: z.ZodNumber;
678
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
679
- readonly change: z.ZodNullable<z.ZodNumber>;
680
- }, z.core.$strip>>;
681
- }, z.core.$strip>, z.ZodObject<{
682
- readonly site: z.ZodString;
683
- readonly type: z.ZodLiteral<"devices">;
684
- readonly period: z.ZodEnum<{
685
- "12m": "12m";
686
- "28d": "28d";
687
- "3m": "3m";
688
- "6m": "6m";
689
- "7d": "7d";
690
- }>;
691
- readonly total: z.ZodNumber;
692
- readonly totals: z.ZodNullable<z.ZodObject<{
693
- clicks: z.ZodNumber;
694
- impressions: z.ZodNumber;
695
- ctr: z.ZodNumber;
696
- position: z.ZodNumber;
697
- }, z.core.$strip>>;
698
- readonly totalsScope: z.ZodString;
699
- readonly representedTotals: z.ZodObject<{
700
- readonly clicks: z.ZodNumber;
701
- readonly impressions: z.ZodNumber;
702
- }, z.core.$strip>;
703
- readonly representedTotalsScope: z.ZodString;
704
- readonly rows: z.ZodArray<z.ZodObject<{
705
- readonly device: z.ZodString;
706
- readonly clicks: z.ZodNumber;
707
- readonly impressions: z.ZodNumber;
708
- readonly ctr: z.ZodNumber;
709
- readonly pos: z.ZodNumber;
710
- }, z.core.$strip>>;
711
- }, z.core.$strip>, z.ZodObject<{
712
- readonly site: z.ZodString;
713
- readonly type: z.ZodLiteral<"timeseries">;
714
- readonly period: z.ZodEnum<{
715
- "12m": "12m";
716
- "28d": "28d";
717
- "3m": "3m";
718
- "6m": "6m";
719
- "7d": "7d";
720
- }>;
721
- readonly totals: z.ZodNullable<z.ZodObject<{
722
- clicks: z.ZodNumber;
723
- impressions: z.ZodNumber;
724
- ctr: z.ZodNumber;
725
- position: z.ZodNumber;
726
- }, z.core.$strip>>;
727
- readonly prevTotals: z.ZodNullable<z.ZodObject<{
728
- clicks: z.ZodNumber;
729
- impressions: z.ZodNumber;
730
- ctr: z.ZodNumber;
731
- position: z.ZodNumber;
732
- }, z.core.$strip>>;
733
- readonly daily: z.ZodArray<z.ZodObject<{
734
- readonly date: z.ZodString;
735
- readonly clicks: z.ZodNumber;
736
- readonly impressions: z.ZodNumber;
737
- readonly ctr: z.ZodNumber;
738
- readonly pos: z.ZodNumber;
739
- }, z.core.$strip>>;
740
- }, z.core.$strip>, z.ZodObject<{
741
- readonly site: z.ZodString;
742
- readonly type: z.ZodLiteral<"page-detail">;
743
- readonly pageUrl: z.ZodString;
744
- readonly period: z.ZodEnum<{
745
- "12m": "12m";
746
- "28d": "28d";
747
- "3m": "3m";
748
- "6m": "6m";
749
- "7d": "7d";
750
- }>;
751
- readonly totals: z.ZodNullable<z.ZodObject<{
752
- clicks: z.ZodNumber;
753
- impressions: z.ZodNumber;
754
- ctr: z.ZodNumber;
755
- position: z.ZodNumber;
756
- }, z.core.$strip>>;
757
- readonly rows: z.ZodArray<z.ZodObject<{
758
- readonly keyword: z.ZodString;
759
- readonly clicks: z.ZodNumber;
760
- readonly impressions: z.ZodNumber;
761
- readonly ctr: z.ZodNumber;
762
- readonly pos: z.ZodNumber;
763
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
764
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
765
- }, z.core.$strip>>;
766
- }, z.core.$strip>, z.ZodObject<{
767
- readonly site: z.ZodString;
768
- readonly type: z.ZodLiteral<"keyword-detail">;
769
- readonly keyword: z.ZodString;
770
- readonly period: z.ZodEnum<{
771
- "12m": "12m";
772
- "28d": "28d";
773
- "3m": "3m";
774
- "6m": "6m";
775
- "7d": "7d";
776
- }>;
777
- readonly totals: z.ZodNullable<z.ZodObject<{
778
- clicks: z.ZodNumber;
779
- impressions: z.ZodNumber;
780
- ctr: z.ZodNumber;
781
- position: z.ZodNumber;
782
- }, z.core.$strip>>;
783
- readonly rows: z.ZodArray<z.ZodObject<{
784
- readonly page: z.ZodString;
785
- readonly clicks: z.ZodNumber;
786
- readonly impressions: z.ZodNumber;
787
- readonly ctr: z.ZodNumber;
788
- readonly pos: z.ZodNumber;
789
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
790
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
1536
+ }, z.core.$strip>], "view">;
1537
+ };
1538
+ export declare const indexingDiagnosticsResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1539
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1540
+ readonly view: z.ZodLiteral<"summary">;
1541
+ readonly totalUrls: z.ZodNumber;
1542
+ readonly indexed: z.ZodNumber;
1543
+ readonly asOf: z.ZodNullable<z.ZodString>;
1544
+ readonly issues: z.ZodArray<z.ZodObject<{
1545
+ type: z.ZodString;
1546
+ label: z.ZodString;
1547
+ severity: z.ZodEnum<{
1548
+ error: "error";
1549
+ warning: "warning";
1550
+ info: "info";
1551
+ }>;
1552
+ count: z.ZodNumber;
1553
+ description: z.ZodString;
1554
+ fix: z.ZodString;
791
1555
  }, z.core.$strip>>;
792
1556
  }, z.core.$strip>, z.ZodObject<{
793
- readonly site: z.ZodString;
794
- readonly type: z.ZodLiteral<"analysis">;
795
- readonly preset: z.ZodEnum<{
796
- "striking-distance": "striking-distance";
797
- opportunity: "opportunity";
798
- decay: "decay";
799
- "zero-click": "zero-click";
800
- "non-brand": "non-brand";
801
- "brand-only": "brand-only";
802
- "movers-rising": "movers-rising";
803
- "movers-declining": "movers-declining";
804
- }>;
805
- readonly description: z.ZodString;
806
- readonly criteria: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
807
- readonly period: z.ZodEnum<{
808
- "12m": "12m";
809
- "28d": "28d";
810
- "3m": "3m";
811
- "6m": "6m";
812
- "7d": "7d";
813
- }>;
1557
+ readonly view: z.ZodLiteral<"urls">;
814
1558
  readonly total: z.ZodNumber;
815
- readonly summary: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
816
- readonly rows: z.ZodArray<z.ZodObject<{
817
- readonly keyword: z.ZodString;
818
- readonly clicks: z.ZodNumber;
819
- readonly impressions: z.ZodNumber;
820
- readonly ctr: z.ZodNumber;
821
- readonly pos: z.ZodNumber;
822
- readonly page: z.ZodOptional<z.ZodString>;
823
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
824
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
825
- readonly potentialClicks: z.ZodOptional<z.ZodNumber>;
826
- readonly opportunityScore: z.ZodOptional<z.ZodNumber>;
827
- readonly clicksChange: z.ZodOptional<z.ZodNumber>;
828
- readonly posChange: z.ZodOptional<z.ZodNumber>;
829
- readonly decayPct: z.ZodOptional<z.ZodNumber>;
830
- readonly missedClicks: z.ZodOptional<z.ZodNumber>;
1559
+ readonly limit: z.ZodNumber;
1560
+ readonly offset: z.ZodNumber;
1561
+ readonly hasMore: z.ZodBoolean;
1562
+ readonly urls: z.ZodArray<z.ZodObject<{
1563
+ readonly url: z.ZodString;
1564
+ readonly verdict: z.ZodNullable<z.ZodString>;
1565
+ readonly coverageState: z.ZodNullable<z.ZodString>;
1566
+ readonly indexingState: z.ZodNullable<z.ZodString>;
1567
+ readonly userCanonical: z.ZodNullable<z.ZodString>;
1568
+ readonly googleCanonical: z.ZodNullable<z.ZodString>;
1569
+ readonly lastCrawlTime: z.ZodNullable<z.ZodString>;
1570
+ readonly lastCheckedAt: z.ZodString;
831
1571
  }, z.core.$strip>>;
832
- }, z.core.$strip>], "type">;
1572
+ }, z.core.$strip>], "view">;
833
1573
  meta: z.ZodObject<{
834
1574
  requestId: z.ZodString;
835
1575
  version: z.ZodLiteral<"1.0">;
836
1576
  }, z.core.$strict>;
837
1577
  }, z.core.$strip>, z.ZodObject<{
838
1578
  data: z.ZodDiscriminatedUnion<[z.ZodObject<{
839
- readonly site: z.ZodString;
840
- readonly type: z.ZodLiteral<"pages">;
841
- readonly period: z.ZodEnum<{
842
- "12m": "12m";
843
- "28d": "28d";
844
- "3m": "3m";
845
- "6m": "6m";
846
- "7d": "7d";
847
- }>;
848
- readonly total: z.ZodNumber;
849
- readonly totals: z.ZodNullable<z.ZodObject<{
850
- clicks: z.ZodNumber;
851
- impressions: z.ZodNumber;
852
- ctr: z.ZodNumber;
853
- position: z.ZodNumber;
854
- }, z.core.$strip>>;
855
- readonly totalsScope: z.ZodString;
856
- readonly representedTotals: z.ZodObject<{
857
- readonly clicks: z.ZodNumber;
858
- readonly impressions: z.ZodNumber;
859
- }, z.core.$strip>;
860
- readonly representedTotalsScope: z.ZodString;
861
- readonly rows: z.ZodArray<z.ZodObject<{
862
- readonly url: z.ZodString;
863
- readonly clicks: z.ZodNumber;
864
- readonly impressions: z.ZodNumber;
865
- readonly ctr: z.ZodNumber;
866
- readonly pos: z.ZodNumber;
867
- readonly keyword: z.ZodNullable<z.ZodString>;
868
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
869
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
870
- readonly change: z.ZodNullable<z.ZodNumber>;
1579
+ readonly view: z.ZodLiteral<"summary">;
1580
+ readonly totalUrls: z.ZodNumber;
1581
+ readonly indexed: z.ZodNumber;
1582
+ readonly asOf: z.ZodNullable<z.ZodString>;
1583
+ readonly issues: z.ZodArray<z.ZodObject<{
1584
+ type: z.ZodString;
1585
+ label: z.ZodString;
1586
+ severity: z.ZodEnum<{
1587
+ error: "error";
1588
+ warning: "warning";
1589
+ info: "info";
1590
+ }>;
1591
+ count: z.ZodNumber;
1592
+ description: z.ZodString;
1593
+ fix: z.ZodString;
871
1594
  }, z.core.$strip>>;
872
1595
  }, z.core.$strip>, z.ZodObject<{
873
- readonly site: z.ZodString;
874
- readonly type: z.ZodLiteral<"keywords">;
875
- readonly period: z.ZodEnum<{
876
- "12m": "12m";
877
- "28d": "28d";
878
- "3m": "3m";
879
- "6m": "6m";
880
- "7d": "7d";
881
- }>;
1596
+ readonly view: z.ZodLiteral<"urls">;
882
1597
  readonly total: z.ZodNumber;
883
- readonly totals: z.ZodNullable<z.ZodObject<{
884
- clicks: z.ZodNumber;
885
- impressions: z.ZodNumber;
886
- ctr: z.ZodNumber;
887
- position: z.ZodNumber;
1598
+ readonly limit: z.ZodNumber;
1599
+ readonly offset: z.ZodNumber;
1600
+ readonly hasMore: z.ZodBoolean;
1601
+ readonly urls: z.ZodArray<z.ZodObject<{
1602
+ readonly url: z.ZodString;
1603
+ readonly verdict: z.ZodNullable<z.ZodString>;
1604
+ readonly coverageState: z.ZodNullable<z.ZodString>;
1605
+ readonly indexingState: z.ZodNullable<z.ZodString>;
1606
+ readonly userCanonical: z.ZodNullable<z.ZodString>;
1607
+ readonly googleCanonical: z.ZodNullable<z.ZodString>;
1608
+ readonly lastCrawlTime: z.ZodNullable<z.ZodString>;
1609
+ readonly lastCheckedAt: z.ZodString;
888
1610
  }, z.core.$strip>>;
889
- readonly totalsScope: z.ZodString;
890
- readonly representedTotals: z.ZodObject<{
891
- readonly clicks: z.ZodNumber;
892
- readonly impressions: z.ZodNumber;
893
- }, z.core.$strip>;
894
- readonly representedTotalsScope: z.ZodString;
895
- readonly rows: z.ZodArray<z.ZodObject<{
896
- readonly keyword: z.ZodString;
897
- readonly clicks: z.ZodNumber;
898
- readonly impressions: z.ZodNumber;
899
- readonly ctr: z.ZodNumber;
900
- readonly pos: z.ZodNumber;
901
- readonly topPage: z.ZodNullable<z.ZodString>;
902
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
903
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
904
- readonly change: z.ZodNullable<z.ZodNumber>;
905
- }, z.core.$strip>>;
906
- }, z.core.$strip>, z.ZodObject<{
907
- readonly site: z.ZodString;
908
- readonly type: z.ZodLiteral<"countries">;
909
- readonly period: z.ZodEnum<{
910
- "12m": "12m";
911
- "28d": "28d";
912
- "3m": "3m";
913
- "6m": "6m";
914
- "7d": "7d";
915
- }>;
916
- readonly total: z.ZodNumber;
917
- readonly totals: z.ZodNullable<z.ZodObject<{
918
- clicks: z.ZodNumber;
919
- impressions: z.ZodNumber;
920
- ctr: z.ZodNumber;
921
- position: z.ZodNumber;
922
- }, z.core.$strip>>;
923
- readonly totalsScope: z.ZodString;
924
- readonly representedTotals: z.ZodObject<{
925
- readonly clicks: z.ZodNumber;
926
- readonly impressions: z.ZodNumber;
927
- }, z.core.$strip>;
928
- readonly representedTotalsScope: z.ZodString;
929
- readonly rows: z.ZodArray<z.ZodObject<{
930
- readonly country: z.ZodString;
931
- readonly clicks: z.ZodNumber;
932
- readonly impressions: z.ZodNumber;
933
- readonly ctr: z.ZodNumber;
934
- readonly pos: z.ZodNumber;
935
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
936
- readonly change: z.ZodNullable<z.ZodNumber>;
937
- }, z.core.$strip>>;
938
- }, z.core.$strip>, z.ZodObject<{
939
- readonly site: z.ZodString;
940
- readonly type: z.ZodLiteral<"devices">;
941
- readonly period: z.ZodEnum<{
942
- "12m": "12m";
943
- "28d": "28d";
944
- "3m": "3m";
945
- "6m": "6m";
946
- "7d": "7d";
947
- }>;
948
- readonly total: z.ZodNumber;
949
- readonly totals: z.ZodNullable<z.ZodObject<{
950
- clicks: z.ZodNumber;
951
- impressions: z.ZodNumber;
952
- ctr: z.ZodNumber;
953
- position: z.ZodNumber;
954
- }, z.core.$strip>>;
955
- readonly totalsScope: z.ZodString;
956
- readonly representedTotals: z.ZodObject<{
957
- readonly clicks: z.ZodNumber;
958
- readonly impressions: z.ZodNumber;
959
- }, z.core.$strip>;
960
- readonly representedTotalsScope: z.ZodString;
961
- readonly rows: z.ZodArray<z.ZodObject<{
962
- readonly device: z.ZodString;
963
- readonly clicks: z.ZodNumber;
964
- readonly impressions: z.ZodNumber;
965
- readonly ctr: z.ZodNumber;
966
- readonly pos: z.ZodNumber;
967
- }, z.core.$strip>>;
968
- }, z.core.$strip>, z.ZodObject<{
969
- readonly site: z.ZodString;
970
- readonly type: z.ZodLiteral<"timeseries">;
971
- readonly period: z.ZodEnum<{
972
- "12m": "12m";
973
- "28d": "28d";
974
- "3m": "3m";
975
- "6m": "6m";
976
- "7d": "7d";
977
- }>;
978
- readonly totals: z.ZodNullable<z.ZodObject<{
979
- clicks: z.ZodNumber;
980
- impressions: z.ZodNumber;
981
- ctr: z.ZodNumber;
982
- position: z.ZodNumber;
983
- }, z.core.$strip>>;
984
- readonly prevTotals: z.ZodNullable<z.ZodObject<{
985
- clicks: z.ZodNumber;
986
- impressions: z.ZodNumber;
987
- ctr: z.ZodNumber;
988
- position: z.ZodNumber;
989
- }, z.core.$strip>>;
990
- readonly daily: z.ZodArray<z.ZodObject<{
991
- readonly date: z.ZodString;
992
- readonly clicks: z.ZodNumber;
993
- readonly impressions: z.ZodNumber;
994
- readonly ctr: z.ZodNumber;
995
- readonly pos: z.ZodNumber;
996
- }, z.core.$strip>>;
997
- }, z.core.$strip>, z.ZodObject<{
998
- readonly site: z.ZodString;
999
- readonly type: z.ZodLiteral<"page-detail">;
1000
- readonly pageUrl: z.ZodString;
1001
- readonly period: z.ZodEnum<{
1002
- "12m": "12m";
1003
- "28d": "28d";
1004
- "3m": "3m";
1005
- "6m": "6m";
1006
- "7d": "7d";
1007
- }>;
1008
- readonly totals: z.ZodNullable<z.ZodObject<{
1009
- clicks: z.ZodNumber;
1010
- impressions: z.ZodNumber;
1011
- ctr: z.ZodNumber;
1012
- position: z.ZodNumber;
1013
- }, z.core.$strip>>;
1014
- readonly rows: z.ZodArray<z.ZodObject<{
1015
- readonly keyword: z.ZodString;
1016
- readonly clicks: z.ZodNumber;
1017
- readonly impressions: z.ZodNumber;
1018
- readonly ctr: z.ZodNumber;
1019
- readonly pos: z.ZodNumber;
1020
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
1021
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
1022
- }, z.core.$strip>>;
1023
- }, z.core.$strip>, z.ZodObject<{
1024
- readonly site: z.ZodString;
1025
- readonly type: z.ZodLiteral<"keyword-detail">;
1026
- readonly keyword: z.ZodString;
1027
- readonly period: z.ZodEnum<{
1028
- "12m": "12m";
1029
- "28d": "28d";
1030
- "3m": "3m";
1031
- "6m": "6m";
1032
- "7d": "7d";
1033
- }>;
1034
- readonly totals: z.ZodNullable<z.ZodObject<{
1035
- clicks: z.ZodNumber;
1036
- impressions: z.ZodNumber;
1037
- ctr: z.ZodNumber;
1038
- position: z.ZodNumber;
1039
- }, z.core.$strip>>;
1040
- readonly rows: z.ZodArray<z.ZodObject<{
1041
- readonly page: z.ZodString;
1042
- readonly clicks: z.ZodNumber;
1043
- readonly impressions: z.ZodNumber;
1044
- readonly ctr: z.ZodNumber;
1045
- readonly pos: z.ZodNumber;
1046
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
1047
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
1048
- }, z.core.$strip>>;
1049
- }, z.core.$strip>, z.ZodObject<{
1050
- readonly site: z.ZodString;
1051
- readonly type: z.ZodLiteral<"analysis">;
1052
- readonly preset: z.ZodEnum<{
1053
- "striking-distance": "striking-distance";
1054
- opportunity: "opportunity";
1055
- decay: "decay";
1056
- "zero-click": "zero-click";
1057
- "non-brand": "non-brand";
1058
- "brand-only": "brand-only";
1059
- "movers-rising": "movers-rising";
1060
- "movers-declining": "movers-declining";
1061
- }>;
1062
- readonly description: z.ZodString;
1063
- readonly criteria: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
1064
- readonly period: z.ZodEnum<{
1065
- "12m": "12m";
1066
- "28d": "28d";
1067
- "3m": "3m";
1068
- "6m": "6m";
1069
- "7d": "7d";
1070
- }>;
1071
- readonly total: z.ZodNumber;
1072
- readonly summary: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
1073
- readonly rows: z.ZodArray<z.ZodObject<{
1074
- readonly keyword: z.ZodString;
1075
- readonly clicks: z.ZodNumber;
1076
- readonly impressions: z.ZodNumber;
1077
- readonly ctr: z.ZodNumber;
1078
- readonly pos: z.ZodNumber;
1079
- readonly page: z.ZodOptional<z.ZodString>;
1080
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
1081
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
1082
- readonly potentialClicks: z.ZodOptional<z.ZodNumber>;
1083
- readonly opportunityScore: z.ZodOptional<z.ZodNumber>;
1084
- readonly clicksChange: z.ZodOptional<z.ZodNumber>;
1085
- readonly posChange: z.ZodOptional<z.ZodNumber>;
1086
- readonly decayPct: z.ZodOptional<z.ZodNumber>;
1087
- readonly missedClicks: z.ZodOptional<z.ZodNumber>;
1088
- }, z.core.$strip>>;
1089
- }, z.core.$strip>], "type">;
1611
+ }, z.core.$strip>], "view">;
1090
1612
  meta: z.ZodObject<{
1091
1613
  requestId: z.ZodString;
1092
1614
  version: z.ZodLiteral<"1.0">;
1093
1615
  }, z.core.$loose>;
1094
1616
  }, z.core.$strip>>;
1095
- export declare const searchStatusDataSchema: {
1096
- producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
1097
- _tag: z.ZodLiteral<"Connected">;
1098
- site: z.ZodString;
1617
+ export declare const indexingHistoryQuerySchema: z.ZodObject<{
1618
+ url: z.ZodOptional<z.ZodString>;
1619
+ field: z.ZodOptional<z.ZodEnum<{
1620
+ coverageState: "coverageState";
1621
+ indexingState: "indexingState";
1622
+ robotsTxtState: "robotsTxtState";
1623
+ pageFetchState: "pageFetchState";
1624
+ googleCanonical: "googleCanonical";
1625
+ indexStatus: "indexStatus";
1626
+ }>>;
1627
+ days: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1628
+ }, z.core.$strict>;
1629
+ export declare const indexingHistoryDataSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1630
+ readonly scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
1631
+ _tag: z.ZodLiteral<"url">;
1632
+ url: z.ZodString;
1099
1633
  }, z.core.$strict>, z.ZodObject<{
1100
- _tag: z.ZodLiteral<"ActionRequired">;
1101
- site: z.ZodString;
1102
- reason: z.ZodEnum<{
1103
- credential_inactive: "credential_inactive";
1104
- credential_missing: "credential_missing";
1634
+ _tag: z.ZodLiteral<"site">;
1635
+ field: z.ZodEnum<{
1636
+ coverageState: "coverageState";
1637
+ indexingState: "indexingState";
1638
+ robotsTxtState: "robotsTxtState";
1639
+ pageFetchState: "pageFetchState";
1640
+ googleCanonical: "googleCanonical";
1641
+ indexStatus: "indexStatus";
1105
1642
  }>;
1106
- }, z.core.$strict>, z.ZodObject<{
1107
- _tag: z.ZodLiteral<"Disconnected">;
1108
- site: z.ZodString;
1109
1643
  }, z.core.$strict>], "_tag">;
1110
- client: z.ZodDiscriminatedUnion<[z.ZodObject<{
1111
- _tag: z.ZodLiteral<"Connected">;
1112
- site: z.ZodString;
1113
- }, z.core.$loose>, z.ZodObject<{
1114
- _tag: z.ZodLiteral<"ActionRequired">;
1115
- site: z.ZodString;
1116
- reason: z.ZodEnum<{
1117
- credential_inactive: "credential_inactive";
1118
- credential_missing: "credential_missing";
1119
- }>;
1120
- }, z.core.$loose>, z.ZodObject<{
1121
- _tag: z.ZodLiteral<"Disconnected">;
1122
- site: z.ZodString;
1123
- }, z.core.$loose>], "_tag">;
1124
- };
1125
- export declare const searchStatusResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1126
- data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1127
- _tag: z.ZodLiteral<"Connected">;
1128
- site: z.ZodString;
1129
- }, z.core.$strict>, z.ZodObject<{
1130
- _tag: z.ZodLiteral<"ActionRequired">;
1131
- site: z.ZodString;
1132
- reason: z.ZodEnum<{
1133
- credential_inactive: "credential_inactive";
1134
- credential_missing: "credential_missing";
1135
- }>;
1136
- }, z.core.$strict>, z.ZodObject<{
1137
- _tag: z.ZodLiteral<"Disconnected">;
1138
- site: z.ZodString;
1139
- }, z.core.$strict>], "_tag">;
1140
- meta: z.ZodObject<{
1141
- requestId: z.ZodString;
1142
- version: z.ZodLiteral<"1.0">;
1143
- }, z.core.$strict>;
1144
- }, z.core.$strip>, z.ZodObject<{
1145
- data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1146
- _tag: z.ZodLiteral<"Connected">;
1147
- site: z.ZodString;
1148
- }, z.core.$loose>, z.ZodObject<{
1149
- _tag: z.ZodLiteral<"ActionRequired">;
1150
- site: z.ZodString;
1151
- reason: z.ZodEnum<{
1152
- credential_inactive: "credential_inactive";
1153
- credential_missing: "credential_missing";
1154
- }>;
1155
- }, z.core.$loose>, z.ZodObject<{
1156
- _tag: z.ZodLiteral<"Disconnected">;
1157
- site: z.ZodString;
1158
- }, z.core.$loose>], "_tag">;
1159
- meta: z.ZodObject<{
1160
- requestId: z.ZodString;
1161
- version: z.ZodLiteral<"1.0">;
1162
- }, z.core.$loose>;
1163
- }, z.core.$strip>>;
1164
- export declare const indexingDiagnosticsQuerySchema: z.ZodObject<{
1165
- view: z.ZodDefault<z.ZodEnum<{
1166
- summary: "summary";
1167
- urls: "urls";
1168
- }>>;
1169
- issue: z.ZodOptional<z.ZodString>;
1170
- status: z.ZodOptional<z.ZodEnum<{
1171
- indexed: "indexed";
1172
- not_indexed: "not_indexed";
1173
- pending: "pending";
1174
- }>>;
1175
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1176
- offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1177
- }, z.core.$strict>;
1178
- export declare const indexingDiagnosticsDataSchema: {
1179
- producer: z.ZodDiscriminatedUnion<[z.ZodObject<{
1180
- readonly view: z.ZodLiteral<"summary">;
1181
- readonly totalUrls: z.ZodNumber;
1182
- readonly indexed: z.ZodNumber;
1183
- readonly asOf: z.ZodNullable<z.ZodString>;
1184
- readonly issues: z.ZodArray<z.ZodObject<{
1185
- type: z.ZodString;
1186
- label: z.ZodString;
1187
- severity: z.ZodEnum<{
1188
- error: "error";
1189
- warning: "warning";
1190
- info: "info";
1191
- }>;
1192
- count: z.ZodNumber;
1193
- description: z.ZodString;
1194
- fix: z.ZodString;
1195
- }, z.core.$strip>>;
1196
- }, z.core.$strip>, z.ZodObject<{
1197
- readonly view: z.ZodLiteral<"urls">;
1198
- readonly total: z.ZodNumber;
1199
- readonly limit: z.ZodNumber;
1200
- readonly offset: z.ZodNumber;
1201
- readonly hasMore: z.ZodBoolean;
1202
- readonly urls: z.ZodArray<z.ZodObject<{
1203
- readonly url: z.ZodString;
1204
- readonly verdict: z.ZodNullable<z.ZodString>;
1205
- readonly coverageState: z.ZodNullable<z.ZodString>;
1206
- readonly indexingState: z.ZodNullable<z.ZodString>;
1207
- readonly userCanonical: z.ZodNullable<z.ZodString>;
1208
- readonly googleCanonical: z.ZodNullable<z.ZodString>;
1209
- readonly lastCrawlTime: z.ZodNullable<z.ZodString>;
1210
- readonly lastCheckedAt: z.ZodString;
1211
- }, z.core.$strip>>;
1212
- }, z.core.$strip>], "view">;
1213
- client: z.ZodDiscriminatedUnion<[z.ZodObject<{
1214
- readonly view: z.ZodLiteral<"summary">;
1215
- readonly totalUrls: z.ZodNumber;
1216
- readonly indexed: z.ZodNumber;
1217
- readonly asOf: z.ZodNullable<z.ZodString>;
1218
- readonly issues: z.ZodArray<z.ZodObject<{
1219
- type: z.ZodString;
1220
- label: z.ZodString;
1221
- severity: z.ZodEnum<{
1222
- error: "error";
1223
- warning: "warning";
1224
- info: "info";
1225
- }>;
1226
- count: z.ZodNumber;
1227
- description: z.ZodString;
1228
- fix: z.ZodString;
1229
- }, z.core.$strip>>;
1230
- }, z.core.$strip>, z.ZodObject<{
1231
- readonly view: z.ZodLiteral<"urls">;
1232
- readonly total: z.ZodNumber;
1233
- readonly limit: z.ZodNumber;
1234
- readonly offset: z.ZodNumber;
1235
- readonly hasMore: z.ZodBoolean;
1236
- readonly urls: z.ZodArray<z.ZodObject<{
1237
- readonly url: z.ZodString;
1238
- readonly verdict: z.ZodNullable<z.ZodString>;
1239
- readonly coverageState: z.ZodNullable<z.ZodString>;
1240
- readonly indexingState: z.ZodNullable<z.ZodString>;
1241
- readonly userCanonical: z.ZodNullable<z.ZodString>;
1242
- readonly googleCanonical: z.ZodNullable<z.ZodString>;
1243
- readonly lastCrawlTime: z.ZodNullable<z.ZodString>;
1244
- readonly lastCheckedAt: z.ZodString;
1245
- }, z.core.$strip>>;
1246
- }, z.core.$strip>], "view">;
1247
- };
1248
- export declare const indexingDiagnosticsResponseSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1249
- data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1250
- readonly view: z.ZodLiteral<"summary">;
1251
- readonly totalUrls: z.ZodNumber;
1252
- readonly indexed: z.ZodNumber;
1253
- readonly asOf: z.ZodNullable<z.ZodString>;
1254
- readonly issues: z.ZodArray<z.ZodObject<{
1255
- type: z.ZodString;
1256
- label: z.ZodString;
1257
- severity: z.ZodEnum<{
1258
- error: "error";
1259
- warning: "warning";
1260
- info: "info";
1261
- }>;
1262
- count: z.ZodNumber;
1263
- description: z.ZodString;
1264
- fix: z.ZodString;
1265
- }, z.core.$strip>>;
1266
- }, z.core.$strip>, z.ZodObject<{
1267
- readonly view: z.ZodLiteral<"urls">;
1268
- readonly total: z.ZodNumber;
1269
- readonly limit: z.ZodNumber;
1270
- readonly offset: z.ZodNumber;
1271
- readonly hasMore: z.ZodBoolean;
1272
- readonly urls: z.ZodArray<z.ZodObject<{
1273
- readonly url: z.ZodString;
1274
- readonly verdict: z.ZodNullable<z.ZodString>;
1275
- readonly coverageState: z.ZodNullable<z.ZodString>;
1276
- readonly indexingState: z.ZodNullable<z.ZodString>;
1277
- readonly userCanonical: z.ZodNullable<z.ZodString>;
1278
- readonly googleCanonical: z.ZodNullable<z.ZodString>;
1279
- readonly lastCrawlTime: z.ZodNullable<z.ZodString>;
1280
- readonly lastCheckedAt: z.ZodString;
1281
- }, z.core.$strip>>;
1282
- }, z.core.$strip>], "view">;
1283
- meta: z.ZodObject<{
1284
- requestId: z.ZodString;
1285
- version: z.ZodLiteral<"1.0">;
1286
- }, z.core.$strict>;
1287
- }, z.core.$strip>, z.ZodObject<{
1288
- data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1289
- readonly view: z.ZodLiteral<"summary">;
1290
- readonly totalUrls: z.ZodNumber;
1291
- readonly indexed: z.ZodNumber;
1292
- readonly asOf: z.ZodNullable<z.ZodString>;
1293
- readonly issues: z.ZodArray<z.ZodObject<{
1294
- type: z.ZodString;
1295
- label: z.ZodString;
1296
- severity: z.ZodEnum<{
1297
- error: "error";
1298
- warning: "warning";
1299
- info: "info";
1300
- }>;
1301
- count: z.ZodNumber;
1302
- description: z.ZodString;
1303
- fix: z.ZodString;
1304
- }, z.core.$strip>>;
1305
- }, z.core.$strip>, z.ZodObject<{
1306
- readonly view: z.ZodLiteral<"urls">;
1307
- readonly total: z.ZodNumber;
1308
- readonly limit: z.ZodNumber;
1309
- readonly offset: z.ZodNumber;
1310
- readonly hasMore: z.ZodBoolean;
1311
- readonly urls: z.ZodArray<z.ZodObject<{
1312
- readonly url: z.ZodString;
1313
- readonly verdict: z.ZodNullable<z.ZodString>;
1314
- readonly coverageState: z.ZodNullable<z.ZodString>;
1315
- readonly indexingState: z.ZodNullable<z.ZodString>;
1316
- readonly userCanonical: z.ZodNullable<z.ZodString>;
1317
- readonly googleCanonical: z.ZodNullable<z.ZodString>;
1318
- readonly lastCrawlTime: z.ZodNullable<z.ZodString>;
1319
- readonly lastCheckedAt: z.ZodString;
1320
- }, z.core.$strip>>;
1321
- }, z.core.$strip>], "view">;
1322
- meta: z.ZodObject<{
1323
- requestId: z.ZodString;
1324
- version: z.ZodLiteral<"1.0">;
1325
- }, z.core.$loose>;
1326
- }, z.core.$strip>>;
1327
- export declare const indexingHistoryQuerySchema: z.ZodObject<{
1328
- url: z.ZodOptional<z.ZodString>;
1329
- field: z.ZodOptional<z.ZodEnum<{
1330
- coverageState: "coverageState";
1331
- indexingState: "indexingState";
1332
- robotsTxtState: "robotsTxtState";
1333
- pageFetchState: "pageFetchState";
1334
- googleCanonical: "googleCanonical";
1335
- indexStatus: "indexStatus";
1336
- }>>;
1337
- days: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1338
- }, z.core.$strict>;
1339
- export declare const indexingHistoryDataSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1340
- readonly scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
1341
- _tag: z.ZodLiteral<"url">;
1342
- url: z.ZodString;
1343
- }, z.core.$strict>, z.ZodObject<{
1344
- _tag: z.ZodLiteral<"site">;
1345
- field: z.ZodEnum<{
1346
- coverageState: "coverageState";
1347
- indexingState: "indexingState";
1348
- robotsTxtState: "robotsTxtState";
1349
- pageFetchState: "pageFetchState";
1350
- googleCanonical: "googleCanonical";
1351
- indexStatus: "indexStatus";
1352
- }>;
1353
- }, z.core.$strict>], "_tag">;
1354
- readonly startDate: z.ZodString;
1355
- readonly endDate: z.ZodString;
1356
- readonly complete: z.ZodBoolean;
1357
- readonly resolvedUrl: z.ZodNullable<z.ZodString>;
1358
- readonly unchanged: z.ZodNullable<z.ZodObject<{
1359
- readonly observations: z.ZodNullable<z.ZodNumber>;
1360
- readonly firstObservedDay: z.ZodNullable<z.ZodString>;
1361
- readonly lastObservedDay: z.ZodNullable<z.ZodString>;
1362
- }, z.core.$strip>>;
1363
- readonly changes: z.ZodArray<z.ZodObject<{
1364
- readonly url: z.ZodString;
1365
- readonly field: z.ZodEnum<{
1366
- coverageState: "coverageState";
1367
- indexingState: "indexingState";
1368
- robotsTxtState: "robotsTxtState";
1369
- pageFetchState: "pageFetchState";
1370
- googleCanonical: "googleCanonical";
1371
- indexStatus: "indexStatus";
1644
+ readonly startDate: z.ZodString;
1645
+ readonly endDate: z.ZodString;
1646
+ readonly complete: z.ZodBoolean;
1647
+ readonly resolvedUrl: z.ZodNullable<z.ZodString>;
1648
+ readonly unchanged: z.ZodNullable<z.ZodObject<{
1649
+ readonly observations: z.ZodNullable<z.ZodNumber>;
1650
+ readonly firstObservedDay: z.ZodNullable<z.ZodString>;
1651
+ readonly lastObservedDay: z.ZodNullable<z.ZodString>;
1652
+ }, z.core.$strip>>;
1653
+ readonly changes: z.ZodArray<z.ZodObject<{
1654
+ readonly url: z.ZodString;
1655
+ readonly field: z.ZodEnum<{
1656
+ coverageState: "coverageState";
1657
+ indexingState: "indexingState";
1658
+ robotsTxtState: "robotsTxtState";
1659
+ pageFetchState: "pageFetchState";
1660
+ googleCanonical: "googleCanonical";
1661
+ indexStatus: "indexStatus";
1372
1662
  }>;
1373
1663
  readonly fromValue: z.ZodNullable<z.ZodString>;
1374
1664
  readonly toValue: z.ZodNullable<z.ZodString>;
@@ -1936,7 +2226,8 @@ export declare const searchAnalyticsQueryOperation: {
1936
2226
  readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
1937
2227
  data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1938
2228
  readonly site: z.ZodString;
1939
- readonly type: z.ZodLiteral<"pages">;
2229
+ readonly view: z.ZodLiteral<"pages">;
2230
+ readonly type: z.ZodDefault<z.ZodLiteral<"pages">>;
1940
2231
  readonly period: z.ZodEnum<{
1941
2232
  "12m": "12m";
1942
2233
  "28d": "28d";
@@ -1970,7 +2261,8 @@ export declare const searchAnalyticsQueryOperation: {
1970
2261
  }, z.core.$strip>>;
1971
2262
  }, z.core.$strip>, z.ZodObject<{
1972
2263
  readonly site: z.ZodString;
1973
- readonly type: z.ZodLiteral<"keywords">;
2264
+ readonly view: z.ZodLiteral<"keywords">;
2265
+ readonly type: z.ZodDefault<z.ZodLiteral<"keywords">>;
1974
2266
  readonly period: z.ZodEnum<{
1975
2267
  "12m": "12m";
1976
2268
  "28d": "28d";
@@ -2004,7 +2296,8 @@ export declare const searchAnalyticsQueryOperation: {
2004
2296
  }, z.core.$strip>>;
2005
2297
  }, z.core.$strip>, z.ZodObject<{
2006
2298
  readonly site: z.ZodString;
2007
- readonly type: z.ZodLiteral<"countries">;
2299
+ readonly view: z.ZodLiteral<"countries">;
2300
+ readonly type: z.ZodDefault<z.ZodLiteral<"countries">>;
2008
2301
  readonly period: z.ZodEnum<{
2009
2302
  "12m": "12m";
2010
2303
  "28d": "28d";
@@ -2036,7 +2329,8 @@ export declare const searchAnalyticsQueryOperation: {
2036
2329
  }, z.core.$strip>>;
2037
2330
  }, z.core.$strip>, z.ZodObject<{
2038
2331
  readonly site: z.ZodString;
2039
- readonly type: z.ZodLiteral<"devices">;
2332
+ readonly view: z.ZodLiteral<"devices">;
2333
+ readonly type: z.ZodDefault<z.ZodLiteral<"devices">>;
2040
2334
  readonly period: z.ZodEnum<{
2041
2335
  "12m": "12m";
2042
2336
  "28d": "28d";
@@ -2066,7 +2360,8 @@ export declare const searchAnalyticsQueryOperation: {
2066
2360
  }, z.core.$strip>>;
2067
2361
  }, z.core.$strip>, z.ZodObject<{
2068
2362
  readonly site: z.ZodString;
2069
- readonly type: z.ZodLiteral<"timeseries">;
2363
+ readonly view: z.ZodLiteral<"timeseries">;
2364
+ readonly type: z.ZodDefault<z.ZodLiteral<"timeseries">>;
2070
2365
  readonly period: z.ZodEnum<{
2071
2366
  "12m": "12m";
2072
2367
  "28d": "28d";
@@ -2095,7 +2390,8 @@ export declare const searchAnalyticsQueryOperation: {
2095
2390
  }, z.core.$strip>>;
2096
2391
  }, z.core.$strip>, z.ZodObject<{
2097
2392
  readonly site: z.ZodString;
2098
- readonly type: z.ZodLiteral<"page-detail">;
2393
+ readonly view: z.ZodLiteral<"page-detail">;
2394
+ readonly type: z.ZodDefault<z.ZodLiteral<"page-detail">>;
2099
2395
  readonly pageUrl: z.ZodString;
2100
2396
  readonly period: z.ZodEnum<{
2101
2397
  "12m": "12m";
@@ -2121,7 +2417,8 @@ export declare const searchAnalyticsQueryOperation: {
2121
2417
  }, z.core.$strip>>;
2122
2418
  }, z.core.$strip>, z.ZodObject<{
2123
2419
  readonly site: z.ZodString;
2124
- readonly type: z.ZodLiteral<"keyword-detail">;
2420
+ readonly view: z.ZodLiteral<"keyword-detail">;
2421
+ readonly type: z.ZodDefault<z.ZodLiteral<"keyword-detail">>;
2125
2422
  readonly keyword: z.ZodString;
2126
2423
  readonly period: z.ZodEnum<{
2127
2424
  "12m": "12m";
@@ -2147,7 +2444,8 @@ export declare const searchAnalyticsQueryOperation: {
2147
2444
  }, z.core.$strip>>;
2148
2445
  }, z.core.$strip>, z.ZodObject<{
2149
2446
  readonly site: z.ZodString;
2150
- readonly type: z.ZodLiteral<"analysis">;
2447
+ readonly view: z.ZodLiteral<"analysis">;
2448
+ readonly type: z.ZodDefault<z.ZodLiteral<"analysis">>;
2151
2449
  readonly preset: z.ZodEnum<{
2152
2450
  "striking-distance": "striking-distance";
2153
2451
  opportunity: "opportunity";
@@ -2185,264 +2483,401 @@ export declare const searchAnalyticsQueryOperation: {
2185
2483
  readonly decayPct: z.ZodOptional<z.ZodNumber>;
2186
2484
  readonly missedClicks: z.ZodOptional<z.ZodNumber>;
2187
2485
  }, z.core.$strip>>;
2188
- }, z.core.$strip>], "type">;
2486
+ }, z.core.$strip>], "view">;
2189
2487
  meta: z.ZodObject<{
2190
2488
  requestId: z.ZodString;
2191
2489
  version: z.ZodLiteral<"1.0">;
2192
2490
  }, z.core.$strict>;
2193
2491
  }, z.core.$strip>, z.ZodObject<{
2194
- data: z.ZodDiscriminatedUnion<[z.ZodObject<{
2195
- readonly site: z.ZodString;
2196
- readonly type: z.ZodLiteral<"pages">;
2197
- readonly period: z.ZodEnum<{
2198
- "12m": "12m";
2199
- "28d": "28d";
2200
- "3m": "3m";
2201
- "6m": "6m";
2202
- "7d": "7d";
2203
- }>;
2204
- readonly total: z.ZodNumber;
2205
- readonly totals: z.ZodNullable<z.ZodObject<{
2206
- clicks: z.ZodNumber;
2207
- impressions: z.ZodNumber;
2208
- ctr: z.ZodNumber;
2209
- position: z.ZodNumber;
2210
- }, z.core.$strip>>;
2211
- readonly totalsScope: z.ZodString;
2212
- readonly representedTotals: z.ZodObject<{
2213
- readonly clicks: z.ZodNumber;
2214
- readonly impressions: z.ZodNumber;
2215
- }, z.core.$strip>;
2216
- readonly representedTotalsScope: z.ZodString;
2217
- readonly rows: z.ZodArray<z.ZodObject<{
2218
- readonly url: z.ZodString;
2219
- readonly clicks: z.ZodNumber;
2220
- readonly impressions: z.ZodNumber;
2221
- readonly ctr: z.ZodNumber;
2222
- readonly pos: z.ZodNumber;
2223
- readonly keyword: z.ZodNullable<z.ZodString>;
2224
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
2225
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
2226
- readonly change: z.ZodNullable<z.ZodNumber>;
2227
- }, z.core.$strip>>;
2228
- }, z.core.$strip>, z.ZodObject<{
2229
- readonly site: z.ZodString;
2230
- readonly type: z.ZodLiteral<"keywords">;
2231
- readonly period: z.ZodEnum<{
2232
- "12m": "12m";
2233
- "28d": "28d";
2234
- "3m": "3m";
2235
- "6m": "6m";
2236
- "7d": "7d";
2237
- }>;
2238
- readonly total: z.ZodNumber;
2239
- readonly totals: z.ZodNullable<z.ZodObject<{
2240
- clicks: z.ZodNumber;
2241
- impressions: z.ZodNumber;
2242
- ctr: z.ZodNumber;
2243
- position: z.ZodNumber;
2244
- }, z.core.$strip>>;
2245
- readonly totalsScope: z.ZodString;
2246
- readonly representedTotals: z.ZodObject<{
2247
- readonly clicks: z.ZodNumber;
2248
- readonly impressions: z.ZodNumber;
2249
- }, z.core.$strip>;
2250
- readonly representedTotalsScope: z.ZodString;
2251
- readonly rows: z.ZodArray<z.ZodObject<{
2252
- readonly keyword: z.ZodString;
2253
- readonly clicks: z.ZodNumber;
2254
- readonly impressions: z.ZodNumber;
2255
- readonly ctr: z.ZodNumber;
2256
- readonly pos: z.ZodNumber;
2257
- readonly topPage: z.ZodNullable<z.ZodString>;
2258
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
2259
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
2260
- readonly change: z.ZodNullable<z.ZodNumber>;
2261
- }, z.core.$strip>>;
2262
- }, z.core.$strip>, z.ZodObject<{
2263
- readonly site: z.ZodString;
2264
- readonly type: z.ZodLiteral<"countries">;
2265
- readonly period: z.ZodEnum<{
2266
- "12m": "12m";
2267
- "28d": "28d";
2268
- "3m": "3m";
2269
- "6m": "6m";
2270
- "7d": "7d";
2271
- }>;
2272
- readonly total: z.ZodNumber;
2273
- readonly totals: z.ZodNullable<z.ZodObject<{
2274
- clicks: z.ZodNumber;
2275
- impressions: z.ZodNumber;
2276
- ctr: z.ZodNumber;
2277
- position: z.ZodNumber;
2278
- }, z.core.$strip>>;
2279
- readonly totalsScope: z.ZodString;
2280
- readonly representedTotals: z.ZodObject<{
2281
- readonly clicks: z.ZodNumber;
2282
- readonly impressions: z.ZodNumber;
2283
- }, z.core.$strip>;
2284
- readonly representedTotalsScope: z.ZodString;
2285
- readonly rows: z.ZodArray<z.ZodObject<{
2286
- readonly country: z.ZodString;
2287
- readonly clicks: z.ZodNumber;
2288
- readonly impressions: z.ZodNumber;
2289
- readonly ctr: z.ZodNumber;
2290
- readonly pos: z.ZodNumber;
2291
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
2292
- readonly change: z.ZodNullable<z.ZodNumber>;
2293
- }, z.core.$strip>>;
2294
- }, z.core.$strip>, z.ZodObject<{
2295
- readonly site: z.ZodString;
2296
- readonly type: z.ZodLiteral<"devices">;
2297
- readonly period: z.ZodEnum<{
2298
- "12m": "12m";
2299
- "28d": "28d";
2300
- "3m": "3m";
2301
- "6m": "6m";
2302
- "7d": "7d";
2303
- }>;
2304
- readonly total: z.ZodNumber;
2305
- readonly totals: z.ZodNullable<z.ZodObject<{
2306
- clicks: z.ZodNumber;
2307
- impressions: z.ZodNumber;
2308
- ctr: z.ZodNumber;
2309
- position: z.ZodNumber;
2310
- }, z.core.$strip>>;
2311
- readonly totalsScope: z.ZodString;
2312
- readonly representedTotals: z.ZodObject<{
2313
- readonly clicks: z.ZodNumber;
2314
- readonly impressions: z.ZodNumber;
2315
- }, z.core.$strip>;
2316
- readonly representedTotalsScope: z.ZodString;
2317
- readonly rows: z.ZodArray<z.ZodObject<{
2318
- readonly device: z.ZodString;
2319
- readonly clicks: z.ZodNumber;
2320
- readonly impressions: z.ZodNumber;
2321
- readonly ctr: z.ZodNumber;
2322
- readonly pos: z.ZodNumber;
2323
- }, z.core.$strip>>;
2324
- }, z.core.$strip>, z.ZodObject<{
2325
- readonly site: z.ZodString;
2326
- readonly type: z.ZodLiteral<"timeseries">;
2327
- readonly period: z.ZodEnum<{
2328
- "12m": "12m";
2329
- "28d": "28d";
2330
- "3m": "3m";
2331
- "6m": "6m";
2332
- "7d": "7d";
2333
- }>;
2334
- readonly totals: z.ZodNullable<z.ZodObject<{
2335
- clicks: z.ZodNumber;
2336
- impressions: z.ZodNumber;
2337
- ctr: z.ZodNumber;
2338
- position: z.ZodNumber;
2339
- }, z.core.$strip>>;
2340
- readonly prevTotals: z.ZodNullable<z.ZodObject<{
2341
- clicks: z.ZodNumber;
2342
- impressions: z.ZodNumber;
2343
- ctr: z.ZodNumber;
2344
- position: z.ZodNumber;
2345
- }, z.core.$strip>>;
2346
- readonly daily: z.ZodArray<z.ZodObject<{
2347
- readonly date: z.ZodString;
2348
- readonly clicks: z.ZodNumber;
2349
- readonly impressions: z.ZodNumber;
2350
- readonly ctr: z.ZodNumber;
2351
- readonly pos: z.ZodNumber;
2352
- }, z.core.$strip>>;
2353
- }, z.core.$strip>, z.ZodObject<{
2354
- readonly site: z.ZodString;
2355
- readonly type: z.ZodLiteral<"page-detail">;
2356
- readonly pageUrl: z.ZodString;
2357
- readonly period: z.ZodEnum<{
2358
- "12m": "12m";
2359
- "28d": "28d";
2360
- "3m": "3m";
2361
- "6m": "6m";
2362
- "7d": "7d";
2363
- }>;
2364
- readonly totals: z.ZodNullable<z.ZodObject<{
2365
- clicks: z.ZodNumber;
2366
- impressions: z.ZodNumber;
2367
- ctr: z.ZodNumber;
2368
- position: z.ZodNumber;
2369
- }, z.core.$strip>>;
2370
- readonly rows: z.ZodArray<z.ZodObject<{
2371
- readonly keyword: z.ZodString;
2372
- readonly clicks: z.ZodNumber;
2373
- readonly impressions: z.ZodNumber;
2374
- readonly ctr: z.ZodNumber;
2375
- readonly pos: z.ZodNumber;
2376
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
2377
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
2378
- }, z.core.$strip>>;
2379
- }, z.core.$strip>, z.ZodObject<{
2380
- readonly site: z.ZodString;
2381
- readonly type: z.ZodLiteral<"keyword-detail">;
2382
- readonly keyword: z.ZodString;
2383
- readonly period: z.ZodEnum<{
2384
- "12m": "12m";
2385
- "28d": "28d";
2386
- "3m": "3m";
2387
- "6m": "6m";
2388
- "7d": "7d";
2389
- }>;
2390
- readonly totals: z.ZodNullable<z.ZodObject<{
2391
- clicks: z.ZodNumber;
2392
- impressions: z.ZodNumber;
2393
- ctr: z.ZodNumber;
2394
- position: z.ZodNumber;
2395
- }, z.core.$strip>>;
2396
- readonly rows: z.ZodArray<z.ZodObject<{
2397
- readonly page: z.ZodString;
2398
- readonly clicks: z.ZodNumber;
2399
- readonly impressions: z.ZodNumber;
2400
- readonly ctr: z.ZodNumber;
2401
- readonly pos: z.ZodNumber;
2402
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
2403
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
2404
- }, z.core.$strip>>;
2405
- }, z.core.$strip>, z.ZodObject<{
2406
- readonly site: z.ZodString;
2407
- readonly type: z.ZodLiteral<"analysis">;
2408
- readonly preset: z.ZodEnum<{
2409
- "striking-distance": "striking-distance";
2410
- opportunity: "opportunity";
2411
- decay: "decay";
2412
- "zero-click": "zero-click";
2413
- "non-brand": "non-brand";
2414
- "brand-only": "brand-only";
2415
- "movers-rising": "movers-rising";
2416
- "movers-declining": "movers-declining";
2417
- }>;
2418
- readonly description: z.ZodString;
2419
- readonly criteria: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
2420
- readonly period: z.ZodEnum<{
2421
- "12m": "12m";
2422
- "28d": "28d";
2423
- "3m": "3m";
2424
- "6m": "6m";
2425
- "7d": "7d";
2426
- }>;
2427
- readonly total: z.ZodNumber;
2428
- readonly summary: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2429
- readonly rows: z.ZodArray<z.ZodObject<{
2430
- readonly keyword: z.ZodString;
2431
- readonly clicks: z.ZodNumber;
2432
- readonly impressions: z.ZodNumber;
2433
- readonly ctr: z.ZodNumber;
2434
- readonly pos: z.ZodNumber;
2435
- readonly page: z.ZodOptional<z.ZodString>;
2436
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
2437
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
2438
- readonly potentialClicks: z.ZodOptional<z.ZodNumber>;
2439
- readonly opportunityScore: z.ZodOptional<z.ZodNumber>;
2440
- readonly clicksChange: z.ZodOptional<z.ZodNumber>;
2441
- readonly posChange: z.ZodOptional<z.ZodNumber>;
2442
- readonly decayPct: z.ZodOptional<z.ZodNumber>;
2443
- readonly missedClicks: z.ZodOptional<z.ZodNumber>;
2444
- }, z.core.$strip>>;
2445
- }, z.core.$strip>], "type">;
2492
+ data: z.ZodType<{
2493
+ site: string;
2494
+ view: "countries";
2495
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2496
+ total: number;
2497
+ totals: {
2498
+ clicks: number;
2499
+ impressions: number;
2500
+ ctr: number;
2501
+ position: number;
2502
+ } | null;
2503
+ totalsScope: string;
2504
+ representedTotals: {
2505
+ clicks: number;
2506
+ impressions: number;
2507
+ };
2508
+ representedTotalsScope: string;
2509
+ rows: {
2510
+ country: string;
2511
+ clicks: number;
2512
+ impressions: number;
2513
+ ctr: number;
2514
+ pos: number;
2515
+ prevClicks?: number | undefined;
2516
+ change: number | null;
2517
+ }[];
2518
+ } | {
2519
+ site: string;
2520
+ view: "devices";
2521
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2522
+ total: number;
2523
+ totals: {
2524
+ clicks: number;
2525
+ impressions: number;
2526
+ ctr: number;
2527
+ position: number;
2528
+ } | null;
2529
+ totalsScope: string;
2530
+ representedTotals: {
2531
+ clicks: number;
2532
+ impressions: number;
2533
+ };
2534
+ representedTotalsScope: string;
2535
+ rows: {
2536
+ device: string;
2537
+ clicks: number;
2538
+ impressions: number;
2539
+ ctr: number;
2540
+ pos: number;
2541
+ }[];
2542
+ } | {
2543
+ site: string;
2544
+ view: "keywords";
2545
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2546
+ total: number;
2547
+ totals: {
2548
+ clicks: number;
2549
+ impressions: number;
2550
+ ctr: number;
2551
+ position: number;
2552
+ } | null;
2553
+ totalsScope: string;
2554
+ representedTotals: {
2555
+ clicks: number;
2556
+ impressions: number;
2557
+ };
2558
+ representedTotalsScope: string;
2559
+ rows: {
2560
+ keyword: string;
2561
+ clicks: number;
2562
+ impressions: number;
2563
+ ctr: number;
2564
+ pos: number;
2565
+ topPage: string | null;
2566
+ prevClicks?: number | undefined;
2567
+ prevPos?: number | undefined;
2568
+ change: number | null;
2569
+ }[];
2570
+ } | {
2571
+ site: string;
2572
+ view: "pages";
2573
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2574
+ total: number;
2575
+ totals: {
2576
+ clicks: number;
2577
+ impressions: number;
2578
+ ctr: number;
2579
+ position: number;
2580
+ } | null;
2581
+ totalsScope: string;
2582
+ representedTotals: {
2583
+ clicks: number;
2584
+ impressions: number;
2585
+ };
2586
+ representedTotalsScope: string;
2587
+ rows: {
2588
+ url: string;
2589
+ clicks: number;
2590
+ impressions: number;
2591
+ ctr: number;
2592
+ pos: number;
2593
+ keyword: string | null;
2594
+ prevClicks?: number | undefined;
2595
+ prevPos?: number | undefined;
2596
+ change: number | null;
2597
+ }[];
2598
+ } | {
2599
+ site: string;
2600
+ view: "timeseries";
2601
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2602
+ totals: {
2603
+ clicks: number;
2604
+ impressions: number;
2605
+ ctr: number;
2606
+ position: number;
2607
+ } | null;
2608
+ prevTotals: {
2609
+ clicks: number;
2610
+ impressions: number;
2611
+ ctr: number;
2612
+ position: number;
2613
+ } | null;
2614
+ daily: {
2615
+ date: string;
2616
+ clicks: number;
2617
+ impressions: number;
2618
+ ctr: number;
2619
+ pos: number;
2620
+ }[];
2621
+ } | {
2622
+ site: string;
2623
+ view: "page-detail";
2624
+ pageUrl: string;
2625
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2626
+ totals: {
2627
+ clicks: number;
2628
+ impressions: number;
2629
+ ctr: number;
2630
+ position: number;
2631
+ } | null;
2632
+ rows: {
2633
+ keyword: string;
2634
+ clicks: number;
2635
+ impressions: number;
2636
+ ctr: number;
2637
+ pos: number;
2638
+ prevClicks?: number | undefined;
2639
+ prevPos?: number | undefined;
2640
+ }[];
2641
+ } | {
2642
+ site: string;
2643
+ view: "keyword-detail";
2644
+ keyword: string;
2645
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2646
+ totals: {
2647
+ clicks: number;
2648
+ impressions: number;
2649
+ ctr: number;
2650
+ position: number;
2651
+ } | null;
2652
+ rows: {
2653
+ page: string;
2654
+ clicks: number;
2655
+ impressions: number;
2656
+ ctr: number;
2657
+ pos: number;
2658
+ prevClicks?: number | undefined;
2659
+ prevPos?: number | undefined;
2660
+ }[];
2661
+ } | {
2662
+ site: string;
2663
+ view: "analysis";
2664
+ preset: "brand-only" | "decay" | "movers-declining" | "movers-rising" | "non-brand" | "opportunity" | "striking-distance" | "zero-click";
2665
+ description: string;
2666
+ criteria: Record<string, string | number | null>;
2667
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2668
+ total: number;
2669
+ summary: Record<string, string | number | boolean | null> | null;
2670
+ rows: {
2671
+ keyword: string;
2672
+ clicks: number;
2673
+ impressions: number;
2674
+ ctr: number;
2675
+ pos: number;
2676
+ page?: string | undefined;
2677
+ prevClicks?: number | undefined;
2678
+ prevPos?: number | undefined;
2679
+ potentialClicks?: number | undefined;
2680
+ opportunityScore?: number | undefined;
2681
+ clicksChange?: number | undefined;
2682
+ posChange?: number | undefined;
2683
+ decayPct?: number | undefined;
2684
+ missedClicks?: number | undefined;
2685
+ }[];
2686
+ }, unknown, z.core.$ZodTypeInternals<{
2687
+ site: string;
2688
+ view: "countries";
2689
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2690
+ total: number;
2691
+ totals: {
2692
+ clicks: number;
2693
+ impressions: number;
2694
+ ctr: number;
2695
+ position: number;
2696
+ } | null;
2697
+ totalsScope: string;
2698
+ representedTotals: {
2699
+ clicks: number;
2700
+ impressions: number;
2701
+ };
2702
+ representedTotalsScope: string;
2703
+ rows: {
2704
+ country: string;
2705
+ clicks: number;
2706
+ impressions: number;
2707
+ ctr: number;
2708
+ pos: number;
2709
+ prevClicks?: number | undefined;
2710
+ change: number | null;
2711
+ }[];
2712
+ } | {
2713
+ site: string;
2714
+ view: "devices";
2715
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2716
+ total: number;
2717
+ totals: {
2718
+ clicks: number;
2719
+ impressions: number;
2720
+ ctr: number;
2721
+ position: number;
2722
+ } | null;
2723
+ totalsScope: string;
2724
+ representedTotals: {
2725
+ clicks: number;
2726
+ impressions: number;
2727
+ };
2728
+ representedTotalsScope: string;
2729
+ rows: {
2730
+ device: string;
2731
+ clicks: number;
2732
+ impressions: number;
2733
+ ctr: number;
2734
+ pos: number;
2735
+ }[];
2736
+ } | {
2737
+ site: string;
2738
+ view: "keywords";
2739
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2740
+ total: number;
2741
+ totals: {
2742
+ clicks: number;
2743
+ impressions: number;
2744
+ ctr: number;
2745
+ position: number;
2746
+ } | null;
2747
+ totalsScope: string;
2748
+ representedTotals: {
2749
+ clicks: number;
2750
+ impressions: number;
2751
+ };
2752
+ representedTotalsScope: string;
2753
+ rows: {
2754
+ keyword: string;
2755
+ clicks: number;
2756
+ impressions: number;
2757
+ ctr: number;
2758
+ pos: number;
2759
+ topPage: string | null;
2760
+ prevClicks?: number | undefined;
2761
+ prevPos?: number | undefined;
2762
+ change: number | null;
2763
+ }[];
2764
+ } | {
2765
+ site: string;
2766
+ view: "pages";
2767
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2768
+ total: number;
2769
+ totals: {
2770
+ clicks: number;
2771
+ impressions: number;
2772
+ ctr: number;
2773
+ position: number;
2774
+ } | null;
2775
+ totalsScope: string;
2776
+ representedTotals: {
2777
+ clicks: number;
2778
+ impressions: number;
2779
+ };
2780
+ representedTotalsScope: string;
2781
+ rows: {
2782
+ url: string;
2783
+ clicks: number;
2784
+ impressions: number;
2785
+ ctr: number;
2786
+ pos: number;
2787
+ keyword: string | null;
2788
+ prevClicks?: number | undefined;
2789
+ prevPos?: number | undefined;
2790
+ change: number | null;
2791
+ }[];
2792
+ } | {
2793
+ site: string;
2794
+ view: "timeseries";
2795
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2796
+ totals: {
2797
+ clicks: number;
2798
+ impressions: number;
2799
+ ctr: number;
2800
+ position: number;
2801
+ } | null;
2802
+ prevTotals: {
2803
+ clicks: number;
2804
+ impressions: number;
2805
+ ctr: number;
2806
+ position: number;
2807
+ } | null;
2808
+ daily: {
2809
+ date: string;
2810
+ clicks: number;
2811
+ impressions: number;
2812
+ ctr: number;
2813
+ pos: number;
2814
+ }[];
2815
+ } | {
2816
+ site: string;
2817
+ view: "page-detail";
2818
+ pageUrl: string;
2819
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2820
+ totals: {
2821
+ clicks: number;
2822
+ impressions: number;
2823
+ ctr: number;
2824
+ position: number;
2825
+ } | null;
2826
+ rows: {
2827
+ keyword: string;
2828
+ clicks: number;
2829
+ impressions: number;
2830
+ ctr: number;
2831
+ pos: number;
2832
+ prevClicks?: number | undefined;
2833
+ prevPos?: number | undefined;
2834
+ }[];
2835
+ } | {
2836
+ site: string;
2837
+ view: "keyword-detail";
2838
+ keyword: string;
2839
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2840
+ totals: {
2841
+ clicks: number;
2842
+ impressions: number;
2843
+ ctr: number;
2844
+ position: number;
2845
+ } | null;
2846
+ rows: {
2847
+ page: string;
2848
+ clicks: number;
2849
+ impressions: number;
2850
+ ctr: number;
2851
+ pos: number;
2852
+ prevClicks?: number | undefined;
2853
+ prevPos?: number | undefined;
2854
+ }[];
2855
+ } | {
2856
+ site: string;
2857
+ view: "analysis";
2858
+ preset: "brand-only" | "decay" | "movers-declining" | "movers-rising" | "non-brand" | "opportunity" | "striking-distance" | "zero-click";
2859
+ description: string;
2860
+ criteria: Record<string, string | number | null>;
2861
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
2862
+ total: number;
2863
+ summary: Record<string, string | number | boolean | null> | null;
2864
+ rows: {
2865
+ keyword: string;
2866
+ clicks: number;
2867
+ impressions: number;
2868
+ ctr: number;
2869
+ pos: number;
2870
+ page?: string | undefined;
2871
+ prevClicks?: number | undefined;
2872
+ prevPos?: number | undefined;
2873
+ potentialClicks?: number | undefined;
2874
+ opportunityScore?: number | undefined;
2875
+ clicksChange?: number | undefined;
2876
+ posChange?: number | undefined;
2877
+ decayPct?: number | undefined;
2878
+ missedClicks?: number | undefined;
2879
+ }[];
2880
+ }, unknown>>;
2446
2881
  meta: z.ZodObject<{
2447
2882
  requestId: z.ZodString;
2448
2883
  version: z.ZodLiteral<"1.0">;
@@ -2474,7 +2909,7 @@ export declare const searchAnalyticsQueryOperation: {
2474
2909
  readonly body: {
2475
2910
  readonly data: {
2476
2911
  readonly site: 'https://example.com';
2477
- readonly type: 'keywords';
2912
+ readonly view: 'keywords';
2478
2913
  readonly period: '28d';
2479
2914
  readonly total: 1;
2480
2915
  readonly totals: {
@@ -3399,15 +3834,537 @@ export declare const urlInspectionReadOperation: {
3399
3834
  }];
3400
3835
  };
3401
3836
  };
3402
- export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
3403
- readonly queryAnalytics: {
3404
- readonly visibility: 'public';
3405
- readonly semantics: {
3406
- readonly kind: 'query';
3407
- readonly sideEffects: 'none';
3408
- readonly retry: 'idempotent';
3409
- readonly readConsistency: 'replica-ok';
3410
- };
3837
+ export declare const indexCohortsQuerySchema: z.ZodObject<{
3838
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3839
+ minSectionPages: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3840
+ }, z.core.$strict>;
3841
+ export declare const establishedCohortSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
3842
+ readonly family: z.ZodString;
3843
+ readonly dimension: z.ZodString;
3844
+ /**
3845
+ * Null when the cohort is not expressible as one path prefix. Every
3846
+ * `lifecycle` cohort is: version-pinned pages span the whole Site, so a
3847
+ * drill-through must fall back to the unfiltered not-indexed list.
3848
+ */
3849
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
3850
+ readonly pages: z.ZodNumber;
3851
+ readonly notIndexed: z.ZodNumber;
3852
+ readonly notIndexedPercent: z.ZodNumber;
3853
+ readonly restOfSitePercent: z.ZodNumber;
3854
+ readonly restOfSitePages: z.ZodNumber;
3855
+ readonly confidenceIntervalLower: z.ZodNumber;
3856
+ readonly confidenceIntervalUpper: z.ZodNumber;
3857
+ /** Families nest, so subtract this before summing notIndexed down the list. */
3858
+ readonly alreadyCountedAbove: z.ZodNumber;
3859
+ }, z.core.$strip>, z.ZodObject<{
3860
+ readonly family: z.ZodString;
3861
+ readonly dimension: z.ZodString;
3862
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
3863
+ readonly pages: z.ZodNumber;
3864
+ readonly notIndexed: z.ZodNumber;
3865
+ readonly notIndexedPercent: z.ZodNumber;
3866
+ readonly restOfSitePercent: z.ZodNumber;
3867
+ readonly restOfSitePages: z.ZodNumber;
3868
+ readonly confidenceIntervalLower: z.ZodNumber;
3869
+ readonly confidenceIntervalUpper: z.ZodNumber;
3870
+ readonly alreadyCountedAbove: z.ZodNumber;
3871
+ }, z.core.$strip>>;
3872
+ export declare const rankedCohortSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
3873
+ readonly family: z.ZodString;
3874
+ readonly pages: z.ZodNumber;
3875
+ readonly notIndexed: z.ZodNumber;
3876
+ readonly notIndexedPercent: z.ZodNumber;
3877
+ /** False means this family has NOT been shown to differ from the rest of the Site. */
3878
+ readonly statisticallyEstablished: z.ZodBoolean;
3879
+ readonly belowMinimumSample: z.ZodBoolean;
3880
+ }, z.core.$strip>, z.ZodObject<{
3881
+ readonly family: z.ZodString;
3882
+ readonly pages: z.ZodNumber;
3883
+ readonly notIndexed: z.ZodNumber;
3884
+ readonly notIndexedPercent: z.ZodNumber;
3885
+ readonly statisticallyEstablished: z.ZodBoolean;
3886
+ readonly belowMinimumSample: z.ZodBoolean;
3887
+ }, z.core.$strip>>;
3888
+ /**
3889
+ * Two lists that mean different things and must never be merged.
3890
+ * `established` holds only families whose Wilson score interval clears the
3891
+ * not-indexed rate of their own complement after a Bonferroni correction; those
3892
+ * are the only rows that may be reported as a finding. `ranked` orders every
3893
+ * family by raw rate with no test applied, so it always answers "where is
3894
+ * indexing worst" — a high rate there is a lead to verify, never a conclusion.
3895
+ */
3896
+ export declare const indexCohortsDataSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
3897
+ readonly analysed: z.ZodBoolean;
3898
+ readonly reason: z.ZodNullable<z.ZodString>;
3899
+ readonly message: z.ZodNullable<z.ZodString>;
3900
+ readonly asOf: z.ZodNullable<z.ZodString>;
3901
+ readonly baseline: z.ZodNullable<z.ZodObject<{
3902
+ pages: z.ZodNumber;
3903
+ notIndexed: z.ZodNumber;
3904
+ notIndexedPercent: z.ZodNumber;
3905
+ }, z.core.$strict>>;
3906
+ readonly coverage: z.ZodNullable<z.ZodObject<{
3907
+ analysed: z.ZodNumber;
3908
+ notIndexedButNeverCrawled: z.ZodNumber;
3909
+ excludedFragments: z.ZodNumber;
3910
+ }, z.core.$strict>>;
3911
+ readonly method: z.ZodNullable<z.ZodString>;
3912
+ readonly familiesTested: z.ZodNumber;
3913
+ readonly established: z.ZodArray<z.ZodObject<{
3914
+ readonly family: z.ZodString;
3915
+ readonly dimension: z.ZodString;
3916
+ /**
3917
+ * Null when the cohort is not expressible as one path prefix. Every
3918
+ * `lifecycle` cohort is: version-pinned pages span the whole Site, so a
3919
+ * drill-through must fall back to the unfiltered not-indexed list.
3920
+ */
3921
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
3922
+ readonly pages: z.ZodNumber;
3923
+ readonly notIndexed: z.ZodNumber;
3924
+ readonly notIndexedPercent: z.ZodNumber;
3925
+ readonly restOfSitePercent: z.ZodNumber;
3926
+ readonly restOfSitePages: z.ZodNumber;
3927
+ readonly confidenceIntervalLower: z.ZodNumber;
3928
+ readonly confidenceIntervalUpper: z.ZodNumber;
3929
+ /** Families nest, so subtract this before summing notIndexed down the list. */
3930
+ readonly alreadyCountedAbove: z.ZodNumber;
3931
+ }, z.core.$strip>>;
3932
+ readonly establishedNote: z.ZodNullable<z.ZodString>;
3933
+ readonly ranked: z.ZodArray<z.ZodObject<{
3934
+ readonly family: z.ZodString;
3935
+ readonly pages: z.ZodNumber;
3936
+ readonly notIndexed: z.ZodNumber;
3937
+ readonly notIndexedPercent: z.ZodNumber;
3938
+ /** False means this family has NOT been shown to differ from the rest of the Site. */
3939
+ readonly statisticallyEstablished: z.ZodBoolean;
3940
+ readonly belowMinimumSample: z.ZodBoolean;
3941
+ }, z.core.$strip>>;
3942
+ readonly rankedTotal: z.ZodNumber;
3943
+ readonly minSectionPages: z.ZodNumber;
3944
+ }, z.core.$strip>, z.ZodObject<{
3945
+ readonly analysed: z.ZodBoolean;
3946
+ readonly reason: z.ZodNullable<z.ZodString>;
3947
+ readonly message: z.ZodNullable<z.ZodString>;
3948
+ readonly asOf: z.ZodNullable<z.ZodString>;
3949
+ readonly baseline: z.ZodNullable<z.ZodObject<{
3950
+ pages: z.ZodNumber;
3951
+ notIndexed: z.ZodNumber;
3952
+ notIndexedPercent: z.ZodNumber;
3953
+ }, z.core.$loose>>;
3954
+ readonly coverage: z.ZodNullable<z.ZodObject<{
3955
+ analysed: z.ZodNumber;
3956
+ notIndexedButNeverCrawled: z.ZodNumber;
3957
+ excludedFragments: z.ZodNumber;
3958
+ }, z.core.$loose>>;
3959
+ readonly method: z.ZodNullable<z.ZodString>;
3960
+ readonly familiesTested: z.ZodNumber;
3961
+ readonly established: z.ZodArray<z.ZodObject<{
3962
+ readonly family: z.ZodString;
3963
+ readonly dimension: z.ZodString;
3964
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
3965
+ readonly pages: z.ZodNumber;
3966
+ readonly notIndexed: z.ZodNumber;
3967
+ readonly notIndexedPercent: z.ZodNumber;
3968
+ readonly restOfSitePercent: z.ZodNumber;
3969
+ readonly restOfSitePages: z.ZodNumber;
3970
+ readonly confidenceIntervalLower: z.ZodNumber;
3971
+ readonly confidenceIntervalUpper: z.ZodNumber;
3972
+ readonly alreadyCountedAbove: z.ZodNumber;
3973
+ }, z.core.$strip>>;
3974
+ readonly establishedNote: z.ZodNullable<z.ZodString>;
3975
+ readonly ranked: z.ZodArray<z.ZodObject<{
3976
+ readonly family: z.ZodString;
3977
+ readonly pages: z.ZodNumber;
3978
+ readonly notIndexed: z.ZodNumber;
3979
+ readonly notIndexedPercent: z.ZodNumber;
3980
+ readonly statisticallyEstablished: z.ZodBoolean;
3981
+ readonly belowMinimumSample: z.ZodBoolean;
3982
+ }, z.core.$strip>>;
3983
+ readonly rankedTotal: z.ZodNumber;
3984
+ readonly minSectionPages: z.ZodNumber;
3985
+ }, z.core.$strip>>;
3986
+ export declare const indexCohortsResponseEnvelopeSchema: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
3987
+ data: z.ZodObject<{
3988
+ readonly analysed: z.ZodBoolean;
3989
+ readonly reason: z.ZodNullable<z.ZodString>;
3990
+ readonly message: z.ZodNullable<z.ZodString>;
3991
+ readonly asOf: z.ZodNullable<z.ZodString>;
3992
+ readonly baseline: z.ZodNullable<z.ZodObject<{
3993
+ pages: z.ZodNumber;
3994
+ notIndexed: z.ZodNumber;
3995
+ notIndexedPercent: z.ZodNumber;
3996
+ }, z.core.$strict>>;
3997
+ readonly coverage: z.ZodNullable<z.ZodObject<{
3998
+ analysed: z.ZodNumber;
3999
+ notIndexedButNeverCrawled: z.ZodNumber;
4000
+ excludedFragments: z.ZodNumber;
4001
+ }, z.core.$strict>>;
4002
+ readonly method: z.ZodNullable<z.ZodString>;
4003
+ readonly familiesTested: z.ZodNumber;
4004
+ readonly established: z.ZodArray<z.ZodObject<{
4005
+ readonly family: z.ZodString;
4006
+ readonly dimension: z.ZodString;
4007
+ /**
4008
+ * Null when the cohort is not expressible as one path prefix. Every
4009
+ * `lifecycle` cohort is: version-pinned pages span the whole Site, so a
4010
+ * drill-through must fall back to the unfiltered not-indexed list.
4011
+ */
4012
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
4013
+ readonly pages: z.ZodNumber;
4014
+ readonly notIndexed: z.ZodNumber;
4015
+ readonly notIndexedPercent: z.ZodNumber;
4016
+ readonly restOfSitePercent: z.ZodNumber;
4017
+ readonly restOfSitePages: z.ZodNumber;
4018
+ readonly confidenceIntervalLower: z.ZodNumber;
4019
+ readonly confidenceIntervalUpper: z.ZodNumber;
4020
+ /** Families nest, so subtract this before summing notIndexed down the list. */
4021
+ readonly alreadyCountedAbove: z.ZodNumber;
4022
+ }, z.core.$strip>>;
4023
+ readonly establishedNote: z.ZodNullable<z.ZodString>;
4024
+ readonly ranked: z.ZodArray<z.ZodObject<{
4025
+ readonly family: z.ZodString;
4026
+ readonly pages: z.ZodNumber;
4027
+ readonly notIndexed: z.ZodNumber;
4028
+ readonly notIndexedPercent: z.ZodNumber;
4029
+ /** False means this family has NOT been shown to differ from the rest of the Site. */
4030
+ readonly statisticallyEstablished: z.ZodBoolean;
4031
+ readonly belowMinimumSample: z.ZodBoolean;
4032
+ }, z.core.$strip>>;
4033
+ readonly rankedTotal: z.ZodNumber;
4034
+ readonly minSectionPages: z.ZodNumber;
4035
+ }, z.core.$strip>;
4036
+ meta: z.ZodObject<{
4037
+ requestId: z.ZodString;
4038
+ version: z.ZodLiteral<"1.0">;
4039
+ }, z.core.$strict>;
4040
+ }, z.core.$strip>, z.ZodObject<{
4041
+ data: z.ZodObject<{
4042
+ readonly analysed: z.ZodBoolean;
4043
+ readonly reason: z.ZodNullable<z.ZodString>;
4044
+ readonly message: z.ZodNullable<z.ZodString>;
4045
+ readonly asOf: z.ZodNullable<z.ZodString>;
4046
+ readonly baseline: z.ZodNullable<z.ZodObject<{
4047
+ pages: z.ZodNumber;
4048
+ notIndexed: z.ZodNumber;
4049
+ notIndexedPercent: z.ZodNumber;
4050
+ }, z.core.$loose>>;
4051
+ readonly coverage: z.ZodNullable<z.ZodObject<{
4052
+ analysed: z.ZodNumber;
4053
+ notIndexedButNeverCrawled: z.ZodNumber;
4054
+ excludedFragments: z.ZodNumber;
4055
+ }, z.core.$loose>>;
4056
+ readonly method: z.ZodNullable<z.ZodString>;
4057
+ readonly familiesTested: z.ZodNumber;
4058
+ readonly established: z.ZodArray<z.ZodObject<{
4059
+ readonly family: z.ZodString;
4060
+ readonly dimension: z.ZodString;
4061
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
4062
+ readonly pages: z.ZodNumber;
4063
+ readonly notIndexed: z.ZodNumber;
4064
+ readonly notIndexedPercent: z.ZodNumber;
4065
+ readonly restOfSitePercent: z.ZodNumber;
4066
+ readonly restOfSitePages: z.ZodNumber;
4067
+ readonly confidenceIntervalLower: z.ZodNumber;
4068
+ readonly confidenceIntervalUpper: z.ZodNumber;
4069
+ readonly alreadyCountedAbove: z.ZodNumber;
4070
+ }, z.core.$strip>>;
4071
+ readonly establishedNote: z.ZodNullable<z.ZodString>;
4072
+ readonly ranked: z.ZodArray<z.ZodObject<{
4073
+ readonly family: z.ZodString;
4074
+ readonly pages: z.ZodNumber;
4075
+ readonly notIndexed: z.ZodNumber;
4076
+ readonly notIndexedPercent: z.ZodNumber;
4077
+ readonly statisticallyEstablished: z.ZodBoolean;
4078
+ readonly belowMinimumSample: z.ZodBoolean;
4079
+ }, z.core.$strip>>;
4080
+ readonly rankedTotal: z.ZodNumber;
4081
+ readonly minSectionPages: z.ZodNumber;
4082
+ }, z.core.$strip>;
4083
+ meta: z.ZodObject<{
4084
+ requestId: z.ZodString;
4085
+ version: z.ZodLiteral<"1.0">;
4086
+ }, z.core.$loose>;
4087
+ }, z.core.$strip>>;
4088
+ export type IndexCohorts = z.output<typeof indexCohortsDataSchema.producer>;
4089
+ export declare const indexCohortsReadOperation: {
4090
+ readonly id: 'sites.search.indexing.cohorts.read';
4091
+ readonly method: 'GET';
4092
+ readonly path: '/api/v1/sites/{siteId}/search/indexing/cohorts';
4093
+ readonly visibility: 'public';
4094
+ readonly semantics: {
4095
+ readonly kind: 'query';
4096
+ readonly sideEffects: 'none';
4097
+ readonly retry: 'idempotent';
4098
+ readonly readConsistency: 'primary';
4099
+ };
4100
+ readonly auth: {
4101
+ readonly credentials: readonly ["session", "api_token"];
4102
+ readonly scopes: readonly ["sites:read"];
4103
+ readonly minimumRole: 'viewer';
4104
+ readonly ownership: 'site';
4105
+ };
4106
+ readonly request: {
4107
+ readonly params: z.ZodObject<{
4108
+ siteId: z.ZodString;
4109
+ }, z.core.$strict>;
4110
+ readonly query: z.ZodObject<{
4111
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4112
+ minSectionPages: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4113
+ }, z.core.$strict>;
4114
+ readonly headers: null;
4115
+ readonly body: null;
4116
+ };
4117
+ readonly responses: {
4118
+ readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
4119
+ data: z.ZodObject<{
4120
+ readonly analysed: z.ZodBoolean;
4121
+ readonly reason: z.ZodNullable<z.ZodString>;
4122
+ readonly message: z.ZodNullable<z.ZodString>;
4123
+ readonly asOf: z.ZodNullable<z.ZodString>;
4124
+ readonly baseline: z.ZodNullable<z.ZodObject<{
4125
+ pages: z.ZodNumber;
4126
+ notIndexed: z.ZodNumber;
4127
+ notIndexedPercent: z.ZodNumber;
4128
+ }, z.core.$strict>>;
4129
+ readonly coverage: z.ZodNullable<z.ZodObject<{
4130
+ analysed: z.ZodNumber;
4131
+ notIndexedButNeverCrawled: z.ZodNumber;
4132
+ excludedFragments: z.ZodNumber;
4133
+ }, z.core.$strict>>;
4134
+ readonly method: z.ZodNullable<z.ZodString>;
4135
+ readonly familiesTested: z.ZodNumber;
4136
+ readonly established: z.ZodArray<z.ZodObject<{
4137
+ readonly family: z.ZodString;
4138
+ readonly dimension: z.ZodString;
4139
+ /**
4140
+ * Null when the cohort is not expressible as one path prefix. Every
4141
+ * `lifecycle` cohort is: version-pinned pages span the whole Site, so a
4142
+ * drill-through must fall back to the unfiltered not-indexed list.
4143
+ */
4144
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
4145
+ readonly pages: z.ZodNumber;
4146
+ readonly notIndexed: z.ZodNumber;
4147
+ readonly notIndexedPercent: z.ZodNumber;
4148
+ readonly restOfSitePercent: z.ZodNumber;
4149
+ readonly restOfSitePages: z.ZodNumber;
4150
+ readonly confidenceIntervalLower: z.ZodNumber;
4151
+ readonly confidenceIntervalUpper: z.ZodNumber;
4152
+ /** Families nest, so subtract this before summing notIndexed down the list. */
4153
+ readonly alreadyCountedAbove: z.ZodNumber;
4154
+ }, z.core.$strip>>;
4155
+ readonly establishedNote: z.ZodNullable<z.ZodString>;
4156
+ readonly ranked: z.ZodArray<z.ZodObject<{
4157
+ readonly family: z.ZodString;
4158
+ readonly pages: z.ZodNumber;
4159
+ readonly notIndexed: z.ZodNumber;
4160
+ readonly notIndexedPercent: z.ZodNumber;
4161
+ /** False means this family has NOT been shown to differ from the rest of the Site. */
4162
+ readonly statisticallyEstablished: z.ZodBoolean;
4163
+ readonly belowMinimumSample: z.ZodBoolean;
4164
+ }, z.core.$strip>>;
4165
+ readonly rankedTotal: z.ZodNumber;
4166
+ readonly minSectionPages: z.ZodNumber;
4167
+ }, z.core.$strip>;
4168
+ meta: z.ZodObject<{
4169
+ requestId: z.ZodString;
4170
+ version: z.ZodLiteral<"1.0">;
4171
+ }, z.core.$strict>;
4172
+ }, z.core.$strip>, z.ZodObject<{
4173
+ data: z.ZodObject<{
4174
+ readonly analysed: z.ZodBoolean;
4175
+ readonly reason: z.ZodNullable<z.ZodString>;
4176
+ readonly message: z.ZodNullable<z.ZodString>;
4177
+ readonly asOf: z.ZodNullable<z.ZodString>;
4178
+ readonly baseline: z.ZodNullable<z.ZodObject<{
4179
+ pages: z.ZodNumber;
4180
+ notIndexed: z.ZodNumber;
4181
+ notIndexedPercent: z.ZodNumber;
4182
+ }, z.core.$loose>>;
4183
+ readonly coverage: z.ZodNullable<z.ZodObject<{
4184
+ analysed: z.ZodNumber;
4185
+ notIndexedButNeverCrawled: z.ZodNumber;
4186
+ excludedFragments: z.ZodNumber;
4187
+ }, z.core.$loose>>;
4188
+ readonly method: z.ZodNullable<z.ZodString>;
4189
+ readonly familiesTested: z.ZodNumber;
4190
+ readonly established: z.ZodArray<z.ZodObject<{
4191
+ readonly family: z.ZodString;
4192
+ readonly dimension: z.ZodString;
4193
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
4194
+ readonly pages: z.ZodNumber;
4195
+ readonly notIndexed: z.ZodNumber;
4196
+ readonly notIndexedPercent: z.ZodNumber;
4197
+ readonly restOfSitePercent: z.ZodNumber;
4198
+ readonly restOfSitePages: z.ZodNumber;
4199
+ readonly confidenceIntervalLower: z.ZodNumber;
4200
+ readonly confidenceIntervalUpper: z.ZodNumber;
4201
+ readonly alreadyCountedAbove: z.ZodNumber;
4202
+ }, z.core.$strip>>;
4203
+ readonly establishedNote: z.ZodNullable<z.ZodString>;
4204
+ readonly ranked: z.ZodArray<z.ZodObject<{
4205
+ readonly family: z.ZodString;
4206
+ readonly pages: z.ZodNumber;
4207
+ readonly notIndexed: z.ZodNumber;
4208
+ readonly notIndexedPercent: z.ZodNumber;
4209
+ readonly statisticallyEstablished: z.ZodBoolean;
4210
+ readonly belowMinimumSample: z.ZodBoolean;
4211
+ }, z.core.$strip>>;
4212
+ readonly rankedTotal: z.ZodNumber;
4213
+ readonly minSectionPages: z.ZodNumber;
4214
+ }, z.core.$strip>;
4215
+ meta: z.ZodObject<{
4216
+ requestId: z.ZodString;
4217
+ version: z.ZodLiteral<"1.0">;
4218
+ }, z.core.$loose>;
4219
+ }, z.core.$strip>>;
4220
+ };
4221
+ readonly errors: readonly ["invalid_request", "unauthorized", "auth_expired", "forbidden", "not_found", "entitlement_required", "conflict", "rate_limited", "contract_violation", "internal_error"];
4222
+ readonly errorResponse: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
4223
+ readonly error: z.ZodObject<{
4224
+ code: z.ZodEnum<{
4225
+ auth_expired: "auth_expired";
4226
+ conflict: "conflict";
4227
+ contract_violation: "contract_violation";
4228
+ entitlement_required: "entitlement_required";
4229
+ forbidden: "forbidden";
4230
+ internal_error: "internal_error";
4231
+ invalid_request: "invalid_request";
4232
+ not_found: "not_found";
4233
+ provider_unavailable: "provider_unavailable";
4234
+ quota_exhausted: "quota_exhausted";
4235
+ rate_limited: "rate_limited";
4236
+ site_ambiguous: "site_ambiguous";
4237
+ stale_evidence: "stale_evidence";
4238
+ unauthorized: "unauthorized";
4239
+ }>;
4240
+ message: z.ZodString;
4241
+ requestId: z.ZodString;
4242
+ retryable: z.ZodBoolean;
4243
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4244
+ }, z.core.$strict>;
4245
+ }, z.core.$strip>, z.ZodObject<{
4246
+ readonly error: z.ZodObject<{
4247
+ code: z.ZodEnum<{
4248
+ auth_expired: "auth_expired";
4249
+ conflict: "conflict";
4250
+ contract_violation: "contract_violation";
4251
+ entitlement_required: "entitlement_required";
4252
+ forbidden: "forbidden";
4253
+ internal_error: "internal_error";
4254
+ invalid_request: "invalid_request";
4255
+ not_found: "not_found";
4256
+ provider_unavailable: "provider_unavailable";
4257
+ quota_exhausted: "quota_exhausted";
4258
+ rate_limited: "rate_limited";
4259
+ site_ambiguous: "site_ambiguous";
4260
+ stale_evidence: "stale_evidence";
4261
+ unauthorized: "unauthorized";
4262
+ }>;
4263
+ message: z.ZodString;
4264
+ requestId: z.ZodString;
4265
+ retryable: z.ZodBoolean;
4266
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4267
+ }, z.core.$loose>;
4268
+ }, z.core.$strip>>;
4269
+ readonly resources: {
4270
+ readonly reads: readonly [{
4271
+ readonly type: 'site.collection';
4272
+ readonly idFrom: 'params.siteId';
4273
+ }];
4274
+ readonly changes: readonly [];
4275
+ };
4276
+ readonly policy: {
4277
+ readonly rate: {
4278
+ readonly name: 'public-v1-fixed-window';
4279
+ readonly limit: 50;
4280
+ readonly windowSeconds: 60;
4281
+ };
4282
+ readonly idempotency: {
4283
+ readonly _tag: 'none';
4284
+ };
4285
+ readonly entitlement: null;
4286
+ readonly meter: null;
4287
+ };
4288
+ readonly lifecycle: {
4289
+ readonly introduced: '1.2.0';
4290
+ };
4291
+ readonly docs: {
4292
+ readonly summary: 'Read indexing by route family';
4293
+ readonly description: 'Returns the not-indexed rate per route family, joined from the Site crawl to Google per-URL index state, so an indexing failure that clusters in one template surfaces as one finding instead of many page-level ones. Read it before listing individual not-indexed URLs. `established` holds only families proven worse than the rest of the Site after a Bonferroni correction; `ranked` orders every family by raw rate with no test applied and is leads only. `analysed: false` means there is no completed crawl or no index state to join, which is not the same as healthy indexing.';
4294
+ readonly tags: readonly ["Search Console"];
4295
+ readonly examples: readonly [{
4296
+ readonly request: {
4297
+ readonly params: {
4298
+ readonly siteId: 'site_01JXYZ';
4299
+ };
4300
+ readonly query: {
4301
+ readonly limit: 12;
4302
+ readonly minSectionPages: 5;
4303
+ };
4304
+ };
4305
+ readonly response: {
4306
+ readonly status: 200;
4307
+ readonly body: {
4308
+ readonly data: {
4309
+ readonly analysed: true;
4310
+ readonly reason: null;
4311
+ readonly message: null;
4312
+ readonly asOf: '2026-09-01T00:00:00.000Z';
4313
+ readonly baseline: {
4314
+ readonly pages: 1200;
4315
+ readonly notIndexed: 180;
4316
+ readonly notIndexedPercent: 15;
4317
+ };
4318
+ readonly coverage: {
4319
+ readonly analysed: 1200;
4320
+ readonly notIndexedButNeverCrawled: 40;
4321
+ readonly excludedFragments: 2;
4322
+ };
4323
+ readonly method: 'Wilson score interval per family against its own complement, Bonferroni-corrected across 9 tested families (critical value z=2.77).';
4324
+ readonly familiesTested: 9;
4325
+ readonly established: readonly [{
4326
+ readonly family: '/docs';
4327
+ readonly dimension: 'depth-1';
4328
+ readonly pathPrefix: '/docs';
4329
+ readonly pages: 420;
4330
+ readonly notIndexed: 150;
4331
+ readonly notIndexedPercent: 35.7;
4332
+ readonly restOfSitePercent: 3.8;
4333
+ readonly restOfSitePages: 780;
4334
+ readonly confidenceIntervalLower: 31.2;
4335
+ readonly confidenceIntervalUpper: 40.4;
4336
+ readonly alreadyCountedAbove: 0;
4337
+ }];
4338
+ readonly establishedNote: null;
4339
+ readonly ranked: readonly [{
4340
+ readonly family: '/docs';
4341
+ readonly pages: 420;
4342
+ readonly notIndexed: 150;
4343
+ readonly notIndexedPercent: 35.7;
4344
+ readonly statisticallyEstablished: true;
4345
+ readonly belowMinimumSample: false;
4346
+ }];
4347
+ readonly rankedTotal: 9;
4348
+ readonly minSectionPages: 5;
4349
+ };
4350
+ readonly meta: {
4351
+ readonly requestId: 'req_01JXYZ';
4352
+ readonly version: '1.0';
4353
+ };
4354
+ };
4355
+ };
4356
+ }];
4357
+ };
4358
+ };
4359
+ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
4360
+ readonly queryAnalytics: {
4361
+ readonly visibility: 'public';
4362
+ readonly semantics: {
4363
+ readonly kind: 'query';
4364
+ readonly sideEffects: 'none';
4365
+ readonly retry: 'idempotent';
4366
+ readonly readConsistency: 'replica-ok';
4367
+ };
3411
4368
  readonly auth: {
3412
4369
  readonly credentials: readonly ['session', 'api_token'];
3413
4370
  readonly scopes: readonly ['sites:read'];
@@ -3444,370 +4401,114 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
3444
4401
  auth_expired: "auth_expired";
3445
4402
  conflict: "conflict";
3446
4403
  contract_violation: "contract_violation";
3447
- entitlement_required: "entitlement_required";
3448
- forbidden: "forbidden";
3449
- internal_error: "internal_error";
3450
- invalid_request: "invalid_request";
3451
- not_found: "not_found";
3452
- provider_unavailable: "provider_unavailable";
3453
- quota_exhausted: "quota_exhausted";
3454
- rate_limited: "rate_limited";
3455
- site_ambiguous: "site_ambiguous";
3456
- stale_evidence: "stale_evidence";
3457
- unauthorized: "unauthorized";
3458
- }>;
3459
- message: z.ZodString;
3460
- requestId: z.ZodString;
3461
- retryable: z.ZodBoolean;
3462
- details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3463
- }, z.core.$loose>;
3464
- }, z.core.$strip>>;
3465
- readonly policy: {
3466
- readonly rate: {
3467
- readonly name: 'public-v1-fixed-window';
3468
- readonly limit: 50;
3469
- readonly windowSeconds: 60;
3470
- };
3471
- readonly idempotency: {
3472
- readonly _tag: 'none';
3473
- };
3474
- readonly entitlement: null;
3475
- readonly meter: null;
3476
- };
3477
- readonly lifecycle: {
3478
- readonly introduced: '1.0.0';
3479
- };
3480
- readonly id: 'sites.search.analytics.query';
3481
- readonly method: 'GET';
3482
- readonly path: '/api/v1/sites/{siteId}/search/analytics';
3483
- readonly request: {
3484
- readonly params: z.ZodObject<{
3485
- siteId: z.ZodString;
3486
- }, z.core.$strict>;
3487
- readonly query: z.ZodObject<{
3488
- view: z.ZodEnum<{
3489
- analysis: "analysis";
3490
- countries: "countries";
3491
- devices: "devices";
3492
- "keyword-detail": "keyword-detail";
3493
- keywords: "keywords";
3494
- "page-detail": "page-detail";
3495
- pages: "pages";
3496
- timeseries: "timeseries";
3497
- }>;
3498
- period: z.ZodDefault<z.ZodEnum<{
3499
- "12m": "12m";
3500
- "28d": "28d";
3501
- "3m": "3m";
3502
- "6m": "6m";
3503
- "7d": "7d";
3504
- }>>;
3505
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3506
- page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3507
- search: z.ZodOptional<z.ZodString>;
3508
- sort: z.ZodDefault<z.ZodEnum<{
3509
- clicks: "clicks";
3510
- ctr: "ctr";
3511
- impressions: "impressions";
3512
- position: "position";
3513
- }>>;
3514
- sortDir: z.ZodDefault<z.ZodEnum<{
3515
- asc: "asc";
3516
- desc: "desc";
3517
- }>>;
3518
- filter: z.ZodOptional<z.ZodEnum<{
3519
- declining: "declining";
3520
- improving: "improving";
3521
- lost: "lost";
3522
- new: "new";
3523
- "top-level": "top-level";
3524
- }>>;
3525
- pageUrl: z.ZodOptional<z.ZodString>;
3526
- keyword: z.ZodOptional<z.ZodString>;
3527
- preset: z.ZodOptional<z.ZodEnum<{
3528
- "striking-distance": "striking-distance";
3529
- opportunity: "opportunity";
3530
- decay: "decay";
3531
- "zero-click": "zero-click";
3532
- "non-brand": "non-brand";
3533
- "brand-only": "brand-only";
3534
- "movers-rising": "movers-rising";
3535
- "movers-declining": "movers-declining";
3536
- }>>;
3537
- brandTerms: z.ZodOptional<z.ZodString>;
3538
- minClicks: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3539
- maxClicks: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3540
- minImpressions: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3541
- maxImpressions: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3542
- minPosition: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3543
- maxPosition: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3544
- maxCtr: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3545
- }, z.core.$strict>;
3546
- readonly headers: null;
3547
- readonly body: null;
3548
- };
3549
- readonly responses: {
3550
- readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
3551
- data: z.ZodDiscriminatedUnion<[z.ZodObject<{
3552
- readonly site: z.ZodString;
3553
- readonly type: z.ZodLiteral<"pages">;
3554
- readonly period: z.ZodEnum<{
3555
- "12m": "12m";
3556
- "28d": "28d";
3557
- "3m": "3m";
3558
- "6m": "6m";
3559
- "7d": "7d";
3560
- }>;
3561
- readonly total: z.ZodNumber;
3562
- readonly totals: z.ZodNullable<z.ZodObject<{
3563
- clicks: z.ZodNumber;
3564
- impressions: z.ZodNumber;
3565
- ctr: z.ZodNumber;
3566
- position: z.ZodNumber;
3567
- }, z.core.$strip>>;
3568
- readonly totalsScope: z.ZodString;
3569
- readonly representedTotals: z.ZodObject<{
3570
- readonly clicks: z.ZodNumber;
3571
- readonly impressions: z.ZodNumber;
3572
- }, z.core.$strip>;
3573
- readonly representedTotalsScope: z.ZodString;
3574
- readonly rows: z.ZodArray<z.ZodObject<{
3575
- readonly url: z.ZodString;
3576
- readonly clicks: z.ZodNumber;
3577
- readonly impressions: z.ZodNumber;
3578
- readonly ctr: z.ZodNumber;
3579
- readonly pos: z.ZodNumber;
3580
- readonly keyword: z.ZodNullable<z.ZodString>;
3581
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
3582
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
3583
- readonly change: z.ZodNullable<z.ZodNumber>;
3584
- }, z.core.$strip>>;
3585
- }, z.core.$strip>, z.ZodObject<{
3586
- readonly site: z.ZodString;
3587
- readonly type: z.ZodLiteral<"keywords">;
3588
- readonly period: z.ZodEnum<{
3589
- "12m": "12m";
3590
- "28d": "28d";
3591
- "3m": "3m";
3592
- "6m": "6m";
3593
- "7d": "7d";
3594
- }>;
3595
- readonly total: z.ZodNumber;
3596
- readonly totals: z.ZodNullable<z.ZodObject<{
3597
- clicks: z.ZodNumber;
3598
- impressions: z.ZodNumber;
3599
- ctr: z.ZodNumber;
3600
- position: z.ZodNumber;
3601
- }, z.core.$strip>>;
3602
- readonly totalsScope: z.ZodString;
3603
- readonly representedTotals: z.ZodObject<{
3604
- readonly clicks: z.ZodNumber;
3605
- readonly impressions: z.ZodNumber;
3606
- }, z.core.$strip>;
3607
- readonly representedTotalsScope: z.ZodString;
3608
- readonly rows: z.ZodArray<z.ZodObject<{
3609
- readonly keyword: z.ZodString;
3610
- readonly clicks: z.ZodNumber;
3611
- readonly impressions: z.ZodNumber;
3612
- readonly ctr: z.ZodNumber;
3613
- readonly pos: z.ZodNumber;
3614
- readonly topPage: z.ZodNullable<z.ZodString>;
3615
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
3616
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
3617
- readonly change: z.ZodNullable<z.ZodNumber>;
3618
- }, z.core.$strip>>;
3619
- }, z.core.$strip>, z.ZodObject<{
3620
- readonly site: z.ZodString;
3621
- readonly type: z.ZodLiteral<"countries">;
3622
- readonly period: z.ZodEnum<{
3623
- "12m": "12m";
3624
- "28d": "28d";
3625
- "3m": "3m";
3626
- "6m": "6m";
3627
- "7d": "7d";
3628
- }>;
3629
- readonly total: z.ZodNumber;
3630
- readonly totals: z.ZodNullable<z.ZodObject<{
3631
- clicks: z.ZodNumber;
3632
- impressions: z.ZodNumber;
3633
- ctr: z.ZodNumber;
3634
- position: z.ZodNumber;
3635
- }, z.core.$strip>>;
3636
- readonly totalsScope: z.ZodString;
3637
- readonly representedTotals: z.ZodObject<{
3638
- readonly clicks: z.ZodNumber;
3639
- readonly impressions: z.ZodNumber;
3640
- }, z.core.$strip>;
3641
- readonly representedTotalsScope: z.ZodString;
3642
- readonly rows: z.ZodArray<z.ZodObject<{
3643
- readonly country: z.ZodString;
3644
- readonly clicks: z.ZodNumber;
3645
- readonly impressions: z.ZodNumber;
3646
- readonly ctr: z.ZodNumber;
3647
- readonly pos: z.ZodNumber;
3648
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
3649
- readonly change: z.ZodNullable<z.ZodNumber>;
3650
- }, z.core.$strip>>;
3651
- }, z.core.$strip>, z.ZodObject<{
3652
- readonly site: z.ZodString;
3653
- readonly type: z.ZodLiteral<"devices">;
3654
- readonly period: z.ZodEnum<{
3655
- "12m": "12m";
3656
- "28d": "28d";
3657
- "3m": "3m";
3658
- "6m": "6m";
3659
- "7d": "7d";
3660
- }>;
3661
- readonly total: z.ZodNumber;
3662
- readonly totals: z.ZodNullable<z.ZodObject<{
3663
- clicks: z.ZodNumber;
3664
- impressions: z.ZodNumber;
3665
- ctr: z.ZodNumber;
3666
- position: z.ZodNumber;
3667
- }, z.core.$strip>>;
3668
- readonly totalsScope: z.ZodString;
3669
- readonly representedTotals: z.ZodObject<{
3670
- readonly clicks: z.ZodNumber;
3671
- readonly impressions: z.ZodNumber;
3672
- }, z.core.$strip>;
3673
- readonly representedTotalsScope: z.ZodString;
3674
- readonly rows: z.ZodArray<z.ZodObject<{
3675
- readonly device: z.ZodString;
3676
- readonly clicks: z.ZodNumber;
3677
- readonly impressions: z.ZodNumber;
3678
- readonly ctr: z.ZodNumber;
3679
- readonly pos: z.ZodNumber;
3680
- }, z.core.$strip>>;
3681
- }, z.core.$strip>, z.ZodObject<{
3682
- readonly site: z.ZodString;
3683
- readonly type: z.ZodLiteral<"timeseries">;
3684
- readonly period: z.ZodEnum<{
3685
- "12m": "12m";
3686
- "28d": "28d";
3687
- "3m": "3m";
3688
- "6m": "6m";
3689
- "7d": "7d";
3690
- }>;
3691
- readonly totals: z.ZodNullable<z.ZodObject<{
3692
- clicks: z.ZodNumber;
3693
- impressions: z.ZodNumber;
3694
- ctr: z.ZodNumber;
3695
- position: z.ZodNumber;
3696
- }, z.core.$strip>>;
3697
- readonly prevTotals: z.ZodNullable<z.ZodObject<{
3698
- clicks: z.ZodNumber;
3699
- impressions: z.ZodNumber;
3700
- ctr: z.ZodNumber;
3701
- position: z.ZodNumber;
3702
- }, z.core.$strip>>;
3703
- readonly daily: z.ZodArray<z.ZodObject<{
3704
- readonly date: z.ZodString;
3705
- readonly clicks: z.ZodNumber;
3706
- readonly impressions: z.ZodNumber;
3707
- readonly ctr: z.ZodNumber;
3708
- readonly pos: z.ZodNumber;
3709
- }, z.core.$strip>>;
3710
- }, z.core.$strip>, z.ZodObject<{
3711
- readonly site: z.ZodString;
3712
- readonly type: z.ZodLiteral<"page-detail">;
3713
- readonly pageUrl: z.ZodString;
3714
- readonly period: z.ZodEnum<{
3715
- "12m": "12m";
3716
- "28d": "28d";
3717
- "3m": "3m";
3718
- "6m": "6m";
3719
- "7d": "7d";
3720
- }>;
3721
- readonly totals: z.ZodNullable<z.ZodObject<{
3722
- clicks: z.ZodNumber;
3723
- impressions: z.ZodNumber;
3724
- ctr: z.ZodNumber;
3725
- position: z.ZodNumber;
3726
- }, z.core.$strip>>;
3727
- readonly rows: z.ZodArray<z.ZodObject<{
3728
- readonly keyword: z.ZodString;
3729
- readonly clicks: z.ZodNumber;
3730
- readonly impressions: z.ZodNumber;
3731
- readonly ctr: z.ZodNumber;
3732
- readonly pos: z.ZodNumber;
3733
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
3734
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
3735
- }, z.core.$strip>>;
3736
- }, z.core.$strip>, z.ZodObject<{
3737
- readonly site: z.ZodString;
3738
- readonly type: z.ZodLiteral<"keyword-detail">;
3739
- readonly keyword: z.ZodString;
3740
- readonly period: z.ZodEnum<{
3741
- "12m": "12m";
3742
- "28d": "28d";
3743
- "3m": "3m";
3744
- "6m": "6m";
3745
- "7d": "7d";
3746
- }>;
3747
- readonly totals: z.ZodNullable<z.ZodObject<{
3748
- clicks: z.ZodNumber;
3749
- impressions: z.ZodNumber;
3750
- ctr: z.ZodNumber;
3751
- position: z.ZodNumber;
3752
- }, z.core.$strip>>;
3753
- readonly rows: z.ZodArray<z.ZodObject<{
3754
- readonly page: z.ZodString;
3755
- readonly clicks: z.ZodNumber;
3756
- readonly impressions: z.ZodNumber;
3757
- readonly ctr: z.ZodNumber;
3758
- readonly pos: z.ZodNumber;
3759
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
3760
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
3761
- }, z.core.$strip>>;
3762
- }, z.core.$strip>, z.ZodObject<{
3763
- readonly site: z.ZodString;
3764
- readonly type: z.ZodLiteral<"analysis">;
3765
- readonly preset: z.ZodEnum<{
3766
- "striking-distance": "striking-distance";
3767
- opportunity: "opportunity";
3768
- decay: "decay";
3769
- "zero-click": "zero-click";
3770
- "non-brand": "non-brand";
3771
- "brand-only": "brand-only";
3772
- "movers-rising": "movers-rising";
3773
- "movers-declining": "movers-declining";
3774
- }>;
3775
- readonly description: z.ZodString;
3776
- readonly criteria: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNull]>>;
3777
- readonly period: z.ZodEnum<{
3778
- "12m": "12m";
3779
- "28d": "28d";
3780
- "3m": "3m";
3781
- "6m": "6m";
3782
- "7d": "7d";
3783
- }>;
3784
- readonly total: z.ZodNumber;
3785
- readonly summary: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3786
- readonly rows: z.ZodArray<z.ZodObject<{
3787
- readonly keyword: z.ZodString;
3788
- readonly clicks: z.ZodNumber;
3789
- readonly impressions: z.ZodNumber;
3790
- readonly ctr: z.ZodNumber;
3791
- readonly pos: z.ZodNumber;
3792
- readonly page: z.ZodOptional<z.ZodString>;
3793
- readonly prevClicks: z.ZodOptional<z.ZodNumber>;
3794
- readonly prevPos: z.ZodOptional<z.ZodNumber>;
3795
- readonly potentialClicks: z.ZodOptional<z.ZodNumber>;
3796
- readonly opportunityScore: z.ZodOptional<z.ZodNumber>;
3797
- readonly clicksChange: z.ZodOptional<z.ZodNumber>;
3798
- readonly posChange: z.ZodOptional<z.ZodNumber>;
3799
- readonly decayPct: z.ZodOptional<z.ZodNumber>;
3800
- readonly missedClicks: z.ZodOptional<z.ZodNumber>;
3801
- }, z.core.$strip>>;
3802
- }, z.core.$strip>], "type">;
3803
- meta: z.ZodObject<{
3804
- requestId: z.ZodString;
3805
- version: z.ZodLiteral<"1.0">;
3806
- }, z.core.$strict>;
3807
- }, z.core.$strip>, z.ZodObject<{
4404
+ entitlement_required: "entitlement_required";
4405
+ forbidden: "forbidden";
4406
+ internal_error: "internal_error";
4407
+ invalid_request: "invalid_request";
4408
+ not_found: "not_found";
4409
+ provider_unavailable: "provider_unavailable";
4410
+ quota_exhausted: "quota_exhausted";
4411
+ rate_limited: "rate_limited";
4412
+ site_ambiguous: "site_ambiguous";
4413
+ stale_evidence: "stale_evidence";
4414
+ unauthorized: "unauthorized";
4415
+ }>;
4416
+ message: z.ZodString;
4417
+ requestId: z.ZodString;
4418
+ retryable: z.ZodBoolean;
4419
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4420
+ }, z.core.$loose>;
4421
+ }, z.core.$strip>>;
4422
+ readonly policy: {
4423
+ readonly rate: {
4424
+ readonly name: 'public-v1-fixed-window';
4425
+ readonly limit: 50;
4426
+ readonly windowSeconds: 60;
4427
+ };
4428
+ readonly idempotency: {
4429
+ readonly _tag: 'none';
4430
+ };
4431
+ readonly entitlement: null;
4432
+ readonly meter: null;
4433
+ };
4434
+ readonly lifecycle: {
4435
+ readonly introduced: '1.0.0';
4436
+ };
4437
+ readonly id: 'sites.search.analytics.query';
4438
+ readonly method: 'GET';
4439
+ readonly path: '/api/v1/sites/{siteId}/search/analytics';
4440
+ readonly request: {
4441
+ readonly params: z.ZodObject<{
4442
+ siteId: z.ZodString;
4443
+ }, z.core.$strict>;
4444
+ readonly query: z.ZodObject<{
4445
+ view: z.ZodEnum<{
4446
+ analysis: "analysis";
4447
+ countries: "countries";
4448
+ devices: "devices";
4449
+ "keyword-detail": "keyword-detail";
4450
+ keywords: "keywords";
4451
+ "page-detail": "page-detail";
4452
+ pages: "pages";
4453
+ timeseries: "timeseries";
4454
+ }>;
4455
+ period: z.ZodDefault<z.ZodEnum<{
4456
+ "12m": "12m";
4457
+ "28d": "28d";
4458
+ "3m": "3m";
4459
+ "6m": "6m";
4460
+ "7d": "7d";
4461
+ }>>;
4462
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4463
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4464
+ search: z.ZodOptional<z.ZodString>;
4465
+ sort: z.ZodDefault<z.ZodEnum<{
4466
+ clicks: "clicks";
4467
+ ctr: "ctr";
4468
+ impressions: "impressions";
4469
+ position: "position";
4470
+ }>>;
4471
+ sortDir: z.ZodDefault<z.ZodEnum<{
4472
+ asc: "asc";
4473
+ desc: "desc";
4474
+ }>>;
4475
+ filter: z.ZodOptional<z.ZodEnum<{
4476
+ declining: "declining";
4477
+ improving: "improving";
4478
+ lost: "lost";
4479
+ new: "new";
4480
+ "top-level": "top-level";
4481
+ }>>;
4482
+ pageUrl: z.ZodOptional<z.ZodString>;
4483
+ keyword: z.ZodOptional<z.ZodString>;
4484
+ preset: z.ZodOptional<z.ZodEnum<{
4485
+ "striking-distance": "striking-distance";
4486
+ opportunity: "opportunity";
4487
+ decay: "decay";
4488
+ "zero-click": "zero-click";
4489
+ "non-brand": "non-brand";
4490
+ "brand-only": "brand-only";
4491
+ "movers-rising": "movers-rising";
4492
+ "movers-declining": "movers-declining";
4493
+ }>>;
4494
+ brandTerms: z.ZodOptional<z.ZodString>;
4495
+ minClicks: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4496
+ maxClicks: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4497
+ minImpressions: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4498
+ maxImpressions: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4499
+ minPosition: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4500
+ maxPosition: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4501
+ maxCtr: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4502
+ }, z.core.$strict>;
4503
+ readonly headers: null;
4504
+ readonly body: null;
4505
+ };
4506
+ readonly responses: {
4507
+ readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
3808
4508
  data: z.ZodDiscriminatedUnion<[z.ZodObject<{
3809
4509
  readonly site: z.ZodString;
3810
- readonly type: z.ZodLiteral<"pages">;
4510
+ readonly view: z.ZodLiteral<"pages">;
4511
+ readonly type: z.ZodDefault<z.ZodLiteral<"pages">>;
3811
4512
  readonly period: z.ZodEnum<{
3812
4513
  "12m": "12m";
3813
4514
  "28d": "28d";
@@ -3841,7 +4542,8 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
3841
4542
  }, z.core.$strip>>;
3842
4543
  }, z.core.$strip>, z.ZodObject<{
3843
4544
  readonly site: z.ZodString;
3844
- readonly type: z.ZodLiteral<"keywords">;
4545
+ readonly view: z.ZodLiteral<"keywords">;
4546
+ readonly type: z.ZodDefault<z.ZodLiteral<"keywords">>;
3845
4547
  readonly period: z.ZodEnum<{
3846
4548
  "12m": "12m";
3847
4549
  "28d": "28d";
@@ -3875,7 +4577,8 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
3875
4577
  }, z.core.$strip>>;
3876
4578
  }, z.core.$strip>, z.ZodObject<{
3877
4579
  readonly site: z.ZodString;
3878
- readonly type: z.ZodLiteral<"countries">;
4580
+ readonly view: z.ZodLiteral<"countries">;
4581
+ readonly type: z.ZodDefault<z.ZodLiteral<"countries">>;
3879
4582
  readonly period: z.ZodEnum<{
3880
4583
  "12m": "12m";
3881
4584
  "28d": "28d";
@@ -3907,7 +4610,8 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
3907
4610
  }, z.core.$strip>>;
3908
4611
  }, z.core.$strip>, z.ZodObject<{
3909
4612
  readonly site: z.ZodString;
3910
- readonly type: z.ZodLiteral<"devices">;
4613
+ readonly view: z.ZodLiteral<"devices">;
4614
+ readonly type: z.ZodDefault<z.ZodLiteral<"devices">>;
3911
4615
  readonly period: z.ZodEnum<{
3912
4616
  "12m": "12m";
3913
4617
  "28d": "28d";
@@ -3937,7 +4641,8 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
3937
4641
  }, z.core.$strip>>;
3938
4642
  }, z.core.$strip>, z.ZodObject<{
3939
4643
  readonly site: z.ZodString;
3940
- readonly type: z.ZodLiteral<"timeseries">;
4644
+ readonly view: z.ZodLiteral<"timeseries">;
4645
+ readonly type: z.ZodDefault<z.ZodLiteral<"timeseries">>;
3941
4646
  readonly period: z.ZodEnum<{
3942
4647
  "12m": "12m";
3943
4648
  "28d": "28d";
@@ -3966,7 +4671,8 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
3966
4671
  }, z.core.$strip>>;
3967
4672
  }, z.core.$strip>, z.ZodObject<{
3968
4673
  readonly site: z.ZodString;
3969
- readonly type: z.ZodLiteral<"page-detail">;
4674
+ readonly view: z.ZodLiteral<"page-detail">;
4675
+ readonly type: z.ZodDefault<z.ZodLiteral<"page-detail">>;
3970
4676
  readonly pageUrl: z.ZodString;
3971
4677
  readonly period: z.ZodEnum<{
3972
4678
  "12m": "12m";
@@ -3992,7 +4698,8 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
3992
4698
  }, z.core.$strip>>;
3993
4699
  }, z.core.$strip>, z.ZodObject<{
3994
4700
  readonly site: z.ZodString;
3995
- readonly type: z.ZodLiteral<"keyword-detail">;
4701
+ readonly view: z.ZodLiteral<"keyword-detail">;
4702
+ readonly type: z.ZodDefault<z.ZodLiteral<"keyword-detail">>;
3996
4703
  readonly keyword: z.ZodString;
3997
4704
  readonly period: z.ZodEnum<{
3998
4705
  "12m": "12m";
@@ -4018,7 +4725,8 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
4018
4725
  }, z.core.$strip>>;
4019
4726
  }, z.core.$strip>, z.ZodObject<{
4020
4727
  readonly site: z.ZodString;
4021
- readonly type: z.ZodLiteral<"analysis">;
4728
+ readonly view: z.ZodLiteral<"analysis">;
4729
+ readonly type: z.ZodDefault<z.ZodLiteral<"analysis">>;
4022
4730
  readonly preset: z.ZodEnum<{
4023
4731
  "striking-distance": "striking-distance";
4024
4732
  opportunity: "opportunity";
@@ -4056,7 +4764,401 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
4056
4764
  readonly decayPct: z.ZodOptional<z.ZodNumber>;
4057
4765
  readonly missedClicks: z.ZodOptional<z.ZodNumber>;
4058
4766
  }, z.core.$strip>>;
4059
- }, z.core.$strip>], "type">;
4767
+ }, z.core.$strip>], "view">;
4768
+ meta: z.ZodObject<{
4769
+ requestId: z.ZodString;
4770
+ version: z.ZodLiteral<"1.0">;
4771
+ }, z.core.$strict>;
4772
+ }, z.core.$strip>, z.ZodObject<{
4773
+ data: z.ZodType<{
4774
+ site: string;
4775
+ view: "countries";
4776
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4777
+ total: number;
4778
+ totals: {
4779
+ clicks: number;
4780
+ impressions: number;
4781
+ ctr: number;
4782
+ position: number;
4783
+ } | null;
4784
+ totalsScope: string;
4785
+ representedTotals: {
4786
+ clicks: number;
4787
+ impressions: number;
4788
+ };
4789
+ representedTotalsScope: string;
4790
+ rows: {
4791
+ country: string;
4792
+ clicks: number;
4793
+ impressions: number;
4794
+ ctr: number;
4795
+ pos: number;
4796
+ prevClicks?: number | undefined;
4797
+ change: number | null;
4798
+ }[];
4799
+ } | {
4800
+ site: string;
4801
+ view: "devices";
4802
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4803
+ total: number;
4804
+ totals: {
4805
+ clicks: number;
4806
+ impressions: number;
4807
+ ctr: number;
4808
+ position: number;
4809
+ } | null;
4810
+ totalsScope: string;
4811
+ representedTotals: {
4812
+ clicks: number;
4813
+ impressions: number;
4814
+ };
4815
+ representedTotalsScope: string;
4816
+ rows: {
4817
+ device: string;
4818
+ clicks: number;
4819
+ impressions: number;
4820
+ ctr: number;
4821
+ pos: number;
4822
+ }[];
4823
+ } | {
4824
+ site: string;
4825
+ view: "keywords";
4826
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4827
+ total: number;
4828
+ totals: {
4829
+ clicks: number;
4830
+ impressions: number;
4831
+ ctr: number;
4832
+ position: number;
4833
+ } | null;
4834
+ totalsScope: string;
4835
+ representedTotals: {
4836
+ clicks: number;
4837
+ impressions: number;
4838
+ };
4839
+ representedTotalsScope: string;
4840
+ rows: {
4841
+ keyword: string;
4842
+ clicks: number;
4843
+ impressions: number;
4844
+ ctr: number;
4845
+ pos: number;
4846
+ topPage: string | null;
4847
+ prevClicks?: number | undefined;
4848
+ prevPos?: number | undefined;
4849
+ change: number | null;
4850
+ }[];
4851
+ } | {
4852
+ site: string;
4853
+ view: "pages";
4854
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4855
+ total: number;
4856
+ totals: {
4857
+ clicks: number;
4858
+ impressions: number;
4859
+ ctr: number;
4860
+ position: number;
4861
+ } | null;
4862
+ totalsScope: string;
4863
+ representedTotals: {
4864
+ clicks: number;
4865
+ impressions: number;
4866
+ };
4867
+ representedTotalsScope: string;
4868
+ rows: {
4869
+ url: string;
4870
+ clicks: number;
4871
+ impressions: number;
4872
+ ctr: number;
4873
+ pos: number;
4874
+ keyword: string | null;
4875
+ prevClicks?: number | undefined;
4876
+ prevPos?: number | undefined;
4877
+ change: number | null;
4878
+ }[];
4879
+ } | {
4880
+ site: string;
4881
+ view: "timeseries";
4882
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4883
+ totals: {
4884
+ clicks: number;
4885
+ impressions: number;
4886
+ ctr: number;
4887
+ position: number;
4888
+ } | null;
4889
+ prevTotals: {
4890
+ clicks: number;
4891
+ impressions: number;
4892
+ ctr: number;
4893
+ position: number;
4894
+ } | null;
4895
+ daily: {
4896
+ date: string;
4897
+ clicks: number;
4898
+ impressions: number;
4899
+ ctr: number;
4900
+ pos: number;
4901
+ }[];
4902
+ } | {
4903
+ site: string;
4904
+ view: "page-detail";
4905
+ pageUrl: string;
4906
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4907
+ totals: {
4908
+ clicks: number;
4909
+ impressions: number;
4910
+ ctr: number;
4911
+ position: number;
4912
+ } | null;
4913
+ rows: {
4914
+ keyword: string;
4915
+ clicks: number;
4916
+ impressions: number;
4917
+ ctr: number;
4918
+ pos: number;
4919
+ prevClicks?: number | undefined;
4920
+ prevPos?: number | undefined;
4921
+ }[];
4922
+ } | {
4923
+ site: string;
4924
+ view: "keyword-detail";
4925
+ keyword: string;
4926
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4927
+ totals: {
4928
+ clicks: number;
4929
+ impressions: number;
4930
+ ctr: number;
4931
+ position: number;
4932
+ } | null;
4933
+ rows: {
4934
+ page: string;
4935
+ clicks: number;
4936
+ impressions: number;
4937
+ ctr: number;
4938
+ pos: number;
4939
+ prevClicks?: number | undefined;
4940
+ prevPos?: number | undefined;
4941
+ }[];
4942
+ } | {
4943
+ site: string;
4944
+ view: "analysis";
4945
+ preset: "brand-only" | "decay" | "movers-declining" | "movers-rising" | "non-brand" | "opportunity" | "striking-distance" | "zero-click";
4946
+ description: string;
4947
+ criteria: Record<string, string | number | null>;
4948
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4949
+ total: number;
4950
+ summary: Record<string, string | number | boolean | null> | null;
4951
+ rows: {
4952
+ keyword: string;
4953
+ clicks: number;
4954
+ impressions: number;
4955
+ ctr: number;
4956
+ pos: number;
4957
+ page?: string | undefined;
4958
+ prevClicks?: number | undefined;
4959
+ prevPos?: number | undefined;
4960
+ potentialClicks?: number | undefined;
4961
+ opportunityScore?: number | undefined;
4962
+ clicksChange?: number | undefined;
4963
+ posChange?: number | undefined;
4964
+ decayPct?: number | undefined;
4965
+ missedClicks?: number | undefined;
4966
+ }[];
4967
+ }, unknown, z.core.$ZodTypeInternals<{
4968
+ site: string;
4969
+ view: "countries";
4970
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4971
+ total: number;
4972
+ totals: {
4973
+ clicks: number;
4974
+ impressions: number;
4975
+ ctr: number;
4976
+ position: number;
4977
+ } | null;
4978
+ totalsScope: string;
4979
+ representedTotals: {
4980
+ clicks: number;
4981
+ impressions: number;
4982
+ };
4983
+ representedTotalsScope: string;
4984
+ rows: {
4985
+ country: string;
4986
+ clicks: number;
4987
+ impressions: number;
4988
+ ctr: number;
4989
+ pos: number;
4990
+ prevClicks?: number | undefined;
4991
+ change: number | null;
4992
+ }[];
4993
+ } | {
4994
+ site: string;
4995
+ view: "devices";
4996
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
4997
+ total: number;
4998
+ totals: {
4999
+ clicks: number;
5000
+ impressions: number;
5001
+ ctr: number;
5002
+ position: number;
5003
+ } | null;
5004
+ totalsScope: string;
5005
+ representedTotals: {
5006
+ clicks: number;
5007
+ impressions: number;
5008
+ };
5009
+ representedTotalsScope: string;
5010
+ rows: {
5011
+ device: string;
5012
+ clicks: number;
5013
+ impressions: number;
5014
+ ctr: number;
5015
+ pos: number;
5016
+ }[];
5017
+ } | {
5018
+ site: string;
5019
+ view: "keywords";
5020
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
5021
+ total: number;
5022
+ totals: {
5023
+ clicks: number;
5024
+ impressions: number;
5025
+ ctr: number;
5026
+ position: number;
5027
+ } | null;
5028
+ totalsScope: string;
5029
+ representedTotals: {
5030
+ clicks: number;
5031
+ impressions: number;
5032
+ };
5033
+ representedTotalsScope: string;
5034
+ rows: {
5035
+ keyword: string;
5036
+ clicks: number;
5037
+ impressions: number;
5038
+ ctr: number;
5039
+ pos: number;
5040
+ topPage: string | null;
5041
+ prevClicks?: number | undefined;
5042
+ prevPos?: number | undefined;
5043
+ change: number | null;
5044
+ }[];
5045
+ } | {
5046
+ site: string;
5047
+ view: "pages";
5048
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
5049
+ total: number;
5050
+ totals: {
5051
+ clicks: number;
5052
+ impressions: number;
5053
+ ctr: number;
5054
+ position: number;
5055
+ } | null;
5056
+ totalsScope: string;
5057
+ representedTotals: {
5058
+ clicks: number;
5059
+ impressions: number;
5060
+ };
5061
+ representedTotalsScope: string;
5062
+ rows: {
5063
+ url: string;
5064
+ clicks: number;
5065
+ impressions: number;
5066
+ ctr: number;
5067
+ pos: number;
5068
+ keyword: string | null;
5069
+ prevClicks?: number | undefined;
5070
+ prevPos?: number | undefined;
5071
+ change: number | null;
5072
+ }[];
5073
+ } | {
5074
+ site: string;
5075
+ view: "timeseries";
5076
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
5077
+ totals: {
5078
+ clicks: number;
5079
+ impressions: number;
5080
+ ctr: number;
5081
+ position: number;
5082
+ } | null;
5083
+ prevTotals: {
5084
+ clicks: number;
5085
+ impressions: number;
5086
+ ctr: number;
5087
+ position: number;
5088
+ } | null;
5089
+ daily: {
5090
+ date: string;
5091
+ clicks: number;
5092
+ impressions: number;
5093
+ ctr: number;
5094
+ pos: number;
5095
+ }[];
5096
+ } | {
5097
+ site: string;
5098
+ view: "page-detail";
5099
+ pageUrl: string;
5100
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
5101
+ totals: {
5102
+ clicks: number;
5103
+ impressions: number;
5104
+ ctr: number;
5105
+ position: number;
5106
+ } | null;
5107
+ rows: {
5108
+ keyword: string;
5109
+ clicks: number;
5110
+ impressions: number;
5111
+ ctr: number;
5112
+ pos: number;
5113
+ prevClicks?: number | undefined;
5114
+ prevPos?: number | undefined;
5115
+ }[];
5116
+ } | {
5117
+ site: string;
5118
+ view: "keyword-detail";
5119
+ keyword: string;
5120
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
5121
+ totals: {
5122
+ clicks: number;
5123
+ impressions: number;
5124
+ ctr: number;
5125
+ position: number;
5126
+ } | null;
5127
+ rows: {
5128
+ page: string;
5129
+ clicks: number;
5130
+ impressions: number;
5131
+ ctr: number;
5132
+ pos: number;
5133
+ prevClicks?: number | undefined;
5134
+ prevPos?: number | undefined;
5135
+ }[];
5136
+ } | {
5137
+ site: string;
5138
+ view: "analysis";
5139
+ preset: "brand-only" | "decay" | "movers-declining" | "movers-rising" | "non-brand" | "opportunity" | "striking-distance" | "zero-click";
5140
+ description: string;
5141
+ criteria: Record<string, string | number | null>;
5142
+ period: "12m" | "28d" | "3m" | "6m" | "7d";
5143
+ total: number;
5144
+ summary: Record<string, string | number | boolean | null> | null;
5145
+ rows: {
5146
+ keyword: string;
5147
+ clicks: number;
5148
+ impressions: number;
5149
+ ctr: number;
5150
+ pos: number;
5151
+ page?: string | undefined;
5152
+ prevClicks?: number | undefined;
5153
+ prevPos?: number | undefined;
5154
+ potentialClicks?: number | undefined;
5155
+ opportunityScore?: number | undefined;
5156
+ clicksChange?: number | undefined;
5157
+ posChange?: number | undefined;
5158
+ decayPct?: number | undefined;
5159
+ missedClicks?: number | undefined;
5160
+ }[];
5161
+ }, unknown>>;
4060
5162
  meta: z.ZodObject<{
4061
5163
  requestId: z.ZodString;
4062
5164
  version: z.ZodLiteral<"1.0">;
@@ -4088,7 +5190,7 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
4088
5190
  readonly body: {
4089
5191
  readonly data: {
4090
5192
  readonly site: 'https://example.com';
4091
- readonly type: 'keywords';
5193
+ readonly view: 'keywords';
4092
5194
  readonly period: '28d';
4093
5195
  readonly total: 1;
4094
5196
  readonly totals: {
@@ -5013,6 +6115,276 @@ export declare const searchV1Registry: import("./core.js").PublicV1Registry<{
5013
6115
  }];
5014
6116
  };
5015
6117
  };
6118
+ readonly readIndexingCohorts: {
6119
+ readonly id: 'sites.search.indexing.cohorts.read';
6120
+ readonly method: 'GET';
6121
+ readonly path: '/api/v1/sites/{siteId}/search/indexing/cohorts';
6122
+ readonly visibility: 'public';
6123
+ readonly semantics: {
6124
+ readonly kind: 'query';
6125
+ readonly sideEffects: 'none';
6126
+ readonly retry: 'idempotent';
6127
+ readonly readConsistency: 'primary';
6128
+ };
6129
+ readonly auth: {
6130
+ readonly credentials: readonly ["session", "api_token"];
6131
+ readonly scopes: readonly ["sites:read"];
6132
+ readonly minimumRole: 'viewer';
6133
+ readonly ownership: 'site';
6134
+ };
6135
+ readonly request: {
6136
+ readonly params: z.ZodObject<{
6137
+ siteId: z.ZodString;
6138
+ }, z.core.$strict>;
6139
+ readonly query: z.ZodObject<{
6140
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6141
+ minSectionPages: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
6142
+ }, z.core.$strict>;
6143
+ readonly headers: null;
6144
+ readonly body: null;
6145
+ };
6146
+ readonly responses: {
6147
+ readonly 200: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
6148
+ data: z.ZodObject<{
6149
+ readonly analysed: z.ZodBoolean;
6150
+ readonly reason: z.ZodNullable<z.ZodString>;
6151
+ readonly message: z.ZodNullable<z.ZodString>;
6152
+ readonly asOf: z.ZodNullable<z.ZodString>;
6153
+ readonly baseline: z.ZodNullable<z.ZodObject<{
6154
+ pages: z.ZodNumber;
6155
+ notIndexed: z.ZodNumber;
6156
+ notIndexedPercent: z.ZodNumber;
6157
+ }, z.core.$strict>>;
6158
+ readonly coverage: z.ZodNullable<z.ZodObject<{
6159
+ analysed: z.ZodNumber;
6160
+ notIndexedButNeverCrawled: z.ZodNumber;
6161
+ excludedFragments: z.ZodNumber;
6162
+ }, z.core.$strict>>;
6163
+ readonly method: z.ZodNullable<z.ZodString>;
6164
+ readonly familiesTested: z.ZodNumber;
6165
+ readonly established: z.ZodArray<z.ZodObject<{
6166
+ readonly family: z.ZodString;
6167
+ readonly dimension: z.ZodString;
6168
+ /**
6169
+ * Null when the cohort is not expressible as one path prefix. Every
6170
+ * `lifecycle` cohort is: version-pinned pages span the whole Site, so a
6171
+ * drill-through must fall back to the unfiltered not-indexed list.
6172
+ */
6173
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
6174
+ readonly pages: z.ZodNumber;
6175
+ readonly notIndexed: z.ZodNumber;
6176
+ readonly notIndexedPercent: z.ZodNumber;
6177
+ readonly restOfSitePercent: z.ZodNumber;
6178
+ readonly restOfSitePages: z.ZodNumber;
6179
+ readonly confidenceIntervalLower: z.ZodNumber;
6180
+ readonly confidenceIntervalUpper: z.ZodNumber;
6181
+ /** Families nest, so subtract this before summing notIndexed down the list. */
6182
+ readonly alreadyCountedAbove: z.ZodNumber;
6183
+ }, z.core.$strip>>;
6184
+ readonly establishedNote: z.ZodNullable<z.ZodString>;
6185
+ readonly ranked: z.ZodArray<z.ZodObject<{
6186
+ readonly family: z.ZodString;
6187
+ readonly pages: z.ZodNumber;
6188
+ readonly notIndexed: z.ZodNumber;
6189
+ readonly notIndexedPercent: z.ZodNumber;
6190
+ /** False means this family has NOT been shown to differ from the rest of the Site. */
6191
+ readonly statisticallyEstablished: z.ZodBoolean;
6192
+ readonly belowMinimumSample: z.ZodBoolean;
6193
+ }, z.core.$strip>>;
6194
+ readonly rankedTotal: z.ZodNumber;
6195
+ readonly minSectionPages: z.ZodNumber;
6196
+ }, z.core.$strip>;
6197
+ meta: z.ZodObject<{
6198
+ requestId: z.ZodString;
6199
+ version: z.ZodLiteral<"1.0">;
6200
+ }, z.core.$strict>;
6201
+ }, z.core.$strip>, z.ZodObject<{
6202
+ data: z.ZodObject<{
6203
+ readonly analysed: z.ZodBoolean;
6204
+ readonly reason: z.ZodNullable<z.ZodString>;
6205
+ readonly message: z.ZodNullable<z.ZodString>;
6206
+ readonly asOf: z.ZodNullable<z.ZodString>;
6207
+ readonly baseline: z.ZodNullable<z.ZodObject<{
6208
+ pages: z.ZodNumber;
6209
+ notIndexed: z.ZodNumber;
6210
+ notIndexedPercent: z.ZodNumber;
6211
+ }, z.core.$loose>>;
6212
+ readonly coverage: z.ZodNullable<z.ZodObject<{
6213
+ analysed: z.ZodNumber;
6214
+ notIndexedButNeverCrawled: z.ZodNumber;
6215
+ excludedFragments: z.ZodNumber;
6216
+ }, z.core.$loose>>;
6217
+ readonly method: z.ZodNullable<z.ZodString>;
6218
+ readonly familiesTested: z.ZodNumber;
6219
+ readonly established: z.ZodArray<z.ZodObject<{
6220
+ readonly family: z.ZodString;
6221
+ readonly dimension: z.ZodString;
6222
+ readonly pathPrefix: z.ZodNullable<z.ZodString>;
6223
+ readonly pages: z.ZodNumber;
6224
+ readonly notIndexed: z.ZodNumber;
6225
+ readonly notIndexedPercent: z.ZodNumber;
6226
+ readonly restOfSitePercent: z.ZodNumber;
6227
+ readonly restOfSitePages: z.ZodNumber;
6228
+ readonly confidenceIntervalLower: z.ZodNumber;
6229
+ readonly confidenceIntervalUpper: z.ZodNumber;
6230
+ readonly alreadyCountedAbove: z.ZodNumber;
6231
+ }, z.core.$strip>>;
6232
+ readonly establishedNote: z.ZodNullable<z.ZodString>;
6233
+ readonly ranked: z.ZodArray<z.ZodObject<{
6234
+ readonly family: z.ZodString;
6235
+ readonly pages: z.ZodNumber;
6236
+ readonly notIndexed: z.ZodNumber;
6237
+ readonly notIndexedPercent: z.ZodNumber;
6238
+ readonly statisticallyEstablished: z.ZodBoolean;
6239
+ readonly belowMinimumSample: z.ZodBoolean;
6240
+ }, z.core.$strip>>;
6241
+ readonly rankedTotal: z.ZodNumber;
6242
+ readonly minSectionPages: z.ZodNumber;
6243
+ }, z.core.$strip>;
6244
+ meta: z.ZodObject<{
6245
+ requestId: z.ZodString;
6246
+ version: z.ZodLiteral<"1.0">;
6247
+ }, z.core.$loose>;
6248
+ }, z.core.$strip>>;
6249
+ };
6250
+ readonly errors: readonly ["invalid_request", "unauthorized", "auth_expired", "forbidden", "not_found", "entitlement_required", "conflict", "rate_limited", "contract_violation", "internal_error"];
6251
+ readonly errorResponse: import("./core.js").CompatibleResponseSchema<z.ZodObject<{
6252
+ readonly error: z.ZodObject<{
6253
+ code: z.ZodEnum<{
6254
+ auth_expired: "auth_expired";
6255
+ conflict: "conflict";
6256
+ contract_violation: "contract_violation";
6257
+ entitlement_required: "entitlement_required";
6258
+ forbidden: "forbidden";
6259
+ internal_error: "internal_error";
6260
+ invalid_request: "invalid_request";
6261
+ not_found: "not_found";
6262
+ provider_unavailable: "provider_unavailable";
6263
+ quota_exhausted: "quota_exhausted";
6264
+ rate_limited: "rate_limited";
6265
+ site_ambiguous: "site_ambiguous";
6266
+ stale_evidence: "stale_evidence";
6267
+ unauthorized: "unauthorized";
6268
+ }>;
6269
+ message: z.ZodString;
6270
+ requestId: z.ZodString;
6271
+ retryable: z.ZodBoolean;
6272
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6273
+ }, z.core.$strict>;
6274
+ }, z.core.$strip>, z.ZodObject<{
6275
+ readonly error: z.ZodObject<{
6276
+ code: z.ZodEnum<{
6277
+ auth_expired: "auth_expired";
6278
+ conflict: "conflict";
6279
+ contract_violation: "contract_violation";
6280
+ entitlement_required: "entitlement_required";
6281
+ forbidden: "forbidden";
6282
+ internal_error: "internal_error";
6283
+ invalid_request: "invalid_request";
6284
+ not_found: "not_found";
6285
+ provider_unavailable: "provider_unavailable";
6286
+ quota_exhausted: "quota_exhausted";
6287
+ rate_limited: "rate_limited";
6288
+ site_ambiguous: "site_ambiguous";
6289
+ stale_evidence: "stale_evidence";
6290
+ unauthorized: "unauthorized";
6291
+ }>;
6292
+ message: z.ZodString;
6293
+ requestId: z.ZodString;
6294
+ retryable: z.ZodBoolean;
6295
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6296
+ }, z.core.$loose>;
6297
+ }, z.core.$strip>>;
6298
+ readonly resources: {
6299
+ readonly reads: readonly [{
6300
+ readonly type: 'site.collection';
6301
+ readonly idFrom: 'params.siteId';
6302
+ }];
6303
+ readonly changes: readonly [];
6304
+ };
6305
+ readonly policy: {
6306
+ readonly rate: {
6307
+ readonly name: 'public-v1-fixed-window';
6308
+ readonly limit: 50;
6309
+ readonly windowSeconds: 60;
6310
+ };
6311
+ readonly idempotency: {
6312
+ readonly _tag: 'none';
6313
+ };
6314
+ readonly entitlement: null;
6315
+ readonly meter: null;
6316
+ };
6317
+ readonly lifecycle: {
6318
+ readonly introduced: '1.2.0';
6319
+ };
6320
+ readonly docs: {
6321
+ readonly summary: 'Read indexing by route family';
6322
+ readonly description: 'Returns the not-indexed rate per route family, joined from the Site crawl to Google per-URL index state, so an indexing failure that clusters in one template surfaces as one finding instead of many page-level ones. Read it before listing individual not-indexed URLs. `established` holds only families proven worse than the rest of the Site after a Bonferroni correction; `ranked` orders every family by raw rate with no test applied and is leads only. `analysed: false` means there is no completed crawl or no index state to join, which is not the same as healthy indexing.';
6323
+ readonly tags: readonly ["Search Console"];
6324
+ readonly examples: readonly [{
6325
+ readonly request: {
6326
+ readonly params: {
6327
+ readonly siteId: 'site_01JXYZ';
6328
+ };
6329
+ readonly query: {
6330
+ readonly limit: 12;
6331
+ readonly minSectionPages: 5;
6332
+ };
6333
+ };
6334
+ readonly response: {
6335
+ readonly status: 200;
6336
+ readonly body: {
6337
+ readonly data: {
6338
+ readonly analysed: true;
6339
+ readonly reason: null;
6340
+ readonly message: null;
6341
+ readonly asOf: '2026-09-01T00:00:00.000Z';
6342
+ readonly baseline: {
6343
+ readonly pages: 1200;
6344
+ readonly notIndexed: 180;
6345
+ readonly notIndexedPercent: 15;
6346
+ };
6347
+ readonly coverage: {
6348
+ readonly analysed: 1200;
6349
+ readonly notIndexedButNeverCrawled: 40;
6350
+ readonly excludedFragments: 2;
6351
+ };
6352
+ readonly method: 'Wilson score interval per family against its own complement, Bonferroni-corrected across 9 tested families (critical value z=2.77).';
6353
+ readonly familiesTested: 9;
6354
+ readonly established: readonly [{
6355
+ readonly family: '/docs';
6356
+ readonly dimension: 'depth-1';
6357
+ readonly pathPrefix: '/docs';
6358
+ readonly pages: 420;
6359
+ readonly notIndexed: 150;
6360
+ readonly notIndexedPercent: 35.7;
6361
+ readonly restOfSitePercent: 3.8;
6362
+ readonly restOfSitePages: 780;
6363
+ readonly confidenceIntervalLower: 31.2;
6364
+ readonly confidenceIntervalUpper: 40.4;
6365
+ readonly alreadyCountedAbove: 0;
6366
+ }];
6367
+ readonly establishedNote: null;
6368
+ readonly ranked: readonly [{
6369
+ readonly family: '/docs';
6370
+ readonly pages: 420;
6371
+ readonly notIndexed: 150;
6372
+ readonly notIndexedPercent: 35.7;
6373
+ readonly statisticallyEstablished: true;
6374
+ readonly belowMinimumSample: false;
6375
+ }];
6376
+ readonly rankedTotal: 9;
6377
+ readonly minSectionPages: 5;
6378
+ };
6379
+ readonly meta: {
6380
+ readonly requestId: 'req_01JXYZ';
6381
+ readonly version: '1.0';
6382
+ };
6383
+ };
6384
+ };
6385
+ }];
6386
+ };
6387
+ };
5016
6388
  }>;
5017
6389
  export type SearchAnalyticsQuery = z.input<typeof searchAnalyticsQuerySchema>;
5018
6390
  export type SearchAnalyticsData = z.output<typeof searchAnalyticsDataSchema.client>;