camstreamerlib
Version:
Helper library for CamStreamer ACAP applications.
175 lines (174 loc) • 4.9 kB
TypeScript
import { z } from 'zod';
export declare const successResponseSchema: z.ZodObject<{
Rsp: z.ZodObject<{
Status: z.ZodLiteral<"Ok">;
}, "strip", z.ZodTypeAny, {
Status: "Ok";
}, {
Status: "Ok";
}>;
}, "strip", z.ZodTypeAny, {
Rsp: {
Status: "Ok";
};
}, {
Rsp: {
Status: "Ok";
};
}>;
export declare const cameraGuidsResponseSchema: z.ZodObject<{
Rsp: z.ZodObject<{
Status: z.ZodLiteral<"Ok">;
Result: z.ZodArray<z.ZodObject<{
Guid: z.ZodString;
}, "strip", z.ZodTypeAny, {
Guid: string;
}, {
Guid: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
Status: "Ok";
Result: {
Guid: string;
}[];
}, {
Status: "Ok";
Result: {
Guid: string;
}[];
}>;
}, "strip", z.ZodTypeAny, {
Rsp: {
Status: "Ok";
Result: {
Guid: string;
}[];
};
}, {
Rsp: {
Status: "Ok";
Result: {
Guid: string;
}[];
};
}>;
export type TCameraGuidsResponse = z.infer<typeof cameraGuidsResponseSchema>;
export declare const cameraDetailSchema: z.ZodObject<{
Guid: z.ZodOptional<z.ZodString>;
Name: z.ZodOptional<z.ZodString>;
EntityType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}, {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}>;
export declare const cameraDetailsResponseSchema: z.ZodObject<{
Rsp: z.ZodObject<{
Status: z.ZodLiteral<"Ok">;
Result: z.ZodUnion<[z.ZodArray<z.ZodObject<{
Guid: z.ZodOptional<z.ZodString>;
Name: z.ZodOptional<z.ZodString>;
EntityType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}, {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}>, "many">, z.ZodObject<{
Guid: z.ZodOptional<z.ZodString>;
Name: z.ZodOptional<z.ZodString>;
EntityType: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}, {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}>]>;
}, "strip", z.ZodTypeAny, {
Status: "Ok";
Result: {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
} | {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}[];
}, {
Status: "Ok";
Result: {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
} | {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}[];
}>;
}, "strip", z.ZodTypeAny, {
Rsp: {
Status: "Ok";
Result: {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
} | {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}[];
};
}, {
Rsp: {
Status: "Ok";
Result: {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
} | {
Name?: string | undefined;
Guid?: string | undefined;
EntityType?: string | undefined;
}[];
};
}>;
export type TCameraDetailsResponse = z.infer<typeof cameraDetailsResponseSchema>;
export type TCameraDetail = z.infer<typeof cameraDetailSchema>;
export declare const cameraListSchema: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
value: z.ZodString;
label: z.ZodString;
}, "strip", z.ZodTypeAny, {
value: string;
index: number;
label: string;
}, {
value: string;
index: number;
label: string;
}>, "many">;
export type TCameraList = z.infer<typeof cameraListSchema>;
export type TParams = Array<'Guid' | 'Name' | 'EntityType'>;
export type TProtocol = 'http' | 'https' | 'https_insecure';
export type GenetecAgentOptions = {
protocol?: TProtocol;
ip?: string;
port?: number;
baseUri?: string;
user?: string;
pass?: string;
appId?: string;
timeout?: number;
};