media-exporter-processor
Version:
Media processing API with thumbnail generation and cloud storage
101 lines • 6.94 kB
TypeScript
import * as v from "valibot";
export declare const VideoQuerySchema: v.ObjectSchema<{
readonly lat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, "37.7749">;
readonly lon: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, "-122.4194">;
readonly alt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, undefined>;
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
readonly prefix: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
}, undefined>;
export declare const ImageQuerySchema: v.ObjectSchema<{
readonly lat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, "37.7749">;
readonly lon: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, "-122.4194">;
readonly alt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, undefined>;
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
readonly prefix: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
}, undefined>;
export declare const VideoQueryWithFileKeySchema: v.ObjectSchema<{
readonly lat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, "37.7749">;
readonly lon: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, "-122.4194">;
readonly alt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, undefined>;
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
readonly prefix: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
readonly fileKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
}, undefined>;
export declare const ImageQueryWithFileKeySchema: v.ObjectSchema<{
readonly lat: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, "37.7749">;
readonly lon: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, "-122.4194">;
readonly alt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.NumberSchema<undefined>]>, undefined>;
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
readonly prefix: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
readonly fileKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
}, undefined>;
export declare const EnvSchema: v.ObjectSchema<{
readonly AUTH_TOKEN: v.StringSchema<"AUTH_TOKEN environment variable is required">;
readonly R2_ACCESS_KEY_ID: v.StringSchema<"R2_ACCESS_KEY_ID environment variable is required">;
readonly R2_SECRET_ACCESS_KEY: v.StringSchema<"R2_SECRET_ACCESS_KEY environment variable is required">;
readonly R2_ENDPOINT: v.StringSchema<"R2_ENDPOINT environment variable is required">;
readonly R2_BUCKET: v.StringSchema<"R2_BUCKET environment variable is required">;
readonly R2_REGION: v.OptionalSchema<v.StringSchema<undefined>, "auto">;
}, undefined>;
export declare const ThumbnailResponseSchema: v.ObjectSchema<{
readonly size: v.NumberSchema<undefined>;
readonly url: v.StringSchema<undefined>;
readonly key: v.StringSchema<undefined>;
}, undefined>;
export declare const VideoProcessingResponseSchema: v.ObjectSchema<{
readonly success: v.BooleanSchema<undefined>;
readonly message: v.StringSchema<undefined>;
readonly video: v.ObjectSchema<{
readonly url: v.StringSchema<undefined>;
readonly key: v.StringSchema<undefined>;
readonly size: v.NumberSchema<undefined>;
readonly duration: v.NumberSchema<undefined>;
}, undefined>;
readonly thumbnails: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
readonly size: v.NumberSchema<undefined>;
readonly url: v.StringSchema<undefined>;
readonly key: v.StringSchema<undefined>;
}, undefined>, undefined>;
readonly metadata: v.ObjectSchema<{
readonly latitude: v.NumberSchema<undefined>;
readonly longitude: v.NumberSchema<undefined>;
readonly altitude: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
readonly creationDate: v.StringSchema<undefined>;
readonly originalFilename: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
}, undefined>;
}, undefined>;
export declare const ImageProcessingResponseSchema: v.ObjectSchema<{
readonly success: v.BooleanSchema<undefined>;
readonly message: v.StringSchema<undefined>;
readonly image: v.ObjectSchema<{
readonly url: v.StringSchema<undefined>;
readonly key: v.StringSchema<undefined>;
readonly size: v.NumberSchema<undefined>;
}, undefined>;
readonly thumbnails: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
readonly size: v.NumberSchema<undefined>;
readonly url: v.StringSchema<undefined>;
readonly key: v.StringSchema<undefined>;
}, undefined>, undefined>;
readonly metadata: v.ObjectSchema<{
readonly latitude: v.NumberSchema<undefined>;
readonly longitude: v.NumberSchema<undefined>;
readonly altitude: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
readonly creationDate: v.StringSchema<undefined>;
readonly originalFilename: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
}, undefined>;
}, undefined>;
export declare const ErrorResponseSchema: v.ObjectSchema<{
readonly success: v.LiteralSchema<false, undefined>;
readonly error: v.StringSchema<undefined>;
readonly message: v.StringSchema<undefined>;
}, undefined>;
export type VideoQuery = v.InferOutput<typeof VideoQuerySchema>;
export type ImageQuery = v.InferOutput<typeof ImageQuerySchema>;
export type VideoQueryWithFileKey = v.InferOutput<typeof VideoQueryWithFileKeySchema>;
export type ImageQueryWithFileKey = v.InferOutput<typeof ImageQueryWithFileKeySchema>;
export type EnvConfig = v.InferOutput<typeof EnvSchema>;
export type VideoProcessingResponse = v.InferOutput<typeof VideoProcessingResponseSchema>;
export type ImageProcessingResponse = v.InferOutput<typeof ImageProcessingResponseSchema>;
export type ErrorResponse = v.InferOutput<typeof ErrorResponseSchema>;
//# sourceMappingURL=VideoSchemas.d.ts.map