@alicloud/ccc20200701 2.24.0 → 2.25.1

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.24.0",
3
+ "version": "2.25.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -10952,6 +10952,93 @@ export class ListDocumentsResponse extends $tea.Model {
10952
10952
  }
10953
10953
  }
10954
10954
 
10955
+ export class ListGroupChatMessagesRequest extends $tea.Model {
10956
+ instanceId?: string;
10957
+ jobId?: string;
10958
+ nextPageToken?: string;
10959
+ pageSize?: number;
10960
+ sortOrder?: string;
10961
+ static names(): { [key: string]: string } {
10962
+ return {
10963
+ instanceId: 'InstanceId',
10964
+ jobId: 'JobId',
10965
+ nextPageToken: 'NextPageToken',
10966
+ pageSize: 'PageSize',
10967
+ sortOrder: 'SortOrder',
10968
+ };
10969
+ }
10970
+
10971
+ static types(): { [key: string]: any } {
10972
+ return {
10973
+ instanceId: 'string',
10974
+ jobId: 'string',
10975
+ nextPageToken: 'string',
10976
+ pageSize: 'number',
10977
+ sortOrder: 'string',
10978
+ };
10979
+ }
10980
+
10981
+ constructor(map?: { [key: string]: any }) {
10982
+ super(map);
10983
+ }
10984
+ }
10985
+
10986
+ export class ListGroupChatMessagesResponseBody extends $tea.Model {
10987
+ code?: string;
10988
+ data?: ListGroupChatMessagesResponseBodyData;
10989
+ httpStatusCode?: number;
10990
+ message?: string;
10991
+ requestId?: string;
10992
+ static names(): { [key: string]: string } {
10993
+ return {
10994
+ code: 'Code',
10995
+ data: 'Data',
10996
+ httpStatusCode: 'HttpStatusCode',
10997
+ message: 'Message',
10998
+ requestId: 'RequestId',
10999
+ };
11000
+ }
11001
+
11002
+ static types(): { [key: string]: any } {
11003
+ return {
11004
+ code: 'string',
11005
+ data: ListGroupChatMessagesResponseBodyData,
11006
+ httpStatusCode: 'number',
11007
+ message: 'string',
11008
+ requestId: 'string',
11009
+ };
11010
+ }
11011
+
11012
+ constructor(map?: { [key: string]: any }) {
11013
+ super(map);
11014
+ }
11015
+ }
11016
+
11017
+ export class ListGroupChatMessagesResponse extends $tea.Model {
11018
+ headers?: { [key: string]: string };
11019
+ statusCode?: number;
11020
+ body?: ListGroupChatMessagesResponseBody;
11021
+ static names(): { [key: string]: string } {
11022
+ return {
11023
+ headers: 'headers',
11024
+ statusCode: 'statusCode',
11025
+ body: 'body',
11026
+ };
11027
+ }
11028
+
11029
+ static types(): { [key: string]: any } {
11030
+ return {
11031
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
11032
+ statusCode: 'number',
11033
+ body: ListGroupChatMessagesResponseBody,
11034
+ };
11035
+ }
11036
+
11037
+ constructor(map?: { [key: string]: any }) {
11038
+ super(map);
11039
+ }
11040
+ }
11041
+
10955
11042
  export class ListHistoricalAgentReportRequest extends $tea.Model {
10956
11043
  agentIdList?: string;
10957
11044
  instanceId?: string;
@@ -26383,6 +26470,68 @@ export class ListDocumentsResponseBodyData extends $tea.Model {
26383
26470
  }
26384
26471
  }
26385
26472
 
