@cherrystudio/provider-registry 0.2.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -3927,6 +3927,11 @@ declare function supportsServerToolFunctionMixing(rawModelId: string): boolean;
3927
3927
  declare function isWebSearchEffortUnsupported(rawModelId: string, effort: string): boolean;
3928
3928
  //#endregion
3929
3929
  //#region src/patterns/serverToolModelEligibility.d.ts
3930
- declare function isServerToolModelEligible(rawModelId: string, providerId: string, tool: ServerTool): boolean;
3930
+ /**
3931
+ * A model is eligible when SOME declaration claims it and — once the caller pins the request's
3932
+ * endpoint — that same declaration serves the endpoint. An undefined endpoint never excludes by
3933
+ * endpoint, so broad "is this model declared" queries keep working.
3934
+ */
3935
+ declare function isServerToolModelEligible(rawModelId: string, providerId: string, tool: ServerTool, endpointType?: EndpointType): boolean;
3931
3936
  //#endregion
3932
3937
  export { CANONICAL_PARAM_KEY, CURRENCY, type CanonicalParamKey, type CatalogManifest, CatalogManifestSchema, type Currency, type DerivedReasoningFields, ENDPOINT_TYPE, type EndpointDialect, type EndpointType, FastModeTransportSchema, IMAGE_PARAM_CATALOG, IMAGE_PARAM_CATALOG_KEYS, type ImageGenerationMode, ImageGenerationModeSchema, type ImageGenerationSupport, ImageGenerationSupportSchema, type ImageModeDef, type ImageParamCatalogEntry, MODALITY, MODEL_CAPABILITY, type Modality, type ModelCapability, type ModelConfig, type ModelConfig as ProtoModelConfig, ModelConfigSchema, ModelListSchema, type ModelLookupResult, type ModelPricing, type ModelPricing as ProtoModelPricing, type ModelSnapshot, type ParamValue, type ParamValues, type PersistedEndpointConfig, type ProviderConfig as ProtoProviderConfig, type ProviderConfig, type ProviderModelOverride as ProtoProviderModelOverride, type ProviderModelOverride, type ProviderReasoningFormat as ProtoProviderReasoningFormat, type ProviderReasoningFormat, type ReasoningSupport as ProtoReasoningSupport, type ReasoningSupport, ProviderConfigSchema, type ProviderEdition, ProviderEditionSchema, ProviderListSchema, ProviderModelListSchema, ProviderModelOverrideSchema, type ProviderModelReasoningContract, ProviderModelReasoningContractSchema, REASONING_EFFORT, REASONING_EFFORT_ORDER, REASONING_FORMAT_PROFILES, REASONING_FORMAT_TYPES, REASONING_WIRE_TARGETS, REGISTRY_FILES, REGISTRY_MIN_APP_VERSION, REGISTRY_SCHEMA_VERSION, REMOTE_REGISTRY_FILES, type ReasoningControl, ReasoningControlSchema, type ReasoningEffort, type ReasoningFormatType, type ReasoningFormatWireProfile, ReasoningFormatWireProfileSchema, type ReasoningWireDialect, type ReasoningWireMode, type ReasoningWireOperation, type ReasoningWireProfile, ReasoningWireProfileSchema, type ReasoningWireTarget, type ReasoningWireValue, type Registry, type RegistryCatalog, type RegistryEndpointConfig, type RegistryFileName, type RemoteRegistryFileName, SERVER_TOOL, SERVER_TOOL_MODEL_SCOPE, type ServerTool, type ServerToolConfig, ServerToolConfigSchema, type ServerToolModelScope, type ServiceTierDelivery, ServiceTierDeliverySchema, type ServiceTierOptions, ServiceTierOptionsSchema, type ServiceTierRequestControl, ServiceTierRequestControlSchema, type ServiceTierSelection, ServiceTierSelectionSchema, type SupportSpec, VENDOR_PATTERNS, type VendorKey, buildParamsSchema, buildPersistedEndpointConfigs, configureOpenAIResponsesSummary, createRegistry, deriveLegacyReasoningFields, endpointImpliedCapability, imageParamsSchema, inferAdapterFamily, inferReasoningControls, inferReasoningMembership, inferReasoningOwnedBy, isServerToolModelEligible, isVendor, isWebSearchEffortUnsupported, lookupRegistryModel, lookupRegistryProvider, matchVendor, normalizeImageParamNumber, normalizeModelId, objectValues, openaiResponsesSummaryWire, paramCatalogEntry, parseImageParamValue, parseModelSnapshot, selectFormatWire, stripBedrockDottedVendorPrefix, stripBedrockRevision, stripDateSnapshot, stripVariantQuantDateSuffixes, supportsServerToolFunctionMixing, wireName };
