import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetAnalyticsMediasMediaIdRequest = { /** * The hashed ID of the video. */ mediaId: string; /** * Start date for the analytics period in ISO 8601 format (YYYY-MM-DD). Inclusive — the range starts at the beginning of this date. */ startDate: RFCDate; /** * End date for the analytics period in ISO 8601 format (YYYY-MM-DD). Exclusive — the range ends before the beginning of this date. */ endDate: RFCDate; }; /** * Success response with aggregate analytics for the video. */ export type GetAnalyticsMediasMediaIdResponse = { /** * The number of unique video loads. */ uniqueLoads?: number | null | undefined; /** * The number of unique video plays. */ uniquePlays?: number | null | undefined; /** * The total number of video plays. */ plays?: number | null | undefined; /** * The percentage of loads that resulted in a play (between 0 and 1). */ playRate?: number | null | undefined; /** * Total time spent watching the video in seconds. */ playedTime?: number | null | undefined; /** * The number of unique visitors who loaded the video. */ uniqueVisitors?: number | null | undefined; /** * The average percentage of the video watched (between 0 and 1). */ engagementRate?: number | null | undefined; /** * The number of times a call-to-action was shown. */ ctaImpressions?: number | null | undefined; /** * The number of times a call-to-action was clicked. */ ctaConversions?: number | null | undefined; /** * The rate of CTA clicks over impressions (between 0 and 1). */ ctaConversionRate?: number | null | undefined; /** * The number of form submissions. */ formConversions?: number | null | undefined; }; /** @internal */ export type GetAnalyticsMediasMediaIdRequest$Outbound = { mediaId: string; start_date: string; end_date: string; }; /** @internal */ export declare const GetAnalyticsMediasMediaIdRequest$outboundSchema: z.ZodType; export declare function getAnalyticsMediasMediaIdRequestToJSON(getAnalyticsMediasMediaIdRequest: GetAnalyticsMediasMediaIdRequest): string; /** @internal */ export declare const GetAnalyticsMediasMediaIdResponse$inboundSchema: z.ZodType; export declare function getAnalyticsMediasMediaIdResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getanalyticsmediasmediaid.d.ts.map