corsair 0.1.211 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,10 @@
1
1
  import { ZodTypeAny } from 'zod';
2
- import { CorsairDatabase, CorsairPermission, CorsairDatabaseInput, CorsairDbTables } from './db.js';
2
+ import { CorsairKyselyDatabase, CorsairDatabase, CorsairPermission, CorsairDatabaseInput, CorsairDbTables } from './db.js';
3
3
  import { CorsairPluginSchema, PluginEntityClients } from './orm.js';
4
+ import { Selectable } from 'kysely';
4
5
 
5
6
  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 & {});
6
- declare const BaseProviders: readonly ["ably", "abstract", "abuseipdb", "abyssale", "accrediblecertificates", "activecampaign", "activetrail", "addresszen", "adyntel", "aeroleads", "affinda", "agencyzoom", "agentmail", "agentql", "agenty", "agiled", "agilitycms", "ahrefs", "aimlapi", "airtable", "aivoov", "akta", "alchemy", "algolia", "alibaba", "allimagesai", "alphavantage", "altoviz", "alttextai", "amara", "ambee", "ambientweather", "amcards", "amplitude", "anchorbrowser", "anonyflow", "anthropicadministrator", "anyapi", "apaleo", "api2pdf", "apibible", "apify", "apilabz", "apininjas", "apipie", "apisports", "apollo", "appointo", "aryn", "asana", "ascora", "ashby", "asindataapi", "asticaai", "asyncinterview", "attio", "autom", "ayrshare", "backendless", "bannerbear", "bart", "basecamp", "baselinker", "basin", "beaconstac", "beamer", "beeminder", "benchmarkemail", "benzinga", "bestbuy", "bettercontact", "betterproposals", "betterstack", "bigdatacloud", "bigmailer", "bigml", "bigpictureio", "bitbucket", "bitwarden", "blackbaud", "blazemeter", "blocknative", "bluesky", "boldsign", "boloforms", "boltiot", "bonsai", "bookingmood", "booqable", "borneo", "botbaba", "botpress", "botsonic", "bouncer", "box", "boxhero", "brandfetch", "breathehr", "brevo", "brex", "brightdata", "browseai", "browserless", "browsertool", "browseruse", "bubble", "bugsnag", "buildkite", "builtwith", "bunnycdn", "bytedance", "byteforms", "cal", "calendly", "callingly", "callpage", "campaigncleaner", "campayn", "canny", "canva", "canvas", "capsulecrm", "carbone", "castingwords", "cdrplatform", "celigo", "certifier", "certspotter", "chaser", "chatbotkit", "chatfai", "chatwork", "chmeetings", "cincopa", "circleci", "claidai", "classmarker", "clay", "clickhouse", "clickmeeting", "clicksend", "clickup", "clientary", "clockify", "cloro", "close", "cloudcart", "cloudconvert", "cloudflare", "cloudflareapikey", "cloudflarebrowserrendering", "cloudinary", "cloudlayer", "coassemble", "coda", "codacy", "codeinterpreter", "codereadr", "cody", "coinbase", "coinmarketcal", "coinmarketcap", "collegefootballdata", "commcare", "companyenrich", "composio", "confluence", "connecteam", "contactout", "contentfulgraphql", "contextdev", "contextsevenmcp", "conversiontools", "convex", "convoloai", "cosmic", "countdownapi", "craftmypdf", "crowterminal", "currencyscoop", "currentsapi", "cursor", "customerio", "customgpt", "customjs", "cuttly", "d2lbrightspace", "dadataru", "daffy", "databox", "databricks", "datadog", "dataforseo", "datarobot", "deepseek", "demio", "deployhq", "desktime", "devinmcp", "dialpad", "diffbot", "digicert", "digitalocean", "discord", "dnsfilter", "dockerhub", "docmosis", "docsbotai", "docsumo", "documenso", "docupost", "docusign", "dodopayments", "doppler", "dopplermarketingautomation", "dovetail", "draftable", "dreamstudio", "dripcel", "dropbox", "dropboxsign", "dropcontact", "dynapictures", "e2b", "echtpost", "ecologi", "elevenlabs", "elorus", "emailoctopus", "emelia", "encodian", "endorsal", "enginemailer", "enigma", "epicgames", "esignatures", "erpnext", "esputnik", "etermin", "eventbrite", "eventee", "eventzilla", "everhour", "exa", "excel", "exist", "extractaai", "facebook", "fal", "faraday", "fathom", "felt", "fibery", "fidel", "figma", "filevine", "filloutforms", "finage", "findymail", "finerworks", "finmei", "fireberry", "firecrawl", "fireflies", "fixer", "flexisign", "flutterwave", "fluxguard", "fly", "folk", "followupboss", "fomo", "forcemanager", "formbricks", "formdesk", "foursquare", "freeagent", "freshdesk", "fundable", "gagelist", "gamma", "gatherup", "gemini", "genderapi", "genderapiio", "genderize", "geoapify", "geocodio", "geokeo", "getprospect", "giftup", "gigasheet", "giphy", "github", "gitlab", "givebutter", "gladia", "gleap", "globalping", "gmail", "gmicloud", "godial", "gong", "googleaddressvalidation", "googleanalytics", "googlebigquery", "googlecalendar", "googleclassroom", "googlecloudvision", "googledocs", "googledrive", "googlemaps", "googlemeet", "googlesheets", "googleslides", "googletasks", "gorgias", "gosquared", "grafana", "griptape", "grist", "groqcloud", "gumroad", "habitica", "hackernews", "handwrytten", "happyscribe", "harvest", "hashnode", "helpscout", "helpwise", "here", "hex", "heygen", "heyy", "higgsfield", "honeyhive", "hookdeck", "htmltoimage", "hubplanner", "hubspot", "huggingface", "humanitix", "hunterio", "hyperbrowser", "ignisign", "imagekit", "imagior", "imejisio", "imgbb", "imgix", "inboxkit", "insightoai", "instagram", "instantly", "intercom", "ip2proxy", "ip2whois", "jigsawstack", "jira", "jobnimbus", "jotform", "junglescout", "kadoa", "kaggle", "kalshi", "kanbanize", "keen", "keenable", "keyword", "kibana", "kickbox", "kit", "klaviyo", "klazify", "kling", "klipfolio", "knack", "kofi", "kommo", "kontentai", "krakenio", "labs64netlicensing", "launchdarkly", "leexi", "leiga", "lemonsqueezy", "lever", "linear", "linguapop", "linkedin", "litescrape", "livesession", "logodev", "loyverse", "magichour", "mailboxlayer", "mailcheck", "mailchimp", "mailsso", "mailtrap", "make", "mapbox", "marketstack", "melo", "mem0", "memberstack", "memberspot", "merriamwebsterdict", "minerstat", "minimax", "miro", "missive", "mistralai", "mixmax", "modelry", "monday", "mondaymcp", "moonclerk", "motion", "mrscraper", "nanonets", "neon", "netsuite", "neverbounce", "newsapi", "nextdns", "northflank", "notion", "nutshell", "ocrspace", "ocrwebservice", "octen", "ollama", "onedesk", "onedrive", "onepassword", "openai", "opengraph", "openrouter", "opensea", "openweathermap", "orbit", "oura", "outlook", "pagerduty", "parallel", "parma", "parsehub", "parseur", "pdfapi", "pdfco", "pdfless", "pdfmonkey", "pdl", "perplexityai", "phantombuster", "pinecone", "pipedrive", "placid", "plain", "platerecognizer", "ploid", "pointagram", "polygon", "polygonio", "postalytics", "postgrid", "postiz", "postmark", "prerender", "prismic", "proabono", "posthog", "postman", "prisma", "proofly", "pushbullet", "pushover", "qdrant", "quaderno", "radar", "ragic", "raisely", "ramp", "razorpay", "realphonevalidation", "reamaze", "recallai", "recruitee", "redcircle", "reddit", "reducto", "referralrock", "refiner", "remarkety", "remoet", "remoteretrieval", "removebg", "render", "renderform", "rentman", "repairshopr", "replicate", "replyio", "resend", "respondio", "retailed", "retellai", "retently", "revai", "revolt", "ritekit", "roam", "roboflow", "rocketlane", "rocketreach", "rollbar", "rootly", "rosette", "route4me", "rudderstacktransform", "runpod", "salesflare", "salesforce", "sanity", "saperly", "sapsuccessfactors", "satismeter", "scaleai", "scrapedo", "scrapegraphai", "scrapingant", "screenshotone", "search1api", "searchapi", "securitytrails", "semanticscholar", "sendbird", "sendgrid", "sensibo", "sentry", "serpapi", "serply", "servicem8", "servicenow", "sevdesk", "sharepoint", "shipengine", "shippo", "shopify", "shortcut", "shortio", "signpath", "signwell", "similarweb", "simlacom", "simpleanalytics", "simplekpi", "simplero", "simplesat", "slack", "slackbot", "smsalert", "snapchat", "snowflake", "sourcegraph", "splitwise", "spoki", "spotlightr", "spotify", "square", "stackai", "stackexchange", "starton", "strava", "streamtime", "stripe", "storyblok", "studiobyai21labs", "suitedash", "superchat", "supersaas", "supabase", "supadata", "supportbee", "surf", "surveymonkey", "swaggerhub", "suzanne", "svix", "sympla", "synthflowai", "taggun", "talenthr", "tapfiliate", "tally", "tave", "telnyx", "teltel", "thanksio", "tavily", "taxjar", "tavilymcp", "templated", "textcortex", "teamcamp", "teams", "teamwork", "telegram", "textit", "textrazor", "thinkific", "ticketmaster", "ticktick", "tikhub", "timecamp", "timelink", "timely", "tinyfish", "tinypng", "tinyurl", "tisane", "tldv", "todoist", "tomba", "tomtom", "toggl", "tokenmetrics", "toneden", "tpscheck", "trello", "triggercmd", "tripadvisor", "trustpilot", "truvera", "turbotpipes", "turso", "twelvedata", "twentyonerisk", "twilio", "twitter", "twitterapiio", "twocaptcha", "twochat", "typeform", "typesafe", "u301", "unione", "unipile", "unisender", "uniswapapi", "updownio", "uploadcare", "uptimerobot", "userflow", "userlist", "vapi", "vaquill", "vectorshift", "vercel", "veriphone", "vestaboard", "virustotal", "waboxapp", "wachete", "waiverfile", "wakatime", "wati", "webex", "webflow", "webscraperio", "webscrapingai", "webvizio", "whatsapp", "whautomate", "whoisfreaks", "winstonai", "witai", "wix", "wiza", "woodpeckerco", "workable", "workday", "workiom", "worksnaps", "worldnewsapi", "wrike", "writer", "xero", "xquik", "yandex", "ynab", "youcom", "youtube", "zendesk", "zenrows", "zenserp", "zohobigin", "zohodesk", "zohoinventory", "zohomail", "zoom", "zoominfo"];
7
+ declare const BaseProviders: readonly ["ably", "abstract", "abuseipdb", "abyssale", "accrediblecertificates", "activecampaign", "activetrail", "addresszen", "adyntel", "aeroleads", "affinda", "agencyzoom", "agentmail", "agentql", "agenty", "agiled", "agilitycms", "ahrefs", "aimlapi", "airtable", "aivoov", "akta", "alchemy", "algolia", "alibaba", "allimagesai", "alphavantage", "altoviz", "alttextai", "amara", "ambee", "ambientweather", "amcards", "amplitude", "anchorbrowser", "anonyflow", "anthropicadministrator", "anyapi", "apaleo", "api2pdf", "apibible", "apify", "apilabz", "apininjas", "apipie", "apisports", "apollo", "appointo", "aryn", "asana", "ascora", "ashby", "asindataapi", "asticaai", "asyncinterview", "attio", "autom", "ayrshare", "backendless", "bannerbear", "bart", "basecamp", "baselinker", "basin", "beaconstac", "beamer", "beeminder", "benchmarkemail", "benzinga", "bestbuy", "bettercontact", "betterproposals", "betterstack", "bigdatacloud", "bigmailer", "bigml", "bigpictureio", "bitbucket", "bitwarden", "blackbaud", "blazemeter", "blocknative", "bluesky", "boldsign", "boloforms", "boltiot", "bonsai", "bookingmood", "booqable", "borneo", "botbaba", "botpress", "botsonic", "bouncer", "box", "boxhero", "brandfetch", "breathehr", "brevo", "brex", "brightdata", "browseai", "browserless", "browsertool", "browseruse", "bubble", "bugsnag", "buildkite", "builtwith", "bunnycdn", "bytedance", "byteforms", "cal", "calendly", "callingly", "callpage", "campaigncleaner", "campayn", "canny", "canva", "canvas", "capsulecrm", "carbone", "castingwords", "cdrplatform", "celigo", "certifier", "certspotter", "chaser", "chatbotkit", "chatfai", "chatwork", "chmeetings", "cincopa", "circleci", "claidai", "classmarker", "clay", "clickhouse", "clickmeeting", "clicksend", "clickup", "clientary", "clockify", "cloro", "close", "cloudcart", "cloudconvert", "cloudflare", "cloudflareapikey", "cloudflarebrowserrendering", "cloudinary", "cloudlayer", "coassemble", "coda", "codacy", "codeinterpreter", "codereadr", "cody", "coinbase", "coinmarketcal", "coinmarketcap", "collegefootballdata", "commcare", "companyenrich", "composio", "confluence", "connecteam", "contactout", "contentfulgraphql", "contextdev", "contextsevenmcp", "conversiontools", "convex", "convoloai", "cosmic", "countdownapi", "craftmypdf", "crowterminal", "currencyscoop", "currentsapi", "cursor", "customerio", "customgpt", "customjs", "cuttly", "d2lbrightspace", "dadataru", "daffy", "databox", "databricks", "datadog", "dataforseo", "datarobot", "deepline", "deepseek", "demio", "deployhq", "desktime", "devinmcp", "dialpad", "diffbot", "digicert", "digitalocean", "discord", "dnsfilter", "dockerhub", "docmosis", "docsbotai", "docsumo", "documenso", "docupost", "docusign", "dodopayments", "doppler", "dopplermarketingautomation", "dovetail", "draftable", "dreamstudio", "dripcel", "dropbox", "dropboxsign", "dropcontact", "dynapictures", "e2b", "echtpost", "ecologi", "elevenlabs", "elorus", "emailoctopus", "emelia", "encodian", "endorsal", "enginemailer", "enigma", "epicgames", "esignatures", "erpnext", "esputnik", "etermin", "eventbrite", "eventee", "eventzilla", "everhour", "exa", "excel", "exist", "extractaai", "facebook", "fal", "faraday", "fathom", "felt", "fibery", "fidel", "figma", "filevine", "filloutforms", "finage", "findymail", "finerworks", "finmei", "fireberry", "firecrawl", "fireflies", "fixer", "flexisign", "flutterwave", "fluxguard", "fly", "folk", "followupboss", "fomo", "forcemanager", "formbricks", "formdesk", "foursquare", "freeagent", "freshdesk", "fundable", "gagelist", "gamma", "gatherup", "gemini", "genderapi", "genderapiio", "genderize", "geoapify", "geocodio", "geokeo", "getprospect", "giftup", "gigasheet", "giphy", "github", "gitlab", "givebutter", "gladia", "gleap", "globalping", "gmail", "gmicloud", "godial", "gong", "googleaddressvalidation", "googleanalytics", "googlebigquery", "googlecalendar", "googleclassroom", "googlecloudvision", "googledocs", "googledrive", "googlemaps", "googlemeet", "googlesheets", "googleslides", "googletasks", "gorgias", "gosquared", "grafana", "griptape", "grist", "groqcloud", "gumroad", "habitica", "hackernews", "handwrytten", "happyscribe", "harvest", "hashnode", "helpscout", "helpwise", "here", "hex", "heygen", "heyy", "higgsfield", "honeyhive", "hookdeck", "htmltoimage", "hubplanner", "hubspot", "huggingface", "humanitix", "hunterio", "hyperbrowser", "ignisign", "imagekit", "imagior", "imejisio", "imgbb", "imgix", "inboxkit", "insightoai", "instagram", "instantly", "intercom", "ip2proxy", "ip2whois", "jigsawstack", "jira", "jobnimbus", "jotform", "junglescout", "kadoa", "kaggle", "kalshi", "kanbanize", "keen", "keenable", "keyword", "kibana", "kickbox", "kit", "klaviyo", "klazify", "kling", "klipfolio", "knack", "kofi", "kommo", "kontentai", "krakenio", "labs64netlicensing", "launchdarkly", "leexi", "leiga", "lemonsqueezy", "lever", "linear", "linguapop", "linkedin", "litescrape", "livesession", "logodev", "loyverse", "magichour", "mailboxlayer", "mailcheck", "mailchimp", "mailsso", "mailtrap", "make", "mapbox", "marketstack", "melo", "mem0", "memberstack", "memberspot", "merriamwebsterdict", "minerstat", "minimax", "miro", "missive", "mistralai", "mixmax", "modelry", "monday", "mondaymcp", "moonclerk", "motion", "mrscraper", "nanonets", "neon", "netsuite", "neverbounce", "newsapi", "nextdns", "northflank", "notion", "nutshell", "ocrspace", "ocrwebservice", "octen", "ollama", "onedesk", "onedrive", "onepassword", "openai", "opengraph", "openrouter", "opensea", "openweathermap", "orbit", "oura", "outlook", "pagerduty", "parallel", "parma", "parsehub", "parseur", "pdfapi", "pdfco", "pdfless", "pdfmonkey", "pdl", "perplexityai", "phantombuster", "pinecone", "pipedrive", "placid", "plain", "platerecognizer", "ploid", "pointagram", "polygon", "polygonio", "postalytics", "postgrid", "postiz", "postmark", "prerender", "prismic", "proabono", "posthog", "postman", "prisma", "proofly", "pushbullet", "pushover", "qdrant", "quaderno", "radar", "ragic", "raisely", "ramp", "razorpay", "realphonevalidation", "reamaze", "recallai", "recruitee", "redcircle", "reddit", "reducto", "referralrock", "refiner", "remarkety", "remoet", "remoteretrieval", "removebg", "render", "renderform", "rentman", "repairshopr", "replicate", "replyio", "resend", "respondio", "retailed", "retellai", "retently", "revai", "revolt", "ritekit", "roam", "roboflow", "rocketlane", "rocketreach", "rollbar", "rootly", "rosette", "route4me", "rudderstacktransform", "runpod", "salesflare", "salesforce", "sanity", "saperly", "sapsuccessfactors", "satismeter", "scaleai", "scrapedo", "scrapegraphai", "scrapingant", "screenshotone", "search1api", "searchapi", "securitytrails", "semanticscholar", "sendbird", "sendgrid", "sensibo", "sentry", "serpapi", "serply", "servicem8", "servicenow", "sevdesk", "sharepoint", "shipengine", "shippo", "shopify", "shortcut", "shortio", "signpath", "signwell", "similarweb", "simlacom", "simpleanalytics", "simplekpi", "simplero", "simplesat", "slack", "slackbot", "smsalert", "snapchat", "snowflake", "sourcegraph", "splitwise", "spoki", "spotlightr", "spotify", "square", "stackai", "stackexchange", "starton", "strava", "streamtime", "stripe", "storyblok", "studiobyai21labs", "suitedash", "superchat", "supersaas", "supabase", "supadata", "supportbee", "surf", "surveymonkey", "swaggerhub", "suzanne", "svix", "sympla", "synthflowai", "taggun", "talenthr", "tapfiliate", "tally", "tave", "telnyx", "teltel", "thanksio", "tavily", "taxjar", "tavilymcp", "templated", "textcortex", "teamcamp", "teams", "teamwork", "telegram", "textit", "textrazor", "thinkific", "ticketmaster", "ticktick", "tikhub", "timecamp", "timelink", "timely", "tinyfish", "tinypng", "tinyurl", "tisane", "tldv", "todoist", "tomba", "tomtom", "toggl", "tokenmetrics", "toneden", "tpscheck", "trello", "triggercmd", "tripadvisor", "trustpilot", "truvera", "turbotpipes", "turso", "twelvedata", "twentyonerisk", "twilio", "twitter", "twitterapiio", "twocaptcha", "twochat", "typeform", "typesafe", "u301", "unione", "unipile", "unisender", "uniswapapi", "updownio", "uploadcare", "uptimerobot", "userflow", "userlist", "vapi", "vaquill", "vectorshift", "vercel", "veriphone", "vestaboard", "virustotal", "waboxapp", "wachete", "waiverfile", "wakatime", "wati", "webex", "webflow", "webscraperio", "webscrapingai", "webvizio", "whatsapp", "whautomate", "whoisfreaks", "winstonai", "witai", "wix", "wiza", "woodpeckerco", "workable", "workday", "workiom", "worksnaps", "worldnewsapi", "wrike", "writer", "xero", "xquik", "yandex", "ynab", "youcom", "youtube", "zendesk", "zenrows", "zenserp", "zohobigin", "zohodesk", "zohoinventory", "zohomail", "zoom", "zoominfo"];
7
8
  declare const ProviderDisplayNames: {
8
9
  readonly ably: "Ably";
9
10
  readonly abstract: "Abstract";
@@ -199,6 +200,7 @@ declare const ProviderDisplayNames: {
199
200
  readonly datadog: "Datadog";
200
201
  readonly dataforseo: "DataForSEO";
201
202
  readonly datarobot: "DataRobot";
203
+ readonly deepline: "Deepline";
202
204
  readonly deepseek: "DeepSeek";
203
205
  readonly demio: "Demio";
204
206
  readonly deployhq: "DeployHQ";
@@ -711,7 +713,7 @@ declare const ProviderDisplayNames: {
711
713
  readonly zoominfo: "ZoomInfo";
712
714
  };
713
715
  declare function formatProviderDisplayName(plugin: string): string;
714
- type AllProviders = 'ably' | 'abstract' | 'abuseipdb' | 'abyssale' | 'accrediblecertificates' | 'activecampaign' | 'activetrail' | 'addresszen' | 'adyntel' | 'aeroleads' | 'affinda' | 'agencyzoom' | 'agentmail' | 'agentql' | 'agenty' | 'agiled' | 'agilitycms' | 'ahrefs' | 'aimlapi' | 'airtable' | 'aivoov' | 'akta' | 'alchemy' | 'algolia' | 'alibaba' | 'allimagesai' | 'alphavantage' | 'altoviz' | 'alttextai' | 'amara' | 'ambee' | 'ambientweather' | 'amcards' | 'amplitude' | 'anchorbrowser' | 'anonyflow' | 'anthropicadministrator' | 'anyapi' | 'apaleo' | 'api2pdf' | 'apibible' | 'apify' | 'apilabz' | 'apininjas' | 'apipie' | 'apisports' | 'apollo' | 'appointo' | 'aryn' | 'asana' | 'ascora' | 'ashby' | 'asindataapi' | 'asticaai' | 'asyncinterview' | 'attio' | 'autom' | 'ayrshare' | 'backendless' | 'bannerbear' | 'bart' | 'basecamp' | 'baselinker' | 'basin' | 'beaconstac' | 'beamer' | 'beeminder' | 'benchmarkemail' | 'benzinga' | 'bestbuy' | 'bettercontact' | 'betterproposals' | 'betterstack' | 'bigdatacloud' | 'bigmailer' | 'bigml' | 'bigpictureio' | 'bitbucket' | 'bitwarden' | 'blackbaud' | 'blazemeter' | 'blocknative' | 'bluesky' | 'boldsign' | 'boloforms' | 'boltiot' | 'bonsai' | 'bookingmood' | 'booqable' | 'borneo' | 'botbaba' | 'botpress' | 'botsonic' | 'bouncer' | 'box' | 'boxhero' | 'brandfetch' | 'breathehr' | 'brevo' | 'brex' | 'brightdata' | 'browseai' | 'browserless' | 'browsertool' | 'browseruse' | 'bubble' | 'bugsnag' | 'buildkite' | 'builtwith' | 'bunnycdn' | 'bytedance' | 'byteforms' | 'cal' | 'calendly' | 'callingly' | 'callpage' | 'campaigncleaner' | 'campayn' | 'canny' | 'canva' | 'canvas' | 'capsulecrm' | 'carbone' | 'castingwords' | 'cdrplatform' | 'celigo' | 'certifier' | 'certspotter' | 'chaser' | 'chatbotkit' | 'chatfai' | 'chatwork' | 'chmeetings' | 'cincopa' | 'circleci' | 'claidai' | 'classmarker' | 'clay' | 'clickhouse' | 'clickmeeting' | 'clicksend' | 'clickup' | 'clientary' | 'clockify' | 'cloro' | 'close' | 'cloudcart' | 'cloudconvert' | 'cloudflare' | 'cloudflareapikey' | 'cloudflarebrowserrendering' | 'cloudinary' | 'cloudlayer' | 'coassemble' | 'coda' | 'codacy' | 'codeinterpreter' | 'codereadr' | 'cody' | 'coinbase' | 'coinmarketcal' | 'coinmarketcap' | 'collegefootballdata' | 'commcare' | 'companyenrich' | 'composio' | 'confluence' | 'connecteam' | 'contactout' | 'contentfulgraphql' | 'contextdev' | 'contextsevenmcp' | 'conversiontools' | 'convex' | 'convoloai' | 'cosmic' | 'countdownapi' | 'craftmypdf' | 'crowterminal' | 'currencyscoop' | 'currentsapi' | 'cursor' | 'customerio' | 'customgpt' | 'customjs' | 'cuttly' | 'd2lbrightspace' | 'dadataru' | 'daffy' | 'databox' | 'databricks' | 'datadog' | 'dataforseo' | 'datarobot' | 'deepseek' | 'demio' | 'deployhq' | 'desktime' | 'devinmcp' | 'dialpad' | 'diffbot' | 'digicert' | 'digitalocean' | 'discord' | 'dnsfilter' | 'dockerhub' | 'docmosis' | 'docsbotai' | 'docsumo' | 'documenso' | 'docupost' | 'docusign' | 'dodopayments' | 'doppler' | 'dopplermarketingautomation' | 'dovetail' | 'draftable' | 'dreamstudio' | 'dripcel' | 'dropbox' | 'dropboxsign' | 'dropcontact' | 'dynapictures' | 'e2b' | 'echtpost' | 'ecologi' | 'elevenlabs' | 'elorus' | 'emailoctopus' | 'emelia' | 'encodian' | 'endorsal' | 'enginemailer' | 'enigma' | 'epicgames' | 'esignatures' | 'erpnext' | 'esputnik' | 'etermin' | 'eventbrite' | 'eventee' | 'eventzilla' | 'everhour' | 'exa' | 'excel' | 'exist' | 'extractaai' | 'facebook' | 'fal' | 'faraday' | 'fathom' | 'felt' | 'fibery' | 'fidel' | 'figma' | 'filevine' | 'filloutforms' | 'finage' | 'findymail' | 'finerworks' | 'finmei' | 'fireberry' | 'firecrawl' | 'fireflies' | 'fixer' | 'flexisign' | 'flutterwave' | 'fluxguard' | 'fly' | 'folk' | 'followupboss' | 'fomo' | 'forcemanager' | 'formbricks' | 'formdesk' | 'foursquare' | 'freeagent' | 'freshdesk' | 'fundable' | 'gagelist' | 'gamma' | 'gatherup' | 'gemini' | 'genderapi' | 'genderapiio' | 'genderize' | 'geoapify' | 'geocodio' | 'geokeo' | 'getprospect' | 'giftup' | 'gigasheet' | 'giphy' | 'github' | 'gitlab' | 'givebutter' | 'gladia' | 'gleap' | 'globalping' | 'gmail' | 'gmicloud' | 'godial' | 'gong' | 'googleaddressvalidation' | 'googleanalytics' | 'googlebigquery' | 'googlecalendar' | 'googleclassroom' | 'googlecloudvision' | 'googledocs' | 'googledrive' | 'googlemaps' | 'googlemeet' | 'googlesheets' | 'googleslides' | 'googletasks' | 'gorgias' | 'gosquared' | 'grafana' | 'griptape' | 'grist' | 'groqcloud' | 'gumroad' | 'habitica' | 'hackernews' | 'handwrytten' | 'happyscribe' | 'harvest' | 'hashnode' | 'helpscout' | 'helpwise' | 'here' | 'hex' | 'heygen' | 'heyy' | 'higgsfield' | 'honeyhive' | 'hookdeck' | 'htmltoimage' | 'hubplanner' | 'hubspot' | 'huggingface' | 'humanitix' | 'hunterio' | 'hyperbrowser' | 'ignisign' | 'imagekit' | 'imagior' | 'imejisio' | 'imgbb' | 'imgix' | 'inboxkit' | 'insightoai' | 'instagram' | 'instantly' | 'intercom' | 'ip2proxy' | 'ip2whois' | 'jigsawstack' | 'jira' | 'jobnimbus' | 'jotform' | 'junglescout' | 'kadoa' | 'kaggle' | 'kalshi' | 'kanbanize' | 'keen' | 'keenable' | 'keyword' | 'kibana' | 'kickbox' | 'kit' | 'klaviyo' | 'klazify' | 'kling' | 'klipfolio' | 'knack' | 'kofi' | 'kommo' | 'kontentai' | 'krakenio' | 'labs64netlicensing' | 'launchdarkly' | 'leexi' | 'leiga' | 'lemonsqueezy' | 'lever' | 'linear' | 'linguapop' | 'linkedin' | 'litescrape' | 'livesession' | 'logodev' | 'loyverse' | 'magichour' | 'mailboxlayer' | 'mailcheck' | 'mailchimp' | 'mailsso' | 'mailtrap' | 'make' | 'mapbox' | 'marketstack' | 'melo' | 'mem0' | 'memberstack' | 'memberspot' | 'merriamwebsterdict' | 'minerstat' | 'minimax' | 'miro' | 'missive' | 'mistralai' | 'mixmax' | 'modelry' | 'monday' | 'mondaymcp' | 'moonclerk' | 'motion' | 'mrscraper' | 'nanonets' | 'neon' | 'netsuite' | 'neverbounce' | 'newsapi' | 'nextdns' | 'northflank' | 'notion' | 'nutshell' | 'ocrspace' | 'ocrwebservice' | 'octen' | 'ollama' | 'onedesk' | 'onedrive' | 'onepassword' | 'openai' | 'opengraph' | 'openrouter' | 'opensea' | 'openweathermap' | 'orbit' | 'oura' | 'outlook' | 'pagerduty' | 'parallel' | 'parma' | 'parsehub' | 'parseur' | 'pdfapi' | 'pdfco' | 'pdfless' | 'pdfmonkey' | 'pdl' | 'perplexityai' | 'phantombuster' | 'pinecone' | 'pipedrive' | 'placid' | 'plain' | 'platerecognizer' | 'ploid' | 'pointagram' | 'polygon' | 'polygonio' | 'postalytics' | 'postgrid' | 'postiz' | 'postmark' | 'prerender' | 'prismic' | 'proabono' | 'posthog' | 'postman' | 'prisma' | 'proofly' | 'pushbullet' | 'pushover' | 'qdrant' | 'quaderno' | 'radar' | 'ragic' | 'raisely' | 'ramp' | 'razorpay' | 'realphonevalidation' | 'reamaze' | 'recallai' | 'recruitee' | 'redcircle' | 'reddit' | 'reducto' | 'referralrock' | 'refiner' | 'remarkety' | 'remoet' | 'remoteretrieval' | 'removebg' | 'render' | 'renderform' | 'rentman' | 'repairshopr' | 'replicate' | 'replyio' | 'resend' | 'respondio' | 'retailed' | 'retellai' | 'retently' | 'revai' | 'revolt' | 'ritekit' | 'roam' | 'roboflow' | 'rocketlane' | 'rocketreach' | 'rollbar' | 'rootly' | 'rosette' | 'route4me' | 'rudderstacktransform' | 'runpod' | 'salesflare' | 'salesforce' | 'sanity' | 'saperly' | 'sapsuccessfactors' | 'satismeter' | 'scaleai' | 'scrapedo' | 'scrapegraphai' | 'scrapingant' | 'screenshotone' | 'search1api' | 'searchapi' | 'securitytrails' | 'semanticscholar' | 'sendbird' | 'sendgrid' | 'sensibo' | 'sentry' | 'serpapi' | 'serply' | 'servicem8' | 'servicenow' | 'sevdesk' | 'sharepoint' | 'shipengine' | 'shippo' | 'shopify' | 'shortcut' | 'shortio' | 'signpath' | 'signwell' | 'similarweb' | 'simlacom' | 'simpleanalytics' | 'simplekpi' | 'simplero' | 'simplesat' | 'slack' | 'slackbot' | 'smsalert' | 'snapchat' | 'snowflake' | 'sourcegraph' | 'splitwise' | 'spoki' | 'spotlightr' | 'spotify' | 'square' | 'stackai' | 'stackexchange' | 'starton' | 'strava' | 'streamtime' | 'stripe' | 'storyblok' | 'studiobyai21labs' | 'suitedash' | 'superchat' | 'supersaas' | 'supabase' | 'supadata' | 'supportbee' | 'surf' | 'surveymonkey' | 'swaggerhub' | 'suzanne' | 'svix' | 'sympla' | 'synthflowai' | 'taggun' | 'talenthr' | 'tapfiliate' | 'tally' | 'tave' | 'telnyx' | 'teltel' | 'thanksio' | 'tavily' | 'taxjar' | 'tavilymcp' | 'templated' | 'textcortex' | 'teamcamp' | 'teams' | 'teamwork' | 'telegram' | 'textit' | 'textrazor' | 'thinkific' | 'ticketmaster' | 'ticktick' | 'tikhub' | 'timecamp' | 'timelink' | 'timely' | 'tinyfish' | 'tinypng' | 'tinyurl' | 'tisane' | 'tldv' | 'todoist' | 'tomba' | 'tomtom' | 'toggl' | 'tokenmetrics' | 'toneden' | 'tpscheck' | 'trello' | 'triggercmd' | 'tripadvisor' | 'trustpilot' | 'truvera' | 'turbotpipes' | 'turso' | 'twelvedata' | 'twentyonerisk' | 'twilio' | 'twitter' | 'twitterapiio' | 'twocaptcha' | 'twochat' | 'typeform' | 'typesafe' | 'u301' | 'unione' | 'unipile' | 'unisender' | 'uniswapapi' | 'updownio' | 'uploadcare' | 'uptimerobot' | 'userflow' | 'userlist' | 'vapi' | 'vaquill' | 'vectorshift' | 'vercel' | 'veriphone' | 'vestaboard' | 'virustotal' | 'waboxapp' | 'wachete' | 'waiverfile' | 'wakatime' | 'wati' | 'webex' | 'webflow' | 'webscraperio' | 'webscrapingai' | 'webvizio' | 'whatsapp' | 'whautomate' | 'whoisfreaks' | 'winstonai' | 'witai' | 'wix' | 'wiza' | 'woodpeckerco' | 'workable' | 'workday' | 'workiom' | 'worksnaps' | 'worldnewsapi' | 'wrike' | 'writer' | 'xero' | 'xquik' | 'yandex' | 'ynab' | 'youcom' | 'youtube' | 'zendesk' | 'zenrows' | 'zenserp' | 'zohobigin' | 'zohodesk' | 'zohoinventory' | 'zohomail' | 'zoom' | 'zoominfo' | (string & {});
716
+ type AllProviders = 'ably' | 'abstract' | 'abuseipdb' | 'abyssale' | 'accrediblecertificates' | 'activecampaign' | 'activetrail' | 'addresszen' | 'adyntel' | 'aeroleads' | 'affinda' | 'agencyzoom' | 'agentmail' | 'agentql' | 'agenty' | 'agiled' | 'agilitycms' | 'ahrefs' | 'aimlapi' | 'airtable' | 'aivoov' | 'akta' | 'alchemy' | 'algolia' | 'alibaba' | 'allimagesai' | 'alphavantage' | 'altoviz' | 'alttextai' | 'amara' | 'ambee' | 'ambientweather' | 'amcards' | 'amplitude' | 'anchorbrowser' | 'anonyflow' | 'anthropicadministrator' | 'anyapi' | 'apaleo' | 'api2pdf' | 'apibible' | 'apify' | 'apilabz' | 'apininjas' | 'apipie' | 'apisports' | 'apollo' | 'appointo' | 'aryn' | 'asana' | 'ascora' | 'ashby' | 'asindataapi' | 'asticaai' | 'asyncinterview' | 'attio' | 'autom' | 'ayrshare' | 'backendless' | 'bannerbear' | 'bart' | 'basecamp' | 'baselinker' | 'basin' | 'beaconstac' | 'beamer' | 'beeminder' | 'benchmarkemail' | 'benzinga' | 'bestbuy' | 'bettercontact' | 'betterproposals' | 'betterstack' | 'bigdatacloud' | 'bigmailer' | 'bigml' | 'bigpictureio' | 'bitbucket' | 'bitwarden' | 'blackbaud' | 'blazemeter' | 'blocknative' | 'bluesky' | 'boldsign' | 'boloforms' | 'boltiot' | 'bonsai' | 'bookingmood' | 'booqable' | 'borneo' | 'botbaba' | 'botpress' | 'botsonic' | 'bouncer' | 'box' | 'boxhero' | 'brandfetch' | 'breathehr' | 'brevo' | 'brex' | 'brightdata' | 'browseai' | 'browserless' | 'browsertool' | 'browseruse' | 'bubble' | 'bugsnag' | 'buildkite' | 'builtwith' | 'bunnycdn' | 'bytedance' | 'byteforms' | 'cal' | 'calendly' | 'callingly' | 'callpage' | 'campaigncleaner' | 'campayn' | 'canny' | 'canva' | 'canvas' | 'capsulecrm' | 'carbone' | 'castingwords' | 'cdrplatform' | 'celigo' | 'certifier' | 'certspotter' | 'chaser' | 'chatbotkit' | 'chatfai' | 'chatwork' | 'chmeetings' | 'cincopa' | 'circleci' | 'claidai' | 'classmarker' | 'clay' | 'clickhouse' | 'clickmeeting' | 'clicksend' | 'clickup' | 'clientary' | 'clockify' | 'cloro' | 'close' | 'cloudcart' | 'cloudconvert' | 'cloudflare' | 'cloudflareapikey' | 'cloudflarebrowserrendering' | 'cloudinary' | 'cloudlayer' | 'coassemble' | 'coda' | 'codacy' | 'codeinterpreter' | 'codereadr' | 'cody' | 'coinbase' | 'coinmarketcal' | 'coinmarketcap' | 'collegefootballdata' | 'commcare' | 'companyenrich' | 'composio' | 'confluence' | 'connecteam' | 'contactout' | 'contentfulgraphql' | 'contextdev' | 'contextsevenmcp' | 'conversiontools' | 'convex' | 'convoloai' | 'cosmic' | 'countdownapi' | 'craftmypdf' | 'crowterminal' | 'currencyscoop' | 'currentsapi' | 'cursor' | 'customerio' | 'customgpt' | 'customjs' | 'cuttly' | 'd2lbrightspace' | 'dadataru' | 'daffy' | 'databox' | 'databricks' | 'datadog' | 'dataforseo' | 'datarobot' | 'deepline' | 'deepseek' | 'demio' | 'deployhq' | 'desktime' | 'devinmcp' | 'dialpad' | 'diffbot' | 'digicert' | 'digitalocean' | 'discord' | 'dnsfilter' | 'dockerhub' | 'docmosis' | 'docsbotai' | 'docsumo' | 'documenso' | 'docupost' | 'docusign' | 'dodopayments' | 'doppler' | 'dopplermarketingautomation' | 'dovetail' | 'draftable' | 'dreamstudio' | 'dripcel' | 'dropbox' | 'dropboxsign' | 'dropcontact' | 'dynapictures' | 'e2b' | 'echtpost' | 'ecologi' | 'elevenlabs' | 'elorus' | 'emailoctopus' | 'emelia' | 'encodian' | 'endorsal' | 'enginemailer' | 'enigma' | 'epicgames' | 'esignatures' | 'erpnext' | 'esputnik' | 'etermin' | 'eventbrite' | 'eventee' | 'eventzilla' | 'everhour' | 'exa' | 'excel' | 'exist' | 'extractaai' | 'facebook' | 'fal' | 'faraday' | 'fathom' | 'felt' | 'fibery' | 'fidel' | 'figma' | 'filevine' | 'filloutforms' | 'finage' | 'findymail' | 'finerworks' | 'finmei' | 'fireberry' | 'firecrawl' | 'fireflies' | 'fixer' | 'flexisign' | 'flutterwave' | 'fluxguard' | 'fly' | 'folk' | 'followupboss' | 'fomo' | 'forcemanager' | 'formbricks' | 'formdesk' | 'foursquare' | 'freeagent' | 'freshdesk' | 'fundable' | 'gagelist' | 'gamma' | 'gatherup' | 'gemini' | 'genderapi' | 'genderapiio' | 'genderize' | 'geoapify' | 'geocodio' | 'geokeo' | 'getprospect' | 'giftup' | 'gigasheet' | 'giphy' | 'github' | 'gitlab' | 'givebutter' | 'gladia' | 'gleap' | 'globalping' | 'gmail' | 'gmicloud' | 'godial' | 'gong' | 'googleaddressvalidation' | 'googleanalytics' | 'googlebigquery' | 'googlecalendar' | 'googleclassroom' | 'googlecloudvision' | 'googledocs' | 'googledrive' | 'googlemaps' | 'googlemeet' | 'googlesheets' | 'googleslides' | 'googletasks' | 'gorgias' | 'gosquared' | 'grafana' | 'griptape' | 'grist' | 'groqcloud' | 'gumroad' | 'habitica' | 'hackernews' | 'handwrytten' | 'happyscribe' | 'harvest' | 'hashnode' | 'helpscout' | 'helpwise' | 'here' | 'hex' | 'heygen' | 'heyy' | 'higgsfield' | 'honeyhive' | 'hookdeck' | 'htmltoimage' | 'hubplanner' | 'hubspot' | 'huggingface' | 'humanitix' | 'hunterio' | 'hyperbrowser' | 'ignisign' | 'imagekit' | 'imagior' | 'imejisio' | 'imgbb' | 'imgix' | 'inboxkit' | 'insightoai' | 'instagram' | 'instantly' | 'intercom' | 'ip2proxy' | 'ip2whois' | 'jigsawstack' | 'jira' | 'jobnimbus' | 'jotform' | 'junglescout' | 'kadoa' | 'kaggle' | 'kalshi' | 'kanbanize' | 'keen' | 'keenable' | 'keyword' | 'kibana' | 'kickbox' | 'kit' | 'klaviyo' | 'klazify' | 'kling' | 'klipfolio' | 'knack' | 'kofi' | 'kommo' | 'kontentai' | 'krakenio' | 'labs64netlicensing' | 'launchdarkly' | 'leexi' | 'leiga' | 'lemonsqueezy' | 'lever' | 'linear' | 'linguapop' | 'linkedin' | 'litescrape' | 'livesession' | 'logodev' | 'loyverse' | 'magichour' | 'mailboxlayer' | 'mailcheck' | 'mailchimp' | 'mailsso' | 'mailtrap' | 'make' | 'mapbox' | 'marketstack' | 'melo' | 'mem0' | 'memberstack' | 'memberspot' | 'merriamwebsterdict' | 'minerstat' | 'minimax' | 'miro' | 'missive' | 'mistralai' | 'mixmax' | 'modelry' | 'monday' | 'mondaymcp' | 'moonclerk' | 'motion' | 'mrscraper' | 'nanonets' | 'neon' | 'netsuite' | 'neverbounce' | 'newsapi' | 'nextdns' | 'northflank' | 'notion' | 'nutshell' | 'ocrspace' | 'ocrwebservice' | 'octen' | 'ollama' | 'onedesk' | 'onedrive' | 'onepassword' | 'openai' | 'opengraph' | 'openrouter' | 'opensea' | 'openweathermap' | 'orbit' | 'oura' | 'outlook' | 'pagerduty' | 'parallel' | 'parma' | 'parsehub' | 'parseur' | 'pdfapi' | 'pdfco' | 'pdfless' | 'pdfmonkey' | 'pdl' | 'perplexityai' | 'phantombuster' | 'pinecone' | 'pipedrive' | 'placid' | 'plain' | 'platerecognizer' | 'ploid' | 'pointagram' | 'polygon' | 'polygonio' | 'postalytics' | 'postgrid' | 'postiz' | 'postmark' | 'prerender' | 'prismic' | 'proabono' | 'posthog' | 'postman' | 'prisma' | 'proofly' | 'pushbullet' | 'pushover' | 'qdrant' | 'quaderno' | 'radar' | 'ragic' | 'raisely' | 'ramp' | 'razorpay' | 'realphonevalidation' | 'reamaze' | 'recallai' | 'recruitee' | 'redcircle' | 'reddit' | 'reducto' | 'referralrock' | 'refiner' | 'remarkety' | 'remoet' | 'remoteretrieval' | 'removebg' | 'render' | 'renderform' | 'rentman' | 'repairshopr' | 'replicate' | 'replyio' | 'resend' | 'respondio' | 'retailed' | 'retellai' | 'retently' | 'revai' | 'revolt' | 'ritekit' | 'roam' | 'roboflow' | 'rocketlane' | 'rocketreach' | 'rollbar' | 'rootly' | 'rosette' | 'route4me' | 'rudderstacktransform' | 'runpod' | 'salesflare' | 'salesforce' | 'sanity' | 'saperly' | 'sapsuccessfactors' | 'satismeter' | 'scaleai' | 'scrapedo' | 'scrapegraphai' | 'scrapingant' | 'screenshotone' | 'search1api' | 'searchapi' | 'securitytrails' | 'semanticscholar' | 'sendbird' | 'sendgrid' | 'sensibo' | 'sentry' | 'serpapi' | 'serply' | 'servicem8' | 'servicenow' | 'sevdesk' | 'sharepoint' | 'shipengine' | 'shippo' | 'shopify' | 'shortcut' | 'shortio' | 'signpath' | 'signwell' | 'similarweb' | 'simlacom' | 'simpleanalytics' | 'simplekpi' | 'simplero' | 'simplesat' | 'slack' | 'slackbot' | 'smsalert' | 'snapchat' | 'snowflake' | 'sourcegraph' | 'splitwise' | 'spoki' | 'spotlightr' | 'spotify' | 'square' | 'stackai' | 'stackexchange' | 'starton' | 'strava' | 'streamtime' | 'stripe' | 'storyblok' | 'studiobyai21labs' | 'suitedash' | 'superchat' | 'supersaas' | 'supabase' | 'supadata' | 'supportbee' | 'surf' | 'surveymonkey' | 'swaggerhub' | 'suzanne' | 'svix' | 'sympla' | 'synthflowai' | 'taggun' | 'talenthr' | 'tapfiliate' | 'tally' | 'tave' | 'telnyx' | 'teltel' | 'thanksio' | 'tavily' | 'taxjar' | 'tavilymcp' | 'templated' | 'textcortex' | 'teamcamp' | 'teams' | 'teamwork' | 'telegram' | 'textit' | 'textrazor' | 'thinkific' | 'ticketmaster' | 'ticktick' | 'tikhub' | 'timecamp' | 'timelink' | 'timely' | 'tinyfish' | 'tinypng' | 'tinyurl' | 'tisane' | 'tldv' | 'todoist' | 'tomba' | 'tomtom' | 'toggl' | 'tokenmetrics' | 'toneden' | 'tpscheck' | 'trello' | 'triggercmd' | 'tripadvisor' | 'trustpilot' | 'truvera' | 'turbotpipes' | 'turso' | 'twelvedata' | 'twentyonerisk' | 'twilio' | 'twitter' | 'twitterapiio' | 'twocaptcha' | 'twochat' | 'typeform' | 'typesafe' | 'u301' | 'unione' | 'unipile' | 'unisender' | 'uniswapapi' | 'updownio' | 'uploadcare' | 'uptimerobot' | 'userflow' | 'userlist' | 'vapi' | 'vaquill' | 'vectorshift' | 'vercel' | 'veriphone' | 'vestaboard' | 'virustotal' | 'waboxapp' | 'wachete' | 'waiverfile' | 'wakatime' | 'wati' | 'webex' | 'webflow' | 'webscraperio' | 'webscrapingai' | 'webvizio' | 'whatsapp' | 'whautomate' | 'whoisfreaks' | 'winstonai' | 'witai' | 'wix' | 'wiza' | 'woodpeckerco' | 'workable' | 'workday' | 'workiom' | 'worksnaps' | 'worldnewsapi' | 'wrike' | 'writer' | 'xero' | 'xquik' | 'yandex' | 'ynab' | 'youcom' | 'youtube' | 'zendesk' | 'zenrows' | 'zenserp' | 'zohobigin' | 'zohodesk' | 'zohoinventory' | 'zohomail' | 'zoom' | 'zoominfo' | (string & {});
715
717
  type AuthTypes = 'oauth_2' | 'api_key' | 'bot_token' | 'managed' | 'managed_pricing';
716
718
  type PickAuth<T extends AuthTypes> = T;
717
719
 
@@ -755,6 +757,8 @@ type HubConfigInput = {
755
757
  * to Hub. Leave unset elsewhere.
756
758
  */
757
759
  runtimeProofKey?: string;
760
+ /** Set from `createCorsair({ multiAccount })`; gates the capability header. */
761
+ multiAccount?: boolean;
758
762
  };
759
763
  /**
760
764
  * Overrides for Corsair's self-hosted frp auto-tunnel. The frpc binary ships
@@ -783,6 +787,7 @@ type HubConfig = {
783
787
  * to Hub. Leave unset elsewhere.
784
788
  */
785
789
  runtimeProofKey?: string;
790
+ multiAccount?: boolean;
786
791
  };
787
792
  type HubConnectSessionInput = {
788
793
  /** When omitted, the connect link covers all configured plugins. */
@@ -977,7 +982,14 @@ type IntegrationKeyManagerFor<T extends AuthTypes, Config extends PluginAuthConf
977
982
  * @template T - The auth type
978
983
  * @template Config - Optional plugin auth config for extension fields
979
984
  */
980
- type AccountKeyManagerFor<T extends AuthTypes, Config extends PluginAuthConfig | undefined = undefined> = BaseKeyManager & AllFieldAccessors<AccountFieldNames<T, Config>> & (T extends 'oauth_2' ? {
985
+ type AccountKeyManagerFor<T extends AuthTypes, Config extends PluginAuthConfig | undefined = undefined> = BaseKeyManager & {
986
+ /**
987
+ * Runs `run` once for concurrent callers with the same name on this account,
988
+ * however each caller reached it. Optional: key managers built outside the
989
+ * SDK need not have it.
990
+ */
991
+ single_flight?: <R>(name: string, run: () => Promise<R>) => Promise<R>;
992
+ } & AllFieldAccessors<AccountFieldNames<T, Config>> & (T extends 'oauth_2' ? {
981
993
  /**
982
994
  * Get the integration-level OAuth2 credentials (client_id, client_secret, redirect_url).
983
995
  * Useful for token refresh flows that need access to both account and integration secrets.
@@ -985,6 +997,25 @@ type AccountKeyManagerFor<T extends AuthTypes, Config extends PluginAuthConfig |
985
997
  get_integration_credentials: () => Promise<OAuth2IntegrationCredentials>;
986
998
  } : {});
987
999
 
1000
+ type AccountConfig = Selectable<CorsairKyselyDatabase['corsair_accounts']>['config'];
1001
+ type Account = {
1002
+ id: string;
1003
+ ref?: string;
1004
+ label?: string;
1005
+ config: AccountConfig;
1006
+ dek: string | null;
1007
+ };
1008
+ type AccountSummary = {
1009
+ id: string;
1010
+ ref?: string;
1011
+ label?: string;
1012
+ };
1013
+ declare class AccountSelectionError extends Error {
1014
+ code: 'account_required' | 'account_not_found' | 'account_limit';
1015
+ accounts: AccountSummary[];
1016
+ constructor(code: AccountSelectionError['code'], message: string, accounts?: AccountSelectionError['accounts']);
1017
+ }
1018
+
988
1019
  /** Handle for one chat: `corsair.withTenant(t).chats.get(id).message(...)`. */
989
1020
  interface ChatHandle {
990
1021
  /** Send a message to this chat; the agent may create/edit the workflow. */
@@ -1140,6 +1171,9 @@ type Tenant = {
1140
1171
  id: string;
1141
1172
  accounts: Array<{
1142
1173
  integrationName: string;
1174
+ accountId: string;
1175
+ ref?: string;
1176
+ label?: string;
1143
1177
  hasCredentials: boolean;
1144
1178
  }>;
1145
1179
  connectedPlugins: string[];
@@ -1224,6 +1258,8 @@ type DisconnectInput = {
1224
1258
  /** Plugin whose connection to remove for the tenant. */
1225
1259
  plugin: string;
1226
1260
  tenantId?: string;
1261
+ /** Remove only this account (row id, provider id or label); omit for all. */
1262
+ account?: string;
1227
1263
  };
1228
1264
  type DisconnectResult = {
1229
1265
  ok: true;
@@ -1259,6 +1295,19 @@ type CorsairManageNamespace = {
1259
1295
  disconnect: (input: DisconnectInput) => Promise<DisconnectResult>;
1260
1296
  };
1261
1297
 
1298
+ /** Per-account modes: plugin id → account (its id, ref or label) → mode. */
1299
+ type AccountModes = Record<string, Record<string, PermissionMode>>;
1300
+ /** A caller's mode: one for every call, or a default with modes per account. */
1301
+ type ModeScope = PermissionMode | {
1302
+ mode?: PermissionMode;
1303
+ accounts?: AccountModes;
1304
+ };
1305
+ /** The names an account answers to, any of which a mode can be keyed by. */
1306
+ type AccountNames = {
1307
+ id: string;
1308
+ ref?: string;
1309
+ label?: string;
1310
+ };
1262
1311
  /**
1263
1312
  * Thrown when a write or destructive operation is attempted inside a
1264
1313
  * {@link runReadonly} scope. Aborts the whole script so the agent must retry with
@@ -1269,10 +1318,17 @@ declare class ReadonlyForbiddenError extends Error {
1269
1318
  readonly riskLevel: EndpointRiskLevel;
1270
1319
  constructor(endpointPath: string, riskLevel: EndpointRiskLevel);
1271
1320
  }
1272
- /** Runs `fn` under `mode`. Nesting never widens: the stricter of the two wins. */
1273
- declare function runWithMode<T>(mode: PermissionMode, fn: () => T): T;
1274
- /** The mode in effect for the current async context, if any. */
1275
- declare function activeMode(): PermissionMode | undefined;
1321
+ /**
1322
+ * Runs `fn` under `scope`. Nesting never widens: each call takes the stricter
1323
+ * of what every open scope gives its account.
1324
+ */
1325
+ declare function runWithMode<T>(scope: ModeScope, fn: () => T): T;
1326
+ /**
1327
+ * The mode in effect for the current async context, if any. Given the plugin
1328
+ * and the account a call is for, that account's own mode counts; without
1329
+ * them, the strictest any account could get.
1330
+ */
1331
+ declare function activeMode(plugin?: string, names?: AccountNames): PermissionMode | undefined;
1276
1332
  /**
1277
1333
  * Runs `fn` in a scope where every Corsair endpoint call is forced to read-only.
1278
1334
  * Any write/destructive endpoint invoked within (including in nested async calls)
@@ -1280,19 +1336,19 @@ declare function activeMode(): PermissionMode | undefined;
1280
1336
  */
1281
1337
  declare function runReadonly<T>(fn: () => T): T;
1282
1338
  /** Whether the current async context is inside a {@link runReadonly} scope. */
1283
- declare function isReadonlyScopeActive(): boolean;
1339
+ declare function isReadonlyScopeActive(plugin?: string, names?: AccountNames): boolean;
1284
1340
  /**
1285
1341
  * Guard invoked by the endpoint binding layer before any endpoint runs. When a
1286
1342
  * read-only scope is active and the endpoint is not a `read` operation, throws
1287
1343
  * {@link ReadonlyForbiddenError}. No-op otherwise.
1288
1344
  */
1289
- declare function assertReadonlyAllowed(endpointPath: string, riskLevel: EndpointRiskLevel): void;
1345
+ declare function assertReadonlyAllowed(endpointPath: string, riskLevel: EndpointRiskLevel, plugin?: string, names?: AccountNames): void;
1290
1346
  /**
1291
1347
  * Guard for paths that reach data without the endpoint binding layer: the
1292
1348
  * entity store and the cloud entity proxy. Neither records approval state, so
1293
1349
  * anything short of `allow` is refused rather than held.
1294
1350
  */
1295
- declare function assertModeAllows(endpointPath: string, riskLevel: EndpointRiskLevel): void;
1351
+ declare function assertModeAllows(endpointPath: string, riskLevel: EndpointRiskLevel, plugin?: string, names?: AccountNames): void;
1296
1352
  /**
1297
1353
  * The `corsair.permissions` namespace available at the root of every corsair instance.
1298
1354
  * Provides methods for querying and transitioning permission records.
@@ -1728,7 +1784,11 @@ type InferPluginNamespace<P extends CorsairPlugin> = P extends CorsairPlugin<inf
1728
1784
  * Only present if the plugin defines `pluginTenantWebhookMatcher`.
1729
1785
  */
1730
1786
  pluginTenantWebhookMatcher?: CorsairWebhookTenantMatcher;
1731
- } : {}) & (ExtractAuthType<InferPluginOptions<P>, InferDefaultAuthType<P>> extends AuthTypes ? {
1787
+ } : {}) & {
1788
+ accounts: {
1789
+ list(): Promise<AccountSummary[]>;
1790
+ };
1791
+ } & (ExtractAuthType<InferPluginOptions<P>, InferDefaultAuthType<P>> extends AuthTypes ? {
1732
1792
  keys: AccountKeyManagerFor<ExtractAuthType<InferPluginOptions<P>, InferDefaultAuthType<P>>, InferAuthConfig<P>>;
1733
1793
  } : {});
1734
1794
  } : never;
@@ -1768,7 +1828,11 @@ type CorsairClient<Plugins extends readonly CorsairPlugin[]> = InferPluginNamesp
1768
1828
  * Also includes integration-level `keys` for managing shared secrets (OAuth2 client credentials, etc.)
1769
1829
  */
1770
1830
  type CorsairTenantWrapper<Plugins extends readonly CorsairPlugin[]> = {
1771
- withTenant: (tenantId: string) => CorsairClient<Plugins>;
1831
+ withTenant: (tenantId: string, options?: {
1832
+ accounts?: {
1833
+ [P in Plugins[number]['id']]?: string;
1834
+ };
1835
+ }) => CorsairClient<Plugins>;
1772
1836
  /**
1773
1837
  * Integration-level key managers for each plugin.
1774
1838
  * Used to manage secrets shared across all tenants (e.g., OAuth2 client_id, client_secret).
@@ -1807,6 +1871,10 @@ type CorsairSingleTenantClient<Plugins extends readonly CorsairPlugin[]> = Corsa
1807
1871
  */
1808
1872
  manage: CorsairManageNamespace;
1809
1873
  };
1874
+ /** Options of `withTenant`: per-plugin account refs. */
1875
+ type WithTenantOptions = {
1876
+ accounts?: Record<string, string | undefined>;
1877
+ };
1810
1878
 
1811
1879
  /**
1812
1880
  * Risk level classification for plugin endpoints.
@@ -1953,6 +2021,12 @@ type PluginPermissionsConfig<T extends EndpointTree = EndpointTree> = {
1953
2021
  * Only valid paths for this specific plugin compile — typos are type errors.
1954
2022
  */
1955
2023
  overrides?: Partial<Record<EndpointPathsOf<T>, PermissionPolicy>>;
2024
+ /**
2025
+ * A mode per account, keyed by its id or ref (e.g. its email). It
2026
+ * stands in for `mode` on that account's calls; the caller's mode still
2027
+ * tightens either.
2028
+ */
2029
+ accounts?: Record<string, PermissionMode>;
1956
2030
  };
1957
2031
  /**
1958
2032
  * Extracts the context type from an endpoint function.
@@ -2423,6 +2497,11 @@ type CorsairIntegration<Plugins extends readonly CorsairPlugin[]> = {
2423
2497
  plugins: Plugins;
2424
2498
  /** If true, enables tenant-scoped access via `withTenant()` */
2425
2499
  multiTenancy?: boolean;
2500
+ /**
2501
+ * Allow several accounts per tenant and plugin. Off (default): one account,
2502
+ * and connecting a different identity replaces it.
2503
+ */
2504
+ multiAccount?: boolean;
2426
2505
  /** Root-level error handlers that apply when plugin-specific handlers are not defined */
2427
2506
  errorHandlers?: CorsairErrorHandler;
2428
2507
  /**
@@ -2464,4 +2543,4 @@ type CorsairDeprecatedApprovalConfig = {
2464
2543
  approval?: CorsairPermissionsOptions;
2465
2544
  };
2466
2545
 
2467
- export { type EndpointMetaEntry as $, type AuthTypes as A, BASE_AUTH_FIELDS as B, type CorsairPlugin as C, type CorsairClient as D, type EndpointRiskLevel as E, type CorsairContext as F, type CorsairEndpoint as G, type HubConfig as H, type IntegrationKeyManagerFor as I, type CorsairErrorHandler as J, type CorsairKeyBuilder as K, type CorsairKeyBuilderBase as L, type CorsairOAuthWebhookTenantLinkResolver as M, type CorsairPermissionsNamespace as N, type OAuthConfig as O, type CorsairPluginContext as P, type CorsairPluginSubscribe as Q, type CorsairRunsNamespace as R, type CorsairWebhook as S, type CorsairWebhookHandler as T, type CorsairWebhookMatcher as U, type CorsairWebhookTenantMatcher as V, type WebhookTenantMatch as W, type CorsairWorkflowsNamespace as X, type CreateChatResult as Y, type EndpointHooks as Z, type EndpointJob as _, type CorsairPermissionsOptions as a, type HubPermissionSessionResult as a$, type EndpointPathsOf as a0, type EndpointTree as a1, type EnforcePermissionOptions as a2, type EnforcePermissionResult as a3, type ErrorContext as a4, type ErrorHandler as a5, type ErrorHandlerAndMatchFunction as a6, type ErrorMatcher as a7, type IntegrationFieldNames as a8, type KeyBuilderContext as a9, type WorkflowStatus as aA, type WorkflowSummary as aB, activeMode as aC, assertModeAllows as aD, assertReadonlyAllowed as aE, exchangeCodeForTokens as aF, formatProviderDisplayName as aG, isReadonlyScopeActive as aH, runReadonly as aI, runWithMode as aJ, type ManagementOk as aK, type Tenant as aL, type CreateTenantInput as aM, type PluginInfo as aN, type ConnectionStatus as aO, type PermissionLookupInput as aP, type PermissionRecord as aQ, type CreateConnectLinkInput as aR, type ConnectLink as aS, type ResolvedConnectLink as aT, type OAuthCallbackInput as aU, type OAuthCallbackResult as aV, type ConnectRequest as aW, type CorsairManageNamespace as aX, type PluginConnectionState as aY, type HubOAuthMode as aZ, type HubConnectSessionResult as a_, type OAuth2IntegrationCredentials as aa, type PermissionMode as ab, type PermissionPolicy as ac, type PickAuth as ad, type PluginAuthConfig as ae, type PluginEndpointMeta as af, type PluginPermissionsConfig as ag, ProviderDisplayNames as ah, type RawWebhookRequest as ai, ReadonlyForbiddenError as aj, type RequiredPluginEndpointMeta as ak, type RequiredPluginEndpointSchemas as al, type RequiredPluginWebhookSchemas as am, type RetryStrategies as an, type RetryStrategy as ao, type TokenResponse as ap, type TriggerRunResult as aq, type UnionToIntersection$1 as ar, type WebhookHooks as as, type WebhookPathsOf as at, type WebhookRequest as au, type WebhookResponse as av, type WebhookTree as aw, type WorkflowRun as ax, type WorkflowRunStatus as ay, type WorkflowRunStep as az, type CorsairManualConfig as b, type HubConfigInput as b0, type HubConnectSessionInput as b1, type HubListProjectConnectionsInput as b2, type HubPermissionSessionInput as b3, DEFAULT_HUB_API_URL as b4, type HubEnvironmentSlug as b5, type CorsairIntegration as c, type CorsairTenantWrapper as d, type CorsairSingleTenantClient as e, type AccountKeyManagerFor as f, type CorsairPluginSubscribeResult as g, type AccountFieldNames as h, type AgentMessageRole as i, type AgentReply as j, type AllProviders as k, type BaseAuthFieldConfig as l, type BaseKeyManager as m, BaseProviders as n, type BeforeHookResult as o, type BindEndpoints as p, type BindWebhooks as q, type Bivariant$2 as r, type BoundEndpointFn as s, type BoundEndpointTree as t, type BoundWebhook as u, type BoundWebhookTree as v, type ChatHandle as w, type ChatMessage as x, type ChatSummary as y, type CorsairChatsNamespace as z };
2546
+ export { type CreateChatResult as $, type AuthTypes as A, BASE_AUTH_FIELDS as B, type CorsairPlugin as C, type ChatMessage as D, type EndpointRiskLevel as E, type ChatSummary as F, type CorsairChatsNamespace as G, type HubConfig as H, type IntegrationKeyManagerFor as I, type CorsairClient as J, type CorsairContext as K, type CorsairEndpoint as L, type CorsairErrorHandler as M, type CorsairKeyBuilder as N, type OAuthConfig as O, type CorsairKeyBuilderBase as P, type CorsairOAuthWebhookTenantLinkResolver as Q, type CorsairPermissionsNamespace as R, type CorsairPluginContext as S, type CorsairPluginSubscribe as T, type CorsairRunsNamespace as U, type CorsairWebhook as V, type WebhookTenantMatch as W, type CorsairWebhookHandler as X, type CorsairWebhookMatcher as Y, type CorsairWebhookTenantMatcher as Z, type CorsairWorkflowsNamespace as _, type CorsairPermissionsOptions as a, type CorsairManageNamespace as a$, type EndpointHooks as a0, type EndpointJob as a1, type EndpointMetaEntry as a2, type EndpointPathsOf as a3, type EndpointTree as a4, type EnforcePermissionOptions as a5, type EnforcePermissionResult as a6, type ErrorContext as a7, type ErrorHandler as a8, type ErrorHandlerAndMatchFunction as a9, type WebhookTree as aA, type WorkflowRun as aB, type WorkflowRunStatus as aC, type WorkflowRunStep as aD, type WorkflowStatus as aE, type WorkflowSummary as aF, activeMode as aG, assertModeAllows as aH, assertReadonlyAllowed as aI, exchangeCodeForTokens as aJ, formatProviderDisplayName as aK, isReadonlyScopeActive as aL, runReadonly as aM, runWithMode as aN, type ManagementOk as aO, type Tenant as aP, type CreateTenantInput as aQ, type PluginInfo as aR, type ConnectionStatus as aS, type PermissionLookupInput as aT, type PermissionRecord as aU, type CreateConnectLinkInput as aV, type ConnectLink as aW, type ResolvedConnectLink as aX, type OAuthCallbackInput as aY, type OAuthCallbackResult as aZ, type ConnectRequest as a_, type ErrorMatcher as aa, type IntegrationFieldNames as ab, type KeyBuilderContext as ac, type ModeScope as ad, type OAuth2IntegrationCredentials as ae, type PermissionMode as af, type PermissionPolicy as ag, type PickAuth as ah, type PluginAuthConfig as ai, type PluginEndpointMeta as aj, type PluginPermissionsConfig as ak, ProviderDisplayNames as al, type RawWebhookRequest as am, ReadonlyForbiddenError as an, type RequiredPluginEndpointMeta as ao, type RequiredPluginEndpointSchemas as ap, type RequiredPluginWebhookSchemas as aq, type RetryStrategies as ar, type RetryStrategy as as, type TokenResponse as at, type TriggerRunResult as au, type UnionToIntersection$1 as av, type WebhookHooks as aw, type WebhookPathsOf as ax, type WebhookRequest as ay, type WebhookResponse as az, type CorsairManualConfig as b, type PluginConnectionState as b0, type WithTenantOptions as b1, type HubOAuthMode as b2, type HubConnectSessionResult as b3, type HubPermissionSessionResult as b4, type HubConfigInput as b5, type HubConnectSessionInput as b6, type HubListProjectConnectionsInput as b7, type HubPermissionSessionInput as b8, DEFAULT_HUB_API_URL as b9, type HubEnvironmentSlug as ba, type CorsairIntegration as c, type CorsairTenantWrapper as d, type CorsairSingleTenantClient as e, type AccountKeyManagerFor as f, type CorsairPluginSubscribeResult as g, type Account as h, type AccountFieldNames as i, type AccountModes as j, AccountSelectionError as k, type AgentMessageRole as l, type AgentReply as m, type AllProviders as n, type BaseAuthFieldConfig as o, type BaseKeyManager as p, BaseProviders as q, type BeforeHookResult as r, type BindEndpoints as s, type BindWebhooks as t, type Bivariant$2 as u, type BoundEndpointFn as v, type BoundEndpointTree as w, type BoundWebhook as x, type BoundWebhookTree as y, type ChatHandle as z };
@@ -1,4 +1,4 @@
1
- import { W as WebhookTenantMatch, A as AuthTypes } from './index-vMRmjJ5P.js';
1
+ import { W as WebhookTenantMatch, A as AuthTypes } from './index-CVBmlS4w.js';
2
2
  import { CorsairDatabase, CorsairAccount } from './db.js';
3
3
 
4
4
  /**
@@ -140,6 +140,11 @@ type BrowserDeliveryPayload = {
140
140
  authType?: 'managed' | 'oauth_2';
141
141
  /** Provider token-body identity (team, workspace_id, …) for the SDK resolver. */
142
142
  providerData?: Record<string, unknown>;
143
+ /** Provider account identity for multi-account delivery (`deliveryMode: oauth.tokens`). */
144
+ account?: {
145
+ id: string;
146
+ label?: string;
147
+ };
143
148
  /** SDK permission token to approve or deny (`deliveryMode: permission.*`). */
144
149
  permissionToken?: string;
145
150
  /** Hub page origin for iframe postMessage replies (legacy client bridge). */
@@ -165,6 +170,8 @@ declare function setWebhookTenantLink(options: {
165
170
  link: WebhookTenantLink;
166
171
  authType?: AuthTypes;
167
172
  extraAccountFields?: readonly string[];
173
+ accountId?: string;
174
+ accountRef?: string;
168
175
  }): Promise<void>;
169
176
  type ResolveAccountFromWebhookLinkInput = {
170
177
  database: CorsairDatabase;
@@ -172,6 +179,7 @@ type ResolveAccountFromWebhookLinkInput = {
172
179
  pluginId: string;
173
180
  linkType: string;
174
181
  externalId: string;
182
+ tenantId?: string;
175
183
  };
176
184
  /**
177
185
  * Resolves the matching corsair_accounts row for a webhook tenant link.
@@ -248,6 +256,10 @@ type OAuthTokensTunnelPayload = {
248
256
  scope?: string;
249
257
  authType?: 'managed' | 'oauth_2';
250
258
  providerData?: Record<string, unknown>;
259
+ account?: {
260
+ id: string;
261
+ label?: string;
262
+ };
251
263
  };
252
264
  type ProcessCorsairRequest = {
253
265
  headers: Headers | Record<string, string | string[] | undefined>;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ZodTypeAny, z } from 'zod';
2
- import { e as CorsairSingleTenantClient, d as CorsairTenantWrapper, C as CorsairPlugin, D as CorsairClient, aK as ManagementOk, aL as Tenant, aM as CreateTenantInput, aN as PluginInfo, aO as ConnectionStatus, aP as PermissionLookupInput, aQ as PermissionRecord, aR as CreateConnectLinkInput, aS as ConnectLink, aT as ResolvedConnectLink, aU as OAuthCallbackInput, aV as OAuthCallbackResult, aW as ConnectRequest, N as CorsairPermissionsNamespace, v as BoundWebhookTree, ai as RawWebhookRequest, V as CorsairWebhookTenantMatcher, n as BaseProviders, av as WebhookResponse } from './index-vMRmjJ5P.js';
3
- export { aX as CorsairManageNamespace, b as CorsairManualConfig, a as CorsairPermissionsOptions, aY as PluginConnectionState, aj as ReadonlyForbiddenError, aI as runReadonly, aJ as runWithMode } from './index-vMRmjJ5P.js';
4
- import { aD as FormFieldSchema, Z as ListOperationsOptions } from './tenant-match-utils-7rQQlp7q.js';
5
- export { A as AuthMissingError, a as AuthType, C as CloudAccess, b as CloudApiError, c as CloudCatalogIntegration, d as CloudConnectSession, e as CloudConnection, f as CloudDeleted, g as CloudDelivery, h as CloudEmbeddedList, i as CloudInstance, j as CloudInstanceApply, k as CloudInstancePlane, l as CloudInstanceRemoval, m as CloudIntegration, n as CloudIntegrationOperations, o as CloudKey, p as CloudKeyRotation, q as CloudLink, r as CloudLinkLine, s as CloudList, t as CloudMcpToken, u as CloudOauthApp, v as CloudOperation, w as CloudProject, x as CloudProjectPlane, y as CloudSigningSecret, z as CloudSigningSecretRotation, B as CloudTenant, D as CloudWebhook, E as CorsairCloudConfig, F as CorsairCloudInstance, G as CorsairCloudInstanceHandle, H as CorsairCloudManage, I as CorsairCloudRegistry, J as CorsairKekMissingError, K as CreateConnectSessionInput, L as CreateInstanceInput, N as CreateWebhookInput, O as CredentialSource, X as LinkLine, Y as LinkPolicy, _ as ListQuery, $ as ManagementApiError, a0 as MintLinkInput, a1 as MintTokenInput, a2 as Permission, a3 as PermissionDecision, aE as PermissionMode, a4 as PermissionRequiredError, a6 as PluginWebhookMatchers, a7 as ProjectStatus, a8 as PutIntegrationInput, a9 as PutOauthAppInput, aa as ReconnectRequiredError, ab as RequestOptions, ac as ResolveConnectLinkResult, ad as RotateWebhookSecretInput, ae as SetAccessInput, af as UpdateInstanceInput, ag as UpdateLinkInput, ah as UpdateTenantInput, ai as V1Transport, aj as WebhookPluginTenantMatch, ak as asRecord, al as buildInstancePlane, am as buildProjectPlane, an as collectPluginWebhookMatchers, ao as corsairCloud, ap as decodePubSubData, ar as firstString, as as formatDocSchemaShape, at as getHeader, aw as mapV1Error, ax as matchWebhookPlugin, ay as matchWebhookPluginAndTenant, az as readBodyRecord, aB as resolveConnectLink, aC as toExternalId } from './tenant-match-utils-7rQQlp7q.js';
6
- export { c as createCorsair } from './index-COK87S3x.js';
2
+ import { e as CorsairSingleTenantClient, d as CorsairTenantWrapper, C as CorsairPlugin, J as CorsairClient, aO as ManagementOk, aP as Tenant, aQ as CreateTenantInput, aR as PluginInfo, aS as ConnectionStatus, aT as PermissionLookupInput, aU as PermissionRecord, aV as CreateConnectLinkInput, aW as ConnectLink, aX as ResolvedConnectLink, aY as OAuthCallbackInput, aZ as OAuthCallbackResult, a_ as ConnectRequest, R as CorsairPermissionsNamespace, y as BoundWebhookTree, am as RawWebhookRequest, Z as CorsairWebhookTenantMatcher, q as BaseProviders, az as WebhookResponse } from './index-CVBmlS4w.js';
3
+ export { a$ as CorsairManageNamespace, b as CorsairManualConfig, a as CorsairPermissionsOptions, b0 as PluginConnectionState, an as ReadonlyForbiddenError, aM as runReadonly, aN as runWithMode } from './index-CVBmlS4w.js';
4
+ import { aD as FormFieldSchema, Z as ListOperationsOptions } from './tenant-match-utils-BiOexLyr.js';
5
+ export { A as AuthMissingError, a as AuthType, C as CloudAccess, b as CloudApiError, c as CloudCatalogIntegration, d as CloudConnectSession, e as CloudConnection, f as CloudDeleted, g as CloudDelivery, h as CloudEmbeddedList, i as CloudInstance, j as CloudInstanceApply, k as CloudInstancePlane, l as CloudInstanceRemoval, m as CloudIntegration, n as CloudIntegrationOperations, o as CloudKey, p as CloudKeyRotation, q as CloudLink, r as CloudLinkLine, s as CloudList, t as CloudMcpToken, u as CloudOauthApp, v as CloudOperation, w as CloudProject, x as CloudProjectPlane, y as CloudSigningSecret, z as CloudSigningSecretRotation, B as CloudTenant, D as CloudWebhook, E as CorsairCloudConfig, F as CorsairCloudInstance, G as CorsairCloudInstanceHandle, H as CorsairCloudManage, I as CorsairCloudRegistry, J as CorsairKekMissingError, K as CreateConnectSessionInput, L as CreateInstanceInput, N as CreateWebhookInput, O as CredentialSource, X as LinkLine, Y as LinkPolicy, _ as ListQuery, $ as ManagementApiError, a0 as MintLinkInput, a1 as MintTokenInput, a2 as Permission, a3 as PermissionDecision, aE as PermissionMode, a4 as PermissionRequiredError, a6 as PluginWebhookMatchers, a7 as ProjectStatus, a8 as PutIntegrationInput, a9 as PutOauthAppInput, aa as ReconnectRequiredError, ab as RequestOptions, ac as ResolveConnectLinkResult, ad as RotateWebhookSecretInput, ae as SetAccessInput, af as UpdateInstanceInput, ag as UpdateLinkInput, ah as UpdateTenantInput, ai as V1Transport, aj as WebhookPluginTenantMatch, ak as asRecord, al as buildInstancePlane, am as buildProjectPlane, an as collectPluginWebhookMatchers, ao as corsairCloud, ap as decodePubSubData, ar as firstString, as as formatDocSchemaShape, at as getHeader, aw as mapV1Error, ax as matchWebhookPlugin, ay as matchWebhookPluginAndTenant, az as readBodyRecord, aB as resolveConnectLink, aC as toExternalId } from './tenant-match-utils-BiOexLyr.js';
6
+ export { c as createCorsair } from './index-B5PVm2FS.js';
7
7
  export { SetupCorsairOptions, setupCorsair } from './setup.js';
8
- export { O as OAuthCallbackTunnelPayload, b as ProcessCorsairOptions, c as ProcessCorsairRequest, l as ResolveAccountFromWebhookLinkInput, T as TunnelAck, g as TunnelEnvelope, h as TunnelType, m as WebhookTenantLink, W as WebhookTunnelPayload, p as processCorsair, r as resolveAccountFromWebhookLink, j as resolveTenantFromWebhookLink, k as resolveTenantIdFromWebhookLink, s as setWebhookTenantLink } from './index-C7wVzZZh.js';
8
+ export { O as OAuthCallbackTunnelPayload, b as ProcessCorsairOptions, c as ProcessCorsairRequest, l as ResolveAccountFromWebhookLinkInput, T as TunnelAck, g as TunnelEnvelope, h as TunnelType, m as WebhookTenantLink, W as WebhookTunnelPayload, p as processCorsair, r as resolveAccountFromWebhookLink, j as resolveTenantFromWebhookLink, k as resolveTenantIdFromWebhookLink, s as setWebhookTenantLink } from './index-Cnk2Dmi2.js';
9
9
  import './db.js';
10
10
  import 'kysely';
11
11
  import 'pg';
@@ -518,7 +518,9 @@ type PluginWithWebhooks = {
518
518
  * The corsair instance type - a record of plugin namespaces.
519
519
  */
520
520
  type CorsairInstance = Record<string, PluginWithWebhooks | undefined> & {
521
- withTenant?: (tenantId: string) => CorsairInstance;
521
+ withTenant?: (tenantId: string, options?: {
522
+ accounts?: Record<string, string | undefined>;
523
+ }) => CorsairInstance;
522
524
  };
523
525
  /**
524
526
  * Filters an incoming webhook request through all plugins in a corsair instance.
@@ -560,6 +562,8 @@ declare function processWebhook(corsair: CorsairInstance, headers: WebhookHeader
560
562
  plugin?: string;
561
563
  /** Hub already verified the provider signature; skip app-side re-verify. */
562
564
  hubVerified?: boolean;
565
+ /** The account row the delivery matched; the handler runs as it. */
566
+ accountId?: string;
563
567
  }): Promise<WebhookFilterResult>;
564
568
 
565
569
  export { type AnyCorsairInstance, type BuildCorsairToolsOptions, ConnectLink, ConnectionStatus, CorsairClientError, type CorsairClientOptions, type CorsairManagementClient, type CorsairOperationTool, CreateConnectLinkInput, CreateTenantInput, DEFAULT_BODY_STALL_TIMEOUT_MS, DEFAULT_MAX_BODY_BYTES, type ExpressHandler, type FastifyHandler, FormFieldSchema, type HonoHandler, ListOperationsOptions, type ManagementHandlerOptions, ManagementOk, type NodeHandler, type NodeLikeRequest, type NodeLikeResponse, OAuthCallbackInput, OAuthCallbackResult, type PermissionExecuteResult, PermissionLookupInput, PermissionRecord, PluginInfo, ResolvedConnectLink, Tenant, buildCorsairTools, createCorsairClient, executePermission, formFieldToZod, getInputSchema, getSchema, getStructuredSchema, listOperations, managementHandler, processWebhook, registerCorsairRawBodyParser, resolveBodyStallTimeoutMs, resolveMaxBodyBytes, toAstroHandler, toExpressHandler, toFastifyHandler, toHonoHandler, toNextJsHandler, toNodeHandler, toNuxtHandler, toRemixHandler, toSvelteKitHandler, toTanStackHandler, toWebHandler };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{Db as J,Ea as q,Eb as Y,Fb as K,Gb as G,H as O,Hb as X,Ib as Q,Jb as V,Kb as nn,Lb as en,M as A,Ma as N,Mb as tn,N as L,Nb as rn,O as E,Ob as on,P as v,Pb as sn,Qb as an,Rb as un,Ta as j,Ua as B,Va as D,Wa as U,Xb as w,Yb as P,Zb as T,_b as x,ba as F,bb as Z,c as S,ca as M,dc as cn,ec as pn,fa as $,fc as ln,ga as _,gc as dn,hc as mn,ia as H,ic as gn,jc as Cn,ma as W,nc as fn,oc as yn,pc as I,qc as kn,yb as z}from"./chunk-V4HK3OBT.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-XFXMLS67.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";import{z as p}from"zod";function C(e){let t=e[I];if(!t)throw new Error("listOperations / getSchema: invalid corsair instance. Pass the value returned by createCorsair() or corsair.withTenant().");return t.plugins}function y(e,t){let o=P(C(e),t);return typeof o=="string"?o:Array.isArray(o)?o.join(`
1
+ import{Db as J,Ea as q,Eb as Y,Fb as K,Gb as G,H as O,Hb as X,Ib as Q,Jb as V,Kb as nn,Lb as en,M as A,Ma as N,Mb as tn,N as L,Nb as rn,O as E,Ob as on,P as v,Pb as sn,Qb as an,Rb as un,Ta as j,Ua as B,Va as D,Wa as U,Xb as w,Yb as P,Zb as T,_b as x,ba as F,bb as Z,c as S,ca as M,dc as cn,ec as pn,fa as $,fc as ln,ga as _,gc as dn,hc as mn,ia as H,ic as gn,jc as Cn,ma as W,nc as fn,oc as yn,pc as I,qc as kn,yb as z}from"./chunk-JDPLOTGP.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-KOJBIKQZ.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";import{z as p}from"zod";function C(e){let t=e[I];if(!t)throw new Error("listOperations / getSchema: invalid corsair instance. Pass the value returned by createCorsair() or corsair.withTenant().");return t.plugins}function y(e,t){let o=P(C(e),t);return typeof o=="string"?o:Array.isArray(o)?o.join(`
2
2
  `):Object.values(o).flat().join(`
3
3
  `)}function hn(e,t){return T(C(e),t)}function k(e,t){return w(C(e),t)}function h(e,t){let o=C(e),n=t.toLowerCase(),i=n.indexOf(".");if(i===-1)return null;let u=n.slice(0,i),r=n.slice(i+1),s=o.find(c=>c.id===u);if(!s?.endpointSchemas)return null;let a=r;a.startsWith("api.")&&(a=a.slice(4));for(let[c,l]of Object.entries(s.endpointSchemas))if(c.toLowerCase()===a)return l.input??null;return null}function f(e){let t=wn(e);return e.description&&(t=t.describe(e.description)),e.optional&&(t=t.optional()),t}function wn(e){switch(e.kind){case"string":return e.enum&&e.enum.length>0?p.enum(e.enum):p.string();case"number":return p.number();case"boolean":return p.boolean();case"literal":return p.literal(e.value);case"object":{let t={};for(let[o,n]of Object.entries(e.fields))t[o]=f(n);return p.object(t)}case"array":return p.array(f(e.items));case"unknown":return p.unknown()}}function Pn(e,t){let o=t?.tenantId?In(e,t.tenantId):e;return(t?.operations??Tn(y(o,{plugin:t?.plugin,type:"api"}))).map(i=>{let u=k(o,i),s=h(o,i)??(u?.input?f(u.input):p.object({}));return{name:xn(i),operation:i,description:u?.description??i,schema:s,execute:a=>Rn(o,i,a??{})}})}function Tn(e){return e.split(`
4
4
  `).map(t=>t.trim()).filter(Boolean)}function xn(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function In(e,t){let o=e.withTenant;return typeof o=="function"?o.call(e,t):e}async function Rn(e,t,o){let n=t.split("."),i=n.pop();if(!i)throw new Error(`Invalid operation path: ${t}`);let u=e;for(let s of n)if(u=u?.[s],u==null)throw new Error(`Unknown operation path: ${t}`);let r=u[i];if(typeof r!="function")throw new Error(`Operation is not callable: ${t}`);return r.call(u,o)}var d=class extends Error{status;code;extra;constructor(t,o,n,i={}){super(n),this.name="CorsairClientError",this.status=t,this.code=o,this.extra=i}};function bn(e){return e.endsWith("/")?e.slice(0,-1):e}async function R(e){let t={};try{t=await e.json()}catch{}let o=typeof t.error=="string"?t.error:"request_failed",n=typeof t.message=="string"?t.message:`Request failed (${e.status})`,{error:i,message:u,...r}=t;return new d(e.status,o,n,r)}function Sn(e){let t=bn(e.baseURL),o=e.fetch??((...r)=>globalThis.fetch(...r));async function n(r,s){let a=s&&Object.keys(s).length?`?${new URLSearchParams(s).toString()}`:"",c=await o(`${t}${r}${a}`,{method:"GET"});if(!c.ok)throw await R(c);return await c.json()}async function i(r,s){let a=await o(`${t}${r}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!a.ok)throw await R(a);return await a.json()}let u=encodeURIComponent;return{ok:()=>n("/ok"),tenants:{list:()=>n("/tenants"),create:r=>i("/tenants",r),get:r=>n(`/tenants/${u(r)}`)},plugins:{list:()=>n("/plugins"),get:r=>n(`/plugins/${u(r)}`)},connectionStatus:{get:r=>{let s={};return r?.tenantId&&(s.tenantId=r.tenantId),n("/connection-status",s)}},permissions:{get:r=>"id"in r?n(`/permissions/${u(r.id)}`):i("/permissions/lookup-by-token",{token:r.token})},connect:{createLink:r=>i("/connect/links",r),resolve:r=>n("/connect/resolve",{state:r}),oauthCallback:r=>i("/connect/oauth/callback",r)},connectRequest:{get:r=>{let s={};return r?.tenantId&&(s.tenantId=r.tenantId),n("/connect/request",s)},clear:r=>i("/connect/request/clear",r??{})},call(r,s,a,c){return i(`/${u(a)}/${u(r)}/call/${u(s)}`,{args:c}).then(l=>l.data)}}}var On=Symbol.for("corsair:internal");function An(e,t){let o=e;for(let n of t){if(!o||typeof o!="object")return null;o=o[n]}return typeof o=="function"?o:null}function b(e){return e[On]?.database}async function Ln(e,t){let o=new Date().toISOString(),n=await e.permissions.find_by_token(t);if(!n)return console.error("executePermission: no permission found for token."),{error:"executePermission: no permission found for token."};if(n.status!=="approved")return console.error(`executePermission: permission '${n.id}' is '${n.status}', expected 'approved'.`),{endpoint:n.endpoint,plugin:n.plugin,result:null,error:`executePermission: permission '${n.id}' is '${n.status}', expected 'approved'.`};if(n.expires_at<o){let a=b(e);return a&&await a.db.updateTable("corsair_permissions").set({status:"expired",updated_at:new Date}).where("id","=",n.id).execute(),console.error(`executePermission: permission '${n.id}' has expired.`),{error:`executePermission: permission '${n.id}' has expired.`,endpoint:n.endpoint,plugin:n.plugin,result:null}}let i=n.tenant_id??"default",r=(e.withTenant?e.withTenant(i):e)[n.plugin];if(!r?.api)return console.error(`executePermission: plugin '${n.plugin}' not found or has no API on this corsair instance.`),{error:`executePermission: plugin '${n.plugin}' not found or has no API on this corsair instance.`,plugin:n.plugin,endpoint:n.endpoint,result:null};let s=An(r.api,n.endpoint.split("."));if(!s)return console.error(`executePermission: endpoint '${n.endpoint}' not found in plugin '${n.plugin}'.`),{endpoint:n.endpoint,plugin:n.plugin,result:null,error:`executePermission: endpoint '${n.endpoint}' not found in plugin '${n.plugin}'.`};await e.permissions.set_executing(n.id);try{let a=typeof n.args=="string"?JSON.parse(n.args):n.args,c=await s(a);return await e.permissions.set_completed(n.id),{plugin:n.plugin,endpoint:n.endpoint,result:c}}catch(a){let c=a instanceof Error?a.message:String(a),l=b(e);return l&&await l.db.updateTable("corsair_permissions").set({status:"failed",error:c,updated_at:new Date}).where("id","=",n.id).execute(),{plugin:n.plugin,endpoint:n.endpoint,result:null,error:c}}}export{Z as AuthMissingError,J as CloudApiError,d as CorsairClientError,z as CorsairKekMissingError,B as DEFAULT_BODY_STALL_TIMEOUT_MS,j as DEFAULT_MAX_BODY_BYTES,W as ManagementApiError,M as PermissionRequiredError,$ as ReadonlyForbiddenError,S as ReconnectRequiredError,gn as asRecord,Pn as buildCorsairTools,ln as collectPluginWebhookMatchers,Y as corsairCloud,kn as createCorsair,Sn as createCorsairClient,yn as decodePubSubData,Ln as executePermission,fn as firstString,f as formFieldToZod,x as formatDocSchemaShape,dn as getHeader,h as getInputSchema,hn as getSchema,k as getStructuredSchema,y as listOperations,K as managementHandler,cn as matchWebhookPlugin,pn as matchWebhookPluginAndTenant,N as processCorsair,q as processWebhook,Cn as readBodyRecord,X as registerCorsairRawBodyParser,L as resolveAccountFromWebhookLink,U as resolveBodyStallTimeoutMs,F as resolveConnectLink,D as resolveMaxBodyBytes,v as resolveTenantFromWebhookLink,E as resolveTenantIdFromWebhookLink,H as runReadonly,_ as runWithMode,A as setWebhookTenantLink,O as setupCorsair,on as toAstroHandler,G as toExpressHandler,mn as toExternalId,Q as toFastifyHandler,V as toHonoHandler,nn as toNextJsHandler,en as toNodeHandler,an as toNuxtHandler,rn as toRemixHandler,tn as toSvelteKitHandler,sn as toTanStackHandler,un as toWebHandler};
@@ -1 +1 @@
1
- import{Na as a,Oa as b,Pa as c}from"./chunk-V4HK3OBT.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-XFXMLS67.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{a as deriveAck,b as pollOnce,c as startConnectLoop};
1
+ import{Na as a,Oa as b,Pa as c}from"./chunk-JDPLOTGP.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-KOJBIKQZ.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{a as deriveAck,b as pollOnce,c as startConnectLoop};
package/dist/oauth.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { O as OAuthConfig } from './index-vMRmjJ5P.js';
1
+ import { O as OAuthConfig } from './index-CVBmlS4w.js';
2
2
  import 'zod';
3
3
  import './db.js';
4
4
  import 'kysely';
@@ -6,12 +6,19 @@ import 'pg';
6
6
  import 'postgres';
7
7
  import './orm.js';
8
8
 
9
+ /** Add account, or reconnect one by its id, ref or label. */
10
+ type OAuthAccountTarget = {
11
+ add: true;
12
+ } | {
13
+ reconnect: string;
14
+ };
9
15
  type OAuthState = {
10
16
  plugin: string;
11
17
  tenantId: string;
12
18
  iat: number;
19
+ account?: OAuthAccountTarget;
13
20
  };
14
- declare function encodeOAuthState(plugin: string, tenantId: string): string;
21
+ declare function encodeOAuthState(plugin: string, tenantId: string, account?: OAuthAccountTarget): string;
15
22
  declare function decodeOAuthState(state: string, { maxAgeMs }?: {
16
23
  maxAgeMs?: number;
17
24
  }): OAuthState | null;
@@ -24,7 +31,7 @@ type BuildOAuthAuthorizeUrlInput = {
24
31
  };
25
32
  declare function buildOAuthAuthorizeUrl(input: BuildOAuthAuthorizeUrlInput): string;
26
33
 
27
- type OAuthCallbackErrorCode = 'invalid_corsair_instance' | 'no_database' | 'invalid_state' | 'plugin_not_found' | 'plugin_has_no_oauth_config' | 'credentials_not_configured' | 'no_access_token';
34
+ type OAuthCallbackErrorCode = 'invalid_corsair_instance' | 'no_database' | 'invalid_state' | 'plugin_not_found' | 'plugin_has_no_oauth_config' | 'credentials_not_configured' | 'no_access_token' | 'account_required' | 'account_not_found' | 'account_unnamed' | 'account_limit';
28
35
  declare class OAuthCallbackError extends Error {
29
36
  readonly code: OAuthCallbackErrorCode;
30
37
  constructor(code: OAuthCallbackErrorCode, message: string);
@@ -34,6 +41,8 @@ type GenerateOAuthUrlOptions = {
34
41
  redirectUri: string;
35
42
  /** Hub generates OAuth state server-side and injects it into the authorize URL. */
36
43
  hubConnect?: boolean;
44
+ /** With multiAccount: add an account, or reconnect one by its id, ref or label. */
45
+ account?: OAuthAccountTarget;
37
46
  };
38
47
  type GenerateOAuthUrlResult = {
39
48
  url: string;
package/dist/oauth.js CHANGED
@@ -1 +1 @@
1
- import{J as a,K as b,Q as c,R as d,S as e,T as f,U as g,V as h}from"./chunk-V4HK3OBT.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-XFXMLS67.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{d as OAuthCallbackError,c as buildOAuthAuthorizeUrl,b as decodeOAuthState,a as encodeOAuthState,e as generateOAuthUrl,f as processOAuthCallback,g as renewSubscriptions,h as startSubscriptionRenewal};
1
+ import{J as a,K as b,Q as c,R as d,S as e,T as f,U as g,V as h}from"./chunk-JDPLOTGP.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-KOJBIKQZ.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{d as OAuthCallbackError,c as buildOAuthAuthorizeUrl,b as decodeOAuthState,a as encodeOAuthState,e as generateOAuthUrl,f as processOAuthCallback,g as renewSubscriptions,h as startSubscriptionRenewal};
package/dist/orm.d.ts CHANGED
@@ -137,6 +137,8 @@ type CorsairPluginSchema<Entities extends Record<string, ZodTypeAny>> = {
137
137
  */
138
138
  type TypedEntity<DataSchema extends ZodTypeAny> = Omit<CorsairEntity, 'data'> & {
139
139
  data: z.infer<DataSchema>;
140
+ /** Set when a read spans a tenant's accounts: the owning account's label. */
141
+ account?: string;
140
142
  };
141
143
  /**
142
144
  * Filter value for entity table columns (e.g., entity_id, version).
package/dist/orm.js CHANGED
@@ -1 +1 @@
1
- import"./chunk-B6OSDOR5.js";import{D as o,E as e,F as n,G as s}from"./chunk-XFXMLS67.js";import{d as r,e as t,f as i,g as a}from"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{t as CorsairAccountsSchema,i as CorsairEntitiesSchema,a as CorsairEventsSchema,r as CorsairIntegrationsSchema,o as createCorsairOrm,e as createPluginOrm,s as createPluginOrmFactory,n as createTenantScopedOrm};
1
+ import"./chunk-B6OSDOR5.js";import{O as o,P as e,Q as n,R as s}from"./chunk-KOJBIKQZ.js";import{d as r,e as t,f as i,g as a}from"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{t as CorsairAccountsSchema,i as CorsairEntitiesSchema,a as CorsairEventsSchema,r as CorsairIntegrationsSchema,o as createCorsairOrm,e as createPluginOrm,s as createPluginOrmFactory,n as createTenantScopedOrm};
@@ -1 +1 @@
1
- import{H as a,I as b}from"./chunk-V4HK3OBT.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-XFXMLS67.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{b as applySetupCredentials,a as setupCorsair};
1
+ import{H as a,I as b}from"./chunk-JDPLOTGP.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-KOJBIKQZ.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{b as applySetupCredentials,a as setupCorsair};
@@ -1 +1 @@
1
- import{W as a,X as b,Y as c,Z as d}from"./chunk-V4HK3OBT.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-XFXMLS67.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{b as buildConnectPluginManifest,a as buildConnectPluginManifestFromContext,d as ensureConnectAccountRows,c as ensureConnectAccountRowsFromContext};
1
+ import{W as a,X as b,Y as c,Z as d}from"./chunk-JDPLOTGP.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-KOJBIKQZ.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{b as buildConnectPluginManifest,a as buildConnectPluginManifestFromContext,d as ensureConnectAccountRows,c as ensureConnectAccountRowsFromContext};
package/dist/setup.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as CorsairInternalConfig } from './index-COK87S3x.js';
2
- import { C as CorsairPlugin, e as CorsairSingleTenantClient, d as CorsairTenantWrapper } from './index-vMRmjJ5P.js';
1
+ import { a as CorsairInternalConfig } from './index-B5PVm2FS.js';
2
+ import { C as CorsairPlugin, e as CorsairSingleTenantClient, d as CorsairTenantWrapper } from './index-CVBmlS4w.js';
3
3
  import { CorsairDatabase } from './db.js';
4
4
  import 'zod';
5
5
  import './orm.js';
package/dist/setup.js CHANGED
@@ -1 +1 @@
1
- import{H as a,I as b}from"./chunk-V4HK3OBT.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-XFXMLS67.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{b as applySetupCredentials,a as setupCorsair};
1
+ import{H as a,I as b}from"./chunk-JDPLOTGP.js";import"./chunk-6IURNA4L.js";import"./chunk-XCTHEKDP.js";import"./chunk-KOJBIKQZ.js";import"./chunk-XPXWKPFZ.js";import"./chunk-Z2KT4F2U.js";import"./chunk-SOY77BN4.js";export{b as applySetupCredentials,a as setupCorsair};