import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Filtering parameter to narrow down the list of visitors. */ export declare const Filter: { readonly HasName: "has_name"; readonly HasEmail: "has_email"; readonly IdentifiedByEmailGate: "identified_by_email_gate"; }; /** * Filtering parameter to narrow down the list of visitors. */ export type Filter = ClosedEnum; export type GetStatsVisitorsRequest = { /** * The page of results based on the per_page parameter. */ page?: number | undefined; /** * The maximum number of results to return, capped at 100. */ perPage?: number | undefined; /** * Filtering parameter to narrow down the list of visitors. */ filter?: Filter | undefined; /** * Search for visitors based on name or email address. */ search?: string | undefined; }; export type GetStatsVisitorsOrg = { name?: string | null | undefined; title?: string | null | undefined; }; export type GetStatsVisitorsVisitorIdentity = { name?: string | undefined; email?: string | null | undefined; org?: GetStatsVisitorsOrg | undefined; }; export type GetStatsVisitorsUserAgentDetails = { browser?: string | undefined; browserVersion?: string | undefined; platform?: string | undefined; mobile?: boolean | undefined; }; export type GetStatsVisitorsResponse = { /** * A unique identifier for the visitor. */ visitorKey?: string | undefined; /** * When the visitor was created. */ createdAt?: Date | undefined; /** * The last time the visitor played a video. */ lastActiveAt?: Date | undefined; /** * The event key for the last video play action. */ lastEventKey?: string | undefined; /** * The total number of videos loaded by the visitor. */ loadCount?: number | undefined; /** * The total number of videos played by the visitor. */ playCount?: number | undefined; visitorIdentity?: GetStatsVisitorsVisitorIdentity | undefined; userAgentDetails?: GetStatsVisitorsUserAgentDetails | undefined; }; /** @internal */ export declare const Filter$outboundSchema: z.ZodNativeEnum; /** @internal */ export type GetStatsVisitorsRequest$Outbound = { page?: number | undefined; per_page?: number | undefined; filter?: string | undefined; search?: string | undefined; }; /** @internal */ export declare const GetStatsVisitorsRequest$outboundSchema: z.ZodType; export declare function getStatsVisitorsRequestToJSON(getStatsVisitorsRequest: GetStatsVisitorsRequest): string; /** @internal */ export declare const GetStatsVisitorsOrg$inboundSchema: z.ZodType; export declare function getStatsVisitorsOrgFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetStatsVisitorsVisitorIdentity$inboundSchema: z.ZodType; export declare function getStatsVisitorsVisitorIdentityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetStatsVisitorsUserAgentDetails$inboundSchema: z.ZodType; export declare function getStatsVisitorsUserAgentDetailsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetStatsVisitorsResponse$inboundSchema: z.ZodType; export declare function getStatsVisitorsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getstatsvisitors.d.ts.map