@alicloud/cams20200606 1.0.5 → 1.0.6

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.js CHANGED
@@ -28,23 +28,37 @@ class CheckChatappContactsRequest extends $tea.Model {
28
28
  channelType: 'ChannelType',
29
29
  contacts: 'Contacts',
30
30
  from: 'From',
31
- ownerId: 'OwnerId',
32
- resourceOwnerAccount: 'ResourceOwnerAccount',
33
- resourceOwnerId: 'ResourceOwnerId',
34
31
  };
35
32
  }
36
33
  static types() {
37
34
  return {
38
35
  channelType: 'string',
39
- contacts: 'string',
36
+ contacts: { 'type': 'array', 'itemType': 'string' },
40
37
  from: 'string',
41
- ownerId: 'number',
42
- resourceOwnerAccount: 'string',
43
- resourceOwnerId: 'number',
44
38
  };
45
39
  }
46
40
  }
47
41
  exports.CheckChatappContactsRequest = CheckChatappContactsRequest;
42
+ class CheckChatappContactsShrinkRequest extends $tea.Model {
43
+ constructor(map) {
44
+ super(map);
45
+ }
46
+ static names() {
47
+ return {
48
+ channelType: 'ChannelType',
49
+ contactsShrink: 'Contacts',
50
+ from: 'From',
51
+ };
52
+ }
53
+ static types() {
54
+ return {
55
+ channelType: 'string',
56
+ contactsShrink: 'string',
57
+ from: 'string',
58
+ };
59
+ }
60
+ }
61
+ exports.CheckChatappContactsShrinkRequest = CheckChatappContactsShrinkRequest;
48
62
  class CheckChatappContactsResponseBody extends $tea.Model {
49
63
  constructor(map) {
50
64
  super(map);
@@ -162,27 +176,47 @@ class CreateChatappTemplateRequest extends $tea.Model {
162
176
  example: 'Example',
163
177
  language: 'Language',
164
178
  name: 'Name',
165
- ownerId: 'OwnerId',
166
- resourceOwnerAccount: 'ResourceOwnerAccount',
167
- resourceOwnerId: 'ResourceOwnerId',
168
179
  templateType: 'TemplateType',
169
180
  };
170
181
  }
171
182
  static types() {
172
183
  return {
173
184
  category: 'string',
174
- components: 'string',
175
- example: 'string',
185
+ components: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponents },
186
+ example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
176
187
  language: 'string',
177
188
  name: 'string',
178
- ownerId: 'number',
179
- resourceOwnerAccount: 'string',
180
- resourceOwnerId: 'number',
181
189
  templateType: 'string',
182
190
  };
183
191
  }
184
192
  }
185
193
  exports.CreateChatappTemplateRequest = CreateChatappTemplateRequest;
