UNPKG

@anthropic-ai/sdk

Version:
42 lines • 1.7 kB
import { APIResource } from "../../../core/resource.js"; import * as BetaAPI from "../beta.js"; import * as AgentsAPI from "./agents.js"; import { BetaManagedAgentsAgentsPageCursor } from "./agents.js"; import { type PageCursorParams, PagePromise } from "../../../core/pagination.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class Versions extends APIResource { /** * List Agent Versions * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const betaManagedAgentsAgent of client.beta.agents.versions.list( * 'agent_011CZkYpogX7uDKUyvBTophP', * )) { * // ... * } * ``` */ list(agentID: string, params?: VersionListParams | null | undefined, options?: RequestOptions): PagePromise<BetaManagedAgentsAgentsPageCursor, AgentsAPI.BetaManagedAgentsAgent>; } export interface VersionListParams extends PageCursorParams { /** * Header param: Optional header to specify the beta version(s) you want to use. */ betas?: Array<BetaAPI.AnthropicBeta>; /** * Header param: Optional header to select the Workspace for this request. The * value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`). * * Only needed for credentials that can act on more than one Workspace. A * credential that belongs to a specific Workspace may omit it; if sent, it must * match that Workspace. */ workspace_id?: string; } export declare namespace Versions { export { type VersionListParams as VersionListParams }; } export { type BetaManagedAgentsAgentsPageCursor }; //# sourceMappingURL=versions.d.ts.map