test-wuying-agentbay-sdk
Version:
TypeScript SDK for interacting with the Wuying AgentBay cloud runtime environment
1,982 lines (1,903 loc) • 133 kB
TypeScript
import * as $dara from '@darabonba/typescript';
import OpenApi, { $OpenApiUtil } from '@alicloud/openapi-core';
/**
*/
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 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;
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;
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 CreateMcpSessionRequest extends $dara.Model {
authorization?: string;
contextId?: string;
externalUserId?: string;
imageId?: string;
labels?: string;
mcpPolicyId?: string;
persistenceDataList?: CreateMcpSessionRequestPersistenceDataList[];
sessionId?: string;
vpcResource?: boolean;
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;
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;
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 GetLinkRequest extends $dara.Model {
authorization?: string;
port?: number;
protocolType?: string;
sessionId?: 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 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 Client extends OpenApi {
constructor(config: $OpenApiUtil.Config);
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
[key: string]: string;
}, endpoint: string): string;
/**
* Call MCP tool
*
* @param request - CallMcpToolRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns CallMcpToolResponse
*/
callMcpToolWithOptions(request: CallMcpToolRequest, runtime: $dara.RuntimeOptions): Promise<CallMcpToolResponse>;
/**
* Call MCP tool
*
* @param request - CallMcpToolRequest
* @returns CallMcpToolResponse
*/
callMcpTool(request: CallMcpToolRequest): Promise<CallMcpToolResponse>;
/**
* Create MCP session
*
* @param tmpReq - CreateMcpSessionRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns CreateMcpSessionResponse
*/
createMcpSessionWithOptions(tmpReq: CreateMcpSessionRequest, runtime: $dara.RuntimeOptions): Promise<CreateMcpSessionResponse>;
/**
* Create MCP session
*
* @param request - CreateMcpSessionRequest
* @returns CreateMcpSessionResponse
*/
createMcpSession(request: CreateMcpSessionRequest): Promise<CreateMcpSessionResponse>;
/**
* Delete persistent context
*
* @param request - DeleteContextRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns DeleteContextResponse
*/
deleteContextWithOptions(request: DeleteContextRequest, runtime: $dara.RuntimeOptions): Promise<DeleteContextResponse>;
/**
* Delete persistent context
*
* @param request - DeleteContextRequest
* @returns DeleteContextResponse
*/
deleteContext(request: DeleteContextRequest): Promise<DeleteContextResponse>;
/**
* Get context
*
* @param request - GetContextRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetContextResponse
*/
getContextWithOptions(request: GetContextRequest, runtime: $dara.RuntimeOptions): Promise<GetContextResponse>;
/**
* Get context
*
* @param request - GetContextRequest
* @returns GetContextResponse
*/
getContext(request: GetContextRequest): Promise<GetContextResponse>;
/**
* Get context information
*
* @param request - GetContextInfoRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetContextInfoResponse
*/
getContextInfoWithOptions(request: GetContextInfoRequest, runtime: $dara.RuntimeOptions): Promise<GetContextInfoResponse>;
/**
* Get context information
*
* @param request - GetContextInfoRequest
* @returns GetContextInfoResponse
*/
getContextInfo(request: GetContextInfoRequest): Promise<GetContextInfoResponse>;
/**
* Get labels
*
* @param request - GetLabelRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetLabelResponse
*/
getLabelWithOptions(request: GetLabelRequest, runtime: $dara.RuntimeOptions): Promise<GetLabelResponse>;
/**
* Get labels
*
* @param request - GetLabelRequest
* @returns GetLabelResponse
*/
getLabel(request: GetLabelRequest): Promise<GetLabelResponse>;
/**
* Get forwarding link for specific port
*
* @param request - GetLinkRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetLinkResponse
*/
getLinkWithOptions(request: GetLinkRequest, runtime: $dara.RuntimeOptions): Promise<GetLinkResponse>;
/**
* Get forwarding link for specific port
*
* @param request - GetLinkRequest
* @returns GetLinkResponse
*/
getLink(request: GetLinkRequest): Promise<GetLinkResponse>;
/**
* Get MCP resource information
*
* @param request - GetMcpResourceRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetMcpResourceResponse
*/
getMcpResourceWithOptions(request: GetMcpResourceRequest, runtime: $dara.RuntimeOptions): Promise<GetMcpResourceResponse>;
/**
* Get MCP resource information
*
* @param request - GetMcpResourceRequest
* @returns GetMcpResourceResponse
*/
getMcpResource(request: GetMcpResourceRequest): Promise<GetMcpResourceResponse>;
/**
* Get context list
*
* @param request - ListContextsRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns ListContextsResponse
*/
listContextsWithOptions(request: ListContextsRequest, runtime: $dara.RuntimeOptions): Promise<ListContextsResponse>;
/**
* Get context list
*
* @param request - ListContextsRequest
* @returns ListContextsResponse
*/
listContexts(request: ListContextsRequest): Promise<ListContextsResponse>;
/**
* ListMcpTools
*
* @param request - ListMcpToolsRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns ListMcpToolsResponse
*/
listMcpToolsWithOptions(request: ListMcpToolsRequest, runtime: $dara.RuntimeOptions): Promise<ListMcpToolsResponse>;
/**
* ListMcpTools
*
* @param request - ListMcpToolsRequest
* @returns ListMcpToolsResponse
*/
listMcpTools(request: ListMcpToolsRequest): Promise<ListMcpToolsResponse>;
/**
* Query session list by label
*
* @param request - ListSessionRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns ListSessionResponse
*/
listSessionWithOptions(request: ListSessionRequest, runtime: $dara.RuntimeOptions): Promise<ListSessionResponse>;
/**
* Query session list by label
*
* @param request - ListSessionRequest
* @returns ListSessionResponse
*/
listSession(request: ListSessionRequest): Promise<ListSessionResponse>;
/**
* Modify context
*
* @param request - ModifyContextRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns ModifyContextResponse
*/
modifyContextWithOptions(request: ModifyContextRequest, runtime: $dara.RuntimeOptions): Promise<ModifyContextResponse>;
/**
* Modify context
*
* @param request - ModifyContextRequest
* @returns ModifyContextResponse
*/
modifyContext(request: ModifyContextRequest): Promise<ModifyContextResponse>;
/**
* Release MCP session
*
* @param request - ReleaseMcpSessionRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns ReleaseMcpSessionResponse
*/
releaseMcpSessionWithOptions(request: ReleaseMcpSessionRequest, runtime: $dara.RuntimeOptions): Promise<ReleaseMcpSessionResponse>;
/**
* Release MCP session
*
* @param request - ReleaseMcpSessionRequest
* @returns ReleaseMcpSessionResponse
*/
releaseMcpSession(request: ReleaseMcpSessionRequest): Promise<ReleaseMcpSessionResponse>;
/**
* Set labels
*
* @param request - SetLabelRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns SetLabelResponse
*/
setLabelWithOptions(request: SetLabelRequest, runtime: $dara.RuntimeOptions): Promise<SetLabelResponse>;
/**
* Set labels
*
* @param request - SetLabelRequest
* @returns SetLabelResponse
*/
setLabel(request: SetLabelRequest): Promise<SetLabelResponse>;
/**
* Sync context
*
* @param request - SyncContextRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns SyncContextResponse
*/
syncContextWithOptions(request: SyncContextRequest, runtime: $dara.RuntimeOptions): Promise<SyncContextResponse>;
/**
* Sync context
*
* @param request - SyncContextRequest
* @returns SyncContextResponse
*/
syncContext(request: SyncContextRequest): Promise<SyncContextResponse>;
/**
* Initialize browser
*
* @param tmpReq - InitBrowserRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns InitBrowserResponse
*/
initBrowserWithOptions(request: InitBrowserRequest, runtime: $dara.RuntimeOptions): Promise<InitBrowserResponse>;
/**
* Initialize browser
*
* @param request - InitBrowserRequest
* @returns InitBrowserResponse
*/
initBrowser(request: InitBrowserRequest): Promise<InitBrowserResponse>;
/**
* Initialize browser (sync version)
*
* @param request - InitBrowserRequest
* @returns InitBrowserResponse
*/
initBrowserSync(request: InitBrowserRequest): InitBrowserResponse;
/**
* Get context file upload URL
*
* @param request - DeleteContextFileRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns DeleteContextFileResponse
*/
deleteContextFileWithOptions(request: DeleteContextFileRequest, runtime: $dara.RuntimeOptions): Promise<DeleteContextFileResponse>;
/**
* Get context file upload URL
*
* @param request - DeleteContextFileRequest
* @returns DeleteContextFileResponse
*/
deleteContextFile(request: DeleteContextFileRequest): Promise<DeleteContextFileResponse>;
/**
* Query context specific directory files
*
* @param request - DescribeContextFilesRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns DescribeContextFilesResponse
*/
describeContextFilesWithOptions(request: DescribeContextFilesRequest, runtime: $dara.RuntimeOptions): Promise<DescribeContextFilesResponse>;
/**
* Query context specific directory files
*
* @param request - DescribeContextFilesRequest
* @returns DescribeContextFilesResponse
*/
describeContextFiles(request: DescribeContextFilesRequest): Promise<DescribeContextFilesResponse>;
/**
* Get context file upload URL
*
* @param request - GetContextFileDownloadUrlRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetContextFileDownloadUrlResponse
*/
getContextFileDownloadUrlWithOptions(request: GetContextFileDownloadUrlRequest, runtime: $dara.RuntimeOptions): Promise<GetContextFileDownloadUrlResponse>;
/**
* Get context file upload URL
*
* @param request - GetContextFileDownloadUrlRequest
* @returns GetContextFileDownloadUrlResponse
*/
getContextFileDownloadUrl(request: GetContextFileDownloadUrlRequest): Promise<GetContextFileDownloadUrlResponse>;
/**
* Get context file upload URL
*
* @param request - GetContextFileUploadUrlRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetContextFileUploadUrlResponse
*/
getContextFileUploadUrlWithOptions(request: GetContextFileUploadUrlRequest, runtime: $dara.RuntimeOptions): Promise<GetContextFileUploadUrlResponse>;
/**
* Get context file upload URL
*
* @param request - GetContextFileUploadUrlRequest
* @returns GetContextFileUploadUrlResponse
*/
getContextFileUploadUrl(request: GetContextFileUploadUrlRequest): Promise<GetContextFileUploadUrlResponse>;
}
interface Config {
region_id: string;
endpoint: string;
timeout_ms: number;
}
/**
* Load .env file into process.env if it exists
* This function should be called early to ensure .env variables are available
*/
declare function loadDotEnv(): void;
/**
* The SDK uses the following precedence order for configuration (highest to lowest):
* 1. Explicitly passed configuration in code.
* 2. Environment variables.
* 3. .env file.
* 4. Default configuration.
*/
declare function loadConfig(customConfig?: Config): Config;
/**
* 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;
}
/**
* 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 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 process list operation responses
* Corresponds to Python's ProcessListResult type
*/
interface ProcessListResult extends ApiResponse {
/** Request identifier for tracking API calls */
requestId: string;
/** Whether the operation was successful */
success: boolean;
/** The list of process objects */
data: any[];
/** Optional error message if the operation failed */
errorMessage?: string;
}
/**
* Interface for installed app list operation responses
* Corresponds to Python's InstalledAppListResult type
*/
interface InstalledAppListResult extends ApiResponse {
/** Request identifier for tracking API calls */
requestId: string;
/** Whether the operation was successful */
success: boolean;
/** The list of installed app objects */
data: any[];
/** Optional error message if the operation failed */
errorMessage?: string;
}
/**
* Interface for application operation responses
* Corresponds to Python's AppOperationResult type
*/
interface AppOperationResult extends ApiResponse {
/** Request identifier for tracking API calls */
requestId: string;
/** Whether the operation was successful */
success: boolean;
/** 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 mess