UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

18 lines (17 loc) 573 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fileListSchema = exports.fileSchema = exports.storageSchema = void 0; const zod_1 = require("zod"); exports.storageSchema = zod_1.z.union([ zod_1.z.literal('flash'), zod_1.z.literal('SD0'), zod_1.z.literal('ftp'), zod_1.z.literal('samba'), zod_1.z.literal('url'), ]); exports.fileSchema = zod_1.z.object({ name: zod_1.z.string(), path: zod_1.z.string().url(), storage: exports.storageSchema, }); exports.fileListSchema = zod_1.z.array(exports.fileSchema);