26473
+ export class ListGroupChatMessagesResponseBodyDataMessages extends $tea.Model {
26474
+ content?: string;
26475
+ jobId?: string;
26476
+ recalled?: boolean;
26477
+ senderAvatarUrl?: string;
26478
+ senderId?: string;
26479
+ senderName?: string;
26480
+ senderType?: string;
26481
+ timestamp?: number;
26482
+ static names(): { [key: string]: string } {
26483
+ return {
26484
+ content: 'Content',
26485
+ jobId: 'JobId',
26486
+ recalled: 'Recalled',
26487
+ senderAvatarUrl: 'SenderAvatarUrl',
26488
+ senderId: 'SenderId',
26489
+ senderName: 'SenderName',
26490
+ senderType: 'SenderType',
26491
+ timestamp: 'Timestamp',
26492
+ };
26493
+ }
26494
+
26495
+ static types(): { [key: string]: any } {
26496
+ return {
26497
+ content: 'string',
26498
+ jobId: 'string',
26499
+ recalled: 'boolean',
26500
+ senderAvatarUrl: 'string',
26501
+ senderId: 'string',
26502
+ senderName: 'string',
26503
+ senderType: 'string',
26504
+ timestamp: 'number',
26505
+ };
26506
+ }
26507
+
26508
+ constructor(map?: { [key: string]: any }) {
26509
+ super(map);
26510
+ }
26511
+ }
26512
+
26513
+ export class ListGroupChatMessagesResponseBodyData extends $tea.Model {
26514
+ messages?: ListGroupChatMessagesResponseBodyDataMessages[];
26515
+ nextPageToken?: string;
26516
+ static names(): { [key: string]: string } {
26517
+ return {
26518
+ messages: 'Messages',
26519
+ nextPageToken: 'NextPageToken',
26520
+ };
26521
+ }
26522
+
26523
+ static types(): { [key: string]: any } {
26524
+ return {
26525
+ messages: { 'type': 'array', 'itemType': ListGroupChatMessagesResponseBodyDataMessages },
26526
+ nextPageToken: 'string',
26527
+ };
26528
+ }
26529
+
26530
+ constructor(map?: { [key: string]: any }) {
26531
+ super(map);
26532
+ }
26533
+ }
26534
+
26386
26535
  export class ListHistoricalAgentReportResponseBodyDataListBack2Back extends $tea.Model {
26387
26536
  agentHandleRate?: string;
26388
26537
  answerRate?: string;
@@ -41863,6 +42012,64 @@ export default class Client extends OpenApi {
41863
42012
  return await this.listDocumentsWithOptions(request, runtime);
41864
42013
  }
41865
42014
 
42015
+ /**
42016
+ * @summary ListGroupChatMessages
42017
+ *
42018
+ * @param request ListGroupChatMessagesRequest
42019
+ * @param runtime runtime options for this request RuntimeOptions
42020
+ * @return ListGroupChatMessagesResponse
42021
+ */
42022
+ async listGroupChatMessagesWithOptions(request: ListGroupChatMessagesRequest, runtime: $Util.RuntimeOptions): Promise<ListGroupChatMessagesResponse> {
42023
+ Util.validateModel(request);
42024
+ let query = { };
42025
+ if (!Util.isUnset(request.instanceId)) {
42026
+ query["InstanceId"] = request.instanceId;
42027
+ }
42028
+
42029
+ if (!Util.isUnset(request.jobId)) {
42030
+ query["JobId"] = request.jobId;
42031
+ }
42032
+
42033
+ if (!Util.isUnset(request.nextPageToken)) {
42034
+ query["NextPageToken"] = request.nextPageToken;
42035
+ }
42036
+
42037
+ if (!Util.isUnset(request.pageSize)) {
42038
+ query["PageSize"] = request.pageSize;
42039
+ }
42040
+
42041
+ if (!Util.isUnset(request.sortOrder)) {
42042
+ query["SortOrder"] = request.sortOrder;
42043
+ }
42044
+
42045
+ let req = new $OpenApi.OpenApiRequest({
42046
+ query: OpenApiUtil.query(query),
42047
+ });
42048
+ let params = new $OpenApi.Params({
42049
+ action: "ListGroupChatMessages",
42050
+ version: "2020-07-01",
42051
+ protocol: "HTTPS",
42052
+ pathname: "/",
42053
+ method: "POST",
42054
+ authType: "AK",
42055
+ style: "RPC",
42056
+ reqBodyType: "formData",
42057
+ bodyType: "json",
42058
+ });
42059
+ return $tea.cast<ListGroupChatMessagesResponse>(await this.callApi(params, req, runtime), new ListGroupChatMessagesResponse({}));
42060
+ }
42061
+
42062
+ /**
42063
+ * @summary ListGroupChatMessages
42064
+ *
42065
+ * @param request ListGroupChatMessagesRequest
42066
+ * @return ListGroupChatMessagesResponse
42067
+ */
42068
+ async listGroupChatMessages(request: ListGroupChatMessagesRequest): Promise<ListGroupChatMessagesResponse> {
42069
+ let runtime = new $Util.RuntimeOptions({ });
42070
+ return await this.listGroupChatMessagesWithOptions(request, runtime);
42071
+ }
42072
+
41866
42073
  /**
41867
42074
  * @param request ListHistoricalAgentReportRequest
41868
42075
  * @param runtime runtime options for this request RuntimeOptions