@alicloud/cams20200606 1.6.0 → 1.6.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/dist/client.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -3559,6 +3569,9 @@ class QueryChatappPhoneNumbersRequest extends $tea.Model {
3559
3569
  return {
3560
3570
  custSpaceId: 'CustSpaceId',
3561
3571
  isvCode: 'IsvCode',
3572
+ ownerId: 'OwnerId',
3573
+ resourceOwnerAccount: 'ResourceOwnerAccount',
3574
+ resourceOwnerId: 'ResourceOwnerId',
3562
3575
  status: 'Status',
3563
3576
  };
3564
3577
  }
@@ -3566,6 +3579,9 @@ class QueryChatappPhoneNumbersRequest extends $tea.Model {
3566
3579
  return {
3567
3580
  custSpaceId: 'string',
3568
3581
  isvCode: 'string',
3582
+ ownerId: 'number',
3583
+ resourceOwnerAccount: 'string',
3584
+ resourceOwnerId: 'number',
3569
3585
  status: 'string',
3570
3586
  };
3571
3587
  }
@@ -3582,6 +3598,7 @@ class QueryChatappPhoneNumbersResponseBody extends $tea.Model {
3582
3598
  message: 'Message',
3583
3599
  phoneNumbers: 'PhoneNumbers',
3584
3600
  requestId: 'RequestId',
3601
+ success: 'Success',
3585
3602
  };
3586
3603
  }
3587
3604
  static types() {
@@ -3591,6 +3608,7 @@ class QueryChatappPhoneNumbersResponseBody extends $tea.Model {
3591
3608
  message: 'string',
3592
3609
  phoneNumbers: { 'type': 'array', 'itemType': QueryChatappPhoneNumbersResponseBodyPhoneNumbers },
3593
3610
  requestId: 'string',
3611
+ success: 'boolean',
3594
3612
  };
3595
3613
  }
