test-wuying-agentbay-sdk
Version:
TypeScript SDK for interacting with the Wuying AgentBay cloud runtime environment
2,068 lines (1,976 loc) • 217 kB
TypeScript
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;
/**
*/
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;
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 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>;
/**
* Delete Persistent Context
*
* @param request - ClearContextRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns ClearContextResponse
*/
clearContextWithOptions(request: ClearContextRequest, runtime: $dara.RuntimeOptions): Promise<ClearContextResponse>;
/**
* Delete Persistent Context
*
* @param request - ClearContextRequest
* @returns ClearContextResponse
*/
clearContext(request: ClearContextRequest): Promise<ClearContextResponse>;
/**
* 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 session information
*
* @param request - GetSessionRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetSessionResponse
*/
getSessionWithOptions(request: GetSessionRequest, runtime: $dara.RuntimeOptions): Promise<GetSessionResponse>;
/**
* Get session information
*
* @param request - GetSessionRequest
* @returns GetSessionResponse
*/
getSession(request: GetSessionRequest): Promise<GetSessionResponse>;
/**
* 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>;
/**
* Get CDP link
*
* @param request - GetCdpLinkRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetCdpLinkResponse
*/
getCdpLinkWithOptions(request: GetCdpLinkRequest, runtime: $dara.RuntimeOptions): Promise<GetCdpLinkResponse>;
/**
* Get CDP link
*
* @param request - GetCdpLinkRequest
* @returns GetCdpLinkResponse
*/
getCdpLink(request: GetCdpLinkRequest): Promise<GetCdpLinkResponse>;
/**
* Get ADB link
*
* @param request - GetAdbLinkRequest
* @param runtime - runtime options for this request RuntimeOptions
* @returns GetAdbLinkResponse
*/
getAdbLinkWithOptions(request: GetAdbLinkRequest, runtime: $dara.RuntimeOptions): Promise<GetAdbLinkResponse>;
/**
* Get ADB link
*
* @param request