UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

289 lines (288 loc) 7.97 kB
import z from 'zod'; export declare const microsoftAzureSchema: z.ZodObject<{ id: z.ZodNumber; enabled: z.ZodBoolean; active: z.ZodBoolean; title: z.ZodString; trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"manual">; ioPort: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "manual"; ioPort: string | null; }, { type: "manual"; ioPort: string | null; }>, z.ZodObject<{ type: z.ZodLiteral<"onetime">; startTime: z.ZodNumber; stopTime: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "onetime"; startTime: number; stopTime: number; }, { type: "onetime"; startTime: number; stopTime: number; }>, z.ZodObject<{ type: z.ZodLiteral<"recurrent">; schedule: z.ZodArray<z.ZodObject<{ start: z.ZodObject<{ day: z.ZodNumber; timeS: z.ZodNumber; }, "strip", z.ZodTypeAny, { day: number; timeS: number; }, { day: number; timeS: number; }>; stop: z.ZodObject<{ day: z.ZodNumber; timeS: z.ZodNumber; }, "strip", z.ZodTypeAny, { day: number; timeS: number; }, { day: number; timeS: number; }>; isActive: z.ZodBoolean; }, "strip", z.ZodTypeAny, { start: { day: number; timeS: number; }; stop: { day: number; timeS: number; }; isActive: boolean; }, { start: { day: number; timeS: number; }; stop: { day: number; timeS: number; }; isActive: boolean; }>, "many">; }, "strip", z.ZodTypeAny, { type: "recurrent"; schedule: { start: { day: number; timeS: number; }; stop: { day: number; timeS: number; }; isActive: boolean; }[]; }, { type: "recurrent"; schedule: { start: { day: number; timeS: number; }; stop: { day: number; timeS: number; }; isActive: boolean; }[]; }>]>; video: z.ZodObject<{ inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>; sourceUrl: z.ZodOptional<z.ZodString>; internalVapixParameters: z.ZodString; userVapixParameters: z.ZodString; streamingProtocol: z.ZodUnion<[z.ZodLiteral<"RTMP">, z.ZodLiteral<"RTMPS">, z.ZodLiteral<"HLS_PUSH">]>; streamDelay: z.ZodOptional<z.ZodObject<{ value: z.ZodNumber; unit: z.ZodUnion<[z.ZodLiteral<"seconds">, z.ZodLiteral<"minutes">, z.ZodLiteral<"hours">]>; }, "strip", z.ZodTypeAny, { value: number; unit: "seconds" | "minutes" | "hours"; }, { value: number; unit: "seconds" | "minutes" | "hours"; }>>; }, "strip", z.ZodTypeAny, { inputType: "RTSP_URL" | "CSw" | "CRS"; internalVapixParameters: string; userVapixParameters: string; streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH"; sourceUrl?: string | undefined; streamDelay?: { value: number; unit: "seconds" | "minutes" | "hours"; } | undefined; }, { inputType: "RTSP_URL" | "CSw" | "CRS"; internalVapixParameters: string; userVapixParameters: string; streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH"; sourceUrl?: string | undefined; streamDelay?: { value: number; unit: "seconds" | "minutes" | "hours"; } | undefined; }>; audio: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{ source: z.ZodLiteral<"none">; }, "strip", z.ZodTypeAny, { source: "none"; }, { source: "none"; }>, z.ZodObject<{ source: z.ZodLiteral<"microphone">; audioChannelNbr: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>; }, "strip", z.ZodTypeAny, { source: "microphone"; audioChannelNbr: 1 | 2; }, { source: "microphone"; audioChannelNbr: 1 | 2; }>, z.ZodObject<{ source: z.ZodLiteral<"file">; fileName: z.ZodString; filePath: z.ZodString; }, "strip", z.ZodTypeAny, { source: "file"; fileName: string; filePath: string; }, { source: "file"; fileName: string; filePath: string; }>, z.ZodObject<{ source: z.ZodLiteral<"url">; fileName: z.ZodString; fileUrl: z.ZodString; avSyncMsec: z.ZodNumber; }, "strip", z.ZodTypeAny, { source: "url"; fileName: string; fileUrl: string; avSyncMsec: number; }, { source: "url"; fileName: string; fileUrl: string; avSyncMsec: number; }>]>; } & { type: z.ZodLiteral<"microsoft_azure">; }, "strip", z.ZodTypeAny, { type: "microsoft_azure"; audio: { source: "none"; } | { source: "microphone"; audioChannelNbr: 1 | 2; } | { source: "file"; fileName: string; filePath: string; } | { source: "url"; fileName: string; fileUrl: string; avSyncMsec: number; }; video: { inputType: "RTSP_URL" | "CSw" | "CRS"; internalVapixParameters: string; userVapixParameters: string; streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH"; sourceUrl?: string | undefined; streamDelay?: { value: number; unit: "seconds" | "minutes" | "hours"; } | undefined; }; enabled: boolean; id: number; active: boolean; title: string; trigger: { type: "manual"; ioPort: string | null; } | { type: "onetime"; startTime: number; stopTime: number; } | { type: "recurrent"; schedule: { start: { day: number; timeS: number; }; stop: { day: number; timeS: number; }; isActive: boolean; }[]; }; }, { type: "microsoft_azure"; audio: { source: "none"; } | { source: "microphone"; audioChannelNbr: 1 | 2; } | { source: "file"; fileName: string; filePath: string; } | { source: "url"; fileName: string; fileUrl: string; avSyncMsec: number; }; video: { inputType: "RTSP_URL" | "CSw" | "CRS"; internalVapixParameters: string; userVapixParameters: string; streamingProtocol: "RTMP" | "RTMPS" | "HLS_PUSH"; sourceUrl?: string | undefined; streamDelay?: { value: number; unit: "seconds" | "minutes" | "hours"; } | undefined; }; enabled: boolean; id: number; active: boolean; title: string; trigger: { type: "manual"; ioPort: string | null; } | { type: "onetime"; startTime: number; stopTime: number; } | { type: "recurrent"; schedule: { start: { day: number; timeS: number; }; stop: { day: number; timeS: number; }; isActive: boolean; }[]; }; }>;