UNPKG

casualos

Version:
40 lines 1.19 kB
import type { Command } from 'commander'; import type { CliConfig } from './config'; import { z } from 'zod'; export declare function setupInfraCommands(program: Command, config: CliConfig): void; export interface InfraMetadata { id: string; name: string; } declare const INFRA_CONFIG_SCHEMA: z.ZodObject<{ githubToken: z.ZodNullable<z.ZodOptional<z.ZodObject<{ token: z.ZodString; refreshToken: z.ZodNullable<z.ZodOptional<z.ZodString>>; expiresAt: z.ZodDate; }, "strip", z.ZodTypeAny, { token?: string; refreshToken?: string; expiresAt?: Date; }, { token?: string; refreshToken?: string; expiresAt?: Date; }>>>; }, "strip", z.ZodTypeAny, { githubToken?: { token?: string; refreshToken?: string; expiresAt?: Date; }; }, { githubToken?: { token?: string; refreshToken?: string; expiresAt?: Date; }; }>; export type InfraConfig = z.infer<typeof INFRA_CONFIG_SCHEMA>; export declare function getRepoPath(name: string): string; export declare function getLoginPath(name: string): string; export {}; //# sourceMappingURL=infra.d.ts.map