@alicloud/ccc20200701 2.32.0 → 2.33.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.32.0",
3
+ "version": "2.33.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -21547,6 +21547,7 @@ export class ListRealtimeAgentStatesResponseBodyDataList extends $dara.Model {
21547
21547
  */
21548
21548
  agentId?: string;
21549
21549
  agentName?: string;
21550
+ breakCode?: string;
21550
21551
  /**
21551
21552
  * @example
21552
21553
  * Outbound
@@ -21608,6 +21609,7 @@ export class ListRealtimeAgentStatesResponseBodyDataList extends $dara.Model {
21608
21609
  return {
21609
21610
  agentId: 'AgentId',
21610
21611
  agentName: 'AgentName',
21612
+ breakCode: 'BreakCode',
21611
21613
  callType: 'CallType',
21612
21614
  counterParty: 'CounterParty',
21613
21615
  duration: 'Duration',
@@ -21628,6 +21630,7 @@ export class ListRealtimeAgentStatesResponseBodyDataList extends $dara.Model {
21628
21630
  return {
21629
21631
  agentId: 'string',
21630
21632
  agentName: 'string',
21633
+ breakCode: 'string',
21631
21634
  callType: 'string',
21632
21635
  counterParty: 'string',
21633
21636
  duration: 'number',
@@ -24304,6 +24307,100 @@ export class ListUsersResponseBodyData extends $dara.Model {
24304
24307
  }
24305
24308
  }
24306
24309
 
24310
+ export class ListVisitorChatMessagesResponseBodyDataMessages extends $dara.Model {
24311
+ content?: string;
24312
+ /**
24313
+ * @example
24314
+ * chat-65382141036853491
24315
+ */
24316
+ jobId?: string;
24317
+ /**
24318
+ * @example
24319
+ * http://xxxxx.com/avatar.png
24320
+ */
24321
+ senderAvatarUrl?: string;
24322
+ /**
24323
+ * @example
24324
+ * fcd020fe-****-1a272a174a7d
24325
+ */
24326
+ senderId?: string;
24327
+ senderName?: string;
24328
+ /**
24329
+ * @example
24330
+ * CUSTOMER
24331
+ */
24332
+ senderType?: string;
24333
+ /**
24334
+ * @example
24335
+ * 1696126980371
24336
+ */
24337
+ timestamp?: number;
24338
+ static names(): { [key: string]: string } {
24339
+ return {
24340
+ content: 'Content',
24341
+ jobId: 'JobId',
24342
+ senderAvatarUrl: 'SenderAvatarUrl',
24343
+ senderId: 'SenderId',
24344
+ senderName: 'SenderName',
24345
+ senderType: 'SenderType',
24346
+ timestamp: 'Timestamp',
24347
+ };
24348
+ }
24349
+
24350
+ static types(): { [key: string]: any } {
24351
+ return {
24352
+ content: 'string',
24353
+ jobId: 'string',
24354
+ senderAvatarUrl: 'string',
24355
+ senderId: 'string',
24356
+ senderName: 'string',
24357
+ senderType: 'string',
24358
+ timestamp: 'number',
24359
+ };
24360
+ }
24361
+
24362
+ validate() {
24363
+ super.validate();
24364
+ }
24365
+
24366
+ constructor(map?: { [key: string]: any }) {
24367
+ super(map);
24368
+ }
24369
+ }
24370
+
24371
+ export class ListVisitorChatMessagesResponseBodyData extends $dara.Model {
24372
+ messages?: ListVisitorChatMessagesResponseBodyDataMessages[];
24373
+ /**
24374
+ * @example
24375
+ * 1737193352340::7463707254.EAUNIT
24376
+ */
24377
+ nextPageToken?: string;
24378
+ static names(): { [key: string]: string } {
24379
+ return {
24380
+ messages: 'Messages',
24381
+ nextPageToken: 'NextPageToken',
24382
+ };
24383
+ }
24384
+
24385
+ static types(): { [key: string]: any } {
24386
+ return {
24387
+ messages: { 'type': 'array', 'itemType': ListVisitorChatMessagesResponseBodyDataMessages },
24388
+ nextPageToken: 'string',
24389
+ };
24390
+ }
24391
+
24392
+ validate() {
24393
+ if(Array.isArray(this.messages)) {
24394
+ $dara.Model.validateArray(this.messages);
24395
+ }
24396
+ super.validate();
24397
+ }
24398
+
24399
+ constructor(map?: { [key: string]: any }) {
24400
+ super(map);
24401
+ }
24402
+ }
24403
+
24307
24404
  export class ListVoicemailsResponseBodyDataList extends $dara.Model {
24308
24405
  /**
24309
24406
  * @example
@@ -24681,6 +24778,7 @@ export class MakeCallResponseBodyDataCallContext extends $dara.Model {
24681
24778
  * OUTBOUND
24682
24779
  */
24683
24780
  callType?: string;
24781
+ callVariables?: string;
24684
24782
  channelContexts?: MakeCallResponseBodyDataCallContextChannelContexts[];
24685
24783
  /**
24686
24784
  * @example
@@ -24695,6 +24793,7 @@ export class MakeCallResponseBodyDataCallContext extends $dara.Model {
24695
24793
  static names(): { [key: string]: string } {
24696
24794
  return {
24697
24795
  callType: 'CallType',
24796
+ callVariables: 'CallVariables',
24698
24797
  channelContexts: 'ChannelContexts',
24699
24798
  instanceId: 'InstanceId',
24700
24799
  jobId: 'JobId',
@@ -24704,6 +24803,7 @@ export class MakeCallResponseBodyDataCallContext extends $dara.Model {
24704
24803
  static types(): { [key: string]: any } {
24705
24804
  return {
24706
24805
  callType: 'string',
24806
+ callVariables: 'string',
24707
24807
  channelContexts: { 'type': 'array', 'itemType': MakeCallResponseBodyDataCallContextChannelContexts },
24708
24808
  instanceId: 'string',
24709
24809
  jobId: 'string',
@@ -54974,6 +55074,177 @@ export class ListUsersResponse extends $dara.Model {
54974
55074
  }
54975
55075
  }
54976
55076
 
55077
+ export class ListVisitorChatMessagesRequest extends $dara.Model {
55078
+ /**
55079
+ * @example
55080
+ * cf584733-***-***-9699-cb77aa3b7aa6
55081
+ */
55082
+ accessChannelId?: string;
55083
+ /**
55084
+ * @example
55085
+ * 9XYGTGWtq2wXzVikKuip_zeVGl6O4VJ-l-*-*-JPofhap4P7fAevuE=
55086
+ */
55087
+ accessToken?: string;
55088
+ /**
55089
+ * @example
55090
+ * 1650316799000
55091
+ */
55092
+ endTime?: string;
55093
+ /**
55094
+ * @example
55095
+ * ccc-test
55096
+ */
55097
+ instanceId?: string;
55098
+ /**
55099
+ * @example
55100
+ * 1737193352340::7463707254.EAUNIT
55101
+ */
55102
+ nextPageToken?: string;
55103
+ /**
55104
+ * @example
55105
+ * 100
55106
+ */
55107
+ pageSize?: number;
55108
+ /**
55109
+ * @example
55110
+ * DESC
55111
+ */
55112
+ sortOrder?: string;
55113
+ /**
55114
+ * @example
55115
+ * 1647325450000
55116
+ */
55117
+ startTime?: number;
55118
+ /**
55119
+ * @example
55120
+ * fcd020fe-****-1a272a174a7d
55121
+ */
55122
+ visitorId?: string;
55123
+ static names(): { [key: string]: string } {
55124
+ return {
55125
+ accessChannelId: 'AccessChannelId',
55126
+ accessToken: 'AccessToken',
55127
+ endTime: 'EndTime',
55128
+ instanceId: 'InstanceId',
55129
+ nextPageToken: 'NextPageToken',
55130
+ pageSize: 'PageSize',
55131
+ sortOrder: 'SortOrder',
55132
+ startTime: 'StartTime',
55133
+ visitorId: 'VisitorId',
55134
+ };
55135
+ }
55136
+
55137
+ static types(): { [key: string]: any } {
55138
+ return {
55139
+ accessChannelId: 'string',
55140
+ accessToken: 'string',
55141
+ endTime: 'string',
55142
+ instanceId: 'string',
55143
+ nextPageToken: 'string',
55144
+ pageSize: 'number',
55145
+ sortOrder: 'string',
55146
+ startTime: 'number',
55147
+ visitorId: 'string',
55148
+ };
55149
+ }
55150
+
55151
+ validate() {
55152
+ super.validate();
55153
+ }
55154
+
55155
+ constructor(map?: { [key: string]: any }) {
55156
+ super(map);
55157
+ }
55158
+ }
55159
+
55160
+ export class ListVisitorChatMessagesResponseBody extends $dara.Model {
55161
+ /**
55162
+ * @example
55163
+ * OK
55164
+ */
55165
+ code?: string;
55166
+ data?: ListVisitorChatMessagesResponseBodyData;
55167
+ /**
55168
+ * @example
55169
+ * 200
55170
+ */
55171
+ httpStatusCode?: number;
55172
+ message?: string;
55173
+ /**
55174
+ * @remarks
55175
+ * Id of the request
55176
+ *
55177
+ * @example
55178
+ * 8707EB29-BAED-4302-B999-40BA61877437
55179
+ */
55180
+ requestId?: string;
55181
+ static names(): { [key: string]: string } {
55182
+ return {
55183
+ code: 'Code',
55184
+ data: 'Data',
55185
+ httpStatusCode: 'HttpStatusCode',
55186
+ message: 'Message',
55187
+ requestId: 'RequestId',
55188
+ };
55189
+ }
55190
+
55191
+ static types(): { [key: string]: any } {
55192
+ return {
55193
+ code: 'string',
55194
+ data: ListVisitorChatMessagesResponseBodyData,
55195
+ httpStatusCode: 'number',
55196
+ message: 'string',
55197
+ requestId: 'string',
55198
+ };
55199
+ }
55200
+
55201
+ validate() {
55202
+ if(this.data && typeof (this.data as any).validate === 'function') {
55203
+ (this.data as any).validate();
55204
+ }
55205
+ super.validate();
55206
+ }
55207
+
55208
+ constructor(map?: { [key: string]: any }) {
55209
+ super(map);
55210
+ }
55211
+ }
55212
+
55213
+ export class ListVisitorChatMessagesResponse extends $dara.Model {
55214
+ headers?: { [key: string]: string };
55215
+ statusCode?: number;
55216
+ body?: ListVisitorChatMessagesResponseBody;
55217
+ static names(): { [key: string]: string } {
55218
+ return {
55219
+ headers: 'headers',
55220
+ statusCode: 'statusCode',
55221
+ body: 'body',
55222
+ };
55223
+ }
55224
+
55225
+ static types(): { [key: string]: any } {
55226
+ return {
55227
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
55228
+ statusCode: 'number',
55229
+ body: ListVisitorChatMessagesResponseBody,
55230
+ };
55231
+ }
55232
+
55233
+ validate() {
55234
+ if(this.headers) {
55235
+ $dara.Model.validateMap(this.headers);
55236
+ }
55237
+ if(this.body && typeof (this.body as any).validate === 'function') {
55238
+ (this.body as any).validate();
55239
+ }
55240
+ super.validate();
55241
+ }
55242
+
55243
+ constructor(map?: { [key: string]: any }) {
55244
+ super(map);
55245
+ }
55246
+ }
55247
+
54977
55248
  export class ListVoicemailsRequest extends $dara.Model {
54978
55249
  /**
54979
55250
  * @example
@@ -75087,6 +75358,85 @@ export default class Client extends OpenApi {
75087
75358
  return await this.listUsersWithOptions(request, runtime);
75088
75359
  }
75089
75360
 
75361
+ /**
75362
+ * ListVisitorChatMessages
75363
+ *
75364
+ * @param request - ListVisitorChatMessagesRequest
75365
+ * @param runtime - runtime options for this request RuntimeOptions
75366
+ * @returns ListVisitorChatMessagesResponse
75367
+ */
75368
+ async listVisitorChatMessagesWithOptions(request: ListVisitorChatMessagesRequest, runtime: $dara.RuntimeOptions): Promise<ListVisitorChatMessagesResponse> {
75369
+ request.validate();
75370
+ let query = { };
75371
+ if (!$dara.isNull(request.accessChannelId)) {
75372
+ query["AccessChannelId"] = request.accessChannelId;
75373
+ }
75374
+
75375
+ if (!$dara.isNull(request.accessToken)) {
75376
+ query["AccessToken"] = request.accessToken;
75377
+ }
75378
+
75379
+ if (!$dara.isNull(request.endTime)) {
75380
+ query["EndTime"] = request.endTime;
75381
+ }
75382
+
75383
+ if (!$dara.isNull(request.instanceId)) {
75384
+ query["InstanceId"] = request.instanceId;
75385
+ }
75386
+
75387
+ if (!$dara.isNull(request.nextPageToken)) {
75388
+ query["NextPageToken"] = request.nextPageToken;
75389
+ }
75390
+
75391
+ if (!$dara.isNull(request.pageSize)) {
75392
+ query["PageSize"] = request.pageSize;
75393
+ }
75394
+
75395
+ if (!$dara.isNull(request.sortOrder)) {
75396
+ query["SortOrder"] = request.sortOrder;
75397
+ }
75398
+
75399
+ if (!$dara.isNull(request.startTime)) {
75400
+ query["StartTime"] = request.startTime;
75401
+ }
75402
+
75403
+ if (!$dara.isNull(request.visitorId)) {
75404
+ query["VisitorId"] = request.visitorId;
75405
+ }
75406
+
75407
+ let req = new $OpenApiUtil.OpenApiRequest({
75408
+ query: OpenApiUtil.query(query),
75409
+ });
75410
+ let params = new $OpenApiUtil.Params({
75411
+ action: "ListVisitorChatMessages",
75412
+ version: "2020-07-01",
75413
+ protocol: "HTTPS",
75414
+ pathname: "/",
75415
+ method: "POST",
75416
+ authType: "AK",
75417
+ style: "RPC",
75418
+ reqBodyType: "formData",
75419
+ bodyType: "json",
75420
+ });
75421
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
75422
+ return $dara.cast<ListVisitorChatMessagesResponse>(await this.callApi(params, req, runtime), new ListVisitorChatMessagesResponse({}));
75423
+ } else {
75424
+ return $dara.cast<ListVisitorChatMessagesResponse>(await this.execute(params, req, runtime), new ListVisitorChatMessagesResponse({}));
75425
+ }
75426
+
75427
+ }
75428
+
75429
+ /**
75430
+ * ListVisitorChatMessages
75431
+ *
75432
+ * @param request - ListVisitorChatMessagesRequest
75433
+ * @returns ListVisitorChatMessagesResponse
75434
+ */
75435
+ async listVisitorChatMessages(request: ListVisitorChatMessagesRequest): Promise<ListVisitorChatMessagesResponse> {
75436
+ let runtime = new $dara.RuntimeOptions({ });
75437
+ return await this.listVisitorChatMessagesWithOptions(request, runtime);
75438
+ }
75439
+
75090
75440
  /**
75091
75441
  * @param request - ListVoicemailsRequest
75092
75442
  * @param runtime - runtime options for this request RuntimeOptions