Celesto SDK (Gatekeeper client)
npm install @celestoai/sdkNode-only TypeScript SDK for Celesto's Gatekeeper API (/v1/gatekeeper).
``bash`
npm install @celestoai/sdk
`ts
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);
}
`
- connectlistConnections
- getConnection
- revokeConnection
- listDriveFiles
- getAccessRules
- updateAccessRules
- clearAccessRules
-
- token accepts either a Celesto API key or a JWT.organizationId
- adds the X-Current-Organization header.fetch
- Requires Node 18+ for built-in .
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