import type { AIProjectContext } from "../../../api/aiProjectContext.js"; import type { BetaAgentsDeleteSessionFileOptionalParams, BetaAgentsListSessionFilesOptionalParams, BetaAgentsDownloadSessionFileOptionalParams, BetaAgentsUploadSessionFileOptionalParams, BetaAgentsListSessionsOptionalParams, BetaAgentsDeleteSessionOptionalParams, BetaAgentsGetSessionOptionalParams, BetaAgentsCreateSessionOptionalParams, BetaAgentsPatchAgentObjectOptionalParams } from "../../../api/beta/agents/options.js"; import type { Agent, VersionIndicatorUnion, AgentSessionResource, SessionFileWriteResponse, SessionDirectoryListResponse, BetaAgentsDownloadSessionFileResponse } from "../../../models/models.js"; import type { PagedAsyncIterableIterator } from "@azure/core-paging"; /** Interface representing a BetaAgents operations. */ export interface BetaAgentsOperations { /** * Delete a file or directory from the session sandbox. * If `recursive` is false (default) and the target is a non-empty directory, the API returns 409 Conflict. */ deleteSessionFile: (agentName: string, sessionId: string, path: string, options?: BetaAgentsDeleteSessionFileOptionalParams) => Promise; /** * List files and directories at a given path in the session sandbox. * Returns only the immediate children of the specified directory (non-recursive). */ listSessionFiles: (agentName: string, sessionId: string, path: string, options?: BetaAgentsListSessionFilesOptionalParams) => Promise; /** Download a file from the session sandbox as a binary stream. */ downloadSessionFile: (agentName: string, sessionId: string, path: string, options?: BetaAgentsDownloadSessionFileOptionalParams) => Promise; /** * Upload a file to the session sandbox via binary stream. * Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large. */ uploadSessionFile: (agentName: string, sessionId: string, path: string, content: Uint8Array, options?: BetaAgentsUploadSessionFileOptionalParams) => Promise; /** Returns a list of sessions for the specified agent. */ listSessions: (agentName: string, options?: BetaAgentsListSessionsOptionalParams) => PagedAsyncIterableIterator; /** * Deletes a session synchronously. * Returns 204 No Content when the session is deleted or does not exist. */ deleteSession: (agentName: string, sessionId: string, isolationKey: string, options?: BetaAgentsDeleteSessionOptionalParams) => Promise; /** Retrieves a session by ID. */ getSession: (agentName: string, sessionId: string, options?: BetaAgentsGetSessionOptionalParams) => Promise; /** * Creates a new session for an agent endpoint. * The endpoint resolves the backing agent version from `version_indicator` and * enforces session ownership using the provided isolation key for session-mutating operations. */ createSession: (agentName: string, isolationKey: string, versionIndicator: VersionIndicatorUnion, options?: BetaAgentsCreateSessionOptionalParams) => Promise; /** Updates an agent endpoint. */ patchAgent: (agentName: string, options?: BetaAgentsPatchAgentObjectOptionalParams) => Promise; } export declare function _getBetaAgentsOperations(context: AIProjectContext): BetaAgentsOperations; //# sourceMappingURL=index.d.ts.map