fiemwl / src /types /provider.ts
automindy's picture
Upload 1980 files
6111b2b verified
Raw
History Blame Contribute Delete
831 Bytes
/**
* Provider connection — a configured cloud AI provider account.
*/
export interface ProviderConnection {
id: string;
provider: string;
label: string;
url: string;
apiKey?: string;
oauthToken?: string;
oauthRefreshToken?: string;
oauthExpiresAt?: string;
isActive: boolean;
priority: number;
createdAt: string;
updatedAt: string;
}
/**
* Provider node — a specific endpoint within a provider.
*/
export interface ProviderNode {
id: string;
connectionId: string;
provider: string;
model: string;
baseUrl: string;
isActive: boolean;
priority: number;
}
export interface ModelCooldownErrorPayload {
error: {
message: string;
type: "rate_limit_error";
code: "model_cooldown";
model?: string;
reset_seconds: number;
};
}