src/integrations.ts

listenpost · src/integrations.ts · typescript · MIT
payments

Defines billing mode per integration, mapping which party pays API calls.

// Source: https://github.com/deepdotspace/listenpost | License: MIT | Copyright 2026 Yuke Wu
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Integration Billing Config
 *
 * Configure who pays for each integration's API calls.
 *
 * - 'developer': The app owner pays (default). Works for anonymous users.
 * - 'user': The calling user pays. Requires sign-in.
 *
 * Integrations not listed here default to 'developer'.
 *
 * IMPORTANT: any integration backed by per-user OAuth tokens (Google,
 * etc.) must be 'user' — the api-worker looks up the row keyed by the
 * JWT subject. With 'developer' the app owner's JWT is forwarded and
 * the handler operates on the app owner's connected account regardless
 * of who's signed in client-side.
 */

export const integrations: Rec

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key