trigger.dev
Version:
A Command-Line Interface for Trigger.dev projects
35 lines (34 loc) • 1.06 kB
TypeScript
import type { Command } from "commander";
import { z } from "zod";
type WhoAmIResult = {
success: true;
data: {
userId: string;
email: string;
dashboardUrl: string;
projectUrl?: string;
};
} | {
success: false;
error: string;
};
declare const WhoamiCommandOptions: z.ZodObject<{
apiUrl: z.ZodOptional<z.ZodString>;
logLevel: z.ZodDefault<z.ZodEnum<{
debug: "debug";
error: "error";
info: "info";
log: "log";
none: "none";
warn: "warn";
}>>;
skipTelemetry: z.ZodDefault<z.ZodBoolean>;
profile: z.ZodDefault<z.ZodString>;
config: z.ZodOptional<z.ZodString>;
projectRef: z.ZodOptional<z.ZodString>;
envFile: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
type WhoamiCommandOptions = z.infer<typeof WhoamiCommandOptions>;
export declare function configureWhoamiCommand(program: Command): Command;
export declare function whoAmI(options?: WhoamiCommandOptions, embedded?: boolean, silent?: boolean): Promise<WhoAmIResult>;
export {};