UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

58 lines • 2.18 kB
import { APIResource } from "../../../core/resource.js"; import * as SchemaAPI from "./schema.js"; import { BaseSchema, Schema, SchemaGetParams, SchemaGetResponse } from "./schema.js"; import { PagePromise, V4PagePaginationArray, type V4PagePaginationArrayParams } from "../../../core/pagination.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class BaseModels extends APIResource { static readonly _key: readonly ['ai', 'models']; /** * Searches Workers AI models by name or description. */ list(params: ModelListParams, options?: RequestOptions): PagePromise<ModelListResponsesV4PagePaginationArray, ModelListResponse>; } export declare class Models extends BaseModels { schema: SchemaAPI.Schema; } export type ModelListResponsesV4PagePaginationArray = V4PagePaginationArray<ModelListResponse>; export type ModelListResponse = unknown; export interface ModelListParams extends V4PagePaginationArrayParams { /** * Path param */ account_id: string; /** * Query param: Filter by Author. */ author?: string; /** * Query param: If set, return models in the requested marketplace format instead * of the default response. */ format?: 'openrouter'; /** * Query param: Filter to hide experimental models. */ hide_experimental?: boolean; /** * Query param: If true, include models for up to three months after their * deprecation date. Defaults to false. */ include_deprecated?: boolean; /** * Query param: Search. */ search?: string; /** * Query param: Filter by Source Id. */ source?: number; /** * Query param: Filter by Task Name. */ task?: string; } export declare namespace Models { export { type ModelListResponse as ModelListResponse, type ModelListResponsesV4PagePaginationArray as ModelListResponsesV4PagePaginationArray, type ModelListParams as ModelListParams, }; export { Schema as Schema, BaseSchema as BaseSchema, type SchemaGetResponse as SchemaGetResponse, type SchemaGetParams as SchemaGetParams, }; } //# sourceMappingURL=models.d.ts.map