UNPKG

@sentzunhat/zacatl

Version:

A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.

29 lines 1.21 kB
import { z } from '../../third-party/zod.js'; export declare const commandSpecSchema: z.ZodObject<{ cmd: z.ZodString; args: z.ZodDefault<z.ZodArray<z.ZodString>>; cwd: z.ZodOptional<z.ZodString>; env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, z.core.$strip>; export type CommandSpec = z.infer<typeof commandSpecSchema>; export declare const runnerPolicySchema: z.ZodObject<{ timeoutMs: z.ZodDefault<z.ZodNumber>; maxOutputBytes: z.ZodDefault<z.ZodNumber>; maxConcurrency: z.ZodDefault<z.ZodNumber>; allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>; denyPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>; cwdPrefix: z.ZodOptional<z.ZodString>; inheritEnv: z.ZodDefault<z.ZodBoolean>; }, z.core.$strip>; export type RunnerPolicy = z.infer<typeof runnerPolicySchema>; export declare const commandResultSchema: z.ZodObject<{ cmd: z.ZodString; args: z.ZodArray<z.ZodString>; exitCode: z.ZodNullable<z.ZodNumber>; stdout: z.ZodString; stderr: z.ZodString; timedOut: z.ZodBoolean; durationMs: z.ZodNumber; }, z.core.$strip>; export type CommandResult = z.infer<typeof commandResultSchema>; //# sourceMappingURL=types.d.ts.map