@alicloud/ccc20200701 2.31.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/src/client.ts CHANGED
@@ -2585,6 +2585,40 @@ export class CreateCampaignRequestCaseList extends $dara.Model {
2585
2585
  }
2586
2586
  }
2587
2587
 
2588
+ export class CreateChatMediaUrlResponseBodyData extends $dara.Model {
2589
+ /**
2590
+ * @example
2591
+ * $iAHNCNQCo21wMwMGBAAFAAbaACOEAaQhIH6TAqogDGyb-qD2Hbj0A88AAAGRLKYVnwTOACwwYwcACM8AAAGRLRPynQ
2592
+ */
2593
+ mediaId?: string;
2594
+ /**
2595
+ * @example
2596
+ * https://ccc-v2-online.oss-cn-shanghai.aliyuncs.com/ccc-test/namelist.csv?Expires=1642067227&OSSAccessKeyId=****&Signature=****
2597
+ */
2598
+ url?: string;
2599
+ static names(): { [key: string]: string } {
2600
+ return {
2601
+ mediaId: 'MediaId',
2602
+ url: 'Url',
2603
+ };
2604
+ }
2605
+
2606
+ static types(): { [key: string]: any } {
2607
+ return {
2608
+ mediaId: 'string',
2609
+ url: 'string',
2610
+ };
2611
+ }
2612
+
2613
+ validate() {
2614
+ super.validate();
2615
+ }
2616
+
2617
+ constructor(map?: { [key: string]: any }) {
2618
+ super(map);
2619
+ }
2620
+ }
2621
+
2588
2622
  export class CreateCustomCallTaggingResponseBodyData extends $dara.Model {
2589
2623
  /**
2590
2624
  * @example
@@ -21513,6 +21547,7 @@ export class ListRealtimeAgentStatesResponseBodyDataList extends $dara.Model {
21513
21547
  */
21514
21548
  agentId?: string;
21515
21549
  agentName?: string;
21550
+ breakCode?: string;
21516
21551
  /**
21517
21552
  * @example
21518
21553
  * Outbound
@@ -21574,6 +21609,7 @@ export class ListRealtimeAgentStatesResponseBodyDataList extends $dara.Model {
21574
21609
  return {
21575
21610
  agentId: 'AgentId',
21576
21611
  agentName: 'AgentName',
21612
+ breakCode: 'BreakCode',
21577
21613
  callType: 'CallType',
21578
21614
  counterParty: 'CounterParty',
21579
21615
  duration: 'Duration',
@@ -21594,6 +21630,7 @@ export class ListRealtimeAgentStatesResponseBodyDataList extends $dara.Model {
21594
21630
  return {
21595
21631
  agentId: 'string',
21596
21632
  agentName: 'string',
21633
+ breakCode: 'string',
21597
21634
  callType: 'string',
21598
21635
  counterParty: 'string',
21599
21636
  duration: 'number',
@@ -24270,6 +24307,100 @@ export class ListUsersResponseBodyData extends $dara.Model {
24270
24307
  }
24271
24308
  }
24272
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
+
24273
24404
  export class ListVoicemailsResponseBodyDataList extends $dara.Model {
24274
24405
  /**
24275
24406
  * @example
@@ -24647,6 +24778,7 @@ export class MakeCallResponseBodyDataCallContext extends $dara.Model {
24647
24778
  * OUTBOUND
24648
24779
  */
24649
24780
  callType?: string;
24781
+ callVariables?: string;
24650
24782
  channelContexts?: MakeCallResponseBodyDataCallContextChannelContexts[];
24651
24783
  /**
24652
24784
  * @example
@@ -24661,6 +24793,7 @@ export class MakeCallResponseBodyDataCallContext extends $dara.Model {
24661
24793
  static names(): { [key: string]: string } {
24662
24794
  return {
24663
24795
  callType: 'CallType',
24796
+ callVariables: 'CallVariables',
24664
24797
  channelContexts: 'ChannelContexts',
24665
24798
  instanceId: 'InstanceId',
24666
24799
  jobId: 'JobId',
@@ -24670,6 +24803,7 @@ export class MakeCallResponseBodyDataCallContext extends $dara.Model {
24670
24803
  static types(): { [key: string]: any } {
24671
24804
  return {
24672
24805
  callType: 'string',
24806
+ callVariables: 'string',
24673
24807
  channelContexts: { 'type': 'array', 'itemType': MakeCallResponseBodyDataCallContextChannelContexts },
24674
24808
  instanceId: 'string',
24675
24809
  jobId: 'string',
@@ -34410,6 +34544,146 @@ export class CreateCampaignResponse extends $dara.Model {
34410
34544
  }
34411
34545
  }
34412
34546
 
34547
+ export class CreateChatMediaUrlRequest extends $dara.Model {
34548
+ /**
34549
+ * @remarks
34550
+ * This parameter is required.
34551
+ *
34552
+ * @example
34553
+ * 9cfad875-6260-4a53-ab6e-b13e3fb31f7d
34554
+ */
34555
+ instanceId?: string;
34556
+ /**
34557
+ * @remarks
34558
+ * media id
34559
+ *
34560
+ * This parameter is required.
34561
+ *
34562
+ * @example
34563
+ * jpg
34564
+ */
34565
+ mimeType?: string;
34566
+ /**
34567
+ * @example
34568
+ * 9F766284-F103-4298-8EC5-19F9F9BE5522
34569
+ */
34570
+ requestId?: string;
34571
+ static names(): { [key: string]: string } {
34572
+ return {
34573
+ instanceId: 'InstanceId',
34574
+ mimeType: 'MimeType',
34575
+ requestId: 'RequestId',
34576
+ };
34577
+ }
34578
+
34579
+ static types(): { [key: string]: any } {
34580
+ return {
34581
+ instanceId: 'string',
34582
+ mimeType: 'string',
34583
+ requestId: 'string',
34584
+ };
34585
+ }
34586
+
34587
+ validate() {
34588
+ super.validate();
34589
+ }
34590
+
34591
+ constructor(map?: { [key: string]: any }) {
34592
+ super(map);
34593
+ }
34594
+ }
34595
+
34596
+ export class CreateChatMediaUrlResponseBody extends $dara.Model {
34597
+ /**
34598
+ * @example
34599
+ * OK
34600
+ */
34601
+ code?: string;
34602
+ data?: CreateChatMediaUrlResponseBodyData;
34603
+ /**
34604
+ * @example
34605
+ * 200
34606
+ */
34607
+ httpStatusCode?: number;
34608
+ message?: string;
34609
+ params?: string[];
34610
+ /**
34611
+ * @example
34612
+ * 03C67DAD-EB26-41D8-949D-9B0C470FB716
34613
+ */
34614
+ requestId?: string;
34615
+ static names(): { [key: string]: string } {
34616
+ return {
34617
+ code: 'Code',
34618
+ data: 'Data',
34619
+ httpStatusCode: 'HttpStatusCode',
34620
+ message: 'Message',
34621
+ params: 'Params',
34622
+ requestId: 'RequestId',
34623
+ };
34624
+ }
34625
+
34626
+ static types(): { [key: string]: any } {
34627
+ return {
34628
+ code: 'string',
34629
+ data: CreateChatMediaUrlResponseBodyData,
34630
+ httpStatusCode: 'number',
34631
+ message: 'string',
34632
+ params: { 'type': 'array', 'itemType': 'string' },
34633
+ requestId: 'string',
34634
+ };
34635
+ }
34636
+
34637
+ validate() {
34638
+ if(this.data && typeof (this.data as any).validate === 'function') {
34639
+ (this.data as any).validate();
34640
+ }
34641
+ if(Array.isArray(this.params)) {
34642
+ $dara.Model.validateArray(this.params);
34643
+ }
34644
+ super.validate();
34645
+ }
34646
+
34647
+ constructor(map?: { [key: string]: any }) {
34648
+ super(map);
34649
+ }
34650
+ }
34651
+
34652
+ export class CreateChatMediaUrlResponse extends $dara.Model {
34653
+ headers?: { [key: string]: string };
34654
+ statusCode?: number;
34655
+ body?: CreateChatMediaUrlResponseBody;
34656
+ static names(): { [key: string]: string } {
34657
+ return {
34658
+ headers: 'headers',
34659
+ statusCode: 'statusCode',
34660
+ body: 'body',
34661
+ };
34662
+ }
34663
+
34664
+ static types(): { [key: string]: any } {
34665
+ return {
34666
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
34667
+ statusCode: 'number',
34668
+ body: CreateChatMediaUrlResponseBody,
34669
+ };
34670
+ }
34671
+
34672
+ validate() {
34673
+ if(this.headers) {
34674
+ $dara.Model.validateMap(this.headers);
34675
+ }
34676
+ if(this.body && typeof (this.body as any).validate === 'function') {
34677
+ (this.body as any).validate();
34678
+ }
34679
+ super.validate();
34680
+ }
34681
+
34682
+ constructor(map?: { [key: string]: any }) {
34683
+ super(map);
34684
+ }
34685
+ }
34686
+
34413
34687
  export class CreateContactFlowRequest extends $dara.Model {
34414
34688
  /**
34415
34689
  * @remarks
@@ -54800,6 +55074,177 @@ export class ListUsersResponse extends $dara.Model {
54800
55074
  }
54801
55075
  }
54802
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
+
54803
55248
  export class ListVoicemailsRequest extends $dara.Model {
54804
55249
  /**
54805
55250
  * @example
@@ -57164,6 +57609,189 @@ export class ProcessAliMeCallbackOfStagingResponse extends $dara.Model {
57164
57609
  }
57165
57610
  }
57166
57611
 
57612
+ export class ProcessCustomIMCallbackRequest extends $dara.Model {
57613
+ /**
57614
+ * @remarks
57615
+ * This parameter is required.
57616
+ *
57617
+ * @example
57618
+ * cf584733-***-***-9699-cb77aa3b7aa6
57619
+ */
57620
+ accessChannelId?: string;
57621
+ /**
57622
+ * @remarks
57623
+ * This parameter is required.
57624
+ *
57625
+ * @example
57626
+ * d165de4f-9851-445e-9535-66ebfa72fa51
57627
+ */
57628
+ conversationId?: string;
57629
+ /**
57630
+ * @remarks
57631
+ * This parameter is required.
57632
+ *
57633
+ * @example
57634
+ * 9cfad875-6260-4a53-ab6e-b13e3fb31f7d
57635
+ */
57636
+ instanceId?: string;
57637
+ /**
57638
+ * @remarks
57639
+ * This parameter is required.
57640
+ */
57641
+ messageContent?: string;
57642
+ /**
57643
+ * @example
57644
+ * 03C67DAD-EB26-41D8-949D-9B0C470FB716
57645
+ */
57646
+ requestId?: string;
57647
+ /**
57648
+ * @example
57649
+ * xxxx
57650
+ */
57651
+ senderAvatarMediaId?: string;
57652
+ /**
57653
+ * @remarks
57654
+ * This parameter is required.
57655
+ *
57656
+ * @example
57657
+ * 63061274befd6b545aab4c83
57658
+ */
57659
+ senderId?: string;
57660
+ /**
57661
+ * @example
57662
+ * tom
57663
+ */
57664
+ senderName?: string;
57665
+ static names(): { [key: string]: string } {
57666
+ return {
57667
+ accessChannelId: 'AccessChannelId',
57668
+ conversationId: 'ConversationId',
57669
+ instanceId: 'InstanceId',
57670
+ messageContent: 'MessageContent',
57671
+ requestId: 'RequestId',
57672
+ senderAvatarMediaId: 'SenderAvatarMediaId',
57673
+ senderId: 'SenderId',
57674
+ senderName: 'SenderName',
57675
+ };
57676
+ }
57677
+
57678
+ static types(): { [key: string]: any } {
57679
+ return {
57680
+ accessChannelId: 'string',
57681
+ conversationId: 'string',
57682
+ instanceId: 'string',
57683
+ messageContent: 'string',
57684
+ requestId: 'string',
57685
+ senderAvatarMediaId: 'string',
57686
+ senderId: 'string',
57687
+ senderName: 'string',
57688
+ };
57689
+ }
57690
+
57691
+ validate() {
57692
+ super.validate();
57693
+ }
57694
+
57695
+ constructor(map?: { [key: string]: any }) {
57696
+ super(map);
57697
+ }
57698
+ }
57699
+
57700
+ export class ProcessCustomIMCallbackResponseBody extends $dara.Model {
57701
+ /**
57702
+ * @example
57703
+ * OK
57704
+ */
57705
+ code?: string;
57706
+ data?: string;
57707
+ /**
57708
+ * @example
57709
+ * 200
57710
+ */
57711
+ httpStatusCode?: number;
57712
+ /**
57713
+ * @example
57714
+ * chat-65382141036853491
57715
+ */
57716
+ jobId?: string;
57717
+ message?: string;
57718
+ params?: string[];
57719
+ /**
57720
+ * @example
57721
+ * 2778FA12-EDD6-42AA-9B15-AF855072E5E5
57722
+ */
57723
+ requestId?: string;
57724
+ static names(): { [key: string]: string } {
57725
+ return {
57726
+ code: 'Code',
57727
+ data: 'Data',
57728
+ httpStatusCode: 'HttpStatusCode',
57729
+ jobId: 'JobId',
57730
+ message: 'Message',
57731
+ params: 'Params',
57732
+ requestId: 'RequestId',
57733
+ };
57734
+ }
57735
+
57736
+ static types(): { [key: string]: any } {
57737
+ return {
57738
+ code: 'string',
57739
+ data: 'string',
57740
+ httpStatusCode: 'number',
57741
+ jobId: 'string',
57742
+ message: 'string',
57743
+ params: { 'type': 'array', 'itemType': 'string' },
57744
+ requestId: 'string',
57745
+ };
57746
+ }
57747
+
57748
+ validate() {
57749
+ if(Array.isArray(this.params)) {
57750
+ $dara.Model.validateArray(this.params);
57751
+ }
57752
+ super.validate();
57753
+ }
57754
+
57755
+ constructor(map?: { [key: string]: any }) {
57756
+ super(map);
57757
+ }
57758
+ }
57759
+
57760
+ export class ProcessCustomIMCallbackResponse extends $dara.Model {
57761
+ headers?: { [key: string]: string };
57762
+ statusCode?: number;
57763
+ body?: ProcessCustomIMCallbackResponseBody;
57764
+ static names(): { [key: string]: string } {
57765
+ return {
57766
+ headers: 'headers',
57767
+ statusCode: 'statusCode',
57768
+ body: 'body',
57769
+ };
57770
+ }
57771
+
57772
+ static types(): { [key: string]: any } {
57773
+ return {
57774
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
57775
+ statusCode: 'number',
57776
+ body: ProcessCustomIMCallbackResponseBody,
57777
+ };
57778
+ }
57779
+
57780
+ validate() {
57781
+ if(this.headers) {
57782
+ $dara.Model.validateMap(this.headers);
57783
+ }
57784
+ if(this.body && typeof (this.body as any).validate === 'function') {
57785
+ (this.body as any).validate();
57786
+ }
57787
+ super.validate();
57788
+ }
57789
+
57790
+ constructor(map?: { [key: string]: any }) {
57791
+ super(map);
57792
+ }
57793
+ }
57794
+
57167
57795
  export class PublishContactFlowRequest extends $dara.Model {
57168
57796
  /**
57169
57797
  * @remarks
@@ -66593,6 +67221,57 @@ export default class Client extends OpenApi {
66593
67221
  return await this.createCampaignWithOptions(request, runtime);
66594
67222
  }
66595
67223
 
67224
+ /**
67225
+ * @param request - CreateChatMediaUrlRequest
67226
+ * @param runtime - runtime options for this request RuntimeOptions
67227
+ * @returns CreateChatMediaUrlResponse
67228
+ */
67229
+ async createChatMediaUrlWithOptions(request: CreateChatMediaUrlRequest, runtime: $dara.RuntimeOptions): Promise<CreateChatMediaUrlResponse> {
67230
+ request.validate();
67231
+ let body : {[key: string ]: any} = { };
67232
+ if (!$dara.isNull(request.instanceId)) {
67233
+ body["InstanceId"] = request.instanceId;
67234
+ }
67235
+
67236
+ if (!$dara.isNull(request.mimeType)) {
67237
+ body["MimeType"] = request.mimeType;
67238
+ }
67239
+
67240
+ if (!$dara.isNull(request.requestId)) {
67241
+ body["RequestId"] = request.requestId;
67242
+ }
67243
+
67244
+ let req = new $OpenApiUtil.OpenApiRequest({
67245
+ body: OpenApiUtil.parseToMap(body),
67246
+ });
67247
+ let params = new $OpenApiUtil.Params({
67248
+ action: "CreateChatMediaUrl",
67249
+ version: "2020-07-01",
67250
+ protocol: "HTTPS",
67251
+ pathname: "/",
67252
+ method: "POST",
67253
+ authType: "AK",
67254
+ style: "RPC",
67255
+ reqBodyType: "formData",
67256
+ bodyType: "json",
67257
+ });
67258
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
67259
+ return $dara.cast<CreateChatMediaUrlResponse>(await this.callApi(params, req, runtime), new CreateChatMediaUrlResponse({}));
67260
+ } else {
67261
+ return $dara.cast<CreateChatMediaUrlResponse>(await this.execute(params, req, runtime), new CreateChatMediaUrlResponse({}));
67262
+ }
67263
+
67264
+ }
67265
+
67266
+ /**
67267
+ * @param request - CreateChatMediaUrlRequest
67268
+ * @returns CreateChatMediaUrlResponse
67269
+ */
67270
+ async createChatMediaUrl(request: CreateChatMediaUrlRequest): Promise<CreateChatMediaUrlResponse> {
67271
+ let runtime = new $dara.RuntimeOptions({ });
67272
+ return await this.createChatMediaUrlWithOptions(request, runtime);
67273
+ }
67274
+
66596
67275
  /**
66597
67276
  * @param request - CreateContactFlowRequest
66598
67277
  * @param runtime - runtime options for this request RuntimeOptions
@@ -74679,6 +75358,85 @@ export default class Client extends OpenApi {
74679
75358
  return await this.listUsersWithOptions(request, runtime);
74680
75359
  }
74681
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
+
74682
75440
  /**
74683
75441
  * @param request - ListVoicemailsRequest
74684
75442
  * @param runtime - runtime options for this request RuntimeOptions
@@ -75662,6 +76420,77 @@ export default class Client extends OpenApi {
75662
76420
  return await this.processAliMeCallbackOfStagingWithOptions(request, runtime);
75663
76421
  }
75664
76422
 
76423
+ /**
76424
+ * @param request - ProcessCustomIMCallbackRequest
76425
+ * @param runtime - runtime options for this request RuntimeOptions
76426
+ * @returns ProcessCustomIMCallbackResponse
76427
+ */
76428
+ async processCustomIMCallbackWithOptions(request: ProcessCustomIMCallbackRequest, runtime: $dara.RuntimeOptions): Promise<ProcessCustomIMCallbackResponse> {
76429
+ request.validate();
76430
+ let body : {[key: string ]: any} = { };
76431
+ if (!$dara.isNull(request.accessChannelId)) {
76432
+ body["AccessChannelId"] = request.accessChannelId;
76433
+ }
76434
+
76435
+ if (!$dara.isNull(request.conversationId)) {
76436
+ body["ConversationId"] = request.conversationId;
76437
+ }
76438
+
76439
+ if (!$dara.isNull(request.instanceId)) {
76440
+ body["InstanceId"] = request.instanceId;
76441
+ }
76442
+
76443
+ if (!$dara.isNull(request.messageContent)) {
76444
+ body["MessageContent"] = request.messageContent;
76445
+ }
76446
+
76447
+ if (!$dara.isNull(request.requestId)) {
76448
+ body["RequestId"] = request.requestId;
76449
+ }
76450
+
76451
+ if (!$dara.isNull(request.senderAvatarMediaId)) {
76452
+ body["SenderAvatarMediaId"] = request.senderAvatarMediaId;
76453
+ }
76454
+
76455
+ if (!$dara.isNull(request.senderId)) {
76456
+ body["SenderId"] = request.senderId;
76457
+ }
76458
+
76459
+ if (!$dara.isNull(request.senderName)) {
76460
+ body["SenderName"] = request.senderName;
76461
+ }
76462
+
76463
+ let req = new $OpenApiUtil.OpenApiRequest({
76464
+ body: OpenApiUtil.parseToMap(body),
76465
+ });
76466
+ let params = new $OpenApiUtil.Params({
76467
+ action: "ProcessCustomIMCallback",
76468
+ version: "2020-07-01",
76469
+ protocol: "HTTPS",
76470
+ pathname: "/",
76471
+ method: "POST",
76472
+ authType: "AK",
76473
+ style: "RPC",
76474
+ reqBodyType: "formData",
76475
+ bodyType: "json",
76476
+ });
76477
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
76478
+ return $dara.cast<ProcessCustomIMCallbackResponse>(await this.callApi(params, req, runtime), new ProcessCustomIMCallbackResponse({}));
76479
+ } else {
76480
+ return $dara.cast<ProcessCustomIMCallbackResponse>(await this.execute(params, req, runtime), new ProcessCustomIMCallbackResponse({}));
76481
+ }
76482
+
76483
+ }
76484
+
76485
+ /**
76486
+ * @param request - ProcessCustomIMCallbackRequest
76487
+ * @returns ProcessCustomIMCallbackResponse
76488
+ */
76489
+ async processCustomIMCallback(request: ProcessCustomIMCallbackRequest): Promise<ProcessCustomIMCallbackResponse> {
76490
+ let runtime = new $dara.RuntimeOptions({ });
76491
+ return await this.processCustomIMCallbackWithOptions(request, runtime);
76492
+ }
76493
+
75665
76494
  /**
75666
76495
  * @param request - PublishContactFlowRequest
75667
76496
  * @param runtime - runtime options for this request RuntimeOptions