@alicloud/polardb20170801 6.5.0 → 6.6.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/client.d.ts +68 -0
- package/dist/client.js +252 -0
- package/dist/client.js.map +1 -1
- package/dist/models/DescribePolarAgentChatRecordsRequest.d.ts +26 -0
- package/dist/models/DescribePolarAgentChatRecordsRequest.js +60 -0
- package/dist/models/DescribePolarAgentChatRecordsRequest.js.map +1 -0
- package/dist/models/DescribePolarAgentChatRecordsResponse.d.ts +19 -0
- package/dist/models/DescribePolarAgentChatRecordsResponse.js +69 -0
- package/dist/models/DescribePolarAgentChatRecordsResponse.js.map +1 -0
- package/dist/models/DescribePolarAgentChatRecordsResponseBody.d.ts +59 -0
- package/dist/models/DescribePolarAgentChatRecordsResponseBody.js +90 -0
- package/dist/models/DescribePolarAgentChatRecordsResponseBody.js.map +1 -0
- package/dist/models/DescribePolarAgentSessionStatusRequest.d.ts +26 -0
- package/dist/models/DescribePolarAgentSessionStatusRequest.js +60 -0
- package/dist/models/DescribePolarAgentSessionStatusRequest.js.map +1 -0
- package/dist/models/DescribePolarAgentSessionStatusResponse.d.ts +19 -0
- package/dist/models/DescribePolarAgentSessionStatusResponse.js +69 -0
- package/dist/models/DescribePolarAgentSessionStatusResponse.js.map +1 -0
- package/dist/models/DescribePolarAgentSessionStatusResponseBody.d.ts +23 -0
- package/dist/models/DescribePolarAgentSessionStatusResponseBody.js +60 -0
- package/dist/models/DescribePolarAgentSessionStatusResponseBody.js.map +1 -0
- package/dist/models/DescribePolarAgentUserSessionsRequest.d.ts +18 -0
- package/dist/models/DescribePolarAgentUserSessionsRequest.js +58 -0
- package/dist/models/DescribePolarAgentUserSessionsRequest.js.map +1 -0
- package/dist/models/DescribePolarAgentUserSessionsResponse.d.ts +19 -0
- package/dist/models/DescribePolarAgentUserSessionsResponse.js +69 -0
- package/dist/models/DescribePolarAgentUserSessionsResponse.js.map +1 -0
- package/dist/models/DescribePolarAgentUserSessionsResponseBody.d.ts +46 -0
- package/dist/models/DescribePolarAgentUserSessionsResponseBody.js +86 -0
- package/dist/models/DescribePolarAgentUserSessionsResponseBody.js.map +1 -0
- package/dist/models/GetPolarAgentRequest.d.ts +36 -0
- package/dist/models/GetPolarAgentRequest.js +64 -0
- package/dist/models/GetPolarAgentRequest.js.map +1 -0
- package/dist/models/GetPolarAgentResponse.d.ts +19 -0
- package/dist/models/GetPolarAgentResponse.js +69 -0
- package/dist/models/GetPolarAgentResponse.js.map +1 -0
- package/dist/models/GetPolarAgentResponseBody.d.ts +105 -0
- package/dist/models/GetPolarAgentResponseBody.js +124 -0
- package/dist/models/GetPolarAgentResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +16 -0
- package/dist/models/model.js +52 -19
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +244 -0
- package/src/models/DescribePolarAgentChatRecordsRequest.ts +41 -0
- package/src/models/DescribePolarAgentChatRecordsResponse.ts +40 -0
- package/src/models/DescribePolarAgentChatRecordsResponseBody.ts +95 -0
- package/src/models/DescribePolarAgentSessionStatusRequest.ts +41 -0
- package/src/models/DescribePolarAgentSessionStatusResponse.ts +40 -0
- package/src/models/DescribePolarAgentSessionStatusResponseBody.ts +38 -0
- package/src/models/DescribePolarAgentUserSessionsRequest.ts +31 -0
- package/src/models/DescribePolarAgentUserSessionsResponse.ts +40 -0
- package/src/models/DescribePolarAgentUserSessionsResponseBody.ts +78 -0
- package/src/models/GetPolarAgentRequest.ts +55 -0
- package/src/models/GetPolarAgentResponse.ts +40 -0
- package/src/models/GetPolarAgentResponseBody.ts +166 -0
- package/src/models/model.ts +16 -0
package/dist/client.d.ts
CHANGED
|
@@ -2664,6 +2664,51 @@ export default class Client extends OpenApi {
|
|
|
2664
2664
|
* @returns DescribePendingMaintenanceActionsResponse
|
|
2665
2665
|
*/
|
|
2666
2666
|
describePendingMaintenanceActions(request: $_model.DescribePendingMaintenanceActionsRequest): Promise<$_model.DescribePendingMaintenanceActionsResponse>;
|
|
2667
|
+
/**
|
|
2668
|
+
* 查询指定会话明细
|
|
2669
|
+
*
|
|
2670
|
+
* @param request - DescribePolarAgentChatRecordsRequest
|
|
2671
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2672
|
+
* @returns DescribePolarAgentChatRecordsResponse
|
|
2673
|
+
*/
|
|
2674
|
+
describePolarAgentChatRecordsWithOptions(request: $_model.DescribePolarAgentChatRecordsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribePolarAgentChatRecordsResponse>;
|
|
2675
|
+
/**
|
|
2676
|
+
* 查询指定会话明细
|
|
2677
|
+
*
|
|
2678
|
+
* @param request - DescribePolarAgentChatRecordsRequest
|
|
2679
|
+
* @returns DescribePolarAgentChatRecordsResponse
|
|
2680
|
+
*/
|
|
2681
|
+
describePolarAgentChatRecords(request: $_model.DescribePolarAgentChatRecordsRequest): Promise<$_model.DescribePolarAgentChatRecordsResponse>;
|
|
2682
|
+
/**
|
|
2683
|
+
* 查询会话状态
|
|
2684
|
+
*
|
|
2685
|
+
* @param request - DescribePolarAgentSessionStatusRequest
|
|
2686
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2687
|
+
* @returns DescribePolarAgentSessionStatusResponse
|
|
2688
|
+
*/
|
|
2689
|
+
describePolarAgentSessionStatusWithOptions(request: $_model.DescribePolarAgentSessionStatusRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribePolarAgentSessionStatusResponse>;
|
|
2690
|
+
/**
|
|
2691
|
+
* 查询会话状态
|
|
2692
|
+
*
|
|
2693
|
+
* @param request - DescribePolarAgentSessionStatusRequest
|
|
2694
|
+
* @returns DescribePolarAgentSessionStatusResponse
|
|
2695
|
+
*/
|
|
2696
|
+
describePolarAgentSessionStatus(request: $_model.DescribePolarAgentSessionStatusRequest): Promise<$_model.DescribePolarAgentSessionStatusResponse>;
|
|
2697
|
+
/**
|
|
2698
|
+
* 查看历史会话记录
|
|
2699
|
+
*
|
|
2700
|
+
* @param request - DescribePolarAgentUserSessionsRequest
|
|
2701
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2702
|
+
* @returns DescribePolarAgentUserSessionsResponse
|
|
2703
|
+
*/
|
|
2704
|
+
describePolarAgentUserSessionsWithOptions(request: $_model.DescribePolarAgentUserSessionsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribePolarAgentUserSessionsResponse>;
|
|
2705
|
+
/**
|
|
2706
|
+
* 查看历史会话记录
|
|
2707
|
+
*
|
|
2708
|
+
* @param request - DescribePolarAgentUserSessionsRequest
|
|
2709
|
+
* @returns DescribePolarAgentUserSessionsResponse
|
|
2710
|
+
*/
|
|
2711
|
+
describePolarAgentUserSessions(request: $_model.DescribePolarAgentUserSessionsRequest): Promise<$_model.DescribePolarAgentUserSessionsResponse>;
|
|
2667
2712
|
/**
|
|
2668
2713
|
* 获取PolarFS实例详情
|
|
2669
2714
|
*
|
|
@@ -3115,6 +3160,29 @@ export default class Client extends OpenApi {
|
|
|
3115
3160
|
* @returns GenerateUpgradeReportForSyncCloneResponse
|
|
3116
3161
|
*/
|
|
3117
3162
|
generateUpgradeReportForSyncClone(request: $_model.GenerateUpgradeReportForSyncCloneRequest): Promise<$_model.GenerateUpgradeReportForSyncCloneResponse>;
|
|
3163
|
+
/**
|
|
3164
|
+
* 创建聊天记录
|
|
3165
|
+
*
|
|
3166
|
+
* @param request - GetPolarAgentRequest
|
|
3167
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3168
|
+
* @returns GetPolarAgentResponse
|
|
3169
|
+
*/
|
|
3170
|
+
getPolarAgentWithSSE(request: $_model.GetPolarAgentRequest, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.GetPolarAgentResponse, any, unknown>;
|
|
3171
|
+
/**
|
|
3172
|
+
* 创建聊天记录
|
|
3173
|
+
*
|
|
3174
|
+
* @param request - GetPolarAgentRequest
|
|
3175
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3176
|
+
* @returns GetPolarAgentResponse
|
|
3177
|
+
*/
|
|
3178
|
+
getPolarAgentWithOptions(request: $_model.GetPolarAgentRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetPolarAgentResponse>;
|
|
3179
|
+
/**
|
|
3180
|
+
* 创建聊天记录
|
|
3181
|
+
*
|
|
3182
|
+
* @param request - GetPolarAgentRequest
|
|
3183
|
+
* @returns GetPolarAgentResponse
|
|
3184
|
+
*/
|
|
3185
|
+
getPolarAgent(request: $_model.GetPolarAgentRequest): Promise<$_model.GetPolarAgentResponse>;
|
|
3118
3186
|
/**
|
|
3119
3187
|
* Grants a standard account the permissions to access one or more databases in a specified PolarDB cluster.
|
|
3120
3188
|
*
|
package/dist/client.js
CHANGED
|
@@ -35,6 +35,26 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
39
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
40
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
41
|
+
var m = o[Symbol.asyncIterator], i;
|
|
42
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
43
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
44
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
45
|
+
};
|
|
46
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
47
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
48
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
49
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
50
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
51
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
52
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
53
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
54
|
+
function fulfill(value) { resume("next", value); }
|
|
55
|
+
function reject(value) { resume("throw", value); }
|
|
56
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
57
|
+
};
|
|
38
58
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
59
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
60
|
};
|
|
@@ -10166,6 +10186,129 @@ class Client extends openapi_core_1.default {
|
|
|
10166
10186
|
let runtime = new $dara.RuntimeOptions({});
|
|
10167
10187
|
return await this.describePendingMaintenanceActionsWithOptions(request, runtime);
|
|
10168
10188
|
}
|
|
10189
|
+
/**
|
|
10190
|
+
* 查询指定会话明细
|
|
10191
|
+
*
|
|
10192
|
+
* @param request - DescribePolarAgentChatRecordsRequest
|
|
10193
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10194
|
+
* @returns DescribePolarAgentChatRecordsResponse
|
|
10195
|
+
*/
|
|
10196
|
+
async describePolarAgentChatRecordsWithOptions(request, runtime) {
|
|
10197
|
+
request.validate();
|
|
10198
|
+
let query = {};
|
|
10199
|
+
if (!$dara.isNull(request.sessionId)) {
|
|
10200
|
+
query["SessionId"] = request.sessionId;
|
|
10201
|
+
}
|
|
10202
|
+
if (!$dara.isNull(request.source)) {
|
|
10203
|
+
query["Source"] = request.source;
|
|
10204
|
+
}
|
|
10205
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
10206
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
10207
|
+
});
|
|
10208
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
10209
|
+
action: "DescribePolarAgentChatRecords",
|
|
10210
|
+
version: "2017-08-01",
|
|
10211
|
+
protocol: "HTTPS",
|
|
10212
|
+
pathname: "/",
|
|
10213
|
+
method: "POST",
|
|
10214
|
+
authType: "AK",
|
|
10215
|
+
style: "RPC",
|
|
10216
|
+
reqBodyType: "formData",
|
|
10217
|
+
bodyType: "json",
|
|
10218
|
+
});
|
|
10219
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribePolarAgentChatRecordsResponse({}));
|
|
10220
|
+
}
|
|
10221
|
+
/**
|
|
10222
|
+
* 查询指定会话明细
|
|
10223
|
+
*
|
|
10224
|
+
* @param request - DescribePolarAgentChatRecordsRequest
|
|
10225
|
+
* @returns DescribePolarAgentChatRecordsResponse
|
|
10226
|
+
*/
|
|
10227
|
+
async describePolarAgentChatRecords(request) {
|
|
10228
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
10229
|
+
return await this.describePolarAgentChatRecordsWithOptions(request, runtime);
|
|
10230
|
+
}
|
|
10231
|
+
/**
|
|
10232
|
+
* 查询会话状态
|
|
10233
|
+
*
|
|
10234
|
+
* @param request - DescribePolarAgentSessionStatusRequest
|
|
10235
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10236
|
+
* @returns DescribePolarAgentSessionStatusResponse
|
|
10237
|
+
*/
|
|
10238
|
+
async describePolarAgentSessionStatusWithOptions(request, runtime) {
|
|
10239
|
+
request.validate();
|
|
10240
|
+
let query = {};
|
|
10241
|
+
if (!$dara.isNull(request.sessionId)) {
|
|
10242
|
+
query["SessionId"] = request.sessionId;
|
|
10243
|
+
}
|
|
10244
|
+
if (!$dara.isNull(request.source)) {
|
|
10245
|
+
query["Source"] = request.source;
|
|
10246
|
+
}
|
|
10247
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
10248
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
10249
|
+
});
|
|
10250
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
10251
|
+
action: "DescribePolarAgentSessionStatus",
|
|
10252
|
+
version: "2017-08-01",
|
|
10253
|
+
protocol: "HTTPS",
|
|
10254
|
+
pathname: "/",
|
|
10255
|
+
method: "POST",
|
|
10256
|
+
authType: "AK",
|
|
10257
|
+
style: "RPC",
|
|
10258
|
+
reqBodyType: "formData",
|
|
10259
|
+
bodyType: "json",
|
|
10260
|
+
});
|
|
10261
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribePolarAgentSessionStatusResponse({}));
|
|
10262
|
+
}
|
|
10263
|
+
/**
|
|
10264
|
+
* 查询会话状态
|
|
10265
|
+
*
|
|
10266
|
+
* @param request - DescribePolarAgentSessionStatusRequest
|
|
10267
|
+
* @returns DescribePolarAgentSessionStatusResponse
|
|
10268
|
+
*/
|
|
10269
|
+
async describePolarAgentSessionStatus(request) {
|
|
10270
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
10271
|
+
return await this.describePolarAgentSessionStatusWithOptions(request, runtime);
|
|
10272
|
+
}
|
|
10273
|
+
/**
|
|
10274
|
+
* 查看历史会话记录
|
|
10275
|
+
*
|
|
10276
|
+
* @param request - DescribePolarAgentUserSessionsRequest
|
|
10277
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10278
|
+
* @returns DescribePolarAgentUserSessionsResponse
|
|
10279
|
+
*/
|
|
10280
|
+
async describePolarAgentUserSessionsWithOptions(request, runtime) {
|
|
10281
|
+
request.validate();
|
|
10282
|
+
let query = {};
|
|
10283
|
+
if (!$dara.isNull(request.source)) {
|
|
10284
|
+
query["Source"] = request.source;
|
|
10285
|
+
}
|
|
10286
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
10287
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
10288
|
+
});
|
|
10289
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
10290
|
+
action: "DescribePolarAgentUserSessions",
|
|
10291
|
+
version: "2017-08-01",
|
|
10292
|
+
protocol: "HTTPS",
|
|
10293
|
+
pathname: "/",
|
|
10294
|
+
method: "POST",
|
|
10295
|
+
authType: "AK",
|
|
10296
|
+
style: "RPC",
|
|
10297
|
+
reqBodyType: "formData",
|
|
10298
|
+
bodyType: "json",
|
|
10299
|
+
});
|
|
10300
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribePolarAgentUserSessionsResponse({}));
|
|
10301
|
+
}
|
|
10302
|
+
/**
|
|
10303
|
+
* 查看历史会话记录
|
|
10304
|
+
*
|
|
10305
|
+
* @param request - DescribePolarAgentUserSessionsRequest
|
|
10306
|
+
* @returns DescribePolarAgentUserSessionsResponse
|
|
10307
|
+
*/
|
|
10308
|
+
async describePolarAgentUserSessions(request) {
|
|
10309
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
10310
|
+
return await this.describePolarAgentUserSessionsWithOptions(request, runtime);
|
|
10311
|
+
}
|
|
10169
10312
|
/**
|
|
10170
10313
|
* 获取PolarFS实例详情
|
|
10171
10314
|
*
|
|
@@ -11915,6 +12058,115 @@ class Client extends openapi_core_1.default {
|
|
|
11915
12058
|
let runtime = new $dara.RuntimeOptions({});
|
|
11916
12059
|
return await this.generateUpgradeReportForSyncCloneWithOptions(request, runtime);
|
|
11917
12060
|
}
|
|
12061
|
+
/**
|
|
12062
|
+
* 创建聊天记录
|
|
12063
|
+
*
|
|
12064
|
+
* @param request - GetPolarAgentRequest
|
|
12065
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12066
|
+
* @returns GetPolarAgentResponse
|
|
12067
|
+
*/
|
|
12068
|
+
getPolarAgentWithSSE(request, runtime) {
|
|
12069
|
+
return __asyncGenerator(this, arguments, function* getPolarAgentWithSSE_1() {
|
|
12070
|
+
var _a, e_1, _b, _c;
|
|
12071
|
+
request.validate();
|
|
12072
|
+
let query = {};
|
|
12073
|
+
if (!$dara.isNull(request.extraInfo)) {
|
|
12074
|
+
query["ExtraInfo"] = request.extraInfo;
|
|
12075
|
+
}
|
|
12076
|
+
if (!$dara.isNull(request.query)) {
|
|
12077
|
+
query["Query"] = request.query;
|
|
12078
|
+
}
|
|
12079
|
+
if (!$dara.isNull(request.sessionId)) {
|
|
12080
|
+
query["SessionId"] = request.sessionId;
|
|
12081
|
+
}
|
|
12082
|
+
if (!$dara.isNull(request.source)) {
|
|
12083
|
+
query["Source"] = request.source;
|
|
12084
|
+
}
|
|
12085
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
12086
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
12087
|
+
});
|
|
12088
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
12089
|
+
action: "GetPolarAgent",
|
|
12090
|
+
version: "2017-08-01",
|
|
12091
|
+
protocol: "HTTPS",
|
|
12092
|
+
pathname: "/",
|
|
12093
|
+
method: "POST",
|
|
12094
|
+
authType: "AK",
|
|
12095
|
+
style: "RPC",
|
|
12096
|
+
reqBodyType: "formData",
|
|
12097
|
+
bodyType: "json",
|
|
12098
|
+
});
|
|
12099
|
+
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
12100
|
+
try {
|
|
12101
|
+
for (var _d = true, sseResp_1 = __asyncValues(sseResp), sseResp_1_1; sseResp_1_1 = yield __await(sseResp_1.next()), _a = sseResp_1_1.done, !_a; _d = true) {
|
|
12102
|
+
_c = sseResp_1_1.value;
|
|
12103
|
+
_d = false;
|
|
12104
|
+
let resp = _c;
|
|
12105
|
+
let data = JSON.parse(resp.event.data);
|
|
12106
|
+
yield yield __await($dara.cast({
|
|
12107
|
+
statusCode: resp.statusCode,
|
|
12108
|
+
headers: resp.headers,
|
|
12109
|
+
body: Object.assign(Object.assign({}, data), { RequestId: resp.event.id, Message: resp.event.event }),
|
|
12110
|
+
}, new $_model.GetPolarAgentResponse({})));
|
|
12111
|
+
}
|
|
12112
|
+
}
|
|
12113
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
12114
|
+
finally {
|
|
12115
|
+
try {
|
|
12116
|
+
if (!_d && !_a && (_b = sseResp_1.return)) yield __await(_b.call(sseResp_1));
|
|
12117
|
+
}
|
|
12118
|
+
finally { if (e_1) throw e_1.error; }
|
|
12119
|
+
}
|
|
12120
|
+
});
|
|
12121
|
+
}
|
|
12122
|
+
/**
|
|
12123
|
+
* 创建聊天记录
|
|
12124
|
+
*
|
|
12125
|
+
* @param request - GetPolarAgentRequest
|
|
12126
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12127
|
+
* @returns GetPolarAgentResponse
|
|
12128
|
+
*/
|
|
12129
|
+
async getPolarAgentWithOptions(request, runtime) {
|
|
12130
|
+
request.validate();
|
|
12131
|
+
let query = {};
|
|
12132
|
+
if (!$dara.isNull(request.extraInfo)) {
|
|
12133
|
+
query["ExtraInfo"] = request.extraInfo;
|
|
12134
|
+
}
|
|
12135
|
+
if (!$dara.isNull(request.query)) {
|
|
12136
|
+
query["Query"] = request.query;
|
|
12137
|
+
}
|
|
12138
|
+
if (!$dara.isNull(request.sessionId)) {
|
|
12139
|
+
query["SessionId"] = request.sessionId;
|
|
12140
|
+
}
|
|
12141
|
+
if (!$dara.isNull(request.source)) {
|
|
12142
|
+
query["Source"] = request.source;
|
|
12143
|
+
}
|
|
12144
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
12145
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
12146
|
+
});
|
|
12147
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
12148
|
+
action: "GetPolarAgent",
|
|
12149
|
+
version: "2017-08-01",
|
|
12150
|
+
protocol: "HTTPS",
|
|
12151
|
+
pathname: "/",
|
|
12152
|
+
method: "POST",
|
|
12153
|
+
authType: "AK",
|
|
12154
|
+
style: "RPC",
|
|
12155
|
+
reqBodyType: "formData",
|
|
12156
|
+
bodyType: "json",
|
|
12157
|
+
});
|
|
12158
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPolarAgentResponse({}));
|
|
12159
|
+
}
|
|
12160
|
+
/**
|
|
12161
|
+
* 创建聊天记录
|
|
12162
|
+
*
|
|
12163
|
+
* @param request - GetPolarAgentRequest
|
|
12164
|
+
* @returns GetPolarAgentResponse
|
|
12165
|
+
*/
|
|
12166
|
+
async getPolarAgent(request) {
|
|
12167
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
12168
|
+
return await this.getPolarAgentWithOptions(request, runtime);
|
|
12169
|
+
}
|
|
11918
12170
|
/**
|
|
11919
12171
|
* Grants a standard account the permissions to access one or more databases in a specified PolarDB cluster.
|
|
11920
12172
|
*
|