import { C as CorsairPermission } from './index-eydqYIn0.js'; type AllErrors = 'RATE_LIMIT_ERROR' | 'AUTH_ERROR' | 'PERMISSION_ERROR' | 'NETWORK_ERROR' | 'TIMEOUT_ERROR' | 'SERVER_ERROR' | 'VALIDATION_ERROR' | 'NOT_FOUND_ERROR' | 'BAD_REQUEST_ERROR' | 'PARSING_ERROR' | 'DEFAULT' | (string & {}); declare const BaseProviders: readonly ["agentql", "ahrefs", "airtable", "algolia", "amplitude", "asana", "bitwarden", "bluesky", "box", "cal", "calendly", "cloudflare", "confluence", "cursor", "datadog", "deepseek", "digitalocean", "discord", "dodopayments", "dropbox", "exa", "figma", "firecrawl", "fireflies", "gemini", "github", "gitlab", "gmail", "googlebigquery", "googlecalendar", "googledocs", "googledrive", "googlemeet", "googlesheets", "grafana", "hackernews", "heygen", "hubspot", "insightoai", "instagram", "intercom", "jira", "linear", "linkedin", "mailchimp", "monday", "neon", "notion", "ollama", "onedrive", "onepassword", "openai", "openweathermap", "oura", "outlook", "pagerduty", "perplexityai", "posthog", "razorpay", "reddit", "resend", "retailed", "sentry", "sharepoint", "slack", "spotify", "strava", "stripe", "supabase", "tally", "tavily", "teams", "telegram", "todoist", "trello", "twilio", "twitter", "twitterapiio", "typeform", "vapi", "whatsapp", "vercel", "xquik", "youtube", "zendesk", "zohomail", "zoom"]; declare const ProviderDisplayNames: { readonly agentql: "AgentQL"; readonly ahrefs: "Ahrefs"; readonly airtable: "Airtable"; readonly algolia: "Algolia"; readonly amplitude: "Amplitude"; readonly asana: "Asana"; readonly bitwarden: "Bitwarden"; readonly bluesky: "Bluesky"; readonly box: "Box"; readonly cal: "Cal"; readonly calendly: "Calendly"; readonly cloudflare: "Cloudflare"; readonly confluence: "Confluence"; readonly cursor: "Cursor"; readonly datadog: "Datadog"; readonly deepseek: "DeepSeek"; readonly digitalocean: "DigitalOcean"; readonly discord: "Discord"; readonly dodopayments: "Dodo Payments"; readonly dropbox: "Dropbox"; readonly exa: "Exa"; readonly figma: "Figma"; readonly firecrawl: "Firecrawl"; readonly fireflies: "Fireflies"; readonly gemini: "Gemini"; readonly github: "GitHub"; readonly gitlab: "GitLab"; readonly gmail: "Gmail"; readonly googlebigquery: "Google BigQuery"; readonly googlecalendar: "Google Calendar"; readonly googledocs: "Google Docs"; readonly googledrive: "Google Drive"; readonly googlemeet: "Google Meet"; readonly googlesheets: "Google Sheets"; readonly grafana: "Grafana"; readonly hackernews: "Hacker News"; readonly heygen: "HeyGen"; readonly hubspot: "HubSpot"; readonly insightoai: "Insighto.ai"; readonly instagram: "Instagram"; readonly intercom: "Intercom"; readonly jira: "Jira"; readonly linear: "Linear"; readonly linkedin: "LinkedIn"; readonly mailchimp: "Mailchimp"; readonly monday: "Monday"; readonly neon: "Neon"; readonly notion: "Notion"; readonly ollama: "Ollama"; readonly onedrive: "OneDrive"; readonly onepassword: "1Password"; readonly openai: "OpenAI"; readonly openweathermap: "OpenWeatherMap"; readonly oura: "Oura"; readonly outlook: "Outlook"; readonly pagerduty: "PagerDuty"; readonly perplexityai: "Perplexity AI"; readonly posthog: "PostHog"; readonly razorpay: "Razorpay"; readonly reddit: "Reddit"; readonly resend: "Resend"; readonly retailed: "Retailed"; readonly sentry: "Sentry"; readonly sharepoint: "SharePoint"; readonly slack: "Slack"; readonly spotify: "Spotify"; readonly strava: "Strava"; readonly stripe: "Stripe"; readonly supabase: "Supabase"; readonly tally: "Tally"; readonly tavily: "Tavily"; readonly teams: "Teams"; readonly telegram: "Telegram"; readonly todoist: "Todoist"; readonly trello: "Trello"; readonly twilio: "Twilio"; readonly twitter: "Twitter"; readonly twitterapiio: "Twitter API IO"; readonly typeform: "Typeform"; readonly vapi: "Vapi"; readonly whatsapp: "WhatsApp"; readonly vercel: "Vercel"; readonly xquik: "XQuik"; readonly youtube: "YouTube"; readonly zendesk: "Zendesk"; readonly zohomail: "Zoho Mail"; readonly zoom: "Zoom"; }; declare function formatProviderDisplayName(plugin: string): string; type AllProviders = 'agentql' | 'ahrefs' | 'airtable' | 'algolia' | 'amplitude' | 'asana' | 'bitwarden' | 'bluesky' | 'box' | 'cal' | 'calendly' | 'cloudflare' | 'confluence' | 'cursor' | 'datadog' | 'deepseek' | 'digitalocean' | 'discord' | 'dodopayments' | 'dropbox' | 'exa' | 'figma' | 'firecrawl' | 'fireflies' | 'gemini' | 'github' | 'gitlab' | 'gmail' | 'googlebigquery' | 'googlecalendar' | 'googledocs' | 'googledrive' | 'googlemeet' | 'googlesheets' | 'grafana' | 'hackernews' | 'heygen' | 'hubspot' | 'insightoai' | 'instagram' | 'intercom' | 'jira' | 'linear' | 'linkedin' | 'mailchimp' | 'monday' | 'neon' | 'notion' | 'ollama' | 'onedrive' | 'onepassword' | 'openai' | 'openweathermap' | 'oura' | 'outlook' | 'pagerduty' | 'perplexityai' | 'posthog' | 'razorpay' | 'reddit' | 'resend' | 'retailed' | 'sentry' | 'sharepoint' | 'slack' | 'spotify' | 'strava' | 'stripe' | 'supabase' | 'tally' | 'tavily' | 'teams' | 'telegram' | 'todoist' | 'trello' | 'twilio' | 'twitter' | 'twitterapiio' | 'typeform' | 'vapi' | 'whatsapp' | 'vercel' | 'xquik' | 'youtube' | 'zendesk' | 'zohomail' | 'zoom' | (string & {}); type AuthTypes = 'oauth_2' | 'api_key' | 'bot_token' | 'managed'; type PickAuth = T; type Tenant = { id: string; accounts: Array<{ integrationName: string; hasCredentials: boolean; }>; connectedPlugins: string[]; }; type CreateTenantInput = { id: string; }; type PluginInfo = { id: string; authType: AuthTypes | null; configured: boolean; missingFields: string[]; oauth: { providerName: string; scopes: string[]; requiresRegisteredRedirect: boolean; } | null; }; type PluginConnectionState = 'connected' | 'missing_credentials' | 'not_connected'; type ConnectionStatus = Record; type ManagementOk = { ok: true; }; type PermissionRecord = CorsairPermission & { /** Resolved review URL for pending/approved records. Null when not actionable or not configured. */ approvalUrl: string | null; }; type PermissionLookupInput = { id: string; } | { token: string; }; type CreateConnectLinkInput = { /** Required in manual mode. Optional in hub mode (omit to connect all plugins). */ plugin?: string; tenantId?: string; /** Hub mode only — BYO uses your OAuth app; managed uses Corsair's. */ oauthMode?: 'byo' | 'managed'; /** Hub mode only — override the provider display name. */ providerName?: string; }; type ConnectLink = { connectUrl: string; expiresAt?: string; }; type ResolvedConnectLink = { plugin: string; tenantId: string; providerName: string; oauthUrl: string; state: string; }; type OAuthCallbackInput = { code: string; state: string; }; type OAuthCallbackResult = { plugin: string; tenantId: string; }; export { type AuthTypes as A, BaseProviders as B, type CreateTenantInput as C, type ManagementOk as M, type OAuthCallbackResult as O, type PluginInfo as P, type ResolvedConnectLink as R, type Tenant as T, type ConnectionStatus as a, type PermissionRecord as b, type ConnectLink as c, type CreateConnectLinkInput as d, type OAuthCallbackInput as e, type PermissionLookupInput as f, type AllProviders as g, type PickAuth as h, formatProviderDisplayName as i, ProviderDisplayNames as j, type PluginConnectionState as k, type AllErrors as l };