camstreamerlib
Version:
Helper library for CamStreamer ACAP applications.
273 lines (272 loc) • 7.91 kB
TypeScript
import { z } from 'zod';
export declare const cameraStreamSchema: z.ZodObject<{
enabled: z.ZodString;
active: z.ZodString;
audioSource: z.ZodString;
avSyncMsec: z.ZodString;
internalVapixParameters: z.ZodString;
userVapixParameters: z.ZodString;
outputParameters: z.ZodString;
outputType: z.ZodString;
mediaServerUrl: z.ZodString;
inputType: z.ZodString;
inputUrl: z.ZodString;
forceStereo: z.ZodString;
streamDelay: z.ZodString;
statusLed: z.ZodString;
statusPort: z.ZodString;
callApi: z.ZodString;
trigger: z.ZodString;
schedule: z.ZodString;
prepareAhead: z.ZodString;
startTime: z.ZodString;
stopTime: z.ZodString;
}, "strip", z.ZodTypeAny, {
enabled: string;
schedule: string;
active: string;
audioSource: string;
avSyncMsec: string;
internalVapixParameters: string;
userVapixParameters: string;
outputParameters: string;
outputType: string;
mediaServerUrl: string;
inputType: string;
inputUrl: string;
forceStereo: string;
streamDelay: string;
statusLed: string;
statusPort: string;
callApi: string;
trigger: string;
prepareAhead: string;
startTime: string;
stopTime: string;
}, {
enabled: string;
schedule: string;
active: string;
audioSource: string;
avSyncMsec: string;
internalVapixParameters: string;
userVapixParameters: string;
outputParameters: string;
outputType: string;
mediaServerUrl: string;
inputType: string;
inputUrl: string;
forceStereo: string;
streamDelay: string;
statusLed: string;
statusPort: string;
callApi: string;
trigger: string;
prepareAhead: string;
startTime: string;
stopTime: string;
}>;
export type TCameraStream = z.infer<typeof cameraStreamSchema>;
export declare const streamSchema: z.ZodObject<{
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
active: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
audioSource: z.ZodString;
avSyncMsec: z.ZodNumber;
internalVapixParameters: z.ZodString;
userVapixParameters: z.ZodString;
outputParameters: z.ZodString;
outputType: z.ZodUnion<[z.ZodLiteral<"video">, z.ZodLiteral<"images">, z.ZodLiteral<"none">]>;
mediaServerUrl: z.ZodString;
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
inputUrl: z.ZodString;
forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
streamDelay: z.ZodNullable<z.ZodNumber>;
statusLed: z.ZodNumber;
statusPort: z.ZodString;
callApi: z.ZodNumber;
trigger: z.ZodString;
schedule: z.ZodString;
prepareAhead: z.ZodNumber;
startTime: z.ZodNullable<z.ZodNumber>;
stopTime: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
enabled: 0 | 1;
schedule: string;
active: 0 | 1;
audioSource: string;
avSyncMsec: number;
internalVapixParameters: string;
userVapixParameters: string;
outputParameters: string;
outputType: "video" | "none" | "images";
mediaServerUrl: string;
inputType: "RTSP_URL" | "CSw" | "CRS";
inputUrl: string;
forceStereo: 0 | 1;
streamDelay: number | null;
statusLed: number;
statusPort: string;
callApi: number;
trigger: string;
prepareAhead: number;
startTime: number | null;
stopTime: number | null;
}, {
enabled: 0 | 1;
schedule: string;
active: 0 | 1;
audioSource: string;
avSyncMsec: number;
internalVapixParameters: string;
userVapixParameters: string;
outputParameters: string;
outputType: "video" | "none" | "images";
mediaServerUrl: string;
inputType: "RTSP_URL" | "CSw" | "CRS";
inputUrl: string;
forceStereo: 0 | 1;
streamDelay: number | null;
statusLed: number;
statusPort: string;
callApi: number;
trigger: string;
prepareAhead: number;
startTime: number | null;
stopTime: number | null;
}>;
export type TStream = z.infer<typeof streamSchema>;
export declare const cameraStreamResponseSchema: z.ZodObject<{
data: z.ZodObject<{
enabled: z.ZodString;
active: z.ZodString;
audioSource: z.ZodString;
avSyncMsec: z.ZodString;
internalVapixParameters: z.ZodString;
userVapixParameters: z.ZodString;
outputParameters: z.ZodString;
outputType: z.ZodString;
mediaServerUrl: z.ZodString;
inputType: z.ZodString;
inputUrl: z.ZodString;
forceStereo: z.ZodString;
streamDelay: z.ZodString;
statusLed: z.ZodString;
statusPort: z.ZodString;
callApi: z.ZodString;
trigger: z.ZodString;
schedule: z.ZodString;
prepareAhead: z.ZodString;
startTime: z.ZodString;
stopTime: z.ZodString;
}, "strip", z.ZodTypeAny, {
enabled: string;
schedule: string;
active: string;
audioSource: string;
avSyncMsec: string;
internalVapixParameters: string;
userVapixParameters: string;
outputParameters: string;
outputType: string;
mediaServerUrl: string;
inputType: string;
inputUrl: string;
forceStereo: string;
streamDelay: string;
statusLed: string;
statusPort: string;
callApi: string;
trigger: string;
prepareAhead: string;
startTime: string;
stopTime: string;
}, {
enabled: string;
schedule: string;
active: string;
audioSource: string;
avSyncMsec: string;
internalVapixParameters: string;
userVapixParameters: string;
outputParameters: string;
outputType: string;
mediaServerUrl: string;
inputType: string;
inputUrl: string;
forceStereo: string;
streamDelay: string;
statusLed: string;
statusPort: string;
callApi: string;
trigger: string;
prepareAhead: string;
startTime: string;
stopTime: string;
}>;
code: z.ZodNumber;
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: number;
message: string;
data: {
enabled: string;
schedule: string;
active: string;
audioSource: string;
avSyncMsec: string;
internalVapixParameters: string;
userVapixParameters: string;
outputParameters: string;
outputType: string;
mediaServerUrl: string;
inputType: string;
inputUrl: string;
forceStereo: string;
streamDelay: string;
statusLed: string;
statusPort: string;
callApi: string;
trigger: string;
prepareAhead: string;
startTime: string;
stopTime: string;
};
}, {
code: number;
message: string;
data: {
enabled: string;
schedule: string;
active: string;
audioSource: string;
avSyncMsec: string;
internalVapixParameters: string;
userVapixParameters: string;
outputParameters: string;
outputType: string;
mediaServerUrl: string;
inputType: string;
inputUrl: string;
forceStereo: string;
streamDelay: string;
statusLed: string;
statusPort: string;
callApi: string;
trigger: string;
prepareAhead: string;
startTime: string;
stopTime: string;
};
}>;
export type TStreamCameraDataResponse = z.infer<typeof cameraStreamResponseSchema>;
export declare const camstreamerServerResponseSchema: z.ZodObject<{
code: z.ZodNumber;
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
code: number;
message: string;
}, {
code: number;
message: string;
}>;
export type TCamstreamerServerResponse = z.infer<typeof camstreamerServerResponseSchema>;