/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { RFCDate } from "../../types/rfcdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetAnalyticsWebinarsWebinarIdRequest = { /** * The hashed ID of the webinar. */ webinarId: string; /** * Whether to include on-demand viewing data after the live event ended. */ includePostEvent?: boolean | undefined; /** * Start date for the post-event analytics period in ISO 8601 format (YYYY-MM-DD). Inclusive — the range starts at the beginning of this date. Only used when include_post_event is true. */ postEventStartDate?: RFCDate | undefined; /** * End date for the post-event analytics period in ISO 8601 format (YYYY-MM-DD). Exclusive — the range ends before the beginning of this date. Only used when include_post_event is true. */ postEventEndDate?: RFCDate | undefined; }; export type Option = { /** * The option ID. */ id?: number | undefined; /** * The option text. */ text?: string | undefined; /** * The number of times this option was selected. */ count?: number | undefined; /** * The percentage of respondents who selected this option. */ percent?: number | undefined; }; export type PollQuestion = { /** * The poll question ID. */ id?: number | undefined; /** * The poll ID this question belongs to. */ pollId?: number | undefined; /** * The question text. */ text?: string | undefined; /** * The total number of responses. */ responseCount?: number | undefined; /** * The available answer options and their response counts. */ options?: Array