cloudflare
Version:
The official TypeScript library for the Cloudflare API
21 lines • 971 B
TypeScript
import { APIResource } from "../../core/resource.js";
import { PagePromise, SinglePage } from "../../core/pagination.js";
import { RequestOptions } from "../../internal/request-options.js";
export declare class BaseTasks extends APIResource {
static readonly _key: readonly ['ai', 'tasks'];
/**
* Searches Workers AI models by task type (e.g., text-generation, embeddings).
*/
list(params: TaskListParams, options?: RequestOptions): PagePromise<TaskListResponsesSinglePage, TaskListResponse>;
}
export declare class Tasks extends BaseTasks {
}
export type TaskListResponsesSinglePage = SinglePage<TaskListResponse>;
export type TaskListResponse = unknown;
export interface TaskListParams {
account_id: string;
}
export declare namespace Tasks {
export { type TaskListResponse as TaskListResponse, type TaskListResponsesSinglePage as TaskListResponsesSinglePage, type TaskListParams as TaskListParams, };
}
//# sourceMappingURL=tasks.d.ts.map