UNPKG

mastra

Version:
24 lines 1.02 kB
export interface ResolveCurrentOrgOptions { /** * If true and the user belongs to multiple orgs, always show the picker * (with the persisted current org pre-selected) instead of silently * reusing the persisted choice. Useful for "create a new project"-style * flows where the user should consciously choose the target org. * * Ignored if MASTRA_ORG_ID is set or the user only belongs to one org. */ forcePrompt?: boolean; } /** * Resolve the current org, auto-selecting if only one exists. * If multiple orgs exist and none is currently set, prompts the user. * Pass `{ forcePrompt: true }` to always prompt when there's more than one * org, even if a current org is persisted. */ export declare function resolveCurrentOrg(token: string, opts?: ResolveCurrentOrgOptions): Promise<{ orgId: string; orgName: string; }>; export declare function listOrgsAction(): Promise<void>; export declare function switchOrgAction(): Promise<void>; //# sourceMappingURL=orgs.d.ts.map