import type { AutomationTokenInformation, AuthWorkflow, SSOTokenInformation } from '../interfaces'; import type { OAuthScope } from '../utils/config/cli-options'; import type { TokenType } from './definitions'; export type TokenFileContent = { toolkit_token?: AutomationTokenInformation | SSOTokenInformation; app_token?: AutomationTokenInformation | SSOTokenInformation; }; export type GetBearerTokenTypes = { tokenType: T; cwd: string; environmentUrl: string; tokenFilePath?: string; /** Open the auth url in the default browser */ openAuthUrl?: boolean; }; export interface TokenContext { currentAuthWorkflow: AuthWorkflow; tokenFilePath: string; environmentUrl: string; oauthUrl: () => Promise; oauthClientId: string; appScopes?: OAuthScope[]; tokenType: TokenType; currentTokenFileContent: TokenFileContent; tokenInformation: AutomationTokenInformation | SSOTokenInformation | undefined; openAuthUrl: boolean; }