194
+ class CreateChatappTemplateShrinkRequest extends $tea.Model {
195
+ constructor(map) {
196
+ super(map);
197
+ }
198
+ static names() {
199
+ return {
200
+ category: 'Category',
201
+ componentsShrink: 'Components',
202
+ exampleShrink: 'Example',
203
+ language: 'Language',
204
+ name: 'Name',
205
+ templateType: 'TemplateType',
206
+ };
207
+ }
208
+ static types() {
209
+ return {
210
+ category: 'string',
211
+ componentsShrink: 'string',
212
+ exampleShrink: 'string',
213
+ language: 'string',
214
+ name: 'string',
215
+ templateType: 'string',
216
+ };
217
+ }
218
+ }
219
+ exports.CreateChatappTemplateShrinkRequest = CreateChatappTemplateShrinkRequest;
186
220
  class CreateChatappTemplateResponseBody extends $tea.Model {
187
221
  constructor(map) {
188
222
  super(map);
@@ -198,7 +232,7 @@ class CreateChatappTemplateResponseBody extends $tea.Model {
198
232
  static types() {
199
233
  return {
200
234
  code: 'string',
201
- data: 'string',
235
+ data: CreateChatappTemplateResponseBodyData,
202
236
  message: 'string',
203
237
  requestId: 'string',
204
238
  };
@@ -229,17 +263,11 @@ class DeleteChatappTemplateRequest extends $tea.Model {
229
263
  }
230
264
  static names() {
231
265
  return {
232
- ownerId: 'OwnerId',
233
- resourceOwnerAccount: 'ResourceOwnerAccount',
234
- resourceOwnerId: 'ResourceOwnerId',
235
266
  templateCode: 'TemplateCode',
236
267
  };
237
268
  }
238
269
  static types() {
239
270
  return {
240
- ownerId: 'number',
241
- resourceOwnerAccount: 'string',
242
- resourceOwnerId: 'number',
243
271
  templateCode: 'string',
244
272
  };
245
273
  }
@@ -291,8 +319,6 @@ class GetChatappTemplateDetailRequest extends $tea.Model {
291
319
  return {
292
320
  language: 'Language',
293
321
  ownerId: 'OwnerId',
294
- resourceOwnerAccount: 'ResourceOwnerAccount',
295
- resourceOwnerId: 'ResourceOwnerId',
296
322
  templateCode: 'TemplateCode',
297
323
  };
298
324
  }
@@ -300,8 +326,6 @@ class GetChatappTemplateDetailRequest extends $tea.Model {
300
326
  return {
301
327
  language: 'string',
302
328
  ownerId: 'number',
303
- resourceOwnerAccount: 'string',
304
- resourceOwnerId: 'number',
305
329
  templateCode: 'string',
306
330
  };
307
331
  }
@@ -322,7 +346,7 @@ class GetChatappTemplateDetailResponseBody extends $tea.Model {
322
346
  static types() {
323
347
  return {
324
348
  code: 'string',
325
- data: 'string',
349
+ data: GetChatappTemplateDetailResponseBodyData,
326
350
  message: 'string',
327
351
  requestId: 'string',
328
352
  };
@@ -356,10 +380,7 @@ class ListChatappTemplateRequest extends $tea.Model {
356
380
  auditStatus: 'AuditStatus',
357
381
  language: 'Language',
358
382
  name: 'Name',
359
- ownerId: 'OwnerId',
360
383
  page: 'Page',
361
- resourceOwnerAccount: 'ResourceOwnerAccount',
362
- resourceOwnerId: 'ResourceOwnerId',
363
384
  };
364
385
  }
365
386
  static types() {
@@ -367,14 +388,33 @@ class ListChatappTemplateRequest extends $tea.Model {
367
388
  auditStatus: 'string',
368
389
  language: 'string',
369
390
  name: 'string',
370
- ownerId: 'number',
371
- page: 'string',
372
- resourceOwnerAccount: 'string',
373
- resourceOwnerId: 'number',
391
+ page: ListChatappTemplateRequestPage,
374
392
  };
375
393
  }
376
394
  }
377
395
  exports.ListChatappTemplateRequest = ListChatappTemplateRequest;
396
+ class ListChatappTemplateShrinkRequest extends $tea.Model {
397
+ constructor(map) {
398
+ super(map);
399
+ }
400
+ static names() {
401
+ return {
402
+ auditStatus: 'AuditStatus',
403
+ language: 'Language',
404
+ name: 'Name',
405
+ pageShrink: 'Page',
406
+ };
407
+ }
408
+ static types() {
409
+ return {
410
+ auditStatus: 'string',
411
+ language: 'string',
412
+ name: 'string',
413
+ pageShrink: 'string',
414
+ };
415
+ }
416
+ }
417
+ exports.ListChatappTemplateShrinkRequest = ListChatappTemplateShrinkRequest;
378
418
  class ListChatappTemplateResponseBody extends $tea.Model {
379
419
  constructor(map) {
380
420
  super(map);
@@ -426,10 +466,7 @@ class SendChatappMessageRequest extends $tea.Model {
426
466
  from: 'From',
427
467
  language: 'Language',
428
468
  messageType: 'MessageType',
429
- ownerId: 'OwnerId',
430
469
  payload: 'Payload',
431
- resourceOwnerAccount: 'ResourceOwnerAccount',
432
- resourceOwnerId: 'ResourceOwnerId',
433
470
  templateCode: 'TemplateCode',
434
471
  templateParams: 'TemplateParams',
435
472
  to: 'To',
@@ -443,18 +480,49 @@ class SendChatappMessageRequest extends $tea.Model {
443
480
  from: 'string',
444
481
  language: 'string',
445
482
  messageType: 'string',
446
- ownerId: 'number',
447
- payload: 'string',
448
- resourceOwnerAccount: 'string',
449
- resourceOwnerId: 'number',
483
+ payload: { 'type': 'array', 'itemType': 'string' },
450
484
  templateCode: 'string',
451
- templateParams: 'string',
485
+ templateParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
452
486
  to: 'string',
453
487
  type: 'string',
454
488
  };
455
489
  }
456
490
  }
457
491
  exports.SendChatappMessageRequest = SendChatappMessageRequest;
492
+ class SendChatappMessageShrinkRequest extends $tea.Model {
493
+ constructor(map) {
494
+ super(map);
495
+ }
496
+ static names() {
497
+ return {
498
+ channelType: 'ChannelType',
499
+ content: 'Content',
500
+ from: 'From',
501
+ language: 'Language',
502
+ messageType: 'MessageType',
503
+ payloadShrink: 'Payload',
504
+ templateCode: 'TemplateCode',
505
+ templateParamsShrink: 'TemplateParams',
506
+ to: 'To',
507
+ type: 'Type',
508
+ };
509
+ }
510
+ static types() {
511
+ return {
512
+ channelType: 'string',
513
+ content: 'string',
514
+ from: 'string',
515
+ language: 'string',
516
+ messageType: 'string',
517
+ payloadShrink: 'string',
518
+ templateCode: 'string',
519
+ templateParamsShrink: 'string',
520
+ to: 'string',
521
+ type: 'string',
522
+ };
523
+ }
524
+ }
525
+ exports.SendChatappMessageShrinkRequest = SendChatappMessageShrinkRequest;
458
526
  class SendChatappMessageResponseBody extends $tea.Model {
459
527
  constructor(map) {
460
528
  super(map);
@@ -462,16 +530,16 @@ class SendChatappMessageResponseBody extends $tea.Model {
462
530
  static names() {
463
531
  return {
464
532
  code: 'Code',
465
- data: 'Data',
466
533
  message: 'Message',
534
+ messageId: 'MessageId',
467
535
  requestId: 'RequestId',
468
536
  };
469
537
  }
470
538
  static types() {
471
539
  return {
472
540
  code: 'string',
473
- data: 'string',
474
541
  message: 'string',
542
+ messageId: 'string',
475
543
  requestId: 'string',
476
544
  };
477
545
  }
@@ -617,6 +685,164 @@ class CheckContactsResponseBodyContacts extends $tea.Model {
617
685
  }
618
686
  }
619
687
  exports.CheckContactsResponseBodyContacts = CheckContactsResponseBodyContacts;
688
+ class CreateChatappTemplateRequestComponentsButtons extends $tea.Model {
689
+ constructor(map) {
690
+ super(map);
691
+ }
692
+ static names() {
693
+ return {
694
+ phoneNumber: 'PhoneNumber',
695
+ text: 'Text',
696
+ type: 'Type',
697
+ url: 'Url',
698
+ urlType: 'UrlType',
699
+ };
700
+ }
701
+ static types() {
702
+ return {
703
+ phoneNumber: 'string',
704
+ text: 'string',
705
+ type: 'string',
706
+ url: 'string',
707
+ urlType: 'string',
708
+ };
709
+ }
710
+ }
711
+ exports.CreateChatappTemplateRequestComponentsButtons = CreateChatappTemplateRequestComponentsButtons;
712
+ class CreateChatappTemplateRequestComponents extends $tea.Model {
713
+ constructor(map) {
714
+ super(map);
715
+ }
716
+ static names() {
717
+ return {
718
+ buttons: 'Buttons',
719
+ format: 'Format',
720
+ text: 'Text',
721
+ type: 'Type',
722
+ url: 'Url',
723
+ };
724
+ }
725
+ static types() {
726
+ return {
727
+ buttons: { 'type': 'array', 'itemType': CreateChatappTemplateRequestComponentsButtons },
728
+ format: 'string',
729
+ text: 'string',
730
+ type: 'string',
731
+ url: 'string',
732
+ };
733
+ }
734
+ }
735
+ exports.CreateChatappTemplateRequestComponents = CreateChatappTemplateRequestComponents;
736
+ class CreateChatappTemplateResponseBodyData extends $tea.Model {
737
+ constructor(map) {
738
+ super(map);
739
+ }
740
+ static names() {
741
+ return {
742
+ templateCode: 'TemplateCode',
743
+ templateName: 'TemplateName',
744
+ };
745
+ }
746
+ static types() {
747
+ return {
748
+ templateCode: 'string',
749
+ templateName: 'string',
750
+ };
751
+ }
752
+ }
753
+ exports.CreateChatappTemplateResponseBodyData = CreateChatappTemplateResponseBodyData;
754
+ class GetChatappTemplateDetailResponseBodyDataComponentsButtons extends $tea.Model {
755
+ constructor(map) {
756
+ super(map);
757
+ }
758
+ static names() {
759
+ return {
760
+ phoneNumber: 'PhoneNumber',
761
+ text: 'Text',
762
+ type: 'Type',
763
+ url: 'Url',
764
+ urlType: 'UrlType',
765
+ };
766
+ }
767
+ static types() {
768
+ return {
769
+ phoneNumber: 'string',
770
+ text: 'string',
771
+ type: 'string',
772
+ url: 'string',
773
+ urlType: 'string',
774
+ };
775
+ }
776
+ }
777
+ exports.GetChatappTemplateDetailResponseBodyDataComponentsButtons = GetChatappTemplateDetailResponseBodyDataComponentsButtons;
778
+ class GetChatappTemplateDetailResponseBodyDataComponents extends $tea.Model {
779
+ constructor(map) {
780
+ super(map);
781
+ }
782
+ static names() {
783
+ return {
784
+ buttons: 'Buttons',
785
+ text: 'Text',
786
+ type: 'Type',
787
+ url: 'Url',
788
+ };
789
+ }
790
+ static types() {
791
+ return {
792
+ buttons: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponentsButtons },
793
+ text: 'string',
794
+ type: 'string',
795
+ url: 'string',
796
+ };
797
+ }
798
+ }
799
+ exports.GetChatappTemplateDetailResponseBodyDataComponents = GetChatappTemplateDetailResponseBodyDataComponents;
800
+ class GetChatappTemplateDetailResponseBodyData extends $tea.Model {
801
+ constructor(map) {
802
+ super(map);
803
+ }
804
+ static names() {
805
+ return {
806
+ auditStatus: 'AuditStatus',
807
+ category: 'Category',
808
+ components: 'Components',
809
+ example: 'Example',
810
+ language: 'Language',
811
+ name: 'Name',
812
+ templateCode: 'TemplateCode',
813
+ };
814
+ }
815
+ static types() {
816
+ return {
817
+ auditStatus: 'string',
818
+ category: 'string',
819
+ components: { 'type': 'array', 'itemType': GetChatappTemplateDetailResponseBodyDataComponents },
820
+ example: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
821
+ language: 'string',
822
+ name: 'string',
823
+ templateCode: 'string',
824
+ };
825
+ }
826
+ }
827
+ exports.GetChatappTemplateDetailResponseBodyData = GetChatappTemplateDetailResponseBodyData;
828
+ class ListChatappTemplateRequestPage extends $tea.Model {
829
+ constructor(map) {
830
+ super(map);
831
+ }
832
+ static names() {
833
+ return {
834
+ index: 'Index',
835
+ size: 'Size',
836
+ };
837
+ }
838
+ static types() {
839
+ return {
840
+ index: 'number',
841
+ size: 'number',
842
+ };
843
+ }
844
+ }
845
+ exports.ListChatappTemplateRequestPage = ListChatappTemplateRequestPage;
620
846
  class ListChatappTemplateResponseBodyListTemplate extends $tea.Model {
621
847
  constructor(map) {
622
848
  super(map);
@@ -677,29 +903,25 @@ class Client extends openapi_client_1.default {
677
903
  }
678
904
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
679
905
  }
680
- async checkChatappContactsWithOptions(request, runtime) {
681
- tea_util_1.default.validateModel(request);
682
- let query = {};
906
+ async checkChatappContactsWithOptions(tmpReq, runtime) {
907
+ tea_util_1.default.validateModel(tmpReq);
908
+ let request = new CheckChatappContactsShrinkRequest({});
909
+ openapi_util_1.default.convert(tmpReq, request);
910
+ if (!tea_util_1.default.isUnset(tmpReq.contacts)) {
911
+ request.contactsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.contacts, "Contacts", "json");
912
+ }
913
+ let body = {};
683
914
  if (!tea_util_1.default.isUnset(request.channelType)) {
684
- query["ChannelType"] = request.channelType;
915
+ body["ChannelType"] = request.channelType;
685
916
  }
686
- if (!tea_util_1.default.isUnset(request.contacts)) {
687
- query["Contacts"] = request.contacts;
917
+ if (!tea_util_1.default.isUnset(request.contactsShrink)) {
918
+ body["Contacts"] = request.contactsShrink;
688
919
  }
689
920
  if (!tea_util_1.default.isUnset(request.from)) {
690
- query["From"] = request.from;
691
- }
692
- if (!tea_util_1.default.isUnset(request.ownerId)) {
693
- query["OwnerId"] = request.ownerId;
694
- }
695
- if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
696
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
697
- }
698
- if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
699
- query["ResourceOwnerId"] = request.resourceOwnerId;
921
+ body["From"] = request.from;
700
922
  }
701
923
  let req = new $OpenApi.OpenApiRequest({
702
- query: openapi_util_1.default.query(query),
924
+ body: openapi_util_1.default.parseToMap(body),
703
925
  });
704
926
  let params = new $OpenApi.Params({
705
927
  action: "CheckChatappContacts",
@@ -761,38 +983,37 @@ class Client extends openapi_client_1.default {
761
983
  let runtime = new $Util.RuntimeOptions({});
762
984
  return await this.checkContactsWithOptions(request, runtime);
763
985
  }
764
- async createChatappTemplateWithOptions(request, runtime) {
765
- tea_util_1.default.validateModel(request);
766
- let query = {};
986
+ async createChatappTemplateWithOptions(tmpReq, runtime) {
987
+ tea_util_1.default.validateModel(tmpReq);
988
+ let request = new CreateChatappTemplateShrinkRequest({});
989
+ openapi_util_1.default.convert(tmpReq, request);
990
+ if (!tea_util_1.default.isUnset(tmpReq.components)) {
991
+ request.componentsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.components, "Components", "json");
992
+ }
993
+ if (!tea_util_1.default.isUnset(tmpReq.example)) {
994
+ request.exampleShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
995
+ }
996
+ let body = {};
767
997
  if (!tea_util_1.default.isUnset(request.category)) {
768
- query["Category"] = request.category;
998
+ body["Category"] = request.category;
769
999
  }
770
- if (!tea_util_1.default.isUnset(request.components)) {
771
- query["Components"] = request.components;
1000
+ if (!tea_util_1.default.isUnset(request.componentsShrink)) {
1001
+ body["Components"] = request.componentsShrink;
772
1002
  }
773
- if (!tea_util_1.default.isUnset(request.example)) {
774
- query["Example"] = request.example;
1003
+ if (!tea_util_1.default.isUnset(request.exampleShrink)) {
1004
+ body["Example"] = request.exampleShrink;
775
1005
  }
776
1006
  if (!tea_util_1.default.isUnset(request.language)) {
777
- query["Language"] = request.language;
1007
+ body["Language"] = request.language;
778
1008
  }
779
1009
  if (!tea_util_1.default.isUnset(request.name)) {
780
- query["Name"] = request.name;
781
- }
782
- if (!tea_util_1.default.isUnset(request.ownerId)) {
783
- query["OwnerId"] = request.ownerId;
784
- }
785
- if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
786
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
787
- }
788
- if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
789
- query["ResourceOwnerId"] = request.resourceOwnerId;
1010
+ body["Name"] = request.name;
790
1011
  }
791
1012
  if (!tea_util_1.default.isUnset(request.templateType)) {
792
- query["TemplateType"] = request.templateType;
1013
+ body["TemplateType"] = request.templateType;
793
1014
  }
794
1015
  let req = new $OpenApi.OpenApiRequest({
795
- query: openapi_util_1.default.query(query),
1016
+ body: openapi_util_1.default.parseToMap(body),
796
1017
  });
797
1018
  let params = new $OpenApi.Params({
798
1019
  action: "CreateChatappTemplate",
@@ -814,15 +1035,6 @@ class Client extends openapi_client_1.default {
814
1035
  async deleteChatappTemplateWithOptions(request, runtime) {
815
1036
  tea_util_1.default.validateModel(request);
816
1037
  let query = {};
817
- if (!tea_util_1.default.isUnset(request.ownerId)) {
818
- query["OwnerId"] = request.ownerId;
819
- }
820
- if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
821
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
822
- }
823
- if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
824
- query["ResourceOwnerId"] = request.resourceOwnerId;
825
- }
826
1038
  if (!tea_util_1.default.isUnset(request.templateCode)) {
827
1039
  query["TemplateCode"] = request.templateCode;
828
1040
  }
@@ -855,12 +1067,6 @@ class Client extends openapi_client_1.default {
855
1067
  if (!tea_util_1.default.isUnset(request.ownerId)) {
856
1068
  query["OwnerId"] = request.ownerId;
857
1069
  }
858
- if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
859
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
860
- }
861
- if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
862
- query["ResourceOwnerId"] = request.resourceOwnerId;
863
- }
864
1070
  if (!tea_util_1.default.isUnset(request.templateCode)) {
865
1071
  query["TemplateCode"] = request.templateCode;
866
1072
  }
@@ -884,8 +1090,13 @@ class Client extends openapi_client_1.default {
884
1090
  let runtime = new $Util.RuntimeOptions({});
885
1091
  return await this.getChatappTemplateDetailWithOptions(request, runtime);
886
1092
  }
887
- async listChatappTemplateWithOptions(request, runtime) {
888
- tea_util_1.default.validateModel(request);
1093
+ async listChatappTemplateWithOptions(tmpReq, runtime) {
1094
+ tea_util_1.default.validateModel(tmpReq);
1095
+ let request = new ListChatappTemplateShrinkRequest({});
1096
+ openapi_util_1.default.convert(tmpReq, request);
1097
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.page))) {
1098
+ request.pageShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.page), "Page", "json");
1099
+ }
889
1100
  let query = {};
890
1101
  if (!tea_util_1.default.isUnset(request.auditStatus)) {
891
1102
  query["AuditStatus"] = request.auditStatus;
@@ -896,17 +1107,8 @@ class Client extends openapi_client_1.default {
896
1107
  if (!tea_util_1.default.isUnset(request.name)) {
897
1108
  query["Name"] = request.name;
898
1109
  }
899
- if (!tea_util_1.default.isUnset(request.ownerId)) {
900
- query["OwnerId"] = request.ownerId;
901
- }
902
- if (!tea_util_1.default.isUnset(request.page)) {
903
- query["Page"] = request.page;
904
- }
905
- if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
906
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
907
- }
908
- if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
909
- query["ResourceOwnerId"] = request.resourceOwnerId;
1110
+ if (!tea_util_1.default.isUnset(request.pageShrink)) {
1111
+ query["Page"] = request.pageShrink;
910
1112
  }
911
1113
  let req = new $OpenApi.OpenApiRequest({
912
1114
  query: openapi_util_1.default.query(query),
@@ -928,50 +1130,51 @@ class Client extends openapi_client_1.default {
928
1130
  let runtime = new $Util.RuntimeOptions({});
929
1131
  return await this.listChatappTemplateWithOptions(request, runtime);
930
1132
  }
931
- async sendChatappMessageWithOptions(request, runtime) {
932
- tea_util_1.default.validateModel(request);
933
- let query = {};
934
- if (!tea_util_1.default.isUnset(request.channelType)) {
935
- query["ChannelType"] = request.channelType;
1133
+ async sendChatappMessageWithOptions(tmpReq, runtime) {
1134
+ tea_util_1.default.validateModel(tmpReq);
1135
+ let request = new SendChatappMessageShrinkRequest({});
1136
+ openapi_util_1.default.convert(tmpReq, request);
1137
+ if (!tea_util_1.default.isUnset(tmpReq.payload)) {
1138
+ request.payloadShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.payload, "Payload", "json");
936
1139
  }
1140
+ if (!tea_util_1.default.isUnset(tmpReq.templateParams)) {
1141
+ request.templateParamsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.templateParams, "TemplateParams", "json");
1142
+ }
1143
+ let query = {};
937
1144
  if (!tea_util_1.default.isUnset(request.content)) {
938
1145
  query["Content"] = request.content;
939
1146
  }
1147
+ if (!tea_util_1.default.isUnset(request.payloadShrink)) {
1148
+ query["Payload"] = request.payloadShrink;
1149
+ }
1150
+ let body = {};
1151
+ if (!tea_util_1.default.isUnset(request.channelType)) {
1152
+ body["ChannelType"] = request.channelType;
1153
+ }
940
1154
  if (!tea_util_1.default.isUnset(request.from)) {
941
- query["From"] = request.from;
1155
+ body["From"] = request.from;
942
1156
  }
943
1157
  if (!tea_util_1.default.isUnset(request.language)) {
944
- query["Language"] = request.language;
1158
+ body["Language"] = request.language;
945
1159
  }
946
1160
  if (!tea_util_1.default.isUnset(request.messageType)) {
947
- query["MessageType"] = request.messageType;
948
- }
949
- if (!tea_util_1.default.isUnset(request.ownerId)) {
950
- query["OwnerId"] = request.ownerId;
951
- }
952
- if (!tea_util_1.default.isUnset(request.payload)) {
953
- query["Payload"] = request.payload;
954
- }
955
- if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
956
- query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
957
- }
958
- if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
959
- query["ResourceOwnerId"] = request.resourceOwnerId;
1161
+ body["MessageType"] = request.messageType;
960
1162
  }
961
1163
  if (!tea_util_1.default.isUnset(request.templateCode)) {
962
- query["TemplateCode"] = request.templateCode;
1164
+ body["TemplateCode"] = request.templateCode;
963
1165
  }
964
- if (!tea_util_1.default.isUnset(request.templateParams)) {
965
- query["TemplateParams"] = request.templateParams;
1166
+ if (!tea_util_1.default.isUnset(request.templateParamsShrink)) {
1167
+ body["TemplateParams"] = request.templateParamsShrink;
966
1168
  }
967
1169
  if (!tea_util_1.default.isUnset(request.to)) {
968
- query["To"] = request.to;
1170
+ body["To"] = request.to;
969
1171
  }
970
1172
  if (!tea_util_1.default.isUnset(request.type)) {
971
- query["Type"] = request.type;
1173
+ body["Type"] = request.type;
972
1174
  }
973
1175
  let req = new $OpenApi.OpenApiRequest({
974
1176
  query: openapi_util_1.default.query(query),
1177
+ body: openapi_util_1.default.parseToMap(body),
975
1178
  });
976
1179
  let params = new $OpenApi.Params({
977
1180
  action: "SendChatappMessage",