seo 0.17.2 → 0.17.4

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/index.d.ts CHANGED
@@ -22422,10 +22422,63 @@ type LintSource = {
22422
22422
  path: string;
22423
22423
  skipped: string;
22424
22424
  };
22425
+ type AiOverview = {
22426
+ keyword: string;
22427
+ references: {
22428
+ domain: string | null;
22429
+ url: string | null;
22430
+ title: string | null;
22431
+ }[];
22432
+ };
22433
+ declare const RESEARCH_DEVICES: readonly ["desktop", "mobile"];
22434
+ type ResearchDevice = (typeof RESEARCH_DEVICES)[number];
22435
+ type Row$1 = Record<string, string | number | boolean | null>;
22436
+ type ResearchRows = {
22437
+ rows: Row$1[];
22438
+ costUsd: number | null;
22439
+ partial: boolean;
22440
+ missed: string[];
22441
+ noData: string[];
22442
+ floor?: {
22443
+ field: string;
22444
+ value: number;
22445
+ };
22446
+ leftOut?: string[];
22447
+ available?: number;
22448
+ siteTotal?: SiteTotal;
22449
+ rankFailed?: boolean;
22450
+ compared?: {
22451
+ results: number;
22452
+ withPage: number;
22453
+ withSite: number;
22454
+ };
22455
+ aiOverviews?: AiOverview[];
22456
+ warnings?: string[];
22457
+ };
22458
+ type SiteTotal = {
22459
+ metric: 'etv' | 'org_traffic';
22460
+ traffic: number;
22461
+ keywords: number | null;
22462
+ };
22425
22463
  type ResearchStore = {
22426
22464
  get(key: string): Promise<string | null>;
22427
22465
  put(key: string, value: string, ttlSeconds: number): Promise<void>;
22428
22466
  };
22467
+ type Row = ResearchRows['rows'][number];
22468
+ type InstalledSerp = (input: {
22469
+ provider: string;
22470
+ keyword: string;
22471
+ country: string;
22472
+ language: string;
22473
+ device: ResearchDevice;
22474
+ depth: number;
22475
+ }) => Promise<{
22476
+ rows: Row[];
22477
+ costMicros: number | null;
22478
+ partial: boolean;
22479
+ warnings: string[];
22480
+ depth: number;
22481
+ }>;
22429
22482
  export type TokenStorageMode = 'keychain' | 'file';
22430
22483
  export type TokenStorageStatus = {
22431
22484
  configured: TokenStorageMode;
@@ -22928,6 +22981,7 @@ export type ProviderInstallerOptions = {
22928
22981
  export declare function inspectProviderPackage(value: string, options?: ProviderInstallerOptions): Promise<ProviderPackageRelease>;
22929
22982
  export declare function installProviderPackage(input: ProviderPackageRelease, options?: ProviderInstallerOptions): Promise<InstalledProviderPackage>;
22930
22983
  export declare function uninstallProviderExtension(id: string, options?: ProviderInstallerOptions): Promise<InstalledProviderPackage | undefined>;
22984
+ export declare const installedProviderSerp: InstalledSerp;
22931
22985
  export declare function readInstalledProviderPackages(): InstalledProviderPackages;
22932
22986
  export declare function writeInstalledProviderPackages(value: InstalledProviderPackages): InstalledProviderPackages;
22933
22987
  export declare function saveInstalledProviderPackage(value: InstalledProviderPackage): InstalledProviderPackages;