trigger.dev
Version:
A Command-Line Interface for Trigger.dev projects
36 lines (35 loc) • 2.02 kB
TypeScript
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>;
}, z.core.$strip>;
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>;
}, z.core.$strip>>;
settings: z.ZodOptional<z.ZodObject<{
hasSeenMCPInstallPrompt: z.ZodOptional<z.ZodBoolean>;
hasSeenRulesInstallPrompt: z.ZodOptional<z.ZodBoolean>;
lastRulesInstallPromptVersion: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
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 listAuthConfigProfiles(): string[];
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 {};