UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

80 lines (79 loc) 3.52 kB
import { z } from "zod"; export declare const DEFFAULT_PROFILE = "default"; declare const CliConfigProfileSettings: z.ZodObject<{ accessToken: z.ZodOptional<z.ZodString>; apiUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { apiUrl?: string | undefined; accessToken?: string | undefined; }, { apiUrl?: string | undefined; accessToken?: string | undefined; }>; type CliConfigProfileSettings = z.infer<typeof CliConfigProfileSettings>; declare const CliConfigFile: z.ZodObject<{ version: z.ZodLiteral<2>; currentProfile: z.ZodDefault<z.ZodString>; profiles: z.ZodRecord<z.ZodString, z.ZodObject<{ accessToken: z.ZodOptional<z.ZodString>; apiUrl: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { apiUrl?: string | undefined; accessToken?: string | undefined; }, { apiUrl?: string | undefined; accessToken?: string | undefined; }>>; settings: z.ZodOptional<z.ZodObject<{ hasSeenMCPInstallPrompt: z.ZodOptional<z.ZodBoolean>; hasSeenRulesInstallPrompt: z.ZodOptional<z.ZodBoolean>; lastRulesInstallPromptVersion: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { hasSeenMCPInstallPrompt?: boolean | undefined; hasSeenRulesInstallPrompt?: boolean | undefined; lastRulesInstallPromptVersion?: string | undefined; }, { hasSeenMCPInstallPrompt?: boolean | undefined; hasSeenRulesInstallPrompt?: boolean | undefined; lastRulesInstallPromptVersion?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { version: 2; currentProfile: string; profiles: Record<string, { apiUrl?: string | undefined; accessToken?: string | undefined; }>; settings?: { hasSeenMCPInstallPrompt?: boolean | undefined; hasSeenRulesInstallPrompt?: boolean | undefined; lastRulesInstallPromptVersion?: string | undefined; } | undefined; }, { version: 2; profiles: Record<string, { apiUrl?: string | undefined; accessToken?: string | undefined; }>; currentProfile?: string | undefined; settings?: { hasSeenMCPInstallPrompt?: boolean | undefined; hasSeenRulesInstallPrompt?: boolean | undefined; lastRulesInstallPromptVersion?: string | undefined; } | undefined; }>; type CliConfigFile = z.infer<typeof CliConfigFile>; export declare function writeAuthConfigCurrentProfileName(profile: string): void; export declare function readAuthConfigCurrentProfileName(): string; export declare function writeAuthConfigProfile(settings: CliConfigProfileSettings, profile?: string): void; export declare function readAuthConfigProfile(profile?: string): CliConfigProfileSettings | undefined; export declare function readConfigHasSeenMCPInstallPrompt(): boolean; export declare function writeConfigHasSeenMCPInstallPrompt(hasSeenMCPInstallPrompt: boolean): void; export declare function readConfigHasSeenRulesInstallPrompt(): boolean; export declare function writeConfigHasSeenRulesInstallPrompt(hasSeenRulesInstallPrompt: boolean): void; export declare function readConfigLastRulesInstallPromptVersion(): string | undefined; export declare function writeConfigLastRulesInstallPromptVersion(version: string): void; export declare function deleteAuthConfigProfile(profile?: string): void; export declare function readAuthConfigFile(): CliConfigFile | null; export declare function writeAuthConfigFile(config: CliConfigFile): void; export {};