test-wuying-agentbay-sdk 0.13.0-beta.20251219172354 → 0.13.0-beta.20251219174104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -836,17 +836,17 @@ var _Client = class _Client extends (OpenApi.default || OpenApi) {
|
|
|
836
836
|
*/
|
|
837
837
|
async deleteSessionAsyncWithOptions(request, runtime) {
|
|
838
838
|
request.validate();
|
|
839
|
-
|
|
839
|
+
const body = {};
|
|
840
840
|
if (!$dara.isNull(request.authorization)) {
|
|
841
841
|
body["Authorization"] = request.authorization;
|
|
842
842
|
}
|
|
843
843
|
if (!$dara.isNull(request.sessionId)) {
|
|
844
844
|
body["SessionId"] = request.sessionId;
|
|
845
845
|
}
|
|
846
|
-
|
|
846
|
+
const req = new $OpenApiUtil.OpenApiRequest({
|
|
847
847
|
body: OpenApiUtil.parseToMap(body)
|
|
848
848
|
});
|
|
849
|
-
|
|
849
|
+
const params = new $OpenApiUtil.Params({
|
|
850
850
|
action: "DeleteSessionAsync",
|
|
851
851
|
version: "2025-05-06",
|
|
852
852
|
protocol: "HTTPS",
|
|
@@ -866,7 +866,7 @@ var _Client = class _Client extends (OpenApi.default || OpenApi) {
|
|
|
866
866
|
* @returns DeleteSessionAsyncResponse
|
|
867
867
|
*/
|
|
868
868
|
async deleteSessionAsync(request) {
|
|
869
|
-
|
|
869
|
+
const runtime = new $dara.RuntimeOptions({});
|
|
870
870
|
return await this.deleteSessionAsyncWithOptions(request, runtime);
|
|
871
871
|
}
|
|
872
872
|
/**
|
|
@@ -1316,11 +1316,11 @@ var _Client = class _Client extends (OpenApi.default || OpenApi) {
|
|
|
1316
1316
|
*/
|
|
1317
1317
|
async getAndLoadInternalContextWithOptions(request, runtime) {
|
|
1318
1318
|
request.validate();
|
|
1319
|
-
|
|
1320
|
-
|
|
1319
|
+
const query = OpenApiUtil.query(request.toMap());
|
|
1320
|
+
const req = new $OpenApiUtil.OpenApiRequest({
|
|
1321
1321
|
query: OpenApiUtil.query(query)
|
|
1322
1322
|
});
|
|
1323
|
-
|
|
1323
|
+
const params = new $OpenApiUtil.Params({
|
|
1324
1324
|
action: "GetAndLoadInternalContext",
|
|
1325
1325
|
version: "2025-05-06",
|
|
1326
1326
|
protocol: "HTTPS",
|
|
@@ -1340,7 +1340,7 @@ var _Client = class _Client extends (OpenApi.default || OpenApi) {
|
|
|
1340
1340
|
* @returns GetAndLoadInternalContextResponse
|
|
1341
1341
|
*/
|
|
1342
1342
|
async getAndLoadInternalContext(request) {
|
|
1343
|
-
|
|
1343
|
+
const runtime = new $dara.RuntimeOptions({});
|
|
1344
1344
|
return await this.getAndLoadInternalContextWithOptions(request, runtime);
|
|
1345
1345
|
}
|
|
1346
1346
|
/**
|
|
@@ -15976,8 +15976,7 @@ var _Session = class _Session {
|
|
|
15976
15976
|
);
|
|
15977
15977
|
const syncStartTime = Date.now();
|
|
15978
15978
|
try {
|
|
15979
|
-
|
|
15980
|
-
syncResult = await this.context.sync();
|
|
15979
|
+
const syncResult = await this.context.sync();
|
|
15981
15980
|
logInfo("\u{1F504} Synced all contexts");
|
|
15982
15981
|
const syncDuration = Date.now() - syncStartTime;
|
|
15983
15982
|
if (syncResult.success) {
|