UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

50 lines (49 loc) 2.02 kB
import { z } from 'zod'; export declare const audioChannelSchema: z.ZodUnion<[z.ZodLiteral<"mono">, z.ZodLiteral<"stereo">]>; export type TAudioChannel = z.infer<typeof audioChannelSchema>; export declare const audioChannelCountSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>; export type TAudioChannelCount = z.infer<typeof audioChannelCountSchema>; export declare const h264ProfileSchema: z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>; export type TH264Profile = z.infer<typeof h264ProfileSchema>; export declare const flashStorageTypeSchema: z.ZodLiteral<"FLASH">; export declare const sdCardStorageTypeSchema: z.ZodLiteral<"SD_DISK">; export declare const storageTypeSchema: z.ZodUnion<[z.ZodLiteral<"SD_DISK">, z.ZodLiteral<"FLASH">]>; export type TStorageType = z.infer<typeof storageTypeSchema>; export declare const networkCameraListSchema: z.ZodArray<z.ZodObject<{ name: z.ZodString; ip: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; ip: string; }, { name: string; ip: string; }>, "many">; export type TNetworkCameraList = z.infer<typeof networkCameraListSchema>; export type TNetworkCamera = z.infer<typeof networkCameraListSchema>[number]; export declare const keyboardShortcutSchema: z.ZodNullable<z.ZodString>; export declare const keyboardShortcutsSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>; export type TKeyboardShortcut = z.infer<typeof keyboardShortcutSchema>; export type TKeyboardShortcuts = z.infer<typeof keyboardShortcutsSchema>; export type TProxyTarget = { ip: string; mdnsName: string; port: number; user: string; pass: string; }; export type TProxyParams = { path: string; target: TProxyTarget; }; export type THttpRequestOptions = { timeout?: number; proxyParams?: TProxyParams; }; export type TCameraImageConfig = { camera?: string; resolution?: string; compression?: number; overlays?: string; [key: string]: string | number | undefined; };