@alicloud/dianjin20240628 1.7.0 → 1.8.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 +188 -0
- package/dist/client.js +211 -5
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +318 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1904,6 +1904,146 @@ export class GetChatQuestionRespResponse extends $tea.Model {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
1906
|
|
|
1907
|
+
export class GetDialogAnalysisResultRequest extends $tea.Model {
|
|
1908
|
+
/**
|
|
1909
|
+
* @example
|
|
1910
|
+
* true
|
|
1911
|
+
*/
|
|
1912
|
+
asc?: boolean;
|
|
1913
|
+
/**
|
|
1914
|
+
* @example
|
|
1915
|
+
* 2024-09-23 09:20:02
|
|
1916
|
+
*/
|
|
1917
|
+
endTime?: string;
|
|
1918
|
+
sessionIds?: string[];
|
|
1919
|
+
/**
|
|
1920
|
+
* @example
|
|
1921
|
+
* 2024-09-14 09:11:00
|
|
1922
|
+
*/
|
|
1923
|
+
startTime?: string;
|
|
1924
|
+
/**
|
|
1925
|
+
* @example
|
|
1926
|
+
* true
|
|
1927
|
+
*/
|
|
1928
|
+
useUrl?: boolean;
|
|
1929
|
+
static names(): { [key: string]: string } {
|
|
1930
|
+
return {
|
|
1931
|
+
asc: 'asc',
|
|
1932
|
+
endTime: 'endTime',
|
|
1933
|
+
sessionIds: 'sessionIds',
|
|
1934
|
+
startTime: 'startTime',
|
|
1935
|
+
useUrl: 'useUrl',
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
static types(): { [key: string]: any } {
|
|
1940
|
+
return {
|
|
1941
|
+
asc: 'boolean',
|
|
1942
|
+
endTime: 'string',
|
|
1943
|
+
sessionIds: { 'type': 'array', 'itemType': 'string' },
|
|
1944
|
+
startTime: 'string',
|
|
1945
|
+
useUrl: 'boolean',
|
|
1946
|
+
};
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
constructor(map?: { [key: string]: any }) {
|
|
1950
|
+
super(map);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
export class GetDialogAnalysisResultResponseBody extends $tea.Model {
|
|
1955
|
+
/**
|
|
1956
|
+
* @example
|
|
1957
|
+
* null
|
|
1958
|
+
*/
|
|
1959
|
+
cost?: number;
|
|
1960
|
+
data?: GetDialogAnalysisResultResponseBodyData;
|
|
1961
|
+
/**
|
|
1962
|
+
* @example
|
|
1963
|
+
* null
|
|
1964
|
+
*/
|
|
1965
|
+
dataType?: string;
|
|
1966
|
+
/**
|
|
1967
|
+
* @example
|
|
1968
|
+
* 0
|
|
1969
|
+
*/
|
|
1970
|
+
errCode?: string;
|
|
1971
|
+
/**
|
|
1972
|
+
* @example
|
|
1973
|
+
* ok
|
|
1974
|
+
*/
|
|
1975
|
+
message?: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* @example
|
|
1978
|
+
* 88A006F0-B565-53BA-B38A-DBDF9D0B2935
|
|
1979
|
+
*/
|
|
1980
|
+
requestId?: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* @example
|
|
1983
|
+
* true
|
|
1984
|
+
*/
|
|
1985
|
+
success?: boolean;
|
|
1986
|
+
/**
|
|
1987
|
+
* @example
|
|
1988
|
+
* 2024-04-24 11:54:34
|
|
1989
|
+
*/
|
|
1990
|
+
time?: string;
|
|
1991
|
+
static names(): { [key: string]: string } {
|
|
1992
|
+
return {
|
|
1993
|
+
cost: 'cost',
|
|
1994
|
+
data: 'data',
|
|
1995
|
+
dataType: 'dataType',
|
|
1996
|
+
errCode: 'errCode',
|
|
1997
|
+
message: 'message',
|
|
1998
|
+
requestId: 'requestId',
|
|
1999
|
+
success: 'success',
|
|
2000
|
+
time: 'time',
|
|
2001
|
+
};
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
static types(): { [key: string]: any } {
|
|
2005
|
+
return {
|
|
2006
|
+
cost: 'number',
|
|
2007
|
+
data: GetDialogAnalysisResultResponseBodyData,
|
|
2008
|
+
dataType: 'string',
|
|
2009
|
+
errCode: 'string',
|
|
2010
|
+
message: 'string',
|
|
2011
|
+
requestId: 'string',
|
|
2012
|
+
success: 'boolean',
|
|
2013
|
+
time: 'string',
|
|
2014
|
+
};
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
constructor(map?: { [key: string]: any }) {
|
|
2018
|
+
super(map);
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
export class GetDialogAnalysisResultResponse extends $tea.Model {
|
|
2023
|
+
headers?: { [key: string]: string };
|
|
2024
|
+
statusCode?: number;
|
|
2025
|
+
body?: GetDialogAnalysisResultResponseBody;
|
|
2026
|
+
static names(): { [key: string]: string } {
|
|
2027
|
+
return {
|
|
2028
|
+
headers: 'headers',
|
|
2029
|
+
statusCode: 'statusCode',
|
|
2030
|
+
body: 'body',
|
|
2031
|
+
};
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
static types(): { [key: string]: any } {
|
|
2035
|
+
return {
|
|
2036
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2037
|
+
statusCode: 'number',
|
|
2038
|
+
body: GetDialogAnalysisResultResponseBody,
|
|
2039
|
+
};
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
constructor(map?: { [key: string]: any }) {
|
|
2043
|
+
super(map);
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
|
|
1907
2047
|
export class GetDocumentChunkListRequest extends $tea.Model {
|
|
1908
2048
|
chunkIdList?: string[];
|
|
1909
2049
|
/**
|
|
@@ -6374,6 +6514,123 @@ export class GetChatQuestionRespResponseBodyData extends $tea.Model {
|
|
|
6374
6514
|
}
|
|
6375
6515
|
}
|
|
6376
6516
|
|
|
6517
|
+
export class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels extends $tea.Model {
|
|
6518
|
+
name?: string;
|
|
6519
|
+
/**
|
|
6520
|
+
* @example
|
|
6521
|
+
* 0
|
|
6522
|
+
*/
|
|
6523
|
+
value?: string;
|
|
6524
|
+
static names(): { [key: string]: string } {
|
|
6525
|
+
return {
|
|
6526
|
+
name: 'name',
|
|
6527
|
+
value: 'value',
|
|
6528
|
+
};
|
|
6529
|
+
}
|
|
6530
|
+
|
|
6531
|
+
static types(): { [key: string]: any } {
|
|
6532
|
+
return {
|
|
6533
|
+
name: 'string',
|
|
6534
|
+
value: 'string',
|
|
6535
|
+
};
|
|
6536
|
+
}
|
|
6537
|
+
|
|
6538
|
+
constructor(map?: { [key: string]: any }) {
|
|
6539
|
+
super(map);
|
|
6540
|
+
}
|
|
6541
|
+
}
|
|
6542
|
+
|
|
6543
|
+
export class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp extends $tea.Model {
|
|
6544
|
+
dialogExecPlan?: string;
|
|
6545
|
+
dialogLabels?: GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels[];
|
|
6546
|
+
dialogSummary?: string;
|
|
6547
|
+
static names(): { [key: string]: string } {
|
|
6548
|
+
return {
|
|
6549
|
+
dialogExecPlan: 'dialogExecPlan',
|
|
6550
|
+
dialogLabels: 'dialogLabels',
|
|
6551
|
+
dialogSummary: 'dialogSummary',
|
|
6552
|
+
};
|
|
6553
|
+
}
|
|
6554
|
+
|
|
6555
|
+
static types(): { [key: string]: any } {
|
|
6556
|
+
return {
|
|
6557
|
+
dialogExecPlan: 'string',
|
|
6558
|
+
dialogLabels: { 'type': 'array', 'itemType': GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisRespDialogLabels },
|
|
6559
|
+
dialogSummary: 'string',
|
|
6560
|
+
};
|
|
6561
|
+
}
|
|
6562
|
+
|
|
6563
|
+
constructor(map?: { [key: string]: any }) {
|
|
6564
|
+
super(map);
|
|
6565
|
+
}
|
|
6566
|
+
}
|
|
6567
|
+
|
|
6568
|
+
export class GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespList extends $tea.Model {
|
|
6569
|
+
analysisResp?: GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp;
|
|
6570
|
+
/**
|
|
6571
|
+
* @example
|
|
6572
|
+
* 2024-04-24 11:54:34
|
|
6573
|
+
*/
|
|
6574
|
+
gmtCreate?: string;
|
|
6575
|
+
/**
|
|
6576
|
+
* @example
|
|
6577
|
+
* https://xxx.oss-cn-beijing.aliyuncs.com/dialog-analysis/2024-12-30/2/1826661605606129665
|
|
6578
|
+
*/
|
|
6579
|
+
ossUrl?: string;
|
|
6580
|
+
/**
|
|
6581
|
+
* @example
|
|
6582
|
+
* 183764873624
|
|
6583
|
+
*/
|
|
6584
|
+
sessionId?: string;
|
|
6585
|
+
/**
|
|
6586
|
+
* @example
|
|
6587
|
+
* running
|
|
6588
|
+
*/
|
|
6589
|
+
status?: string;
|
|
6590
|
+
static names(): { [key: string]: string } {
|
|
6591
|
+
return {
|
|
6592
|
+
analysisResp: 'analysisResp',
|
|
6593
|
+
gmtCreate: 'gmtCreate',
|
|
6594
|
+
ossUrl: 'ossUrl',
|
|
6595
|
+
sessionId: 'sessionId',
|
|
6596
|
+
status: 'status',
|
|
6597
|
+
};
|
|
6598
|
+
}
|
|
6599
|
+
|
|
6600
|
+
static types(): { [key: string]: any } {
|
|
6601
|
+
return {
|
|
6602
|
+
analysisResp: GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespListAnalysisResp,
|
|
6603
|
+
gmtCreate: 'string',
|
|
6604
|
+
ossUrl: 'string',
|
|
6605
|
+
sessionId: 'string',
|
|
6606
|
+
status: 'string',
|
|
6607
|
+
};
|
|
6608
|
+
}
|
|
6609
|
+
|
|
6610
|
+
constructor(map?: { [key: string]: any }) {
|
|
6611
|
+
super(map);
|
|
6612
|
+
}
|
|
6613
|
+
}
|
|
6614
|
+
|
|
6615
|
+
export class GetDialogAnalysisResultResponseBodyData extends $tea.Model {
|
|
6616
|
+
dialogAnalysisRespList?: GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespList[];
|
|
6617
|
+
static names(): { [key: string]: string } {
|
|
6618
|
+
return {
|
|
6619
|
+
dialogAnalysisRespList: 'dialogAnalysisRespList',
|
|
6620
|
+
};
|
|
6621
|
+
}
|
|
6622
|
+
|
|
6623
|
+
static types(): { [key: string]: any } {
|
|
6624
|
+
return {
|
|
6625
|
+
dialogAnalysisRespList: { 'type': 'array', 'itemType': GetDialogAnalysisResultResponseBodyDataDialogAnalysisRespList },
|
|
6626
|
+
};
|
|
6627
|
+
}
|
|
6628
|
+
|
|
6629
|
+
constructor(map?: { [key: string]: any }) {
|
|
6630
|
+
super(map);
|
|
6631
|
+
}
|
|
6632
|
+
}
|
|
6633
|
+
|
|
6377
6634
|
export class GetDocumentChunkListResponseBodyDataRecordsPos extends $tea.Model {
|
|
6378
6635
|
axisArray?: number[];
|
|
6379
6636
|
/**
|
|
@@ -11372,6 +11629,67 @@ export default class Client extends OpenApi {
|
|
|
11372
11629
|
return await this.getChatQuestionRespWithOptions(workspaceId, request, headers, runtime);
|
|
11373
11630
|
}
|
|
11374
11631
|
|
|
11632
|
+
/**
|
|
11633
|
+
* 获取外呼会话分析结果
|
|
11634
|
+
*
|
|
11635
|
+
* @param request - GetDialogAnalysisResultRequest
|
|
11636
|
+
* @param headers - map
|
|
11637
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11638
|
+
* @returns GetDialogAnalysisResultResponse
|
|
11639
|
+
*/
|
|
11640
|
+
async getDialogAnalysisResultWithOptions(workspaceId: string, request: GetDialogAnalysisResultRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetDialogAnalysisResultResponse> {
|
|
11641
|
+
Util.validateModel(request);
|
|
11642
|
+
let body : {[key: string ]: any} = { };
|
|
11643
|
+
if (!Util.isUnset(request.asc)) {
|
|
11644
|
+
body["asc"] = request.asc;
|
|
11645
|
+
}
|
|
11646
|
+
|
|
11647
|
+
if (!Util.isUnset(request.endTime)) {
|
|
11648
|
+
body["endTime"] = request.endTime;
|
|
11649
|
+
}
|
|
11650
|
+
|
|
11651
|
+
if (!Util.isUnset(request.sessionIds)) {
|
|
11652
|
+
body["sessionIds"] = request.sessionIds;
|
|
11653
|
+
}
|
|
11654
|
+
|
|
11655
|
+
if (!Util.isUnset(request.startTime)) {
|
|
11656
|
+
body["startTime"] = request.startTime;
|
|
11657
|
+
}
|
|
11658
|
+
|
|
11659
|
+
if (!Util.isUnset(request.useUrl)) {
|
|
11660
|
+
body["useUrl"] = request.useUrl;
|
|
11661
|
+
}
|
|
11662
|
+
|
|
11663
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11664
|
+
headers: headers,
|
|
11665
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11666
|
+
});
|
|
11667
|
+
let params = new $OpenApi.Params({
|
|
11668
|
+
action: "GetDialogAnalysisResult",
|
|
11669
|
+
version: "2024-06-28",
|
|
11670
|
+
protocol: "HTTPS",
|
|
11671
|
+
pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/api/virtualHuman/dialog/analysis`,
|
|
11672
|
+
method: "POST",
|
|
11673
|
+
authType: "AK",
|
|
11674
|
+
style: "ROA",
|
|
11675
|
+
reqBodyType: "json",
|
|
11676
|
+
bodyType: "json",
|
|
11677
|
+
});
|
|
11678
|
+
return $tea.cast<GetDialogAnalysisResultResponse>(await this.callApi(params, req, runtime), new GetDialogAnalysisResultResponse({}));
|
|
11679
|
+
}
|
|
11680
|
+
|
|
11681
|
+
/**
|
|
11682
|
+
* 获取外呼会话分析结果
|
|
11683
|
+
*
|
|
11684
|
+
* @param request - GetDialogAnalysisResultRequest
|
|
11685
|
+
* @returns GetDialogAnalysisResultResponse
|
|
11686
|
+
*/
|
|
11687
|
+
async getDialogAnalysisResult(workspaceId: string, request: GetDialogAnalysisResultRequest): Promise<GetDialogAnalysisResultResponse> {
|
|
11688
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11689
|
+
let headers : {[key: string ]: string} = { };
|
|
11690
|
+
return await this.getDialogAnalysisResultWithOptions(workspaceId, request, headers, runtime);
|
|
11691
|
+
}
|
|
11692
|
+
|
|
11375
11693
|
/**
|
|
11376
11694
|
* 获取文档的chunk列表
|
|
11377
11695
|
*
|