@alicloud/dianjin20240628 1.11.1 → 1.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/client.d.ts +196 -0
- package/dist/client.js +214 -5
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +338 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1110,12 +1110,16 @@ export class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalys
|
|
|
1110
1110
|
export class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp extends $dara.Model {
|
|
1111
1111
|
dialogExecPlan?: string;
|
|
1112
1112
|
dialogLabels?: GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels[];
|
|
1113
|
+
dialogOpenAnalysis?: { [key: string]: any };
|
|
1114
|
+
dialogProcessAnalysis?: { [key: string]: any };
|
|
1113
1115
|
dialogSop?: string;
|
|
1114
1116
|
dialogSummary?: string;
|
|
1115
1117
|
static names(): { [key: string]: string } {
|
|
1116
1118
|
return {
|
|
1117
1119
|
dialogExecPlan: 'dialogExecPlan',
|
|
1118
1120
|
dialogLabels: 'dialogLabels',
|
|
1121
|
+
dialogOpenAnalysis: 'dialogOpenAnalysis',
|
|
1122
|
+
dialogProcessAnalysis: 'dialogProcessAnalysis',
|
|
1119
1123
|
dialogSop: 'dialogSop',
|
|
1120
1124
|
dialogSummary: 'dialogSummary',
|
|
1121
1125
|
};
|
|
@@ -1125,6 +1129,8 @@ export class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalys
|
|
|
1125
1129
|
return {
|
|
1126
1130
|
dialogExecPlan: 'string',
|
|
1127
1131
|
dialogLabels: { 'type': 'array', 'itemType': GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels },
|
|
1132
|
+
dialogOpenAnalysis: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1133
|
+
dialogProcessAnalysis: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
1128
1134
|
dialogSop: 'string',
|
|
1129
1135
|
dialogSummary: 'string',
|
|
1130
1136
|
};
|
|
@@ -1134,6 +1140,12 @@ export class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalys
|
|
|
1134
1140
|
if(Array.isArray(this.dialogLabels)) {
|
|
1135
1141
|
$dara.Model.validateArray(this.dialogLabels);
|
|
1136
1142
|
}
|
|
1143
|
+
if(this.dialogOpenAnalysis) {
|
|
1144
|
+
$dara.Model.validateMap(this.dialogOpenAnalysis);
|
|
1145
|
+
}
|
|
1146
|
+
if(this.dialogProcessAnalysis) {
|
|
1147
|
+
$dara.Model.validateMap(this.dialogProcessAnalysis);
|
|
1148
|
+
}
|
|
1137
1149
|
super.validate();
|
|
1138
1150
|
}
|
|
1139
1151
|
|
|
@@ -1222,6 +1234,142 @@ export class GetDialogAnalysisResultResponseBodyData extends $dara.Model {
|
|
|
1222
1234
|
}
|
|
1223
1235
|
}
|
|
1224
1236
|
|
|
1237
|
+
export class GetDialogDetailResponseBodyDataDialogueList extends $dara.Model {
|
|
1238
|
+
content?: string;
|
|
1239
|
+
/**
|
|
1240
|
+
* @example
|
|
1241
|
+
* 123761283
|
|
1242
|
+
*/
|
|
1243
|
+
customerId?: string;
|
|
1244
|
+
/**
|
|
1245
|
+
* @example
|
|
1246
|
+
* BOT
|
|
1247
|
+
*/
|
|
1248
|
+
customerServiceId?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* @example
|
|
1251
|
+
* 0
|
|
1252
|
+
*/
|
|
1253
|
+
customerServiceType?: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* @example
|
|
1256
|
+
* true
|
|
1257
|
+
*/
|
|
1258
|
+
hangUpDialog?: boolean;
|
|
1259
|
+
/**
|
|
1260
|
+
* @example
|
|
1261
|
+
* 1742869659849
|
|
1262
|
+
*/
|
|
1263
|
+
id?: number;
|
|
1264
|
+
/**
|
|
1265
|
+
* @example
|
|
1266
|
+
* 193874634xxx
|
|
1267
|
+
*/
|
|
1268
|
+
intentCode?: string;
|
|
1269
|
+
intentName?: string;
|
|
1270
|
+
/**
|
|
1271
|
+
* @example
|
|
1272
|
+
* 0
|
|
1273
|
+
*/
|
|
1274
|
+
role?: string;
|
|
1275
|
+
/**
|
|
1276
|
+
* @example
|
|
1277
|
+
* text
|
|
1278
|
+
*/
|
|
1279
|
+
type?: string;
|
|
1280
|
+
static names(): { [key: string]: string } {
|
|
1281
|
+
return {
|
|
1282
|
+
content: 'content',
|
|
1283
|
+
customerId: 'customerId',
|
|
1284
|
+
customerServiceId: 'customerServiceId',
|
|
1285
|
+
customerServiceType: 'customerServiceType',
|
|
1286
|
+
hangUpDialog: 'hangUpDialog',
|
|
1287
|
+
id: 'id',
|
|
1288
|
+
intentCode: 'intentCode',
|
|
1289
|
+
intentName: 'intentName',
|
|
1290
|
+
role: 'role',
|
|
1291
|
+
type: 'type',
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
static types(): { [key: string]: any } {
|
|
1296
|
+
return {
|
|
1297
|
+
content: 'string',
|
|
1298
|
+
customerId: 'string',
|
|
1299
|
+
customerServiceId: 'string',
|
|
1300
|
+
customerServiceType: 'string',
|
|
1301
|
+
hangUpDialog: 'boolean',
|
|
1302
|
+
id: 'number',
|
|
1303
|
+
intentCode: 'string',
|
|
1304
|
+
intentName: 'string',
|
|
1305
|
+
role: 'string',
|
|
1306
|
+
type: 'string',
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
validate() {
|
|
1311
|
+
super.validate();
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
constructor(map?: { [key: string]: any }) {
|
|
1315
|
+
super(map);
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
export class GetDialogDetailResponseBodyData extends $dara.Model {
|
|
1320
|
+
dialogueList?: GetDialogDetailResponseBodyDataDialogueList[];
|
|
1321
|
+
/**
|
|
1322
|
+
* @example
|
|
1323
|
+
* 2024-09-27 11:23:20
|
|
1324
|
+
*/
|
|
1325
|
+
gmtCreate?: string;
|
|
1326
|
+
/**
|
|
1327
|
+
* @example
|
|
1328
|
+
* COMPLETED
|
|
1329
|
+
*/
|
|
1330
|
+
status?: string;
|
|
1331
|
+
/**
|
|
1332
|
+
* @example
|
|
1333
|
+
* 10
|
|
1334
|
+
*/
|
|
1335
|
+
totalDialogTurns?: number;
|
|
1336
|
+
/**
|
|
1337
|
+
* @example
|
|
1338
|
+
* 5
|
|
1339
|
+
*/
|
|
1340
|
+
validDialogTurns?: number;
|
|
1341
|
+
static names(): { [key: string]: string } {
|
|
1342
|
+
return {
|
|
1343
|
+
dialogueList: 'dialogueList',
|
|
1344
|
+
gmtCreate: 'gmtCreate',
|
|
1345
|
+
status: 'status',
|
|
1346
|
+
totalDialogTurns: 'totalDialogTurns',
|
|
1347
|
+
validDialogTurns: 'validDialogTurns',
|
|
1348
|
+
};
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
static types(): { [key: string]: any } {
|
|
1352
|
+
return {
|
|
1353
|
+
dialogueList: { 'type': 'array', 'itemType': GetDialogDetailResponseBodyDataDialogueList },
|
|
1354
|
+
gmtCreate: 'string',
|
|
1355
|
+
status: 'string',
|
|
1356
|
+
totalDialogTurns: 'number',
|
|
1357
|
+
validDialogTurns: 'number',
|
|
1358
|
+
};
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
validate() {
|
|
1362
|
+
if(Array.isArray(this.dialogueList)) {
|
|
1363
|
+
$dara.Model.validateArray(this.dialogueList);
|
|
1364
|
+
}
|
|
1365
|
+
super.validate();
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
constructor(map?: { [key: string]: any }) {
|
|
1369
|
+
super(map);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1225
1373
|
export class GetDocumentChunkListResponseBodyDataRecordsPos extends $dara.Model {
|
|
1226
1374
|
axisArray?: number[];
|
|
1227
1375
|
/**
|
|
@@ -8817,6 +8965,146 @@ export class GetDialogAnalysisResultResponse extends $dara.Model {
|
|
|
8817
8965
|
}
|
|
8818
8966
|
}
|
|
8819
8967
|
|
|
8968
|
+
export class GetDialogDetailRequest extends $dara.Model {
|
|
8969
|
+
/**
|
|
8970
|
+
* @remarks
|
|
8971
|
+
* This parameter is required.
|
|
8972
|
+
*
|
|
8973
|
+
* @example
|
|
8974
|
+
* 1906623923815534xxx
|
|
8975
|
+
*/
|
|
8976
|
+
sessionId?: string;
|
|
8977
|
+
static names(): { [key: string]: string } {
|
|
8978
|
+
return {
|
|
8979
|
+
sessionId: 'sessionId',
|
|
8980
|
+
};
|
|
8981
|
+
}
|
|
8982
|
+
|
|
8983
|
+
static types(): { [key: string]: any } {
|
|
8984
|
+
return {
|
|
8985
|
+
sessionId: 'string',
|
|
8986
|
+
};
|
|
8987
|
+
}
|
|
8988
|
+
|
|
8989
|
+
validate() {
|
|
8990
|
+
super.validate();
|
|
8991
|
+
}
|
|
8992
|
+
|
|
8993
|
+
constructor(map?: { [key: string]: any }) {
|
|
8994
|
+
super(map);
|
|
8995
|
+
}
|
|
8996
|
+
}
|
|
8997
|
+
|
|
8998
|
+
export class GetDialogDetailResponseBody extends $dara.Model {
|
|
8999
|
+
/**
|
|
9000
|
+
* @example
|
|
9001
|
+
* null
|
|
9002
|
+
*/
|
|
9003
|
+
cost?: number;
|
|
9004
|
+
data?: GetDialogDetailResponseBodyData;
|
|
9005
|
+
/**
|
|
9006
|
+
* @example
|
|
9007
|
+
* null
|
|
9008
|
+
*/
|
|
9009
|
+
dataType?: string;
|
|
9010
|
+
/**
|
|
9011
|
+
* @example
|
|
9012
|
+
* 0
|
|
9013
|
+
*/
|
|
9014
|
+
errCode?: string;
|
|
9015
|
+
/**
|
|
9016
|
+
* @example
|
|
9017
|
+
* ok
|
|
9018
|
+
*/
|
|
9019
|
+
message?: string;
|
|
9020
|
+
/**
|
|
9021
|
+
* @example
|
|
9022
|
+
* 5E3FBAF1-17AF-53B7-AF0A-CDCEEB6DE658
|
|
9023
|
+
*/
|
|
9024
|
+
requestId?: string;
|
|
9025
|
+
/**
|
|
9026
|
+
* @example
|
|
9027
|
+
* true
|
|
9028
|
+
*/
|
|
9029
|
+
success?: boolean;
|
|
9030
|
+
/**
|
|
9031
|
+
* @example
|
|
9032
|
+
* 2024-04-24 11:54:34
|
|
9033
|
+
*/
|
|
9034
|
+
time?: string;
|
|
9035
|
+
static names(): { [key: string]: string } {
|
|
9036
|
+
return {
|
|
9037
|
+
cost: 'cost',
|
|
9038
|
+
data: 'data',
|
|
9039
|
+
dataType: 'dataType',
|
|
9040
|
+
errCode: 'errCode',
|
|
9041
|
+
message: 'message',
|
|
9042
|
+
requestId: 'requestId',
|
|
9043
|
+
success: 'success',
|
|
9044
|
+
time: 'time',
|
|
9045
|
+
};
|
|
9046
|
+
}
|
|
9047
|
+
|
|
9048
|
+
static types(): { [key: string]: any } {
|
|
9049
|
+
return {
|
|
9050
|
+
cost: 'number',
|
|
9051
|
+
data: GetDialogDetailResponseBodyData,
|
|
9052
|
+
dataType: 'string',
|
|
9053
|
+
errCode: 'string',
|
|
9054
|
+
message: 'string',
|
|
9055
|
+
requestId: 'string',
|
|
9056
|
+
success: 'boolean',
|
|
9057
|
+
time: 'string',
|
|
9058
|
+
};
|
|
9059
|
+
}
|
|
9060
|
+
|
|
9061
|
+
validate() {
|
|
9062
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
9063
|
+
(this.data as any).validate();
|
|
9064
|
+
}
|
|
9065
|
+
super.validate();
|
|
9066
|
+
}
|
|
9067
|
+
|
|
9068
|
+
constructor(map?: { [key: string]: any }) {
|
|
9069
|
+
super(map);
|
|
9070
|
+
}
|
|
9071
|
+
}
|
|
9072
|
+
|
|
9073
|
+
export class GetDialogDetailResponse extends $dara.Model {
|
|
9074
|
+
headers?: { [key: string]: string };
|
|
9075
|
+
statusCode?: number;
|
|
9076
|
+
body?: GetDialogDetailResponseBody;
|
|
9077
|
+
static names(): { [key: string]: string } {
|
|
9078
|
+
return {
|
|
9079
|
+
headers: 'headers',
|
|
9080
|
+
statusCode: 'statusCode',
|
|
9081
|
+
body: 'body',
|
|
9082
|
+
};
|
|
9083
|
+
}
|
|
9084
|
+
|
|
9085
|
+
static types(): { [key: string]: any } {
|
|
9086
|
+
return {
|
|
9087
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
9088
|
+
statusCode: 'number',
|
|
9089
|
+
body: GetDialogDetailResponseBody,
|
|
9090
|
+
};
|
|
9091
|
+
}
|
|
9092
|
+
|
|
9093
|
+
validate() {
|
|
9094
|
+
if(this.headers) {
|
|
9095
|
+
$dara.Model.validateMap(this.headers);
|
|
9096
|
+
}
|
|
9097
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
9098
|
+
(this.body as any).validate();
|
|
9099
|
+
}
|
|
9100
|
+
super.validate();
|
|
9101
|
+
}
|
|
9102
|
+
|
|
9103
|
+
constructor(map?: { [key: string]: any }) {
|
|
9104
|
+
super(map);
|
|
9105
|
+
}
|
|
9106
|
+
}
|
|
9107
|
+
|
|
8820
9108
|
export class GetDocumentChunkListRequest extends $dara.Model {
|
|
8821
9109
|
chunkIdList?: string[];
|
|
8822
9110
|
/**
|
|
@@ -14364,6 +14652,56 @@ export default class Client extends OpenApi {
|
|
|
14364
14652
|
return await this.getDialogAnalysisResultWithOptions(workspaceId, request, headers, runtime);
|
|
14365
14653
|
}
|
|
14366
14654
|
|
|
14655
|
+
/**
|
|
14656
|
+
* 获取异步任务的结果
|
|
14657
|
+
*
|
|
14658
|
+
* @param request - GetDialogDetailRequest
|
|
14659
|
+
* @param headers - map
|
|
14660
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14661
|
+
* @returns GetDialogDetailResponse
|
|
14662
|
+
*/
|
|
14663
|
+
async getDialogDetailWithOptions(workspaceId: string, request: GetDialogDetailRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<GetDialogDetailResponse> {
|
|
14664
|
+
request.validate();
|
|
14665
|
+
let query : {[key: string ]: any} = { };
|
|
14666
|
+
if (!$dara.isNull(request.sessionId)) {
|
|
14667
|
+
query["sessionId"] = request.sessionId;
|
|
14668
|
+
}
|
|
14669
|
+
|
|
14670
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
14671
|
+
headers: headers,
|
|
14672
|
+
query: OpenApiUtil.query(query),
|
|
14673
|
+
});
|
|
14674
|
+
let params = new $OpenApiUtil.Params({
|
|
14675
|
+
action: "GetDialogDetail",
|
|
14676
|
+
version: "2024-06-28",
|
|
14677
|
+
protocol: "HTTPS",
|
|
14678
|
+
pathname: `/${$dara.URL.percentEncode(workspaceId)}/api/virtualHuman/dialog/detail`,
|
|
14679
|
+
method: "GET",
|
|
14680
|
+
authType: "AK",
|
|
14681
|
+
style: "ROA",
|
|
14682
|
+
reqBodyType: "json",
|
|
14683
|
+
bodyType: "json",
|
|
14684
|
+
});
|
|
14685
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
14686
|
+
return $dara.cast<GetDialogDetailResponse>(await this.callApi(params, req, runtime), new GetDialogDetailResponse({}));
|
|
14687
|
+
} else {
|
|
14688
|
+
return $dara.cast<GetDialogDetailResponse>(await this.execute(params, req, runtime), new GetDialogDetailResponse({}));
|
|
14689
|
+
}
|
|
14690
|
+
|
|
14691
|
+
}
|
|
14692
|
+
|
|
14693
|
+
/**
|
|
14694
|
+
* 获取异步任务的结果
|
|
14695
|
+
*
|
|
14696
|
+
* @param request - GetDialogDetailRequest
|
|
14697
|
+
* @returns GetDialogDetailResponse
|
|
14698
|
+
*/
|
|
14699
|
+
async getDialogDetail(workspaceId: string, request: GetDialogDetailRequest): Promise<GetDialogDetailResponse> {
|
|
14700
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
14701
|
+
let headers : {[key: string ]: string} = { };
|
|
14702
|
+
return await this.getDialogDetailWithOptions(workspaceId, request, headers, runtime);
|
|
14703
|
+
}
|
|
14704
|
+
|
|
14367
14705
|
/**
|
|
14368
14706
|
* 获取文档的chunk列表
|
|
14369
14707
|
*
|