src/types.ts

Agentic-Tool-Optimization · packages/core/src/types.ts · typescript · MIT
ai

Shared TypeScript interfaces for users, sessions, usage, skills, servers, and API responses.

// Source: https://github.com/WillNigri/Agentic-Tool-Optimization | License: MIT | Copyright 2026 ClaudeScope Contributors
// Provided via justclaw.it.com; keep this notice with the code.
// ============================================================
// ClaudeScope Core Types
// Shared types used by both desktop app and cloud services.
// No database dependencies — pure TypeScript interfaces.
// ============================================================

// --- User ---
export interface User {
  id: string;
  email: string;
  name: string;
  password_hash: string;
  avatar_url: string | null;
  created_at: string;
  updated_at: string;
}

// Never include password_hash in API responses
export type SafeUser = Omit<User, 'password_hash'>;

export interface CreateUserRequest {
  email: str

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

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

Get a free API key