import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetStatsMediasMediaIdRequest = { /** * The hashed ID or ID of the video for which you want to retrieve stats. */ mediaId: string; }; export type Action = { /** * Type of action (e.g., "Call to Action"). */ type?: string | undefined; /** * Number of actions performed. */ actionCount?: number | undefined; /** * Number of times the action was shown. */ impressionCount?: number | undefined; /** * The rate of actions performed over impressions. */ rate?: number | undefined; }; /** * Success response with the stats of the video. */ export type GetStatsMediasMediaIdResponse = { /** * The total number of times this video has been loaded. */ loadCount?: number | undefined; /** * The total number of times this video has been played. */ playCount?: number | undefined; /** * The percentage of visitors who clicked play (between 0 and 1). */ playRate?: number | undefined; /** * The total time spent watching this video. */ hoursWatched?: number | undefined; /** * The average percentage of the video that gets viewed (between 0 and 1). */ engagement?: number | undefined; /** * The total number of unique people that have loaded this video. */ visitors?: number | undefined; actions?: Array | undefined; }; /** @internal */ export type GetStatsMediasMediaIdRequest$Outbound = { mediaId: string; }; /** @internal */ export declare const GetStatsMediasMediaIdRequest$outboundSchema: z.ZodType; export declare function getStatsMediasMediaIdRequestToJSON(getStatsMediasMediaIdRequest: GetStatsMediasMediaIdRequest): string; /** @internal */ export declare const Action$inboundSchema: z.ZodType; export declare function actionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetStatsMediasMediaIdResponse$inboundSchema: z.ZodType; export declare function getStatsMediasMediaIdResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getstatsmediasmediaid.d.ts.map