types/credentials.types.ts

smythos-studio · packages/app/src/shared/types/credentials.types.ts · typescript · MIT
auth

* Shared Types for Credentials Common type definitions used across frontend and backend for credentials management. @module / *

// Source: https://github.com/SmythOS/smythos-studio | License: MIT | Copyright 2025, INK Content, Inc
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Shared Types for Credentials
 *
 * Common type definitions used across frontend and backend for credentials management.
 *
 * @module
 */

/**
 * Credential Connection
 * Represents a stored credential (OAuth, vector DB, etc.)
 */
export interface CredentialConnection {
  /** Unique identifier for the credential */
  id: string;

  /** Display name for the credential */
  name: string;

  /** Provider ID (e.g., 'google', 'pinecone') */
  provider: string;

  /** Credential fields (sanitized in GET requests) */
  credentials: Record<string, any>;

  /** Group category (e.g., 'oauth_connections_creds', 'vector_db_creds'

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

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

Get a free API key