mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 22:10:21 +08:00
- Introduced common types and validation utilities in common.types.ts - Unified export of all schemas in index.ts for easier access - Defined model configuration schemas including capabilities, pricing, and reasoning in model.schema.ts - Created provider model override schemas to manage provider-specific configurations in override.schema.ts - Established provider configuration schemas detailing metadata, capabilities, and behaviors in provider.schema.ts
50 lines
958 B
TypeScript
50 lines
958 B
TypeScript
/**
|
|
* Unified export of all catalog schemas and types
|
|
* This file provides a single entry point for all schema definitions
|
|
*/
|
|
|
|
// Export all schemas from common types
|
|
export * from './common.types'
|
|
|
|
// Export model schemas
|
|
export * from './model.schema'
|
|
|
|
// Export provider schemas
|
|
export * from './provider.schema'
|
|
|
|
// Export override schemas
|
|
export * from './override.schema'
|
|
|
|
// Re-export commonly used combined types for convenience
|
|
export type {
|
|
Modality,
|
|
ModelCapabilityType,
|
|
ModelConfig,
|
|
ModelPricing,
|
|
ParameterSupport,
|
|
Reasoning
|
|
} from './model.schema'
|
|
export type {
|
|
OverrideResult,
|
|
OverrideValidation,
|
|
ProviderModelOverride
|
|
} from './override.schema'
|
|
export type {
|
|
Authentication,
|
|
EndpointType,
|
|
McpSupport,
|
|
PricingModel,
|
|
ProviderBehaviors,
|
|
ProviderConfig
|
|
} from './provider.schema'
|
|
|
|
// Export common types
|
|
export type {
|
|
Currency,
|
|
Metadata,
|
|
ModelId,
|
|
ProviderId,
|
|
Timestamp,
|
|
Version
|
|
} from './common.types'
|