test-wuying-agentbay-sdk 0.13.0-beta.20251212165248 → 0.13.0-beta.20251215095254

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1076,6 +1076,74 @@ declare class GetContextResponse extends $dara.Model {
1076
1076
  });
1077
1077
  }
1078
1078
 
1079
+ declare class GetAndLoadInternalContextRequest extends $dara.Model {
1080
+ authorization?: string;
1081
+ contextTypes?: string[];
1082
+ sessionId?: string;
1083
+ static names(): {
1084
+ [key: string]: string;
1085
+ };
1086
+ static types(): {
1087
+ [key: string]: any;
1088
+ };
1089
+ validate(): void;
1090
+ constructor(map?: {
1091
+ [key: string]: any;
1092
+ });
1093
+ }
1094
+
1095
+ declare class GetAndLoadInternalContextResponseBodyData extends $dara.Model {
1096
+ contextId?: string;
1097
+ contextPath?: string;
1098
+ contextType?: string;
1099
+ static names(): {
1100
+ [key: string]: string;
1101
+ };
1102
+ static types(): {
1103
+ [key: string]: any;
1104
+ };
1105
+ validate(): void;
1106
+ constructor(map?: {
1107
+ [key: string]: any;
1108
+ });
1109
+ }
1110
+ declare class GetAndLoadInternalContextResponseBody extends $dara.Model {
1111
+ code?: string;
1112
+ data?: GetAndLoadInternalContextResponseBodyData[];
1113
+ httpStatusCode?: number;
1114
+ message?: string;
1115
+ requestId?: string;
1116
+ success?: boolean;
1117
+ static names(): {
1118
+ [key: string]: string;
1119
+ };
1120
+ static types(): {
1121
+ [key: string]: any;
1122
+ };
1123
+ validate(): void;
1124
+ constructor(map?: {
1125
+ [key: string]: any;
1126
+ });
1127
+ }
1128
+
1129
+ declare class GetAndLoadInternalContextResponse extends $dara.Model {
1130
+ headers?: {
1131
+ [key: string]: string;
1132
+ };
1133
+ statusCode?: number;
1134
+ body?: GetAndLoadInternalContextResponseBody;
1135
+ static names(): {
1136
+ [key: string]: string;
1137
+ };
1138
+ static types(): {
1139
+ [key: string]: any;
1140
+ };
1141
+ validate(): void;
1142
+ constructor(map?: {
1143
+ [key: string]: any;
1144
+ });
1145
+ }
1146
+
1079
1147
  declare class GetContextInfoRequest extends $dara.Model {
1080
1148
  authorization?: string;
1081
1149
  contextId?: string;
@@ -1564,6 +1632,8 @@ declare class ListContextsRequest extends $dara.Model {
1564
1632
  authorization?: string;
1565
1633
  maxResults?: number;
1566
1634
  nextToken?: string;
1635
+ sessionId?: string;
1636
+ type?: string;
1567
1637
  static names(): {
1568
1638
  [key: string]: string;
1569
1639
  };
@@ -2495,6 +2565,21 @@ declare class Client extends OpenApi {
2495
2565
  * @returns GetMcpResourceResponse
2496
2566
  */
2497
2567
  getMcpResource(request: GetMcpResourceRequest): Promise<GetMcpResourceResponse>;
2568
+ /**
2569
+ * Get internal context request
2570
+ *
2571
+ * @param request - GetAndLoadInternalContextRequest
2572
+ * @param runtime - runtime options for this request RuntimeOptions
2573
+ * @returns GetAndLoadInternalContextResponse
2574
+ */
2575
+ getAndLoadInternalContextWithOptions(request: GetAndLoadInternalContextRequest, runtime: $dara.RuntimeOptions): Promise<GetAndLoadInternalContextResponse>;
2576
+ /**
2577
+ * Get internal context request
2578
+ *
2579
+ * @param request - GetAndLoadInternalContextRequest
2580
+ * @returns GetAndLoadInternalContextResponse
2581
+ */
2582
+ getAndLoadInternalContext(request: GetAndLoadInternalContextRequest): Promise<GetAndLoadInternalContextResponse>;
2498
2583
  /**
2499
2584
  * Get context list
2500
2585
  *
@@ -2757,6 +2842,10 @@ interface ContextListParams {
2757
2842
  * Token for the next page of results.
2758
2843
  */
2759
2844
  nextToken?: string;
2845
+ /**
2846
+ * Optional session id to filter contexts by session
2847
+ */
2848
+ sessionId?: string;
2760
2849
  }
2761
2850
  /**
2762
2851
  * Provides methods to manage persistent contexts in the AgentBay cloud environment.
@@ -4773,6 +4862,24 @@ declare class FileSystem {
4773
4862
  * @returns The FileTransfer instance
4774
4863
  */
4775
4864
  private _ensureFileTransfer;
4865
+ /**
4866
+ * Get the context path for file transfer operations.
4867
+ *
4868
+ * This method ensures the context ID is loaded and returns the associated
4869
+ * context path that was retrieved from GetAndLoadInternalContext API.
4870
+ *
4871
+ * @returns The context path if available, null otherwise.
4872
+ *
4873
+ * @example
4874
+ * ```typescript
4875
+ * const session = (await agentBay.create(params)).session;
4876
+ * const contextPath = await session.fileSystem.getFileTransferContextPath();
4877
+ * if (contextPath) {
4878
+ * console.log(`Context path: ${contextPath}`);
4879
+ * }
4880
+ * ```
4881
+ */
4882
+ getFileTransferContextPath(): Promise<string | null>;
4776
4883
  /**
4777
4884
  * Creates a new directory at the specified path.
4778
4885
  * Corresponds to Python's create_directory() method
@@ -5722,8 +5829,6 @@ interface McpToolsResult extends OperationResult {
5722
5829
  declare class Session {
5723
5830
  private agentBay;
5724
5831
  sessionId: string;
5725
- fileTransferContextId: string | null;
5726
- recordContextId: string | null;
5727
5832
  isVpc: boolean;
5728
5833
  networkInterfaceIp: string;
5729
5834
  httpPort: string;
@@ -6743,7 +6848,6 @@ declare class AgentBay {
6743
6848
  private apiKey;
6744
6849
  client: Client;
6745
6850
  private endpoint;
6746
- private fileTransferContext;
6747
6851
  private config;
6748
6852
  /**
6749
6853
  * Context service for managing persistent contexts.
@@ -6775,13 +6879,6 @@ declare class AgentBay {
6775
6879
  * @param mobileSimMode - The mode of the mobile simulate. If not provided, will use the default mode.
6776
6880
  */
6777
6881
  private _waitForMobileSimulate;
6778
- /**
6779
- * Update browser replay context with AppInstanceId from response data.
6780
- *
6781
- * @param responseData - Response data containing AppInstanceId
6782
- * @param recordContextId - The record context ID to update
6783
- */
6784
- private _updateBrowserReplayContext;
6785
6882
  /**
6786
6883
  * Create a new session in the AgentBay cloud environment.
6787
6884
  *
@@ -7291,4 +7388,4 @@ declare function logWarn(message: string, ...args: any[]): void;
7291
7388
  */
7292
7389
  declare function logError(message: string, error?: any): void;
7293
7390
 
7294
- export { APIError, APP_BLACKLIST_TEMPLATE, APP_WHITELIST_TEMPLATE, type ActOptions, ActResult, Agent, AgentBay, AgentBayError, type AgentOptions, type ApiResponse, type ApiResponseWithData, type AppManagerRule, ApplyMqttTokenRequest, ApplyMqttTokenResponse, ApplyMqttTokenResponseBody, ApplyMqttTokenResponseBodyData, AuthenticationError, type BWList, type Brand, Browser, BrowserAgent, BrowserContext, BrowserError, type BrowserFingerprint, BrowserFingerprintContext, BrowserFingerprintGenerator, type BrowserOption, BrowserOptionClass, type BrowserProxy, BrowserProxyClass, type BrowserScreen, BrowserUseAgent, type BrowserViewport, CallMcpToolRequest, CallMcpToolResponse, CallMcpToolResponseBody, ClearContextRequest, ClearContextResponse, ClearContextResponseBody, Client, Code, Command, Computer, ComputerUseAgent, type Config, Context, type ContextInfoResult, ContextManager, ContextService, type ContextStatusData, type ContextStatusItem, ContextSync, type ContextSyncResult, CreateMcpSessionRequest, CreateMcpSessionRequestPersistenceDataList, CreateMcpSessionResponse, CreateMcpSessionResponseBody, CreateMcpSessionResponseBodyData, CreateMcpSessionShrinkRequest, CreateSessionParams, type CreateSessionParamsConfig, DeleteContextFileRequest, DeleteContextFileResponse, DeleteContextFileResponseBody, DeleteContextRequest, DeleteContextResponse, DeleteContextResponseBody, type DeletePolicy, type DeleteResult, DescribeContextFilesRequest, DescribeContextFilesResponse, DescribeContextFilesResponseBody, type DirectoryEntry, type DownloadPolicy, DownloadStrategy, type ExecutionResult, Extension, ExtensionOption, ExtensionsService, type ExtraConfigs, type ExtraProperties, type ExtractOptions, type ExtractPolicy, ExtractPolicyClass, type FileChangeEvent, FileChangeEventHelper, type FileChangeResult, FileChangeResultHelper, FileError, type FileInfo, FileSystem, type Fingerprint, FingerprintFormat, GetAdbLinkRequest, GetAdbLinkResponse, GetAdbLinkResponseBody, GetAdbLinkResponseBodyData, GetCdpLinkRequest, GetCdpLinkResponse, GetCdpLinkResponseBody, GetCdpLinkResponseBodyData, GetContextFileDownloadUrlRequest, GetContextFileDownloadUrlResponse, GetContextFileDownloadUrlResponseBody, GetContextFileUploadUrlRequest, GetContextFileUploadUrlResponse, GetContextFileUploadUrlResponseBody, GetContextInfoRequest, GetContextInfoResponse, GetContextInfoResponseBody, GetContextInfoResponseBodyData, GetContextRequest, GetContextResponse, GetContextResponseBody, GetContextResponseBodyData, GetLabelRequest, GetLabelResponse, GetLabelResponseBody, GetLabelResponseBodyData, GetLinkRequest, GetLinkResponse, GetLinkResponseBody, GetLinkResponseBodyData, GetMcpResourceRequest, GetMcpResourceResponse, GetMcpResourceResponseBody, GetMcpResourceResponseBodyData, GetMcpResourceResponseBodyDataDesktopInfo, GetSessionRequest, GetSessionResponse, GetSessionResponseBody, GetSessionResponseBodyData, HIDE_NAVIGATION_BAR_TEMPLATE, IS_RELEASE, InitBrowserRequest, InitBrowserResponse, InitBrowserResponseBody, InitBrowserResponseBodyData, type InitializationResult, Lifecycle, ListContextsRequest, ListContextsResponse, ListContextsResponseBody, ListContextsResponseBodyData, ListMcpToolsRequest, ListMcpToolsResponse, ListMcpToolsResponseBody, type ListSessionParams, ListSessionRequest, ListSessionResponse, ListSessionResponseBody, ListSessionResponseBodyData, type LogLevel, type LoggerConfig, MOBILE_COMMAND_TEMPLATES, type MappingPolicy, type McpSession, type McpToolResult, Mobile, type MobileExtraConfig, type MobileSimulateConfig, MobileSimulateMode, MobileSimulateService, type MobileSimulateUploadResult, ModifyContextRequest, ModifyContextResponse, ModifyContextResponseBody, type NavigatorFingerprint, type ObserveOptions, ObserveResult, Oss, OssError, PauseSessionAsyncRequest, PauseSessionAsyncResponse, PauseSessionAsyncResponseBody, type QueryResult, RESOLUTION_LOCK_TEMPLATE, type RecyclePolicy, ReleaseMcpSessionRequest, ReleaseMcpSessionResponse, ReleaseMcpSessionResponseBody, ResumeSessionAsyncRequest, ResumeSessionAsyncResponse, ResumeSessionAsyncResponseBody, SHOW_NAVIGATION_BAR_TEMPLATE, type ScreenFingerprint, Session, SessionError, type SessionInterface, type SessionListResult, SetLabelRequest, SetLabelResponse, SetLabelResponseBody, type SyncCallback, SyncContextRequest, SyncContextResponse, SyncContextResponseBody, type SyncPolicy, SyncPolicyImpl, UNINSTALL_BLACKLIST_TEMPLATE, UploadMode, type UploadPolicy, UploadStrategy, type UserAgentData, VERSION, type VideoCard, type WhiteList, WhiteListValidator, createListSessionParams, extraConfigsFromJSON, extraConfigsToJSON, extractRequestId, getLogLevel, getMobileCommandTemplate, hasMobileCommandTemplate, log, logDebug, logError, logInfo, logWarn, newContextManager, newContextSync, newCreateSessionParams, newDeletePolicy, newDownloadPolicy, newExtractPolicy, newMappingPolicy, newRecyclePolicy, newSyncPolicy, newSyncPolicyWithDefaults, newUploadPolicy, replaceTemplatePlaceholders, setLogLevel, setupLogger, validateAppManagerRule, validateExtraConfigs, validateMobileExtraConfig, validateMobileSimulateConfig };
7391
+ export { APIError, APP_BLACKLIST_TEMPLATE, APP_WHITELIST_TEMPLATE, type ActOptions, ActResult, Agent, AgentBay, AgentBayError, type AgentOptions, type ApiResponse, type ApiResponseWithData, type AppManagerRule, ApplyMqttTokenRequest, ApplyMqttTokenResponse, ApplyMqttTokenResponseBody, ApplyMqttTokenResponseBodyData, AuthenticationError, type BWList, type Brand, Browser, BrowserAgent, BrowserContext, BrowserError, type BrowserFingerprint, BrowserFingerprintContext, BrowserFingerprintGenerator, type BrowserOption, BrowserOptionClass, type BrowserProxy, BrowserProxyClass, type BrowserScreen, BrowserUseAgent, type BrowserViewport, CallMcpToolRequest, CallMcpToolResponse, CallMcpToolResponseBody, ClearContextRequest, ClearContextResponse, ClearContextResponseBody, Client, Code, Command, Computer, ComputerUseAgent, type Config, Context, type ContextInfoResult, ContextManager, ContextService, type ContextStatusData, type ContextStatusItem, ContextSync, type ContextSyncResult, CreateMcpSessionRequest, CreateMcpSessionRequestPersistenceDataList, CreateMcpSessionResponse, CreateMcpSessionResponseBody, CreateMcpSessionResponseBodyData, CreateMcpSessionShrinkRequest, CreateSessionParams, type CreateSessionParamsConfig, DeleteContextFileRequest, DeleteContextFileResponse, DeleteContextFileResponseBody, DeleteContextRequest, DeleteContextResponse, DeleteContextResponseBody, type DeletePolicy, type DeleteResult, DescribeContextFilesRequest, DescribeContextFilesResponse, DescribeContextFilesResponseBody, type DirectoryEntry, type DownloadPolicy, DownloadStrategy, type ExecutionResult, Extension, ExtensionOption, ExtensionsService, type ExtraConfigs, type ExtraProperties, type ExtractOptions, type ExtractPolicy, ExtractPolicyClass, type FileChangeEvent, FileChangeEventHelper, type FileChangeResult, FileChangeResultHelper, FileError, type FileInfo, FileSystem, type Fingerprint, FingerprintFormat, GetAdbLinkRequest, GetAdbLinkResponse, GetAdbLinkResponseBody, GetAdbLinkResponseBodyData, GetAndLoadInternalContextRequest, GetAndLoadInternalContextResponse, GetAndLoadInternalContextResponseBody, GetAndLoadInternalContextResponseBodyData, GetCdpLinkRequest, GetCdpLinkResponse, GetCdpLinkResponseBody, GetCdpLinkResponseBodyData, GetContextFileDownloadUrlRequest, GetContextFileDownloadUrlResponse, GetContextFileDownloadUrlResponseBody, GetContextFileUploadUrlRequest, GetContextFileUploadUrlResponse, GetContextFileUploadUrlResponseBody, GetContextInfoRequest, GetContextInfoResponse, GetContextInfoResponseBody, GetContextInfoResponseBodyData, GetContextRequest, GetContextResponse, GetContextResponseBody, GetContextResponseBodyData, GetLabelRequest, GetLabelResponse, GetLabelResponseBody, GetLabelResponseBodyData, GetLinkRequest, GetLinkResponse, GetLinkResponseBody, GetLinkResponseBodyData, GetMcpResourceRequest, GetMcpResourceResponse, GetMcpResourceResponseBody, GetMcpResourceResponseBodyData, GetMcpResourceResponseBodyDataDesktopInfo, GetSessionRequest, GetSessionResponse, GetSessionResponseBody, GetSessionResponseBodyData, HIDE_NAVIGATION_BAR_TEMPLATE, IS_RELEASE, InitBrowserRequest, InitBrowserResponse, InitBrowserResponseBody, InitBrowserResponseBodyData, type InitializationResult, Lifecycle, ListContextsRequest, ListContextsResponse, ListContextsResponseBody, ListContextsResponseBodyData, ListMcpToolsRequest, ListMcpToolsResponse, ListMcpToolsResponseBody, type ListSessionParams, ListSessionRequest, ListSessionResponse, ListSessionResponseBody, ListSessionResponseBodyData, type LogLevel, type LoggerConfig, MOBILE_COMMAND_TEMPLATES, type MappingPolicy, type McpSession, type McpToolResult, Mobile, type MobileExtraConfig, type MobileSimulateConfig, MobileSimulateMode, MobileSimulateService, type MobileSimulateUploadResult, ModifyContextRequest, ModifyContextResponse, ModifyContextResponseBody, type NavigatorFingerprint, type ObserveOptions, ObserveResult, Oss, OssError, PauseSessionAsyncRequest, PauseSessionAsyncResponse, PauseSessionAsyncResponseBody, type QueryResult, RESOLUTION_LOCK_TEMPLATE, type RecyclePolicy, ReleaseMcpSessionRequest, ReleaseMcpSessionResponse, ReleaseMcpSessionResponseBody, ResumeSessionAsyncRequest, ResumeSessionAsyncResponse, ResumeSessionAsyncResponseBody, SHOW_NAVIGATION_BAR_TEMPLATE, type ScreenFingerprint, Session, SessionError, type SessionInterface, type SessionListResult, SetLabelRequest, SetLabelResponse, SetLabelResponseBody, type SyncCallback, SyncContextRequest, SyncContextResponse, SyncContextResponseBody, type SyncPolicy, SyncPolicyImpl, UNINSTALL_BLACKLIST_TEMPLATE, UploadMode, type UploadPolicy, UploadStrategy, type UserAgentData, VERSION, type VideoCard, type WhiteList, WhiteListValidator, createListSessionParams, extraConfigsFromJSON, extraConfigsToJSON, extractRequestId, getLogLevel, getMobileCommandTemplate, hasMobileCommandTemplate, log, logDebug, logError, logInfo, logWarn, newContextManager, newContextSync, newCreateSessionParams, newDeletePolicy, newDownloadPolicy, newExtractPolicy, newMappingPolicy, newRecyclePolicy, newSyncPolicy, newSyncPolicyWithDefaults, newUploadPolicy, replaceTemplatePlaceholders, setLogLevel, setupLogger, validateAppManagerRule, validateExtraConfigs, validateMobileExtraConfig, validateMobileSimulateConfig };
package/dist/index.d.ts CHANGED
@@ -1076,6 +1076,74 @@ declare class GetContextResponse extends $dara.Model {
1076
1076
  });
1077
1077
  }
