UNPKG

@arcware-cloud/pixelstreaming-websdk

Version:

WebSDK for easy implementation of pixel streaming with Arcware Cloud Services. Heavily based on the '@epicgames-ps' library.

339 lines (338 loc) 11.4 kB
import { z } from "zod"; export declare const ZStreamInfo: z.ZodObject<{ type: z.ZodLiteral<"streamInfo">; streamInfo: z.ZodObject<{ guid: z.ZodString; autoPlay: z.ZodOptional<z.ZodBoolean>; touchCapable: z.ZodOptional<z.ZodBoolean>; resolution: z.ZodOptional<z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; dynamic: z.ZodOptional<z.ZodBoolean>; fixed: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { width?: number; height?: number; dynamic?: boolean; fixed?: boolean; }, { width?: number; height?: number; dynamic?: boolean; fixed?: boolean; }>>; meta: z.ZodOptional<z.ZodObject<{ friendlyName: z.ZodOptional<z.ZodString>; isTrial: z.ZodOptional<z.ZodBoolean>; mouseLock: z.ZodOptional<z.ZodBoolean>; poweredBy: z.ZodOptional<z.ZodBoolean>; version: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { friendlyName?: string; isTrial?: boolean; mouseLock?: boolean; poweredBy?: boolean; version?: string; }, { friendlyName?: string; isTrial?: boolean; mouseLock?: boolean; poweredBy?: boolean; version?: string; }>>; webSdkSettings: z.ZodOptional<z.ZodObject<{ conf: z.ZodOptional<z.ZodObject<{ fullscreenButton: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; stopButton: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; audioButton: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; infoButton: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; micButton: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; settingsButton: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; connectionStrengthIcon: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { fullscreenButton?: boolean; stopButton?: boolean; audioButton?: boolean; infoButton?: boolean; micButton?: boolean; settingsButton?: boolean; connectionStrengthIcon?: boolean; }, { fullscreenButton?: boolean; stopButton?: boolean; audioButton?: boolean; infoButton?: boolean; micButton?: boolean; settingsButton?: boolean; connectionStrengthIcon?: boolean; }>>; init: z.ZodOptional<z.ZodObject<{ KeyboardInput: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; MouseInput: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; GamepadInput: z.ZodOptional<z.ZodBoolean>; TouchInput: z.ZodOptional<z.ZodBoolean>; XRControllerInput: z.ZodOptional<z.ZodBoolean>; FakeMouseWithTouches: z.ZodOptional<z.ZodBoolean>; ForceMonoAudio: z.ZodOptional<z.ZodBoolean>; HoveringMouse: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { KeyboardInput?: boolean; MouseInput?: boolean; GamepadInput?: boolean; TouchInput?: boolean; XRControllerInput?: boolean; FakeMouseWithTouches?: boolean; ForceMonoAudio?: boolean; HoveringMouse?: boolean; }, { KeyboardInput?: boolean; MouseInput?: boolean; GamepadInput?: boolean; TouchInput?: boolean; XRControllerInput?: boolean; FakeMouseWithTouches?: boolean; ForceMonoAudio?: boolean; HoveringMouse?: boolean; }>>; }, "strict", z.ZodTypeAny, { conf?: { fullscreenButton?: boolean; stopButton?: boolean; audioButton?: boolean; infoButton?: boolean; micButton?: boolean; settingsButton?: boolean; connectionStrengthIcon?: boolean; }; init?: { KeyboardInput?: boolean; MouseInput?: boolean; GamepadInput?: boolean; TouchInput?: boolean; XRControllerInput?: boolean; FakeMouseWithTouches?: boolean; ForceMonoAudio?: boolean; HoveringMouse?: boolean; }; }, { conf?: { fullscreenButton?: boolean; stopButton?: boolean; audioButton?: boolean; infoButton?: boolean; micButton?: boolean; settingsButton?: boolean; connectionStrengthIcon?: boolean; }; init?: { KeyboardInput?: boolean; MouseInput?: boolean; GamepadInput?: boolean; TouchInput?: boolean; XRControllerInput?: boolean; FakeMouseWithTouches?: boolean; ForceMonoAudio?: boolean; HoveringMouse?: boolean; }; }>>; afk: z.ZodOptional<z.ZodObject<{ enabled: z.ZodBoolean; warn: z.ZodNumber; error: z.ZodNumber; action: z.ZodNumber; }, "strip", z.ZodTypeAny, { enabled?: boolean; warn?: number; error?: number; action?: number; }, { enabled?: boolean; warn?: number; error?: number; action?: number; }>>; }, "strip", z.ZodTypeAny, { guid?: string; autoPlay?: boolean; touchCapable?: boolean; resolution?: { width?: number; height?: number; dynamic?: boolean; fixed?: boolean; }; meta?: { friendlyName?: string; isTrial?: boolean; mouseLock?: boolean; poweredBy?: boolean; version?: string; }; webSdkSettings?: { conf?: { fullscreenButton?: boolean; stopButton?: boolean; audioButton?: boolean; infoButton?: boolean; micButton?: boolean; settingsButton?: boolean; connectionStrengthIcon?: boolean; }; init?: { KeyboardInput?: boolean; MouseInput?: boolean; GamepadInput?: boolean; TouchInput?: boolean; XRControllerInput?: boolean; FakeMouseWithTouches?: boolean; ForceMonoAudio?: boolean; HoveringMouse?: boolean; }; }; afk?: { enabled?: boolean; warn?: number; error?: number; action?: number; }; }, { guid?: string; autoPlay?: boolean; touchCapable?: boolean; resolution?: { width?: number; height?: number; dynamic?: boolean; fixed?: boolean; }; meta?: { friendlyName?: string; isTrial?: boolean; mouseLock?: boolean; poweredBy?: boolean; version?: string; }; webSdkSettings?: { conf?: { fullscreenButton?: boolean; stopButton?: boolean; audioButton?: boolean; infoButton?: boolean; micButton?: boolean; settingsButton?: boolean; connectionStrengthIcon?: boolean; }; init?: { KeyboardInput?: boolean; MouseInput?: boolean; GamepadInput?: boolean; TouchInput?: boolean; XRControllerInput?: boolean; FakeMouseWithTouches?: boolean; ForceMonoAudio?: boolean; HoveringMouse?: boolean; }; }; afk?: { enabled?: boolean; warn?: number; error?: number; action?: number; }; }>; }, "strip", z.ZodTypeAny, { type?: "streamInfo"; streamInfo?: { guid?: string; autoPlay?: boolean; touchCapable?: boolean; resolution?: { width?: number; height?: number; dynamic?: boolean; fixed?: boolean; }; meta?: { friendlyName?: string; isTrial?: boolean; mouseLock?: boolean; poweredBy?: boolean; version?: string; }; webSdkSettings?: { conf?: { fullscreenButton?: boolean; stopButton?: boolean; audioButton?: boolean; infoButton?: boolean; micButton?: boolean; settingsButton?: boolean; connectionStrengthIcon?: boolean; }; init?: { KeyboardInput?: boolean; MouseInput?: boolean; GamepadInput?: boolean; TouchInput?: boolean; XRControllerInput?: boolean; FakeMouseWithTouches?: boolean; ForceMonoAudio?: boolean; HoveringMouse?: boolean; }; }; afk?: { enabled?: boolean; warn?: number; error?: number; action?: number; }; }; }, { type?: "streamInfo"; streamInfo?: { guid?: string; autoPlay?: boolean; touchCapable?: boolean; resolution?: { width?: number; height?: number; dynamic?: boolean; fixed?: boolean; }; meta?: { friendlyName?: string; isTrial?: boolean; mouseLock?: boolean; poweredBy?: boolean; version?: string; }; webSdkSettings?: { conf?: { fullscreenButton?: boolean; stopButton?: boolean; audioButton?: boolean; infoButton?: boolean; micButton?: boolean; settingsButton?: boolean; connectionStrengthIcon?: boolean; }; init?: { KeyboardInput?: boolean; MouseInput?: boolean; GamepadInput?: boolean; TouchInput?: boolean; XRControllerInput?: boolean; FakeMouseWithTouches?: boolean; ForceMonoAudio?: boolean; HoveringMouse?: boolean; }; }; afk?: { enabled?: boolean; warn?: number; error?: number; action?: number; }; }; }>; export type StreamInfo = z.infer<typeof ZStreamInfo>;