import { CompatibleResponseSchema } from "./http-core.mjs"; import { RealtimeV1Schemas } from "./realtime.mjs"; import { z } from "zod"; interface NormalizedFilterV1 { _filters: Array<{ dimension: string; operator: string; expression: string; expression2?: string; }>; _nestedGroups?: NormalizedFilterV1[]; _groupType?: 'and' | 'or'; } declare const GSCDUMP_V1_ANALYTICS_DIMENSIONS: readonly ["page", "query", "queryCanonical", "country", "device", "date", "searchAppearance", "hour"]; declare function createGscdumpV1BrowserSchemas(realtimeSchemas?: RealtimeV1Schemas): { analyticsRowsRequest: z.ZodObject<{ dimensions: z.ZodArray>; metrics: z.ZodOptional>>; filter: z.ZodOptional>>; prefilter: z.ZodOptional>>; orderBy: z.ZodOptional; dir: z.ZodEnum<{ asc: "asc"; desc: "desc"; }>; }, z.core.$strict>>; rowLimit: z.ZodOptional; startRow: z.ZodOptional; dataState: z.ZodOptional>; aggregationType: z.ZodOptional>; searchType: z.ZodOptional>; }, z.core.$strict>; analyticsRowsResponse: CompatibleResponseSchema>>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"analytics">; readonly version: z.ZodLiteral<"1.0">; readonly sourceName: z.ZodString; readonly sourceKind: z.ZodEnum<{ row: "row"; sql: "sql"; }>; readonly queryMs: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ data: z.ZodObject<{ readonly rows: z.ZodArray>>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"analytics">; readonly version: z.ZodLiteral<"1.0">; readonly sourceName: z.ZodString; readonly sourceKind: z.ZodEnum<{ row: "row"; sql: "sql"; }>; readonly queryMs: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>>; keywordEnrichmentRequest: z.ZodObject<{ keywords: z.ZodArray; }, z.core.$strict>; keywordEnrichmentResponse: CompatibleResponseSchema; searchVolume: z.ZodNullable; cpc: z.ZodNullable; }, z.core.$loose>>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"partner">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ data: z.ZodObject<{ readonly metrics: z.ZodRecord; searchVolume: z.ZodNullable; cpc: z.ZodNullable; }, z.core.$loose>>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"partner">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>>; lifecycleResponse: CompatibleResponseSchema; readonly currentTeamId: z.ZodNullable; readonly account: z.ZodObject<{ readonly status: z.ZodEnum<{ ready: "ready"; disconnected: "disconnected"; oauth_received: "oauth_received"; scope_missing: "scope_missing"; refresh_missing: "refresh_missing"; db_provisioning: "db_provisioning"; reauth_required: "reauth_required"; }>; readonly grantedScopes: z.ZodArray; readonly missingScopes: z.ZodArray; readonly nextAction: z.ZodEnum<{ connect_google: "connect_google"; reconnect_google: "reconnect_google"; wait_for_provisioning: "wait_for_provisioning"; none: "none"; }>; }, z.core.$strip>; readonly sites: z.ZodArray; readonly requestedUrl: z.ZodString; readonly gscPropertyUrl: z.ZodNullable; readonly permissionLevel: z.ZodNullable; readonly property: z.ZodObject<{ readonly status: z.ZodEnum<{ no_local_site: "no_local_site"; no_gsc_property: "no_gsc_property"; unverified_property: "unverified_property"; verified_candidate: "verified_candidate"; registered: "registered"; linked: "linked"; }>; readonly nextAction: z.ZodEnum<{ none: "none"; create_site: "create_site"; verify_gsc_property: "verify_gsc_property"; choose_property: "choose_property"; register_site: "register_site"; }>; }, z.core.$strip>; readonly analytics: z.ZodObject<{ readonly status: z.ZodEnum<{ ready: "ready"; not_registered: "not_registered"; queued: "queued"; preparing: "preparing"; syncing: "syncing"; queryable_live: "queryable_live"; queryable_partial: "queryable_partial"; failed: "failed"; }>; readonly progress: z.ZodObject<{ readonly completed: z.ZodNumber; readonly failed: z.ZodNumber; readonly total: z.ZodNumber; readonly percent: z.ZodNumber; }, z.core.$strip>; readonly queryable: z.ZodBoolean; readonly sourceMode: z.ZodEnum<{ none: "none"; live: "live"; d1: "d1"; r2: "r2"; mixed: "mixed"; }>; readonly syncedRange: z.ZodObject<{ readonly oldest: z.ZodNullable; readonly newest: z.ZodNullable; }, z.core.$strip>; readonly nextAction: z.ZodEnum<{ none: "none"; wait_for_sync: "wait_for_sync"; retry_sync: "retry_sync"; }>; }, z.core.$strip>; readonly sitemaps: z.ZodObject<{ readonly status: z.ZodEnum<{ unknown: "unknown"; ready: "ready"; syncing: "syncing"; failed: "failed"; discovering: "discovering"; none_found: "none_found"; auto_submitted: "auto_submitted"; }>; readonly discoveredCount: z.ZodNumber; readonly nextAction: z.ZodEnum<{ none: "none"; submit_sitemap: "submit_sitemap"; wait_for_sitemaps: "wait_for_sitemaps"; retry_sitemaps: "retry_sitemaps"; }>; }, z.core.$strip>; readonly indexing: z.ZodObject<{ readonly status: z.ZodEnum<{ ready: "ready"; failed: "failed"; discovering: "discovering"; not_requested: "not_requested"; missing_scope: "missing_scope"; insufficient_permission: "insufficient_permission"; waiting_for_sitemaps: "waiting_for_sitemaps"; checking: "checking"; budget_exhausted: "budget_exhausted"; no_urls: "no_urls"; }>; readonly eligible: z.ZodBoolean; readonly reason: z.ZodNullable; readonly progress: z.ZodObject<{ readonly completed: z.ZodNumber; readonly failed: z.ZodNumber; readonly total: z.ZodNumber; readonly percent: z.ZodNumber; }, z.core.$strip>; readonly nextAction: z.ZodEnum<{ reconnect_google: "reconnect_google"; none: "none"; wait_for_sitemaps: "wait_for_sitemaps"; fix_gsc_permission: "fix_gsc_permission"; wait_for_indexing: "wait_for_indexing"; retry_indexing: "retry_indexing"; }>; }, z.core.$strip>; readonly latestError: z.ZodNullable; readonly message: z.ZodString; readonly retryable: z.ZodBoolean; }, z.core.$strip>>; readonly updatedAt: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"partner">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ data: z.ZodObject<{ readonly userId: z.ZodString; readonly partnerId: z.ZodNullable; readonly currentTeamId: z.ZodNullable; readonly account: z.ZodObject<{ readonly status: z.ZodEnum<{ ready: "ready"; disconnected: "disconnected"; oauth_received: "oauth_received"; scope_missing: "scope_missing"; refresh_missing: "refresh_missing"; db_provisioning: "db_provisioning"; reauth_required: "reauth_required"; }>; readonly grantedScopes: z.ZodArray; readonly missingScopes: z.ZodArray; readonly nextAction: z.ZodEnum<{ connect_google: "connect_google"; reconnect_google: "reconnect_google"; wait_for_provisioning: "wait_for_provisioning"; none: "none"; }>; }, z.core.$strip>; readonly sites: z.ZodArray; readonly requestedUrl: z.ZodString; readonly gscPropertyUrl: z.ZodNullable; readonly permissionLevel: z.ZodNullable; readonly property: z.ZodObject<{ readonly status: z.ZodEnum<{ no_local_site: "no_local_site"; no_gsc_property: "no_gsc_property"; unverified_property: "unverified_property"; verified_candidate: "verified_candidate"; registered: "registered"; linked: "linked"; }>; readonly nextAction: z.ZodEnum<{ none: "none"; create_site: "create_site"; verify_gsc_property: "verify_gsc_property"; choose_property: "choose_property"; register_site: "register_site"; }>; }, z.core.$strip>; readonly analytics: z.ZodObject<{ readonly status: z.ZodEnum<{ ready: "ready"; not_registered: "not_registered"; queued: "queued"; preparing: "preparing"; syncing: "syncing"; queryable_live: "queryable_live"; queryable_partial: "queryable_partial"; failed: "failed"; }>; readonly progress: z.ZodObject<{ readonly completed: z.ZodNumber; readonly failed: z.ZodNumber; readonly total: z.ZodNumber; readonly percent: z.ZodNumber; }, z.core.$strip>; readonly queryable: z.ZodBoolean; readonly sourceMode: z.ZodEnum<{ none: "none"; live: "live"; d1: "d1"; r2: "r2"; mixed: "mixed"; }>; readonly syncedRange: z.ZodObject<{ readonly oldest: z.ZodNullable; readonly newest: z.ZodNullable; }, z.core.$strip>; readonly nextAction: z.ZodEnum<{ none: "none"; wait_for_sync: "wait_for_sync"; retry_sync: "retry_sync"; }>; }, z.core.$strip>; readonly sitemaps: z.ZodObject<{ readonly status: z.ZodEnum<{ unknown: "unknown"; ready: "ready"; syncing: "syncing"; failed: "failed"; discovering: "discovering"; none_found: "none_found"; auto_submitted: "auto_submitted"; }>; readonly discoveredCount: z.ZodNumber; readonly nextAction: z.ZodEnum<{ none: "none"; submit_sitemap: "submit_sitemap"; wait_for_sitemaps: "wait_for_sitemaps"; retry_sitemaps: "retry_sitemaps"; }>; }, z.core.$strip>; readonly indexing: z.ZodObject<{ readonly status: z.ZodEnum<{ ready: "ready"; failed: "failed"; discovering: "discovering"; not_requested: "not_requested"; missing_scope: "missing_scope"; insufficient_permission: "insufficient_permission"; waiting_for_sitemaps: "waiting_for_sitemaps"; checking: "checking"; budget_exhausted: "budget_exhausted"; no_urls: "no_urls"; }>; readonly eligible: z.ZodBoolean; readonly reason: z.ZodNullable; readonly progress: z.ZodObject<{ readonly completed: z.ZodNumber; readonly failed: z.ZodNumber; readonly total: z.ZodNumber; readonly percent: z.ZodNumber; }, z.core.$strip>; readonly nextAction: z.ZodEnum<{ reconnect_google: "reconnect_google"; none: "none"; wait_for_sitemaps: "wait_for_sitemaps"; fix_gsc_permission: "fix_gsc_permission"; wait_for_indexing: "wait_for_indexing"; retry_indexing: "retry_indexing"; }>; }, z.core.$strip>; readonly latestError: z.ZodNullable; readonly message: z.ZodString; readonly retryable: z.ZodBoolean; }, z.core.$strip>>; readonly updatedAt: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"partner">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>>; ticketRequest: z.ZodObject<{ origin: z.ZodOptional; }, z.core.$strict>; ticketResponse: z.ZodObject<{ data: z.ZodObject<{ socketUrl: z.ZodURL; protocol: z.ZodLiteral<"gscdump.v1">; protocolVersion: z.ZodLiteral<1>; ticket: z.ZodString; expiresAt: z.ZodISODateTime; head: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$loose>; maxConnectionSeconds: z.ZodLiteral<900>; }, z.core.$loose>; meta: z.ZodObject<{ requestId: z.ZodString; surface: z.ZodLiteral<"realtime">; version: z.ZodLiteral<"1.0">; }, z.core.$loose>; }, z.core.$loose>; }; export { GSCDUMP_V1_ANALYTICS_DIMENSIONS, NormalizedFilterV1, createGscdumpV1BrowserSchemas };