UNPKG

test-wuying-agentbay-sdk

Version:

TypeScript SDK for interacting with the Wuying AgentBay cloud runtime environment

2,131 lines (2,037 loc) 229 kB
import * as $dara from '@darabonba/typescript'; import OpenApi, { $OpenApiUtil } from '@alicloud/openapi-core'; interface Config { endpoint: string; timeout_ms: number; } /** * Version information for the AgentBay SDK * Automatically read from package.json */ declare const VERSION: string; declare const IS_RELEASE: boolean; /** * Base interface for API responses */ interface ApiResponse { /** Optional request identifier for tracking API calls */ requestId?: string; /** Optional error message if the operation failed */ errorMessage?: string; /** Optional status code if the operation failed */ success?: boolean; } /** * Generic interface for API responses that include data payload * @template T The type of the data being returned */ interface ApiResponseWithData<T> extends ApiResponse { /** The actual data payload returned by the API */ session?: T; data?: T; } /** * Interface for delete operation responses */ interface DeleteResult extends ApiResponse { /** Whether the delete operation was successful */ success: boolean; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for GetSession data */ interface GetSessionData { /** Application instance ID */ appInstanceId: string; /** Resource ID */ resourceId: string; /** Session ID */ sessionId: string; /** Success status */ success: boolean; /** HTTP port for VPC sessions */ httpPort: string; /** Network interface IP for VPC sessions */ networkInterfaceIp: string; /** Token for VPC sessions */ token: string; /** Whether this session uses VPC resources */ vpcResource: boolean; /** Resource URL for accessing the session */ resourceUrl: string; /** Current status of the session */ status: string; } /** * Interface for GetSession operation responses */ interface GetSessionResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** HTTP status code */ httpStatusCode: number; /** Response code */ code: string; /** Whether the operation was successful */ success: boolean; /** Session data */ data?: GetSessionData; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for session creation operation responses * Corresponds to Python's SessionResult type */ interface SessionResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the session creation was successful */ success: boolean; /** The created session object (only present if successful) */ session?: any; /** Error message if the operation failed */ errorMessage?: string; } /** * Interface for operation results * Corresponds to Python's OperationResult type */ interface OperationResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** Optional data payload */ data?: any; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for command execution operation responses * Corresponds to Python's CommandResult type */ interface CommandResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the command execution was successful */ success: boolean; /** The command output */ output: string; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for code execution operation responses * Corresponds to Python's CodeExecutionResult type */ interface CodeExecutionResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the code execution was successful */ success: boolean; /** The execution result */ result: string; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for boolean operation responses * Corresponds to Python's BoolResult type */ interface BoolResult$2 extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** Boolean data result */ data?: boolean; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for file info operation responses * Corresponds to Python's FileInfoResult type */ interface FileInfoResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** File information object */ fileInfo?: Record<string, any>; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for directory list operation responses * Corresponds to Python's DirectoryListResult type */ interface DirectoryListResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** Directory entries */ entries: Record<string, any>[]; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for file content operation responses * Corresponds to Python's FileContentResult type */ interface FileContentResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** File content */ content: string; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for multiple file content operation responses * Corresponds to Python's MultipleFileContentResult type */ interface MultipleFileContentResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** Multiple file contents */ contents: Record<string, string>; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for file search operation responses * Corresponds to Python's FileSearchResult type */ interface FileSearchResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** Matching file paths */ matches: string[]; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for OSS client creation operation responses * Corresponds to Python's OSSClientResult type */ interface OSSClientResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** OSS client configuration */ clientConfig: Record<string, any>; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for OSS upload operation responses * Corresponds to Python's OSSUploadResult type */ interface OSSUploadResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** Result of the upload operation */ content: string; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for OSS download operation responses * Corresponds to Python's OSSDownloadResult type */ interface OSSDownloadResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** Result of the download operation */ content: string; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for window list operation responses * Corresponds to Python's WindowListResult type */ interface WindowListResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** List of windows */ windows: any[]; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for window info operation responses * Corresponds to Python's WindowInfoResult type */ interface WindowInfoResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** Window object */ window?: any; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for context operation responses * Corresponds to Python's ContextResult type */ interface ContextResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** The context ID */ contextId: string; /** The context object (only present if successful) */ context?: any; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Interface for context list operation responses * Corresponds to Python's ContextListResult type */ interface ContextListResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** List of contexts */ contexts: any[]; /** Token for the next page of results */ nextToken?: string; /** Maximum number of results per page */ maxResults?: number; /** Total number of contexts available */ totalCount?: number; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Result of a presigned URL request */ interface FileUrlResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** The presigned URL */ url: string; /** Optional expire time (epoch seconds) */ expireTime?: number; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Represents a file item in a context */ interface ContextFileEntry { fileId?: string; fileName?: string; filePath: string; fileType?: string; gmtCreate?: string; gmtModified?: string; size?: number; status?: string; } /** * Result of context file listing */ interface ContextFileListResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** File entries under a folder */ entries: ContextFileEntry[]; /** Optional total count returned by backend */ count?: number; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Helper function to extract request ID from API responses */ declare function extractRequestId(response: any): string | undefined; /** * Result of context clear operations, including the real-time status. * Corresponds to Python's ClearContextResult type */ interface ClearContextResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the operation was successful */ success: boolean; /** Current status of the clearing task. This corresponds to the context's state field. Possible values: - "clearing": Context data is being cleared (in progress) - "available": Clearing completed successfully - Other values may indicate the context state after clearing */ status?: string; /** The unique identifier of the context being cleared */ contextId?: string; /** Optional error message if the operation failed */ errorMessage?: string; } /** * Result of session pause operations. */ interface SessionPauseResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the pause operation was successful */ success: boolean; /** Error message if the operation failed */ errorMessage?: string; /** API error code */ code?: string; /** Detailed error message from API */ message?: string; /** HTTP status code */ httpStatusCode?: number; /** Current status of the session. Possible values: "RUNNING", "PAUSED", "PAUSING" */ status?: string; } /** * Result of session resume operations. */ interface SessionResumeResult extends ApiResponse { /** Request identifier for tracking API calls */ requestId: string; /** Whether the resume operation was successful */ success: boolean; /** Error message if the operation failed */ errorMessage?: string; /** API error code */ code?: string; /** Detailed error message from API */ message?: string; /** HTTP status code */ httpStatusCode?: number; /** Current status of the session. Possible values: "RUNNING", "PAUSED", "RESUMING" */ status?: string; } /** */ declare class ApplyMqttTokenResponseBodyData extends $dara.Model { accessKeyId?: string; clientId?: string; expiration?: string; instanceId?: string; regionId?: string; securityToken?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class CreateMcpSessionRequestPersistenceDataList extends $dara.Model { contextId?: string; path?: string; policy?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class CreateMcpSessionResponseBodyData extends $dara.Model { appInstanceId?: string; errMsg?: string; httpPort?: string; networkInterfaceIp?: string; resourceId?: string; resourceUrl?: string; sessionId?: string; success?: boolean; token?: string; vpcResource?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextResponseBodyData extends $dara.Model { createTime?: string; id?: string; lastUsedTime?: string; name?: string; osType?: string; state?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextInfoResponseBodyData extends $dara.Model { contextStatus?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetLabelResponseBodyData extends $dara.Model { labels?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetSessionResponseBodyData extends $dara.Model { appInstanceId?: string; resourceId?: string; sessionId?: string; success?: boolean; httpPort?: string; networkInterfaceIp?: string; token?: string; vpcResource?: boolean; resourceUrl?: string; status?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetLinkResponseBodyData extends $dara.Model { url?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetMcpResourceResponseBodyDataDesktopInfo extends $dara.Model { appId?: string; authCode?: string; connectionProperties?: string; resourceId?: string; resourceType?: string; ticket?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetMcpResourceResponseBodyData extends $dara.Model { desktopInfo?: GetMcpResourceResponseBodyDataDesktopInfo; resourceUrl?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListContextsResponseBodyData extends $dara.Model { createTime?: string; id?: string; lastUsedTime?: string; name?: string; osType?: string; state?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListSessionResponseBodyData extends $dara.Model { sessionId?: string; sessionStatus?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ApplyMqttTokenRequest extends $dara.Model { desktopId?: string; sessionToken?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ApplyMqttTokenResponseBody extends $dara.Model { code?: string; data?: ApplyMqttTokenResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ApplyMqttTokenResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: ApplyMqttTokenResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class CallMcpToolRequest extends $dara.Model { args?: string; authorization?: string; autoGenSession?: boolean; externalUserId?: string; imageId?: string; name?: string; server?: string; sessionId?: string; tool?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class CallMcpToolResponseBody extends $dara.Model { code?: string; data?: any; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class CallMcpToolResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: CallMcpToolResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ClearContextRequest extends $dara.Model { authorization?: string; id?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ClearContextResponseBody extends $dara.Model { code?: string; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ClearContextResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: ClearContextResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class CreateMcpSessionRequest extends $dara.Model { authorization?: string; contextId?: string; externalUserId?: string; imageId?: string; labels?: string; mcpPolicyId?: string; persistenceDataList?: CreateMcpSessionRequestPersistenceDataList[]; sessionId?: string; vpcResource?: boolean; extraConfigs?: string; sdkStats?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class CreateMcpSessionShrinkRequest extends $dara.Model { authorization?: string; contextId?: string; externalUserId?: string; imageId?: string; labels?: string; mcpPolicyId?: string; persistenceDataListShrink?: string; sessionId?: string; vpcResource?: boolean; extraConfigs?: string; sdkStats?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class CreateMcpSessionResponseBody extends $dara.Model { code?: string; data?: CreateMcpSessionResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class CreateMcpSessionResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: CreateMcpSessionResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DeleteContextRequest extends $dara.Model { authorization?: string; id?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DeleteContextResponseBody extends $dara.Model { code?: string; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DeleteContextResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: DeleteContextResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextRequest extends $dara.Model { allowCreate?: boolean; authorization?: string; contextId?: string; name?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextResponseBody extends $dara.Model { code?: string; data?: GetContextResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetContextResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextInfoRequest extends $dara.Model { authorization?: string; contextId?: string; path?: string; sessionId?: string; taskType?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextInfoResponseBody extends $dara.Model { code?: string; data?: GetContextInfoResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextInfoResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetContextInfoResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetLabelRequest extends $dara.Model { authorization?: string; maxResults?: number; nextToken?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetLabelResponseBody extends $dara.Model { code?: string; data?: GetLabelResponseBodyData; httpStatusCode?: number; maxResults?: number; message?: string; nextToken?: string; requestId?: string; success?: boolean; totalCount?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetLabelResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetLabelResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetSessionRequest extends $dara.Model { authorization?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetSessionResponseBody extends $dara.Model { code?: string; data?: GetSessionResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetSessionResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetSessionResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetLinkRequest extends $dara.Model { authorization?: string; port?: number; protocolType?: string; sessionId?: string; option?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetLinkResponseBody extends $dara.Model { code?: string; data?: GetLinkResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetLinkResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetLinkResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetCdpLinkRequest extends $dara.Model { authorization?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetCdpLinkResponseBodyData extends $dara.Model { url?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetCdpLinkResponseBody extends $dara.Model { code?: string; data?: GetCdpLinkResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetCdpLinkResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetCdpLinkResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetAdbLinkRequest extends $dara.Model { authorization?: string; option?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetAdbLinkResponseBodyData extends $dara.Model { url?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetAdbLinkResponseBody extends $dara.Model { code?: string; data?: GetAdbLinkResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetAdbLinkResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetAdbLinkResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetMcpResourceRequest extends $dara.Model { authorization?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetMcpResourceResponseBody extends $dara.Model { code?: string; data?: GetMcpResourceResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetMcpResourceResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetMcpResourceResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class InitBrowserRequest extends $dara.Model { authorization?: string; persistentPath?: string; sessionId?: string; browserOption?: { [key: string]: any; }; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); static fromMap(m: { [key: string]: any; }): InitBrowserRequest; } declare class InitBrowserResponseBodyData extends $dara.Model { port?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); static fromMap(m: { [key: string]: any; }): InitBrowserResponseBodyData; } declare class InitBrowserResponseBody extends $dara.Model { code?: string; data?: InitBrowserResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); static fromMap(m: { [key: string]: any; }): InitBrowserResponseBody; } declare class InitBrowserResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: InitBrowserResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); static fromMap(m: { [key: string]: any; }): InitBrowserResponse; } declare class ListContextsRequest extends $dara.Model { authorization?: string; maxResults?: number; nextToken?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListContextsResponseBody extends $dara.Model { code?: string; data?: ListContextsResponseBodyData[]; httpStatusCode?: number; maxResults?: number; message?: string; nextToken?: string; requestId?: string; success?: boolean; totalCount?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListContextsResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: ListContextsResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListMcpToolsRequest extends $dara.Model { authorization?: string; imageId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListMcpToolsResponseBody extends $dara.Model { code?: string; data?: string; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListMcpToolsResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: ListMcpToolsResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListSessionRequest extends $dara.Model { authorization?: string; labels?: string; maxResults?: number; nextToken?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListSessionResponseBody extends $dara.Model { code?: string; data?: ListSessionResponseBodyData[]; httpStatusCode?: number; maxResults?: number; message?: string; nextToken?: string; requestId?: string; success?: boolean; totalCount?: number; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ListSessionResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: ListSessionResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ModifyContextRequest extends $dara.Model { authorization?: string; id?: string; name?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ModifyContextResponseBody extends $dara.Model { code?: string; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ModifyContextResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: ModifyContextResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ReleaseMcpSessionRequest extends $dara.Model { authorization?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ReleaseMcpSessionResponseBody extends $dara.Model { code?: string; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class ReleaseMcpSessionResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: ReleaseMcpSessionResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class SetLabelRequest extends $dara.Model { authorization?: string; labels?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class SetLabelResponseBody extends $dara.Model { code?: string; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class SetLabelResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: SetLabelResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class SyncContextRequest extends $dara.Model { authorization?: string; contextId?: string; mode?: string; path?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class SyncContextResponseBody extends $dara.Model { code?: string; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class SyncContextResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: SyncContextResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DeleteContextFileRequest extends $dara.Model { authorization?: string; contextId?: string; filePath?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DeleteContextFileResponseBody extends $dara.Model { code?: string; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DeleteContextFileResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: DeleteContextFileResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DescribeContextFilesRequest extends $dara.Model { authorization?: string; pageNumber?: number; pageSize?: number; parentFolderPath?: string; contextId?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DescribeContextFilesResponseBodyData extends $dara.Model { fileId?: string; fileName?: string; filePath?: string; fileType?: string; gmtCreate?: string; gmtModified?: string; size?: number; status?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DescribeContextFilesResponseBody extends $dara.Model { code?: string; count?: number; data?: DescribeContextFilesResponseBodyData[]; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class DescribeContextFilesResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: DescribeContextFilesResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextFileDownloadUrlRequest extends $dara.Model { authorization?: string; contextId?: string; filePath?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextFileDownloadUrlResponseBodyData extends $dara.Model { expireTime?: number; url?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextFileDownloadUrlResponseBody extends $dara.Model { code?: string; data?: GetContextFileDownloadUrlResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextFileDownloadUrlResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetContextFileDownloadUrlResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextFileUploadUrlRequest extends $dara.Model { authorization?: string; contextId?: string; filePath?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextFileUploadUrlResponseBodyData extends $dara.Model { expireTime?: number; url?: string; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextFileUploadUrlResponseBody extends $dara.Model { code?: string; data?: GetContextFileUploadUrlResponseBodyData; httpStatusCode?: number; message?: string; requestId?: string; success?: boolean; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class GetContextFileUploadUrlResponse extends $dara.Model { headers?: { [key: string]: string; }; statusCode?: number; body?: GetContextFileUploadUrlResponseBody; static names(): { [key: string]: string; }; static types(): { [key: string]: any; }; validate(): void; constructor(map?: { [key: string]: any; }); } declare class PauseSessionAsyncRequest extends $dara.Model { authorization?: string; sessionId?: string; static names(): { [key: string]: string; }; static types(): {