import type { Provider } from '../types.js'; export type AppRecord = { readonly id: string; readonly builderId: string; readonly name: string; readonly callbackUrl: string; readonly requiredProviders: readonly Provider[]; readonly preferredProviders: readonly Provider[]; readonly allowSubstitution: boolean; readonly allowedModels?: readonly string[]; /** * Scope flag — explicit user consent required before the proxy lets * this app call Anthropic's Managed Agents endpoints * (/v1/agents, /v1/environments, /v1/sessions, /v1/vaults, /v1/files). * Those endpoints create long-running server-side work billed at * $0.08/hr runtime plus tokens, so we require a separate yes/no. */ readonly allowsManagedAgents?: boolean; readonly websiteUrl?: string; readonly description?: string; readonly createdAt: string; }; export type CreatedApp = AppRecord & { readonly appSecret: string; }; export type CreateAppInput = { readonly name: string; readonly callbackUrl: string; readonly requiredProviders: readonly Provider[]; readonly preferredProviders?: readonly Provider[]; readonly allowSubstitution?: boolean; readonly allowedModels?: readonly string[]; readonly allowsManagedAgents?: boolean; readonly websiteUrl?: string; readonly description?: string; }; export type UpdateAppInput = Partial; export type ApiKeyRecord = { readonly id: string; readonly userId: string; readonly provider: Provider; readonly keyHint: string; readonly isActive: boolean; readonly createdAt: string; }; export type AddApiKeyInput = { readonly apiKey: string; readonly provider?: Provider; }; export type AuthorizeInput = { readonly clientId: string; readonly redirectUri: string; readonly budgetLimit: number; readonly state?: string; }; export type AuthorizeResult = { readonly redirect_to: string; readonly code: string; }; export type ExchangeInput = { readonly code: string; readonly clientId: string; readonly clientSecret: string; readonly redirectUri: string; }; export type ExchangeResult = { readonly access_token: string; readonly token_type: string; }; export type ConnectionRecord = { readonly id: string; readonly appId: string; readonly appName: string; readonly appWebsiteUrl: string | null; readonly appDescription: string | null; readonly budgetLimit: number; readonly budgetSpent: number; readonly isSuspended: boolean; readonly createdAt: string; }; export type ConnectionStats = { readonly totalRequests: number; readonly totalTokens: number; readonly totalCost: number; }; export type SpendingFilters = { readonly appId?: string; readonly from?: string; readonly to?: string; readonly limit?: number; readonly offset?: number; }; export type SpendingEntry = { readonly id: string; readonly appName: string; readonly provider: string; readonly model: string; readonly inputTokens: number; readonly outputTokens: number; readonly costUsd: number; readonly platformFeeUsd: number; readonly createdAt: string; }; export type RegisterUserInput = { readonly email: string; readonly password: string; }; export type RegisterUserResult = { readonly userId: string; readonly token: string; }; export type LoginInput = RegisterUserInput; export type LoginResult = { readonly token: string; }; export type Me = { readonly userId: string; readonly email: string; }; export type CreateTokenInput = { readonly name: string; }; export type PatRecord = { readonly id: string; readonly name: string; readonly keyHint: string; readonly createdAt: string; readonly lastUsedAt: string | null; }; export type CreatedPat = PatRecord & { readonly token: string; }; //# sourceMappingURL=types.d.ts.map