import { CompatibleResponseSchema, HttpV1ProtocolOperation, HttpV1Surface } from "./http-core.mjs"; import { NormalizedFilterV1 } from "./browser.mjs"; import { z } from "zod"; declare function createGscdumpV1Protocol(): { constants: { httpVersion: "1.0"; realtimeProtocolVersion: 1; realtimeSubprotocol: "gscdump.v1"; realtimeTicketPrefix: "gscdump.ticket.v1"; realtimeTicketIssuer: "https://gscdump.com"; realtimeTicketAudience: "https://gscdump.com/ws/v1"; ping: "ping"; pong: "pong"; ticketTtlSeconds: 60; maxConnectionSeconds: 900; ticketPolicy: { readonly algorithm: "HMAC-SHA-256"; readonly minimumSigningKeyBytes: 32; readonly jtiRandomBits: 128; readonly maxVerificationKeys: 2; readonly futureIssuedAtToleranceMs: 5000; readonly expiryToleranceMs: 0; readonly rotationOverlapMs: 90000; readonly maxBytes: 2048; readonly singleUse: true; }; connectionPolicy: { readonly helloDeadlineMs: 10000; readonly maxLifetimeMs: 900000; readonly connectionRefreshBeforeExpiryMs: 30000; readonly heartbeatIntervalMs: 25000; readonly staleAfterMs: 75000; readonly reconnectBaseDelayMs: 1000; readonly reconnectMaxDelayMs: 30000; readonly reconnectJitter: "equal"; }; replayPolicy: { readonly maxAgeMs: 86400000; readonly maxEventsPerStream: 10000; }; limits: { readonly clientFrameMaxBytes: 16384; readonly durableEventMaxBytes: 65536; readonly ephemeralEventMaxBytes: 16384; readonly outboundFrameMaxBytes: 262144; readonly batchMaxEvents: 20; readonly batchMaxBytes: 262144; readonly connectionAttachmentMaxBytes: 2048; }; ackPolicy: { readonly softLagEvents: 100; readonly softLagBytes: 1048576; readonly hardLagEvents: 500; readonly hardLagBytes: 4194304; readonly hardLagCloseCode: 1013; readonly effectRetryBeforeUnsafeResync: 3; }; closeCodes: { readonly normal: 1000; readonly protocolError: 1002; readonly policyViolation: 1008; readonly internalError: 1011; readonly serviceRestart: 1012; readonly overloadedOrAckLag: 1013; readonly maximumLifetime: 4001; }; eventSemantics: { readonly 'user.lifecycle.changed': { readonly delivery: "durable"; readonly baseChanges: readonly ["partner.user", "user.sites"]; }; readonly 'site.lifecycle.changed': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.lifecycle"]; }; readonly 'site.lifecycle.progress': { readonly delivery: "ephemeral"; readonly baseChanges: readonly []; }; readonly 'site.analytics.ready': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.analytics", "site.lifecycle"]; }; readonly 'site.sitemaps.ready': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.sitemaps", "site.lifecycle"]; }; readonly 'site.indexing.ready': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.indexing", "site.lifecycle"]; }; readonly 'site.auth.failed': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.auth", "site.lifecycle"]; }; readonly 'site.lifecycle.failed': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.lifecycle"]; }; readonly 'site.registration.changed': { readonly delivery: "durable"; readonly baseChanges: readonly ["site.registration", "user.sites"]; }; }; }; schemas: { opaquePublicId: z.ZodString; userStreamId: z.ZodString; partnerStreamId: z.ZodString; publicUserId: z.ZodString; publicPartnerId: z.ZodString; publicTeamId: z.ZodString; publicSiteId: z.ZodString; publicPrincipalId: z.ZodUnion; publicResourceId: z.ZodUnion; publicRequestId: z.ZodString; publicEventId: z.ZodString; sequence: z.ZodString; streamId: z.ZodUnion; cursor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; streamHead: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; ticketResponseClient: 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>; ticketRequest: z.ZodObject<{ origin: z.ZodOptional; }, z.core.$strict>; ticketClaims: z.ZodObject<{ v: z.ZodLiteral<1>; iss: z.ZodLiteral<"https://gscdump.com">; aud: z.ZodLiteral<"https://gscdump.com/ws/v1">; kid: z.ZodString; jti: z.ZodString; iat: z.ZodNumber; exp: z.ZodNumber; connectionExpiresAt: z.ZodNumber; principalClass: z.ZodEnum<{ user_key: "user_key"; partner_key: "partner_key"; }>; principalPublicId: z.ZodUnion; streamId: z.ZodUnion; origin: z.ZodNullable; }, z.core.$strict>; knownResourceType: z.ZodEnum<{ "partner.user": "partner.user"; "partner.team": "partner.team"; "user.sites": "user.sites"; "site.registration": "site.registration"; "site.lifecycle": "site.lifecycle"; "site.analytics": "site.analytics"; "site.sitemaps": "site.sitemaps"; "site.indexing": "site.indexing"; "site.auth": "site.auth"; }>; resourceChange: z.ZodObject<{ type: z.ZodString; id: z.ZodString; kind: z.ZodEnum<{ created: "created"; updated: "updated"; deleted: "deleted"; }>; }, z.core.$strict>; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; durableEvent: z.ZodObject<{ cursor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>; ephemeralEvent: z.ZodObject<{ cursor: z.ZodNull; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"ephemeral">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>; event: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>, z.ZodObject<{ cursor: z.ZodNull; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"ephemeral">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>]>; helloFrame: z.ZodObject<{ type: z.ZodLiteral<"hello">; protocolVersion: z.ZodLiteral<1>; sdkVersion: z.ZodString; resume: z.ZodNullable; sequence: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>; ackFrame: z.ZodObject<{ type: z.ZodLiteral<"ack">; cursor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; readyFrame: z.ZodObject<{ type: z.ZodLiteral<"ready">; protocolVersion: z.ZodLiteral<1>; connectionId: z.ZodString; streamId: z.ZodUnion; replayFloor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; head: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; limits: z.ZodObject<{ maxBatchEvents: z.ZodNumber; maxUnackedEvents: z.ZodNumber; }, z.core.$strict>; heartbeat: z.ZodObject<{ ping: z.ZodLiteral<"ping">; pong: z.ZodLiteral<"pong">; }, z.core.$strict>; expiresAt: z.ZodISODateTime; }, z.core.$strict>; replayBeginFrame: z.ZodObject<{ type: z.ZodLiteral<"replay.begin">; after: z.ZodNullable; sequence: z.ZodString; }, z.core.$strict>>; through: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; replayEndFrame: z.ZodObject<{ type: z.ZodLiteral<"replay.end">; through: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; batchFrame: z.ZodObject<{ type: z.ZodLiteral<"batch">; events: z.ZodArray; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>>; }, z.core.$strict>; resyncRequiredFrame: z.ZodObject<{ type: z.ZodLiteral<"resync.required">; reason: z.ZodEnum<{ cursor_expired: "cursor_expired"; retention_gap: "retention_gap"; sequence_gap: "sequence_gap"; stream_mismatch: "stream_mismatch"; }>; scope: z.ZodObject<{ type: z.ZodLiteral<"stream">; streamId: z.ZodUnion; }, z.core.$strict>; resumeAfter: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; realtimeErrorFrame: z.ZodObject<{ type: z.ZodLiteral<"error">; error: z.ZodObject<{ code: z.ZodEnum<{ invalid_frame: "invalid_frame"; protocol_mismatch: "protocol_mismatch"; policy_violation: "policy_violation"; overloaded: "overloaded"; internal_error: "internal_error"; }>; message: z.ZodString; retryable: z.ZodBoolean; retryAfter: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>; clientFrame: z.ZodUnion; protocolVersion: z.ZodLiteral<1>; sdkVersion: z.ZodString; resume: z.ZodNullable; sequence: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"ack">; cursor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>]>; serverFrame: z.ZodUnion; protocolVersion: z.ZodLiteral<1>; connectionId: z.ZodString; streamId: z.ZodUnion; replayFloor: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; head: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; limits: z.ZodObject<{ maxBatchEvents: z.ZodNumber; maxUnackedEvents: z.ZodNumber; }, z.core.$strict>; heartbeat: z.ZodObject<{ ping: z.ZodLiteral<"ping">; pong: z.ZodLiteral<"pong">; }, z.core.$strict>; expiresAt: z.ZodISODateTime; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"replay.begin">; after: z.ZodNullable; sequence: z.ZodString; }, z.core.$strict>>; through: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"replay.end">; through: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>, z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>, z.ZodObject<{ cursor: z.ZodNull; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"ephemeral">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>]>, z.ZodObject<{ type: z.ZodLiteral<"batch">; events: z.ZodArray; sequence: z.ZodString; }, z.core.$strict>; changes: z.ZodArray; }, z.core.$strict>>; delivery: z.ZodLiteral<"durable">; type: z.ZodLiteral<"event">; protocolVersion: z.ZodLiteral<1>; eventVersion: z.ZodNumber; id: z.ZodString; name: z.ZodString; subject: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"partner">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"team">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"user">; id: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"site">; id: z.ZodString; }, z.core.$strict>], "type">; occurredAt: z.ZodISODateTime; correlationId: z.ZodNullable; data: z.ZodJSONSchema; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"resync.required">; reason: z.ZodEnum<{ cursor_expired: "cursor_expired"; retention_gap: "retention_gap"; sequence_gap: "sequence_gap"; stream_mismatch: "stream_mismatch"; }>; scope: z.ZodObject<{ type: z.ZodLiteral<"stream">; streamId: z.ZodUnion; }, z.core.$strict>; resumeAfter: z.ZodObject<{ streamId: z.ZodUnion; sequence: z.ZodString; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"error">; error: z.ZodObject<{ code: z.ZodEnum<{ invalid_frame: "invalid_frame"; protocol_mismatch: "protocol_mismatch"; policy_violation: "policy_violation"; overloaded: "overloaded"; internal_error: "internal_error"; }>; message: z.ZodString; retryable: z.ZodBoolean; retryAfter: z.ZodOptional; }, z.core.$strict>; }, z.core.$strict>]>; requestMetadata: z.ZodObject<{ requestId: z.ZodString; surface: z.ZodEnum<{ realtime: "realtime"; partner: "partner"; analytics: "analytics"; }>; version: z.ZodLiteral<"1.0">; }, z.core.$strict>; requestHeaders: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; responseMeta: CompatibleResponseSchema; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>, z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodEnum<{ realtime: "realtime"; partner: "partner"; analytics: "analytics"; }>; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>>; errorEnvelope: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; realtime_unavailable: "realtime_unavailable"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; analyticsReportDetailRequest: z.ZodObject<{ state: z.ZodObject<{ searchType: z.ZodOptional>; dimensions: z.ZodArray>; }, z.core.$loose>; comparison: z.ZodOptional>; dimensions: z.ZodArray>; }, z.core.$loose>>; }, z.core.$strict>; analyticsReportDetailResponse: CompatibleResponseSchema>; previousDaily: z.ZodOptional>>; totals: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strip>; previousTotals: z.ZodOptional>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodString; newestDateSynced: z.ZodNullable; oldestDateSynced: z.ZodNullable; dataDelay: z.ZodOptional; dataEndDate: z.ZodOptional>; warnings: z.ZodOptional>; enrichment: z.ZodOptional>; backfill: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; }, 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<{ daily: z.ZodArray>; previousDaily: z.ZodOptional>>; totals: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strip>; previousTotals: z.ZodOptional>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodString; newestDateSynced: z.ZodNullable; oldestDateSynced: z.ZodNullable; dataDelay: z.ZodOptional; dataEndDate: z.ZodOptional>; warnings: z.ZodOptional>; enrichment: z.ZodOptional>; backfill: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; }, 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>>; analyticsReportRequest: z.ZodObject<{ state: z.ZodObject<{ searchType: z.ZodOptional>; dimensions: z.ZodArray>; }, z.core.$loose>; comparison: z.ZodOptional>; dimensions: z.ZodArray>; }, z.core.$loose>>; filter: z.ZodOptional>; }, z.core.$strict>; analyticsReportResponse: CompatibleResponseSchema>; totalCount: z.ZodNumber; totals: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strip>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodString; newestDateSynced: z.ZodNullable; oldestDateSynced: z.ZodNullable; dataDelay: z.ZodOptional; dataEndDate: z.ZodOptional>; warnings: z.ZodOptional>; enrichment: z.ZodOptional>; backfill: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; }, 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<{ rows: z.ZodArray>; totalCount: z.ZodNumber; totals: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strip>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodString; newestDateSynced: z.ZodNullable; oldestDateSynced: z.ZodNullable; dataDelay: z.ZodOptional; dataEndDate: z.ZodOptional>; warnings: z.ZodOptional>; enrichment: z.ZodOptional>; backfill: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; }, 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>>; 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>>; analysisBundleQuery: z.ZodObject<{ presets: z.ZodUnion>, z.ZodString]>; startDate: z.ZodString; endDate: z.ZodString; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; brandTerms: z.ZodOptional; limit: z.ZodOptional>>; offset: z.ZodOptional>>; search: z.ZodOptional; minImpressions: z.ZodOptional>; minPosition: z.ZodOptional>; maxPosition: z.ZodOptional>; maxCtr: z.ZodOptional>; searchType: z.ZodOptional>; }, z.core.$strict>; analysisBundleResponse: CompatibleResponseSchema>; totalCount: z.ZodNumber; summary: z.ZodOptional>>; presetDescription: z.ZodString; }, z.core.$strip>>; meta: z.ZodObject<{ siteUrl: z.ZodString; params: z.ZodObject<{ brandTerms: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strip>; presetDescription: z.ZodOptional; }, 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<{ bundle: z.ZodRecord>; totalCount: z.ZodNumber; summary: z.ZodOptional>>; presetDescription: z.ZodString; }, z.core.$strip>>; meta: z.ZodObject<{ siteUrl: z.ZodString; params: z.ZodObject<{ brandTerms: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strip>; presetDescription: z.ZodOptional; }, 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>>; analysisQuery: z.ZodObject<{ preset: z.ZodEnum<{ "striking-distance": "striking-distance"; opportunity: "opportunity"; decay: "decay"; "zero-click": "zero-click"; "non-brand": "non-brand"; "brand-only": "brand-only"; "movers-rising": "movers-rising"; "movers-declining": "movers-declining"; }>; startDate: z.ZodString; endDate: z.ZodString; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; brandTerms: z.ZodOptional; limit: z.ZodOptional>>; offset: z.ZodOptional>>; search: z.ZodOptional; minImpressions: z.ZodOptional>; minPosition: z.ZodOptional>; maxPosition: z.ZodOptional>; maxCtr: z.ZodOptional>; searchType: z.ZodOptional>; }, z.core.$strict>; analysisResponse: CompatibleResponseSchema; keywords: z.ZodArray>; totalCount: z.ZodNumber; summary: z.ZodOptional>>; meta: z.ZodObject<{ siteUrl: z.ZodString; params: z.ZodObject<{ brandTerms: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strip>; presetDescription: z.ZodOptional; }, 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<{ preset: z.ZodEnum<{ "striking-distance": "striking-distance"; opportunity: "opportunity"; decay: "decay"; "zero-click": "zero-click"; "non-brand": "non-brand"; "brand-only": "brand-only"; "movers-rising": "movers-rising"; "movers-declining": "movers-declining"; }>; keywords: z.ZodArray>; totalCount: z.ZodNumber; summary: z.ZodOptional>>; meta: z.ZodObject<{ siteUrl: z.ZodString; params: z.ZodObject<{ brandTerms: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strip>; presetDescription: z.ZodOptional; }, 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>>; availableSitesQuery: z.ZodObject<{ refresh: z.ZodOptional, z.ZodLiteral<1>, z.ZodLiteral<"true">, z.ZodLiteral<"1">]>>; }, z.core.$strict>; availableSitesResponse: CompatibleResponseSchema; intId: z.ZodOptional>; syncStatus: z.ZodOptional>>; syncProgress: z.ZodOptional; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>>; lastSyncAt: z.ZodOptional>; newestDateSynced: z.ZodOptional>; oldestDateSynced: z.ZodOptional>; }, 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 sites: z.ZodArray; intId: z.ZodOptional>; syncStatus: z.ZodOptional>>; syncProgress: z.ZodOptional; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>>; lastSyncAt: z.ZodOptional>; newestDateSynced: z.ZodOptional>; oldestDateSynced: z.ZodOptional>; }, 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>>; indexingDiagnosticsQuery: z.ZodObject<{ sampleIssues: z.ZodOptional]>>; sampleLimit: z.ZodOptional>>; }, z.core.$strict>; indexingDiagnosticsResponse: CompatibleResponseSchema; issues: z.ZodArray; count: z.ZodNumber; description: z.ZodString; fix: z.ZodString; }, z.core.$loose>>; samples: z.ZodOptional>; verdict: z.ZodNullable; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; canonicalMismatchKind: z.ZodEnum<{ path: "path"; none: "none"; formatting: "formatting"; cross_domain: "cross_domain"; }>; sitemaps: z.ZodNullable>; referringUrls: z.ZodNullable>; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable>; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable>; inspectionResultLink: z.ZodNullable; firstCheckedAt: z.ZodString; lastCheckedAt: z.ZodString; checkCount: z.ZodNumber; }, z.core.$loose>>>>; meta: z.ZodObject<{ siteUrl: z.ZodString; }, 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<{ summary: z.ZodObject<{ totalUrls: z.ZodNumber; indexed: z.ZodNumber; indexedPercent: z.ZodNumber; }, z.core.$loose>; issues: z.ZodArray; count: z.ZodNumber; description: z.ZodString; fix: z.ZodString; }, z.core.$loose>>; samples: z.ZodOptional>; verdict: z.ZodNullable; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; canonicalMismatchKind: z.ZodEnum<{ path: "path"; none: "none"; formatting: "formatting"; cross_domain: "cross_domain"; }>; sitemaps: z.ZodNullable>; referringUrls: z.ZodNullable>; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable>; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable>; inspectionResultLink: z.ZodNullable; firstCheckedAt: z.ZodString; lastCheckedAt: z.ZodString; checkCount: z.ZodNumber; }, z.core.$loose>>>>; meta: z.ZodObject<{ siteUrl: z.ZodString; }, 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>>; indexingSummaryQuery: z.ZodObject<{ days: z.ZodOptional>>; }, z.core.$strict>; indexingSummaryResponse: CompatibleResponseSchema; notIndexedCount: z.ZodNullable; errorCount: z.ZodNullable; indexedPercent: z.ZodNumber; issues: z.ZodObject<{ blockedByRobots: z.ZodNullable; noindexDetected: z.ZodNullable; soft404: z.ZodNullable; redirect: z.ZodNullable; notFound: z.ZodNullable; serverError: z.ZodNullable; }, z.core.$loose>; coverage: z.ZodObject<{ submittedIndexed: z.ZodNullable; crawledNotIndexed: z.ZodNullable; discoveredNotCrawled: z.ZodNullable; }, z.core.$loose>; signals: z.ZodObject<{ mobilePass: z.ZodNumber; mobileFail: z.ZodNumber; richResultsPass: z.ZodNumber; richResultsFail: z.ZodNumber; }, z.core.$loose>; }, z.core.$loose>>; summary: z.ZodObject<{ totalUrls: z.ZodNumber; indexed: z.ZodNumber; notIndexed: z.ZodNumber; pending: z.ZodNumber; indexedPercent: z.ZodNumber; oldestCheck: z.ZodNullable; newestCheck: z.ZodNullable; change7d: z.ZodNullable; change28d: z.ZodNullable; signals: z.ZodObject<{ mobilePass: z.ZodNumber; mobileFail: z.ZodNumber; mobileUnspecified: z.ZodNumber; richResultsPass: z.ZodNumber; richResultsFail: z.ZodNumber; richResultTypes: z.ZodArray>; crawlingMobile: z.ZodNumber; crawlingDesktop: z.ZodNumber; }, z.core.$loose>; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodNullable; indexingStatus: z.ZodEnum<{ pending: "pending"; partial: "partial"; complete: "complete"; }>; indexingProgress: z.ZodNumber; sitemapTotal: z.ZodNumber; inspectedCount: z.ZodNumber; noSitemapsSubmitted: z.ZodBoolean; sitemapsPending: z.ZodBoolean; rollupBuiltAt: z.ZodOptional; }, 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<{ trend: z.ZodArray; notIndexedCount: z.ZodNullable; errorCount: z.ZodNullable; indexedPercent: z.ZodNumber; issues: z.ZodObject<{ blockedByRobots: z.ZodNullable; noindexDetected: z.ZodNullable; soft404: z.ZodNullable; redirect: z.ZodNullable; notFound: z.ZodNullable; serverError: z.ZodNullable; }, z.core.$loose>; coverage: z.ZodObject<{ submittedIndexed: z.ZodNullable; crawledNotIndexed: z.ZodNullable; discoveredNotCrawled: z.ZodNullable; }, z.core.$loose>; signals: z.ZodObject<{ mobilePass: z.ZodNumber; mobileFail: z.ZodNumber; richResultsPass: z.ZodNumber; richResultsFail: z.ZodNumber; }, z.core.$loose>; }, z.core.$loose>>; summary: z.ZodObject<{ totalUrls: z.ZodNumber; indexed: z.ZodNumber; notIndexed: z.ZodNumber; pending: z.ZodNumber; indexedPercent: z.ZodNumber; oldestCheck: z.ZodNullable; newestCheck: z.ZodNullable; change7d: z.ZodNullable; change28d: z.ZodNullable; signals: z.ZodObject<{ mobilePass: z.ZodNumber; mobileFail: z.ZodNumber; mobileUnspecified: z.ZodNumber; richResultsPass: z.ZodNumber; richResultsFail: z.ZodNumber; richResultTypes: z.ZodArray>; crawlingMobile: z.ZodNumber; crawlingDesktop: z.ZodNumber; }, z.core.$loose>; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodNullable; indexingStatus: z.ZodEnum<{ pending: "pending"; partial: "partial"; complete: "complete"; }>; indexingProgress: z.ZodNumber; sitemapTotal: z.ZodNumber; inspectedCount: z.ZodNumber; noSitemapsSubmitted: z.ZodBoolean; sitemapsPending: z.ZodBoolean; rollupBuiltAt: z.ZodOptional; }, 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>>; indexingTransitionsQuery: z.ZodObject<{ startDate: z.ZodOptional; endDate: z.ZodOptional; field: z.ZodOptional>; fromValue: z.ZodOptional; toValue: z.ZodOptional; limit: z.ZodOptional>>; offset: z.ZodOptional>>; }, z.core.$strict>; indexingTransitionsResponse: CompatibleResponseSchema; readonly fromValue: z.ZodNullable; readonly toValue: z.ZodNullable; readonly changedAfter: z.ZodString; readonly changedBefore: z.ZodString; readonly detectedAt: z.ZodString; readonly observationGapDays: z.ZodNumber; }, z.core.$strip>>; readonly observationWindow: z.ZodDiscriminatedUnion<[z.ZodObject<{ readonly _tag: z.ZodLiteral<"empty">; readonly gapDaysMedian: z.ZodNull; readonly gapDaysP90: z.ZodNull; readonly sampleSize: z.ZodLiteral<0>; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"sampled">; readonly gapDaysMedian: z.ZodNumber; readonly gapDaysP90: z.ZodNumber; readonly sampleSize: z.ZodNumber; }, z.core.$strip>], "_tag">; readonly pagination: z.ZodObject<{ readonly total: z.ZodNumber; readonly limit: z.ZodNumber; readonly offset: z.ZodNumber; readonly hasMore: z.ZodBoolean; }, z.core.$strip>; readonly meta: z.ZodObject<{ readonly siteUrl: z.ZodString; readonly startDate: z.ZodString; readonly endDate: z.ZodString; }, 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 transitions: z.ZodArray; readonly fromValue: z.ZodNullable; readonly toValue: z.ZodNullable; readonly changedAfter: z.ZodString; readonly changedBefore: z.ZodString; readonly detectedAt: z.ZodString; readonly observationGapDays: z.ZodNumber; }, z.core.$strip>>; readonly observationWindow: z.ZodDiscriminatedUnion<[z.ZodObject<{ readonly _tag: z.ZodLiteral<"empty">; readonly gapDaysMedian: z.ZodNull; readonly gapDaysP90: z.ZodNull; readonly sampleSize: z.ZodLiteral<0>; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"sampled">; readonly gapDaysMedian: z.ZodNumber; readonly gapDaysP90: z.ZodNumber; readonly sampleSize: z.ZodNumber; }, z.core.$strip>], "_tag">; readonly pagination: z.ZodObject<{ readonly total: z.ZodNumber; readonly limit: z.ZodNumber; readonly offset: z.ZodNumber; readonly hasMore: z.ZodBoolean; }, z.core.$strip>; readonly meta: z.ZodObject<{ readonly siteUrl: z.ZodString; readonly startDate: z.ZodString; readonly endDate: z.ZodString; }, 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>>; indexingUrlsQuery: z.ZodObject<{ limit: z.ZodOptional>>; offset: z.ZodOptional>>; status: z.ZodOptional>; issue: z.ZodOptional; search: z.ZodOptional; count: z.ZodOptional, z.ZodLiteral, z.ZodLiteral<"0">, z.ZodLiteral<"false">]>>; }, z.core.$strict>; indexingUrlsResponse: CompatibleResponseSchema>; verdict: z.ZodNullable; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; canonicalMismatchKind: z.ZodEnum<{ path: "path"; none: "none"; formatting: "formatting"; cross_domain: "cross_domain"; }>; sitemaps: z.ZodNullable>; referringUrls: z.ZodNullable>; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable>; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable>; inspectionResultLink: z.ZodNullable; firstCheckedAt: z.ZodString; lastCheckedAt: z.ZodString; checkCount: z.ZodNumber; }, z.core.$loose>>; pagination: z.ZodObject<{ total: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; gscPropertyUrl: z.ZodOptional; status: z.ZodString; issue: 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<{ urls: z.ZodArray>; verdict: z.ZodNullable; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; canonicalMismatchKind: z.ZodEnum<{ path: "path"; none: "none"; formatting: "formatting"; cross_domain: "cross_domain"; }>; sitemaps: z.ZodNullable>; referringUrls: z.ZodNullable>; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable>; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable>; inspectionResultLink: z.ZodNullable; firstCheckedAt: z.ZodString; lastCheckedAt: z.ZodString; checkCount: z.ZodNumber; }, z.core.$loose>>; pagination: z.ZodObject<{ total: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; gscPropertyUrl: z.ZodOptional; status: z.ZodString; issue: 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>>; bingIndexingEvidenceQuery: z.ZodObject<{ limit: z.ZodOptional>>; offset: z.ZodOptional>>; }, z.core.$strict>; bingIndexingEvidenceResponse: CompatibleResponseSchema; readonly siteUrl: z.ZodURL; readonly indexingEvidence: z.ZodArray; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly providerEvidenceAt: z.ZodISODateTime; readonly freshness: z.ZodEnum<{ current: "current"; stale: "stale"; }>; readonly discoveryTime: z.ZodNullable; readonly lastCrawlTime: z.ZodNullable; readonly originHttpStatus: z.ZodNullable; readonly documentSize: z.ZodNumber; readonly anchorCount: z.ZodNumber; readonly totalChildUrlCount: z.ZodNumber; readonly uncertaintyReason: z.ZodLiteral<"indexed-verdict-unavailable">; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"unknown">; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly reason: z.ZodEnum<{ "not-discovered": "not-discovered"; "not-observed": "not-observed"; }>; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"unavailable">; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly reason: z.ZodEnum<{ "authentication-required": "authentication-required"; "permission-denied": "permission-denied"; "site-unverified": "site-unverified"; throttled: "throttled"; "quota-unavailable": "quota-unavailable"; "provider-error": "provider-error"; }>; readonly retryAt: z.ZodNullable; }, z.core.$strip>], "_tag">>; readonly pagination: z.ZodObject<{ readonly total: z.ZodNumber; readonly limit: z.ZodNumber; readonly offset: z.ZodNumber; readonly hasMore: z.ZodBoolean; }, 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 searchEngine: z.ZodLiteral<"bing">; readonly siteUrl: z.ZodURL; readonly indexingEvidence: z.ZodArray; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly providerEvidenceAt: z.ZodISODateTime; readonly freshness: z.ZodEnum<{ current: "current"; stale: "stale"; }>; readonly discoveryTime: z.ZodNullable; readonly lastCrawlTime: z.ZodNullable; readonly originHttpStatus: z.ZodNullable; readonly documentSize: z.ZodNumber; readonly anchorCount: z.ZodNumber; readonly totalChildUrlCount: z.ZodNumber; readonly uncertaintyReason: z.ZodLiteral<"indexed-verdict-unavailable">; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"unknown">; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly reason: z.ZodEnum<{ "not-discovered": "not-discovered"; "not-observed": "not-observed"; }>; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"unavailable">; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly reason: z.ZodEnum<{ "authentication-required": "authentication-required"; "permission-denied": "permission-denied"; "site-unverified": "site-unverified"; throttled: "throttled"; "quota-unavailable": "quota-unavailable"; "provider-error": "provider-error"; }>; readonly retryAt: z.ZodNullable; }, z.core.$strip>], "_tag">>; readonly pagination: z.ZodObject<{ readonly total: z.ZodNumber; readonly limit: z.ZodNumber; readonly offset: z.ZodNumber; readonly hasMore: z.ZodBoolean; }, 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>>; 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>>; registerSiteRequest: z.ZodObject<{ externalSiteId: z.ZodOptional; requestedUrl: z.ZodOptional; gscPropertyUrl: z.ZodOptional; siteUrl: z.ZodString; externalSiteUrl: z.ZodOptional; webhookUrl: z.ZodOptional; webhookEvents: z.ZodOptional>>; enabledSearchTypes: z.ZodOptional>>; catalogSiteId: z.ZodOptional; }, z.core.$strict>; sitemapChangesQuery: z.ZodObject<{ days: z.ZodOptional>>; }, z.core.$strict>; sitemapChangesResponse: CompatibleResponseSchema; }, z.core.$strip>; readonly completeness: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"complete">; scannedUrls: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"truncated">; scannedUrls: z.ZodNumber; reasons: z.ZodArray>; historyAvailableFrom: z.ZodOptional; limits: z.ZodObject<{ scannedUrls: z.ZodNumber; added: z.ZodNumber; removed: z.ZodNumber; updated: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>], "_tag">; readonly added: z.ZodArray>; readonly removed: z.ZodArray>; readonly updated: z.ZodArray; lastmod: z.ZodNullable; observedAt: z.ZodNumber; }, z.core.$loose>>; readonly generation: z.ZodNullable; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>>; }, 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 summary: z.ZodObject<{ totalAdded: z.ZodNumber; totalRemoved: z.ZodNumber; totalUpdated: z.ZodNumber; period: z.ZodObject<{ days: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; readonly completeness: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"complete">; scannedUrls: z.ZodNumber; }, z.core.$loose>, z.ZodObject<{ limits: z.ZodObject<{ scannedUrls: z.ZodNumber; added: z.ZodNumber; removed: z.ZodNumber; updated: z.ZodNumber; }, z.core.$loose>; _tag: z.ZodLiteral<"truncated">; scannedUrls: z.ZodNumber; reasons: z.ZodArray>; historyAvailableFrom: z.ZodOptional; }, z.core.$loose>], "_tag">; readonly added: z.ZodArray>; readonly removed: z.ZodArray>; readonly updated: z.ZodArray; lastmod: z.ZodNullable; observedAt: z.ZodNumber; }, z.core.$loose>>; readonly generation: z.ZodNullable; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>>; }, 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>>; sitemapsResponse: CompatibleResponseSchema; contentHash: z.ZodOptional>; lastDownloaded: z.ZodOptional>; lastError: z.ZodOptional>; isPending: z.ZodOptional; fetchedAt: z.ZodOptional>; }, z.core.$loose>>; history: z.ZodArray>; perSitemapHistory: z.ZodRecord>>; meta: z.ZodObject<{ siteUrl: z.ZodString; gscPropertyUrl: z.ZodOptional; syncStatus: z.ZodNullable; sitemapScope: z.ZodObject<{ excludedCount: z.ZodNumber; duplicateCount: z.ZodNumber; }, z.core.$strip>; }, z.core.$loose>; generation: z.ZodNullable; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>>; }, 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<{ sitemaps: z.ZodArray; contentHash: z.ZodOptional>; lastDownloaded: z.ZodOptional>; lastError: z.ZodOptional>; isPending: z.ZodOptional; fetchedAt: z.ZodOptional>; }, z.core.$loose>>; history: z.ZodArray>; perSitemapHistory: z.ZodRecord>>; meta: z.ZodObject<{ siteUrl: z.ZodString; gscPropertyUrl: z.ZodOptional; syncStatus: z.ZodNullable; sitemapScope: z.ZodObject<{ excludedCount: z.ZodNumber; duplicateCount: z.ZodNumber; }, z.core.$strip>; }, z.core.$loose>; generation: z.ZodNullable; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>>; }, 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>>; siteDeletionResponse: CompatibleResponseSchema; readonly siteId: z.ZodString; readonly siteUrl: z.ZodString; }, 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 deleted: z.ZodLiteral; readonly siteId: z.ZodString; readonly siteUrl: z.ZodString; }, 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>>; siteRegistrationResponse: CompatibleResponseSchema>; catalogSiteId: z.ZodOptional>; status: z.ZodEnum<{ error: "error"; syncing: "syncing"; pending: "pending"; synced: "synced"; idle: "idle"; }>; message: z.ZodOptional; existing: z.ZodOptional; indexingEligible: z.ZodOptional; indexingIneligibleReason: z.ZodOptional>; indexingPermissionLevel: z.ZodOptional>; grantedScopes: z.ZodOptional>; site: z.ZodOptional; catalogSiteId: z.ZodNullable; externalSiteId: z.ZodNullable; requestedUrl: z.ZodString; gscPropertyUrl: z.ZodNullable; permissionLevel: z.ZodNullable; property: z.ZodObject<{ 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"; }>; 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.$loose>; analytics: z.ZodObject<{ 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"; }>; progress: z.ZodObject<{ completed: z.ZodNumber; failed: z.ZodNumber; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>; queryable: z.ZodBoolean; sourceMode: z.ZodEnum<{ none: "none"; live: "live"; d1: "d1"; r2: "r2"; mixed: "mixed"; }>; syncedRange: z.ZodObject<{ oldest: z.ZodNullable; newest: z.ZodNullable; }, z.core.$loose>; nextAction: z.ZodEnum<{ none: "none"; wait_for_sync: "wait_for_sync"; retry_sync: "retry_sync"; }>; }, z.core.$loose>; sitemaps: z.ZodObject<{ status: z.ZodEnum<{ unknown: "unknown"; ready: "ready"; syncing: "syncing"; failed: "failed"; discovering: "discovering"; none_found: "none_found"; auto_submitted: "auto_submitted"; }>; discoveredCount: z.ZodNumber; nextAction: z.ZodEnum<{ none: "none"; submit_sitemap: "submit_sitemap"; wait_for_sitemaps: "wait_for_sitemaps"; retry_sitemaps: "retry_sitemaps"; }>; }, z.core.$loose>; indexing: z.ZodObject<{ 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"; }>; eligible: z.ZodBoolean; reason: z.ZodNullable; progress: z.ZodObject<{ completed: z.ZodNumber; failed: z.ZodNumber; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>; 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.$loose>; latestError: z.ZodNullable; message: z.ZodString; retryable: z.ZodBoolean; }, z.core.$strip>>; lifecycleRevision: z.ZodNumber; updatedAt: z.ZodString; }, 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<{ siteId: z.ZodString; intId: z.ZodOptional>; catalogSiteId: z.ZodOptional>; status: z.ZodEnum<{ error: "error"; syncing: "syncing"; pending: "pending"; synced: "synced"; idle: "idle"; }>; message: z.ZodOptional; existing: z.ZodOptional; indexingEligible: z.ZodOptional; indexingIneligibleReason: z.ZodOptional>; indexingPermissionLevel: z.ZodOptional>; grantedScopes: z.ZodOptional>; site: z.ZodOptional; catalogSiteId: z.ZodNullable; externalSiteId: z.ZodNullable; requestedUrl: z.ZodString; gscPropertyUrl: z.ZodNullable; permissionLevel: z.ZodNullable; property: z.ZodObject<{ 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"; }>; 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.$loose>; analytics: z.ZodObject<{ 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"; }>; progress: z.ZodObject<{ completed: z.ZodNumber; failed: z.ZodNumber; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>; queryable: z.ZodBoolean; sourceMode: z.ZodEnum<{ none: "none"; live: "live"; d1: "d1"; r2: "r2"; mixed: "mixed"; }>; syncedRange: z.ZodObject<{ oldest: z.ZodNullable; newest: z.ZodNullable; }, z.core.$loose>; nextAction: z.ZodEnum<{ none: "none"; wait_for_sync: "wait_for_sync"; retry_sync: "retry_sync"; }>; }, z.core.$loose>; sitemaps: z.ZodObject<{ status: z.ZodEnum<{ unknown: "unknown"; ready: "ready"; syncing: "syncing"; failed: "failed"; discovering: "discovering"; none_found: "none_found"; auto_submitted: "auto_submitted"; }>; discoveredCount: z.ZodNumber; nextAction: z.ZodEnum<{ none: "none"; submit_sitemap: "submit_sitemap"; wait_for_sitemaps: "wait_for_sitemaps"; retry_sitemaps: "retry_sitemaps"; }>; }, z.core.$loose>; indexing: z.ZodObject<{ 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"; }>; eligible: z.ZodBoolean; reason: z.ZodNullable; progress: z.ZodObject<{ completed: z.ZodNumber; failed: z.ZodNumber; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>; 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.$loose>; latestError: z.ZodNullable; message: z.ZodString; retryable: z.ZodBoolean; }, z.core.$strip>>; lifecycleRevision: z.ZodNumber; updatedAt: z.ZodString; }, 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>>; streamHeadResponse: CompatibleResponseSchema; readonly sequence: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"realtime">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ data: z.ZodObject<{ readonly head: z.ZodObject<{ readonly streamId: z.ZodUnion; readonly sequence: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"realtime">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>>; ticketResponse: { producer: 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<{ readonly streamId: z.ZodUnion; readonly sequence: z.ZodString; }, z.core.$strip>; maxConnectionSeconds: z.ZodLiteral<900>; }, z.core.$strict>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"realtime">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strict>; client: 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>; }; userRegistrationResponse: CompatibleResponseSchema; isNew: z.ZodOptional; status: z.ZodOptional>; }, 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<{ userId: z.ZodString; apiKey: z.ZodOptional; isNew: z.ZodOptional; status: z.ZodOptional>; }, 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>>; userTokenUpdateResponse: CompatibleResponseSchema; intId: z.ZodOptional>; syncStatus: z.ZodOptional>>; syncProgress: z.ZodOptional; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>>; lastSyncAt: z.ZodOptional>; newestDateSynced: z.ZodOptional>; oldestDateSynced: z.ZodOptional>; }, 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 userId: z.ZodString; readonly updated: z.ZodBoolean; readonly sites: z.ZodArray; intId: z.ZodOptional>; syncStatus: z.ZodOptional>>; syncProgress: z.ZodOptional; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>>; lastSyncAt: z.ZodOptional>; newestDateSynced: z.ZodOptional>; oldestDateSynced: z.ZodOptional>; }, 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>>; }; surfaces: { partner: HttpV1Surface<{ readonly getUserLifecycle: { readonly id: "partner.users.lifecycle.get"; readonly method: "GET"; readonly path: "/users/{userId}/lifecycle"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["users:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "self"; }, { readonly credential: "partner_key"; readonly rule: "linked_user"; }]; }; readonly request: { readonly params: z.ZodObject<{ userId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }, { readonly type: "user.sites"; readonly idFrom: "params.userId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Get user lifecycle"; readonly description: "Returns the authoritative lifecycle state for one visible user and their sites."; readonly tags: readonly ["Users"]; readonly examples: { readonly request: { readonly params: { readonly userId: "u_01"; }; }; readonly response: { readonly data: { readonly userId: "u_01"; readonly partnerId: "p_01"; readonly currentTeamId: null; readonly account: { readonly status: "ready"; readonly grantedScopes: readonly ["https://www.googleapis.com/auth/webmasters.readonly"]; readonly missingScopes: readonly []; readonly nextAction: "none"; }; readonly sites: readonly []; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly listAvailableSites: { readonly id: "partner.users.sites.available.list"; readonly method: "GET"; readonly path: "/users/{userId}/available-sites"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sites:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "self"; }, { readonly credential: "partner_key"; readonly rule: "linked_user"; }]; }; readonly request: { readonly params: z.ZodObject<{ userId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ refresh: z.ZodOptional, z.ZodLiteral<1>, z.ZodLiteral<"true">, z.ZodLiteral<"1">]>>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; intId: z.ZodOptional>; syncStatus: z.ZodOptional>>; syncProgress: z.ZodOptional; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>>; lastSyncAt: z.ZodOptional>; newestDateSynced: z.ZodOptional>; oldestDateSynced: z.ZodOptional>; }, 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 sites: z.ZodArray; intId: z.ZodOptional>; syncStatus: z.ZodOptional>>; syncProgress: z.ZodOptional; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>>; lastSyncAt: z.ZodOptional>; newestDateSynced: z.ZodOptional>; oldestDateSynced: z.ZodOptional>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }, { readonly type: "user.sites"; readonly idFrom: "params.userId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "List available Search Console properties"; readonly description: "Lists the visible Google Search Console properties and their registration state."; readonly tags: readonly ["Sites"]; readonly examples: { readonly request: { readonly params: { readonly userId: "u_01"; }; readonly query: {}; }; readonly response: { readonly data: { readonly sites: readonly []; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly createSite: { readonly id: "partner.users.sites.create"; readonly method: "POST"; readonly path: "/users/{userId}/sites"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sites:write"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "self"; }, { readonly credential: "partner_key"; readonly rule: "linked_user"; }]; }; readonly request: { readonly params: z.ZodObject<{ userId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ externalSiteId: z.ZodOptional; requestedUrl: z.ZodOptional; gscPropertyUrl: z.ZodOptional; siteUrl: z.ZodString; externalSiteUrl: z.ZodOptional; webhookUrl: z.ZodOptional; webhookEvents: z.ZodOptional>>; enabledSearchTypes: z.ZodOptional>>; catalogSiteId: z.ZodOptional; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema>; catalogSiteId: z.ZodOptional>; status: z.ZodEnum<{ error: "error"; syncing: "syncing"; pending: "pending"; synced: "synced"; idle: "idle"; }>; message: z.ZodOptional; existing: z.ZodOptional; indexingEligible: z.ZodOptional; indexingIneligibleReason: z.ZodOptional>; indexingPermissionLevel: z.ZodOptional>; grantedScopes: z.ZodOptional>; site: z.ZodOptional; catalogSiteId: z.ZodNullable; externalSiteId: z.ZodNullable; requestedUrl: z.ZodString; gscPropertyUrl: z.ZodNullable; permissionLevel: z.ZodNullable; property: z.ZodObject<{ 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"; }>; 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.$loose>; analytics: z.ZodObject<{ 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"; }>; progress: z.ZodObject<{ completed: z.ZodNumber; failed: z.ZodNumber; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>; queryable: z.ZodBoolean; sourceMode: z.ZodEnum<{ none: "none"; live: "live"; d1: "d1"; r2: "r2"; mixed: "mixed"; }>; syncedRange: z.ZodObject<{ oldest: z.ZodNullable; newest: z.ZodNullable; }, z.core.$loose>; nextAction: z.ZodEnum<{ none: "none"; wait_for_sync: "wait_for_sync"; retry_sync: "retry_sync"; }>; }, z.core.$loose>; sitemaps: z.ZodObject<{ status: z.ZodEnum<{ unknown: "unknown"; ready: "ready"; syncing: "syncing"; failed: "failed"; discovering: "discovering"; none_found: "none_found"; auto_submitted: "auto_submitted"; }>; discoveredCount: z.ZodNumber; nextAction: z.ZodEnum<{ none: "none"; submit_sitemap: "submit_sitemap"; wait_for_sitemaps: "wait_for_sitemaps"; retry_sitemaps: "retry_sitemaps"; }>; }, z.core.$loose>; indexing: z.ZodObject<{ 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"; }>; eligible: z.ZodBoolean; reason: z.ZodNullable; progress: z.ZodObject<{ completed: z.ZodNumber; failed: z.ZodNumber; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>; 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.$loose>; latestError: z.ZodNullable; message: z.ZodString; retryable: z.ZodBoolean; }, z.core.$strip>>; lifecycleRevision: z.ZodNumber; updatedAt: z.ZodString; }, 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<{ siteId: z.ZodString; intId: z.ZodOptional>; catalogSiteId: z.ZodOptional>; status: z.ZodEnum<{ error: "error"; syncing: "syncing"; pending: "pending"; synced: "synced"; idle: "idle"; }>; message: z.ZodOptional; existing: z.ZodOptional; indexingEligible: z.ZodOptional; indexingIneligibleReason: z.ZodOptional>; indexingPermissionLevel: z.ZodOptional>; grantedScopes: z.ZodOptional>; site: z.ZodOptional; catalogSiteId: z.ZodNullable; externalSiteId: z.ZodNullable; requestedUrl: z.ZodString; gscPropertyUrl: z.ZodNullable; permissionLevel: z.ZodNullable; property: z.ZodObject<{ 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"; }>; 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.$loose>; analytics: z.ZodObject<{ 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"; }>; progress: z.ZodObject<{ completed: z.ZodNumber; failed: z.ZodNumber; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>; queryable: z.ZodBoolean; sourceMode: z.ZodEnum<{ none: "none"; live: "live"; d1: "d1"; r2: "r2"; mixed: "mixed"; }>; syncedRange: z.ZodObject<{ oldest: z.ZodNullable; newest: z.ZodNullable; }, z.core.$loose>; nextAction: z.ZodEnum<{ none: "none"; wait_for_sync: "wait_for_sync"; retry_sync: "retry_sync"; }>; }, z.core.$loose>; sitemaps: z.ZodObject<{ status: z.ZodEnum<{ unknown: "unknown"; ready: "ready"; syncing: "syncing"; failed: "failed"; discovering: "discovering"; none_found: "none_found"; auto_submitted: "auto_submitted"; }>; discoveredCount: z.ZodNumber; nextAction: z.ZodEnum<{ none: "none"; submit_sitemap: "submit_sitemap"; wait_for_sitemaps: "wait_for_sitemaps"; retry_sitemaps: "retry_sitemaps"; }>; }, z.core.$loose>; indexing: z.ZodObject<{ 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"; }>; eligible: z.ZodBoolean; reason: z.ZodNullable; progress: z.ZodObject<{ completed: z.ZodNumber; failed: z.ZodNumber; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>; 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.$loose>; latestError: z.ZodNullable; message: z.ZodString; retryable: z.ZodBoolean; }, z.core.$strip>>; lifecycleRevision: z.ZodNumber; updatedAt: z.ZodString; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }]; readonly changes: readonly [{ readonly type: "site.registration"; readonly idFrom: "params.userId"; }]; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Register a site"; readonly description: "Registers one Search Console property for an authorized user."; readonly tags: readonly ["Sites"]; readonly examples: { readonly request: { readonly params: { readonly userId: "u_01"; }; readonly body: { readonly siteUrl: "sc-domain:example.com"; }; }; readonly response: { readonly data: { readonly siteId: "s_01"; readonly status: "pending"; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly createUser: { readonly id: "partner.users.create"; readonly method: "POST"; readonly path: "/users"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["users:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: null; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ userGoogleId: z.ZodString; userEmail: z.ZodEmail; userName: z.ZodOptional; accessToken: z.ZodString; refreshToken: z.ZodString; tokenExpiresAt: z.ZodOptional; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; isNew: z.ZodOptional; status: z.ZodOptional>; }, 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<{ userId: z.ZodString; apiKey: z.ZodOptional; isNew: z.ZodOptional; status: z.ZodOptional>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly []; readonly changes: readonly [{ readonly type: "partner.user"; readonly idFrom: "principal.id"; }]; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Register a partner user"; readonly description: "Creates or updates a user owned by the authenticated partner tenant."; readonly tags: readonly ["Users"]; readonly examples: { readonly request: { readonly body: { readonly userGoogleId: "google_01"; readonly userEmail: "owner@example.com"; readonly accessToken: "token"; readonly refreshToken: "refresh"; }; }; readonly response: { readonly data: { readonly userId: "u_01"; readonly status: "provisioning"; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly updateUserTokens: { readonly id: "partner.users.tokens.update"; readonly method: "PATCH"; readonly path: "/users/{userId}/tokens"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["users:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "linked_user"; }]; }; readonly request: { readonly params: z.ZodObject<{ userId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ accessToken: z.ZodString; refreshToken: z.ZodString; tokenExpiresAt: z.ZodOptional; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; intId: z.ZodOptional>; syncStatus: z.ZodOptional>>; syncProgress: z.ZodOptional; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>>; lastSyncAt: z.ZodOptional>; newestDateSynced: z.ZodOptional>; oldestDateSynced: z.ZodOptional>; }, 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 userId: z.ZodString; readonly updated: z.ZodBoolean; readonly sites: z.ZodArray; intId: z.ZodOptional>; syncStatus: z.ZodOptional>>; syncProgress: z.ZodOptional; total: z.ZodNumber; percent: z.ZodNumber; }, z.core.$strip>>; lastSyncAt: z.ZodOptional>; newestDateSynced: z.ZodOptional>; oldestDateSynced: z.ZodOptional>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }]; readonly changes: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }]; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Update user OAuth tokens"; readonly description: "Replaces the Google OAuth grant for a partner-linked user."; readonly tags: readonly ["Users"]; readonly examples: { readonly request: { readonly params: { readonly userId: "u_01"; }; readonly body: { readonly accessToken: "token"; readonly refreshToken: "refresh"; }; }; readonly response: { readonly data: { readonly userId: "u_01"; readonly updated: true; readonly sites: readonly []; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getSiteIndexing: { readonly id: "partner.sites.indexing.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/indexing"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["indexing:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ days: z.ZodOptional>>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; notIndexedCount: z.ZodNullable; errorCount: z.ZodNullable; indexedPercent: z.ZodNumber; issues: z.ZodObject<{ blockedByRobots: z.ZodNullable; noindexDetected: z.ZodNullable; soft404: z.ZodNullable; redirect: z.ZodNullable; notFound: z.ZodNullable; serverError: z.ZodNullable; }, z.core.$loose>; coverage: z.ZodObject<{ submittedIndexed: z.ZodNullable; crawledNotIndexed: z.ZodNullable; discoveredNotCrawled: z.ZodNullable; }, z.core.$loose>; signals: z.ZodObject<{ mobilePass: z.ZodNumber; mobileFail: z.ZodNumber; richResultsPass: z.ZodNumber; richResultsFail: z.ZodNumber; }, z.core.$loose>; }, z.core.$loose>>; summary: z.ZodObject<{ totalUrls: z.ZodNumber; indexed: z.ZodNumber; notIndexed: z.ZodNumber; pending: z.ZodNumber; indexedPercent: z.ZodNumber; oldestCheck: z.ZodNullable; newestCheck: z.ZodNullable; change7d: z.ZodNullable; change28d: z.ZodNullable; signals: z.ZodObject<{ mobilePass: z.ZodNumber; mobileFail: z.ZodNumber; mobileUnspecified: z.ZodNumber; richResultsPass: z.ZodNumber; richResultsFail: z.ZodNumber; richResultTypes: z.ZodArray>; crawlingMobile: z.ZodNumber; crawlingDesktop: z.ZodNumber; }, z.core.$loose>; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodNullable; indexingStatus: z.ZodEnum<{ pending: "pending"; partial: "partial"; complete: "complete"; }>; indexingProgress: z.ZodNumber; sitemapTotal: z.ZodNumber; inspectedCount: z.ZodNumber; noSitemapsSubmitted: z.ZodBoolean; sitemapsPending: z.ZodBoolean; rollupBuiltAt: z.ZodOptional; }, 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<{ trend: z.ZodArray; notIndexedCount: z.ZodNullable; errorCount: z.ZodNullable; indexedPercent: z.ZodNumber; issues: z.ZodObject<{ blockedByRobots: z.ZodNullable; noindexDetected: z.ZodNullable; soft404: z.ZodNullable; redirect: z.ZodNullable; notFound: z.ZodNullable; serverError: z.ZodNullable; }, z.core.$loose>; coverage: z.ZodObject<{ submittedIndexed: z.ZodNullable; crawledNotIndexed: z.ZodNullable; discoveredNotCrawled: z.ZodNullable; }, z.core.$loose>; signals: z.ZodObject<{ mobilePass: z.ZodNumber; mobileFail: z.ZodNumber; richResultsPass: z.ZodNumber; richResultsFail: z.ZodNumber; }, z.core.$loose>; }, z.core.$loose>>; summary: z.ZodObject<{ totalUrls: z.ZodNumber; indexed: z.ZodNumber; notIndexed: z.ZodNumber; pending: z.ZodNumber; indexedPercent: z.ZodNumber; oldestCheck: z.ZodNullable; newestCheck: z.ZodNullable; change7d: z.ZodNullable; change28d: z.ZodNullable; signals: z.ZodObject<{ mobilePass: z.ZodNumber; mobileFail: z.ZodNumber; mobileUnspecified: z.ZodNumber; richResultsPass: z.ZodNumber; richResultsFail: z.ZodNumber; richResultTypes: z.ZodArray>; crawlingMobile: z.ZodNumber; crawlingDesktop: z.ZodNumber; }, z.core.$loose>; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodNullable; indexingStatus: z.ZodEnum<{ pending: "pending"; partial: "partial"; complete: "complete"; }>; indexingProgress: z.ZodNumber; sitemapTotal: z.ZodNumber; inspectedCount: z.ZodNumber; noSitemapsSubmitted: z.ZodBoolean; sitemapsPending: z.ZodBoolean; rollupBuiltAt: z.ZodOptional; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.indexing"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Get site indexing summary"; readonly description: "Returns indexing coverage, trend, and inspection signal totals."; readonly tags: readonly ["Indexing"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly days: 28; }; }; readonly response: { readonly data: { readonly trend: readonly []; readonly summary: { readonly totalUrls: 0; readonly indexed: 0; readonly notIndexed: 0; readonly pending: 0; readonly indexedPercent: 0; readonly oldestCheck: null; readonly newestCheck: null; readonly change7d: null; readonly change28d: null; readonly signals: { readonly mobilePass: 0; readonly mobileFail: 0; readonly mobileUnspecified: 0; readonly richResultsPass: 0; readonly richResultsFail: 0; readonly richResultTypes: readonly []; readonly crawlingMobile: 0; readonly crawlingDesktop: 0; }; }; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; readonly indexingStatus: "complete"; readonly indexingProgress: 100; readonly sitemapTotal: 0; readonly inspectedCount: 0; readonly noSitemapsSubmitted: false; readonly sitemapsPending: false; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly listSiteIndexingUrls: { readonly id: "partner.sites.indexing.urls.list"; readonly method: "GET"; readonly path: "/sites/{siteId}/indexing/urls"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["indexing:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ limit: z.ZodOptional>>; offset: z.ZodOptional>>; status: z.ZodOptional>; issue: z.ZodOptional; search: z.ZodOptional; count: z.ZodOptional, z.ZodLiteral, z.ZodLiteral<"0">, z.ZodLiteral<"false">]>>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema>; verdict: z.ZodNullable; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; canonicalMismatchKind: z.ZodEnum<{ path: "path"; none: "none"; formatting: "formatting"; cross_domain: "cross_domain"; }>; sitemaps: z.ZodNullable>; referringUrls: z.ZodNullable>; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable>; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable>; inspectionResultLink: z.ZodNullable; firstCheckedAt: z.ZodString; lastCheckedAt: z.ZodString; checkCount: z.ZodNumber; }, z.core.$loose>>; pagination: z.ZodObject<{ total: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; gscPropertyUrl: z.ZodOptional; status: z.ZodString; issue: 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<{ urls: z.ZodArray>; verdict: z.ZodNullable; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; canonicalMismatchKind: z.ZodEnum<{ path: "path"; none: "none"; formatting: "formatting"; cross_domain: "cross_domain"; }>; sitemaps: z.ZodNullable>; referringUrls: z.ZodNullable>; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable>; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable>; inspectionResultLink: z.ZodNullable; firstCheckedAt: z.ZodString; lastCheckedAt: z.ZodString; checkCount: z.ZodNumber; }, z.core.$loose>>; pagination: z.ZodObject<{ total: z.ZodNumber; limit: z.ZodNumber; offset: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; gscPropertyUrl: z.ZodOptional; status: z.ZodString; issue: 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.indexing"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "List indexed URLs"; readonly description: "Returns the filtered URL-inspection index with pagination metadata."; readonly tags: readonly ["Indexing"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly limit: 100; readonly offset: 0; }; }; readonly response: { readonly data: { readonly urls: readonly []; readonly pagination: { readonly total: 0; readonly limit: 100; readonly offset: 0; readonly hasMore: false; }; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly status: "all"; readonly issue: null; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly listSiteBingIndexingEvidence: { readonly id: "partner.sites.indexing.bing.evidence.list"; readonly method: "GET"; readonly path: "/sites/{siteId}/indexing/bing/evidence"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["indexing:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ limit: z.ZodOptional>>; offset: z.ZodOptional>>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; readonly siteUrl: z.ZodURL; readonly indexingEvidence: z.ZodArray; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly providerEvidenceAt: z.ZodISODateTime; readonly freshness: z.ZodEnum<{ current: "current"; stale: "stale"; }>; readonly discoveryTime: z.ZodNullable; readonly lastCrawlTime: z.ZodNullable; readonly originHttpStatus: z.ZodNullable; readonly documentSize: z.ZodNumber; readonly anchorCount: z.ZodNumber; readonly totalChildUrlCount: z.ZodNumber; readonly uncertaintyReason: z.ZodLiteral<"indexed-verdict-unavailable">; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"unknown">; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly reason: z.ZodEnum<{ "not-discovered": "not-discovered"; "not-observed": "not-observed"; }>; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"unavailable">; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly reason: z.ZodEnum<{ "authentication-required": "authentication-required"; "permission-denied": "permission-denied"; "site-unverified": "site-unverified"; throttled: "throttled"; "quota-unavailable": "quota-unavailable"; "provider-error": "provider-error"; }>; readonly retryAt: z.ZodNullable; }, z.core.$strip>], "_tag">>; readonly pagination: z.ZodObject<{ readonly total: z.ZodNumber; readonly limit: z.ZodNumber; readonly offset: z.ZodNumber; readonly hasMore: z.ZodBoolean; }, 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 searchEngine: z.ZodLiteral<"bing">; readonly siteUrl: z.ZodURL; readonly indexingEvidence: z.ZodArray; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly providerEvidenceAt: z.ZodISODateTime; readonly freshness: z.ZodEnum<{ current: "current"; stale: "stale"; }>; readonly discoveryTime: z.ZodNullable; readonly lastCrawlTime: z.ZodNullable; readonly originHttpStatus: z.ZodNullable; readonly documentSize: z.ZodNumber; readonly anchorCount: z.ZodNumber; readonly totalChildUrlCount: z.ZodNumber; readonly uncertaintyReason: z.ZodLiteral<"indexed-verdict-unavailable">; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"unknown">; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly reason: z.ZodEnum<{ "not-discovered": "not-discovered"; "not-observed": "not-observed"; }>; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"unavailable">; readonly searchEngine: z.ZodLiteral<"bing">; readonly url: z.ZodURL; readonly observedAt: z.ZodISODateTime; readonly reason: z.ZodEnum<{ "authentication-required": "authentication-required"; "permission-denied": "permission-denied"; "site-unverified": "site-unverified"; throttled: "throttled"; "quota-unavailable": "quota-unavailable"; "provider-error": "provider-error"; }>; readonly retryAt: z.ZodNullable; }, z.core.$strip>], "_tag">>; readonly pagination: z.ZodObject<{ readonly total: z.ZodNumber; readonly limit: z.ZodNumber; readonly offset: z.ZodNumber; readonly hasMore: z.ZodBoolean; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.indexing"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.5.0"; }; readonly docs: { readonly summary: "List Bing Indexing Evidence"; readonly description: "Returns dated Bing discovery and crawl observations. It does not return an indexed verdict."; readonly tags: readonly ["Indexing"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly limit: 100; readonly offset: 0; }; }; readonly response: { readonly data: { readonly searchEngine: "bing"; readonly siteUrl: "https://example.com/"; readonly indexingEvidence: readonly []; readonly pagination: { readonly total: 0; readonly limit: 100; readonly offset: 0; readonly hasMore: false; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly listSiteIndexingTransitions: { readonly id: "partner.sites.indexing.transitions.list"; readonly method: "GET"; readonly path: "/sites/{siteId}/indexing/transitions"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["indexing:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ startDate: z.ZodOptional; endDate: z.ZodOptional; field: z.ZodOptional>; fromValue: z.ZodOptional; toValue: z.ZodOptional; limit: z.ZodOptional>>; offset: z.ZodOptional>>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; readonly fromValue: z.ZodNullable; readonly toValue: z.ZodNullable; readonly changedAfter: z.ZodString; readonly changedBefore: z.ZodString; readonly detectedAt: z.ZodString; readonly observationGapDays: z.ZodNumber; }, z.core.$strip>>; readonly observationWindow: z.ZodDiscriminatedUnion<[z.ZodObject<{ readonly _tag: z.ZodLiteral<"empty">; readonly gapDaysMedian: z.ZodNull; readonly gapDaysP90: z.ZodNull; readonly sampleSize: z.ZodLiteral<0>; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"sampled">; readonly gapDaysMedian: z.ZodNumber; readonly gapDaysP90: z.ZodNumber; readonly sampleSize: z.ZodNumber; }, z.core.$strip>], "_tag">; readonly pagination: z.ZodObject<{ readonly total: z.ZodNumber; readonly limit: z.ZodNumber; readonly offset: z.ZodNumber; readonly hasMore: z.ZodBoolean; }, z.core.$strip>; readonly meta: z.ZodObject<{ readonly siteUrl: z.ZodString; readonly startDate: z.ZodString; readonly endDate: z.ZodString; }, 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 transitions: z.ZodArray; readonly fromValue: z.ZodNullable; readonly toValue: z.ZodNullable; readonly changedAfter: z.ZodString; readonly changedBefore: z.ZodString; readonly detectedAt: z.ZodString; readonly observationGapDays: z.ZodNumber; }, z.core.$strip>>; readonly observationWindow: z.ZodDiscriminatedUnion<[z.ZodObject<{ readonly _tag: z.ZodLiteral<"empty">; readonly gapDaysMedian: z.ZodNull; readonly gapDaysP90: z.ZodNull; readonly sampleSize: z.ZodLiteral<0>; }, z.core.$strip>, z.ZodObject<{ readonly _tag: z.ZodLiteral<"sampled">; readonly gapDaysMedian: z.ZodNumber; readonly gapDaysP90: z.ZodNumber; readonly sampleSize: z.ZodNumber; }, z.core.$strip>], "_tag">; readonly pagination: z.ZodObject<{ readonly total: z.ZodNumber; readonly limit: z.ZodNumber; readonly offset: z.ZodNumber; readonly hasMore: z.ZodBoolean; }, z.core.$strip>; readonly meta: z.ZodObject<{ readonly siteUrl: z.ZodString; readonly startDate: z.ZodString; readonly endDate: z.ZodString; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.indexing"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.4.8"; }; readonly docs: { readonly summary: "List observed indexing transitions"; readonly description: "Returns URL inspection state changes as bounded observation intervals. detectedAt is the first observation showing the new state, not the exact change time."; readonly tags: readonly ["Indexing"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly startDate: "2026-06-01"; readonly endDate: "2026-07-26"; readonly field: "coverageState"; }; }; readonly response: { readonly data: { readonly transitions: readonly []; readonly observationWindow: { readonly _tag: "empty"; readonly gapDaysMedian: null; readonly gapDaysP90: null; readonly sampleSize: 0; }; readonly pagination: { readonly total: 0; readonly limit: 100; readonly offset: 0; readonly hasMore: false; }; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly startDate: "2026-06-01"; readonly endDate: "2026-07-26"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getSiteIndexingDiagnostics: { readonly id: "partner.sites.indexing.diagnostics.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/indexing/diagnostics"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["indexing:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ sampleIssues: z.ZodOptional]>>; sampleLimit: z.ZodOptional>>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; issues: z.ZodArray; count: z.ZodNumber; description: z.ZodString; fix: z.ZodString; }, z.core.$loose>>; samples: z.ZodOptional>; verdict: z.ZodNullable; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; canonicalMismatchKind: z.ZodEnum<{ path: "path"; none: "none"; formatting: "formatting"; cross_domain: "cross_domain"; }>; sitemaps: z.ZodNullable>; referringUrls: z.ZodNullable>; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable>; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable>; inspectionResultLink: z.ZodNullable; firstCheckedAt: z.ZodString; lastCheckedAt: z.ZodString; checkCount: z.ZodNumber; }, z.core.$loose>>>>; meta: z.ZodObject<{ siteUrl: z.ZodString; }, 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<{ summary: z.ZodObject<{ totalUrls: z.ZodNumber; indexed: z.ZodNumber; indexedPercent: z.ZodNumber; }, z.core.$loose>; issues: z.ZodArray; count: z.ZodNumber; description: z.ZodString; fix: z.ZodString; }, z.core.$loose>>; samples: z.ZodOptional>; verdict: z.ZodNullable; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; canonicalMismatchKind: z.ZodEnum<{ path: "path"; none: "none"; formatting: "formatting"; cross_domain: "cross_domain"; }>; sitemaps: z.ZodNullable>; referringUrls: z.ZodNullable>; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable>; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable>; inspectionResultLink: z.ZodNullable; firstCheckedAt: z.ZodString; lastCheckedAt: z.ZodString; checkCount: z.ZodNumber; }, z.core.$loose>>>>; meta: z.ZodObject<{ siteUrl: z.ZodString; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.indexing"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Get indexing diagnostics"; readonly description: "Returns indexing issue groups and optional URL samples."; readonly tags: readonly ["Indexing"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: {}; }; readonly response: { readonly data: { readonly summary: { readonly totalUrls: 0; readonly indexed: 0; readonly indexedPercent: 0; }; readonly issues: readonly []; readonly meta: { readonly siteUrl: "sc-domain:example.com"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getSiteSitemaps: { readonly id: "partner.sites.sitemaps.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/sitemaps"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sitemaps:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; contentHash: z.ZodOptional>; lastDownloaded: z.ZodOptional>; lastError: z.ZodOptional>; isPending: z.ZodOptional; fetchedAt: z.ZodOptional>; }, z.core.$loose>>; history: z.ZodArray>; perSitemapHistory: z.ZodRecord>>; meta: z.ZodObject<{ siteUrl: z.ZodString; gscPropertyUrl: z.ZodOptional; syncStatus: z.ZodNullable; sitemapScope: z.ZodObject<{ excludedCount: z.ZodNumber; duplicateCount: z.ZodNumber; }, z.core.$strip>; }, z.core.$loose>; generation: z.ZodNullable; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>>; }, 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<{ sitemaps: z.ZodArray; contentHash: z.ZodOptional>; lastDownloaded: z.ZodOptional>; lastError: z.ZodOptional>; isPending: z.ZodOptional; fetchedAt: z.ZodOptional>; }, z.core.$loose>>; history: z.ZodArray>; perSitemapHistory: z.ZodRecord>>; meta: z.ZodObject<{ siteUrl: z.ZodString; gscPropertyUrl: z.ZodOptional; syncStatus: z.ZodNullable; sitemapScope: z.ZodObject<{ excludedCount: z.ZodNumber; duplicateCount: z.ZodNumber; }, z.core.$strip>; }, z.core.$loose>; generation: z.ZodNullable; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.sitemaps"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Get sitemap snapshot"; readonly description: "Returns registered sitemaps and their aggregate and per-sitemap history."; readonly tags: readonly ["Sitemaps"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; }; readonly response: { readonly data: { readonly sitemaps: readonly []; readonly history: readonly []; readonly perSitemapHistory: {}; readonly generation: null; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly gscPropertyUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; readonly sitemapScope: { readonly excludedCount: 0; readonly duplicateCount: 0; }; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getSiteSitemapChanges: { readonly id: "partner.sites.sitemaps.changes.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/sitemaps/changes"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sitemaps:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ days: z.ZodOptional>>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; }, z.core.$strip>; readonly completeness: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"complete">; scannedUrls: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"truncated">; scannedUrls: z.ZodNumber; reasons: z.ZodArray>; historyAvailableFrom: z.ZodOptional; limits: z.ZodObject<{ scannedUrls: z.ZodNumber; added: z.ZodNumber; removed: z.ZodNumber; updated: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>], "_tag">; readonly added: z.ZodArray>; readonly removed: z.ZodArray>; readonly updated: z.ZodArray; lastmod: z.ZodNullable; observedAt: z.ZodNumber; }, z.core.$loose>>; readonly generation: z.ZodNullable; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>>; }, 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 summary: z.ZodObject<{ totalAdded: z.ZodNumber; totalRemoved: z.ZodNumber; totalUpdated: z.ZodNumber; period: z.ZodObject<{ days: z.ZodNumber; }, z.core.$strip>; }, z.core.$strip>; readonly completeness: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"complete">; scannedUrls: z.ZodNumber; }, z.core.$loose>, z.ZodObject<{ limits: z.ZodObject<{ scannedUrls: z.ZodNumber; added: z.ZodNumber; removed: z.ZodNumber; updated: z.ZodNumber; }, z.core.$loose>; _tag: z.ZodLiteral<"truncated">; scannedUrls: z.ZodNumber; reasons: z.ZodArray>; historyAvailableFrom: z.ZodOptional; }, z.core.$loose>], "_tag">; readonly added: z.ZodArray>; readonly removed: z.ZodArray>; readonly updated: z.ZodArray; lastmod: z.ZodNullable; observedAt: z.ZodNumber; }, z.core.$loose>>; readonly generation: z.ZodNullable; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.sitemaps"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Get sitemap URL changes"; readonly description: "Returns recently added and removed sitemap URLs for the requested window."; readonly tags: readonly ["Sitemaps"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly days: 28; }; }; readonly response: { readonly data: { readonly added: readonly []; readonly removed: readonly []; readonly updated: readonly []; readonly generation: null; readonly summary: { readonly totalAdded: 0; readonly totalRemoved: 0; readonly totalUpdated: 0; readonly period: { readonly days: 28; }; }; readonly completeness: { readonly _tag: "complete"; readonly scannedUrls: 0; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getSiteAnalysis: { readonly id: "partner.sites.analysis.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/analysis"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:execute"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ preset: z.ZodEnum<{ "striking-distance": "striking-distance"; opportunity: "opportunity"; decay: "decay"; "zero-click": "zero-click"; "non-brand": "non-brand"; "brand-only": "brand-only"; "movers-rising": "movers-rising"; "movers-declining": "movers-declining"; }>; startDate: z.ZodString; endDate: z.ZodString; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; brandTerms: z.ZodOptional; limit: z.ZodOptional>>; offset: z.ZodOptional>>; search: z.ZodOptional; minImpressions: z.ZodOptional>; minPosition: z.ZodOptional>; maxPosition: z.ZodOptional>; maxCtr: z.ZodOptional>; searchType: z.ZodOptional>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; keywords: z.ZodArray>; totalCount: z.ZodNumber; summary: z.ZodOptional>>; meta: z.ZodObject<{ siteUrl: z.ZodString; params: z.ZodObject<{ brandTerms: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strip>; presetDescription: z.ZodOptional; }, 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<{ preset: z.ZodEnum<{ "striking-distance": "striking-distance"; opportunity: "opportunity"; decay: "decay"; "zero-click": "zero-click"; "non-brand": "non-brand"; "brand-only": "brand-only"; "movers-rising": "movers-rising"; "movers-declining": "movers-declining"; }>; keywords: z.ZodArray>; totalCount: z.ZodNumber; summary: z.ZodOptional>>; meta: z.ZodObject<{ siteUrl: z.ZodString; params: z.ZodObject<{ brandTerms: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strip>; presetDescription: z.ZodOptional; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Run an analysis preset"; readonly description: "Runs one validated analysis preset for an analytics window."; readonly tags: readonly ["Analysis"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly preset: "opportunity"; readonly startDate: "2026-06-01"; readonly endDate: "2026-06-30"; }; }; readonly response: { readonly data: { readonly preset: "opportunity"; readonly keywords: readonly []; readonly totalCount: 0; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly params: { readonly startDate: "2026-06-01"; readonly endDate: "2026-06-30"; }; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getSiteAnalysisBundle: { readonly id: "partner.sites.analysis.bundle.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/analysis/bundle"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:execute"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ presets: z.ZodUnion>, z.ZodString]>; startDate: z.ZodString; endDate: z.ZodString; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; brandTerms: z.ZodOptional; limit: z.ZodOptional>>; offset: z.ZodOptional>>; search: z.ZodOptional; minImpressions: z.ZodOptional>; minPosition: z.ZodOptional>; maxPosition: z.ZodOptional>; maxCtr: z.ZodOptional>; searchType: z.ZodOptional>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema>; totalCount: z.ZodNumber; summary: z.ZodOptional>>; presetDescription: z.ZodString; }, z.core.$strip>>; meta: z.ZodObject<{ siteUrl: z.ZodString; params: z.ZodObject<{ brandTerms: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strip>; presetDescription: z.ZodOptional; }, 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<{ bundle: z.ZodRecord>; totalCount: z.ZodNumber; summary: z.ZodOptional>>; presetDescription: z.ZodString; }, z.core.$strip>>; meta: z.ZodObject<{ siteUrl: z.ZodString; params: z.ZodObject<{ brandTerms: z.ZodOptional>; startDate: z.ZodOptional; endDate: z.ZodOptional; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strip>; presetDescription: z.ZodOptional; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Run an analysis bundle"; readonly description: "Runs several validated presets against one shared analytics pool."; readonly tags: readonly ["Analysis"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly presets: readonly ["opportunity"]; readonly startDate: "2026-06-01"; readonly endDate: "2026-06-30"; }; }; readonly response: { readonly data: { readonly bundle: {}; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly params: { readonly startDate: "2026-06-01"; readonly endDate: "2026-06-30"; }; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly deleteSite: { readonly id: "partner.sites.delete"; readonly method: "DELETE"; readonly path: "/sites/{siteId}"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sites:write"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; readonly siteId: z.ZodString; readonly siteUrl: z.ZodString; }, 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 deleted: z.ZodLiteral; readonly siteId: z.ZodString; readonly siteUrl: z.ZodString; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.registration"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly [{ readonly type: "site.registration"; readonly idFrom: "params.siteId"; }, { readonly type: "site.lifecycle"; readonly idFrom: "params.siteId"; }]; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Delete a site registration"; readonly description: "Removes the site registration and queued work while retaining the user data store."; readonly tags: readonly ["Sites"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; }; readonly response: { readonly data: { readonly deleted: true; readonly siteId: "s_01"; readonly siteUrl: "example.com"; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getCanonicalMismatches: { readonly id: "partner.sites.canonical.mismatches.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/canonical-mismatches"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["indexing:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; coverageState: z.ZodNullable; lastCrawlTime: z.ZodNullable; lastCheckedAt: z.ZodNullable; kind: z.ZodEnum<{ path: "path"; cross_domain: "cross_domain"; }>; }, z.core.$loose>>; totalCount: z.ZodNumber; consolidationTargets: z.ZodArray>; trend: z.ZodArray>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: 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<{ mismatches: z.ZodArray; coverageState: z.ZodNullable; lastCrawlTime: z.ZodNullable; lastCheckedAt: z.ZodNullable; kind: z.ZodEnum<{ path: "path"; cross_domain: "cross_domain"; }>; }, z.core.$loose>>; totalCount: z.ZodNumber; consolidationTargets: z.ZodArray>; trend: z.ZodArray>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.indexing"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.1.0"; }; readonly docs: { readonly summary: "List canonical mismatches"; readonly description: "Returns sitemap-scoped URLs whose Google-chosen canonical diverges from the declared canonical, with consolidation targets and trend."; readonly tags: readonly ["Indexing"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; }; readonly response: { readonly data: { readonly mismatches: readonly []; readonly totalCount: 0; readonly consolidationTargets: readonly []; readonly trend: readonly []; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly inspectSiteUrls: { readonly id: "partner.sites.indexing.inspect.create"; readonly method: "POST"; readonly path: "/sites/{siteId}/indexing/inspect"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: false; readonly retry: "never"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["indexing:write"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ urls: z.ZodArray; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; readonly results: z.ZodArray; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; sitemaps: z.ZodNullable; referringUrls: z.ZodNullable; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable; ampVerdict: z.ZodNullable; ampUrl: z.ZodNullable; ampIndexingState: z.ZodNullable; ampIndexStatusVerdict: z.ZodNullable; ampRobotsTxtState: z.ZodNullable; ampPageFetchState: z.ZodNullable; ampLastCrawlTime: z.ZodNullable; ampIssues: z.ZodNullable; inspectionResultLink: z.ZodNullable; }, z.core.$strip>>; readonly errors: z.ZodArray>; readonly skipped: z.ZodArray; }, z.core.$strict>>; }, 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 siteId: z.ZodString; readonly rateLimit: z.ZodObject<{ reserved: z.ZodNumber; remaining: z.ZodNumber; limit: z.ZodNumber; }, z.core.$strict>; readonly results: z.ZodArray; coverageState: z.ZodNullable; indexingState: z.ZodNullable; robotsTxtState: z.ZodNullable; pageFetchState: z.ZodNullable; lastCrawlTime: z.ZodNullable; crawlingUserAgent: z.ZodNullable; userCanonical: z.ZodNullable; googleCanonical: z.ZodNullable; sitemaps: z.ZodNullable; referringUrls: z.ZodNullable; mobileVerdict: z.ZodNullable; mobileIssues: z.ZodNullable; richResultsVerdict: z.ZodNullable; richResultsItems: z.ZodNullable; ampVerdict: z.ZodNullable; ampUrl: z.ZodNullable; ampIndexingState: z.ZodNullable; ampIndexStatusVerdict: z.ZodNullable; ampRobotsTxtState: z.ZodNullable; ampPageFetchState: z.ZodNullable; ampLastCrawlTime: z.ZodNullable; ampIssues: z.ZodNullable; inspectionResultLink: z.ZodNullable; }, z.core.$strip>>; readonly errors: z.ZodArray>; readonly skipped: z.ZodArray; }, z.core.$strict>>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.indexing"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly [{ readonly type: "site.indexing"; readonly idFrom: "params.siteId"; }]; }; readonly lifecycle: { readonly introduced: "1.1.0"; }; readonly docs: { readonly summary: "Inspect URLs on demand"; readonly description: "Runs live URL inspections against the daily per-site quota; URLs outside the site domain and over-quota URLs are reported as skipped. Exhausted quota fails with rate_limited."; readonly tags: readonly ["Indexing"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly body: { readonly urls: readonly ["https://example.com/"]; }; }; readonly response: { readonly data: { readonly siteId: "s_01"; readonly rateLimit: { readonly reserved: 1; readonly remaining: 199; readonly limit: 200; }; readonly results: readonly []; readonly errors: readonly []; readonly skipped: readonly []; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly recoverSitePermission: { readonly id: "partner.sites.permission.recover"; readonly method: "POST"; readonly path: "/sites/{siteId}/permission/recover"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sites:write"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; readonly jobsQueued: z.ZodNumber; readonly message: z.ZodString; }, 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 success: z.ZodBoolean; readonly permissionLevel: z.ZodNullable; readonly jobsQueued: z.ZodNumber; readonly message: z.ZodString; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.auth"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly [{ readonly type: "site.auth"; readonly idFrom: "params.siteId"; }, { readonly type: "site.lifecycle"; readonly idFrom: "params.siteId"; }]; }; readonly lifecycle: { readonly introduced: "1.1.0"; }; readonly docs: { readonly summary: "Re-check and recover site permission"; readonly description: "Force-rechecks Google Search Console access for a permission-lost site; on recovery resets sync state and queues fresh sync jobs."; readonly tags: readonly ["Sites"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; }; readonly response: { readonly data: { readonly success: true; readonly permissionLevel: "siteFullUser"; readonly jobsQueued: 3; readonly message: "Permission restored (siteFullUser). Queued 3 sync jobs."; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly queryKeywordSparklines: { readonly id: "partner.sites.keyword.sparklines.query"; readonly method: "POST"; readonly path: "/sites/{siteId}/keyword-sparklines"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ keywords: z.ZodArray; startDate: z.ZodString; endDate: z.ZodString; searchType: z.ZodOptional>; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema>; }, 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<{ sparklines: z.ZodRecord>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.1.0"; }; readonly docs: { readonly summary: "Query keyword sparklines"; readonly description: "Returns per-keyword daily click series for up to 20 keywords over the requested window."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly body: { readonly keywords: readonly ["nuxt seo"]; readonly startDate: "2026-06-01"; readonly endDate: "2026-06-28"; }; }; readonly response: { readonly data: { readonly sparklines: { readonly 'nuxt seo': readonly [0, 1, 2]; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getQueryTrend: { readonly id: "partner.sites.query.trend.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/query-trend"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ startDate: z.ZodString; endDate: z.ZodString; searchType: z.ZodOptional>; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema>; total: z.ZodNumber; previousTotal: z.ZodOptional; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: 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<{ daily: z.ZodArray>; total: z.ZodNumber; previousTotal: z.ZodOptional; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.1.0"; }; readonly docs: { readonly summary: "Get unique-query trend"; readonly description: "Returns the daily unique-query count series for a window, with an optional previous-period total for comparison."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly startDate: "2026-06-01"; readonly endDate: "2026-06-28"; }; }; readonly response: { readonly data: { readonly daily: readonly []; readonly total: 0; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getPageTrend: { readonly id: "partner.sites.page.trend.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/page-trend"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ startDate: z.ZodString; endDate: z.ZodString; searchType: z.ZodOptional>; prevStartDate: z.ZodOptional; prevEndDate: z.ZodOptional; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema>; total: z.ZodNumber; previousTotal: z.ZodOptional; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: 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<{ daily: z.ZodArray>; total: z.ZodNumber; previousTotal: z.ZodOptional; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.1.0"; }; readonly docs: { readonly summary: "Get unique-page trend"; readonly description: "Returns the daily unique-page count series for a window, with an optional previous-period total for comparison."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly startDate: "2026-06-01"; readonly endDate: "2026-06-28"; }; }; readonly response: { readonly data: { readonly daily: readonly []; readonly total: 0; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getContentVelocity: { readonly id: "partner.sites.content.velocity.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/content-velocity"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ days: z.ZodOptional>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema>; readonly summary: z.ZodObject<{ totalNewKeywords: z.ZodNumber; avgPerWeek: z.ZodNumber; trend: z.ZodEnum<{ stable: "stable"; accelerating: "accelerating"; decelerating: "decelerating"; }>; }, z.core.$strict>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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 weekly: z.ZodArray>; readonly summary: z.ZodObject<{ totalNewKeywords: z.ZodNumber; avgPerWeek: z.ZodNumber; trend: z.ZodEnum<{ stable: "stable"; accelerating: "accelerating"; decelerating: "decelerating"; }>; }, z.core.$strict>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.2.0"; }; readonly docs: { readonly summary: "Get content velocity"; readonly description: "Returns the weekly new-keyword series over the requested window with a summary trend."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly days: 90; }; }; readonly response: { readonly data: { readonly weekly: readonly []; readonly summary: { readonly totalNewKeywords: 0; readonly avgPerWeek: 0; readonly trend: "stable"; }; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getCtrCurve: { readonly id: "partner.sites.ctr.curve.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/ctr-curve"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ startDate: z.ZodString; endDate: z.ZodString; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema>; readonly overperforming: z.ZodArray>; readonly underperforming: z.ZodArray>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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 curve: z.ZodArray>; readonly overperforming: z.ZodArray>; readonly underperforming: z.ZodArray>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.2.0"; }; readonly docs: { readonly summary: "Get CTR curve and outliers"; readonly description: "Returns the position-bucketed CTR curve plus over/under-performing query outliers for the window."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly startDate: "2026-06-01"; readonly endDate: "2026-06-28"; }; }; readonly response: { readonly data: { readonly curve: readonly []; readonly overperforming: readonly []; readonly underperforming: readonly []; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getDarkTraffic: { readonly id: "partner.sites.dark.traffic.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/dark-traffic"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ startDate: z.ZodString; endDate: z.ZodString; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; readonly pages: z.ZodArray>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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 summary: z.ZodObject<{ totalClicks: z.ZodNumber; attributedClicks: z.ZodNumber; darkClicks: z.ZodNumber; darkPercent: z.ZodNumber; totalImpressions: z.ZodNumber; attributedImpressions: z.ZodNumber; }, z.core.$strict>; readonly pages: z.ZodArray>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.2.0"; }; readonly docs: { readonly summary: "Get dark traffic breakdown"; readonly description: "Returns clicks not attributable to any tracked keyword, in total and per page, for the window."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly startDate: "2026-06-01"; readonly endDate: "2026-06-28"; }; }; readonly response: { readonly data: { readonly summary: { readonly totalClicks: 0; readonly attributedClicks: 0; readonly darkClicks: 0; readonly darkPercent: 0; readonly totalImpressions: 0; readonly attributedImpressions: 0; }; readonly pages: readonly []; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getDeviceGap: { readonly id: "partner.sites.device.gap.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/device-gap"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ startDate: z.ZodString; endDate: z.ZodString; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; mobile: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strict>; gaps: z.ZodObject<{ ctrGap: z.ZodNumber; positionGap: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>>; readonly summary: z.ZodNullable; positionGapTrend: z.ZodEnum<{ improving: "improving"; stable: "stable"; worsening: "worsening"; }>; }, z.core.$strict>>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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 daily: z.ZodArray; mobile: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strict>; gaps: z.ZodObject<{ ctrGap: z.ZodNumber; positionGap: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>>; readonly summary: z.ZodNullable; positionGapTrend: z.ZodEnum<{ improving: "improving"; stable: "stable"; worsening: "worsening"; }>; }, z.core.$strict>>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.2.0"; }; readonly docs: { readonly summary: "Get desktop/mobile gap"; readonly description: "Returns per-day desktop vs mobile CTR/position metrics with gap trends for the window."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly startDate: "2026-06-01"; readonly endDate: "2026-06-28"; }; }; readonly response: { readonly data: { readonly daily: readonly []; readonly summary: null; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getKeywordBreadth: { readonly id: "partner.sites.keyword.breadth.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/keyword-breadth"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ startDate: z.ZodString; endDate: z.ZodString; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema>; readonly fragilePages: z.ZodArray>; readonly authorityPages: z.ZodArray>; readonly summary: z.ZodObject<{ totalPages: z.ZodNumber; avgKeywordsPerPage: z.ZodNumber; fragileCount: z.ZodNumber; authorityCount: z.ZodNumber; }, z.core.$strict>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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 distribution: z.ZodArray>; readonly fragilePages: z.ZodArray>; readonly authorityPages: z.ZodArray>; readonly summary: z.ZodObject<{ totalPages: z.ZodNumber; avgKeywordsPerPage: z.ZodNumber; fragileCount: z.ZodNumber; authorityCount: z.ZodNumber; }, z.core.$strict>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.2.0"; }; readonly docs: { readonly summary: "Get keyword breadth"; readonly description: "Returns the pages-per-keyword-count distribution with fragile and authority page lists for the window."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly startDate: "2026-06-01"; readonly endDate: "2026-06-28"; }; }; readonly response: { readonly data: { readonly distribution: readonly []; readonly fragilePages: readonly []; readonly authorityPages: readonly []; readonly summary: { readonly totalPages: 0; readonly avgKeywordsPerPage: 0; readonly fragileCount: 0; readonly authorityCount: 0; }; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getPositionDistribution: { readonly id: "partner.sites.position.distribution.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/position-distribution"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ startDate: z.ZodString; endDate: z.ZodString; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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 distribution: z.ZodArray>; readonly meta: z.ZodObject<{ siteUrl: z.ZodNullable; syncStatus: z.ZodNullable; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.2.0"; }; readonly docs: { readonly summary: "Get position distribution"; readonly description: "Returns the per-day keyword counts bucketed by average position for the window."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly startDate: "2026-06-01"; readonly endDate: "2026-06-28"; }; }; readonly response: { readonly data: { readonly distribution: readonly []; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getTopAssociation: { readonly id: "partner.sites.top.association.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/top-association"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ type: z.ZodEnum<{ topPage: "topPage"; topKeyword: "topKeyword"; }>; identifier: z.ZodString; startDate: z.ZodString; endDate: z.ZodString; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; }, 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<{ value: z.ZodNullable; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.2.0"; }; readonly docs: { readonly summary: "Get top association"; readonly description: "Returns the single best-performing page for a keyword, or keyword for a page, over the window."; readonly tags: readonly ["Analytics"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly type: "topKeyword"; readonly identifier: "/docs"; readonly startDate: "2026-06-01"; readonly endDate: "2026-06-28"; }; }; readonly response: { readonly data: { readonly value: null; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getIndexPercent: { readonly id: "partner.sites.index.percent.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/index-percent"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["indexing:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ invisibleLimit: z.ZodOptional>; invisibleOffset: z.ZodOptional>; orphanLimit: z.ZodOptional>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; removed: z.ZodNullable; }, z.core.$loose>>; invisibleUrls: z.ZodArray; lastmod: z.ZodNullable; }, z.core.$loose>>; invisibleCount: z.ZodNumber; orphanPages: z.ZodArray; clicks: z.ZodNullable; }, z.core.$loose>>; orphanCount: z.ZodNumber; sitemaps: z.ZodArray>; summary: z.ZodObject<{ currentPercent: z.ZodNumber; totalSitemapUrls: z.ZodNumber; visibleUrls: z.ZodNumber; change7d: z.ZodNullable; change28d: z.ZodNullable; dataDate: z.ZodString; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodNullable; newestDateSynced: 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<{ trend: z.ZodArray; removed: z.ZodNullable; }, z.core.$loose>>; invisibleUrls: z.ZodArray; lastmod: z.ZodNullable; }, z.core.$loose>>; invisibleCount: z.ZodNumber; orphanPages: z.ZodArray; clicks: z.ZodNullable; }, z.core.$loose>>; orphanCount: z.ZodNumber; sitemaps: z.ZodArray>; summary: z.ZodObject<{ currentPercent: z.ZodNumber; totalSitemapUrls: z.ZodNumber; visibleUrls: z.ZodNumber; change7d: z.ZodNullable; change28d: z.ZodNullable; dataDate: z.ZodString; }, z.core.$loose>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodNullable; newestDateSynced: 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.indexing"; readonly idFrom: "params.siteId"; }, { readonly type: "site.sitemaps"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.2.0"; }; readonly docs: { readonly summary: "Get sitemap index-percent"; readonly description: "Returns the sitemap visibility trend, invisible URLs, orphan pages, and per-sitemap counts."; readonly tags: readonly ["Indexing"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly invisibleLimit: 100; }; }; readonly response: { readonly data: { readonly trend: readonly []; readonly invisibleUrls: readonly []; readonly invisibleCount: 0; readonly orphanPages: readonly []; readonly orphanCount: 0; readonly sitemaps: readonly []; readonly summary: { readonly currentPercent: 0; readonly totalSitemapUrls: 0; readonly visibleUrls: 0; readonly change7d: null; readonly change28d: null; readonly dataDate: "2026-06-28"; }; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; readonly newestDateSynced: null; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly createSitemapAction: { readonly id: "partner.sites.sitemaps.action.create"; readonly method: "POST"; readonly path: "/sites/{siteId}/sitemaps/actions"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: false; readonly retry: "never"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sitemaps:write"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"submit">; sitemapUrl: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"delete">; sitemapUrl: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"refresh">; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"auto-discover">; }, z.core.$strip>], "action">; }; readonly responses: { readonly 200: CompatibleResponseSchema; sitemapUrl: z.ZodString; sitemapCount: z.ZodNumber; }, z.core.$loose>, z.ZodObject<{ success: z.ZodLiteral; action: z.ZodLiteral<"refreshed">; sitemapCount: z.ZodNumber; changed: z.ZodBoolean; }, z.core.$loose>, z.ZodObject<{ success: z.ZodBoolean; action: z.ZodLiteral<"auto-discover">; discovered: z.ZodNullable; submitError: z.ZodOptional>; sitemapCount: z.ZodNumber; }, z.core.$loose>], "action">; 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.ZodDiscriminatedUnion<[z.ZodObject<{ success: z.ZodBoolean; action: z.ZodEnum<{ deleted: "deleted"; submitted: "submitted"; }>; sitemapUrl: z.ZodString; sitemapCount: z.ZodNumber; }, z.core.$loose>, z.ZodObject<{ success: z.ZodLiteral; action: z.ZodLiteral<"refreshed">; sitemapCount: z.ZodNumber; changed: z.ZodBoolean; }, z.core.$loose>, z.ZodObject<{ success: z.ZodBoolean; action: z.ZodLiteral<"auto-discover">; discovered: z.ZodNullable; submitError: z.ZodOptional>; sitemapCount: z.ZodNumber; }, z.core.$loose>], "action">; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"partner">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.sitemaps"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly [{ readonly type: "site.sitemaps"; readonly idFrom: "params.siteId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Run a sitemap action"; readonly description: "Submits, deletes, refreshes, or auto-discovers a site's sitemap; the response shape depends on the requested action."; readonly tags: readonly ["Sitemaps"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly body: { readonly action: "refresh"; }; }; readonly response: { readonly data: { readonly success: true; readonly action: "refreshed"; readonly sitemapCount: 0; readonly changed: false; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly querySitemapMembership: { readonly id: "partner.sites.sitemaps.membership.query"; readonly method: "POST"; readonly path: "/sites/{siteId}/sitemaps/membership"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sitemaps:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ urls: z.ZodArray; generationId: z.ZodOptional; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>; evidence: z.ZodArray; url: z.ZodString; feedpath: z.ZodString; lastmod: z.ZodNullable; firstSeenAt: z.ZodNumber; lastSeenAt: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"absent">; url: z.ZodString; observedAt: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"unknown">; url: z.ZodString; reason: z.ZodEnum<{ no_generation: "no_generation"; generation_not_found: "generation_not_found"; generation_incomplete: "generation_incomplete"; history_pruned: "history_pruned"; invalid_url: "invalid_url"; }>; }, z.core.$strict>], "_tag">>; meta: z.ZodObject<{ requested: z.ZodNumber; checked: z.ZodNumber; matched: z.ZodNumber; }, z.core.$strict>; }, 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<{ generation: z.ZodNullable; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>>; evidence: z.ZodArray; url: z.ZodString; feedpath: z.ZodString; lastmod: z.ZodNullable; firstSeenAt: z.ZodNumber; lastSeenAt: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"absent">; url: z.ZodString; observedAt: z.ZodNumber; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"unknown">; url: z.ZodString; reason: z.ZodEnum<{ no_generation: "no_generation"; generation_not_found: "generation_not_found"; generation_incomplete: "generation_incomplete"; history_pruned: "history_pruned"; invalid_url: "invalid_url"; }>; }, z.core.$strict>], "_tag">>; meta: z.ZodObject<{ requested: z.ZodNumber; checked: z.ZodNumber; matched: z.ZodNumber; }, z.core.$strict>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.sitemaps"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Query sitemap membership"; readonly description: "Returns generation-pinned present, absent, or unknown evidence for each exact requested URL."; readonly tags: readonly ["Sitemaps"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly body: { readonly urls: readonly ["https://example.com/"]; }; }; readonly response: { readonly data: { readonly generation: null; readonly evidence: readonly [{ readonly _tag: "unknown"; readonly url: "https://example.com/"; readonly reason: "no_generation"; }]; readonly meta: { readonly requested: 1; readonly checked: 0; readonly matched: 0; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly listSitemapUrls: { readonly id: "partner.sites.sitemaps.urls.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/sitemaps/urls"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sitemaps:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ generationId: z.ZodOptional; feedpath: z.ZodOptional; cursor: z.ZodOptional; limit: z.ZodOptional>; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>; items: z.ZodArray; firstSeenAt: z.ZodNumber; lastSeenAt: z.ZodNumber; }, z.core.$strict>>; page: z.ZodObject<{ nextCursor: z.ZodNullable; limit: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>; 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<{ generation: z.ZodObject<{ id: z.ZodString; observedAt: z.ZodNumber; publishedAt: z.ZodNumber; completeness: z.ZodObject<{ _tag: z.ZodLiteral<"complete">; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>; items: z.ZodArray; firstSeenAt: z.ZodNumber; lastSeenAt: z.ZodNumber; }, z.core.$strict>>; page: z.ZodObject<{ nextCursor: z.ZodNullable; limit: z.ZodNumber; }, z.core.$strict>; }, z.core.$strict>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"partner">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.sitemaps"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "2.0.0"; }; readonly docs: { readonly summary: "List sitemap URLs"; readonly description: "Returns an exact generation-pinned cursor page of sitemap membership and lastmod evidence."; readonly tags: readonly ["Sitemaps"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly query: { readonly limit: 500; }; }; readonly response: { readonly data: { readonly generation: { readonly id: "site-01JZ"; readonly observedAt: 1753746000000; readonly publishedAt: 1753746000100; readonly completeness: { readonly _tag: "complete"; }; readonly membershipHistoryAvailableFrom: 1753746000000; readonly legacyImport: { readonly _tag: "none"; }; }; readonly items: readonly []; readonly page: { readonly nextCursor: null; readonly limit: 500; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getSitemapExport: { readonly id: "partner.sites.sitemaps.export.get"; readonly method: "GET"; readonly path: "/sites/{siteId}/sitemaps/export"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sitemaps:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: z.ZodObject<{ generationId: z.ZodOptional; feedpath: z.ZodOptional; }, z.core.$strict>; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>; export: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"url">; url: z.ZodURL; expiresAt: z.ZodNumber; contentType: z.ZodLiteral<"application/x-ndjson">; contentEncoding: z.ZodEnum<{ identity: "identity"; gzip: "gzip"; }>; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"unavailable">; reason: z.ZodEnum<{ generation_not_found: "generation_not_found"; export_unavailable: "export_unavailable"; }>; }, z.core.$strict>], "_tag">; }, z.core.$strict>; 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<{ generation: z.ZodObject<{ id: z.ZodString; observedAt: z.ZodNumber; publishedAt: z.ZodNumber; completeness: z.ZodObject<{ _tag: z.ZodLiteral<"complete">; }, z.core.$strict>; membershipHistoryAvailableFrom: z.ZodNullable; legacyImport: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"none">; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"metadata_only">; importedAt: z.ZodNumber; recordCount: z.ZodNumber; source: z.ZodLiteral<"gsc_sitemaps">; }, z.core.$strict>], "_tag">; }, z.core.$strict>; export: z.ZodDiscriminatedUnion<[z.ZodObject<{ _tag: z.ZodLiteral<"url">; url: z.ZodURL; expiresAt: z.ZodNumber; contentType: z.ZodLiteral<"application/x-ndjson">; contentEncoding: z.ZodEnum<{ identity: "identity"; gzip: "gzip"; }>; }, z.core.$strict>, z.ZodObject<{ _tag: z.ZodLiteral<"unavailable">; reason: z.ZodEnum<{ generation_not_found: "generation_not_found"; export_unavailable: "export_unavailable"; }>; }, z.core.$strict>], "_tag">; }, z.core.$strict>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"partner">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.sitemaps"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "2.0.0"; }; readonly docs: { readonly summary: "Get sitemap bulk export"; readonly description: "Returns a generation-pinned expiring URL for the full NDJSON sitemap projection."; readonly tags: readonly ["Sitemaps"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; }; readonly response: { readonly data: { readonly generation: { readonly id: "site-01JZ"; readonly observedAt: 1753746000000; readonly publishedAt: 1753746000100; readonly completeness: { readonly _tag: "complete"; }; readonly membershipHistoryAvailableFrom: 1753746000000; readonly legacyImport: { readonly _tag: "none"; }; }; readonly export: { readonly _tag: "unavailable"; readonly reason: "export_unavailable"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly createTeam: { readonly id: "partner.teams.create"; readonly method: "POST"; readonly path: "/teams"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: false; readonly retry: "never"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["teams:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: null; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ ownerUserId: z.ZodString; name: z.ZodString; personalTeam: z.ZodOptional; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; }, 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<{ team: z.ZodObject<{ id: z.ZodString; ownerId: z.ZodNumber; name: z.ZodString; personalTeam: z.ZodBoolean; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly []; readonly changes: readonly [{ readonly type: "partner.team"; readonly idFrom: "principal.id"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Create a team"; readonly description: "Creates a team owned by a user linked to the authenticated partner tenant."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly body: { readonly ownerUserId: "u_01"; readonly name: "Acme Team"; }; }; readonly response: { readonly data: { readonly team: { readonly id: "t_01"; readonly ownerId: 1; readonly name: "Acme Team"; readonly personalTeam: false; readonly createdAt: 0; readonly updatedAt: 0; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly renameTeam: { readonly id: "partner.teams.rename"; readonly method: "PATCH"; readonly path: "/teams/{teamId}"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["teams:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: z.ZodObject<{ teamId: z.ZodUnion; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ name: z.ZodString; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; name: z.ZodString; }, 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<{ ok: z.ZodLiteral; name: z.ZodString; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; readonly changes: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Rename a team"; readonly description: "Renames a team owned by the authenticated partner tenant."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly params: { readonly teamId: "t_01"; }; readonly body: { readonly name: "New name"; }; }; readonly response: { readonly data: { readonly ok: true; readonly name: "New name"; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly deleteTeam: { readonly id: "partner.teams.delete"; readonly method: "DELETE"; readonly path: "/teams/{teamId}"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["teams:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: z.ZodObject<{ teamId: z.ZodUnion; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; }, 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<{ ok: z.ZodLiteral; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; readonly changes: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Delete a team"; readonly description: "Deletes a team owned by the authenticated partner tenant."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly params: { readonly teamId: "t_01"; }; }; readonly response: { readonly data: { readonly ok: true; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly listTeamMembers: { readonly id: "partner.teams.members.list"; readonly method: "GET"; readonly path: "/teams/{teamId}/members"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["teams:read"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: z.ZodObject<{ teamId: z.ZodUnion; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; email: z.ZodEmail; picture: z.ZodNullable; role: z.ZodEnum<{ admin: "admin"; editor: "editor"; viewer: "viewer"; }>; joinedAt: z.ZodNumber; }, 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<{ members: z.ZodArray; email: z.ZodEmail; picture: z.ZodNullable; role: z.ZodEnum<{ admin: "admin"; editor: "editor"; viewer: "viewer"; }>; joinedAt: z.ZodNumber; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "List team members"; readonly description: "Lists the members of a team owned by the authenticated partner tenant."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly params: { readonly teamId: "t_01"; }; }; readonly response: { readonly data: { readonly members: readonly []; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly addTeamMember: { readonly id: "partner.teams.members.add"; readonly method: "POST"; readonly path: "/teams/{teamId}/members"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["teams:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: z.ZodObject<{ teamId: z.ZodUnion; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ userId: z.ZodString; role: z.ZodEnum<{ admin: "admin"; editor: "editor"; viewer: "viewer"; }>; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; role: z.ZodEnum<{ admin: "admin"; editor: "editor"; viewer: "viewer"; }>; alreadyExisted: z.ZodOptional; }, 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<{ ok: z.ZodLiteral; role: z.ZodEnum<{ admin: "admin"; editor: "editor"; viewer: "viewer"; }>; alreadyExisted: z.ZodOptional; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; readonly changes: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Add a team member"; readonly description: "Adds a user to a team owned by the authenticated partner tenant, or reports it was already a member."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly params: { readonly teamId: "t_01"; }; readonly body: { readonly userId: "u_02"; readonly role: "editor"; }; }; readonly response: { readonly data: { readonly ok: true; readonly role: "editor"; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly updateTeamMemberRole: { readonly id: "partner.teams.members.role.update"; readonly method: "PATCH"; readonly path: "/teams/{teamId}/members/{userId}"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["teams:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: z.ZodObject<{ teamId: z.ZodUnion; userId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ role: z.ZodEnum<{ admin: "admin"; editor: "editor"; viewer: "viewer"; }>; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; role: z.ZodEnum<{ admin: "admin"; editor: "editor"; viewer: "viewer"; }>; }, 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<{ ok: z.ZodLiteral; role: z.ZodEnum<{ admin: "admin"; editor: "editor"; viewer: "viewer"; }>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }, { readonly type: "partner.user"; readonly idFrom: "params.userId"; }]; readonly changes: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }, { readonly type: "partner.user"; readonly idFrom: "params.userId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Update a team member role"; readonly description: "Updates the role of an existing member of a team owned by the authenticated partner tenant."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly params: { readonly teamId: "t_01"; readonly userId: "u_02"; }; readonly body: { readonly role: "admin"; }; }; readonly response: { readonly data: { readonly ok: true; readonly role: "admin"; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly removeTeamMember: { readonly id: "partner.teams.members.remove"; readonly method: "DELETE"; readonly path: "/teams/{teamId}/members/{userId}"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["teams:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: z.ZodObject<{ teamId: z.ZodUnion; userId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; }, 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<{ ok: z.ZodLiteral; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }, { readonly type: "partner.user"; readonly idFrom: "params.userId"; }]; readonly changes: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }, { readonly type: "partner.user"; readonly idFrom: "params.userId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Remove a team member"; readonly description: "Removes a member from a team owned by the authenticated partner tenant."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly params: { readonly teamId: "t_01"; readonly userId: "u_02"; }; }; readonly response: { readonly data: { readonly ok: true; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly updateSiteTeam: { readonly id: "partner.sites.team.update"; readonly method: "PATCH"; readonly path: "/sites/{siteId}/team"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["sites:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ teamId: z.ZodNullable; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; teamId: z.ZodNullable; }, 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<{ ok: z.ZodLiteral; teamId: z.ZodNullable; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.registration"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly [{ readonly type: "site.registration"; readonly idFrom: "params.siteId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Bind a site to a team"; readonly description: "Binds or unbinds (teamId: null) a partner-owned site to a partner-owned team."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly body: { readonly teamId: "t_01"; }; }; readonly response: { readonly data: { readonly ok: true; readonly teamId: "t_01"; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getTeamCatalog: { readonly id: "partner.teams.catalog.get"; readonly method: "GET"; readonly path: "/teams/{teamId}/catalog"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["teams:read"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: z.ZodObject<{ teamId: z.ZodUnion; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; warehouse: z.ZodNullable; bucket: z.ZodNullable; namespace: z.ZodNullable; provisioningState: z.ZodNullable; keyEncoding: z.ZodNullable; catalogTablesReady: z.ZodBoolean; readsEnabled: z.ZodBoolean; }, 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<{ teamId: z.ZodString; catalogUri: z.ZodNullable; warehouse: z.ZodNullable; bucket: z.ZodNullable; namespace: z.ZodNullable; provisioningState: z.ZodNullable; keyEncoding: z.ZodNullable; catalogTablesReady: z.ZodBoolean; readsEnabled: z.ZodBoolean; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Get a team catalog"; readonly description: "Returns the Iceberg catalog reference bound to a partner-owned team, if any."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly params: { readonly teamId: "t_01"; }; }; readonly response: { readonly data: { readonly teamId: "t_01"; readonly catalogUri: null; readonly warehouse: null; readonly bucket: null; readonly namespace: null; readonly provisioningState: null; readonly keyEncoding: null; readonly catalogTablesReady: false; readonly readsEnabled: false; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly bindTeamCatalog: { readonly id: "partner.teams.catalog.bind"; readonly method: "POST"; readonly path: "/teams/{teamId}/catalog"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["teams:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "partner_tenant"; }]; }; readonly request: { readonly params: z.ZodObject<{ teamId: z.ZodUnion; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ catalogUri: z.ZodString; warehouse: z.ZodString; namespace: z.ZodOptional; bucket: z.ZodOptional; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; catalogUri: z.ZodString; warehouse: z.ZodString; bucket: z.ZodString; namespace: z.ZodString; }, 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<{ teamId: z.ZodString; status: z.ZodLiteral<"ready">; catalogUri: z.ZodString; warehouse: z.ZodString; bucket: z.ZodString; namespace: z.ZodString; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; readonly changes: readonly [{ readonly type: "partner.team"; readonly idFrom: "params.teamId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Bind a team catalog"; readonly description: "Binds an Iceberg catalog (URI, warehouse, and optional bucket/namespace) to a partner-owned team."; readonly tags: readonly ["Teams"]; readonly examples: { readonly request: { readonly params: { readonly teamId: "t_01"; }; readonly body: { readonly catalogUri: "gs://bucket/catalog"; readonly warehouse: "primary"; readonly namespace: "ns1"; readonly bucket: "bucket1"; }; }; readonly response: { readonly data: { readonly teamId: "t_01"; readonly status: "ready"; readonly catalogUri: "gs://bucket/catalog"; readonly warehouse: "primary"; readonly bucket: "bucket1"; readonly namespace: "ns1"; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly getSiteIntIdCrosswalk: { readonly id: "partner.users.sites.crosswalk.get"; readonly method: "GET"; readonly path: "/users/{userId}/sites/crosswalk"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sites:read"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "self"; }, { readonly credential: "partner_key"; readonly rule: "linked_user"; }]; }; readonly request: { readonly params: z.ZodObject<{ userId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; sites: z.ZodArray>; }, 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<{ crosswalk: z.ZodRecord; sites: z.ZodArray>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }, { readonly type: "user.sites"; readonly idFrom: "params.userId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Get the site int-id crosswalk"; readonly description: "Maps a user's public site IDs to their internal integer IDs, for partners that need the legacy numeric identifier."; readonly tags: readonly ["Sites"]; readonly examples: { readonly request: { readonly params: { readonly userId: "u_01"; }; }; readonly response: { readonly data: { readonly crosswalk: {}; readonly sites: readonly []; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly deleteUser: { readonly id: "partner.users.delete"; readonly method: "DELETE"; readonly path: "/users/{userId}"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["partner_key"]; readonly scopes: readonly ["users:write"]; readonly ownership: readonly [{ readonly credential: "partner_key"; readonly rule: "linked_user"; }]; }; readonly request: { readonly params: z.ZodObject<{ userId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; queued: z.ZodLiteral; userId: z.ZodNumber; publicId: z.ZodString; }, 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<{ ok: z.ZodLiteral; queued: z.ZodLiteral; userId: z.ZodNumber; publicId: z.ZodString; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }]; readonly changes: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }, { readonly type: "user.sites"; readonly idFrom: "params.userId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Delete a partner user"; readonly description: "Queues cascade deletion of a partner-linked user and their sites."; readonly tags: readonly ["Users"]; readonly examples: { readonly request: { readonly params: { readonly userId: "u_01"; }; }; readonly response: { readonly data: { readonly ok: true; readonly queued: true; readonly userId: 1; readonly publicId: "u_01"; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly createVerificationToken: { readonly id: "partner.users.verification.token.create"; readonly method: "POST"; readonly path: "/users/{userId}/verification-token"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sites:write"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "self"; }, { readonly credential: "partner_key"; readonly rule: "linked_user"; }]; }; readonly request: { readonly params: z.ZodObject<{ userId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ siteUrl: z.ZodString; method: z.ZodOptional>; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; readonly method: z.ZodString; readonly token: z.ZodString; readonly metaContent: z.ZodNullable; readonly dnsRecord: z.ZodNullable; host: z.ZodString; value: z.ZodString; }, 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 siteUrl: z.ZodString; readonly site: z.ZodObject<{ type: z.ZodString; identifier: z.ZodString; }, z.core.$loose>; readonly method: z.ZodString; readonly token: z.ZodString; readonly metaContent: z.ZodNullable; readonly dnsRecord: z.ZodNullable; host: z.ZodString; value: z.ZodString; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }, { readonly type: "user.sites"; readonly idFrom: "params.userId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Create a site verification token"; readonly description: "Mints a Search Console site-ownership verification token (meta tag or DNS record) for a not-yet-registered site."; readonly tags: readonly ["Sites"]; readonly examples: { readonly request: { readonly params: { readonly userId: "u_01"; }; readonly body: { readonly siteUrl: "https://example.com"; readonly method: "DNS_TXT"; }; }; readonly response: { readonly data: { readonly siteUrl: "https://example.com"; readonly site: { readonly type: "INET_DOMAIN"; readonly identifier: "example.com"; }; readonly method: "DNS_TXT"; readonly token: "abc123"; readonly metaContent: null; readonly dnsRecord: { readonly type: "TXT"; readonly host: "_gsc.example.com"; readonly value: "abc123"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; readonly addAndVerifySite: { readonly id: "partner.users.sites.verify.create"; readonly method: "POST"; readonly path: "/users/{userId}/sites/verify"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["sites:write"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "self"; }, { readonly credential: "partner_key"; readonly rule: "linked_user"; }]; }; readonly request: { readonly params: z.ZodObject<{ userId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ siteUrl: z.ZodString; method: z.ZodOptional>; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema; readonly method: z.ZodString; readonly verified: z.ZodLiteral; readonly owners: z.ZodOptional>; }, 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 siteUrl: z.ZodString; readonly site: z.ZodObject<{ type: z.ZodString; identifier: z.ZodString; }, z.core.$loose>; readonly method: z.ZodString; readonly verified: z.ZodLiteral; readonly owners: z.ZodOptional>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "user_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; user_not_found: "user_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "partner.user"; readonly idFrom: "params.userId"; }]; readonly changes: readonly [{ readonly type: "user.sites"; readonly idFrom: "params.userId"; }]; }; readonly lifecycle: { readonly introduced: "1.3.0"; }; readonly docs: { readonly summary: "Add and verify a site"; readonly description: "Verifies Search Console ownership of a site for a user via the given method and records the verified ownership."; readonly tags: readonly ["Sites"]; readonly examples: { readonly request: { readonly params: { readonly userId: "u_01"; }; readonly body: { readonly siteUrl: "https://example.com"; readonly method: "DNS_TXT"; }; }; readonly response: { readonly data: { readonly siteUrl: "https://example.com"; readonly site: { readonly type: "INET_DOMAIN"; readonly identifier: "example.com"; }; readonly method: "DNS_TXT"; readonly verified: true; readonly owners: readonly ["owner@example.com"]; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "partner"; readonly version: "1.0"; }; }; }; }; }; }>; analytics: HttpV1Surface<{ readonly queryRows: { readonly id: "analytics.rows.query"; readonly method: "POST"; readonly path: "/sites/{siteId}/rows"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:execute"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: 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>; }; readonly responses: { readonly 200: 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Query analytics rows"; readonly description: "Executes an idempotent primary-consistent analytics row query."; readonly tags: readonly ["Analytics rows"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly body: { readonly dimensions: readonly ["query"]; readonly metrics: readonly ["clicks", "impressions"]; readonly rowLimit: 100; }; }; readonly response: { readonly data: { readonly rows: readonly []; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "analytics"; readonly version: "1.0"; readonly sourceName: "primary"; readonly sourceKind: "sql"; readonly queryMs: 12; }; }; }; }; }; readonly queryReport: { readonly id: "analytics.reports.query"; readonly method: "POST"; readonly path: "/sites/{siteId}/reports"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:execute"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ state: z.ZodObject<{ searchType: z.ZodOptional>; dimensions: z.ZodArray>; }, z.core.$loose>; comparison: z.ZodOptional>; dimensions: z.ZodArray>; }, z.core.$loose>>; filter: z.ZodOptional>; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema>; totalCount: z.ZodNumber; totals: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strip>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodString; newestDateSynced: z.ZodNullable; oldestDateSynced: z.ZodNullable; dataDelay: z.ZodOptional; dataEndDate: z.ZodOptional>; warnings: z.ZodOptional>; enrichment: z.ZodOptional>; backfill: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; }, 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<{ rows: z.ZodArray>; totalCount: z.ZodNumber; totals: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strip>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodString; newestDateSynced: z.ZodNullable; oldestDateSynced: z.ZodNullable; dataDelay: z.ZodOptional; dataEndDate: z.ZodOptional>; warnings: z.ZodOptional>; enrichment: z.ZodOptional>; backfill: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Query an analytics report"; readonly description: "Returns the hosted analytics list report with totals, comparison fields, and sync metadata."; readonly tags: readonly ["Analytics reports"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly body: { readonly state: { readonly dimensions: readonly ["query"]; readonly searchType: "web"; }; }; }; readonly response: { readonly data: { readonly rows: readonly []; readonly totalCount: 0; readonly totals: { readonly clicks: 0; readonly impressions: 0; readonly ctr: 0; readonly position: 0; }; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; readonly newestDateSynced: null; readonly oldestDateSynced: null; readonly dataDelay: "0 days"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "analytics"; readonly version: "1.0"; readonly sourceName: "hosted-report"; readonly sourceKind: "sql"; readonly queryMs: 12; }; }; }; }; }; readonly queryReportDetail: { readonly id: "analytics.reports.detail.query"; readonly method: "POST"; readonly path: "/sites/{siteId}/reports/detail"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["analytics:execute"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "authorized_site"; }, { readonly credential: "partner_key"; readonly rule: "authorized_site"; }]; }; readonly request: { readonly params: z.ZodObject<{ siteId: z.ZodString; }, z.core.$strict>; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ state: z.ZodObject<{ searchType: z.ZodOptional>; dimensions: z.ZodArray>; }, z.core.$loose>; comparison: z.ZodOptional>; dimensions: z.ZodArray>; }, z.core.$loose>>; }, z.core.$strict>; }; readonly responses: { readonly 200: CompatibleResponseSchema>; previousDaily: z.ZodOptional>>; totals: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strip>; previousTotals: z.ZodOptional>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodString; newestDateSynced: z.ZodNullable; oldestDateSynced: z.ZodNullable; dataDelay: z.ZodOptional; dataEndDate: z.ZodOptional>; warnings: z.ZodOptional>; enrichment: z.ZodOptional>; backfill: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; }, 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<{ daily: z.ZodArray>; previousDaily: z.ZodOptional>>; totals: z.ZodObject<{ clicks: z.ZodNumber; impressions: z.ZodNumber; ctr: z.ZodNumber; position: z.ZodNumber; }, z.core.$strip>; previousTotals: z.ZodOptional>; meta: z.ZodObject<{ siteUrl: z.ZodString; syncStatus: z.ZodString; newestDateSynced: z.ZodNullable; oldestDateSynced: z.ZodNullable; dataDelay: z.ZodOptional; dataEndDate: z.ZodOptional>; warnings: z.ZodOptional>; enrichment: z.ZodOptional>; backfill: z.ZodOptional; }, z.core.$strip>>; }, z.core.$loose>; }, 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>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "site_not_found", "rate_limited", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; site_not_found: "site_not_found"; rate_limited: "rate_limited"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly [{ readonly type: "site.analytics"; readonly idFrom: "params.siteId"; }]; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Query analytics report detail"; readonly description: "Returns the hosted analytics timeseries report with current and comparison totals."; readonly tags: readonly ["Analytics reports"]; readonly examples: { readonly request: { readonly params: { readonly siteId: "s_01"; }; readonly body: { readonly state: { readonly dimensions: readonly ["date"]; readonly searchType: "web"; }; }; }; readonly response: { readonly data: { readonly daily: readonly []; readonly totals: { readonly clicks: 0; readonly impressions: 0; readonly ctr: 0; readonly position: 0; }; readonly meta: { readonly siteUrl: "sc-domain:example.com"; readonly syncStatus: "synced"; readonly newestDateSynced: null; readonly oldestDateSynced: null; readonly dataDelay: "0 days"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "analytics"; readonly version: "1.0"; readonly sourceName: "hosted-report"; readonly sourceKind: "sql"; readonly queryMs: 12; }; }; }; }; }; }>; realtime: HttpV1Surface<{ readonly getStreamHead: { readonly id: "realtime.stream.head.get"; readonly method: "GET"; readonly path: "/stream/head"; readonly visibility: "public"; readonly semantics: { readonly kind: "query"; readonly sideEffects: "none"; readonly idempotent: true; readonly retry: "idempotent"; readonly readConsistency: "primary"; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["realtime:connect"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "principal_stream"; }, { readonly credential: "partner_key"; readonly rule: "principal_stream"; }]; }; readonly request: { readonly params: null; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: null; }; readonly responses: { readonly 200: CompatibleResponseSchema; readonly sequence: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"realtime">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ data: z.ZodObject<{ readonly head: z.ZodObject<{ readonly streamId: z.ZodUnion; readonly sequence: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"realtime">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strip>>; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "rate_limited", "realtime_unavailable", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; rate_limited: "rate_limited"; realtime_unavailable: "realtime_unavailable"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly []; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Get the inferred stream head"; readonly description: "Returns the current durable head for the credential's one exact stream."; readonly tags: readonly ["Realtime"]; readonly examples: { readonly request: {}; readonly response: { readonly data: { readonly head: { readonly streamId: "user:u_01"; readonly sequence: "142"; }; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "realtime"; readonly version: "1.0"; }; }; }; }; }; readonly createTicket: { readonly id: "realtime.tickets.create"; readonly method: "POST"; readonly path: "/tickets"; readonly visibility: "public"; readonly semantics: { readonly kind: "mutation"; readonly sideEffects: "state"; readonly idempotent: false; readonly retry: "never"; readonly readConsistency: null; }; readonly auth: { readonly credentials: readonly ["user_key", "partner_key"]; readonly scopes: readonly ["realtime:connect"]; readonly ownership: readonly [{ readonly credential: "user_key"; readonly rule: "principal_stream"; }, { readonly credential: "partner_key"; readonly rule: "principal_stream"; }]; }; readonly request: { readonly params: null; readonly query: null; readonly headers: z.ZodObject<{ 'x-request-id': z.ZodOptional; }, z.core.$strict>; readonly body: z.ZodObject<{ origin: z.ZodOptional; }, z.core.$strict>; }; readonly responses: { readonly 201: { producer: 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<{ readonly streamId: z.ZodUnion; readonly sequence: z.ZodString; }, z.core.$strip>; maxConnectionSeconds: z.ZodLiteral<900>; }, z.core.$strict>; meta: z.ZodObject<{ readonly requestId: z.ZodString; readonly surface: z.ZodLiteral<"realtime">; readonly version: z.ZodLiteral<"1.0">; }, z.core.$strip>; }, z.core.$strict>; client: 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>; }; }; readonly errors: readonly ["invalid_request", "unauthorized", "forbidden", "rate_limited", "realtime_unavailable", "internal_error", "contract_violation"]; readonly errorResponse: CompatibleResponseSchema; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$strict>; }, z.core.$strip>, z.ZodObject<{ readonly error: z.ZodObject<{ code: z.ZodEnum<{ internal_error: "internal_error"; invalid_request: "invalid_request"; unauthorized: "unauthorized"; forbidden: "forbidden"; rate_limited: "rate_limited"; realtime_unavailable: "realtime_unavailable"; contract_violation: "contract_violation"; }>; message: z.ZodString; requestId: z.ZodString; retryable: z.ZodBoolean; details: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>>; readonly resources: { readonly reads: readonly []; readonly changes: readonly []; }; readonly lifecycle: { readonly introduced: "1.0.0"; }; readonly docs: { readonly summary: "Create a realtime ticket"; readonly description: "Creates a short-lived single-use ticket for the credential's inferred stream."; readonly tags: readonly ["Realtime"]; readonly examples: { readonly request: { readonly body: { readonly origin: "https://nuxtseo.com"; }; }; readonly response: { readonly data: { readonly socketUrl: "wss://gscdump.com/ws/v1"; readonly protocol: "gscdump.v1"; readonly protocolVersion: 1; readonly ticket: "gscdump.ticket.v1.cGF5bG9hZA.c2lnbmF0dXJl"; readonly expiresAt: "2026-07-14T08:01:00.000Z"; readonly head: { readonly streamId: "user:u_01"; readonly sequence: "142"; }; readonly maxConnectionSeconds: 900; }; readonly meta: { readonly requestId: "req_01"; readonly surface: "realtime"; readonly version: "1.0"; }; }; }; }; }; }>; }; }; type GscdumpV1Protocol = ReturnType; type GscdumpV1Operation = HttpV1ProtocolOperation; type GscdumpV1OperationId = GscdumpV1Operation['id']; type GscdumpV1ErrorEnvelope = z.infer; type GscdumpV1RequestMetadata = z.infer; type AnalyticsRowsV1Request = z.infer; type AnalyticsRowsV1Response = z.infer; type AnalyticsReportV1Request = z.infer; type AnalyticsReportV1Response = z.infer; type AnalyticsReportDetailV1Request = z.infer; type AnalyticsReportDetailV1Response = z.infer; type PartnerAnalysisV1Response = z.infer; type PartnerAnalysisBundleV1Response = z.infer; type PartnerAvailableSitesV1Response = z.infer; type PartnerIndexingV1Response = z.infer; type PartnerIndexingUrlsV1Response = z.infer; type PartnerBingIndexingEvidenceV1Response = z.infer; type PartnerIndexingTransitionsV1Response = z.infer; type PartnerIndexingDiagnosticsV1Response = z.infer; type PartnerSitemapsV1Response = z.infer; type PartnerSitemapChangesV1Response = z.infer; type PartnerSiteRegistrationV1Response = z.infer; type PartnerSiteDeletionV1Response = z.infer; type PartnerUserLifecycleV1Response = z.infer; export { AnalyticsReportDetailV1Request, AnalyticsReportDetailV1Response, AnalyticsReportV1Request, AnalyticsReportV1Response, AnalyticsRowsV1Request, AnalyticsRowsV1Response, GscdumpV1ErrorEnvelope, GscdumpV1Operation, GscdumpV1OperationId, GscdumpV1Protocol, GscdumpV1RequestMetadata, PartnerAnalysisBundleV1Response, PartnerAnalysisV1Response, PartnerAvailableSitesV1Response, PartnerBingIndexingEvidenceV1Response, PartnerIndexingDiagnosticsV1Response, PartnerIndexingTransitionsV1Response, PartnerIndexingUrlsV1Response, PartnerIndexingV1Response, PartnerSiteDeletionV1Response, PartnerSiteRegistrationV1Response, PartnerSitemapChangesV1Response, PartnerSitemapsV1Response, PartnerUserLifecycleV1Response, createGscdumpV1Protocol };