UNPKG

@capgo/cli

Version:
12 lines (11 loc) 600 B
import { createSupabaseClient } from '../utils'; export interface OrgResolverDeps { /** Injectable for tests; defaults to the real Supabase client factory. */ createClient?: typeof createSupabaseClient; } /** * Resolves an app's owner organization id (`apps.owner_org`), promise-cached * per `(apikey, appId)`. Returns undefined on any error — never throws. * Extracted so the analytics layer and onboarding analytics share one path. */ export declare function resolveOwnerOrgId(apikey: string, appId: string, deps?: OrgResolverDeps, signal?: AbortSignal): Promise<string | undefined>;