/** * Content namespace — public read-only metadata about Runware's curated model * catalog. Hits the content service directly (no API key required at the * service level, but the SDK config still supplies the fetch implementation * so consumers can route through proxies / mock for tests). * * For the inference surface (`run`, `stream`, etc.), use the top-level client * methods. This namespace is purely informational. */ import type { SDKConfig } from './types/sdk'; import type { ModelMetadata, CollectionWithModels, CreatorWithModels, Capability, ExampleMetadata, PricingModelListItem, GuideMetadata, PaginatedResponse, ListModelsOptions, ListCollectionsOptions, GetModelExamplesOptions } from './types/content'; export type ContentClient = { /** * List curated models from the Runware catalog. Returns an array by default * — pass `paginate: true` to get `{ total, limit, offset, items }`. * * Common filters: `capability` (e.g. `io:text-to-image`), `category` * (`image` | `video` | `audio` | `text` | `3d`), `creator` (creator id). */ listModels: { (opts?: ListModelsOptions & { paginate?: false; }): Promise; (opts: ListModelsOptions & { paginate: true; }): Promise>; }; /** Single curated model by id. Returns `null` if not found or not public. */ getModel: (modelId: string) => Promise; /** Example outputs for a curated model, optionally filtered by capability. */ getModelExamples: (modelId: string, opts?: GetModelExamplesOptions) => Promise; /** Pricing summary for a single curated model. Null if model has no pricing. */ getModelPricing: (modelId: string) => Promise; /** Written guides attached to a curated model. */ getModelGuides: (modelId: string) => Promise; /** * List curated collections (Runware-defined model groupings). Each * collection's `models` field is resolved to full ModelMetadata objects. */ listCollections: (opts?: ListCollectionsOptions) => Promise; /** Single collection by id. Returns `null` if not found. */ getCollection: (collectionId: string) => Promise; /** All capability metadata (`io:*`, `op:*`, `form:*` taxonomies). */ listCapabilities: () => Promise; /** All creators, each with their curated models inlined. */ listCreators: () => Promise; /** Single creator by id, with their curated models inlined. */ getCreator: (creatorId: string) => Promise; }; export declare const createContentClient: (config: SDKConfig) => ContentClient; //# sourceMappingURL=content.d.ts.map