@celestoai/sdk
v0.1.0
Published
Celesto SDK (Gatekeeper client)
Readme
Celesto SDK (Gatekeeper)
Node-only TypeScript SDK for Celesto's Gatekeeper API (/v1/gatekeeper).
Install
npm install @celestoai/sdkUsage
import { GatekeeperClient } from "@celestoai/sdk/gatekeeper";
const client = new GatekeeperClient({
baseUrl: "https://api.celesto.ai",
token: process.env.CELESTO_API_KEY
});
const connect = await client.connect({
subject: "customer_123",
provider: "google_drive",
projectName: "Default",
});
if (connect.status === "redirect") {
console.log("OAuth URL:", connect.oauthUrl);
}Gatekeeper API coverage
connectlistConnectionsgetConnectionrevokeConnectionlistDriveFilesgetAccessRulesupdateAccessRulesclearAccessRules
Notes
tokenaccepts either a Celesto API key or a JWT.organizationIdadds theX-Current-Organizationheader.- Requires Node 18+ for built-in
fetch.
License
Apache-2.0. The SDK is open source; use of the Celesto platform is governed by the Celesto Terms of Service:
https://celesto.ai/legal/terms