3596
3614
  constructor(map) {
@@ -5026,6 +5044,7 @@ class ChatappSyncPhoneNumberResponseBodyPhoneNumbers extends $tea.Model {
5026
5044
  static names() {
5027
5045
  return {
5028
5046
  codeVerificationStatus: 'CodeVerificationStatus',
5047
+ isOfficial: 'IsOfficial',
5029
5048
  messagingLimitTier: 'MessagingLimitTier',
5030
5049
  nameStatus: 'NameStatus',
5031
5050
  newNameStatus: 'NewNameStatus',
@@ -5042,6 +5061,7 @@ class ChatappSyncPhoneNumberResponseBodyPhoneNumbers extends $tea.Model {
5042
5061
  static types() {
5043
5062
  return {
5044
5063
  codeVerificationStatus: 'string',
5064
+ isOfficial: 'string',
5045
5065
  messagingLimitTier: 'string',
5046
5066
  nameStatus: 'string',
5047
5067
  newNameStatus: 'string',
@@ -6378,6 +6398,7 @@ class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $tea.Model {
6378
6398
  static names() {
6379
6399
  return {
6380
6400
  codeVerificationStatus: 'CodeVerificationStatus',
6401
+ isOfficial: 'IsOfficial',
6381
6402
  messagingLimitTier: 'MessagingLimitTier',
6382
6403
  nameStatus: 'NameStatus',
6383
6404
  newNameStatus: 'NewNameStatus',
@@ -6394,6 +6415,7 @@ class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $tea.Model {
6394
6415
  static types() {
6395
6416
  return {
6396
6417
  codeVerificationStatus: 'string',
6418
+ isOfficial: 'string',
6397
6419
  messagingLimitTier: 'string',
6398
6420
  nameStatus: 'string',
6399
6421
  newNameStatus: 'string',
@@ -6750,7 +6772,12 @@ class Client extends openapi_client_1.default {
6750
6772
  reqBodyType: "formData",
6751
6773
  bodyType: "json",
6752
6774
  });
6753
- return $tea.cast(await this.callApi(params, req, runtime), new AddChatappPhoneNumberResponse({}));
6775
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6776
+ return $tea.cast(await this.callApi(params, req, runtime), new AddChatappPhoneNumberResponse({}));
6777
+ }
6778
+ else {
6779
+ return $tea.cast(await this.execute(params, req, runtime), new AddChatappPhoneNumberResponse({}));
6780
+ }
6754
6781
  }
6755
6782
  /**
6756
6783
  * Adds a phone number for a WhatsApp Business account (WABA).
@@ -6815,7 +6842,12 @@ class Client extends openapi_client_1.default {
6815
6842
  reqBodyType: "formData",
6816
6843
  bodyType: "json",
6817
6844
  });
6818
- return $tea.cast(await this.callApi(params, req, runtime), new BeeBotAssociateResponse({}));
6845
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6846
+ return $tea.cast(await this.callApi(params, req, runtime), new BeeBotAssociateResponse({}));
6847
+ }
6848
+ else {
6849
+ return $tea.cast(await this.execute(params, req, runtime), new BeeBotAssociateResponse({}));
6850
+ }
6819
6851
  }
6820
6852
  /**
6821
6853
  * Associates FAQs in the knowledge base.
@@ -6898,7 +6930,12 @@ class Client extends openapi_client_1.default {
6898
6930
  reqBodyType: "formData",
6899
6931
  bodyType: "json",
6900
6932
  });
6901
- return $tea.cast(await this.callApi(params, req, runtime), new BeeBotChatResponse({}));
6933
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6934
+ return $tea.cast(await this.callApi(params, req, runtime), new BeeBotChatResponse({}));
6935
+ }
6936
+ else {
6937
+ return $tea.cast(await this.execute(params, req, runtime), new BeeBotChatResponse({}));
6938
+ }
6902
6939
  }
6903
6940
  /**
6904
6941
  * Conducts sessions with the bot based on its unique identifier (ID).
@@ -6952,7 +6989,12 @@ class Client extends openapi_client_1.default {
6952
6989
  reqBodyType: "formData",
6953
6990
  bodyType: "json",
6954
6991
  });
6955
- return $tea.cast(await this.callApi(params, req, runtime), new ChatappBindWabaResponse({}));
6992
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
6993
+ return $tea.cast(await this.callApi(params, req, runtime), new ChatappBindWabaResponse({}));
6994
+ }
6995
+ else {
6996
+ return $tea.cast(await this.execute(params, req, runtime), new ChatappBindWabaResponse({}));
6997
+ }
6956
6998
  }
6957
6999
  /**
6958
7000
  * Binds the WhatsApp Business account with ChatApp.
@@ -6997,7 +7039,12 @@ class Client extends openapi_client_1.default {
6997
7039
  reqBodyType: "formData",
6998
7040
  bodyType: "json",
6999
7041
  });
7000
- return $tea.cast(await this.callApi(params, req, runtime), new ChatappEmbedSignUpResponse({}));
7042
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7043
+ return $tea.cast(await this.callApi(params, req, runtime), new ChatappEmbedSignUpResponse({}));
7044
+ }
7045
+ else {
7046
+ return $tea.cast(await this.execute(params, req, runtime), new ChatappEmbedSignUpResponse({}));
7047
+ }
7001
7048
  }
7002
7049
  /**
7003
7050
  * Queries WhatsApp Business account (WABA) information after embedded signup. You do not need to call this API operation if you use Version 2 of WhatsApp embedded signup.
@@ -7045,7 +7092,12 @@ class Client extends openapi_client_1.default {
7045
7092
  reqBodyType: "formData",
7046
7093
  bodyType: "json",
7047
7094
  });
7048
- return $tea.cast(await this.callApi(params, req, runtime), new ChatappMigrationRegisterResponse({}));
7095
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7096
+ return $tea.cast(await this.callApi(params, req, runtime), new ChatappMigrationRegisterResponse({}));
7097
+ }
7098
+ else {
7099
+ return $tea.cast(await this.execute(params, req, runtime), new ChatappMigrationRegisterResponse({}));
7100
+ }
7049
7101
  }
7050
7102
  /**
7051
7103
  * Registers a phone number for migration.
@@ -7096,7 +7148,12 @@ class Client extends openapi_client_1.default {
7096
7148
  reqBodyType: "formData",
7097
7149
  bodyType: "json",
7098
7150
  });
7099
- return $tea.cast(await this.callApi(params, req, runtime), new ChatappMigrationVerifiedResponse({}));
7151
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7152
+ return $tea.cast(await this.callApi(params, req, runtime), new ChatappMigrationVerifiedResponse({}));
7153
+ }
7154
+ else {
7155
+ return $tea.cast(await this.execute(params, req, runtime), new ChatappMigrationVerifiedResponse({}));
7156
+ }
7100
7157
  }
7101
7158
  /**
7102
7159
  * Verifies a specified phone number for migration.
@@ -7144,7 +7201,12 @@ class Client extends openapi_client_1.default {
7144
7201
  reqBodyType: "formData",
7145
7202
  bodyType: "json",
7146
7203
  });
7147
- return $tea.cast(await this.callApi(params, req, runtime), new ChatappPhoneNumberDeregisterResponse({}));
7204
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7205
+ return $tea.cast(await this.callApi(params, req, runtime), new ChatappPhoneNumberDeregisterResponse({}));
7206
+ }
7207
+ else {
7208
+ return $tea.cast(await this.execute(params, req, runtime), new ChatappPhoneNumberDeregisterResponse({}));
7209
+ }
7148
7210
  }
7149
7211
  /**
7150
7212
  * Deregisters a phone number from a WhatsApp Business account (WABA).
@@ -7201,7 +7263,12 @@ class Client extends openapi_client_1.default {
7201
7263
  reqBodyType: "formData",
7202
7264
  bodyType: "json",
7203
7265
  });
7204
- return $tea.cast(await this.callApi(params, req, runtime), new ChatappPhoneNumberRegisterResponse({}));
7266
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7267
+ return $tea.cast(await this.callApi(params, req, runtime), new ChatappPhoneNumberRegisterResponse({}));
7268
+ }
7269
+ else {
7270
+ return $tea.cast(await this.execute(params, req, runtime), new ChatappPhoneNumberRegisterResponse({}));
7271
+ }
7205
7272
  }
7206
7273
  /**
7207
7274
  * Registers a phone number.
@@ -7255,7 +7322,12 @@ class Client extends openapi_client_1.default {
7255
7322
  reqBodyType: "formData",
7256
7323
  bodyType: "json",
7257
7324
  });
7258
- return $tea.cast(await this.callApi(params, req, runtime), new ChatappSyncPhoneNumberResponse({}));
7325
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7326
+ return $tea.cast(await this.callApi(params, req, runtime), new ChatappSyncPhoneNumberResponse({}));
7327
+ }
7328
+ else {
7329
+ return $tea.cast(await this.execute(params, req, runtime), new ChatappSyncPhoneNumberResponse({}));
7330
+ }
7259
7331
  }
7260
7332
  /**
7261
7333
  * Synchronizes phone numbers.
@@ -7315,7 +7387,12 @@ class Client extends openapi_client_1.default {
7315
7387
  reqBodyType: "formData",
7316
7388
  bodyType: "json",
7317
7389
  });
7318
- return $tea.cast(await this.callApi(params, req, runtime), new ChatappVerifyAndRegisterResponse({}));
7390
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7391
+ return $tea.cast(await this.callApi(params, req, runtime), new ChatappVerifyAndRegisterResponse({}));
7392
+ }
7393
+ else {
7394
+ return $tea.cast(await this.execute(params, req, runtime), new ChatappVerifyAndRegisterResponse({}));
7395
+ }
7319
7396
  }
7320
7397
  /**
7321
7398
  * Associates a phone number with a WhatsApp Business account (WABA).
@@ -7366,7 +7443,12 @@ class Client extends openapi_client_1.default {
7366
7443
  reqBodyType: "formData",
7367
7444
  bodyType: "json",
7368
7445
  });
7369
- return $tea.cast(await this.callApi(params, req, runtime), new CreateChatappMigrationInitiateResponse({}));
7446
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7447
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateChatappMigrationInitiateResponse({}));
7448
+ }
7449
+ else {
7450
+ return $tea.cast(await this.execute(params, req, runtime), new CreateChatappMigrationInitiateResponse({}));
7451
+ }
7370
7452
  }
7371
7453
  /**
7372
7454
  * The ID of the number.
@@ -7452,7 +7534,12 @@ class Client extends openapi_client_1.default {
7452
7534
  reqBodyType: "formData",
7453
7535
  bodyType: "json",
7454
7536
  });
7455
- return $tea.cast(await this.callApi(params, req, runtime), new CreateChatappTemplateResponse({}));
7537
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7538
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateChatappTemplateResponse({}));
7539
+ }
7540
+ else {
7541
+ return $tea.cast(await this.execute(params, req, runtime), new CreateChatappTemplateResponse({}));
7542
+ }
7456
7543
  }
7457
7544
  /**
7458
7545
  * The HTTP status code.
@@ -7511,7 +7598,12 @@ class Client extends openapi_client_1.default {
7511
7598
  reqBodyType: "formData",
7512
7599
  bodyType: "json",
7513
7600
  });
7514
- return $tea.cast(await this.callApi(params, req, runtime), new CreateFlowResponse({}));
7601
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7602
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateFlowResponse({}));
7603
+ }
7604
+ else {
7605
+ return $tea.cast(await this.execute(params, req, runtime), new CreateFlowResponse({}));
7606
+ }
7515
7607
  }
7516
7608
  /**
7517
7609
  * Creates a Flow.
@@ -7562,7 +7654,12 @@ class Client extends openapi_client_1.default {
7562
7654
  reqBodyType: "formData",
7563
7655
  bodyType: "json",
7564
7656
  });
7565
- return $tea.cast(await this.callApi(params, req, runtime), new CreatePhoneMessageQrdlResponse({}));
7657
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7658
+ return $tea.cast(await this.callApi(params, req, runtime), new CreatePhoneMessageQrdlResponse({}));
7659
+ }
7660
+ else {
7661
+ return $tea.cast(await this.execute(params, req, runtime), new CreatePhoneMessageQrdlResponse({}));
7662
+ }
7566
7663
  }
7567
7664
  /**
7568
7665
  * Creates a quick-response (QR) code that contains a message.
@@ -7632,7 +7729,12 @@ class Client extends openapi_client_1.default {
7632
7729
  reqBodyType: "formData",
7633
7730
  bodyType: "json",
7634
7731
  });
7635
- return $tea.cast(await this.callApi(params, req, runtime), new DeleteChatappTemplateResponse({}));
7732
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7733
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteChatappTemplateResponse({}));
7734
+ }
7735
+ else {
7736
+ return $tea.cast(await this.execute(params, req, runtime), new DeleteChatappTemplateResponse({}));
7737
+ }
7636
7738
  }
7637
7739
  /**
7638
7740
  * Deletes a message template.
@@ -7681,7 +7783,12 @@ class Client extends openapi_client_1.default {
7681
7783
  reqBodyType: "formData",
7682
7784
  bodyType: "json",
7683
7785
  });
7684
- return $tea.cast(await this.callApi(params, req, runtime), new DeleteFlowResponse({}));
7786
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7787
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteFlowResponse({}));
7788
+ }
7789
+ else {
7790
+ return $tea.cast(await this.execute(params, req, runtime), new DeleteFlowResponse({}));
7791
+ }
7685
7792
  }
7686
7793
  /**
7687
7794
  * Deletes a Flow. Only Flows in the DRAFT state can be deleted.
@@ -7729,7 +7836,12 @@ class Client extends openapi_client_1.default {
7729
7836
  reqBodyType: "formData",
7730
7837
  bodyType: "json",
7731
7838
  });
7732
- return $tea.cast(await this.callApi(params, req, runtime), new DeletePhoneMessageQrdlResponse({}));
7839
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7840
+ return $tea.cast(await this.callApi(params, req, runtime), new DeletePhoneMessageQrdlResponse({}));
7841
+ }
7842
+ else {
7843
+ return $tea.cast(await this.execute(params, req, runtime), new DeletePhoneMessageQrdlResponse({}));
7844
+ }
7733
7845
  }
7734
7846
  /**
7735
7847
  * Deletes a quick-response (QR) code that contains a message.
@@ -7771,7 +7883,12 @@ class Client extends openapi_client_1.default {
7771
7883
  reqBodyType: "formData",
7772
7884
  bodyType: "json",
7773
7885
  });
7774
- return $tea.cast(await this.callApi(params, req, runtime), new DeprecateFlowResponse({}));
7886
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7887
+ return $tea.cast(await this.callApi(params, req, runtime), new DeprecateFlowResponse({}));
7888
+ }
7889
+ else {
7890
+ return $tea.cast(await this.execute(params, req, runtime), new DeprecateFlowResponse({}));
7891
+ }
7775
7892
  }
7776
7893
  /**
7777
7894
  * Deprecates a Flow.
@@ -7816,7 +7933,12 @@ class Client extends openapi_client_1.default {
7816
7933
  reqBodyType: "formData",
7817
7934
  bodyType: "json",
7818
7935
  });
7819
- return $tea.cast(await this.callApi(params, req, runtime), new EnableWhatsappROIMetricResponse({}));
7936
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
7937
+ return $tea.cast(await this.callApi(params, req, runtime), new EnableWhatsappROIMetricResponse({}));
7938
+ }
7939
+ else {
7940
+ return $tea.cast(await this.execute(params, req, runtime), new EnableWhatsappROIMetricResponse({}));
7941
+ }
7820
7942
  }
7821
7943
  /**
7822
7944
  * Enables the statistics on the metrics that are related to WhatsApp.
@@ -7876,7 +7998,12 @@ class Client extends openapi_client_1.default {
7876
7998
  reqBodyType: "formData",
7877
7999
  bodyType: "json",
7878
8000
  });
7879
- return $tea.cast(await this.callApi(params, req, runtime), new GetChatappPhoneNumberMetricResponse({}));
8001
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8002
+ return $tea.cast(await this.callApi(params, req, runtime), new GetChatappPhoneNumberMetricResponse({}));
8003
+ }
8004
+ else {
8005
+ return $tea.cast(await this.execute(params, req, runtime), new GetChatappPhoneNumberMetricResponse({}));
8006
+ }
7880
8007
  }
7881
8008
  /**
7882
8009
  * Queries the number of messages that are sent by using a phone number by a specific metric.
@@ -7940,7 +8067,12 @@ class Client extends openapi_client_1.default {
7940
8067
  reqBodyType: "formData",
7941
8068
  bodyType: "json",
7942
8069
  });
7943
- return $tea.cast(await this.callApi(params, req, runtime), new GetChatappTemplateDetailResponse({}));
8070
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8071
+ return $tea.cast(await this.callApi(params, req, runtime), new GetChatappTemplateDetailResponse({}));
8072
+ }
8073
+ else {
8074
+ return $tea.cast(await this.execute(params, req, runtime), new GetChatappTemplateDetailResponse({}));
8075
+ }
7944
8076
  }
7945
8077
  /**
7946
8078
  * Queries the information of a message template.
@@ -8007,7 +8139,12 @@ class Client extends openapi_client_1.default {
8007
8139
  reqBodyType: "formData",
8008
8140
  bodyType: "json",
8009
8141
  });
8010
- return $tea.cast(await this.callApi(params, req, runtime), new GetChatappTemplateMetricResponse({}));
8142
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8143
+ return $tea.cast(await this.callApi(params, req, runtime), new GetChatappTemplateMetricResponse({}));
8144
+ }
8145
+ else {
8146
+ return $tea.cast(await this.execute(params, req, runtime), new GetChatappTemplateMetricResponse({}));
8147
+ }
8011
8148
  }
8012
8149
  /**
8013
8150
  * Queries the metrics about a marketing template.
@@ -8052,7 +8189,12 @@ class Client extends openapi_client_1.default {
8052
8189
  reqBodyType: "formData",
8053
8190
  bodyType: "json",
8054
8191
  });
8055
- return $tea.cast(await this.callApi(params, req, runtime), new GetChatappUploadAuthorizationResponse({}));
8192
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8193
+ return $tea.cast(await this.callApi(params, req, runtime), new GetChatappUploadAuthorizationResponse({}));
8194
+ }
8195
+ else {
8196
+ return $tea.cast(await this.execute(params, req, runtime), new GetChatappUploadAuthorizationResponse({}));
8197
+ }
8056
8198
  }
8057
8199
  /**
8058
8200
  * Obtains the authentication information that is used to upload a file.
@@ -8115,7 +8257,12 @@ class Client extends openapi_client_1.default {
8115
8257
  reqBodyType: "formData",
8116
8258
  bodyType: "json",
8117
8259
  });
8118
- return $tea.cast(await this.callApi(params, req, runtime), new GetChatappVerifyCodeResponse({}));
8260
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8261
+ return $tea.cast(await this.callApi(params, req, runtime), new GetChatappVerifyCodeResponse({}));
8262
+ }
8263
+ else {
8264
+ return $tea.cast(await this.execute(params, req, runtime), new GetChatappVerifyCodeResponse({}));
8265
+ }
8119
8266
  }
8120
8267
  /**
8121
8268
  * Obtains a verification code.
@@ -8172,7 +8319,12 @@ class Client extends openapi_client_1.default {
8172
8319
  reqBodyType: "formData",
8173
8320
  bodyType: "json",
8174
8321
  });
8175
- return $tea.cast(await this.callApi(params, req, runtime), new GetCommerceSettingResponse({}));
8322
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8323
+ return $tea.cast(await this.callApi(params, req, runtime), new GetCommerceSettingResponse({}));
8324
+ }
8325
+ else {
8326
+ return $tea.cast(await this.execute(params, req, runtime), new GetCommerceSettingResponse({}));
8327
+ }
8176
8328
  }
8177
8329
  /**
8178
8330
  * Queries the business settings of a phone number.
@@ -8231,7 +8383,12 @@ class Client extends openapi_client_1.default {
8231
8383
  reqBodyType: "formData",
8232
8384
  bodyType: "json",
8233
8385
  });
8234
- return $tea.cast(await this.callApi(params, req, runtime), new GetConversationalAutomationResponse({}));
8386
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8387
+ return $tea.cast(await this.callApi(params, req, runtime), new GetConversationalAutomationResponse({}));
8388
+ }
8389
+ else {
8390
+ return $tea.cast(await this.execute(params, req, runtime), new GetConversationalAutomationResponse({}));
8391
+ }
8235
8392
  }
8236
8393
  /**
8237
8394
  * Configures welcoming messages, opening remarks, and commands.
@@ -8281,7 +8438,12 @@ class Client extends openapi_client_1.default {
8281
8438
  reqBodyType: "formData",
8282
8439
  bodyType: "json",
8283
8440
  });
8284
- return $tea.cast(await this.callApi(params, req, runtime), new GetFlowResponse({}));
8441
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8442
+ return $tea.cast(await this.callApi(params, req, runtime), new GetFlowResponse({}));
8443
+ }
8444
+ else {
8445
+ return $tea.cast(await this.execute(params, req, runtime), new GetFlowResponse({}));
8446
+ }
8285
8447
  }
8286
8448
  /**
8287
8449
  * Queries the information about a Flow.
@@ -8326,7 +8488,12 @@ class Client extends openapi_client_1.default {
8326
8488
  reqBodyType: "formData",
8327
8489
  bodyType: "json",
8328
8490
  });
8329
- return $tea.cast(await this.callApi(params, req, runtime), new GetFlowJSONAssestResponse({}));
8491
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8492
+ return $tea.cast(await this.callApi(params, req, runtime), new GetFlowJSONAssestResponse({}));
8493
+ }
8494
+ else {
8495
+ return $tea.cast(await this.execute(params, req, runtime), new GetFlowJSONAssestResponse({}));
8496
+ }
8330
8497
  }
8331
8498
  /**
8332
8499
  * Queries the JSON content of a Flow.
@@ -8371,7 +8538,12 @@ class Client extends openapi_client_1.default {
8371
8538
  reqBodyType: "formData",
8372
8539
  bodyType: "json",
8373
8540
  });
8374
- return $tea.cast(await this.callApi(params, req, runtime), new GetFlowPreviewUrlResponse({}));
8541
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8542
+ return $tea.cast(await this.callApi(params, req, runtime), new GetFlowPreviewUrlResponse({}));
8543
+ }
8544
+ else {
8545
+ return $tea.cast(await this.execute(params, req, runtime), new GetFlowPreviewUrlResponse({}));
8546
+ }
8375
8547
  }
8376
8548
  /**
8377
8549
  * Obtains the preview URL of a Flow.
@@ -8425,7 +8597,12 @@ class Client extends openapi_client_1.default {
8425
8597
  reqBodyType: "formData",
8426
8598
  bodyType: "json",
8427
8599
  });
8428
- return $tea.cast(await this.callApi(params, req, runtime), new GetMigrationVerifyCodeResponse({}));
8600
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8601
+ return $tea.cast(await this.callApi(params, req, runtime), new GetMigrationVerifyCodeResponse({}));
8602
+ }
8603
+ else {
8604
+ return $tea.cast(await this.execute(params, req, runtime), new GetMigrationVerifyCodeResponse({}));
8605
+ }
8429
8606
  }
8430
8607
  /**
8431
8608
  * Obtain the verification code for the migration number.
@@ -8478,7 +8655,12 @@ class Client extends openapi_client_1.default {
8478
8655
  reqBodyType: "formData",
8479
8656
  bodyType: "json",
8480
8657
  });
8481
- return $tea.cast(await this.callApi(params, req, runtime), new GetPermissionByCodeResponse({}));
8658
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8659
+ return $tea.cast(await this.callApi(params, req, runtime), new GetPermissionByCodeResponse({}));
8660
+ }
8661
+ else {
8662
+ return $tea.cast(await this.execute(params, req, runtime), new GetPermissionByCodeResponse({}));
8663
+ }
8482
8664
  }
8483
8665
  /**
8484
8666
  * Obtains permissions based on the authorization code obtained from embedded signup.
@@ -8520,7 +8702,12 @@ class Client extends openapi_client_1.default {
8520
8702
  reqBodyType: "formData",
8521
8703
  bodyType: "json",
8522
8704
  });
8523
- return $tea.cast(await this.callApi(params, req, runtime), new GetPhoneEncryptionPublicKeyResponse({}));
8705
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8706
+ return $tea.cast(await this.callApi(params, req, runtime), new GetPhoneEncryptionPublicKeyResponse({}));
8707
+ }
8708
+ else {
8709
+ return $tea.cast(await this.execute(params, req, runtime), new GetPhoneEncryptionPublicKeyResponse({}));
8710
+ }
8524
8711
  }
8525
8712
  /**
8526
8713
  * Queries the encryption public key of a phone number.
@@ -8565,7 +8752,12 @@ class Client extends openapi_client_1.default {
8565
8752
  reqBodyType: "formData",
8566
8753
  bodyType: "json",
8567
8754
  });
8568
- return $tea.cast(await this.callApi(params, req, runtime), new GetPhoneNumberVerificationStatusResponse({}));
8755
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8756
+ return $tea.cast(await this.callApi(params, req, runtime), new GetPhoneNumberVerificationStatusResponse({}));
8757
+ }
8758
+ else {
8759
+ return $tea.cast(await this.execute(params, req, runtime), new GetPhoneNumberVerificationStatusResponse({}));
8760
+ }
8569
8761
  }
8570
8762
  /**
8571
8763
  * Obtains the verification status of a phone number.
@@ -8613,7 +8805,12 @@ class Client extends openapi_client_1.default {
8613
8805
  reqBodyType: "formData",
8614
8806
  bodyType: "json",
8615
8807
  });
8616
- return $tea.cast(await this.callApi(params, req, runtime), new GetPreValidatePhoneIdResponse({}));
8808
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8809
+ return $tea.cast(await this.callApi(params, req, runtime), new GetPreValidatePhoneIdResponse({}));
8810
+ }
8811
+ else {
8812
+ return $tea.cast(await this.execute(params, req, runtime), new GetPreValidatePhoneIdResponse({}));
8813
+ }
8617
8814
  }
8618
8815
  /**
8619
8816
  * Obtains the ID of a pre-registered phone number used for embedded signup without the need to re-obtain a verification code.
@@ -8670,7 +8867,12 @@ class Client extends openapi_client_1.default {
8670
8867
  reqBodyType: "formData",
8671
8868
  bodyType: "json",
8672
8869
  });
8673
- return $tea.cast(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
8870
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8871
+ return $tea.cast(await this.callApi(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
8872
+ }
8873
+ else {
8874
+ return $tea.cast(await this.execute(params, req, runtime), new GetWhatsappConnectionCatalogResponse({}));
8875
+ }
8674
8876
  }
8675
8877
  /**
8676
8878
  * Queries the product catalogs that are associated with a WhatsApp Business account (WABA).
@@ -8741,7 +8943,12 @@ class Client extends openapi_client_1.default {
8741
8943
  reqBodyType: "formData",
8742
8944
  bodyType: "json",
8743
8945
  });
8744
- return $tea.cast(await this.callApi(params, req, runtime), new GetWhatsappHealthStatusResponse({}));
8946
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
8947
+ return $tea.cast(await this.callApi(params, req, runtime), new GetWhatsappHealthStatusResponse({}));
8948
+ }
8949
+ else {
8950
+ return $tea.cast(await this.execute(params, req, runtime), new GetWhatsappHealthStatusResponse({}));
8951
+ }
8745
8952
  }
8746
8953
  /**
8747
8954
  * Queries the messaging health status of different types of nodes.
@@ -8791,7 +8998,12 @@ class Client extends openapi_client_1.default {
8791
8998
  reqBodyType: "formData",
8792
8999
  bodyType: "json",
8793
9000
  });
8794
- return $tea.cast(await this.callApi(params, req, runtime), new IsvGetAppIdResponse({}));
9001
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9002
+ return $tea.cast(await this.callApi(params, req, runtime), new IsvGetAppIdResponse({}));
9003
+ }
9004
+ else {
9005
+ return $tea.cast(await this.execute(params, req, runtime), new IsvGetAppIdResponse({}));
9006
+ }
8795
9007
  }
8796
9008
  /**
8797
9009
  * Obtains the application ID under the ISV account.
@@ -8866,7 +9078,12 @@ class Client extends openapi_client_1.default {
8866
9078
  reqBodyType: "formData",
8867
9079
  bodyType: "json",
8868
9080
  });
8869
- return $tea.cast(await this.callApi(params, req, runtime), new ListChatappTemplateResponse({}));
9081
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9082
+ return $tea.cast(await this.callApi(params, req, runtime), new ListChatappTemplateResponse({}));
9083
+ }
9084
+ else {
9085
+ return $tea.cast(await this.execute(params, req, runtime), new ListChatappTemplateResponse({}));
9086
+ }
8870
9087
  }
8871
9088
  /**
8872
9089
  * Queries message templates.
@@ -8923,7 +9140,12 @@ class Client extends openapi_client_1.default {
8923
9140
  reqBodyType: "formData",
8924
9141
  bodyType: "json",
8925
9142
  });
8926
- return $tea.cast(await this.callApi(params, req, runtime), new ListFlowResponse({}));
9143
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9144
+ return $tea.cast(await this.callApi(params, req, runtime), new ListFlowResponse({}));
9145
+ }
9146
+ else {
9147
+ return $tea.cast(await this.execute(params, req, runtime), new ListFlowResponse({}));
9148
+ }
8927
9149
  }
8928
9150
  /**
8929
9151
  * Queries a list of Flows.
@@ -8968,7 +9190,12 @@ class Client extends openapi_client_1.default {
8968
9190
  reqBodyType: "formData",
8969
9191
  bodyType: "json",
8970
9192
  });
8971
- return $tea.cast(await this.callApi(params, req, runtime), new ListPhoneMessageQrdlResponse({}));
9193
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9194
+ return $tea.cast(await this.callApi(params, req, runtime), new ListPhoneMessageQrdlResponse({}));
9195
+ }
9196
+ else {
9197
+ return $tea.cast(await this.execute(params, req, runtime), new ListPhoneMessageQrdlResponse({}));
9198
+ }
8972
9199
  }
8973
9200
  /**
8974
9201
  * Queries the information about a list of quick-response (QR) codes that contain messages.
@@ -9037,7 +9264,12 @@ class Client extends openapi_client_1.default {
9037
9264
  reqBodyType: "formData",
9038
9265
  bodyType: "json",
9039
9266
  });
9040
- return $tea.cast(await this.callApi(params, req, runtime), new ListProductResponse({}));
9267
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9268
+ return $tea.cast(await this.callApi(params, req, runtime), new ListProductResponse({}));
9269
+ }
9270
+ else {
9271
+ return $tea.cast(await this.execute(params, req, runtime), new ListProductResponse({}));
9272
+ }
9041
9273
  }
9042
9274
  /**
9043
9275
  * Queries products in a product catalog.
@@ -9106,7 +9338,12 @@ class Client extends openapi_client_1.default {
9106
9338
  reqBodyType: "formData",
9107
9339
  bodyType: "json",
9108
9340
  });
9109
- return $tea.cast(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
9341
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9342
+ return $tea.cast(await this.callApi(params, req, runtime), new ListProductCatalogResponse({}));
9343
+ }
9344
+ else {
9345
+ return $tea.cast(await this.execute(params, req, runtime), new ListProductCatalogResponse({}));
9346
+ }
9110
9347
  }
9111
9348
  /**
9112
9349
  * Queries the product catalogs on the Business Manager platform of Meta.
@@ -9189,7 +9426,12 @@ class Client extends openapi_client_1.default {
9189
9426
  reqBodyType: "formData",
9190
9427
  bodyType: "json",
9191
9428
  });
9192
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyChatappTemplateResponse({}));
9429
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9430
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyChatappTemplateResponse({}));
9431
+ }
9432
+ else {
9433
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyChatappTemplateResponse({}));
9434
+ }
9193
9435
  }
9194
9436
  /**
9195
9437
  * The code of the message template.
@@ -9248,7 +9490,12 @@ class Client extends openapi_client_1.default {
9248
9490
  reqBodyType: "formData",
9249
9491
  bodyType: "json",
9250
9492
  });
9251
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyFlowResponse({}));
9493
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9494
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyFlowResponse({}));
9495
+ }
9496
+ else {
9497
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyFlowResponse({}));
9498
+ }
9252
9499
  }
9253
9500
  /**
9254
9501
  * Modifies the basic information about a Flow.
@@ -9331,7 +9578,12 @@ class Client extends openapi_client_1.default {
9331
9578
  reqBodyType: "formData",
9332
9579
  bodyType: "json",
9333
9580
  });
9334
- return $tea.cast(await this.callApi(params, req, runtime), new ModifyPhoneBusinessProfileResponse({}));
9581
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9582
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyPhoneBusinessProfileResponse({}));
9583
+ }
9584
+ else {
9585
+ return $tea.cast(await this.execute(params, req, runtime), new ModifyPhoneBusinessProfileResponse({}));
9586
+ }
9335
9587
  }
9336
9588
  /**
9337
9589
  * The ID of the request.
@@ -9379,7 +9631,12 @@ class Client extends openapi_client_1.default {
9379
9631
  reqBodyType: "formData",
9380
9632
  bodyType: "json",
9381
9633
  });
9382
- return $tea.cast(await this.callApi(params, req, runtime), new PublishFlowResponse({}));
9634
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9635
+ return $tea.cast(await this.callApi(params, req, runtime), new PublishFlowResponse({}));
9636
+ }
9637
+ else {
9638
+ return $tea.cast(await this.execute(params, req, runtime), new PublishFlowResponse({}));
9639
+ }
9383
9640
  }
9384
9641
  /**
9385
9642
  * Publishes a Flow.
@@ -9436,7 +9693,12 @@ class Client extends openapi_client_1.default {
9436
9693
  reqBodyType: "formData",
9437
9694
  bodyType: "json",
9438
9695
  });
9439
- return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappBindWabaResponse({}));
9696
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9697
+ return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappBindWabaResponse({}));
9698
+ }
9699
+ else {
9700
+ return $tea.cast(await this.execute(params, req, runtime), new QueryChatappBindWabaResponse({}));
9701
+ }
9440
9702
  }
9441
9703
  /**
9442
9704
  * Query the WhatsApp Business account you associate with ChatApp.
@@ -9470,6 +9732,15 @@ class Client extends openapi_client_1.default {
9470
9732
  if (!tea_util_1.default.isUnset(request.isvCode)) {
9471
9733
  query["IsvCode"] = request.isvCode;
9472
9734
  }
9735
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
9736
+ query["OwnerId"] = request.ownerId;
9737
+ }
9738
+ if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
9739
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
9740
+ }
9741
+ if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
9742
+ query["ResourceOwnerId"] = request.resourceOwnerId;
9743
+ }
9473
9744
  if (!tea_util_1.default.isUnset(request.status)) {
9474
9745
  query["Status"] = request.status;
9475
9746
  }
@@ -9487,7 +9758,12 @@ class Client extends openapi_client_1.default {
9487
9758
  reqBodyType: "formData",
9488
9759
  bodyType: "json",
9489
9760
  });
9490
- return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappPhoneNumbersResponse({}));
9761
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9762
+ return $tea.cast(await this.callApi(params, req, runtime), new QueryChatappPhoneNumbersResponse({}));
9763
+ }
9764
+ else {
9765
+ return $tea.cast(await this.execute(params, req, runtime), new QueryChatappPhoneNumbersResponse({}));
9766
+ }
9491
9767
  }
9492
9768
  /**
9493
9769
  * Queries phone numbers that receive messages and statuses of these numbers under a specified user.
@@ -9544,7 +9820,12 @@ class Client extends openapi_client_1.default {
9544
9820
  reqBodyType: "formData",
9545
9821
  bodyType: "json",
9546
9822
  });
9547
- return $tea.cast(await this.callApi(params, req, runtime), new QueryPhoneBusinessProfileResponse({}));
9823
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9824
+ return $tea.cast(await this.callApi(params, req, runtime), new QueryPhoneBusinessProfileResponse({}));
9825
+ }
9826
+ else {
9827
+ return $tea.cast(await this.execute(params, req, runtime), new QueryPhoneBusinessProfileResponse({}));
9828
+ }
9548
9829
  }
9549
9830
  /**
9550
9831
  * Queries the business information of the account to which a specified phone number is bound.
@@ -9601,7 +9882,12 @@ class Client extends openapi_client_1.default {
9601
9882
  reqBodyType: "formData",
9602
9883
  bodyType: "json",
9603
9884
  });
9604
- return $tea.cast(await this.callApi(params, req, runtime), new QueryWabaBusinessInfoResponse({}));
9885
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9886
+ return $tea.cast(await this.callApi(params, req, runtime), new QueryWabaBusinessInfoResponse({}));
9887
+ }
9888
+ else {
9889
+ return $tea.cast(await this.execute(params, req, runtime), new QueryWabaBusinessInfoResponse({}));
9890
+ }
9605
9891
  }
9606
9892
  /**
9607
9893
  * Queries the business information about the WhatsApp Business account (WABA).
@@ -9700,7 +9986,12 @@ class Client extends openapi_client_1.default {
9700
9986
  reqBodyType: "formData",
9701
9987
  bodyType: "json",
9702
9988
  });
9703
- return $tea.cast(await this.callApi(params, req, runtime), new SendChatappMassMessageResponse({}));
9989
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
9990
+ return $tea.cast(await this.callApi(params, req, runtime), new SendChatappMassMessageResponse({}));
9991
+ }
9992
+ else {
9993
+ return $tea.cast(await this.execute(params, req, runtime), new SendChatappMassMessageResponse({}));
9994
+ }
9704
9995
  }
9705
9996
  /**
9706
9997
  * Sends a message to multiple phone numbers by using ChatAPP at a time.
@@ -9837,7 +10128,12 @@ class Client extends openapi_client_1.default {
9837
10128
  reqBodyType: "formData",
9838
10129
  bodyType: "json",
9839
10130
  });
9840
- return $tea.cast(await this.callApi(params, req, runtime), new SendChatappMessageResponse({}));
10131
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10132
+ return $tea.cast(await this.callApi(params, req, runtime), new SendChatappMessageResponse({}));
10133
+ }
10134
+ else {
10135
+ return $tea.cast(await this.execute(params, req, runtime), new SendChatappMessageResponse({}));
10136
+ }
9841
10137
  }
9842
10138
  /**
9843
10139
  * Sends messages by using ChatAPP.
@@ -9901,7 +10197,12 @@ class Client extends openapi_client_1.default {
9901
10197
  reqBodyType: "formData",
9902
10198
  bodyType: "json",
9903
10199
  });
9904
- return $tea.cast(await this.callApi(params, req, runtime), new SubmitIsvCustomerTermsResponse({}));
10200
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10201
+ return $tea.cast(await this.callApi(params, req, runtime), new SubmitIsvCustomerTermsResponse({}));
10202
+ }
10203
+ else {
10204
+ return $tea.cast(await this.execute(params, req, runtime), new SubmitIsvCustomerTermsResponse({}));
10205
+ }
9905
10206
  }
9906
10207
  /**
9907
10208
  * Submits the agreement information for independent software vendor (ISV) customers.
@@ -9976,7 +10277,12 @@ class Client extends openapi_client_1.default {
9976
10277
  reqBodyType: "formData",
9977
10278
  bodyType: "json",
9978
10279
  });
9979
- return $tea.cast(await this.callApi(params, req, runtime), new TriggerChatFlowResponse({}));
10280
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10281
+ return $tea.cast(await this.callApi(params, req, runtime), new TriggerChatFlowResponse({}));
10282
+ }
10283
+ else {
10284
+ return $tea.cast(await this.execute(params, req, runtime), new TriggerChatFlowResponse({}));
10285
+ }
9980
10286
  }
9981
10287
  /**
9982
10288
  * Trigger an Online ChatFlow
@@ -10030,7 +10336,12 @@ class Client extends openapi_client_1.default {
10030
10336
  reqBodyType: "formData",
10031
10337
  bodyType: "json",
10032
10338
  });
10033
- return $tea.cast(await this.callApi(params, req, runtime), new UpdateAccountWebhookResponse({}));
10339
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10340
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateAccountWebhookResponse({}));
10341
+ }
10342
+ else {
10343
+ return $tea.cast(await this.execute(params, req, runtime), new UpdateAccountWebhookResponse({}));
10344
+ }
10034
10345
  }
10035
10346
  /**
10036
10347
  * Modifies the callback URL of an account.
@@ -10093,7 +10404,12 @@ class Client extends openapi_client_1.default {
10093
10404
  reqBodyType: "formData",
10094
10405
  bodyType: "json",
10095
10406
  });
10096
- return $tea.cast(await this.callApi(params, req, runtime), new UpdateCommerceSettingResponse({}));
10407
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10408
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateCommerceSettingResponse({}));
10409
+ }
10410
+ else {
10411
+ return $tea.cast(await this.execute(params, req, runtime), new UpdateCommerceSettingResponse({}));
10412
+ }
10097
10413
  }
10098
10414
  /**
10099
10415
  * Modifies the business settings of a phone number.
@@ -10169,7 +10485,12 @@ class Client extends openapi_client_1.default {
10169
10485
  reqBodyType: "formData",
10170
10486
  bodyType: "json",
10171
10487
  });
10172
- return $tea.cast(await this.callApi(params, req, runtime), new UpdateConversationalAutomationResponse({}));
10488
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10489
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateConversationalAutomationResponse({}));
10490
+ }
10491
+ else {
10492
+ return $tea.cast(await this.execute(params, req, runtime), new UpdateConversationalAutomationResponse({}));
10493
+ }
10173
10494
  }
10174
10495
  /**
10175
10496
  * Modifies welcoming messages, opening remarks, and commands for a phone number.
@@ -10219,7 +10540,12 @@ class Client extends openapi_client_1.default {
10219
10540
  reqBodyType: "formData",
10220
10541
  bodyType: "json",
10221
10542
  });
10222
- return $tea.cast(await this.callApi(params, req, runtime), new UpdateFlowJSONAssetResponse({}));
10543
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10544
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateFlowJSONAssetResponse({}));
10545
+ }
10546
+ else {
10547
+ return $tea.cast(await this.execute(params, req, runtime), new UpdateFlowJSONAssetResponse({}));
10548
+ }
10223
10549
  }
10224
10550
  /**
10225
10551
  * Updates a Flow by using JSON content.
@@ -10264,7 +10590,12 @@ class Client extends openapi_client_1.default {
10264
10590
  reqBodyType: "formData",
10265
10591
  bodyType: "json",
10266
10592
  });
10267
- return $tea.cast(await this.callApi(params, req, runtime), new UpdatePhoneEncryptionPublicKeyResponse({}));
10593
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10594
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdatePhoneEncryptionPublicKeyResponse({}));
10595
+ }
10596
+ else {
10597
+ return $tea.cast(await this.execute(params, req, runtime), new UpdatePhoneEncryptionPublicKeyResponse({}));
10598
+ }
10268
10599
  }
10269
10600
  /**
10270
10601
  * Updates the encryption public key of a phone number.
@@ -10315,7 +10646,12 @@ class Client extends openapi_client_1.default {
10315
10646
  reqBodyType: "formData",
10316
10647
  bodyType: "json",
10317
10648
  });
10318
- return $tea.cast(await this.callApi(params, req, runtime), new UpdatePhoneMessageQrdlResponse({}));
10649
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10650
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdatePhoneMessageQrdlResponse({}));
10651
+ }
10652
+ else {
10653
+ return $tea.cast(await this.execute(params, req, runtime), new UpdatePhoneMessageQrdlResponse({}));
10654
+ }
10319
10655
  }
10320
10656
  /**
10321
10657
  * Modifies a quick-response (QR) code that contains a message.
@@ -10374,7 +10710,12 @@ class Client extends openapi_client_1.default {
10374
10710
  reqBodyType: "formData",
10375
10711
  bodyType: "json",
10376
10712
  });
10377
- return $tea.cast(await this.callApi(params, req, runtime), new UpdatePhoneWebhookResponse({}));
10713
+ if (tea_util_1.default.isUnset(this._signatureVersion) || !tea_util_1.default.equalString(this._signatureVersion, "v4")) {
10714
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdatePhoneWebhookResponse({}));
10715
+ }
10716
+ else {
10717
+ return $tea.cast(await this.execute(params, req, runtime), new UpdatePhoneWebhookResponse({}));
10718
+ }
10378
10719
  }
10379
10720
  /**
10380
10721
  * The HTTP status code returned.