UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

27 lines (26 loc) 813 B
import type { LoginResult, LoginResultOk } from "../utilities/session.js"; export type DeployAuthorization = LoginResultOk | { ok: true; profile: string; dashboardUrl: string; auth: { apiUrl: string; accessToken: string; tokenType: "apiKey"; }; }; type LoginForDeploy = (options: { embedded: true; defaultApiUrl: string; profile: string; silent: boolean; }) => Promise<LoginResult>; export declare function authenticateForDeploy({ accessToken, apiUrl, profile, silent, login, }: { accessToken?: string; apiUrl?: string; profile: string; silent: boolean; login: LoginForDeploy; }): Promise<LoginResult | DeployAuthorization>; export declare function userIdForDeploy(authorization: DeployAuthorization): string | undefined; export {};