import * as z from "zod/mini"; import { type ClientMeta } from "./client-meta.js"; /** Loader -> core iframe command envelope (MessagePort transport). */ export declare const coreCommandEnvelopeSchema: z.ZodMiniObject<{ version: z.ZodMiniLiteral<"1">; instanceId: z.ZodMiniString; requestId: z.ZodMiniString; idempotencyKey: z.ZodMiniString; clientMeta: z.ZodMiniOptional; clientName: z.ZodMiniOptional>; clientVersion: z.ZodMiniOptional>; protocolCapabilities: z.ZodMiniOptional>>; integrator: z.ZodMiniOptional>; version: z.ZodMiniOptional>; }, z.core.$strip>>; transport: z.ZodMiniOptional>; runtime: z.ZodMiniOptional>; runtime: z.ZodMiniOptional>; }, z.core.$strip>>; notes: z.ZodMiniOptional>; }, z.core.$strip>>; command: z.ZodMiniUnion; flowId: z.ZodMiniString; flowHandleId: z.ZodMiniOptional>; metadata: z.ZodMiniOptional, z.ZodMiniUnion, z.ZodMiniArray>]>>>; }, z.core.$strict>>; hideCloseButton: z.ZodMiniOptional>; }, z.core.$strict>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"open">; flow: z.ZodMiniObject<{ definition: z.ZodMiniUnknown; theme: z.ZodMiniOptional>; themeRuntimeArtifactId: z.ZodMiniOptional>; themeVersionId: z.ZodMiniOptional>; }, z.core.$strict>>; }, z.core.$strict>; flowHandleId: z.ZodMiniOptional>; metadata: z.ZodMiniOptional, z.ZodMiniUnion, z.ZodMiniArray>]>>>; }, z.core.$strict>>; hideCloseButton: z.ZodMiniOptional>; }, z.core.$strict>]>, z.ZodMiniUnion; flowId: z.ZodMiniString; flowHandleId: z.ZodMiniOptional>; }, z.core.$strict>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"prefetch">; flow: z.ZodMiniObject<{ definition: z.ZodMiniUnknown; theme: z.ZodMiniOptional>; themeRuntimeArtifactId: z.ZodMiniOptional>; themeVersionId: z.ZodMiniOptional>; }, z.core.$strict>>; }, z.core.$strict>; flowHandleId: z.ZodMiniOptional>; }, z.core.$strict>]>, z.ZodMiniUnion; flowId: z.ZodMiniString; flowHandleId: z.ZodMiniOptional>; hideCloseButton: z.ZodMiniOptional>; }, z.core.$strict>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"prerender">; flow: z.ZodMiniObject<{ definition: z.ZodMiniUnknown; theme: z.ZodMiniOptional>; themeRuntimeArtifactId: z.ZodMiniOptional>; themeVersionId: z.ZodMiniOptional>; }, z.core.$strict>>; }, z.core.$strict>; flowHandleId: z.ZodMiniOptional>; hideCloseButton: z.ZodMiniOptional>; }, z.core.$strict>]>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"hostContextUpdated">; context: z.ZodMiniObject<{ url: z.ZodMiniString; env: z.ZodMiniOptional, z.ZodMiniString>>; storage: z.ZodMiniOptional, z.ZodMiniString>>; page: z.ZodMiniOptional>; referrer: z.ZodMiniOptional>; search: z.ZodMiniOptional>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"hostSignal">; name: z.ZodMiniString; data: z.ZodMiniOptional; }, z.core.$strip>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"setTargetingPlan">; plan: z.ZodMiniObject<{ strategy: z.ZodMiniOptional>; candidates: z.ZodMiniArray; flowId: z.ZodMiniString; rules: z.ZodMiniArray; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"telemetry">; name: z.ZodMiniString; props: z.ZodMiniOptional, z.ZodMiniUnknown>>; }, z.core.$strip>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"configure">; opts: z.ZodMiniObject<{ colorScheme: z.ZodMiniOptional>; }, z.core.$strict>, z.ZodMiniEnum<{ dark: "dark"; light: "light"; system: "system"; }>]>>; consent: z.ZodMiniOptional, z.ZodMiniArray>]>>; auth: z.ZodMiniOptional; }, z.core.$strip>, z.ZodMiniNull]>>; }, z.core.$strip>>; capabilities: z.ZodMiniOptional, z.ZodMiniObject<{ key: z.ZodMiniString; source: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; }, z.core.$strip>]>>>; }, z.core.$strict>; }, z.core.$strip>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"init">; opts: z.ZodMiniUnion; colorScheme: z.ZodMiniOptional>; }, z.core.$strict>, z.ZodMiniEnum<{ dark: "dark"; light: "light"; system: "system"; }>]>>; disableTelemetry: z.ZodMiniOptional>; enableDebug: z.ZodMiniOptional, z.ZodMiniString, z.ZodMiniArray>]>>; defaultConsent: z.ZodMiniOptional, z.ZodMiniArray>]>>; clientMeta: z.ZodMiniOptional; clientName: z.ZodMiniOptional>; clientVersion: z.ZodMiniOptional>; protocolCapabilities: z.ZodMiniOptional>>; integrator: z.ZodMiniOptional>; version: z.ZodMiniOptional>; }, z.core.$strip>>; transport: z.ZodMiniOptional>; runtime: z.ZodMiniOptional>; runtime: z.ZodMiniOptional>; }, z.core.$strip>>; notes: z.ZodMiniOptional>; }, z.core.$strip>>; capabilities: z.ZodMiniOptional>>; flags: z.ZodMiniOptional; target: z.ZodMiniOptional>; value: z.ZodMiniType>; variant: z.ZodMiniOptional>; origin: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; status: z.ZodMiniOptional>; reason: z.ZodMiniOptional>; evaluatedAt: z.ZodMiniOptional>; }, z.core.$strip>>>; hostCapabilities: z.ZodMiniOptional; source: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; }, z.core.$strip>>>; hostActions: z.ZodMiniOptional; version: z.ZodMiniNumber; }, z.core.$strict>>>; runtimeEndpoints: z.ZodMiniOptional>; coreUrl: z.ZodMiniOptional>; realtimeUrl: z.ZodMiniOptional>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodMiniObject<{ apiKey: z.ZodMiniString; colorScheme: z.ZodMiniOptional>; }, z.core.$strict>, z.ZodMiniEnum<{ dark: "dark"; light: "light"; system: "system"; }>]>>; disableTelemetry: z.ZodMiniOptional>; enableDebug: z.ZodMiniOptional, z.ZodMiniString, z.ZodMiniArray>]>>; defaultConsent: z.ZodMiniOptional, z.ZodMiniArray>]>>; clientMeta: z.ZodMiniOptional; clientName: z.ZodMiniOptional>; clientVersion: z.ZodMiniOptional>; protocolCapabilities: z.ZodMiniOptional>>; integrator: z.ZodMiniOptional>; version: z.ZodMiniOptional>; }, z.core.$strip>>; transport: z.ZodMiniOptional>; runtime: z.ZodMiniOptional>; runtime: z.ZodMiniOptional>; }, z.core.$strip>>; notes: z.ZodMiniOptional>; }, z.core.$strip>>; capabilities: z.ZodMiniOptional>>; flags: z.ZodMiniOptional; target: z.ZodMiniOptional>; value: z.ZodMiniType>; variant: z.ZodMiniOptional>; origin: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; status: z.ZodMiniOptional>; reason: z.ZodMiniOptional>; evaluatedAt: z.ZodMiniOptional>; }, z.core.$strip>>>; hostCapabilities: z.ZodMiniOptional; source: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; }, z.core.$strip>>>; hostActions: z.ZodMiniOptional; version: z.ZodMiniNumber; }, z.core.$strict>>>; runtimeEndpoints: z.ZodMiniOptional>; coreUrl: z.ZodMiniOptional>; realtimeUrl: z.ZodMiniOptional>; }, z.core.$strict>>; runtimeConfiguration: z.ZodMiniObject<{ colorScheme: z.ZodMiniOptional>; }, z.core.$strict>, z.ZodMiniEnum<{ dark: "dark"; light: "light"; system: "system"; }>]>>; consent: z.ZodMiniOptional, z.ZodMiniArray>]>>; auth: z.ZodMiniOptional; }, z.core.$strip>, z.ZodMiniNull]>>; }, z.core.$strip>>; capabilities: z.ZodMiniOptional, z.ZodMiniObject<{ key: z.ZodMiniString; source: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; }, z.core.$strip>]>>>; }, z.core.$strict>; }, z.core.$strict>, z.ZodMiniObject<{ registration: z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"supplied-only-local">; profile: z.ZodMiniLiteral<"bundled-docs">; }, z.core.$strict>; colorScheme: z.ZodMiniDefault>; }, z.core.$strict>, z.ZodMiniEnum<{ dark: "dark"; light: "light"; system: "system"; }>]>>>; }, z.core.$strict>]>; }, z.core.$strict>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"close">; flowHandleId: z.ZodMiniOptional>; reasonCode: z.ZodMiniOptional>; }, z.core.$strip>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"reset">; }, z.core.$strip>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"instanceFeedback.capture">; payload: z.ZodMiniPipe>>; related: z.ZodMiniOptional; subject: z.ZodMiniPipe; id: z.ZodMiniString; }, z.core.$strict>>; }, z.core.$strict>>>; target: z.ZodMiniOptional; id: z.ZodMiniString; properties: z.ZodMiniOptional>>; references: z.ZodMiniOptional, z.ZodMiniType>>>; }, z.core.$strict>>>; category: z.ZodMiniString; comment: z.ZodMiniOptional>; reasons: z.ZodMiniOptional], z.ZodMiniString>>; value: z.ZodMiniOptional, z.ZodMiniNumber, z.ZodMiniString]>>; }, z.core.$strict>, z.ZodMiniObject<{ properties: z.ZodMiniOptional>>; related: z.ZodMiniOptional; subject: z.ZodMiniPipe; id: z.ZodMiniString; }, z.core.$strict>>; }, z.core.$strict>>>; target: z.ZodMiniOptional; id: z.ZodMiniString; properties: z.ZodMiniOptional>>; references: z.ZodMiniOptional, z.ZodMiniType>>>; }, z.core.$strict>>>; category: z.ZodMiniOptional; comment: z.ZodMiniString; reasons: z.ZodMiniOptional; value: z.ZodMiniOptional; }, z.core.$strict>]>>; }, z.core.$strip>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"instanceFeedback.listMine">; payload: z.ZodMiniObject<{ selectors: z.ZodMiniArray>; target: z.ZodMiniOptional; id: z.ZodMiniString; }, z.core.$strict>>>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"error">; event: z.ZodMiniObject<{ id: z.ZodMiniString; name: z.ZodMiniString; message: z.ZodMiniString; stack: z.ZodMiniOptional>; category: z.ZodMiniEnum<{ HOST: "HOST"; INTERNAL: "INTERNAL"; INVALID_USAGE: "INVALID_USAGE"; }>; timestamp: z.ZodMiniNumber; probability: z.ZodMiniOptional>; context: z.ZodMiniObject<{ widgetVersion: z.ZodMiniString; clientMeta: z.ZodMiniOptional; clientName: z.ZodMiniOptional>; clientVersion: z.ZodMiniOptional>; protocolCapabilities: z.ZodMiniOptional>>; integrator: z.ZodMiniOptional>; version: z.ZodMiniOptional>; }, z.core.$strip>>; transport: z.ZodMiniOptional>; runtime: z.ZodMiniOptional>; runtime: z.ZodMiniOptional>; }, z.core.$strip>>; notes: z.ZodMiniOptional>; }, z.core.$strip>>; debug: z.ZodMiniOptional>; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodMiniUnion; traits: z.ZodMiniRecord, z.ZodMiniUnknown>; options: z.ZodMiniOptional, z.ZodMiniTransform>; type: z.ZodMiniString; collection: z.ZodMiniLiteral<"users">; encoding: z.ZodMiniLiteral<"none">; }, z.core.$strip>>>; }, z.core.$strict>>; }, z.core.$strict>, z.ZodMiniObject<{ kind: z.ZodMiniLiteral<"identify">; userId: z.ZodMiniString; traits: z.ZodMiniOptional, z.ZodMiniUnknown>>; options: z.ZodMiniOptional, z.ZodMiniTransform>; type: z.ZodMiniString; collection: z.ZodMiniLiteral<"users">; encoding: z.ZodMiniLiteral<"none">; }, z.core.$strip>>>; }, z.core.$strict>>; }, z.core.$strict>]>, z.ZodMiniUnion, z.ZodMiniUnknown>>; identities: z.ZodMiniOptional, z.ZodMiniTransform<"anonymousId" | "context.device.advertisingId" | "context.device.id" | "context.device.token" | "traits.email" | "traits.phone" | "userId", string>>; value: z.ZodMiniString; }, z.core.$strip>>>; context: z.ZodMiniOptional>; referrer: z.ZodMiniOptional>; search: z.ZodMiniOptional>; }, z.core.$strip>>; locale: z.ZodMiniOptional>; userAgent: z.ZodMiniOptional>; externalIds: z.ZodMiniOptional, z.ZodMiniTransform>; type: z.ZodMiniString; collection: z.ZodMiniLiteral<"users">; encoding: z.ZodMiniLiteral<"none">; }, z.core.$strip>>>; flags: z.ZodMiniOptional; target: z.ZodMiniOptional>; value: z.ZodMiniType>; variant: z.ZodMiniOptional>; origin: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; status: z.ZodMiniOptional>; reason: z.ZodMiniOptional>; evaluatedAt: z.ZodMiniOptional>; }, z.core.$strip>>>; capabilities: z.ZodMiniOptional; source: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; }, z.core.$strip>>>; }, z.core.$strip>>; messageId: z.ZodMiniOptional>; timestamp: z.ZodMiniOptional>; type: z.ZodMiniOptional>; event: z.ZodMiniEnum<{ "Flow Dismissed": "Flow Dismissed"; "Flow Viewed": "Flow Viewed"; }>; eventSchema: z.ZodMiniOptional; eventSchemaVersion: z.ZodMiniOptional; references: z.ZodMiniObject<{ surveyId: z.ZodMiniString; }, z.core.$strip>; properties: z.ZodMiniOptional, z.ZodMiniTransform>; }, z.core.$strict>>; kind: z.ZodMiniLiteral<"track">; origin: z.ZodMiniOptional>; }, z.core.$strip>, z.ZodMiniTransform<{ traits?: Record | undefined; identities?: { type: "anonymousId" | "context.device.advertisingId" | "context.device.id" | "context.device.token" | "traits.email" | "traits.phone" | "userId"; value: string; }[] | undefined; context?: { page?: { path?: string | undefined; referrer?: string | undefined; search?: string | undefined; } | undefined; locale?: string | undefined; userAgent?: string | undefined; externalIds?: { id: string; type: string; collection: "users"; encoding: "none"; }[] | undefined; flags?: { key: string; target?: string | undefined; value: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null; variant?: string | undefined; origin?: "api" | "provider_sync" | "runtime_config" | "trigger_context" | undefined; provider?: { name: string; project?: string | undefined; environment?: string | undefined; } | undefined; status?: string | undefined; reason?: string | undefined; evaluatedAt?: string | undefined; }[] | undefined; capabilities?: { key: string; source?: string | undefined; provider?: { name: string; project?: string | undefined; environment?: string | undefined; } | undefined; }[] | undefined; } | undefined; messageId?: string | undefined; timestamp?: number | undefined; type?: "track" | undefined; event: "Flow Dismissed" | "Flow Viewed"; eventSchema?: undefined; eventSchemaVersion?: undefined; references: { surveyId: string; }; properties?: { gx_flow_run_id: string; } | undefined; kind: "track"; origin: "system"; }, { traits?: Record | undefined; identities?: { type: "anonymousId" | "context.device.advertisingId" | "context.device.id" | "context.device.token" | "traits.email" | "traits.phone" | "userId"; value: string; }[] | undefined; context?: { page?: { path?: string | undefined; referrer?: string | undefined; search?: string | undefined; } | undefined; locale?: string | undefined; userAgent?: string | undefined; externalIds?: { id: string; type: string; collection: "users"; encoding: "none"; }[] | undefined; flags?: { key: string; target?: string | undefined; value: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null)[] | { [key: string]: string | number | boolean | any | any | null; } | null; variant?: string | undefined; origin?: "api" | "provider_sync" | "runtime_config" | "trigger_context" | undefined; provider?: { name: string; project?: string | undefined; environment?: string | undefined; } | undefined; status?: string | undefined; reason?: string | undefined; evaluatedAt?: string | undefined; }[] | undefined; capabilities?: { key: string; source?: string | undefined; provider?: { name: string; project?: string | undefined; environment?: string | undefined; } | undefined; }[] | undefined; } | undefined; messageId?: string | undefined; timestamp?: number | undefined; type?: "track" | undefined; event: "Flow Dismissed" | "Flow Viewed"; eventSchema?: undefined; eventSchemaVersion?: undefined; references: { surveyId: string; }; properties?: { gx_flow_run_id: string; } | undefined; kind: "track"; origin?: "system" | undefined; }>>, z.ZodMiniObject<{ traits: z.ZodMiniOptional, z.ZodMiniUnknown>>; identities: z.ZodMiniOptional, z.ZodMiniTransform<"anonymousId" | "context.device.advertisingId" | "context.device.id" | "context.device.token" | "traits.email" | "traits.phone" | "userId", string>>; value: z.ZodMiniString; }, z.core.$strip>>>; context: z.ZodMiniOptional>; referrer: z.ZodMiniOptional>; search: z.ZodMiniOptional>; }, z.core.$strip>>; locale: z.ZodMiniOptional>; userAgent: z.ZodMiniOptional>; externalIds: z.ZodMiniOptional, z.ZodMiniTransform>; type: z.ZodMiniString; collection: z.ZodMiniLiteral<"users">; encoding: z.ZodMiniLiteral<"none">; }, z.core.$strip>>>; flags: z.ZodMiniOptional; target: z.ZodMiniOptional>; value: z.ZodMiniType>; variant: z.ZodMiniOptional>; origin: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; status: z.ZodMiniOptional>; reason: z.ZodMiniOptional>; evaluatedAt: z.ZodMiniOptional>; }, z.core.$strip>>>; capabilities: z.ZodMiniOptional; source: z.ZodMiniOptional>; provider: z.ZodMiniOptional; project: z.ZodMiniOptional>; environment: z.ZodMiniOptional>; }, z.core.$strip>>; }, z.core.$strip>>>; }, z.core.$strip>>; messageId: z.ZodMiniOptional>; timestamp: z.ZodMiniOptional>; origin: z.ZodMiniLiteral<"customer">; event: z.ZodMiniString; properties: z.ZodMiniOptional, z.ZodMiniType>>>>; type: z.ZodMiniOptional>; kind: z.ZodMiniLiteral<"track">; }, z.core.$strip>]>]>; }, z.core.$strip>; export type CoreCommandEnvelope = z.output; /** Context passed to core plugin handlers after envelope validation. */ export type CommandContext = { instanceId: string; requestId: string; idempotencyKey: string; clientMeta?: ClientMeta; }; //# sourceMappingURL=core-command-envelope.d.ts.map