UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

64 lines (63 loc) • 3.3 kB
import { z } from "zod"; export declare const DEFFAULT_PROFILE = "default"; declare const PendingAuthorization: z.ZodObject<{ authorizationCode: z.ZodString; url: z.ZodString; apiUrl: z.ZodString; createdAt: z.ZodString; name: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type PendingAuthorization = z.infer<typeof PendingAuthorization>; declare const CliConfigProfileSettings: z.ZodObject<{ accessToken: z.ZodOptional<z.ZodString>; apiUrl: z.ZodOptional<z.ZodString>; pendingAuthorization: z.ZodOptional<z.ZodObject<{ authorizationCode: z.ZodString; url: z.ZodString; apiUrl: z.ZodString; createdAt: z.ZodString; name: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; pendingProfileName: 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>; pendingAuthorization: z.ZodOptional<z.ZodObject<{ authorizationCode: z.ZodString; url: z.ZodString; apiUrl: z.ZodString; createdAt: z.ZodString; name: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; pendingProfileName: 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 writePendingAuthorization(pendingAuthorization: PendingAuthorization, profile?: string): void; export declare function deletePendingAuthorization(profile?: string): void; export declare function writePendingProfileName(name: string, profile?: string): void; export declare function deletePendingProfileName(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 {};