/** * SIMID 1.2 wire-protocol definitions — message type constants and message shapes. * * Shared by `SimidRpcChannel` (transport) and `SimidSession` (session logic). * Spec: https://iabtechlab.com/standards/simid/ */ export declare const SIMID_PLAYER: { readonly INIT: "SIMID:Player:init"; readonly START_CREATIVE: "SIMID:Player:startCreative"; readonly AD_PROGRESS: "SIMID:Player:adProgress"; readonly AD_PAUSED: "SIMID:Player:adPaused"; readonly AD_PLAYING: "SIMID:Player:adPlaying"; readonly AD_STOPPED: "SIMID:Player:adStopped"; readonly AD_SKIPPED: "SIMID:Player:adSkipped"; readonly AD_VOLUME: "SIMID:Player:adVolume"; readonly AD_DURATION_CHANGE: "SIMID:Player:adDurationChange"; readonly RESIZE: "SIMID:Player:resize"; readonly FATAL: "SIMID:Player:fatal"; readonly LOG: "SIMID:Player:log"; readonly APP_BACKGROUNDED: "SIMID:Player:appBackgrounded"; readonly APP_FOREGROUNDED: "SIMID:Player:appForegrounded"; /** Player resolves a creative request (spec type: "resolve") */ readonly RESOLVE: "resolve"; /** Player rejects a creative request (spec type: "reject") */ readonly REJECT: "reject"; }; /** SIMID 1.2 media event types — player bridges ad video DOM events to these postMessages. */ export declare const SIMID_MEDIA: { readonly DURATION_CHANGE: "SIMID:Media:durationchange"; readonly ENDED: "SIMID:Media:ended"; readonly ERROR: "SIMID:Media:error"; readonly PAUSE: "SIMID:Media:pause"; readonly PLAY: "SIMID:Media:play"; readonly PLAYING: "SIMID:Media:playing"; readonly SEEKED: "SIMID:Media:seeked"; readonly SEEKING: "SIMID:Media:seeking"; readonly STALLED: "SIMID:Media:stalled"; readonly TIME_UPDATE: "SIMID:Media:timeupdate"; readonly VOLUME_CHANGE: "SIMID:Media:volumechange"; }; export declare const SIMID_CREATIVE: { readonly READY: "SIMID:Creative:ready"; readonly GET_MEDIA_STATE: "SIMID:Creative:getMediaState"; readonly RESOLVE: "SIMID:Creative:resolve"; readonly REJECT: "SIMID:Creative:reject"; readonly REQUEST_FULLSCREEN: "SIMID:Creative:requestFullscreen"; readonly REQUEST_RESIZE: "SIMID:Creative:requestResize"; readonly CLICK_THROUGH: "SIMID:Creative:clickThrough"; readonly REPORT_TRACKING: "SIMID:Creative:reportTracking"; readonly REQUEST_SKIP: "SIMID:Creative:requestSkip"; readonly REQUEST_STOP: "SIMID:Creative:requestStop"; readonly REQUEST_PAUSE: "SIMID:Creative:requestPause"; readonly REQUEST_PLAY: "SIMID:Creative:requestPlay"; readonly REQUEST_CHANGE_AD_DURATION: "SIMID:Creative:requestChangeAdDuration"; readonly FATAL: "SIMID:Creative:fatal"; readonly LOG: "SIMID:Creative:log"; }; export type SimidPlayerMessage = (typeof SIMID_PLAYER)[keyof typeof SIMID_PLAYER]; export type SimidMessage = { type: string; /** SIMID 1.2 spec field name */ messageId?: number; /** Legacy field used by some older creatives */ msgId?: number; sessionId?: string; timestamp?: number; args?: Record; /** messageId of the player message being resolved by the creative */ resolves?: number; /** messageId of the player message being rejected by the creative */ rejects?: number; errorCode?: number; reason?: string; }; export type PendingResolve = { resolve: (v: unknown) => void; reject: (e: unknown) => void; }; //# sourceMappingURL=simid-protocol.d.ts.map