cloudflare
Version:
The official TypeScript library for the Cloudflare API
44 lines • 1.44 kB
TypeScript
import { APIResource } from "../../../core/resource.js";
import { PagePromise, SinglePage } from "../../../core/pagination.js";
import { RequestOptions } from "../../../internal/request-options.js";
export declare class BasePublic extends APIResource {
static readonly _key: readonly ['ai', 'finetunes', 'public'];
/**
* Lists publicly available fine-tuned models that can be used with Workers AI.
*/
list(params: PublicListParams, options?: RequestOptions): PagePromise<PublicListResponsesSinglePage, PublicListResponse>;
}
export declare class Public extends BasePublic {
}
export type PublicListResponsesSinglePage = SinglePage<PublicListResponse>;
export interface PublicListResponse {
id: string;
created_at: string;
model: string;
modified_at: string;
name: string;
public: boolean;
description?: string;
}
export interface PublicListParams {
/**
* Path param
*/
account_id: string;
/**
* Query param: Pagination Limit.
*/
limit?: number;
/**
* Query param: Pagination Offset.
*/
offset?: number;
/**
* Query param: Order By Column Name.
*/
orderBy?: string;
}
export declare namespace Public {
export { type PublicListResponse as PublicListResponse, type PublicListResponsesSinglePage as PublicListResponsesSinglePage, type PublicListParams as PublicListParams, };
}
//# sourceMappingURL=public.d.ts.map