@alicloud/ccc20200701 2.13.1 → 2.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ccc20200701",
3
- "version": "2.13.1",
3
+ "version": "2.14.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -747,6 +747,90 @@ export class AddUsersToSkillGroupResponse extends $tea.Model {
747
747
  }
748
748
  }
749
749
 
750
+ export class AnalyzeConversationRequest extends $tea.Model {
751
+ contactId?: string;
752
+ fieldListJson?: string;
753
+ instanceId?: string;
754
+ taskListJson?: string;
755
+ static names(): { [key: string]: string } {
756
+ return {
757
+ contactId: 'ContactId',
758
+ fieldListJson: 'FieldListJson',
759
+ instanceId: 'InstanceId',
760
+ taskListJson: 'TaskListJson',
761
+ };
762
+ }
763
+
764
+ static types(): { [key: string]: any } {
765
+ return {
766
+ contactId: 'string',
767
+ fieldListJson: 'string',
768
+ instanceId: 'string',
769
+ taskListJson: 'string',
770
+ };
771
+ }
772
+
773
+ constructor(map?: { [key: string]: any }) {
774
+ super(map);
775
+ }
776
+ }
777
+
778
+ export class AnalyzeConversationResponseBody extends $tea.Model {
779
+ code?: string;
780
+ data?: string;
781
+ httpStatusCode?: number;
782
+ message?: string;
783
+ requestId?: string;
784
+ static names(): { [key: string]: string } {
785
+ return {
786
+ code: 'Code',
787
+ data: 'Data',
788
+ httpStatusCode: 'HttpStatusCode',
789
+ message: 'Message',
790
+ requestId: 'RequestId',
791
+ };
792
+ }
793
+
794
+ static types(): { [key: string]: any } {
795
+ return {
796
+ code: 'string',
797
+ data: 'string',
798
+ httpStatusCode: 'number',
799
+ message: 'string',
800
+ requestId: 'string',
801
+ };
802
+ }
803
+
804
+ constructor(map?: { [key: string]: any }) {
805
+ super(map);
806
+ }
807
+ }
808
+
809
+ export class AnalyzeConversationResponse extends $tea.Model {
810
+ headers?: { [key: string]: string };
811
+ statusCode?: number;
812
+ body?: AnalyzeConversationResponseBody;
813
+ static names(): { [key: string]: string } {
814
+ return {
815
+ headers: 'headers',
816
+ statusCode: 'statusCode',
817
+ body: 'body',
818
+ };
819
+ }
820
+
821
+ static types(): { [key: string]: any } {
822
+ return {
823
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
824
+ statusCode: 'number',
825
+ body: AnalyzeConversationResponseBody,
826
+ };
827
+ }
828
+
829
+ constructor(map?: { [key: string]: any }) {
830
+ super(map);
831
+ }
832
+ }
833
+
750
834
  export class AnswerCallRequest extends $tea.Model {
751
835
  deviceId?: string;
752
836
  instanceId?: string;
@@ -30208,6 +30292,47 @@ export default class Client extends OpenApi {
30208
30292
  return await this.addUsersToSkillGroupWithOptions(request, runtime);
30209
30293
  }
30210
30294
 
30295
+ async analyzeConversationWithOptions(request: AnalyzeConversationRequest, runtime: $Util.RuntimeOptions): Promise<AnalyzeConversationResponse> {
30296
+ Util.validateModel(request);
30297
+ let query = { };
30298
+ if (!Util.isUnset(request.contactId)) {
30299
+ query["ContactId"] = request.contactId;
30300
+ }
30301
+
30302
+ if (!Util.isUnset(request.fieldListJson)) {
30303
+ query["FieldListJson"] = request.fieldListJson;
30304
+ }
30305
+
30306
+ if (!Util.isUnset(request.instanceId)) {
30307
+ query["InstanceId"] = request.instanceId;
30308
+ }
30309
+
30310
+ if (!Util.isUnset(request.taskListJson)) {
30311
+ query["TaskListJson"] = request.taskListJson;
30312
+ }
30313
+
30314
+ let req = new $OpenApi.OpenApiRequest({
30315
+ query: OpenApiUtil.query(query),
30316
+ });
30317
+ let params = new $OpenApi.Params({
30318
+ action: "AnalyzeConversation",
30319
+ version: "2020-07-01",
30320
+ protocol: "HTTPS",
30321
+ pathname: "/",
30322
+ method: "POST",
30323
+ authType: "AK",
30324
+ style: "RPC",
30325
+ reqBodyType: "formData",
30326
+ bodyType: "json",
30327
+ });
30328
+ return $tea.cast<AnalyzeConversationResponse>(await this.callApi(params, req, runtime), new AnalyzeConversationResponse({}));
30329
+ }
30330
+
30331
+ async analyzeConversation(request: AnalyzeConversationRequest): Promise<AnalyzeConversationResponse> {
30332
+ let runtime = new $Util.RuntimeOptions({ });
30333
+ return await this.analyzeConversationWithOptions(request, runtime);
30334
+ }
30335
+
30211
30336
  async answerCallWithOptions(request: AnswerCallRequest, runtime: $Util.RuntimeOptions): Promise<AnswerCallResponse> {
30212
30337
  Util.validateModel(request);
30213
30338
  let query = { };