import type { AIProjectContext as Client } from "../../index.js"; import type { Agent, VersionIndicatorUnion, AgentSessionResource, _AgentsPagedResultAgentSessionResource, SessionFileWriteResponse, SessionDirectoryListResponse, BetaAgentsDownloadSessionFileResponse } from "../../../models/models.js"; import type { PagedAsyncIterableIterator } from "@azure/core-paging"; import type { BetaAgentsDeleteSessionFileOptionalParams, BetaAgentsListSessionFilesOptionalParams, BetaAgentsDownloadSessionFileOptionalParams, BetaAgentsUploadSessionFileOptionalParams, BetaAgentsListSessionsOptionalParams, BetaAgentsDeleteSessionOptionalParams, BetaAgentsGetSessionOptionalParams, BetaAgentsCreateSessionOptionalParams, BetaAgentsPatchAgentObjectOptionalParams } from "./options.js"; import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client"; export declare function _deleteSessionFileSend(context: Client, agentName: string, sessionId: string, path: string, options?: BetaAgentsDeleteSessionFileOptionalParams): StreamableMethod; export declare function _deleteSessionFileDeserialize(result: PathUncheckedResponse): Promise; /** * 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. */ export declare function deleteSessionFile(context: Client, agentName: string, sessionId: string, path: string, options?: BetaAgentsDeleteSessionFileOptionalParams): Promise; export declare function _listSessionFilesSend(context: Client, agentName: string, sessionId: string, path: string, options?: BetaAgentsListSessionFilesOptionalParams): StreamableMethod; export declare function _listSessionFilesDeserialize(result: PathUncheckedResponse): Promise; /** * List files and directories at a given path in the session sandbox. * Returns only the immediate children of the specified directory (non-recursive). */ export declare function listSessionFiles(context: Client, agentName: string, sessionId: string, path: string, options?: BetaAgentsListSessionFilesOptionalParams): Promise; export declare function _downloadSessionFileSend(context: Client, agentName: string, sessionId: string, path: string, options?: BetaAgentsDownloadSessionFileOptionalParams): StreamableMethod; export declare function _downloadSessionFileDeserialize(result: PathUncheckedResponse & BetaAgentsDownloadSessionFileResponse): Promise; /** Download a file from the session sandbox as a binary stream. */ export declare function downloadSessionFile(context: Client, agentName: string, sessionId: string, path: string, options?: BetaAgentsDownloadSessionFileOptionalParams): Promise; export declare function _uploadSessionFileSend(context: Client, agentName: string, sessionId: string, path: string, content: Uint8Array, options?: BetaAgentsUploadSessionFileOptionalParams): StreamableMethod; export declare function _uploadSessionFileDeserialize(result: PathUncheckedResponse): 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. */ export declare function uploadSessionFile(context: Client, agentName: string, sessionId: string, path: string, content: Uint8Array, options?: BetaAgentsUploadSessionFileOptionalParams): Promise; export declare function _listSessionsSend(context: Client, agentName: string, options?: BetaAgentsListSessionsOptionalParams): StreamableMethod; export declare function _listSessionsDeserialize(result: PathUncheckedResponse): Promise<_AgentsPagedResultAgentSessionResource>; /** Returns a list of sessions for the specified agent. */ export declare function listSessions(context: Client, agentName: string, options?: BetaAgentsListSessionsOptionalParams): PagedAsyncIterableIterator; export declare function _deleteSessionSend(context: Client, agentName: string, sessionId: string, isolationKey: string, options?: BetaAgentsDeleteSessionOptionalParams): StreamableMethod; export declare function _deleteSessionDeserialize(result: PathUncheckedResponse): Promise; /** * Deletes a session synchronously. * Returns 204 No Content when the session is deleted or does not exist. */ export declare function deleteSession(context: Client, agentName: string, sessionId: string, isolationKey: string, options?: BetaAgentsDeleteSessionOptionalParams): Promise; export declare function _getSessionSend(context: Client, agentName: string, sessionId: string, options?: BetaAgentsGetSessionOptionalParams): StreamableMethod; export declare function _getSessionDeserialize(result: PathUncheckedResponse): Promise; /** Retrieves a session by ID. */ export declare function getSession(context: Client, agentName: string, sessionId: string, options?: BetaAgentsGetSessionOptionalParams): Promise; export declare function _createSessionSend(context: Client, agentName: string, isolationKey: string, versionIndicator: VersionIndicatorUnion, options?: BetaAgentsCreateSessionOptionalParams): StreamableMethod; export declare function _createSessionDeserialize(result: PathUncheckedResponse): 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. */ export declare function createSession(context: Client, agentName: string, isolationKey: string, versionIndicator: VersionIndicatorUnion, options?: BetaAgentsCreateSessionOptionalParams): Promise; export declare function _patchAgentObjectSend(context: Client, agentName: string, options?: BetaAgentsPatchAgentObjectOptionalParams): StreamableMethod; export declare function _patchAgentObjectDeserialize(result: PathUncheckedResponse): Promise; /** Updates an agent endpoint. */ export declare function patchAgentObject(context: Client, agentName: string, options?: BetaAgentsPatchAgentObjectOptionalParams): Promise; //# sourceMappingURL=operations.d.ts.map