wuying-agentbay-sdk 0.11.0 → 0.12.0
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/{chunk-E7QC5S76.mjs → chunk-BVWUCG4J.mjs} +264 -5
- package/dist/chunk-BVWUCG4J.mjs.map +1 -0
- package/dist/{chunk-ZUB35HKV.cjs → chunk-SL5GCAQE.cjs} +265 -6
- package/dist/chunk-SL5GCAQE.cjs.map +1 -0
- package/dist/index.cjs +1295 -317
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1694 -1125
- package/dist/index.d.ts +1694 -1125
- package/dist/index.mjs +1228 -250
- package/dist/index.mjs.map +1 -1
- package/dist/model-CNCGFWJH.cjs +200 -0
- package/dist/{model-2G37RFQQ.cjs.map → model-CNCGFWJH.cjs.map} +1 -1
- package/dist/{model-ZFTLKEMC.mjs → model-LGWQJWKQ.mjs} +14 -2
- package/docs/api/common-features/basics/agentbay.md +96 -0
- package/docs/api/common-features/basics/context-manager.md +21 -2
- package/docs/api/common-features/basics/session.md +130 -0
- package/docs/examples/browser-use/extension-example/extension-example.ts +2 -1
- package/docs/examples/common-features/basics/session-pause-resume/README.md +53 -0
- package/docs/examples/common-features/basics/session-pause-resume/session-pause-resume.ts +237 -0
- package/docs/examples/mobile-use/mobile-simulate-basic-usage.ts +202 -0
- package/docs/examples/mobile-use/mobile-simulate-with-ctx.ts +170 -0
- package/package.json +2 -2
- package/dist/chunk-E7QC5S76.mjs.map +0 -1
- package/dist/chunk-ZUB35HKV.cjs.map +0 -1
- package/dist/model-2G37RFQQ.cjs +0 -188
- /package/dist/{model-ZFTLKEMC.mjs.map → model-LGWQJWKQ.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -14,331 +14,448 @@ declare const VERSION: string;
|
|
|
14
14
|
declare const IS_RELEASE: boolean;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
+
* Base interface for API responses
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
static names(): {
|
|
26
|
-
[key: string]: string;
|
|
27
|
-
};
|
|
28
|
-
static types(): {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
};
|
|
31
|
-
validate(): void;
|
|
32
|
-
constructor(map?: {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
});
|
|
19
|
+
interface ApiResponse {
|
|
20
|
+
/** Optional request identifier for tracking API calls */
|
|
21
|
+
requestId?: string;
|
|
22
|
+
/** Optional error message if the operation failed */
|
|
23
|
+
errorMessage?: string;
|
|
24
|
+
/** Optional status code if the operation failed */
|
|
25
|
+
success?: boolean;
|
|
35
26
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
static types(): {
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
};
|
|
47
|
-
validate(): void;
|
|
48
|
-
constructor(map?: {
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
});
|
|
27
|
+
/**
|
|
28
|
+
* Generic interface for API responses that include data payload
|
|
29
|
+
* @template T The type of the data being returned
|
|
30
|
+
*/
|
|
31
|
+
interface ApiResponseWithData<T> extends ApiResponse {
|
|
32
|
+
/** The actual data payload returned by the API */
|
|
33
|
+
session?: T;
|
|
34
|
+
data?: T;
|
|
51
35
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
sessionId?: string;
|
|
61
|
-
success?: boolean;
|
|
62
|
-
token?: string;
|
|
63
|
-
vpcResource?: boolean;
|
|
64
|
-
static names(): {
|
|
65
|
-
[key: string]: string;
|
|
66
|
-
};
|
|
67
|
-
static types(): {
|
|
68
|
-
[key: string]: any;
|
|
69
|
-
};
|
|
70
|
-
validate(): void;
|
|
71
|
-
constructor(map?: {
|
|
72
|
-
[key: string]: any;
|
|
73
|
-
});
|
|
36
|
+
/**
|
|
37
|
+
* Interface for delete operation responses
|
|
38
|
+
*/
|
|
39
|
+
interface DeleteResult extends ApiResponse {
|
|
40
|
+
/** Whether the delete operation was successful */
|
|
41
|
+
success: boolean;
|
|
42
|
+
/** Optional error message if the operation failed */
|
|
43
|
+
errorMessage?: string;
|
|
74
44
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
name
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
static names(): {
|
|
84
|
-
[key: string]: string;
|
|
85
|
-
};
|
|
86
|
-
static types(): {
|
|
87
|
-
[key: string]: any;
|
|
88
|
-
};
|
|
89
|
-
validate(): void;
|
|
90
|
-
constructor(map?: {
|
|
91
|
-
[key: string]: any;
|
|
92
|
-
});
|
|
45
|
+
/**
|
|
46
|
+
* Interface for context information in GetSession response
|
|
47
|
+
*/
|
|
48
|
+
interface ContextInfo {
|
|
49
|
+
/** Context name */
|
|
50
|
+
name: string;
|
|
51
|
+
/** Context ID */
|
|
52
|
+
id: string;
|
|
93
53
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Interface for GetSession data
|
|
56
|
+
*/
|
|
57
|
+
interface GetSessionData {
|
|
58
|
+
/** Application instance ID */
|
|
59
|
+
appInstanceId: string;
|
|
60
|
+
/** Resource ID */
|
|
61
|
+
resourceId: string;
|
|
62
|
+
/** Session ID */
|
|
63
|
+
sessionId: string;
|
|
64
|
+
/** Success status */
|
|
65
|
+
success: boolean;
|
|
66
|
+
/** HTTP port for VPC sessions */
|
|
67
|
+
httpPort: string;
|
|
68
|
+
/** Network interface IP for VPC sessions */
|
|
69
|
+
networkInterfaceIp: string;
|
|
70
|
+
/** Token for VPC sessions */
|
|
71
|
+
token: string;
|
|
72
|
+
/** Whether this session uses VPC resources */
|
|
73
|
+
vpcResource: boolean;
|
|
74
|
+
/** Resource URL for accessing the session */
|
|
75
|
+
resourceUrl: string;
|
|
76
|
+
/** Current status of the session */
|
|
77
|
+
status: string;
|
|
78
|
+
/** List of contexts associated with the session */
|
|
79
|
+
contexts?: ContextInfo[];
|
|
107
80
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Interface for GetSession operation responses
|
|
83
|
+
*/
|
|
84
|
+
interface GetSessionResult extends ApiResponse {
|
|
85
|
+
/** Request identifier for tracking API calls */
|
|
86
|
+
requestId: string;
|
|
87
|
+
/** HTTP status code */
|
|
88
|
+
httpStatusCode: number;
|
|
89
|
+
/** Response code */
|
|
90
|
+
code: string;
|
|
91
|
+
/** Whether the operation was successful */
|
|
92
|
+
success: boolean;
|
|
93
|
+
/** Session data */
|
|
94
|
+
data?: GetSessionData;
|
|
95
|
+
/** Optional error message if the operation failed */
|
|
96
|
+
errorMessage?: string;
|
|
121
97
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
};
|
|
136
|
-
static types(): {
|
|
137
|
-
[key: string]: any;
|
|
138
|
-
};
|
|
139
|
-
validate(): void;
|
|
140
|
-
constructor(map?: {
|
|
141
|
-
[key: string]: any;
|
|
142
|
-
});
|
|
98
|
+
/**
|
|
99
|
+
* Interface for session creation operation responses
|
|
100
|
+
* Corresponds to Python's SessionResult type
|
|
101
|
+
*/
|
|
102
|
+
interface SessionResult extends ApiResponse {
|
|
103
|
+
/** Request identifier for tracking API calls */
|
|
104
|
+
requestId: string;
|
|
105
|
+
/** Whether the session creation was successful */
|
|
106
|
+
success: boolean;
|
|
107
|
+
/** The created session object (only present if successful) */
|
|
108
|
+
session?: any;
|
|
109
|
+
/** Error message if the operation failed */
|
|
110
|
+
errorMessage?: string;
|
|
143
111
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Interface for operation results
|
|
114
|
+
* Corresponds to Python's OperationResult type
|
|
115
|
+
*/
|
|
116
|
+
interface OperationResult extends ApiResponse {
|
|
117
|
+
/** Request identifier for tracking API calls */
|
|
118
|
+
requestId: string;
|
|
119
|
+
/** Whether the operation was successful */
|
|
120
|
+
success: boolean;
|
|
121
|
+
/** Optional data payload */
|
|
122
|
+
data?: any;
|
|
123
|
+
/** Optional error message if the operation failed */
|
|
124
|
+
errorMessage?: string;
|
|
157
125
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
};
|
|
172
|
-
validate(): void;
|
|
173
|
-
constructor(map?: {
|
|
174
|
-
[key: string]: any;
|
|
175
|
-
});
|
|
126
|
+
/**
|
|
127
|
+
* Interface for command execution operation responses
|
|
128
|
+
* Corresponds to Python's CommandResult type
|
|
129
|
+
*/
|
|
130
|
+
interface CommandResult extends ApiResponse {
|
|
131
|
+
/** Request identifier for tracking API calls */
|
|
132
|
+
requestId: string;
|
|
133
|
+
/** Whether the command execution was successful */
|
|
134
|
+
success: boolean;
|
|
135
|
+
/** The command output */
|
|
136
|
+
output: string;
|
|
137
|
+
/** Optional error message if the operation failed */
|
|
138
|
+
errorMessage?: string;
|
|
176
139
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
[key: string]: any;
|
|
191
|
-
});
|
|
140
|
+
/**
|
|
141
|
+
* Interface for code execution operation responses
|
|
142
|
+
* Corresponds to Python's CodeExecutionResult type
|
|
143
|
+
*/
|
|
144
|
+
interface CodeExecutionResult extends ApiResponse {
|
|
145
|
+
/** Request identifier for tracking API calls */
|
|
146
|
+
requestId: string;
|
|
147
|
+
/** Whether the code execution was successful */
|
|
148
|
+
success: boolean;
|
|
149
|
+
/** The execution result */
|
|
150
|
+
result: string;
|
|
151
|
+
/** Optional error message if the operation failed */
|
|
152
|
+
errorMessage?: string;
|
|
192
153
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
};
|
|
207
|
-
validate(): void;
|
|
208
|
-
constructor(map?: {
|
|
209
|
-
[key: string]: any;
|
|
210
|
-
});
|
|
154
|
+
/**
|
|
155
|
+
* Interface for boolean operation responses
|
|
156
|
+
* Corresponds to Python's BoolResult type
|
|
157
|
+
*/
|
|
158
|
+
interface BoolResult$2 extends ApiResponse {
|
|
159
|
+
/** Request identifier for tracking API calls */
|
|
160
|
+
requestId: string;
|
|
161
|
+
/** Whether the operation was successful */
|
|
162
|
+
success: boolean;
|
|
163
|
+
/** Boolean data result */
|
|
164
|
+
data?: boolean;
|
|
165
|
+
/** Optional error message if the operation failed */
|
|
166
|
+
errorMessage?: string;
|
|
211
167
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
});
|
|
168
|
+
/**
|
|
169
|
+
* Interface for file info operation responses
|
|
170
|
+
* Corresponds to Python's FileInfoResult type
|
|
171
|
+
*/
|
|
172
|
+
interface FileInfoResult extends ApiResponse {
|
|
173
|
+
/** Request identifier for tracking API calls */
|
|
174
|
+
requestId: string;
|
|
175
|
+
/** Whether the operation was successful */
|
|
176
|
+
success: boolean;
|
|
177
|
+
/** File information object */
|
|
178
|
+
fileInfo?: Record<string, any>;
|
|
179
|
+
/** Optional error message if the operation failed */
|
|
180
|
+
errorMessage?: string;
|
|
226
181
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
});
|
|
182
|
+
/**
|
|
183
|
+
* Interface for directory list operation responses
|
|
184
|
+
* Corresponds to Python's DirectoryListResult type
|
|
185
|
+
*/
|
|
186
|
+
interface DirectoryListResult extends ApiResponse {
|
|
187
|
+
/** Request identifier for tracking API calls */
|
|
188
|
+
requestId: string;
|
|
189
|
+
/** Whether the operation was successful */
|
|
190
|
+
success: boolean;
|
|
191
|
+
/** Directory entries */
|
|
192
|
+
entries: Record<string, any>[];
|
|
193
|
+
/** Optional error message if the operation failed */
|
|
194
|
+
errorMessage?: string;
|
|
241
195
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
requestId
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
};
|
|
256
|
-
validate(): void;
|
|
257
|
-
constructor(map?: {
|
|
258
|
-
[key: string]: any;
|
|
259
|
-
});
|
|
196
|
+
/**
|
|
197
|
+
* Interface for file content operation responses
|
|
198
|
+
* Corresponds to Python's FileContentResult type
|
|
199
|
+
*/
|
|
200
|
+
interface FileContentResult extends ApiResponse {
|
|
201
|
+
/** Request identifier for tracking API calls */
|
|
202
|
+
requestId: string;
|
|
203
|
+
/** Whether the operation was successful */
|
|
204
|
+
success: boolean;
|
|
205
|
+
/** File content */
|
|
206
|
+
content: string;
|
|
207
|
+
/** Optional error message if the operation failed */
|
|
208
|
+
errorMessage?: string;
|
|
260
209
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
validate(): void;
|
|
275
|
-
constructor(map?: {
|
|
276
|
-
[key: string]: any;
|
|
277
|
-
});
|
|
210
|
+
/**
|
|
211
|
+
* Interface for multiple file content operation responses
|
|
212
|
+
* Corresponds to Python's MultipleFileContentResult type
|
|
213
|
+
*/
|
|
214
|
+
interface MultipleFileContentResult extends ApiResponse {
|
|
215
|
+
/** Request identifier for tracking API calls */
|
|
216
|
+
requestId: string;
|
|
217
|
+
/** Whether the operation was successful */
|
|
218
|
+
success: boolean;
|
|
219
|
+
/** Multiple file contents */
|
|
220
|
+
contents: Record<string, string>;
|
|
221
|
+
/** Optional error message if the operation failed */
|
|
222
|
+
errorMessage?: string;
|
|
278
223
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
};
|
|
293
|
-
static types(): {
|
|
294
|
-
[key: string]: any;
|
|
295
|
-
};
|
|
296
|
-
validate(): void;
|
|
297
|
-
constructor(map?: {
|
|
298
|
-
[key: string]: any;
|
|
299
|
-
});
|
|
224
|
+
/**
|
|
225
|
+
* Interface for file search operation responses
|
|
226
|
+
* Corresponds to Python's FileSearchResult type
|
|
227
|
+
*/
|
|
228
|
+
interface FileSearchResult extends ApiResponse {
|
|
229
|
+
/** Request identifier for tracking API calls */
|
|
230
|
+
requestId: string;
|
|
231
|
+
/** Whether the operation was successful */
|
|
232
|
+
success: boolean;
|
|
233
|
+
/** Matching file paths */
|
|
234
|
+
matches: string[];
|
|
235
|
+
/** Optional error message if the operation failed */
|
|
236
|
+
errorMessage?: string;
|
|
300
237
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
requestId
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
};
|
|
315
|
-
validate(): void;
|
|
316
|
-
constructor(map?: {
|
|
317
|
-
[key: string]: any;
|
|
318
|
-
});
|
|
238
|
+
/**
|
|
239
|
+
* Interface for OSS client creation operation responses
|
|
240
|
+
* Corresponds to Python's OSSClientResult type
|
|
241
|
+
*/
|
|
242
|
+
interface OSSClientResult extends ApiResponse {
|
|
243
|
+
/** Request identifier for tracking API calls */
|
|
244
|
+
requestId: string;
|
|
245
|
+
/** Whether the operation was successful */
|
|
246
|
+
success: boolean;
|
|
247
|
+
/** OSS client configuration */
|
|
248
|
+
clientConfig: Record<string, any>;
|
|
249
|
+
/** Optional error message if the operation failed */
|
|
250
|
+
errorMessage?: string;
|
|
319
251
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
252
|
+
/**
|
|
253
|
+
* Interface for OSS upload operation responses
|
|
254
|
+
* Corresponds to Python's OSSUploadResult type
|
|
255
|
+
*/
|
|
256
|
+
interface OSSUploadResult extends ApiResponse {
|
|
257
|
+
/** Request identifier for tracking API calls */
|
|
258
|
+
requestId: string;
|
|
259
|
+
/** Whether the operation was successful */
|
|
260
|
+
success: boolean;
|
|
261
|
+
/** Result of the upload operation */
|
|
262
|
+
content: string;
|
|
263
|
+
/** Optional error message if the operation failed */
|
|
264
|
+
errorMessage?: string;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Interface for OSS download operation responses
|
|
268
|
+
* Corresponds to Python's OSSDownloadResult type
|
|
269
|
+
*/
|
|
270
|
+
interface OSSDownloadResult extends ApiResponse {
|
|
271
|
+
/** Request identifier for tracking API calls */
|
|
272
|
+
requestId: string;
|
|
273
|
+
/** Whether the operation was successful */
|
|
274
|
+
success: boolean;
|
|
275
|
+
/** Result of the download operation */
|
|
276
|
+
content: string;
|
|
277
|
+
/** Optional error message if the operation failed */
|
|
278
|
+
errorMessage?: string;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Interface for window list operation responses
|
|
282
|
+
* Corresponds to Python's WindowListResult type
|
|
283
|
+
*/
|
|
284
|
+
interface WindowListResult extends ApiResponse {
|
|
285
|
+
/** Request identifier for tracking API calls */
|
|
286
|
+
requestId: string;
|
|
287
|
+
/** Whether the operation was successful */
|
|
288
|
+
success: boolean;
|
|
289
|
+
/** List of windows */
|
|
290
|
+
windows: any[];
|
|
291
|
+
/** Optional error message if the operation failed */
|
|
292
|
+
errorMessage?: string;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Interface for window info operation responses
|
|
296
|
+
* Corresponds to Python's WindowInfoResult type
|
|
297
|
+
*/
|
|
298
|
+
interface WindowInfoResult extends ApiResponse {
|
|
299
|
+
/** Request identifier for tracking API calls */
|
|
300
|
+
requestId: string;
|
|
301
|
+
/** Whether the operation was successful */
|
|
302
|
+
success: boolean;
|
|
303
|
+
/** Window object */
|
|
304
|
+
window?: any;
|
|
305
|
+
/** Optional error message if the operation failed */
|
|
306
|
+
errorMessage?: string;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Interface for context operation responses
|
|
310
|
+
* Corresponds to Python's ContextResult type
|
|
311
|
+
*/
|
|
312
|
+
interface ContextResult extends ApiResponse {
|
|
313
|
+
/** Request identifier for tracking API calls */
|
|
314
|
+
requestId: string;
|
|
315
|
+
/** Whether the operation was successful */
|
|
316
|
+
success: boolean;
|
|
317
|
+
/** The context ID */
|
|
318
|
+
contextId: string;
|
|
319
|
+
/** The context object (only present if successful) */
|
|
320
|
+
context?: any;
|
|
321
|
+
/** Optional error message if the operation failed */
|
|
322
|
+
errorMessage?: string;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Interface for context list operation responses
|
|
326
|
+
* Corresponds to Python's ContextListResult type
|
|
327
|
+
*/
|
|
328
|
+
interface ContextListResult extends ApiResponse {
|
|
329
|
+
/** Request identifier for tracking API calls */
|
|
330
|
+
requestId: string;
|
|
331
|
+
/** Whether the operation was successful */
|
|
332
|
+
success: boolean;
|
|
333
|
+
/** List of contexts */
|
|
334
|
+
contexts: any[];
|
|
335
|
+
/** Token for the next page of results */
|
|
336
|
+
nextToken?: string;
|
|
337
|
+
/** Maximum number of results per page */
|
|
338
|
+
maxResults?: number;
|
|
339
|
+
/** Total number of contexts available */
|
|
340
|
+
totalCount?: number;
|
|
341
|
+
/** Optional error message if the operation failed */
|
|
342
|
+
errorMessage?: string;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Result of a presigned URL request
|
|
346
|
+
*/
|
|
347
|
+
interface FileUrlResult extends ApiResponse {
|
|
348
|
+
/** Request identifier for tracking API calls */
|
|
349
|
+
requestId: string;
|
|
350
|
+
/** Whether the operation was successful */
|
|
351
|
+
success: boolean;
|
|
352
|
+
/** The presigned URL */
|
|
353
|
+
url: string;
|
|
354
|
+
/** Optional expire time (epoch seconds) */
|
|
355
|
+
expireTime?: number;
|
|
356
|
+
/** Optional error message if the operation failed */
|
|
357
|
+
errorMessage?: string;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Represents a file item in a context
|
|
361
|
+
*/
|
|
362
|
+
interface ContextFileEntry {
|
|
363
|
+
fileId?: string;
|
|
364
|
+
fileName?: string;
|
|
365
|
+
filePath: string;
|
|
366
|
+
fileType?: string;
|
|
367
|
+
gmtCreate?: string;
|
|
368
|
+
gmtModified?: string;
|
|
369
|
+
size?: number;
|
|
370
|
+
status?: string;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Result of context file listing
|
|
374
|
+
*/
|
|
375
|
+
interface ContextFileListResult extends ApiResponse {
|
|
376
|
+
/** Request identifier for tracking API calls */
|
|
377
|
+
requestId: string;
|
|
378
|
+
/** Whether the operation was successful */
|
|
379
|
+
success: boolean;
|
|
380
|
+
/** File entries under a folder */
|
|
381
|
+
entries: ContextFileEntry[];
|
|
382
|
+
/** Optional total count returned by backend */
|
|
383
|
+
count?: number;
|
|
384
|
+
/** Optional error message if the operation failed */
|
|
385
|
+
errorMessage?: string;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Helper function to extract request ID from API responses
|
|
389
|
+
*/
|
|
390
|
+
declare function extractRequestId(response: any): string | undefined;
|
|
391
|
+
/**
|
|
392
|
+
* Result of context clear operations, including the real-time status.
|
|
393
|
+
* Corresponds to Python's ClearContextResult type
|
|
394
|
+
*/
|
|
395
|
+
interface ClearContextResult extends ApiResponse {
|
|
396
|
+
/** Request identifier for tracking API calls */
|
|
397
|
+
requestId: string;
|
|
398
|
+
/** Whether the operation was successful */
|
|
399
|
+
success: boolean;
|
|
400
|
+
/** Current status of the clearing task. This corresponds to the
|
|
401
|
+
context's state field. Possible values:
|
|
402
|
+
- "clearing": Context data is being cleared (in progress)
|
|
403
|
+
- "available": Clearing completed successfully
|
|
404
|
+
- Other values may indicate the context state after clearing */
|
|
405
|
+
status?: string;
|
|
406
|
+
/** The unique identifier of the context being cleared */
|
|
407
|
+
contextId?: string;
|
|
408
|
+
/** Optional error message if the operation failed */
|
|
409
|
+
errorMessage?: string;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Result of session pause operations.
|
|
413
|
+
*/
|
|
414
|
+
interface SessionPauseResult extends ApiResponse {
|
|
415
|
+
/** Request identifier for tracking API calls */
|
|
416
|
+
requestId: string;
|
|
417
|
+
/** Whether the pause operation was successful */
|
|
418
|
+
success: boolean;
|
|
419
|
+
/** Error message if the operation failed */
|
|
420
|
+
errorMessage?: string;
|
|
421
|
+
/** API error code */
|
|
422
|
+
code?: string;
|
|
423
|
+
/** Detailed error message from API */
|
|
424
|
+
message?: string;
|
|
425
|
+
/** HTTP status code */
|
|
426
|
+
httpStatusCode?: number;
|
|
427
|
+
/** Current status of the session. Possible values: "RUNNING", "PAUSED", "PAUSING" */
|
|
428
|
+
status?: string;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Result of session resume operations.
|
|
432
|
+
*/
|
|
433
|
+
interface SessionResumeResult extends ApiResponse {
|
|
434
|
+
/** Request identifier for tracking API calls */
|
|
435
|
+
requestId: string;
|
|
436
|
+
/** Whether the resume operation was successful */
|
|
437
|
+
success: boolean;
|
|
438
|
+
/** Error message if the operation failed */
|
|
439
|
+
errorMessage?: string;
|
|
440
|
+
/** API error code */
|
|
441
|
+
code?: string;
|
|
442
|
+
/** Detailed error message from API */
|
|
443
|
+
message?: string;
|
|
444
|
+
/** HTTP status code */
|
|
445
|
+
httpStatusCode?: number;
|
|
446
|
+
/** Current status of the session. Possible values: "RUNNING", "PAUSED", "RESUMING" */
|
|
447
|
+
status?: string;
|
|
337
448
|
}
|
|
338
449
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
450
|
+
/**
|
|
451
|
+
*/
|
|
452
|
+
declare class ApplyMqttTokenResponseBodyData extends $dara.Model {
|
|
453
|
+
accessKeyId?: string;
|
|
454
|
+
clientId?: string;
|
|
455
|
+
expiration?: string;
|
|
456
|
+
instanceId?: string;
|
|
457
|
+
regionId?: string;
|
|
458
|
+
securityToken?: string;
|
|
342
459
|
static names(): {
|
|
343
460
|
[key: string]: string;
|
|
344
461
|
};
|
|
@@ -351,12 +468,10 @@ declare class ClearContextRequest extends $dara.Model {
|
|
|
351
468
|
});
|
|
352
469
|
}
|
|
353
470
|
|
|
354
|
-
declare class
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
requestId?: string;
|
|
359
|
-
success?: boolean;
|
|
471
|
+
declare class CreateMcpSessionRequestPersistenceDataList extends $dara.Model {
|
|
472
|
+
contextId?: string;
|
|
473
|
+
path?: string;
|
|
474
|
+
policy?: string;
|
|
360
475
|
static names(): {
|
|
361
476
|
[key: string]: string;
|
|
362
477
|
};
|
|
@@ -369,12 +484,17 @@ declare class ClearContextResponseBody extends $dara.Model {
|
|
|
369
484
|
});
|
|
370
485
|
}
|
|
371
486
|
|
|
372
|
-
declare class
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
487
|
+
declare class CreateMcpSessionResponseBodyData extends $dara.Model {
|
|
488
|
+
appInstanceId?: string;
|
|
489
|
+
errMsg?: string;
|
|
490
|
+
httpPort?: string;
|
|
491
|
+
networkInterfaceIp?: string;
|
|
492
|
+
resourceId?: string;
|
|
493
|
+
resourceUrl?: string;
|
|
494
|
+
sessionId?: string;
|
|
495
|
+
success?: boolean;
|
|
496
|
+
token?: string;
|
|
497
|
+
vpcResource?: boolean;
|
|
378
498
|
static names(): {
|
|
379
499
|
[key: string]: string;
|
|
380
500
|
};
|
|
@@ -387,18 +507,13 @@ declare class ClearContextResponse extends $dara.Model {
|
|
|
387
507
|
});
|
|
388
508
|
}
|
|
389
509
|
|
|
390
|
-
declare class
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
persistenceDataList?: CreateMcpSessionRequestPersistenceDataList[];
|
|
398
|
-
sessionId?: string;
|
|
399
|
-
vpcResource?: boolean;
|
|
400
|
-
extraConfigs?: string;
|
|
401
|
-
sdkStats?: string;
|
|
510
|
+
declare class GetContextResponseBodyData extends $dara.Model {
|
|
511
|
+
createTime?: string;
|
|
512
|
+
id?: string;
|
|
513
|
+
lastUsedTime?: string;
|
|
514
|
+
name?: string;
|
|
515
|
+
osType?: string;
|
|
516
|
+
state?: string;
|
|
402
517
|
static names(): {
|
|
403
518
|
[key: string]: string;
|
|
404
519
|
};
|
|
@@ -411,18 +526,8 @@ declare class CreateMcpSessionRequest extends $dara.Model {
|
|
|
411
526
|
});
|
|
412
527
|
}
|
|
413
528
|
|
|
414
|
-
declare class
|
|
415
|
-
|
|
416
|
-
contextId?: string;
|
|
417
|
-
externalUserId?: string;
|
|
418
|
-
imageId?: string;
|
|
419
|
-
labels?: string;
|
|
420
|
-
mcpPolicyId?: string;
|
|
421
|
-
persistenceDataListShrink?: string;
|
|
422
|
-
sessionId?: string;
|
|
423
|
-
vpcResource?: boolean;
|
|
424
|
-
extraConfigs?: string;
|
|
425
|
-
sdkStats?: string;
|
|
529
|
+
declare class GetContextInfoResponseBodyData extends $dara.Model {
|
|
530
|
+
contextStatus?: string;
|
|
426
531
|
static names(): {
|
|
427
532
|
[key: string]: string;
|
|
428
533
|
};
|
|
@@ -435,13 +540,8 @@ declare class CreateMcpSessionShrinkRequest extends $dara.Model {
|
|
|
435
540
|
});
|
|
436
541
|
}
|
|
437
542
|
|
|
438
|
-
declare class
|
|
439
|
-
|
|
440
|
-
data?: CreateMcpSessionResponseBodyData;
|
|
441
|
-
httpStatusCode?: number;
|
|
442
|
-
message?: string;
|
|
443
|
-
requestId?: string;
|
|
444
|
-
success?: boolean;
|
|
543
|
+
declare class GetLabelResponseBodyData extends $dara.Model {
|
|
544
|
+
labels?: string;
|
|
445
545
|
static names(): {
|
|
446
546
|
[key: string]: string;
|
|
447
547
|
};
|
|
@@ -454,12 +554,9 @@ declare class CreateMcpSessionResponseBody extends $dara.Model {
|
|
|
454
554
|
});
|
|
455
555
|
}
|
|
456
556
|
|
|
457
|
-
declare class
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
};
|
|
461
|
-
statusCode?: number;
|
|
462
|
-
body?: CreateMcpSessionResponseBody;
|
|
557
|
+
declare class GetSessionResponseBodyDataContexts extends $dara.Model {
|
|
558
|
+
id?: string;
|
|
559
|
+
name?: string;
|
|
463
560
|
static names(): {
|
|
464
561
|
[key: string]: string;
|
|
465
562
|
};
|
|
@@ -471,10 +568,18 @@ declare class CreateMcpSessionResponse extends $dara.Model {
|
|
|
471
568
|
[key: string]: any;
|
|
472
569
|
});
|
|
473
570
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
571
|
+
declare class GetSessionResponseBodyData extends $dara.Model {
|
|
572
|
+
appInstanceId?: string;
|
|
573
|
+
resourceId?: string;
|
|
574
|
+
sessionId?: string;
|
|
575
|
+
success?: boolean;
|
|
576
|
+
httpPort?: string;
|
|
577
|
+
networkInterfaceIp?: string;
|
|
578
|
+
token?: string;
|
|
579
|
+
vpcResource?: boolean;
|
|
580
|
+
resourceUrl?: string;
|
|
581
|
+
status?: string;
|
|
582
|
+
contexts?: GetSessionResponseBodyDataContexts[];
|
|
478
583
|
static names(): {
|
|
479
584
|
[key: string]: string;
|
|
480
585
|
};
|
|
@@ -487,12 +592,8 @@ declare class DeleteContextRequest extends $dara.Model {
|
|
|
487
592
|
});
|
|
488
593
|
}
|
|
489
594
|
|
|
490
|
-
declare class
|
|
491
|
-
|
|
492
|
-
httpStatusCode?: number;
|
|
493
|
-
message?: string;
|
|
494
|
-
requestId?: string;
|
|
495
|
-
success?: boolean;
|
|
595
|
+
declare class GetLinkResponseBodyData extends $dara.Model {
|
|
596
|
+
url?: string;
|
|
496
597
|
static names(): {
|
|
497
598
|
[key: string]: string;
|
|
498
599
|
};
|
|
@@ -505,12 +606,13 @@ declare class DeleteContextResponseBody extends $dara.Model {
|
|
|
505
606
|
});
|
|
506
607
|
}
|
|
507
608
|
|
|
508
|
-
declare class
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
609
|
+
declare class GetMcpResourceResponseBodyDataDesktopInfo extends $dara.Model {
|
|
610
|
+
appId?: string;
|
|
611
|
+
authCode?: string;
|
|
612
|
+
connectionProperties?: string;
|
|
613
|
+
resourceId?: string;
|
|
614
|
+
resourceType?: string;
|
|
615
|
+
ticket?: string;
|
|
514
616
|
static names(): {
|
|
515
617
|
[key: string]: string;
|
|
516
618
|
};
|
|
@@ -523,11 +625,10 @@ declare class DeleteContextResponse extends $dara.Model {
|
|
|
523
625
|
});
|
|
524
626
|
}
|
|
525
627
|
|
|
526
|
-
declare class
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
name?: string;
|
|
628
|
+
declare class GetMcpResourceResponseBodyData extends $dara.Model {
|
|
629
|
+
desktopInfo?: GetMcpResourceResponseBodyDataDesktopInfo;
|
|
630
|
+
resourceUrl?: string;
|
|
631
|
+
sessionId?: string;
|
|
531
632
|
static names(): {
|
|
532
633
|
[key: string]: string;
|
|
533
634
|
};
|
|
@@ -540,13 +641,13 @@ declare class GetContextRequest extends $dara.Model {
|
|
|
540
641
|
});
|
|
541
642
|
}
|
|
542
643
|
|
|
543
|
-
declare class
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
644
|
+
declare class ListContextsResponseBodyData extends $dara.Model {
|
|
645
|
+
createTime?: string;
|
|
646
|
+
id?: string;
|
|
647
|
+
lastUsedTime?: string;
|
|
648
|
+
name?: string;
|
|
649
|
+
osType?: string;
|
|
650
|
+
state?: string;
|
|
550
651
|
static names(): {
|
|
551
652
|
[key: string]: string;
|
|
552
653
|
};
|
|
@@ -559,12 +660,9 @@ declare class GetContextResponseBody extends $dara.Model {
|
|
|
559
660
|
});
|
|
560
661
|
}
|
|
561
662
|
|
|
562
|
-
declare class
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
};
|
|
566
|
-
statusCode?: number;
|
|
567
|
-
body?: GetContextResponseBody;
|
|
663
|
+
declare class ListSessionResponseBodyData extends $dara.Model {
|
|
664
|
+
sessionId?: string;
|
|
665
|
+
sessionStatus?: string;
|
|
568
666
|
static names(): {
|
|
569
667
|
[key: string]: string;
|
|
570
668
|
};
|
|
@@ -577,12 +675,9 @@ declare class GetContextResponse extends $dara.Model {
|
|
|
577
675
|
});
|
|
578
676
|
}
|
|
579
677
|
|
|
580
|
-
declare class
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
path?: string;
|
|
584
|
-
sessionId?: string;
|
|
585
|
-
taskType?: string;
|
|
678
|
+
declare class ApplyMqttTokenRequest extends $dara.Model {
|
|
679
|
+
desktopId?: string;
|
|
680
|
+
sessionToken?: string;
|
|
586
681
|
static names(): {
|
|
587
682
|
[key: string]: string;
|
|
588
683
|
};
|
|
@@ -595,9 +690,9 @@ declare class GetContextInfoRequest extends $dara.Model {
|
|
|
595
690
|
});
|
|
596
691
|
}
|
|
597
692
|
|
|
598
|
-
declare class
|
|
693
|
+
declare class ApplyMqttTokenResponseBody extends $dara.Model {
|
|
599
694
|
code?: string;
|
|
600
|
-
data?:
|
|
695
|
+
data?: ApplyMqttTokenResponseBodyData;
|
|
601
696
|
httpStatusCode?: number;
|
|
602
697
|
message?: string;
|
|
603
698
|
requestId?: string;
|
|
@@ -614,12 +709,12 @@ declare class GetContextInfoResponseBody extends $dara.Model {
|
|
|
614
709
|
});
|
|
615
710
|
}
|
|
616
711
|
|
|
617
|
-
declare class
|
|
712
|
+
declare class ApplyMqttTokenResponse extends $dara.Model {
|
|
618
713
|
headers?: {
|
|
619
714
|
[key: string]: string;
|
|
620
715
|
};
|
|
621
716
|
statusCode?: number;
|
|
622
|
-
body?:
|
|
717
|
+
body?: ApplyMqttTokenResponseBody;
|
|
623
718
|
static names(): {
|
|
624
719
|
[key: string]: string;
|
|
625
720
|
};
|
|
@@ -632,11 +727,16 @@ declare class GetContextInfoResponse extends $dara.Model {
|
|
|
632
727
|
});
|
|
633
728
|
}
|
|
634
729
|
|
|
635
|
-
declare class
|
|
730
|
+
declare class CallMcpToolRequest extends $dara.Model {
|
|
731
|
+
args?: string;
|
|
636
732
|
authorization?: string;
|
|
637
|
-
|
|
638
|
-
|
|
733
|
+
autoGenSession?: boolean;
|
|
734
|
+
externalUserId?: string;
|
|
735
|
+
imageId?: string;
|
|
736
|
+
name?: string;
|
|
737
|
+
server?: string;
|
|
639
738
|
sessionId?: string;
|
|
739
|
+
tool?: string;
|
|
640
740
|
static names(): {
|
|
641
741
|
[key: string]: string;
|
|
642
742
|
};
|
|
@@ -649,16 +749,13 @@ declare class GetLabelRequest extends $dara.Model {
|
|
|
649
749
|
});
|
|
650
750
|
}
|
|
651
751
|
|
|
652
|
-
declare class
|
|
752
|
+
declare class CallMcpToolResponseBody extends $dara.Model {
|
|
653
753
|
code?: string;
|
|
654
|
-
data?:
|
|
754
|
+
data?: any;
|
|
655
755
|
httpStatusCode?: number;
|
|
656
|
-
maxResults?: number;
|
|
657
756
|
message?: string;
|
|
658
|
-
nextToken?: string;
|
|
659
757
|
requestId?: string;
|
|
660
758
|
success?: boolean;
|
|
661
|
-
totalCount?: number;
|
|
662
759
|
static names(): {
|
|
663
760
|
[key: string]: string;
|
|
664
761
|
};
|
|
@@ -671,12 +768,12 @@ declare class GetLabelResponseBody extends $dara.Model {
|
|
|
671
768
|
});
|
|
672
769
|
}
|
|
673
770
|
|
|
674
|
-
declare class
|
|
771
|
+
declare class CallMcpToolResponse extends $dara.Model {
|
|
675
772
|
headers?: {
|
|
676
773
|
[key: string]: string;
|
|
677
774
|
};
|
|
678
775
|
statusCode?: number;
|
|
679
|
-
body?:
|
|
776
|
+
body?: CallMcpToolResponseBody;
|
|
680
777
|
static names(): {
|
|
681
778
|
[key: string]: string;
|
|
682
779
|
};
|
|
@@ -689,9 +786,9 @@ declare class GetLabelResponse extends $dara.Model {
|
|
|
689
786
|
});
|
|
690
787
|
}
|
|
691
788
|
|
|
692
|
-
declare class
|
|
789
|
+
declare class ClearContextRequest extends $dara.Model {
|
|
693
790
|
authorization?: string;
|
|
694
|
-
|
|
791
|
+
id?: string;
|
|
695
792
|
static names(): {
|
|
696
793
|
[key: string]: string;
|
|
697
794
|
};
|
|
@@ -704,9 +801,8 @@ declare class GetSessionRequest extends $dara.Model {
|
|
|
704
801
|
});
|
|
705
802
|
}
|
|
706
803
|
|
|
707
|
-
declare class
|
|
804
|
+
declare class ClearContextResponseBody extends $dara.Model {
|
|
708
805
|
code?: string;
|
|
709
|
-
data?: GetSessionResponseBodyData;
|
|
710
806
|
httpStatusCode?: number;
|
|
711
807
|
message?: string;
|
|
712
808
|
requestId?: string;
|
|
@@ -723,12 +819,12 @@ declare class GetSessionResponseBody extends $dara.Model {
|
|
|
723
819
|
});
|
|
724
820
|
}
|
|
725
821
|
|
|
726
|
-
declare class
|
|
822
|
+
declare class ClearContextResponse extends $dara.Model {
|
|
727
823
|
headers?: {
|
|
728
824
|
[key: string]: string;
|
|
729
825
|
};
|
|
730
826
|
statusCode?: number;
|
|
731
|
-
body?:
|
|
827
|
+
body?: ClearContextResponseBody;
|
|
732
828
|
static names(): {
|
|
733
829
|
[key: string]: string;
|
|
734
830
|
};
|
|
@@ -741,12 +837,18 @@ declare class GetSessionResponse extends $dara.Model {
|
|
|
741
837
|
});
|
|
742
838
|
}
|
|
743
839
|
|
|
744
|
-
declare class
|
|
840
|
+
declare class CreateMcpSessionRequest extends $dara.Model {
|
|
745
841
|
authorization?: string;
|
|
746
|
-
|
|
747
|
-
|
|
842
|
+
contextId?: string;
|
|
843
|
+
externalUserId?: string;
|
|
844
|
+
imageId?: string;
|
|
845
|
+
labels?: string;
|
|
846
|
+
mcpPolicyId?: string;
|
|
847
|
+
persistenceDataList?: CreateMcpSessionRequestPersistenceDataList[];
|
|
748
848
|
sessionId?: string;
|
|
749
|
-
|
|
849
|
+
vpcResource?: boolean;
|
|
850
|
+
extraConfigs?: string;
|
|
851
|
+
sdkStats?: string;
|
|
750
852
|
static names(): {
|
|
751
853
|
[key: string]: string;
|
|
752
854
|
};
|
|
@@ -759,13 +861,18 @@ declare class GetLinkRequest extends $dara.Model {
|
|
|
759
861
|
});
|
|
760
862
|
}
|
|
761
863
|
|
|
762
|
-
declare class
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
864
|
+
declare class CreateMcpSessionShrinkRequest extends $dara.Model {
|
|
865
|
+
authorization?: string;
|
|
866
|
+
contextId?: string;
|
|
867
|
+
externalUserId?: string;
|
|
868
|
+
imageId?: string;
|
|
869
|
+
labels?: string;
|
|
870
|
+
mcpPolicyId?: string;
|
|
871
|
+
persistenceDataListShrink?: string;
|
|
872
|
+
sessionId?: string;
|
|
873
|
+
vpcResource?: boolean;
|
|
874
|
+
extraConfigs?: string;
|
|
875
|
+
sdkStats?: string;
|
|
769
876
|
static names(): {
|
|
770
877
|
[key: string]: string;
|
|
771
878
|
};
|
|
@@ -778,12 +885,13 @@ declare class GetLinkResponseBody extends $dara.Model {
|
|
|
778
885
|
});
|
|
779
886
|
}
|
|
780
887
|
|
|
781
|
-
declare class
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
888
|
+
declare class CreateMcpSessionResponseBody extends $dara.Model {
|
|
889
|
+
code?: string;
|
|
890
|
+
data?: CreateMcpSessionResponseBodyData;
|
|
891
|
+
httpStatusCode?: number;
|
|
892
|
+
message?: string;
|
|
893
|
+
requestId?: string;
|
|
894
|
+
success?: boolean;
|
|
787
895
|
static names(): {
|
|
788
896
|
[key: string]: string;
|
|
789
897
|
};
|
|
@@ -796,9 +904,12 @@ declare class GetLinkResponse extends $dara.Model {
|
|
|
796
904
|
});
|
|
797
905
|
}
|
|
798
906
|
|
|
799
|
-
declare class
|
|
800
|
-
|
|
801
|
-
|
|
907
|
+
declare class CreateMcpSessionResponse extends $dara.Model {
|
|
908
|
+
headers?: {
|
|
909
|
+
[key: string]: string;
|
|
910
|
+
};
|
|
911
|
+
statusCode?: number;
|
|
912
|
+
body?: CreateMcpSessionResponseBody;
|
|
802
913
|
static names(): {
|
|
803
914
|
[key: string]: string;
|
|
804
915
|
};
|
|
@@ -811,8 +922,9 @@ declare class GetCdpLinkRequest extends $dara.Model {
|
|
|
811
922
|
});
|
|
812
923
|
}
|
|
813
924
|
|
|
814
|
-
declare class
|
|
815
|
-
|
|
925
|
+
declare class DeleteContextRequest extends $dara.Model {
|
|
926
|
+
authorization?: string;
|
|
927
|
+
id?: string;
|
|
816
928
|
static names(): {
|
|
817
929
|
[key: string]: string;
|
|
818
930
|
};
|
|
@@ -824,9 +936,9 @@ declare class GetCdpLinkResponseBodyData extends $dara.Model {
|
|
|
824
936
|
[key: string]: any;
|
|
825
937
|
});
|
|
826
938
|
}
|
|
827
|
-
|
|
939
|
+
|
|
940
|
+
declare class DeleteContextResponseBody extends $dara.Model {
|
|
828
941
|
code?: string;
|
|
829
|
-
data?: GetCdpLinkResponseBodyData;
|
|
830
942
|
httpStatusCode?: number;
|
|
831
943
|
message?: string;
|
|
832
944
|
requestId?: string;
|
|
@@ -843,12 +955,12 @@ declare class GetCdpLinkResponseBody extends $dara.Model {
|
|
|
843
955
|
});
|
|
844
956
|
}
|
|
845
957
|
|
|
846
|
-
declare class
|
|
958
|
+
declare class DeleteContextResponse extends $dara.Model {
|
|
847
959
|
headers?: {
|
|
848
960
|
[key: string]: string;
|
|
849
961
|
};
|
|
850
962
|
statusCode?: number;
|
|
851
|
-
body?:
|
|
963
|
+
body?: DeleteContextResponseBody;
|
|
852
964
|
static names(): {
|
|
853
965
|
[key: string]: string;
|
|
854
966
|
};
|
|
@@ -861,10 +973,11 @@ declare class GetCdpLinkResponse extends $dara.Model {
|
|
|
861
973
|
});
|
|
862
974
|
}
|
|
863
975
|
|
|
864
|
-
declare class
|
|
976
|
+
declare class GetContextRequest extends $dara.Model {
|
|
977
|
+
allowCreate?: boolean;
|
|
865
978
|
authorization?: string;
|
|
866
|
-
|
|
867
|
-
|
|
979
|
+
contextId?: string;
|
|
980
|
+
name?: string;
|
|
868
981
|
static names(): {
|
|
869
982
|
[key: string]: string;
|
|
870
983
|
};
|
|
@@ -877,22 +990,9 @@ declare class GetAdbLinkRequest extends $dara.Model {
|
|
|
877
990
|
});
|
|
878
991
|
}
|
|
879
992
|
|
|
880
|
-
declare class
|
|
881
|
-
url?: string;
|
|
882
|
-
static names(): {
|
|
883
|
-
[key: string]: string;
|
|
884
|
-
};
|
|
885
|
-
static types(): {
|
|
886
|
-
[key: string]: any;
|
|
887
|
-
};
|
|
888
|
-
validate(): void;
|
|
889
|
-
constructor(map?: {
|
|
890
|
-
[key: string]: any;
|
|
891
|
-
});
|
|
892
|
-
}
|
|
893
|
-
declare class GetAdbLinkResponseBody extends $dara.Model {
|
|
993
|
+
declare class GetContextResponseBody extends $dara.Model {
|
|
894
994
|
code?: string;
|
|
895
|
-
data?:
|
|
995
|
+
data?: GetContextResponseBodyData;
|
|
896
996
|
httpStatusCode?: number;
|
|
897
997
|
message?: string;
|
|
898
998
|
requestId?: string;
|
|
@@ -909,12 +1009,12 @@ declare class GetAdbLinkResponseBody extends $dara.Model {
|
|
|
909
1009
|
});
|
|
910
1010
|
}
|
|
911
1011
|
|
|
912
|
-
declare class
|
|
1012
|
+
declare class GetContextResponse extends $dara.Model {
|
|
913
1013
|
headers?: {
|
|
914
1014
|
[key: string]: string;
|
|
915
1015
|
};
|
|
916
1016
|
statusCode?: number;
|
|
917
|
-
body?:
|
|
1017
|
+
body?: GetContextResponseBody;
|
|
918
1018
|
static names(): {
|
|
919
1019
|
[key: string]: string;
|
|
920
1020
|
};
|
|
@@ -927,9 +1027,12 @@ declare class GetAdbLinkResponse extends $dara.Model {
|
|
|
927
1027
|
});
|
|
928
1028
|
}
|
|
929
1029
|
|
|
930
|
-
declare class
|
|
1030
|
+
declare class GetContextInfoRequest extends $dara.Model {
|
|
931
1031
|
authorization?: string;
|
|
1032
|
+
contextId?: string;
|
|
1033
|
+
path?: string;
|
|
932
1034
|
sessionId?: string;
|
|
1035
|
+
taskType?: string;
|
|
933
1036
|
static names(): {
|
|
934
1037
|
[key: string]: string;
|
|
935
1038
|
};
|
|
@@ -942,9 +1045,9 @@ declare class GetMcpResourceRequest extends $dara.Model {
|
|
|
942
1045
|
});
|
|
943
1046
|
}
|
|
944
1047
|
|
|
945
|
-
declare class
|
|
1048
|
+
declare class GetContextInfoResponseBody extends $dara.Model {
|
|
946
1049
|
code?: string;
|
|
947
|
-
data?:
|
|
1050
|
+
data?: GetContextInfoResponseBodyData;
|
|
948
1051
|
httpStatusCode?: number;
|
|
949
1052
|
message?: string;
|
|
950
1053
|
requestId?: string;
|
|
@@ -961,12 +1064,12 @@ declare class GetMcpResourceResponseBody extends $dara.Model {
|
|
|
961
1064
|
});
|
|
962
1065
|
}
|
|
963
1066
|
|
|
964
|
-
declare class
|
|
1067
|
+
declare class GetContextInfoResponse extends $dara.Model {
|
|
965
1068
|
headers?: {
|
|
966
1069
|
[key: string]: string;
|
|
967
1070
|
};
|
|
968
1071
|
statusCode?: number;
|
|
969
|
-
body?:
|
|
1072
|
+
body?: GetContextInfoResponseBody;
|
|
970
1073
|
static names(): {
|
|
971
1074
|
[key: string]: string;
|
|
972
1075
|
};
|
|
@@ -979,13 +1082,11 @@ declare class GetMcpResourceResponse extends $dara.Model {
|
|
|
979
1082
|
});
|
|
980
1083
|
}
|
|
981
1084
|
|
|
982
|
-
declare class
|
|
1085
|
+
declare class GetLabelRequest extends $dara.Model {
|
|
983
1086
|
authorization?: string;
|
|
984
|
-
|
|
1087
|
+
maxResults?: number;
|
|
1088
|
+
nextToken?: string;
|
|
985
1089
|
sessionId?: string;
|
|
986
|
-
browserOption?: {
|
|
987
|
-
[key: string]: any;
|
|
988
|
-
};
|
|
989
1090
|
static names(): {
|
|
990
1091
|
[key: string]: string;
|
|
991
1092
|
};
|
|
@@ -996,35 +1097,18 @@ declare class InitBrowserRequest extends $dara.Model {
|
|
|
996
1097
|
constructor(map?: {
|
|
997
1098
|
[key: string]: any;
|
|
998
1099
|
});
|
|
999
|
-
static fromMap(m: {
|
|
1000
|
-
[key: string]: any;
|
|
1001
|
-
}): InitBrowserRequest;
|
|
1002
1100
|
}
|
|
1003
1101
|
|
|
1004
|
-
declare class
|
|
1005
|
-
port?: number;
|
|
1006
|
-
static names(): {
|
|
1007
|
-
[key: string]: string;
|
|
1008
|
-
};
|
|
1009
|
-
static types(): {
|
|
1010
|
-
[key: string]: any;
|
|
1011
|
-
};
|
|
1012
|
-
validate(): void;
|
|
1013
|
-
constructor(map?: {
|
|
1014
|
-
[key: string]: any;
|
|
1015
|
-
});
|
|
1016
|
-
static fromMap(m: {
|
|
1017
|
-
[key: string]: any;
|
|
1018
|
-
}): InitBrowserResponseBodyData;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
declare class InitBrowserResponseBody extends $dara.Model {
|
|
1102
|
+
declare class GetLabelResponseBody extends $dara.Model {
|
|
1022
1103
|
code?: string;
|
|
1023
|
-
data?:
|
|
1104
|
+
data?: GetLabelResponseBodyData;
|
|
1024
1105
|
httpStatusCode?: number;
|
|
1106
|
+
maxResults?: number;
|
|
1025
1107
|
message?: string;
|
|
1108
|
+
nextToken?: string;
|
|
1026
1109
|
requestId?: string;
|
|
1027
1110
|
success?: boolean;
|
|
1111
|
+
totalCount?: number;
|
|
1028
1112
|
static names(): {
|
|
1029
1113
|
[key: string]: string;
|
|
1030
1114
|
};
|
|
@@ -1035,17 +1119,14 @@ declare class InitBrowserResponseBody extends $dara.Model {
|
|
|
1035
1119
|
constructor(map?: {
|
|
1036
1120
|
[key: string]: any;
|
|
1037
1121
|
});
|
|
1038
|
-
static fromMap(m: {
|
|
1039
|
-
[key: string]: any;
|
|
1040
|
-
}): InitBrowserResponseBody;
|
|
1041
1122
|
}
|
|
1042
1123
|
|
|
1043
|
-
declare class
|
|
1124
|
+
declare class GetLabelResponse extends $dara.Model {
|
|
1044
1125
|
headers?: {
|
|
1045
1126
|
[key: string]: string;
|
|
1046
1127
|
};
|
|
1047
1128
|
statusCode?: number;
|
|
1048
|
-
body?:
|
|
1129
|
+
body?: GetLabelResponseBody;
|
|
1049
1130
|
static names(): {
|
|
1050
1131
|
[key: string]: string;
|
|
1051
1132
|
};
|
|
@@ -1056,15 +1137,11 @@ declare class InitBrowserResponse extends $dara.Model {
|
|
|
1056
1137
|
constructor(map?: {
|
|
1057
1138
|
[key: string]: any;
|
|
1058
1139
|
});
|
|
1059
|
-
static fromMap(m: {
|
|
1060
|
-
[key: string]: any;
|
|
1061
|
-
}): InitBrowserResponse;
|
|
1062
1140
|
}
|
|
1063
1141
|
|
|
1064
|
-
declare class
|
|
1142
|
+
declare class GetSessionRequest extends $dara.Model {
|
|
1065
1143
|
authorization?: string;
|
|
1066
|
-
|
|
1067
|
-
nextToken?: string;
|
|
1144
|
+
sessionId?: string;
|
|
1068
1145
|
static names(): {
|
|
1069
1146
|
[key: string]: string;
|
|
1070
1147
|
};
|
|
@@ -1077,16 +1154,13 @@ declare class ListContextsRequest extends $dara.Model {
|
|
|
1077
1154
|
});
|
|
1078
1155
|
}
|
|
1079
1156
|
|
|
1080
|
-
declare class
|
|
1157
|
+
declare class GetSessionResponseBody extends $dara.Model {
|
|
1081
1158
|
code?: string;
|
|
1082
|
-
data?:
|
|
1159
|
+
data?: GetSessionResponseBodyData;
|
|
1083
1160
|
httpStatusCode?: number;
|
|
1084
|
-
maxResults?: number;
|
|
1085
1161
|
message?: string;
|
|
1086
|
-
nextToken?: string;
|
|
1087
1162
|
requestId?: string;
|
|
1088
1163
|
success?: boolean;
|
|
1089
|
-
totalCount?: number;
|
|
1090
1164
|
static names(): {
|
|
1091
1165
|
[key: string]: string;
|
|
1092
1166
|
};
|
|
@@ -1099,12 +1173,12 @@ declare class ListContextsResponseBody extends $dara.Model {
|
|
|
1099
1173
|
});
|
|
1100
1174
|
}
|
|
1101
1175
|
|
|
1102
|
-
declare class
|
|
1176
|
+
declare class GetSessionResponse extends $dara.Model {
|
|
1103
1177
|
headers?: {
|
|
1104
1178
|
[key: string]: string;
|
|
1105
1179
|
};
|
|
1106
1180
|
statusCode?: number;
|
|
1107
|
-
body?:
|
|
1181
|
+
body?: GetSessionResponseBody;
|
|
1108
1182
|
static names(): {
|
|
1109
1183
|
[key: string]: string;
|
|
1110
1184
|
};
|
|
@@ -1117,9 +1191,12 @@ declare class ListContextsResponse extends $dara.Model {
|
|
|
1117
1191
|
});
|
|
1118
1192
|
}
|
|
1119
1193
|
|
|
1120
|
-
declare class
|
|
1194
|
+
declare class GetLinkRequest extends $dara.Model {
|
|
1121
1195
|
authorization?: string;
|
|
1122
|
-
|
|
1196
|
+
port?: number;
|
|
1197
|
+
protocolType?: string;
|
|
1198
|
+
sessionId?: string;
|
|
1199
|
+
option?: string;
|
|
1123
1200
|
static names(): {
|
|
1124
1201
|
[key: string]: string;
|
|
1125
1202
|
};
|
|
@@ -1132,9 +1209,9 @@ declare class ListMcpToolsRequest extends $dara.Model {
|
|
|
1132
1209
|
});
|
|
1133
1210
|
}
|
|
1134
1211
|
|
|
1135
|
-
declare class
|
|
1212
|
+
declare class GetLinkResponseBody extends $dara.Model {
|
|
1136
1213
|
code?: string;
|
|
1137
|
-
data?:
|
|
1214
|
+
data?: GetLinkResponseBodyData;
|
|
1138
1215
|
httpStatusCode?: number;
|
|
1139
1216
|
message?: string;
|
|
1140
1217
|
requestId?: string;
|
|
@@ -1151,12 +1228,12 @@ declare class ListMcpToolsResponseBody extends $dara.Model {
|
|
|
1151
1228
|
});
|
|
1152
1229
|
}
|
|
1153
1230
|
|
|
1154
|
-
declare class
|
|
1231
|
+
declare class GetLinkResponse extends $dara.Model {
|
|
1155
1232
|
headers?: {
|
|
1156
1233
|
[key: string]: string;
|
|
1157
1234
|
};
|
|
1158
1235
|
statusCode?: number;
|
|
1159
|
-
body?:
|
|
1236
|
+
body?: GetLinkResponseBody;
|
|
1160
1237
|
static names(): {
|
|
1161
1238
|
[key: string]: string;
|
|
1162
1239
|
};
|
|
@@ -1169,11 +1246,9 @@ declare class ListMcpToolsResponse extends $dara.Model {
|
|
|
1169
1246
|
});
|
|
1170
1247
|
}
|
|
1171
1248
|
|
|
1172
|
-
declare class
|
|
1249
|
+
declare class GetCdpLinkRequest extends $dara.Model {
|
|
1173
1250
|
authorization?: string;
|
|
1174
|
-
|
|
1175
|
-
maxResults?: number;
|
|
1176
|
-
nextToken?: string;
|
|
1251
|
+
sessionId?: string;
|
|
1177
1252
|
static names(): {
|
|
1178
1253
|
[key: string]: string;
|
|
1179
1254
|
};
|
|
@@ -1186,16 +1261,26 @@ declare class ListSessionRequest extends $dara.Model {
|
|
|
1186
1261
|
});
|
|
1187
1262
|
}
|
|
1188
1263
|
|
|
1189
|
-
declare class
|
|
1264
|
+
declare class GetCdpLinkResponseBodyData extends $dara.Model {
|
|
1265
|
+
url?: string;
|
|
1266
|
+
static names(): {
|
|
1267
|
+
[key: string]: string;
|
|
1268
|
+
};
|
|
1269
|
+
static types(): {
|
|
1270
|
+
[key: string]: any;
|
|
1271
|
+
};
|
|
1272
|
+
validate(): void;
|
|
1273
|
+
constructor(map?: {
|
|
1274
|
+
[key: string]: any;
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
declare class GetCdpLinkResponseBody extends $dara.Model {
|
|
1190
1278
|
code?: string;
|
|
1191
|
-
data?:
|
|
1279
|
+
data?: GetCdpLinkResponseBodyData;
|
|
1192
1280
|
httpStatusCode?: number;
|
|
1193
|
-
maxResults?: number;
|
|
1194
1281
|
message?: string;
|
|
1195
|
-
nextToken?: string;
|
|
1196
1282
|
requestId?: string;
|
|
1197
1283
|
success?: boolean;
|
|
1198
|
-
totalCount?: number;
|
|
1199
1284
|
static names(): {
|
|
1200
1285
|
[key: string]: string;
|
|
1201
1286
|
};
|
|
@@ -1208,12 +1293,12 @@ declare class ListSessionResponseBody extends $dara.Model {
|
|
|
1208
1293
|
});
|
|
1209
1294
|
}
|
|
1210
1295
|
|
|
1211
|
-
declare class
|
|
1296
|
+
declare class GetCdpLinkResponse extends $dara.Model {
|
|
1212
1297
|
headers?: {
|
|
1213
1298
|
[key: string]: string;
|
|
1214
1299
|
};
|
|
1215
1300
|
statusCode?: number;
|
|
1216
|
-
body?:
|
|
1301
|
+
body?: GetCdpLinkResponseBody;
|
|
1217
1302
|
static names(): {
|
|
1218
1303
|
[key: string]: string;
|
|
1219
1304
|
};
|
|
@@ -1226,10 +1311,10 @@ declare class ListSessionResponse extends $dara.Model {
|
|
|
1226
1311
|
});
|
|
1227
1312
|
}
|
|
1228
1313
|
|
|
1229
|
-
declare class
|
|
1314
|
+
declare class GetAdbLinkRequest extends $dara.Model {
|
|
1230
1315
|
authorization?: string;
|
|
1231
|
-
|
|
1232
|
-
|
|
1316
|
+
option?: string;
|
|
1317
|
+
sessionId?: string;
|
|
1233
1318
|
static names(): {
|
|
1234
1319
|
[key: string]: string;
|
|
1235
1320
|
};
|
|
@@ -1242,8 +1327,22 @@ declare class ModifyContextRequest extends $dara.Model {
|
|
|
1242
1327
|
});
|
|
1243
1328
|
}
|
|
1244
1329
|
|
|
1245
|
-
declare class
|
|
1330
|
+
declare class GetAdbLinkResponseBodyData extends $dara.Model {
|
|
1331
|
+
url?: string;
|
|
1332
|
+
static names(): {
|
|
1333
|
+
[key: string]: string;
|
|
1334
|
+
};
|
|
1335
|
+
static types(): {
|
|
1336
|
+
[key: string]: any;
|
|
1337
|
+
};
|
|
1338
|
+
validate(): void;
|
|
1339
|
+
constructor(map?: {
|
|
1340
|
+
[key: string]: any;
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
declare class GetAdbLinkResponseBody extends $dara.Model {
|
|
1246
1344
|
code?: string;
|
|
1345
|
+
data?: GetAdbLinkResponseBodyData;
|
|
1247
1346
|
httpStatusCode?: number;
|
|
1248
1347
|
message?: string;
|
|
1249
1348
|
requestId?: string;
|
|
@@ -1260,12 +1359,12 @@ declare class ModifyContextResponseBody extends $dara.Model {
|
|
|
1260
1359
|
});
|
|
1261
1360
|
}
|
|
1262
1361
|
|
|
1263
|
-
declare class
|
|
1362
|
+
declare class GetAdbLinkResponse extends $dara.Model {
|
|
1264
1363
|
headers?: {
|
|
1265
1364
|
[key: string]: string;
|
|
1266
1365
|
};
|
|
1267
1366
|
statusCode?: number;
|
|
1268
|
-
body?:
|
|
1367
|
+
body?: GetAdbLinkResponseBody;
|
|
1269
1368
|
static names(): {
|
|
1270
1369
|
[key: string]: string;
|
|
1271
1370
|
};
|
|
@@ -1278,7 +1377,7 @@ declare class ModifyContextResponse extends $dara.Model {
|
|
|
1278
1377
|
});
|
|
1279
1378
|
}
|
|
1280
1379
|
|
|
1281
|
-
declare class
|
|
1380
|
+
declare class GetMcpResourceRequest extends $dara.Model {
|
|
1282
1381
|
authorization?: string;
|
|
1283
1382
|
sessionId?: string;
|
|
1284
1383
|
static names(): {
|
|
@@ -1293,8 +1392,9 @@ declare class ReleaseMcpSessionRequest extends $dara.Model {
|
|
|
1293
1392
|
});
|
|
1294
1393
|
}
|
|
1295
1394
|
|
|
1296
|
-
declare class
|
|
1395
|
+
declare class GetMcpResourceResponseBody extends $dara.Model {
|
|
1297
1396
|
code?: string;
|
|
1397
|
+
data?: GetMcpResourceResponseBodyData;
|
|
1298
1398
|
httpStatusCode?: number;
|
|
1299
1399
|
message?: string;
|
|
1300
1400
|
requestId?: string;
|
|
@@ -1311,12 +1411,12 @@ declare class ReleaseMcpSessionResponseBody extends $dara.Model {
|
|
|
1311
1411
|
});
|
|
1312
1412
|
}
|
|
1313
1413
|
|
|
1314
|
-
declare class
|
|
1414
|
+
declare class GetMcpResourceResponse extends $dara.Model {
|
|
1315
1415
|
headers?: {
|
|
1316
1416
|
[key: string]: string;
|
|
1317
1417
|
};
|
|
1318
1418
|
statusCode?: number;
|
|
1319
|
-
body?:
|
|
1419
|
+
body?: GetMcpResourceResponseBody;
|
|
1320
1420
|
static names(): {
|
|
1321
1421
|
[key: string]: string;
|
|
1322
1422
|
};
|
|
@@ -1329,10 +1429,13 @@ declare class ReleaseMcpSessionResponse extends $dara.Model {
|
|
|
1329
1429
|
});
|
|
1330
1430
|
}
|
|
1331
1431
|
|
|
1332
|
-
declare class
|
|
1432
|
+
declare class InitBrowserRequest extends $dara.Model {
|
|
1333
1433
|
authorization?: string;
|
|
1334
|
-
|
|
1434
|
+
persistentPath?: string;
|
|
1335
1435
|
sessionId?: string;
|
|
1436
|
+
browserOption?: {
|
|
1437
|
+
[key: string]: any;
|
|
1438
|
+
};
|
|
1336
1439
|
static names(): {
|
|
1337
1440
|
[key: string]: string;
|
|
1338
1441
|
};
|
|
@@ -1343,10 +1446,31 @@ declare class SetLabelRequest extends $dara.Model {
|
|
|
1343
1446
|
constructor(map?: {
|
|
1344
1447
|
[key: string]: any;
|
|
1345
1448
|
});
|
|
1449
|
+
static fromMap(m: {
|
|
1450
|
+
[key: string]: any;
|
|
1451
|
+
}): InitBrowserRequest;
|
|
1346
1452
|
}
|
|
1347
1453
|
|
|
1348
|
-
declare class
|
|
1454
|
+
declare class InitBrowserResponseBodyData extends $dara.Model {
|
|
1455
|
+
port?: number;
|
|
1456
|
+
static names(): {
|
|
1457
|
+
[key: string]: string;
|
|
1458
|
+
};
|
|
1459
|
+
static types(): {
|
|
1460
|
+
[key: string]: any;
|
|
1461
|
+
};
|
|
1462
|
+
validate(): void;
|
|
1463
|
+
constructor(map?: {
|
|
1464
|
+
[key: string]: any;
|
|
1465
|
+
});
|
|
1466
|
+
static fromMap(m: {
|
|
1467
|
+
[key: string]: any;
|
|
1468
|
+
}): InitBrowserResponseBodyData;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
declare class InitBrowserResponseBody extends $dara.Model {
|
|
1349
1472
|
code?: string;
|
|
1473
|
+
data?: InitBrowserResponseBodyData;
|
|
1350
1474
|
httpStatusCode?: number;
|
|
1351
1475
|
message?: string;
|
|
1352
1476
|
requestId?: string;
|
|
@@ -1361,14 +1485,17 @@ declare class SetLabelResponseBody extends $dara.Model {
|
|
|
1361
1485
|
constructor(map?: {
|
|
1362
1486
|
[key: string]: any;
|
|
1363
1487
|
});
|
|
1488
|
+
static fromMap(m: {
|
|
1489
|
+
[key: string]: any;
|
|
1490
|
+
}): InitBrowserResponseBody;
|
|
1364
1491
|
}
|
|
1365
1492
|
|
|
1366
|
-
declare class
|
|
1493
|
+
declare class InitBrowserResponse extends $dara.Model {
|
|
1367
1494
|
headers?: {
|
|
1368
1495
|
[key: string]: string;
|
|
1369
1496
|
};
|
|
1370
1497
|
statusCode?: number;
|
|
1371
|
-
body?:
|
|
1498
|
+
body?: InitBrowserResponseBody;
|
|
1372
1499
|
static names(): {
|
|
1373
1500
|
[key: string]: string;
|
|
1374
1501
|
};
|
|
@@ -1379,14 +1506,15 @@ declare class SetLabelResponse extends $dara.Model {
|
|
|
1379
1506
|
constructor(map?: {
|
|
1380
1507
|
[key: string]: any;
|
|
1381
1508
|
});
|
|
1509
|
+
static fromMap(m: {
|
|
1510
|
+
[key: string]: any;
|
|
1511
|
+
}): InitBrowserResponse;
|
|
1382
1512
|
}
|
|
1383
1513
|
|
|
1384
|
-
declare class
|
|
1514
|
+
declare class ListContextsRequest extends $dara.Model {
|
|
1385
1515
|
authorization?: string;
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
path?: string;
|
|
1389
|
-
sessionId?: string;
|
|
1516
|
+
maxResults?: number;
|
|
1517
|
+
nextToken?: string;
|
|
1390
1518
|
static names(): {
|
|
1391
1519
|
[key: string]: string;
|
|
1392
1520
|
};
|
|
@@ -1399,12 +1527,16 @@ declare class SyncContextRequest extends $dara.Model {
|
|
|
1399
1527
|
});
|
|
1400
1528
|
}
|
|
1401
1529
|
|
|
1402
|
-
declare class
|
|
1530
|
+
declare class ListContextsResponseBody extends $dara.Model {
|
|
1403
1531
|
code?: string;
|
|
1532
|
+
data?: ListContextsResponseBodyData[];
|
|
1404
1533
|
httpStatusCode?: number;
|
|
1534
|
+
maxResults?: number;
|
|
1405
1535
|
message?: string;
|
|
1536
|
+
nextToken?: string;
|
|
1406
1537
|
requestId?: string;
|
|
1407
1538
|
success?: boolean;
|
|
1539
|
+
totalCount?: number;
|
|
1408
1540
|
static names(): {
|
|
1409
1541
|
[key: string]: string;
|
|
1410
1542
|
};
|
|
@@ -1417,12 +1549,12 @@ declare class SyncContextResponseBody extends $dara.Model {
|
|
|
1417
1549
|
});
|
|
1418
1550
|
}
|
|
1419
1551
|
|
|
1420
|
-
declare class
|
|
1552
|
+
declare class ListContextsResponse extends $dara.Model {
|
|
1421
1553
|
headers?: {
|
|
1422
1554
|
[key: string]: string;
|
|
1423
1555
|
};
|
|
1424
1556
|
statusCode?: number;
|
|
1425
|
-
body?:
|
|
1557
|
+
body?: ListContextsResponseBody;
|
|
1426
1558
|
static names(): {
|
|
1427
1559
|
[key: string]: string;
|
|
1428
1560
|
};
|
|
@@ -1435,10 +1567,9 @@ declare class SyncContextResponse extends $dara.Model {
|
|
|
1435
1567
|
});
|
|
1436
1568
|
}
|
|
1437
1569
|
|
|
1438
|
-
declare class
|
|
1570
|
+
declare class ListMcpToolsRequest extends $dara.Model {
|
|
1439
1571
|
authorization?: string;
|
|
1440
|
-
|
|
1441
|
-
filePath?: string;
|
|
1572
|
+
imageId?: string;
|
|
1442
1573
|
static names(): {
|
|
1443
1574
|
[key: string]: string;
|
|
1444
1575
|
};
|
|
@@ -1451,8 +1582,9 @@ declare class DeleteContextFileRequest extends $dara.Model {
|
|
|
1451
1582
|
});
|
|
1452
1583
|
}
|
|
1453
1584
|
|
|
1454
|
-
declare class
|
|
1585
|
+
declare class ListMcpToolsResponseBody extends $dara.Model {
|
|
1455
1586
|
code?: string;
|
|
1587
|
+
data?: string;
|
|
1456
1588
|
httpStatusCode?: number;
|
|
1457
1589
|
message?: string;
|
|
1458
1590
|
requestId?: string;
|
|
@@ -1469,12 +1601,12 @@ declare class DeleteContextFileResponseBody extends $dara.Model {
|
|
|
1469
1601
|
});
|
|
1470
1602
|
}
|
|
1471
1603
|
|
|
1472
|
-
declare class
|
|
1604
|
+
declare class ListMcpToolsResponse extends $dara.Model {
|
|
1473
1605
|
headers?: {
|
|
1474
1606
|
[key: string]: string;
|
|
1475
1607
|
};
|
|
1476
1608
|
statusCode?: number;
|
|
1477
|
-
body?:
|
|
1609
|
+
body?: ListMcpToolsResponseBody;
|
|
1478
1610
|
static names(): {
|
|
1479
1611
|
[key: string]: string;
|
|
1480
1612
|
};
|
|
@@ -1487,12 +1619,11 @@ declare class DeleteContextFileResponse extends $dara.Model {
|
|
|
1487
1619
|
});
|
|
1488
1620
|
}
|
|
1489
1621
|
|
|
1490
|
-
declare class
|
|
1622
|
+
declare class ListSessionRequest extends $dara.Model {
|
|
1491
1623
|
authorization?: string;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
contextId?: string;
|
|
1624
|
+
labels?: string;
|
|
1625
|
+
maxResults?: number;
|
|
1626
|
+
nextToken?: string;
|
|
1496
1627
|
static names(): {
|
|
1497
1628
|
[key: string]: string;
|
|
1498
1629
|
};
|
|
@@ -1505,34 +1636,16 @@ declare class DescribeContextFilesRequest extends $dara.Model {
|
|
|
1505
1636
|
});
|
|
1506
1637
|
}
|
|
1507
1638
|
|
|
1508
|
-
declare class
|
|
1509
|
-
fileId?: string;
|
|
1510
|
-
fileName?: string;
|
|
1511
|
-
filePath?: string;
|
|
1512
|
-
fileType?: string;
|
|
1513
|
-
gmtCreate?: string;
|
|
1514
|
-
gmtModified?: string;
|
|
1515
|
-
size?: number;
|
|
1516
|
-
status?: string;
|
|
1517
|
-
static names(): {
|
|
1518
|
-
[key: string]: string;
|
|
1519
|
-
};
|
|
1520
|
-
static types(): {
|
|
1521
|
-
[key: string]: any;
|
|
1522
|
-
};
|
|
1523
|
-
validate(): void;
|
|
1524
|
-
constructor(map?: {
|
|
1525
|
-
[key: string]: any;
|
|
1526
|
-
});
|
|
1527
|
-
}
|
|
1528
|
-
declare class DescribeContextFilesResponseBody extends $dara.Model {
|
|
1639
|
+
declare class ListSessionResponseBody extends $dara.Model {
|
|
1529
1640
|
code?: string;
|
|
1530
|
-
|
|
1531
|
-
data?: DescribeContextFilesResponseBodyData[];
|
|
1641
|
+
data?: ListSessionResponseBodyData[];
|
|
1532
1642
|
httpStatusCode?: number;
|
|
1643
|
+
maxResults?: number;
|
|
1533
1644
|
message?: string;
|
|
1645
|
+
nextToken?: string;
|
|
1534
1646
|
requestId?: string;
|
|
1535
1647
|
success?: boolean;
|
|
1648
|
+
totalCount?: number;
|
|
1536
1649
|
static names(): {
|
|
1537
1650
|
[key: string]: string;
|
|
1538
1651
|
};
|
|
@@ -1545,12 +1658,12 @@ declare class DescribeContextFilesResponseBody extends $dara.Model {
|
|
|
1545
1658
|
});
|
|
1546
1659
|
}
|
|
1547
1660
|
|
|
1548
|
-
declare class
|
|
1661
|
+
declare class ListSessionResponse extends $dara.Model {
|
|
1549
1662
|
headers?: {
|
|
1550
1663
|
[key: string]: string;
|
|
1551
1664
|
};
|
|
1552
1665
|
statusCode?: number;
|
|
1553
|
-
body?:
|
|
1666
|
+
body?: ListSessionResponseBody;
|
|
1554
1667
|
static names(): {
|
|
1555
1668
|
[key: string]: string;
|
|
1556
1669
|
};
|
|
@@ -1563,10 +1676,10 @@ declare class DescribeContextFilesResponse extends $dara.Model {
|
|
|
1563
1676
|
});
|
|
1564
1677
|
}
|
|
1565
1678
|
|
|
1566
|
-
declare class
|
|
1679
|
+
declare class ModifyContextRequest extends $dara.Model {
|
|
1567
1680
|
authorization?: string;
|
|
1568
|
-
|
|
1569
|
-
|
|
1681
|
+
id?: string;
|
|
1682
|
+
name?: string;
|
|
1570
1683
|
static names(): {
|
|
1571
1684
|
[key: string]: string;
|
|
1572
1685
|
};
|
|
@@ -1579,9 +1692,12 @@ declare class GetContextFileDownloadUrlRequest extends $dara.Model {
|
|
|
1579
1692
|
});
|
|
1580
1693
|
}
|
|
1581
1694
|
|
|
1582
|
-
declare class
|
|
1583
|
-
|
|
1584
|
-
|
|
1695
|
+
declare class ModifyContextResponseBody extends $dara.Model {
|
|
1696
|
+
code?: string;
|
|
1697
|
+
httpStatusCode?: number;
|
|
1698
|
+
message?: string;
|
|
1699
|
+
requestId?: string;
|
|
1700
|
+
success?: boolean;
|
|
1585
1701
|
static names(): {
|
|
1586
1702
|
[key: string]: string;
|
|
1587
1703
|
};
|
|
@@ -1593,9 +1709,42 @@ declare class GetContextFileDownloadUrlResponseBodyData extends $dara.Model {
|
|
|
1593
1709
|
[key: string]: any;
|
|
1594
1710
|
});
|
|
1595
1711
|
}
|
|
1596
|
-
|
|
1712
|
+
|
|
1713
|
+
declare class ModifyContextResponse extends $dara.Model {
|
|
1714
|
+
headers?: {
|
|
1715
|
+
[key: string]: string;
|
|
1716
|
+
};
|
|
1717
|
+
statusCode?: number;
|
|
1718
|
+
body?: ModifyContextResponseBody;
|
|
1719
|
+
static names(): {
|
|
1720
|
+
[key: string]: string;
|
|
1721
|
+
};
|
|
1722
|
+
static types(): {
|
|
1723
|
+
[key: string]: any;
|
|
1724
|
+
};
|
|
1725
|
+
validate(): void;
|
|
1726
|
+
constructor(map?: {
|
|
1727
|
+
[key: string]: any;
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
declare class ReleaseMcpSessionRequest extends $dara.Model {
|
|
1732
|
+
authorization?: string;
|
|
1733
|
+
sessionId?: string;
|
|
1734
|
+
static names(): {
|
|
1735
|
+
[key: string]: string;
|
|
1736
|
+
};
|
|
1737
|
+
static types(): {
|
|
1738
|
+
[key: string]: any;
|
|
1739
|
+
};
|
|
1740
|
+
validate(): void;
|
|
1741
|
+
constructor(map?: {
|
|
1742
|
+
[key: string]: any;
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
declare class ReleaseMcpSessionResponseBody extends $dara.Model {
|
|
1597
1747
|
code?: string;
|
|
1598
|
-
data?: GetContextFileDownloadUrlResponseBodyData;
|
|
1599
1748
|
httpStatusCode?: number;
|
|
1600
1749
|
message?: string;
|
|
1601
1750
|
requestId?: string;
|
|
@@ -1612,12 +1761,12 @@ declare class GetContextFileDownloadUrlResponseBody extends $dara.Model {
|
|
|
1612
1761
|
});
|
|
1613
1762
|
}
|
|
1614
1763
|
|
|
1615
|
-
declare class
|
|
1764
|
+
declare class ReleaseMcpSessionResponse extends $dara.Model {
|
|
1616
1765
|
headers?: {
|
|
1617
1766
|
[key: string]: string;
|
|
1618
1767
|
};
|
|
1619
1768
|
statusCode?: number;
|
|
1620
|
-
body?:
|
|
1769
|
+
body?: ReleaseMcpSessionResponseBody;
|
|
1621
1770
|
static names(): {
|
|
1622
1771
|
[key: string]: string;
|
|
1623
1772
|
};
|
|
@@ -1630,7 +1779,113 @@ declare class GetContextFileDownloadUrlResponse extends $dara.Model {
|
|
|
1630
1779
|
});
|
|
1631
1780
|
}
|
|
1632
1781
|
|
|
1633
|
-
declare class
|
|
1782
|
+
declare class SetLabelRequest extends $dara.Model {
|
|
1783
|
+
authorization?: string;
|
|
1784
|
+
labels?: string;
|
|
1785
|
+
sessionId?: string;
|
|
1786
|
+
static names(): {
|
|
1787
|
+
[key: string]: string;
|
|
1788
|
+
};
|
|
1789
|
+
static types(): {
|
|
1790
|
+
[key: string]: any;
|
|
1791
|
+
};
|
|
1792
|
+
validate(): void;
|
|
1793
|
+
constructor(map?: {
|
|
1794
|
+
[key: string]: any;
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
declare class SetLabelResponseBody extends $dara.Model {
|
|
1799
|
+
code?: string;
|
|
1800
|
+
httpStatusCode?: number;
|
|
1801
|
+
message?: string;
|
|
1802
|
+
requestId?: string;
|
|
1803
|
+
success?: boolean;
|
|
1804
|
+
static names(): {
|
|
1805
|
+
[key: string]: string;
|
|
1806
|
+
};
|
|
1807
|
+
static types(): {
|
|
1808
|
+
[key: string]: any;
|
|
1809
|
+
};
|
|
1810
|
+
validate(): void;
|
|
1811
|
+
constructor(map?: {
|
|
1812
|
+
[key: string]: any;
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
declare class SetLabelResponse extends $dara.Model {
|
|
1817
|
+
headers?: {
|
|
1818
|
+
[key: string]: string;
|
|
1819
|
+
};
|
|
1820
|
+
statusCode?: number;
|
|
1821
|
+
body?: SetLabelResponseBody;
|
|
1822
|
+
static names(): {
|
|
1823
|
+
[key: string]: string;
|
|
1824
|
+
};
|
|
1825
|
+
static types(): {
|
|
1826
|
+
[key: string]: any;
|
|
1827
|
+
};
|
|
1828
|
+
validate(): void;
|
|
1829
|
+
constructor(map?: {
|
|
1830
|
+
[key: string]: any;
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
declare class SyncContextRequest extends $dara.Model {
|
|
1835
|
+
authorization?: string;
|
|
1836
|
+
contextId?: string;
|
|
1837
|
+
mode?: string;
|
|
1838
|
+
path?: string;
|
|
1839
|
+
sessionId?: string;
|
|
1840
|
+
static names(): {
|
|
1841
|
+
[key: string]: string;
|
|
1842
|
+
};
|
|
1843
|
+
static types(): {
|
|
1844
|
+
[key: string]: any;
|
|
1845
|
+
};
|
|
1846
|
+
validate(): void;
|
|
1847
|
+
constructor(map?: {
|
|
1848
|
+
[key: string]: any;
|
|
1849
|
+
});
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
declare class SyncContextResponseBody extends $dara.Model {
|
|
1853
|
+
code?: string;
|
|
1854
|
+
httpStatusCode?: number;
|
|
1855
|
+
message?: string;
|
|
1856
|
+
requestId?: string;
|
|
1857
|
+
success?: boolean;
|
|
1858
|
+
static names(): {
|
|
1859
|
+
[key: string]: string;
|
|
1860
|
+
};
|
|
1861
|
+
static types(): {
|
|
1862
|
+
[key: string]: any;
|
|
1863
|
+
};
|
|
1864
|
+
validate(): void;
|
|
1865
|
+
constructor(map?: {
|
|
1866
|
+
[key: string]: any;
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
declare class SyncContextResponse extends $dara.Model {
|
|
1871
|
+
headers?: {
|
|
1872
|
+
[key: string]: string;
|
|
1873
|
+
};
|
|
1874
|
+
statusCode?: number;
|
|
1875
|
+
body?: SyncContextResponseBody;
|
|
1876
|
+
static names(): {
|
|
1877
|
+
[key: string]: string;
|
|
1878
|
+
};
|
|
1879
|
+
static types(): {
|
|
1880
|
+
[key: string]: any;
|
|
1881
|
+
};
|
|
1882
|
+
validate(): void;
|
|
1883
|
+
constructor(map?: {
|
|
1884
|
+
[key: string]: any;
|
|
1885
|
+
});
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
declare class DeleteContextFileRequest extends $dara.Model {
|
|
1634
1889
|
authorization?: string;
|
|
1635
1890
|
contextId?: string;
|
|
1636
1891
|
filePath?: string;
|
|
@@ -1646,9 +1901,12 @@ declare class GetContextFileUploadUrlRequest extends $dara.Model {
|
|
|
1646
1901
|
});
|
|
1647
1902
|
}
|
|
1648
1903
|
|
|
1649
|
-
declare class
|
|
1650
|
-
|
|
1651
|
-
|
|
1904
|
+
declare class DeleteContextFileResponseBody extends $dara.Model {
|
|
1905
|
+
code?: string;
|
|
1906
|
+
httpStatusCode?: number;
|
|
1907
|
+
message?: string;
|
|
1908
|
+
requestId?: string;
|
|
1909
|
+
success?: boolean;
|
|
1652
1910
|
static names(): {
|
|
1653
1911
|
[key: string]: string;
|
|
1654
1912
|
};
|
|
@@ -1660,9 +1918,67 @@ declare class GetContextFileUploadUrlResponseBodyData extends $dara.Model {
|
|
|
1660
1918
|
[key: string]: any;
|
|
1661
1919
|
});
|
|
1662
1920
|
}
|
|
1663
|
-
|
|
1921
|
+
|
|
1922
|
+
declare class DeleteContextFileResponse extends $dara.Model {
|
|
1923
|
+
headers?: {
|
|
1924
|
+
[key: string]: string;
|
|
1925
|
+
};
|
|
1926
|
+
statusCode?: number;
|
|
1927
|
+
body?: DeleteContextFileResponseBody;
|
|
1928
|
+
static names(): {
|
|
1929
|
+
[key: string]: string;
|
|
1930
|
+
};
|
|
1931
|
+
static types(): {
|
|
1932
|
+
[key: string]: any;
|
|
1933
|
+
};
|
|
1934
|
+
validate(): void;
|
|
1935
|
+
constructor(map?: {
|
|
1936
|
+
[key: string]: any;
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
declare class DescribeContextFilesRequest extends $dara.Model {
|
|
1941
|
+
authorization?: string;
|
|
1942
|
+
pageNumber?: number;
|
|
1943
|
+
pageSize?: number;
|
|
1944
|
+
parentFolderPath?: string;
|
|
1945
|
+
contextId?: string;
|
|
1946
|
+
static names(): {
|
|
1947
|
+
[key: string]: string;
|
|
1948
|
+
};
|
|
1949
|
+
static types(): {
|
|
1950
|
+
[key: string]: any;
|
|
1951
|
+
};
|
|
1952
|
+
validate(): void;
|
|
1953
|
+
constructor(map?: {
|
|
1954
|
+
[key: string]: any;
|
|
1955
|
+
});
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
declare class DescribeContextFilesResponseBodyData extends $dara.Model {
|
|
1959
|
+
fileId?: string;
|
|
1960
|
+
fileName?: string;
|
|
1961
|
+
filePath?: string;
|
|
1962
|
+
fileType?: string;
|
|
1963
|
+
gmtCreate?: string;
|
|
1964
|
+
gmtModified?: string;
|
|
1965
|
+
size?: number;
|
|
1966
|
+
status?: string;
|
|
1967
|
+
static names(): {
|
|
1968
|
+
[key: string]: string;
|
|
1969
|
+
};
|
|
1970
|
+
static types(): {
|
|
1971
|
+
[key: string]: any;
|
|
1972
|
+
};
|
|
1973
|
+
validate(): void;
|
|
1974
|
+
constructor(map?: {
|
|
1975
|
+
[key: string]: any;
|
|
1976
|
+
});
|
|
1977
|
+
}
|
|
1978
|
+
declare class DescribeContextFilesResponseBody extends $dara.Model {
|
|
1664
1979
|
code?: string;
|
|
1665
|
-
|
|
1980
|
+
count?: number;
|
|
1981
|
+
data?: DescribeContextFilesResponseBodyData[];
|
|
1666
1982
|
httpStatusCode?: number;
|
|
1667
1983
|
message?: string;
|
|
1668
1984
|
requestId?: string;
|
|
@@ -1679,12 +1995,12 @@ declare class GetContextFileUploadUrlResponseBody extends $dara.Model {
|
|
|
1679
1995
|
});
|
|
1680
1996
|
}
|
|
1681
1997
|
|
|
1682
|
-
declare class
|
|
1998
|
+
declare class DescribeContextFilesResponse extends $dara.Model {
|
|
1683
1999
|
headers?: {
|
|
1684
2000
|
[key: string]: string;
|
|
1685
2001
|
};
|
|
1686
2002
|
statusCode?: number;
|
|
1687
|
-
body?:
|
|
2003
|
+
body?: DescribeContextFilesResponseBody;
|
|
1688
2004
|
static names(): {
|
|
1689
2005
|
[key: string]: string;
|
|
1690
2006
|
};
|
|
@@ -1697,58 +2013,306 @@ declare class GetContextFileUploadUrlResponse extends $dara.Model {
|
|
|
1697
2013
|
});
|
|
1698
2014
|
}
|
|
1699
2015
|
|
|
1700
|
-
declare class
|
|
1701
|
-
|
|
1702
|
-
|
|
2016
|
+
declare class GetContextFileDownloadUrlRequest extends $dara.Model {
|
|
2017
|
+
authorization?: string;
|
|
2018
|
+
contextId?: string;
|
|
2019
|
+
filePath?: string;
|
|
2020
|
+
static names(): {
|
|
1703
2021
|
[key: string]: string;
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
2022
|
+
};
|
|
2023
|
+
static types(): {
|
|
2024
|
+
[key: string]: any;
|
|
2025
|
+
};
|
|
2026
|
+
validate(): void;
|
|
2027
|
+
constructor(map?: {
|
|
2028
|
+
[key: string]: any;
|
|
2029
|
+
});
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
declare class GetContextFileDownloadUrlResponseBodyData extends $dara.Model {
|
|
2033
|
+
expireTime?: number;
|
|
2034
|
+
url?: string;
|
|
2035
|
+
static names(): {
|
|
2036
|
+
[key: string]: string;
|
|
2037
|
+
};
|
|
2038
|
+
static types(): {
|
|
2039
|
+
[key: string]: any;
|
|
2040
|
+
};
|
|
2041
|
+
validate(): void;
|
|
2042
|
+
constructor(map?: {
|
|
2043
|
+
[key: string]: any;
|
|
2044
|
+
});
|
|
2045
|
+
}
|
|
2046
|
+
declare class GetContextFileDownloadUrlResponseBody extends $dara.Model {
|
|
2047
|
+
code?: string;
|
|
2048
|
+
data?: GetContextFileDownloadUrlResponseBodyData;
|
|
2049
|
+
httpStatusCode?: number;
|
|
2050
|
+
message?: string;
|
|
2051
|
+
requestId?: string;
|
|
2052
|
+
success?: boolean;
|
|
2053
|
+
static names(): {
|
|
2054
|
+
[key: string]: string;
|
|
2055
|
+
};
|
|
2056
|
+
static types(): {
|
|
2057
|
+
[key: string]: any;
|
|
2058
|
+
};
|
|
2059
|
+
validate(): void;
|
|
2060
|
+
constructor(map?: {
|
|
2061
|
+
[key: string]: any;
|
|
2062
|
+
});
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
declare class GetContextFileDownloadUrlResponse extends $dara.Model {
|
|
2066
|
+
headers?: {
|
|
2067
|
+
[key: string]: string;
|
|
2068
|
+
};
|
|
2069
|
+
statusCode?: number;
|
|
2070
|
+
body?: GetContextFileDownloadUrlResponseBody;
|
|
2071
|
+
static names(): {
|
|
2072
|
+
[key: string]: string;
|
|
2073
|
+
};
|
|
2074
|
+
static types(): {
|
|
2075
|
+
[key: string]: any;
|
|
2076
|
+
};
|
|
2077
|
+
validate(): void;
|
|
2078
|
+
constructor(map?: {
|
|
2079
|
+
[key: string]: any;
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
declare class GetContextFileUploadUrlRequest extends $dara.Model {
|
|
2084
|
+
authorization?: string;
|
|
2085
|
+
contextId?: string;
|
|
2086
|
+
filePath?: string;
|
|
2087
|
+
static names(): {
|
|
2088
|
+
[key: string]: string;
|
|
2089
|
+
};
|
|
2090
|
+
static types(): {
|
|
2091
|
+
[key: string]: any;
|
|
2092
|
+
};
|
|
2093
|
+
validate(): void;
|
|
2094
|
+
constructor(map?: {
|
|
2095
|
+
[key: string]: any;
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
declare class GetContextFileUploadUrlResponseBodyData extends $dara.Model {
|
|
2100
|
+
expireTime?: number;
|
|
2101
|
+
url?: string;
|
|
2102
|
+
static names(): {
|
|
2103
|
+
[key: string]: string;
|
|
2104
|
+
};
|
|
2105
|
+
static types(): {
|
|
2106
|
+
[key: string]: any;
|
|
2107
|
+
};
|
|
2108
|
+
validate(): void;
|
|
2109
|
+
constructor(map?: {
|
|
2110
|
+
[key: string]: any;
|
|
2111
|
+
});
|
|
2112
|
+
}
|
|
2113
|
+
declare class GetContextFileUploadUrlResponseBody extends $dara.Model {
|
|
2114
|
+
code?: string;
|
|
2115
|
+
data?: GetContextFileUploadUrlResponseBodyData;
|
|
2116
|
+
httpStatusCode?: number;
|
|
2117
|
+
message?: string;
|
|
2118
|
+
requestId?: string;
|
|
2119
|
+
success?: boolean;
|
|
2120
|
+
static names(): {
|
|
2121
|
+
[key: string]: string;
|
|
2122
|
+
};
|
|
2123
|
+
static types(): {
|
|
2124
|
+
[key: string]: any;
|
|
2125
|
+
};
|
|
2126
|
+
validate(): void;
|
|
2127
|
+
constructor(map?: {
|
|
2128
|
+
[key: string]: any;
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
declare class GetContextFileUploadUrlResponse extends $dara.Model {
|
|
2133
|
+
headers?: {
|
|
2134
|
+
[key: string]: string;
|
|
2135
|
+
};
|
|
2136
|
+
statusCode?: number;
|
|
2137
|
+
body?: GetContextFileUploadUrlResponseBody;
|
|
2138
|
+
static names(): {
|
|
2139
|
+
[key: string]: string;
|
|
2140
|
+
};
|
|
2141
|
+
static types(): {
|
|
2142
|
+
[key: string]: any;
|
|
2143
|
+
};
|
|
2144
|
+
validate(): void;
|
|
2145
|
+
constructor(map?: {
|
|
2146
|
+
[key: string]: any;
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
declare class PauseSessionAsyncRequest extends $dara.Model {
|
|
2151
|
+
authorization?: string;
|
|
2152
|
+
sessionId?: string;
|
|
2153
|
+
static names(): {
|
|
2154
|
+
[key: string]: string;
|
|
2155
|
+
};
|
|
2156
|
+
static types(): {
|
|
2157
|
+
[key: string]: any;
|
|
2158
|
+
};
|
|
2159
|
+
validate(): void;
|
|
2160
|
+
constructor(map?: {
|
|
2161
|
+
[key: string]: any;
|
|
2162
|
+
});
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
declare class PauseSessionAsyncResponseBody extends $dara.Model {
|
|
2166
|
+
code?: string;
|
|
2167
|
+
httpStatusCode?: number;
|
|
2168
|
+
message?: string;
|
|
2169
|
+
requestId?: string;
|
|
2170
|
+
success?: boolean;
|
|
2171
|
+
static names(): {
|
|
2172
|
+
[key: string]: string;
|
|
2173
|
+
};
|
|
2174
|
+
static types(): {
|
|
2175
|
+
[key: string]: any;
|
|
2176
|
+
};
|
|
2177
|
+
validate(): void;
|
|
2178
|
+
constructor(map?: {
|
|
2179
|
+
[key: string]: any;
|
|
2180
|
+
});
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
declare class PauseSessionAsyncResponse extends $dara.Model {
|
|
2184
|
+
body?: PauseSessionAsyncResponseBody;
|
|
2185
|
+
headers?: {
|
|
2186
|
+
[key: string]: string;
|
|
2187
|
+
};
|
|
2188
|
+
statusCode?: number;
|
|
2189
|
+
static names(): {
|
|
2190
|
+
[key: string]: string;
|
|
2191
|
+
};
|
|
2192
|
+
static types(): {
|
|
2193
|
+
[key: string]: any;
|
|
2194
|
+
};
|
|
2195
|
+
validate(): void;
|
|
2196
|
+
constructor(map?: {
|
|
2197
|
+
[key: string]: any;
|
|
2198
|
+
});
|
|
2199
|
+
toMapRecursive(): {
|
|
2200
|
+
[key: string]: any;
|
|
2201
|
+
};
|
|
2202
|
+
fromMapRecursive(map: {
|
|
2203
|
+
[key: string]: any;
|
|
2204
|
+
}): PauseSessionAsyncResponse;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
declare class ResumeSessionAsyncRequest extends $dara.Model {
|
|
2208
|
+
authorization?: string;
|
|
2209
|
+
sessionId?: string;
|
|
2210
|
+
static names(): {
|
|
2211
|
+
[key: string]: string;
|
|
2212
|
+
};
|
|
2213
|
+
static types(): {
|
|
2214
|
+
[key: string]: any;
|
|
2215
|
+
};
|
|
2216
|
+
validate(): void;
|
|
2217
|
+
constructor(map?: {
|
|
2218
|
+
[key: string]: any;
|
|
2219
|
+
});
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
declare class ResumeSessionAsyncResponseBody extends $dara.Model {
|
|
2223
|
+
code?: string;
|
|
2224
|
+
httpStatusCode?: number;
|
|
2225
|
+
message?: string;
|
|
2226
|
+
requestId?: string;
|
|
2227
|
+
success?: boolean;
|
|
2228
|
+
static names(): {
|
|
2229
|
+
[key: string]: string;
|
|
2230
|
+
};
|
|
2231
|
+
static types(): {
|
|
2232
|
+
[key: string]: any;
|
|
2233
|
+
};
|
|
2234
|
+
validate(): void;
|
|
2235
|
+
constructor(map?: {
|
|
2236
|
+
[key: string]: any;
|
|
2237
|
+
});
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
declare class ResumeSessionAsyncResponse extends $dara.Model {
|
|
2241
|
+
body?: ResumeSessionAsyncResponseBody;
|
|
2242
|
+
headers?: {
|
|
2243
|
+
[key: string]: string;
|
|
2244
|
+
};
|
|
2245
|
+
statusCode?: number;
|
|
2246
|
+
static names(): {
|
|
2247
|
+
[key: string]: string;
|
|
2248
|
+
};
|
|
2249
|
+
static types(): {
|
|
2250
|
+
[key: string]: any;
|
|
2251
|
+
};
|
|
2252
|
+
validate(): void;
|
|
2253
|
+
constructor(map?: {
|
|
2254
|
+
[key: string]: any;
|
|
2255
|
+
});
|
|
2256
|
+
toMapRecursive(): {
|
|
2257
|
+
[key: string]: any;
|
|
2258
|
+
};
|
|
2259
|
+
fromMapRecursive(map: {
|
|
2260
|
+
[key: string]: any;
|
|
2261
|
+
}): ResumeSessionAsyncResponse;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
declare class Client extends OpenApi {
|
|
2265
|
+
constructor(config: $OpenApiUtil.Config);
|
|
2266
|
+
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
2267
|
+
[key: string]: string;
|
|
2268
|
+
}, endpoint: string): string;
|
|
1735
2269
|
/**
|
|
1736
|
-
*
|
|
2270
|
+
* Call MCP tool
|
|
1737
2271
|
*
|
|
1738
|
-
* @param
|
|
2272
|
+
* @param request - CallMcpToolRequest
|
|
1739
2273
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1740
|
-
* @returns
|
|
2274
|
+
* @returns CallMcpToolResponse
|
|
1741
2275
|
*/
|
|
1742
|
-
|
|
2276
|
+
callMcpToolWithOptions(request: CallMcpToolRequest, runtime: $dara.RuntimeOptions): Promise<CallMcpToolResponse>;
|
|
1743
2277
|
/**
|
|
1744
|
-
*
|
|
2278
|
+
* Call MCP tool
|
|
1745
2279
|
*
|
|
1746
|
-
* @param request -
|
|
1747
|
-
* @returns
|
|
2280
|
+
* @param request - CallMcpToolRequest
|
|
2281
|
+
* @returns CallMcpToolResponse
|
|
1748
2282
|
*/
|
|
1749
|
-
|
|
2283
|
+
callMcpTool(request: CallMcpToolRequest): Promise<CallMcpToolResponse>;
|
|
1750
2284
|
/**
|
|
1751
|
-
* Delete
|
|
2285
|
+
* Delete Persistent Context
|
|
2286
|
+
*
|
|
2287
|
+
* @param request - ClearContextRequest
|
|
2288
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2289
|
+
* @returns ClearContextResponse
|
|
2290
|
+
*/
|
|
2291
|
+
clearContextWithOptions(request: ClearContextRequest, runtime: $dara.RuntimeOptions): Promise<ClearContextResponse>;
|
|
2292
|
+
/**
|
|
2293
|
+
* Delete Persistent Context
|
|
2294
|
+
*
|
|
2295
|
+
* @param request - ClearContextRequest
|
|
2296
|
+
* @returns ClearContextResponse
|
|
2297
|
+
*/
|
|
2298
|
+
clearContext(request: ClearContextRequest): Promise<ClearContextResponse>;
|
|
2299
|
+
/**
|
|
2300
|
+
* Create MCP session
|
|
2301
|
+
*
|
|
2302
|
+
* @param tmpReq - CreateMcpSessionRequest
|
|
2303
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2304
|
+
* @returns CreateMcpSessionResponse
|
|
2305
|
+
*/
|
|
2306
|
+
createMcpSessionWithOptions(tmpReq: CreateMcpSessionRequest, runtime: $dara.RuntimeOptions): Promise<CreateMcpSessionResponse>;
|
|
2307
|
+
/**
|
|
2308
|
+
* Create MCP session
|
|
2309
|
+
*
|
|
2310
|
+
* @param request - CreateMcpSessionRequest
|
|
2311
|
+
* @returns CreateMcpSessionResponse
|
|
2312
|
+
*/
|
|
2313
|
+
createMcpSession(request: CreateMcpSessionRequest): Promise<CreateMcpSessionResponse>;
|
|
2314
|
+
/**
|
|
2315
|
+
* Delete persistent context
|
|
1752
2316
|
*
|
|
1753
2317
|
* @param request - DeleteContextRequest
|
|
1754
2318
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1822,6 +2386,36 @@ declare class Client extends OpenApi {
|
|
|
1822
2386
|
* @returns GetSessionResponse
|
|
1823
2387
|
*/
|
|
1824
2388
|
getSession(request: GetSessionRequest): Promise<GetSessionResponse>;
|
|
2389
|
+
/**
|
|
2390
|
+
* Pause session async
|
|
2391
|
+
*
|
|
2392
|
+
* @param request - PauseSessionAsyncRequest
|
|
2393
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2394
|
+
* @returns PauseSessionAsyncResponse
|
|
2395
|
+
*/
|
|
2396
|
+
pauseSessionAsyncWithOptions(request: PauseSessionAsyncRequest, runtime: $dara.RuntimeOptions): Promise<PauseSessionAsyncResponse>;
|
|
2397
|
+
/**
|
|
2398
|
+
* Pause session async
|
|
2399
|
+
*
|
|
2400
|
+
* @param request - PauseSessionAsyncRequest
|
|
2401
|
+
* @returns PauseSessionAsyncResponse
|
|
2402
|
+
*/
|
|
2403
|
+
pauseSessionAsync(request: PauseSessionAsyncRequest): Promise<PauseSessionAsyncResponse>;
|
|
2404
|
+
/**
|
|
2405
|
+
* Resume session async
|
|
2406
|
+
*
|
|
2407
|
+
* @param request - ResumeSessionAsyncRequest
|
|
2408
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2409
|
+
* @returns ResumeSessionAsyncResponse
|
|
2410
|
+
*/
|
|
2411
|
+
resumeSessionAsyncWithOptions(request: ResumeSessionAsyncRequest, runtime: $dara.RuntimeOptions): Promise<ResumeSessionAsyncResponse>;
|
|
2412
|
+
/**
|
|
2413
|
+
* Resume session async
|
|
2414
|
+
*
|
|
2415
|
+
* @param request - ResumeSessionAsyncRequest
|
|
2416
|
+
* @returns ResumeSessionAsyncResponse
|
|
2417
|
+
*/
|
|
2418
|
+
resumeSessionAsync(request: ResumeSessionAsyncRequest): Promise<ResumeSessionAsyncResponse>;
|
|
1825
2419
|
/**
|
|
1826
2420
|
* Get forwarding link for specific port
|
|
1827
2421
|
*
|
|
@@ -1998,460 +2592,77 @@ declare class Client extends OpenApi {
|
|
|
1998
2592
|
* Query context specific directory files
|
|
1999
2593
|
*
|
|
2000
2594
|
* @param request - DescribeContextFilesRequest
|
|
2001
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2002
|
-
* @returns DescribeContextFilesResponse
|
|
2003
|
-
*/
|
|
2004
|
-
describeContextFilesWithOptions(request: DescribeContextFilesRequest, runtime: $dara.RuntimeOptions): Promise<DescribeContextFilesResponse>;
|
|
2005
|
-
/**
|
|
2006
|
-
* Query context specific directory files
|
|
2007
|
-
*
|
|
2008
|
-
* @param request - DescribeContextFilesRequest
|
|
2009
|
-
* @returns DescribeContextFilesResponse
|
|
2010
|
-
*/
|
|
2011
|
-
describeContextFiles(request: DescribeContextFilesRequest): Promise<DescribeContextFilesResponse>;
|
|
2012
|
-
/**
|
|
2013
|
-
* Get context file upload URL
|
|
2014
|
-
*
|
|
2015
|
-
* @param request - GetContextFileDownloadUrlRequest
|
|
2016
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2017
|
-
* @returns GetContextFileDownloadUrlResponse
|
|
2018
|
-
*/
|
|
2019
|
-
getContextFileDownloadUrlWithOptions(request: GetContextFileDownloadUrlRequest, runtime: $dara.RuntimeOptions): Promise<GetContextFileDownloadUrlResponse>;
|
|
2020
|
-
/**
|
|
2021
|
-
* Get context file upload URL
|
|
2022
|
-
*
|
|
2023
|
-
* @param request - GetContextFileDownloadUrlRequest
|
|
2024
|
-
* @returns GetContextFileDownloadUrlResponse
|
|
2025
|
-
*/
|
|
2026
|
-
getContextFileDownloadUrl(request: GetContextFileDownloadUrlRequest): Promise<GetContextFileDownloadUrlResponse>;
|
|
2027
|
-
/**
|
|
2028
|
-
* Get context file upload URL
|
|
2029
|
-
*
|
|
2030
|
-
* @param request - GetContextFileUploadUrlRequest
|
|
2031
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2032
|
-
* @returns GetContextFileUploadUrlResponse
|
|
2033
|
-
*/
|
|
2034
|
-
getContextFileUploadUrlWithOptions(request: GetContextFileUploadUrlRequest, runtime: $dara.RuntimeOptions): Promise<GetContextFileUploadUrlResponse>;
|
|
2035
|
-
/**
|
|
2036
|
-
* Get context file upload URL
|
|
2037
|
-
*
|
|
2038
|
-
* @param request - GetContextFileUploadUrlRequest
|
|
2039
|
-
* @returns GetContextFileUploadUrlResponse
|
|
2040
|
-
*/
|
|
2041
|
-
getContextFileUploadUrl(request: GetContextFileUploadUrlRequest): Promise<GetContextFileUploadUrlResponse>;
|
|
2042
|
-
/**
|
|
2043
|
-
* Get CDP link
|
|
2044
|
-
*
|
|
2045
|
-
* @param request - GetCdpLinkRequest
|
|
2046
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2047
|
-
* @returns GetCdpLinkResponse
|
|
2048
|
-
*/
|
|
2049
|
-
getCdpLinkWithOptions(request: GetCdpLinkRequest, runtime: $dara.RuntimeOptions): Promise<GetCdpLinkResponse>;
|
|
2050
|
-
/**
|
|
2051
|
-
* Get CDP link
|
|
2052
|
-
*
|
|
2053
|
-
* @param request - GetCdpLinkRequest
|
|
2054
|
-
* @returns GetCdpLinkResponse
|
|
2055
|
-
*/
|
|
2056
|
-
getCdpLink(request: GetCdpLinkRequest): Promise<GetCdpLinkResponse>;
|
|
2057
|
-
/**
|
|
2058
|
-
* Get ADB link
|
|
2059
|
-
*
|
|
2060
|
-
* @param request - GetAdbLinkRequest
|
|
2061
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
2062
|
-
* @returns GetAdbLinkResponse
|
|
2063
|
-
*/
|
|
2064
|
-
getAdbLinkWithOptions(request: GetAdbLinkRequest, runtime: $dara.RuntimeOptions): Promise<GetAdbLinkResponse>;
|
|
2065
|
-
/**
|
|
2066
|
-
* Get ADB link
|
|
2067
|
-
*
|
|
2068
|
-
* @param request - GetAdbLinkRequest
|
|
2069
|
-
* @returns GetAdbLinkResponse
|
|
2070
|
-
*/
|
|
2071
|
-
getAdbLink(request: GetAdbLinkRequest): Promise<GetAdbLinkResponse>;
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
/**
|
|
2075
|
-
* Base interface for API responses
|
|
2076
|
-
*/
|
|
2077
|
-
interface ApiResponse {
|
|
2078
|
-
/** Optional request identifier for tracking API calls */
|
|
2079
|
-
requestId?: string;
|
|
2080
|
-
/** Optional error message if the operation failed */
|
|
2081
|
-
errorMessage?: string;
|
|
2082
|
-
/** Optional status code if the operation failed */
|
|
2083
|
-
success?: boolean;
|
|
2084
|
-
}
|
|
2085
|
-
/**
|
|
2086
|
-
* Generic interface for API responses that include data payload
|
|
2087
|
-
* @template T The type of the data being returned
|
|
2088
|
-
*/
|
|
2089
|
-
interface ApiResponseWithData<T> extends ApiResponse {
|
|
2090
|
-
/** The actual data payload returned by the API */
|
|
2091
|
-
session?: T;
|
|
2092
|
-
data?: T;
|
|
2093
|
-
}
|
|
2094
|
-
/**
|
|
2095
|
-
* Interface for delete operation responses
|
|
2096
|
-
*/
|
|
2097
|
-
interface DeleteResult extends ApiResponse {
|
|
2098
|
-
/** Whether the delete operation was successful */
|
|
2099
|
-
success: boolean;
|
|
2100
|
-
/** Optional error message if the operation failed */
|
|
2101
|
-
errorMessage?: string;
|
|
2102
|
-
}
|
|
2103
|
-
/**
|
|
2104
|
-
* Interface for GetSession data
|
|
2105
|
-
*/
|
|
2106
|
-
interface GetSessionData {
|
|
2107
|
-
/** Application instance ID */
|
|
2108
|
-
appInstanceId: string;
|
|
2109
|
-
/** Resource ID */
|
|
2110
|
-
resourceId: string;
|
|
2111
|
-
/** Session ID */
|
|
2112
|
-
sessionId: string;
|
|
2113
|
-
/** Success status */
|
|
2114
|
-
success: boolean;
|
|
2115
|
-
/** HTTP port for VPC sessions */
|
|
2116
|
-
httpPort: string;
|
|
2117
|
-
/** Network interface IP for VPC sessions */
|
|
2118
|
-
networkInterfaceIp: string;
|
|
2119
|
-
/** Token for VPC sessions */
|
|
2120
|
-
token: string;
|
|
2121
|
-
/** Whether this session uses VPC resources */
|
|
2122
|
-
vpcResource: boolean;
|
|
2123
|
-
/** Resource URL for accessing the session */
|
|
2124
|
-
resourceUrl: string;
|
|
2125
|
-
}
|
|
2126
|
-
/**
|
|
2127
|
-
* Interface for GetSession operation responses
|
|
2128
|
-
*/
|
|
2129
|
-
interface GetSessionResult extends ApiResponse {
|
|
2130
|
-
/** Request identifier for tracking API calls */
|
|
2131
|
-
requestId: string;
|
|
2132
|
-
/** HTTP status code */
|
|
2133
|
-
httpStatusCode: number;
|
|
2134
|
-
/** Response code */
|
|
2135
|
-
code: string;
|
|
2136
|
-
/** Whether the operation was successful */
|
|
2137
|
-
success: boolean;
|
|
2138
|
-
/** Session data */
|
|
2139
|
-
data?: GetSessionData;
|
|
2140
|
-
/** Optional error message if the operation failed */
|
|
2141
|
-
errorMessage?: string;
|
|
2142
|
-
}
|
|
2143
|
-
/**
|
|
2144
|
-
* Interface for session creation operation responses
|
|
2145
|
-
* Corresponds to Python's SessionResult type
|
|
2146
|
-
*/
|
|
2147
|
-
interface SessionResult extends ApiResponse {
|
|
2148
|
-
/** Request identifier for tracking API calls */
|
|
2149
|
-
requestId: string;
|
|
2150
|
-
/** Whether the session creation was successful */
|
|
2151
|
-
success: boolean;
|
|
2152
|
-
/** The created session object (only present if successful) */
|
|
2153
|
-
session?: any;
|
|
2154
|
-
/** Error message if the operation failed */
|
|
2155
|
-
errorMessage?: string;
|
|
2156
|
-
}
|
|
2157
|
-
/**
|
|
2158
|
-
* Interface for operation results
|
|
2159
|
-
* Corresponds to Python's OperationResult type
|
|
2160
|
-
*/
|
|
2161
|
-
interface OperationResult extends ApiResponse {
|
|
2162
|
-
/** Request identifier for tracking API calls */
|
|
2163
|
-
requestId: string;
|
|
2164
|
-
/** Whether the operation was successful */
|
|
2165
|
-
success: boolean;
|
|
2166
|
-
/** Optional data payload */
|
|
2167
|
-
data?: any;
|
|
2168
|
-
/** Optional error message if the operation failed */
|
|
2169
|
-
errorMessage?: string;
|
|
2170
|
-
}
|
|
2171
|
-
/**
|
|
2172
|
-
* Interface for command execution operation responses
|
|
2173
|
-
* Corresponds to Python's CommandResult type
|
|
2174
|
-
*/
|
|
2175
|
-
interface CommandResult extends ApiResponse {
|
|
2176
|
-
/** Request identifier for tracking API calls */
|
|
2177
|
-
requestId: string;
|
|
2178
|
-
/** Whether the command execution was successful */
|
|
2179
|
-
success: boolean;
|
|
2180
|
-
/** The command output */
|
|
2181
|
-
output: string;
|
|
2182
|
-
/** Optional error message if the operation failed */
|
|
2183
|
-
errorMessage?: string;
|
|
2184
|
-
}
|
|
2185
|
-
/**
|
|
2186
|
-
* Interface for code execution operation responses
|
|
2187
|
-
* Corresponds to Python's CodeExecutionResult type
|
|
2188
|
-
*/
|
|
2189
|
-
interface CodeExecutionResult extends ApiResponse {
|
|
2190
|
-
/** Request identifier for tracking API calls */
|
|
2191
|
-
requestId: string;
|
|
2192
|
-
/** Whether the code execution was successful */
|
|
2193
|
-
success: boolean;
|
|
2194
|
-
/** The execution result */
|
|
2195
|
-
result: string;
|
|
2196
|
-
/** Optional error message if the operation failed */
|
|
2197
|
-
errorMessage?: string;
|
|
2198
|
-
}
|
|
2199
|
-
/**
|
|
2200
|
-
* Interface for boolean operation responses
|
|
2201
|
-
* Corresponds to Python's BoolResult type
|
|
2202
|
-
*/
|
|
2203
|
-
interface BoolResult$2 extends ApiResponse {
|
|
2204
|
-
/** Request identifier for tracking API calls */
|
|
2205
|
-
requestId: string;
|
|
2206
|
-
/** Whether the operation was successful */
|
|
2207
|
-
success: boolean;
|
|
2208
|
-
/** Boolean data result */
|
|
2209
|
-
data?: boolean;
|
|
2210
|
-
/** Optional error message if the operation failed */
|
|
2211
|
-
errorMessage?: string;
|
|
2212
|
-
}
|
|
2213
|
-
/**
|
|
2214
|
-
* Interface for file info operation responses
|
|
2215
|
-
* Corresponds to Python's FileInfoResult type
|
|
2216
|
-
*/
|
|
2217
|
-
interface FileInfoResult extends ApiResponse {
|
|
2218
|
-
/** Request identifier for tracking API calls */
|
|
2219
|
-
requestId: string;
|
|
2220
|
-
/** Whether the operation was successful */
|
|
2221
|
-
success: boolean;
|
|
2222
|
-
/** File information object */
|
|
2223
|
-
fileInfo?: Record<string, any>;
|
|
2224
|
-
/** Optional error message if the operation failed */
|
|
2225
|
-
errorMessage?: string;
|
|
2226
|
-
}
|
|
2227
|
-
/**
|
|
2228
|
-
* Interface for directory list operation responses
|
|
2229
|
-
* Corresponds to Python's DirectoryListResult type
|
|
2230
|
-
*/
|
|
2231
|
-
interface DirectoryListResult extends ApiResponse {
|
|
2232
|
-
/** Request identifier for tracking API calls */
|
|
2233
|
-
requestId: string;
|
|
2234
|
-
/** Whether the operation was successful */
|
|
2235
|
-
success: boolean;
|
|
2236
|
-
/** Directory entries */
|
|
2237
|
-
entries: Record<string, any>[];
|
|
2238
|
-
/** Optional error message if the operation failed */
|
|
2239
|
-
errorMessage?: string;
|
|
2240
|
-
}
|
|
2241
|
-
/**
|
|
2242
|
-
* Interface for file content operation responses
|
|
2243
|
-
* Corresponds to Python's FileContentResult type
|
|
2244
|
-
*/
|
|
2245
|
-
interface FileContentResult extends ApiResponse {
|
|
2246
|
-
/** Request identifier for tracking API calls */
|
|
2247
|
-
requestId: string;
|
|
2248
|
-
/** Whether the operation was successful */
|
|
2249
|
-
success: boolean;
|
|
2250
|
-
/** File content */
|
|
2251
|
-
content: string;
|
|
2252
|
-
/** Optional error message if the operation failed */
|
|
2253
|
-
errorMessage?: string;
|
|
2254
|
-
}
|
|
2255
|
-
/**
|
|
2256
|
-
* Interface for multiple file content operation responses
|
|
2257
|
-
* Corresponds to Python's MultipleFileContentResult type
|
|
2258
|
-
*/
|
|
2259
|
-
interface MultipleFileContentResult extends ApiResponse {
|
|
2260
|
-
/** Request identifier for tracking API calls */
|
|
2261
|
-
requestId: string;
|
|
2262
|
-
/** Whether the operation was successful */
|
|
2263
|
-
success: boolean;
|
|
2264
|
-
/** Multiple file contents */
|
|
2265
|
-
contents: Record<string, string>;
|
|
2266
|
-
/** Optional error message if the operation failed */
|
|
2267
|
-
errorMessage?: string;
|
|
2268
|
-
}
|
|
2269
|
-
/**
|
|
2270
|
-
* Interface for file search operation responses
|
|
2271
|
-
* Corresponds to Python's FileSearchResult type
|
|
2272
|
-
*/
|
|
2273
|
-
interface FileSearchResult extends ApiResponse {
|
|
2274
|
-
/** Request identifier for tracking API calls */
|
|
2275
|
-
requestId: string;
|
|
2276
|
-
/** Whether the operation was successful */
|
|
2277
|
-
success: boolean;
|
|
2278
|
-
/** Matching file paths */
|
|
2279
|
-
matches: string[];
|
|
2280
|
-
/** Optional error message if the operation failed */
|
|
2281
|
-
errorMessage?: string;
|
|
2282
|
-
}
|
|
2283
|
-
/**
|
|
2284
|
-
* Interface for OSS client creation operation responses
|
|
2285
|
-
* Corresponds to Python's OSSClientResult type
|
|
2286
|
-
*/
|
|
2287
|
-
interface OSSClientResult extends ApiResponse {
|
|
2288
|
-
/** Request identifier for tracking API calls */
|
|
2289
|
-
requestId: string;
|
|
2290
|
-
/** Whether the operation was successful */
|
|
2291
|
-
success: boolean;
|
|
2292
|
-
/** OSS client configuration */
|
|
2293
|
-
clientConfig: Record<string, any>;
|
|
2294
|
-
/** Optional error message if the operation failed */
|
|
2295
|
-
errorMessage?: string;
|
|
2296
|
-
}
|
|
2297
|
-
/**
|
|
2298
|
-
* Interface for OSS upload operation responses
|
|
2299
|
-
* Corresponds to Python's OSSUploadResult type
|
|
2300
|
-
*/
|
|
2301
|
-
interface OSSUploadResult extends ApiResponse {
|
|
2302
|
-
/** Request identifier for tracking API calls */
|
|
2303
|
-
requestId: string;
|
|
2304
|
-
/** Whether the operation was successful */
|
|
2305
|
-
success: boolean;
|
|
2306
|
-
/** Result of the upload operation */
|
|
2307
|
-
content: string;
|
|
2308
|
-
/** Optional error message if the operation failed */
|
|
2309
|
-
errorMessage?: string;
|
|
2310
|
-
}
|
|
2311
|
-
/**
|
|
2312
|
-
* Interface for OSS download operation responses
|
|
2313
|
-
* Corresponds to Python's OSSDownloadResult type
|
|
2314
|
-
*/
|
|
2315
|
-
interface OSSDownloadResult extends ApiResponse {
|
|
2316
|
-
/** Request identifier for tracking API calls */
|
|
2317
|
-
requestId: string;
|
|
2318
|
-
/** Whether the operation was successful */
|
|
2319
|
-
success: boolean;
|
|
2320
|
-
/** Result of the download operation */
|
|
2321
|
-
content: string;
|
|
2322
|
-
/** Optional error message if the operation failed */
|
|
2323
|
-
errorMessage?: string;
|
|
2324
|
-
}
|
|
2325
|
-
/**
|
|
2326
|
-
* Interface for window list operation responses
|
|
2327
|
-
* Corresponds to Python's WindowListResult type
|
|
2328
|
-
*/
|
|
2329
|
-
interface WindowListResult extends ApiResponse {
|
|
2330
|
-
/** Request identifier for tracking API calls */
|
|
2331
|
-
requestId: string;
|
|
2332
|
-
/** Whether the operation was successful */
|
|
2333
|
-
success: boolean;
|
|
2334
|
-
/** List of windows */
|
|
2335
|
-
windows: any[];
|
|
2336
|
-
/** Optional error message if the operation failed */
|
|
2337
|
-
errorMessage?: string;
|
|
2338
|
-
}
|
|
2339
|
-
/**
|
|
2340
|
-
* Interface for window info operation responses
|
|
2341
|
-
* Corresponds to Python's WindowInfoResult type
|
|
2342
|
-
*/
|
|
2343
|
-
interface WindowInfoResult extends ApiResponse {
|
|
2344
|
-
/** Request identifier for tracking API calls */
|
|
2345
|
-
requestId: string;
|
|
2346
|
-
/** Whether the operation was successful */
|
|
2347
|
-
success: boolean;
|
|
2348
|
-
/** Window object */
|
|
2349
|
-
window?: any;
|
|
2350
|
-
/** Optional error message if the operation failed */
|
|
2351
|
-
errorMessage?: string;
|
|
2352
|
-
}
|
|
2353
|
-
/**
|
|
2354
|
-
* Interface for context operation responses
|
|
2355
|
-
* Corresponds to Python's ContextResult type
|
|
2356
|
-
*/
|
|
2357
|
-
interface ContextResult extends ApiResponse {
|
|
2358
|
-
/** Request identifier for tracking API calls */
|
|
2359
|
-
requestId: string;
|
|
2360
|
-
/** Whether the operation was successful */
|
|
2361
|
-
success: boolean;
|
|
2362
|
-
/** The context ID */
|
|
2363
|
-
contextId: string;
|
|
2364
|
-
/** The context object (only present if successful) */
|
|
2365
|
-
context?: any;
|
|
2366
|
-
/** Optional error message if the operation failed */
|
|
2367
|
-
errorMessage?: string;
|
|
2368
|
-
}
|
|
2369
|
-
/**
|
|
2370
|
-
* Interface for context list operation responses
|
|
2371
|
-
* Corresponds to Python's ContextListResult type
|
|
2372
|
-
*/
|
|
2373
|
-
interface ContextListResult extends ApiResponse {
|
|
2374
|
-
/** Request identifier for tracking API calls */
|
|
2375
|
-
requestId: string;
|
|
2376
|
-
/** Whether the operation was successful */
|
|
2377
|
-
success: boolean;
|
|
2378
|
-
/** List of contexts */
|
|
2379
|
-
contexts: any[];
|
|
2380
|
-
/** Token for the next page of results */
|
|
2381
|
-
nextToken?: string;
|
|
2382
|
-
/** Maximum number of results per page */
|
|
2383
|
-
maxResults?: number;
|
|
2384
|
-
/** Total number of contexts available */
|
|
2385
|
-
totalCount?: number;
|
|
2386
|
-
/** Optional error message if the operation failed */
|
|
2387
|
-
errorMessage?: string;
|
|
2388
|
-
}
|
|
2389
|
-
/**
|
|
2390
|
-
* Result of a presigned URL request
|
|
2391
|
-
*/
|
|
2392
|
-
interface FileUrlResult extends ApiResponse {
|
|
2393
|
-
/** Request identifier for tracking API calls */
|
|
2394
|
-
requestId: string;
|
|
2395
|
-
/** Whether the operation was successful */
|
|
2396
|
-
success: boolean;
|
|
2397
|
-
/** The presigned URL */
|
|
2398
|
-
url: string;
|
|
2399
|
-
/** Optional expire time (epoch seconds) */
|
|
2400
|
-
expireTime?: number;
|
|
2401
|
-
/** Optional error message if the operation failed */
|
|
2402
|
-
errorMessage?: string;
|
|
2403
|
-
}
|
|
2404
|
-
/**
|
|
2405
|
-
* Represents a file item in a context
|
|
2406
|
-
*/
|
|
2407
|
-
interface ContextFileEntry {
|
|
2408
|
-
fileId?: string;
|
|
2409
|
-
fileName?: string;
|
|
2410
|
-
filePath: string;
|
|
2411
|
-
fileType?: string;
|
|
2412
|
-
gmtCreate?: string;
|
|
2413
|
-
gmtModified?: string;
|
|
2414
|
-
size?: number;
|
|
2415
|
-
status?: string;
|
|
2416
|
-
}
|
|
2417
|
-
/**
|
|
2418
|
-
* Result of context file listing
|
|
2419
|
-
*/
|
|
2420
|
-
interface ContextFileListResult extends ApiResponse {
|
|
2421
|
-
/** Request identifier for tracking API calls */
|
|
2422
|
-
requestId: string;
|
|
2423
|
-
/** Whether the operation was successful */
|
|
2424
|
-
success: boolean;
|
|
2425
|
-
/** File entries under a folder */
|
|
2426
|
-
entries: ContextFileEntry[];
|
|
2427
|
-
/** Optional total count returned by backend */
|
|
2428
|
-
count?: number;
|
|
2429
|
-
/** Optional error message if the operation failed */
|
|
2430
|
-
errorMessage?: string;
|
|
2431
|
-
}
|
|
2432
|
-
/**
|
|
2433
|
-
* Helper function to extract request ID from API responses
|
|
2434
|
-
*/
|
|
2435
|
-
declare function extractRequestId(response: any): string | undefined;
|
|
2436
|
-
/**
|
|
2437
|
-
* Result of context clear operations, including the real-time status.
|
|
2438
|
-
* Corresponds to Python's ClearContextResult type
|
|
2439
|
-
*/
|
|
2440
|
-
interface ClearContextResult extends ApiResponse {
|
|
2441
|
-
/** Request identifier for tracking API calls */
|
|
2442
|
-
requestId: string;
|
|
2443
|
-
/** Whether the operation was successful */
|
|
2444
|
-
success: boolean;
|
|
2445
|
-
/** Current status of the clearing task. This corresponds to the
|
|
2446
|
-
context's state field. Possible values:
|
|
2447
|
-
- "clearing": Context data is being cleared (in progress)
|
|
2448
|
-
- "available": Clearing completed successfully
|
|
2449
|
-
- Other values may indicate the context state after clearing */
|
|
2450
|
-
status?: string;
|
|
2451
|
-
/** The unique identifier of the context being cleared */
|
|
2452
|
-
contextId?: string;
|
|
2453
|
-
/** Optional error message if the operation failed */
|
|
2454
|
-
errorMessage?: string;
|
|
2595
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2596
|
+
* @returns DescribeContextFilesResponse
|
|
2597
|
+
*/
|
|
2598
|
+
describeContextFilesWithOptions(request: DescribeContextFilesRequest, runtime: $dara.RuntimeOptions): Promise<DescribeContextFilesResponse>;
|
|
2599
|
+
/**
|
|
2600
|
+
* Query context specific directory files
|
|
2601
|
+
*
|
|
2602
|
+
* @param request - DescribeContextFilesRequest
|
|
2603
|
+
* @returns DescribeContextFilesResponse
|
|
2604
|
+
*/
|
|
2605
|
+
describeContextFiles(request: DescribeContextFilesRequest): Promise<DescribeContextFilesResponse>;
|
|
2606
|
+
/**
|
|
2607
|
+
* Get context file upload URL
|
|
2608
|
+
*
|
|
2609
|
+
* @param request - GetContextFileDownloadUrlRequest
|
|
2610
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2611
|
+
* @returns GetContextFileDownloadUrlResponse
|
|
2612
|
+
*/
|
|
2613
|
+
getContextFileDownloadUrlWithOptions(request: GetContextFileDownloadUrlRequest, runtime: $dara.RuntimeOptions): Promise<GetContextFileDownloadUrlResponse>;
|
|
2614
|
+
/**
|
|
2615
|
+
* Get context file upload URL
|
|
2616
|
+
*
|
|
2617
|
+
* @param request - GetContextFileDownloadUrlRequest
|
|
2618
|
+
* @returns GetContextFileDownloadUrlResponse
|
|
2619
|
+
*/
|
|
2620
|
+
getContextFileDownloadUrl(request: GetContextFileDownloadUrlRequest): Promise<GetContextFileDownloadUrlResponse>;
|
|
2621
|
+
/**
|
|
2622
|
+
* Get context file upload URL
|
|
2623
|
+
*
|
|
2624
|
+
* @param request - GetContextFileUploadUrlRequest
|
|
2625
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2626
|
+
* @returns GetContextFileUploadUrlResponse
|
|
2627
|
+
*/
|
|
2628
|
+
getContextFileUploadUrlWithOptions(request: GetContextFileUploadUrlRequest, runtime: $dara.RuntimeOptions): Promise<GetContextFileUploadUrlResponse>;
|
|
2629
|
+
/**
|
|
2630
|
+
* Get context file upload URL
|
|
2631
|
+
*
|
|
2632
|
+
* @param request - GetContextFileUploadUrlRequest
|
|
2633
|
+
* @returns GetContextFileUploadUrlResponse
|
|
2634
|
+
*/
|
|
2635
|
+
getContextFileUploadUrl(request: GetContextFileUploadUrlRequest): Promise<GetContextFileUploadUrlResponse>;
|
|
2636
|
+
/**
|
|
2637
|
+
* Get CDP link
|
|
2638
|
+
*
|
|
2639
|
+
* @param request - GetCdpLinkRequest
|
|
2640
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2641
|
+
* @returns GetCdpLinkResponse
|
|
2642
|
+
*/
|
|
2643
|
+
getCdpLinkWithOptions(request: GetCdpLinkRequest, runtime: $dara.RuntimeOptions): Promise<GetCdpLinkResponse>;
|
|
2644
|
+
/**
|
|
2645
|
+
* Get CDP link
|
|
2646
|
+
*
|
|
2647
|
+
* @param request - GetCdpLinkRequest
|
|
2648
|
+
* @returns GetCdpLinkResponse
|
|
2649
|
+
*/
|
|
2650
|
+
getCdpLink(request: GetCdpLinkRequest): Promise<GetCdpLinkResponse>;
|
|
2651
|
+
/**
|
|
2652
|
+
* Get ADB link
|
|
2653
|
+
*
|
|
2654
|
+
* @param request - GetAdbLinkRequest
|
|
2655
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2656
|
+
* @returns GetAdbLinkResponse
|
|
2657
|
+
*/
|
|
2658
|
+
getAdbLinkWithOptions(request: GetAdbLinkRequest, runtime: $dara.RuntimeOptions): Promise<GetAdbLinkResponse>;
|
|
2659
|
+
/**
|
|
2660
|
+
* Get ADB link
|
|
2661
|
+
*
|
|
2662
|
+
* @param request - GetAdbLinkRequest
|
|
2663
|
+
* @returns GetAdbLinkResponse
|
|
2664
|
+
*/
|
|
2665
|
+
getAdbLink(request: GetAdbLinkRequest): Promise<GetAdbLinkResponse>;
|
|
2455
2666
|
}
|
|
2456
2667
|
|
|
2457
2668
|
/**
|
|
@@ -4188,16 +4399,31 @@ declare class ContextManager {
|
|
|
4188
4399
|
/**
|
|
4189
4400
|
* Synchronizes a context with the session. Supports both async and callback modes.
|
|
4190
4401
|
*
|
|
4191
|
-
* @param contextId - Optional context ID to synchronize
|
|
4192
|
-
* @param path - Optional path where the context should be mounted
|
|
4402
|
+
* @param contextId - Optional context ID to synchronize. If provided, `path` must also be provided.
|
|
4403
|
+
* @param path - Optional path where the context should be mounted. If provided, `contextId` must also be provided.
|
|
4193
4404
|
* @param mode - Optional synchronization mode (e.g., "upload", "download")
|
|
4194
4405
|
* @param callback - Optional callback function. If provided, runs in background and calls callback when complete
|
|
4195
4406
|
* @param maxRetries - Maximum number of retries for polling completion status (default: 150)
|
|
4196
4407
|
* @param retryInterval - Milliseconds to wait between retries (default: 1500)
|
|
4197
4408
|
* @returns Promise resolving to ContextSyncResult with success status and request ID
|
|
4198
4409
|
* @throws Error if the API call fails
|
|
4410
|
+
* @throws Error if `contextId` or `path` is provided without the other parameter.
|
|
4411
|
+
* Both must be provided together, or both must be omitted.
|
|
4412
|
+
*
|
|
4413
|
+
* @example
|
|
4414
|
+
* Sync all contexts (no parameters):
|
|
4415
|
+
* ```typescript
|
|
4416
|
+
* const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
4417
|
+
* const result = await agentBay.create();
|
|
4418
|
+
* if (result.success) {
|
|
4419
|
+
* const syncResult = await result.session.context.sync();
|
|
4420
|
+
* console.log(`Sync: ${syncResult.success}`);
|
|
4421
|
+
* await result.session.delete();
|
|
4422
|
+
* }
|
|
4423
|
+
* ```
|
|
4199
4424
|
*
|
|
4200
4425
|
* @example
|
|
4426
|
+
* Sync specific context with path:
|
|
4201
4427
|
* ```typescript
|
|
4202
4428
|
* const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
4203
4429
|
* const result = await agentBay.create();
|
|
@@ -4713,11 +4939,65 @@ interface AppManagerRule {
|
|
|
4713
4939
|
*/
|
|
4714
4940
|
appPackageNameList: string[];
|
|
4715
4941
|
}
|
|
4942
|
+
/**
|
|
4943
|
+
* Mobile simulate mode enum.
|
|
4944
|
+
*
|
|
4945
|
+
* Defines the mode for mobile device simulation.
|
|
4946
|
+
*/
|
|
4947
|
+
declare enum MobileSimulateMode {
|
|
4948
|
+
/**
|
|
4949
|
+
* Only simulate device properties (build.prop).
|
|
4950
|
+
*/
|
|
4951
|
+
PropertiesOnly = "PropertiesOnly",
|
|
4952
|
+
/**
|
|
4953
|
+
* Only simulate sensors information.
|
|
4954
|
+
*/
|
|
4955
|
+
SensorsOnly = "SensorsOnly",
|
|
4956
|
+
/**
|
|
4957
|
+
* Only simulate installed packages.
|
|
4958
|
+
*/
|
|
4959
|
+
PackagesOnly = "PackagesOnly",
|
|
4960
|
+
/**
|
|
4961
|
+
* Only simulate system services.
|
|
4962
|
+
*/
|
|
4963
|
+
ServicesOnly = "ServicesOnly",
|
|
4964
|
+
/**
|
|
4965
|
+
* Simulate all aspects (properties, sensors, packages, and services).
|
|
4966
|
+
*/
|
|
4967
|
+
All = "All"
|
|
4968
|
+
}
|
|
4969
|
+
/**
|
|
4970
|
+
* Mobile simulate configuration for session creation.
|
|
4971
|
+
*
|
|
4972
|
+
* These settings allow simulation of different mobile devices by applying
|
|
4973
|
+
* device-specific properties and configurations.
|
|
4974
|
+
*/
|
|
4975
|
+
interface MobileSimulateConfig {
|
|
4976
|
+
/**
|
|
4977
|
+
* Whether to enable mobile device simulation.
|
|
4978
|
+
*/
|
|
4979
|
+
simulate: boolean;
|
|
4980
|
+
/**
|
|
4981
|
+
* Path to the mobile device information file.
|
|
4982
|
+
*/
|
|
4983
|
+
simulatePath?: string;
|
|
4984
|
+
/**
|
|
4985
|
+
* Simulation mode - controls what aspects of the device are simulated.
|
|
4986
|
+
* Defaults to PropertiesOnly if not specified.
|
|
4987
|
+
*/
|
|
4988
|
+
simulateMode?: MobileSimulateMode;
|
|
4989
|
+
/**
|
|
4990
|
+
* Context ID containing the mobile device information to simulate.
|
|
4991
|
+
* This should be obtained from MobileSimulateService.uploadMobileInfo().
|
|
4992
|
+
*/
|
|
4993
|
+
simulatedContextId?: string;
|
|
4994
|
+
}
|
|
4716
4995
|
/**
|
|
4717
4996
|
* Mobile-specific configuration settings for session creation.
|
|
4718
4997
|
*
|
|
4719
4998
|
* These settings allow control over mobile device behavior including
|
|
4720
|
-
* resolution locking, app access management, navigation bar visibility,
|
|
4999
|
+
* resolution locking, app access management, navigation bar visibility, uninstall protection,
|
|
5000
|
+
* and device simulation.
|
|
4721
5001
|
*/
|
|
4722
5002
|
interface MobileExtraConfig {
|
|
4723
5003
|
/**
|
|
@@ -4743,6 +5023,11 @@ interface MobileExtraConfig {
|
|
|
4743
5023
|
* Example: ["com.android.systemui", "com.android.settings"]
|
|
4744
5024
|
*/
|
|
4745
5025
|
uninstallBlacklist?: string[];
|
|
5026
|
+
/**
|
|
5027
|
+
* Optional mobile device simulation configuration.
|
|
5028
|
+
* Allows simulation of different mobile devices by applying device-specific properties.
|
|
5029
|
+
*/
|
|
5030
|
+
simulateConfig?: MobileSimulateConfig;
|
|
4746
5031
|
}
|
|
4747
5032
|
/**
|
|
4748
5033
|
* Extra configuration settings for different session types.
|
|
@@ -4780,6 +5065,13 @@ declare function extraConfigsFromJSON(jsonStr: string): ExtraConfigs | null;
|
|
|
4780
5065
|
* @param rule - The rule to validate
|
|
4781
5066
|
*/
|
|
4782
5067
|
declare function validateAppManagerRule(rule: AppManagerRule): void;
|
|
5068
|
+
/**
|
|
5069
|
+
* Validates a MobileSimulateConfig object.
|
|
5070
|
+
* Throws an error if validation fails.
|
|
5071
|
+
*
|
|
5072
|
+
* @param config - The config to validate
|
|
5073
|
+
*/
|
|
5074
|
+
declare function validateMobileSimulateConfig(config: MobileSimulateConfig): void;
|
|
4783
5075
|
/**
|
|
4784
5076
|
* Validates a MobileExtraConfig object.
|
|
4785
5077
|
* Throws an error if validation fails.
|
|
@@ -5548,6 +5840,98 @@ declare class Session {
|
|
|
5548
5840
|
* This improves case compatibility (e.g., "CTRL" -> "Ctrl", "tab" -> "Tab").
|
|
5549
5841
|
*/
|
|
5550
5842
|
callMcpTool(toolName: string, args: any, autoGenSession?: boolean): Promise<McpToolResult>;
|
|
5843
|
+
/**
|
|
5844
|
+
* Asynchronously pause this session, putting it into a dormant state.
|
|
5845
|
+
*
|
|
5846
|
+
* This method calls the PauseSessionAsync API to initiate the pause operation and then polls
|
|
5847
|
+
* the GetSession API to check the session status until it becomes PAUSED or until timeout is reached.
|
|
5848
|
+
* During the paused state, resource usage and costs are reduced while session state is preserved.
|
|
5849
|
+
*
|
|
5850
|
+
* @param timeout - Timeout in seconds to wait for the session to pause. Defaults to 600 seconds.
|
|
5851
|
+
* @param pollInterval - Interval in seconds between status polls. Defaults to 2.0 seconds.
|
|
5852
|
+
*
|
|
5853
|
+
* @returns Promise resolving to SessionPauseResult containing:
|
|
5854
|
+
* - success: Whether the pause operation succeeded
|
|
5855
|
+
* - requestId: Unique identifier for this API request
|
|
5856
|
+
* - status: Final session status (should be "PAUSED" if successful)
|
|
5857
|
+
* - errorMessage: Error description if pause failed
|
|
5858
|
+
*
|
|
5859
|
+
* @throws Error if the API call fails or network issues occur.
|
|
5860
|
+
*
|
|
5861
|
+
* @example
|
|
5862
|
+
* ```typescript
|
|
5863
|
+
* const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
5864
|
+
* const result = await agentBay.create();
|
|
5865
|
+
* if (result.success) {
|
|
5866
|
+
* const pauseResult = await result.session.pauseAsync();
|
|
5867
|
+
* if (pauseResult.success) {
|
|
5868
|
+
* console.log('Session paused successfully');
|
|
5869
|
+
* }
|
|
5870
|
+
* }
|
|
5871
|
+
* ```
|
|
5872
|
+
*
|
|
5873
|
+
* @remarks
|
|
5874
|
+
* **Behavior:**
|
|
5875
|
+
* - Initiates pause operation through PauseSessionAsync API
|
|
5876
|
+
* - Polls session status until PAUSED state or timeout
|
|
5877
|
+
* - Session state transitions: RUNNING -> PAUSING -> PAUSED
|
|
5878
|
+
* - All session state is preserved during pause
|
|
5879
|
+
*
|
|
5880
|
+
* **Important Notes:**
|
|
5881
|
+
* - Paused sessions cannot perform operations (deletion, task execution, etc.)
|
|
5882
|
+
* - Use {@link resumeAsync} to restore the session to RUNNING state
|
|
5883
|
+
* - During pause, both resource usage and costs are lower
|
|
5884
|
+
* - If timeout is exceeded, returns with success=false
|
|
5885
|
+
*
|
|
5886
|
+
* @see {@link resumeAsync}
|
|
5887
|
+
*/
|
|
5888
|
+
pauseAsync(timeout?: number, pollInterval?: number): Promise<SessionPauseResult>;
|
|
5889
|
+
/**
|
|
5890
|
+
* Asynchronously resume this session from a paused state.
|
|
5891
|
+
*
|
|
5892
|
+
* This method calls the ResumeSessionAsync API to initiate the resume operation and then polls
|
|
5893
|
+
* the GetSession API to check the session status until it becomes RUNNING or until timeout is reached.
|
|
5894
|
+
* After resuming, the session restores full functionality and can perform all operations normally.
|
|
5895
|
+
*
|
|
5896
|
+
* @param timeout - Timeout in seconds to wait for the session to resume. Defaults to 600 seconds.
|
|
5897
|
+
* @param pollInterval - Interval in seconds between status polls. Defaults to 2.0 seconds.
|
|
5898
|
+
*
|
|
5899
|
+
* @returns Promise resolving to SessionResumeResult containing:
|
|
5900
|
+
* - success: Whether the resume operation succeeded
|
|
5901
|
+
* - requestId: Unique identifier for this API request
|
|
5902
|
+
* - status: Final session status (should be "RUNNING" if successful)
|
|
5903
|
+
* - errorMessage: Error description if resume failed
|
|
5904
|
+
*
|
|
5905
|
+
* @throws Error if the API call fails or network issues occur.
|
|
5906
|
+
*
|
|
5907
|
+
* @example
|
|
5908
|
+
* ```typescript
|
|
5909
|
+
* const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
5910
|
+
* const result = await agentBay.get('paused_session_id');
|
|
5911
|
+
* if (result.success) {
|
|
5912
|
+
* const resumeResult = await result.session.resumeAsync();
|
|
5913
|
+
* if (resumeResult.success) {
|
|
5914
|
+
* console.log('Session resumed successfully');
|
|
5915
|
+
* }
|
|
5916
|
+
* }
|
|
5917
|
+
* ```
|
|
5918
|
+
*
|
|
5919
|
+
* @remarks
|
|
5920
|
+
* **Behavior:**
|
|
5921
|
+
* - Initiates resume operation through ResumeSessionAsync API
|
|
5922
|
+
* - Polls session status until RUNNING state or timeout
|
|
5923
|
+
* - Session state transitions: PAUSED -> RESUMING -> RUNNING
|
|
5924
|
+
* - All previous session state is restored during resume
|
|
5925
|
+
*
|
|
5926
|
+
* **Important Notes:**
|
|
5927
|
+
* - Only sessions in PAUSED state can be resumed
|
|
5928
|
+
* - After resume, the session can perform all operations normally
|
|
5929
|
+
* - Use {@link pauseAsync} to put a session into PAUSED state
|
|
5930
|
+
* - If timeout is exceeded, returns with success=false
|
|
5931
|
+
*
|
|
5932
|
+
* @see {@link pauseAsync}
|
|
5933
|
+
*/
|
|
5934
|
+
resumeAsync(timeout?: number, pollInterval?: number): Promise<SessionResumeResult>;
|
|
5551
5935
|
}
|
|
5552
5936
|
|
|
5553
5937
|
/**
|
|
@@ -6134,7 +6518,6 @@ declare class AgentBay {
|
|
|
6134
6518
|
private apiKey;
|
|
6135
6519
|
private client;
|
|
6136
6520
|
private endpoint;
|
|
6137
|
-
private sessions;
|
|
6138
6521
|
private fileTransferContext;
|
|
6139
6522
|
/**
|
|
6140
6523
|
* Context service for managing persistent contexts.
|
|
@@ -6153,6 +6536,14 @@ declare class AgentBay {
|
|
|
6153
6536
|
config?: Config;
|
|
6154
6537
|
envFile?: string;
|
|
6155
6538
|
});
|
|
6539
|
+
/**
|
|
6540
|
+
* Wait for mobile simulate command to complete.
|
|
6541
|
+
*
|
|
6542
|
+
* @param session - The session to wait for mobile simulate
|
|
6543
|
+
* @param mobileSimPath - The dev info path to the mobile simulate
|
|
6544
|
+
* @param mobileSimMode - The mode of the mobile simulate. If not provided, will use the default mode.
|
|
6545
|
+
*/
|
|
6546
|
+
private _waitForMobileSimulate;
|
|
6156
6547
|
/**
|
|
6157
6548
|
* Update browser replay context with AppInstanceId from response data.
|
|
6158
6549
|
*
|
|
@@ -6244,25 +6635,6 @@ declare class AgentBay {
|
|
|
6244
6635
|
* ```
|
|
6245
6636
|
*/
|
|
6246
6637
|
delete(session: Session, syncContext?: boolean): Promise<DeleteResult>;
|
|
6247
|
-
/**
|
|
6248
|
-
* Remove a session from the internal session cache.
|
|
6249
|
-
*
|
|
6250
|
-
* This is an internal utility method that removes a session reference from the AgentBay client's
|
|
6251
|
-
* session cache without actually deleting the session from the cloud. Use this when you need to
|
|
6252
|
-
* clean up local references to a session that was deleted externally or no longer needed.
|
|
6253
|
-
*
|
|
6254
|
-
* @param sessionId - The ID of the session to remove from the cache.
|
|
6255
|
-
*
|
|
6256
|
-
* @internal
|
|
6257
|
-
*
|
|
6258
|
-
* @remarks
|
|
6259
|
-
* **Note:** This method only removes the session from the local cache. It does not delete the
|
|
6260
|
-
* session from the cloud. To delete a session from the cloud, use {@link delete} or
|
|
6261
|
-
* {@link Session.delete}.
|
|
6262
|
-
*
|
|
6263
|
-
* @see {@link delete}, {@link Session.delete}
|
|
6264
|
-
*/
|
|
6265
|
-
removeSession(sessionId: string): void;
|
|
6266
6638
|
/**
|
|
6267
6639
|
* Get session information by session ID.
|
|
6268
6640
|
*
|
|
@@ -6318,6 +6690,66 @@ declare class AgentBay {
|
|
|
6318
6690
|
* and never commit them to version control.
|
|
6319
6691
|
*/
|
|
6320
6692
|
getAPIKey(): string;
|
|
6693
|
+
/**
|
|
6694
|
+
* Asynchronously pause a session, putting it into a dormant state.
|
|
6695
|
+
*
|
|
6696
|
+
* This method directly calls the PauseSessionAsync API without waiting for the session
|
|
6697
|
+
* to reach the PAUSED state.
|
|
6698
|
+
*
|
|
6699
|
+
* @param session - The session to pause.
|
|
6700
|
+
* @param timeout - Timeout in seconds to wait for the session to pause. Defaults to 600 seconds.
|
|
6701
|
+
* @param pollInterval - Interval in seconds between status polls. Defaults to 2.0 seconds.
|
|
6702
|
+
* @returns SessionPauseResult indicating success or failure and request ID
|
|
6703
|
+
*
|
|
6704
|
+
* @example
|
|
6705
|
+
* ```typescript
|
|
6706
|
+
* const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
6707
|
+
* const session = (await agentBay.create()).session;
|
|
6708
|
+
* const pauseResult = await agentBay.pauseAsync(session);
|
|
6709
|
+
* await agentBay.resumeAsync(session);
|
|
6710
|
+
* await session.delete();
|
|
6711
|
+
* ```
|
|
6712
|
+
*
|
|
6713
|
+
* @remarks
|
|
6714
|
+
* **Behavior:**
|
|
6715
|
+
* - This method does not wait for the session to reach the PAUSED state
|
|
6716
|
+
* - It only submits the pause request to the API
|
|
6717
|
+
* - The session state transitions from RUNNING -> PAUSING -> PAUSED
|
|
6718
|
+
* - Paused sessions consume fewer resources but maintain their state
|
|
6719
|
+
*
|
|
6720
|
+
* @see {@link resumeAsync}, {@link Session.pauseAsync}
|
|
6721
|
+
*/
|
|
6722
|
+
pauseAsync(session: Session, timeout?: number, pollInterval?: number): Promise<SessionPauseResult>;
|
|
6723
|
+
/**
|
|
6724
|
+
* Asynchronously resume a session from a paused state.
|
|
6725
|
+
*
|
|
6726
|
+
* This method directly calls the ResumeSessionAsync API without waiting for the session
|
|
6727
|
+
* to reach the RUNNING state.
|
|
6728
|
+
*
|
|
6729
|
+
* @param session - The session to resume.
|
|
6730
|
+
* @param timeout - Timeout in seconds to wait for the session to resume. Defaults to 600 seconds.
|
|
6731
|
+
* @param pollInterval - Interval in seconds between status polls. Defaults to 2.0 seconds.
|
|
6732
|
+
* @returns SessionResumeResult indicating success or failure and request ID
|
|
6733
|
+
*
|
|
6734
|
+
* @example
|
|
6735
|
+
* ```typescript
|
|
6736
|
+
* const agentBay = new AgentBay({ apiKey: 'your_api_key' });
|
|
6737
|
+
* const session = (await agentBay.create()).session;
|
|
6738
|
+
* await agentBay.pauseAsync(session);
|
|
6739
|
+
* const resumeResult = await agentBay.resumeAsync(session);
|
|
6740
|
+
* await session.delete();
|
|
6741
|
+
* ```
|
|
6742
|
+
*
|
|
6743
|
+
* @remarks
|
|
6744
|
+
* **Behavior:**
|
|
6745
|
+
* - This method does not wait for the session to reach the RUNNING state
|
|
6746
|
+
* - It only submits the resume request to the API
|
|
6747
|
+
* - The session state transitions from PAUSED -> RESUMING -> RUNNING
|
|
6748
|
+
* - Only sessions in PAUSED state can be resumed
|
|
6749
|
+
*
|
|
6750
|
+
* @see {@link pauseAsync}, {@link Session.resumeAsync}
|
|
6751
|
+
*/
|
|
6752
|
+
resumeAsync(session: Session, timeout?: number, pollInterval?: number): Promise<SessionResumeResult>;
|
|
6321
6753
|
}
|
|
6322
6754
|
|
|
6323
6755
|
/**
|
|
@@ -6365,6 +6797,143 @@ declare class BrowserError extends AgentBayError {
|
|
|
6365
6797
|
constructor(message?: string, extra?: Record<string, any>);
|
|
6366
6798
|
}
|
|
6367
6799
|
|
|
6800
|
+
/**
|
|
6801
|
+
* Result of the upload mobile info for mobile simulate.
|
|
6802
|
+
*/
|
|
6803
|
+
interface MobileSimulateUploadResult {
|
|
6804
|
+
/**
|
|
6805
|
+
* Whether the operation was successful.
|
|
6806
|
+
*/
|
|
6807
|
+
success: boolean;
|
|
6808
|
+
/**
|
|
6809
|
+
* The context ID of the mobile info.
|
|
6810
|
+
*/
|
|
6811
|
+
mobileSimulateContextId?: string;
|
|
6812
|
+
/**
|
|
6813
|
+
* The error message if the operation failed.
|
|
6814
|
+
*/
|
|
6815
|
+
errorMessage?: string;
|
|
6816
|
+
}
|
|
6817
|
+
/**
|
|
6818
|
+
* Provides methods to manage persistent mobile dev info and sync to the mobile device.
|
|
6819
|
+
*/
|
|
6820
|
+
declare class MobileSimulateService {
|
|
6821
|
+
private agentBay;
|
|
6822
|
+
private contextService;
|
|
6823
|
+
private simulateEnable;
|
|
6824
|
+
private simulateMode;
|
|
6825
|
+
private contextId?;
|
|
6826
|
+
private contextSync?;
|
|
6827
|
+
private mobileDevInfoPath?;
|
|
6828
|
+
private useInternalContext;
|
|
6829
|
+
/**
|
|
6830
|
+
* Initialize the MobileSimulateService.
|
|
6831
|
+
*
|
|
6832
|
+
* @param agentBay - The AgentBay instance.
|
|
6833
|
+
*/
|
|
6834
|
+
constructor(agentBay: AgentBay);
|
|
6835
|
+
/**
|
|
6836
|
+
* Set the simulate enable flag.
|
|
6837
|
+
*
|
|
6838
|
+
* @param enable - The simulate feature enable flag.
|
|
6839
|
+
*/
|
|
6840
|
+
setSimulateEnable(enable: boolean): void;
|
|
6841
|
+
/**
|
|
6842
|
+
* Get the simulate enable flag.
|
|
6843
|
+
*
|
|
6844
|
+
* @returns The simulate feature enable flag.
|
|
6845
|
+
*/
|
|
6846
|
+
getSimulateEnable(): boolean;
|
|
6847
|
+
/**
|
|
6848
|
+
* Set the simulate mode.
|
|
6849
|
+
*
|
|
6850
|
+
* @param mode - The simulate mode.
|
|
6851
|
+
* - PropertiesOnly: Simulate only device properties.
|
|
6852
|
+
* - SensorsOnly: Simulate only device sensors.
|
|
6853
|
+
* - PackagesOnly: Simulate only installed packages.
|
|
6854
|
+
* - ServicesOnly: Simulate only system services.
|
|
6855
|
+
* - All: Simulate all aspects of the device.
|
|
6856
|
+
*/
|
|
6857
|
+
setSimulateMode(mode: MobileSimulateMode): void;
|
|
6858
|
+
/**
|
|
6859
|
+
* Get the simulate mode.
|
|
6860
|
+
*
|
|
6861
|
+
* @returns The simulate mode.
|
|
6862
|
+
*/
|
|
6863
|
+
getSimulateMode(): MobileSimulateMode;
|
|
6864
|
+
/**
|
|
6865
|
+
* Set a previously saved simulate context id. Please make sure the context id is provided by MobileSimulateService
|
|
6866
|
+
* but not user side created context.
|
|
6867
|
+
*
|
|
6868
|
+
* @param contextId - The context ID of the previously saved mobile simulate context.
|
|
6869
|
+
*/
|
|
6870
|
+
setSimulateContextId(contextId: string): void;
|
|
6871
|
+
/**
|
|
6872
|
+
* Get the simulate context id.
|
|
6873
|
+
*
|
|
6874
|
+
* @returns The context ID of the mobile simulate context.
|
|
6875
|
+
*/
|
|
6876
|
+
getSimulateContextId(): string | undefined;
|
|
6877
|
+
/**
|
|
6878
|
+
* Get the simulate config.
|
|
6879
|
+
*
|
|
6880
|
+
* @returns The simulate config.
|
|
6881
|
+
* - simulate: The simulate feature enable flag.
|
|
6882
|
+
* - simulatePath: The path of the mobile dev info file.
|
|
6883
|
+
* - simulateMode: The simulate mode.
|
|
6884
|
+
* - simulatedContextId: The context ID of the mobile info.
|
|
6885
|
+
*/
|
|
6886
|
+
getSimulateConfig(): MobileSimulateConfig;
|
|
6887
|
+
/**
|
|
6888
|
+
* Check if the mobile dev info file exists in one context sync. (Only for user provided context sync)
|
|
6889
|
+
*
|
|
6890
|
+
* @param contextSync - The context sync to check.
|
|
6891
|
+
* @returns True if the mobile dev info file exists, False otherwise.
|
|
6892
|
+
* @throws Error if context_sync is not provided or context_sync.context_id or context_sync.path is not provided.
|
|
6893
|
+
*
|
|
6894
|
+
* @remarks
|
|
6895
|
+
* This method can only be used when mobile simulate context sync is managed by user side. For internal mobile simulate
|
|
6896
|
+
* context sync, this method will not work.
|
|
6897
|
+
*/
|
|
6898
|
+
hasMobileInfo(contextSync: ContextSync): Promise<boolean>;
|
|
6899
|
+
/**
|
|
6900
|
+
* Upload the mobile simulate dev info.
|
|
6901
|
+
*
|
|
6902
|
+
* @param mobileDevInfoContent - The mobile simulate dev info content to upload.
|
|
6903
|
+
* @param contextSync - Optional
|
|
6904
|
+
* - If not provided, a new context sync will be created for the mobile simulate service and this context id will
|
|
6905
|
+
* be returned by the MobileSimulateUploadResult. User can use this context id to do persistent mobile simulate across sessions.
|
|
6906
|
+
* - If provided, the mobile simulate dev info will be uploaded to the context sync in a specific path.
|
|
6907
|
+
*
|
|
6908
|
+
* @returns The result of the upload operation.
|
|
6909
|
+
*
|
|
6910
|
+
* @throws Error if mobile_dev_info_content is not provided or not a valid JSON string.
|
|
6911
|
+
* @throws Error if context_sync is provided but context_sync.context_id is not provided.
|
|
6912
|
+
*
|
|
6913
|
+
* @remarks
|
|
6914
|
+
* If context_sync is not provided, a new context sync will be created for the mobile simulate.
|
|
6915
|
+
* If context_sync is provided, the mobile simulate dev info will be uploaded to the context sync.
|
|
6916
|
+
* If the mobile simulate dev info already exists in the context sync, the context sync will be updated.
|
|
6917
|
+
* If the mobile simulate dev info does not exist in the context sync, the context sync will be created.
|
|
6918
|
+
* If the upload operation fails, the error message will be returned.
|
|
6919
|
+
*/
|
|
6920
|
+
uploadMobileInfo(mobileDevInfoContent: string, contextSync?: ContextSync): Promise<MobileSimulateUploadResult>;
|
|
6921
|
+
/**
|
|
6922
|
+
* Update the context information.
|
|
6923
|
+
*
|
|
6924
|
+
* @param isInternal - Whether this is an internal context.
|
|
6925
|
+
* @param contextId - The context ID.
|
|
6926
|
+
* @param contextSync - The context sync (required for external context).
|
|
6927
|
+
*/
|
|
6928
|
+
private updateContext;
|
|
6929
|
+
/**
|
|
6930
|
+
* Create a context for simulate.
|
|
6931
|
+
*
|
|
6932
|
+
* @returns The created context or null if failed.
|
|
6933
|
+
*/
|
|
6934
|
+
private createContextForSimulate;
|
|
6935
|
+
}
|
|
6936
|
+
|
|
6368
6937
|
/**
|
|
6369
6938
|
* Utility functions for structured logging with multiple levels, API tracking,
|
|
6370
6939
|
* sensitive data masking, and RequestID management.
|
|
@@ -6491,4 +7060,4 @@ declare function logWarn(message: string, ...args: any[]): void;
|
|
|
6491
7060
|
*/
|
|
6492
7061
|
declare function logError(message: string, error?: any): void;
|
|
6493
7062
|
|
|
6494
|
-
export { APIError, APP_BLACKLIST_TEMPLATE, APP_WHITELIST_TEMPLATE, type ActOptions, ActResult, Agent, AgentBay, AgentBayError, 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, type BrowserViewport, CallMcpToolRequest, CallMcpToolResponse, CallMcpToolResponseBody, ClearContextRequest, ClearContextResponse, ClearContextResponseBody, Client, Code, Command, Computer, type Config, Context, type ContextInfoResult, ContextManager, ContextService, type ContextStatusData, type ContextStatusItem, ContextSync, type ContextSyncResult, CreateMcpSessionRequest, CreateMcpSessionRequestPersistenceDataList, CreateMcpSessionResponse, CreateMcpSessionResponseBody, CreateMcpSessionResponseBodyData, CreateMcpSessionShrinkRequest, type 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, 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, ModifyContextRequest, ModifyContextResponse, ModifyContextResponseBody, type NavigatorFingerprint, type ObserveOptions, ObserveResult, Oss, OssError, type QueryResult, RESOLUTION_LOCK_TEMPLATE, type RecyclePolicy, ReleaseMcpSessionRequest, ReleaseMcpSessionResponse, ReleaseMcpSessionResponseBody, 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 };
|
|
7063
|
+
export { APIError, APP_BLACKLIST_TEMPLATE, APP_WHITELIST_TEMPLATE, type ActOptions, ActResult, Agent, AgentBay, AgentBayError, 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, type BrowserViewport, CallMcpToolRequest, CallMcpToolResponse, CallMcpToolResponseBody, ClearContextRequest, ClearContextResponse, ClearContextResponseBody, Client, Code, Command, Computer, type Config, Context, type ContextInfoResult, ContextManager, ContextService, type ContextStatusData, type ContextStatusItem, ContextSync, type ContextSyncResult, CreateMcpSessionRequest, CreateMcpSessionRequestPersistenceDataList, CreateMcpSessionResponse, CreateMcpSessionResponseBody, CreateMcpSessionResponseBodyData, CreateMcpSessionShrinkRequest, type 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, 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 };
|