12 lines
869 B
TypeScript
12 lines
869 B
TypeScript
export interface CatalogModel {
|
|
id: string; name: string; owner: string; lifecycle: string | null; contextLimit: number | null; maxOutputTokens: number | null;
|
|
capabilityDeclarations: Record<string, string>; features: Record<string, string>; efforts: string[]; modes: string[]; parameters: string[]; metadataSource: string;
|
|
}
|
|
export interface CatalogPreview {
|
|
id: string; entries: CatalogModel[]; fetchedAt: string; expiresAt: string; complete: boolean; warning: string;
|
|
source: { name: string; baseUrl: string; protocol: string }; limits: { connections: number; poolMembers: number; catalog: number };
|
|
}
|
|
export function catalogRoute(config: { protocol?: string; baseUrl: string }): string;
|
|
export function catalogModel(item: unknown): CatalogModel;
|
|
export function catalogPage(response: unknown): { entries: CatalogModel[]; hasMore: boolean; cursor: string };
|