package/dist/index.d.mts CHANGED
@@ -3927,6 +3927,11 @@ declare function supportsServerToolFunctionMixing(rawModelId: string): boolean;
3927
3927
  declare function isWebSearchEffortUnsupported(rawModelId: string, effort: string): boolean;
3928
3928
  //#endregion
3929
3929
  //#region src/patterns/serverToolModelEligibility.d.ts
3930
- declare function isServerToolModelEligible(rawModelId: string, providerId: string, tool: ServerTool): boolean;
3930
+ /**
3931
+ * A model is eligible when SOME declaration claims it and — once the caller pins the request's
3932
+ * endpoint — that same declaration serves the endpoint. An undefined endpoint never excludes by
3933
+ * endpoint, so broad "is this model declared" queries keep working.
3934
+ */
3935
+ declare function isServerToolModelEligible(rawModelId: string, providerId: string, tool: ServerTool, endpointType?: EndpointType): boolean;
3931
3936
  //#endregion
3932
3937
  export { CANONICAL_PARAM_KEY, CURRENCY, type CanonicalParamKey, type CatalogManifest, CatalogManifestSchema, type Currency, type DerivedReasoningFields, ENDPOINT_TYPE, type EndpointDialect, type EndpointType, FastModeTransportSchema, IMAGE_PARAM_CATALOG, IMAGE_PARAM_CATALOG_KEYS, type ImageGenerationMode, ImageGenerationModeSchema, type ImageGenerationSupport, ImageGenerationSupportSchema, type ImageModeDef, type ImageParamCatalogEntry, MODALITY, MODEL_CAPABILITY, type Modality, type ModelCapability, type ModelConfig, type ModelConfig as ProtoModelConfig, ModelConfigSchema, ModelListSchema, type ModelLookupResult, type ModelPricing, type ModelPricing as ProtoModelPricing, type ModelSnapshot, type ParamValue, type ParamValues, type PersistedEndpointConfig, type ProviderConfig as ProtoProviderConfig, type ProviderConfig, type ProviderModelOverride as ProtoProviderModelOverride, type ProviderModelOverride, type ProviderReasoningFormat as ProtoProviderReasoningFormat, type ProviderReasoningFormat, type ReasoningSupport as ProtoReasoningSupport, type ReasoningSupport, ProviderConfigSchema, type ProviderEdition, ProviderEditionSchema, ProviderListSchema, ProviderModelListSchema, ProviderModelOverrideSchema, type ProviderModelReasoningContract, ProviderModelReasoningContractSchema, REASONING_EFFORT, REASONING_EFFORT_ORDER, REASONING_FORMAT_PROFILES, REASONING_FORMAT_TYPES, REASONING_WIRE_TARGETS, REGISTRY_FILES, REGISTRY_MIN_APP_VERSION, REGISTRY_SCHEMA_VERSION, REMOTE_REGISTRY_FILES, type ReasoningControl, ReasoningControlSchema, type ReasoningEffort, type ReasoningFormatType, type ReasoningFormatWireProfile, ReasoningFormatWireProfileSchema, type ReasoningWireDialect, type ReasoningWireMode, type ReasoningWireOperation, type ReasoningWireProfile, ReasoningWireProfileSchema, type ReasoningWireTarget, type ReasoningWireValue, type Registry, type RegistryCatalog, type RegistryEndpointConfig, type RegistryFileName, type RemoteRegistryFileName, SERVER_TOOL, SERVER_TOOL_MODEL_SCOPE, type ServerTool, type ServerToolConfig, ServerToolConfigSchema, type ServerToolModelScope, type ServiceTierDelivery, ServiceTierDeliverySchema, type ServiceTierOptions, ServiceTierOptionsSchema, type ServiceTierRequestControl, ServiceTierRequestControlSchema, type ServiceTierSelection, ServiceTierSelectionSchema, type SupportSpec, VENDOR_PATTERNS, type VendorKey, buildParamsSchema, buildPersistedEndpointConfigs, configureOpenAIResponsesSummary, createRegistry, deriveLegacyReasoningFields, endpointImpliedCapability, imageParamsSchema, inferAdapterFamily, inferReasoningControls, inferReasoningMembership, inferReasoningOwnedBy, isServerToolModelEligible, isVendor, isWebSearchEffortUnsupported, lookupRegistryModel, lookupRegistryProvider, matchVendor, normalizeImageParamNumber, normalizeModelId, objectValues, openaiResponsesSummaryWire, paramCatalogEntry, parseImageParamValue, parseModelSnapshot, selectFormatWire, stripBedrockDottedVendorPrefix, stripBedrockRevision, stripDateSnapshot, stripVariantQuantDateSuffixes, supportsServerToolFunctionMixing, wireName };