1078
1078
 
1079
+ declare class GetAndLoadInternalContextRequest extends $dara.Model {
1080
+ authorization?: string;
1081
+ contextTypes?: string[];
1082
+ sessionId?: string;
1083
+ static names(): {
1084
+ [key: string]: string;
1085
+ };
1086
+ static types(): {
1087
+ [key: string]: any;
1088
+ };
1089
+ validate(): void;
1090
+ constructor(map?: {
1091
+ [key: string]: any;
1092
+ });
1093
+ }
1094
+
1095
+ declare class GetAndLoadInternalContextResponseBodyData extends $dara.Model {
1096
+ contextId?: string;
1097
+ contextPath?: string;
1098
+ contextType?: string;
1099
+ static names(): {
1100
+ [key: string]: string;
1101
+ };
1102
+ static types(): {
1103
+ [key: string]: any;
1104
+ };
1105
+ validate(): void;
1106
+ constructor(map?: {
1107
+ [key: string]: any;
1108
+ });
1109
+ }
1110
+ declare class GetAndLoadInternalContextResponseBody extends $dara.Model {
1111
+ code?: string;
1112
+ data?: GetAndLoadInternalContextResponseBodyData[];
1113
+ httpStatusCode?: number;
1114
+ message?: string;
1115
+ requestId?: string;
1116
+ success?: boolean;
1117
+ static names(): {
1118
+ [key: string]: string;
1119
+ };
1120
+ static types(): {
1121
+ [key: string]: any;
1122
+ };
1123
+ validate(): void;
1124
+ constructor(map?: {
1125
+ [key: string]: any;
1126
+ });
1127
+ }
1128
+
1129
+ declare class GetAndLoadInternalContextResponse extends $dara.Model {
1130
+ headers?: {
1131
+ [key: string]: string;
1132
+ };
1133
+ statusCode?: number;
1134
+ body?: GetAndLoadInternalContextResponseBody;
1135
+ static names(): {
1136
+ [key: string]: string;
1137
+ };
1138
+ static types(): {
1139
+ [key: string]: any;
1140
+ };
1141
+ validate(): void;
1142
+ constructor(map?: {
1143
+ [key: string]: any;
1144
+ });
1145
+ }
1146
+
1079
1147
  declare class GetContextInfoRequest extends $dara.Model {
1080
1148
  authorization?: string;
1081
1149
  contextId?: string;
@@ -1564,6 +1632,8 @@ declare class ListContextsRequest extends $dara.Model {
1564
1632
  authorization?: string;
1565
1633
  maxResults?: number;
1566
1634
  nextToken?: string;
1635
+ sessionId?: string;
1636
+ type?: string;
1567
1637
  static names(): {
1568
1638
  [key: string]: string;
1569
1639
  };
@@ -2495,6 +2565,21 @@ declare class Client extends OpenApi {
2495
2565
  * @returns GetMcpResourceResponse
2496
2566
  */
2497
2567
  getMcpResource(request: GetMcpResourceRequest): Promise<GetMcpResourceResponse>;
2568
+ /**
2569
+ * Get internal context request
2570
+ *
2571
+ * @param request - GetAndLoadInternalContextRequest
2572
+ * @param runtime - runtime options for this request RuntimeOptions
2573
+ * @returns GetAndLoadInternalContextResponse
2574
+ */
2575
+ getAndLoadInternalContextWithOptions(request: GetAndLoadInternalContextRequest, runtime: $dara.RuntimeOptions): Promise<GetAndLoadInternalContextResponse>;
2576
+ /**
2577
+ * Get internal context request
2578
+ *
2579
+ * @param request - GetAndLoadInternalContextRequest
2580
+ * @returns GetAndLoadInternalContextResponse
2581
+ */
2582
+ getAndLoadInternalContext(request: GetAndLoadInternalContextRequest): Promise<GetAndLoadInternalContextResponse>;
2498
2583
  /**
2499
2584
  * Get context list
2500
2585
  *
@@ -2757,6 +2842,10 @@ interface ContextListParams {
2757
2842
  * Token for the next page of results.
2758
2843
  */
2759
2844
  nextToken?: string;
2845
+ /**
2846
+ * Optional session id to filter contexts by session
2847
+ */
2848
+ sessionId?: string;
2760
2849
  }
2761
2850
  /**
2762
2851
  * Provides methods to manage persistent contexts in the AgentBay cloud environment.
@@ -4773,6 +4862,24 @@ declare class FileSystem {
4773
4862
  * @returns The FileTransfer instance
4774
4863
  */
4775
4864
  private _ensureFileTransfer;
4865
+ /**
4866
+ * Get the context path for file transfer operations.
4867
+ *
4868
+ * This method ensures the context ID is loaded and returns the associated
4869
+ * context path that was retrieved from GetAndLoadInternalContext API.
4870
+ *
4871
+ * @returns The context path if available, null otherwise.
4872
+ *
4873
+ * @example
4874
+ * ```typescript
4875
+ * const session = (await agentBay.create(params)).session;
4876
+ * const contextPath = await session.fileSystem.getFileTransferContextPath();
4877
+ * if (contextPath) {
4878
+ * console.log(`Context path: ${contextPath}`);
4879
+ * }
4880
+ * ```
4881
+ */
4882
+ getFileTransferContextPath(): Promise<string | null>;
4776
4883
  /**
4777
4884
  * Creates a new directory at the specified path.
4778
4885
  * Corresponds to Python's create_directory() method
@@ -5722,8 +5829,6 @@ interface McpToolsResult extends OperationResult {
5722
5829
  declare class Session {
5723
5830
  private agentBay;
5724
5831
  sessionId: string;
5725
- fileTransferContextId: string | null;
5726
- recordContextId: string | null;
5727
5832
  isVpc: boolean;
5728
5833
  networkInterfaceIp: string;
5729
5834
  httpPort: string;
@@ -6743,7 +6848,6 @@ declare class AgentBay {
6743
6848
  private apiKey;
6744
6849
  client: Client;
6745
6850
  private endpoint;
6746
- private fileTransferContext;
6747
6851
  private config;
6748
6852
  /**
6749
6853
  * Context service for managing persistent contexts.
@@ -6775,13 +6879,6 @@ declare class AgentBay {
6775
6879
  * @param mobileSimMode - The mode of the mobile simulate. If not provided, will use the default mode.
6776
6880
  */
6777
6881
  private _waitForMobileSimulate;
6778
- /**
6779
- * Update browser replay context with AppInstanceId from response data.
6780
- *
6781
- * @param responseData - Response data containing AppInstanceId
6782
- * @param recordContextId - The record context ID to update
6783
- */
6784
- private _updateBrowserReplayContext;
6785
6882
  /**
6786
6883
  * Create a new session in the AgentBay cloud environment.
6787
6884
  *
@@ -7291,4 +7388,4 @@ declare function logWarn(message: string, ...args: any[]): void;
7291
7388
  */
7292
7389
  declare function logError(message: string, error?: any): void;
7293
7390
 
7294
- export { APIError, APP_BLACKLIST_TEMPLATE, APP_WHITELIST_TEMPLATE, type ActOptions, ActResult, Agent, AgentBay, AgentBayError, type AgentOptions, type ApiResponse, type ApiResponseWithData, type AppManagerRule, ApplyMqttTokenRequest, ApplyMqttTokenResponse, ApplyMqttTokenResponseBody, ApplyMqttTokenResponseBodyData, AuthenticationError, type BWList, type Brand, Browser, BrowserAgent, BrowserContext, BrowserError, type BrowserFingerprint, BrowserFingerprintContext, BrowserFingerprintGenerator, type BrowserOption, BrowserOptionClass, type BrowserProxy, BrowserProxyClass, type BrowserScreen, BrowserUseAgent, type BrowserViewport, CallMcpToolRequest, CallMcpToolResponse, CallMcpToolResponseBody, ClearContextRequest, ClearContextResponse, ClearContextResponseBody, Client, Code, Command, Computer, ComputerUseAgent, type Config, Context, type ContextInfoResult, ContextManager, ContextService, type ContextStatusData, type ContextStatusItem, ContextSync, type ContextSyncResult, CreateMcpSessionRequest, CreateMcpSessionRequestPersistenceDataList, CreateMcpSessionResponse, CreateMcpSessionResponseBody, CreateMcpSessionResponseBodyData, CreateMcpSessionShrinkRequest, CreateSessionParams, type CreateSessionParamsConfig, DeleteContextFileRequest, DeleteContextFileResponse, DeleteContextFileResponseBody, DeleteContextRequest, DeleteContextResponse, DeleteContextResponseBody, type DeletePolicy, type DeleteResult, DescribeContextFilesRequest, DescribeContextFilesResponse, DescribeContextFilesResponseBody, type DirectoryEntry, type DownloadPolicy, DownloadStrategy, type ExecutionResult, Extension, ExtensionOption, ExtensionsService, type ExtraConfigs, type ExtraProperties, type ExtractOptions, type ExtractPolicy, ExtractPolicyClass, type FileChangeEvent, FileChangeEventHelper, type FileChangeResult, FileChangeResultHelper, FileError, type FileInfo, FileSystem, type Fingerprint, FingerprintFormat, GetAdbLinkRequest, GetAdbLinkResponse, GetAdbLinkResponseBody, GetAdbLinkResponseBodyData, GetCdpLinkRequest, GetCdpLinkResponse, GetCdpLinkResponseBody, GetCdpLinkResponseBodyData, GetContextFileDownloadUrlRequest, GetContextFileDownloadUrlResponse, GetContextFileDownloadUrlResponseBody, GetContextFileUploadUrlRequest, GetContextFileUploadUrlResponse, GetContextFileUploadUrlResponseBody, GetContextInfoRequest, GetContextInfoResponse, GetContextInfoResponseBody, GetContextInfoResponseBodyData, GetContextRequest, GetContextResponse, GetContextResponseBody, GetContextResponseBodyData, GetLabelRequest, GetLabelResponse, GetLabelResponseBody, GetLabelResponseBodyData, GetLinkRequest, GetLinkResponse, GetLinkResponseBody, GetLinkResponseBodyData, GetMcpResourceRequest, GetMcpResourceResponse, GetMcpResourceResponseBody, GetMcpResourceResponseBodyData, GetMcpResourceResponseBodyDataDesktopInfo, GetSessionRequest, GetSessionResponse, GetSessionResponseBody, GetSessionResponseBodyData, HIDE_NAVIGATION_BAR_TEMPLATE, IS_RELEASE, InitBrowserRequest, InitBrowserResponse, InitBrowserResponseBody, InitBrowserResponseBodyData, type InitializationResult, Lifecycle, ListContextsRequest, ListContextsResponse, ListContextsResponseBody, ListContextsResponseBodyData, ListMcpToolsRequest, ListMcpToolsResponse, ListMcpToolsResponseBody, type ListSessionParams, ListSessionRequest, ListSessionResponse, ListSessionResponseBody, ListSessionResponseBodyData, type LogLevel, type LoggerConfig, MOBILE_COMMAND_TEMPLATES, type MappingPolicy, type McpSession, type McpToolResult, Mobile, type MobileExtraConfig, type MobileSimulateConfig, MobileSimulateMode, MobileSimulateService, type MobileSimulateUploadResult, ModifyContextRequest, ModifyContextResponse, ModifyContextResponseBody, type NavigatorFingerprint, type ObserveOptions, ObserveResult, Oss, OssError, PauseSessionAsyncRequest, PauseSessionAsyncResponse, PauseSessionAsyncResponseBody, type QueryResult, RESOLUTION_LOCK_TEMPLATE, type RecyclePolicy, ReleaseMcpSessionRequest, ReleaseMcpSessionResponse, ReleaseMcpSessionResponseBody, ResumeSessionAsyncRequest, ResumeSessionAsyncResponse, ResumeSessionAsyncResponseBody, SHOW_NAVIGATION_BAR_TEMPLATE, type ScreenFingerprint, Session, SessionError, type SessionInterface, type SessionListResult, SetLabelRequest, SetLabelResponse, SetLabelResponseBody, type SyncCallback, SyncContextRequest, SyncContextResponse, SyncContextResponseBody, type SyncPolicy, SyncPolicyImpl, UNINSTALL_BLACKLIST_TEMPLATE, UploadMode, type UploadPolicy, UploadStrategy, type UserAgentData, VERSION, type VideoCard, type WhiteList, WhiteListValidator, createListSessionParams, extraConfigsFromJSON, extraConfigsToJSON, extractRequestId, getLogLevel, getMobileCommandTemplate, hasMobileCommandTemplate, log, logDebug, logError, logInfo, logWarn, newContextManager, newContextSync, newCreateSessionParams, newDeletePolicy, newDownloadPolicy, newExtractPolicy, newMappingPolicy, newRecyclePolicy, newSyncPolicy, newSyncPolicyWithDefaults, newUploadPolicy, replaceTemplatePlaceholders, setLogLevel, setupLogger, validateAppManagerRule, validateExtraConfigs, validateMobileExtraConfig, validateMobileSimulateConfig };
7391
+ export { APIError, APP_BLACKLIST_TEMPLATE, APP_WHITELIST_TEMPLATE, type ActOptions, ActResult, Agent, AgentBay, AgentBayError, type AgentOptions, type ApiResponse, type ApiResponseWithData, type AppManagerRule, ApplyMqttTokenRequest, ApplyMqttTokenResponse, ApplyMqttTokenResponseBody, ApplyMqttTokenResponseBodyData, AuthenticationError, type BWList, type Brand, Browser, BrowserAgent, BrowserContext, BrowserError, type BrowserFingerprint, BrowserFingerprintContext, BrowserFingerprintGenerator, type BrowserOption, BrowserOptionClass, type BrowserProxy, BrowserProxyClass, type BrowserScreen, BrowserUseAgent, type BrowserViewport, CallMcpToolRequest, CallMcpToolResponse, CallMcpToolResponseBody, ClearContextRequest, ClearContextResponse, ClearContextResponseBody, Client, Code, Command, Computer, ComputerUseAgent, type Config, Context, type ContextInfoResult, ContextManager, ContextService, type ContextStatusData, type ContextStatusItem, ContextSync, type ContextSyncResult, CreateMcpSessionRequest, CreateMcpSessionRequestPersistenceDataList, CreateMcpSessionResponse, CreateMcpSessionResponseBody, CreateMcpSessionResponseBodyData, CreateMcpSessionShrinkRequest, CreateSessionParams, type CreateSessionParamsConfig, DeleteContextFileRequest, DeleteContextFileResponse, DeleteContextFileResponseBody, DeleteContextRequest, DeleteContextResponse, DeleteContextResponseBody, type DeletePolicy, type DeleteResult, DescribeContextFilesRequest, DescribeContextFilesResponse, DescribeContextFilesResponseBody, type DirectoryEntry, type DownloadPolicy, DownloadStrategy, type ExecutionResult, Extension, ExtensionOption, ExtensionsService, type ExtraConfigs, type ExtraProperties, type ExtractOptions, type ExtractPolicy, ExtractPolicyClass, type FileChangeEvent, FileChangeEventHelper, type FileChangeResult, FileChangeResultHelper, FileError, type FileInfo, FileSystem, type Fingerprint, FingerprintFormat, GetAdbLinkRequest, GetAdbLinkResponse, GetAdbLinkResponseBody, GetAdbLinkResponseBodyData, GetAndLoadInternalContextRequest, GetAndLoadInternalContextResponse, GetAndLoadInternalContextResponseBody, GetAndLoadInternalContextResponseBodyData, GetCdpLinkRequest, GetCdpLinkResponse, GetCdpLinkResponseBody, GetCdpLinkResponseBodyData, GetContextFileDownloadUrlRequest, GetContextFileDownloadUrlResponse, GetContextFileDownloadUrlResponseBody, GetContextFileUploadUrlRequest, GetContextFileUploadUrlResponse, GetContextFileUploadUrlResponseBody, GetContextInfoRequest, GetContextInfoResponse, GetContextInfoResponseBody, GetContextInfoResponseBodyData, GetContextRequest, GetContextResponse, GetContextResponseBody, GetContextResponseBodyData, GetLabelRequest, GetLabelResponse, GetLabelResponseBody, GetLabelResponseBodyData, GetLinkRequest, GetLinkResponse, GetLinkResponseBody, GetLinkResponseBodyData, GetMcpResourceRequest, GetMcpResourceResponse, GetMcpResourceResponseBody, GetMcpResourceResponseBodyData, GetMcpResourceResponseBodyDataDesktopInfo, GetSessionRequest, GetSessionResponse, GetSessionResponseBody, GetSessionResponseBodyData, HIDE_NAVIGATION_BAR_TEMPLATE, IS_RELEASE, InitBrowserRequest, InitBrowserResponse, InitBrowserResponseBody, InitBrowserResponseBodyData, type InitializationResult, Lifecycle, ListContextsRequest, ListContextsResponse, ListContextsResponseBody, ListContextsResponseBodyData, ListMcpToolsRequest, ListMcpToolsResponse, ListMcpToolsResponseBody, type ListSessionParams, ListSessionRequest, ListSessionResponse, ListSessionResponseBody, ListSessionResponseBodyData, type LogLevel, type LoggerConfig, MOBILE_COMMAND_TEMPLATES, type MappingPolicy, type McpSession, type McpToolResult, Mobile, type MobileExtraConfig, type MobileSimulateConfig, MobileSimulateMode, MobileSimulateService, type MobileSimulateUploadResult, ModifyContextRequest, ModifyContextResponse, ModifyContextResponseBody, type NavigatorFingerprint, type ObserveOptions, ObserveResult, Oss, OssError, PauseSessionAsyncRequest, PauseSessionAsyncResponse, PauseSessionAsyncResponseBody, type QueryResult, RESOLUTION_LOCK_TEMPLATE, type RecyclePolicy, ReleaseMcpSessionRequest, ReleaseMcpSessionResponse, ReleaseMcpSessionResponseBody, ResumeSessionAsyncRequest, ResumeSessionAsyncResponse, ResumeSessionAsyncResponseBody, SHOW_NAVIGATION_BAR_TEMPLATE, type ScreenFingerprint, Session, SessionError, type SessionInterface, type SessionListResult, SetLabelRequest, SetLabelResponse, SetLabelResponseBody, type SyncCallback, SyncContextRequest, SyncContextResponse, SyncContextResponseBody, type SyncPolicy, SyncPolicyImpl, UNINSTALL_BLACKLIST_TEMPLATE, UploadMode, type UploadPolicy, UploadStrategy, type UserAgentData, VERSION, type VideoCard, type WhiteList, WhiteListValidator, createListSessionParams, extraConfigsFromJSON, extraConfigsToJSON, extractRequestId, getLogLevel, getMobileCommandTemplate, hasMobileCommandTemplate, log, logDebug, logError, logInfo, logWarn, newContextManager, newContextSync, newCreateSessionParams, newDeletePolicy, newDownloadPolicy, newExtractPolicy, newMappingPolicy, newRecyclePolicy, newSyncPolicy, newSyncPolicyWithDefaults, newUploadPolicy, replaceTemplatePlaceholders, setLogLevel, setupLogger, validateAppManagerRule, validateExtraConfigs, validateMobileExtraConfig, validateMobileSimulateConfig };