@alicloud/cams20200606 1.4.5 → 1.5.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
@@ -2397,6 +2397,96 @@ export class GetCommerceSettingResponse extends $tea.Model {
2397
2397
  }
2398
2398
  }
2399
2399
 
2400
+ export class GetConversationalAutomationRequest extends $tea.Model {
2401
+ custSpaceId?: string;
2402
+ ownerId?: number;
2403
+ phoneNumber?: string;
2404
+ resourceOwnerAccount?: string;
2405
+ resourceOwnerId?: number;
2406
+ static names(): { [key: string]: string } {
2407
+ return {
2408
+ custSpaceId: 'CustSpaceId',
2409
+ ownerId: 'OwnerId',
2410
+ phoneNumber: 'PhoneNumber',
2411
+ resourceOwnerAccount: 'ResourceOwnerAccount',
2412
+ resourceOwnerId: 'ResourceOwnerId',
2413
+ };
2414
+ }
2415
+
2416
+ static types(): { [key: string]: any } {
2417
+ return {
2418
+ custSpaceId: 'string',
2419
+ ownerId: 'number',
2420
+ phoneNumber: 'string',
2421
+ resourceOwnerAccount: 'string',
2422
+ resourceOwnerId: 'number',
2423
+ };
2424
+ }
2425
+
2426
+ constructor(map?: { [key: string]: any }) {
2427
+ super(map);
2428
+ }
2429
+ }
2430
+
2431
+ export class GetConversationalAutomationResponseBody extends $tea.Model {
2432
+ accessDeniedDetail?: string;
2433
+ code?: string;
2434
+ data?: GetConversationalAutomationResponseBodyData;
2435
+ message?: string;
2436
+ requestId?: string;
2437
+ success?: boolean;
2438
+ static names(): { [key: string]: string } {
2439
+ return {
2440
+ accessDeniedDetail: 'AccessDeniedDetail',
2441
+ code: 'Code',
2442
+ data: 'Data',
2443
+ message: 'Message',
2444
+ requestId: 'RequestId',
2445
+ success: 'Success',
2446
+ };
2447
+ }
2448
+
2449
+ static types(): { [key: string]: any } {
2450
+ return {
2451
+ accessDeniedDetail: 'string',
2452
+ code: 'string',
2453
+ data: GetConversationalAutomationResponseBodyData,
2454
+ message: 'string',
2455
+ requestId: 'string',
2456
+ success: 'boolean',
2457
+ };
2458
+ }
2459
+
2460
+ constructor(map?: { [key: string]: any }) {
2461
+ super(map);
2462
+ }
2463
+ }
2464
+
2465
+ export class GetConversationalAutomationResponse extends $tea.Model {
2466
+ headers?: { [key: string]: string };
2467
+ statusCode?: number;
2468
+ body?: GetConversationalAutomationResponseBody;
2469
+ static names(): { [key: string]: string } {
2470
+ return {
2471
+ headers: 'headers',
2472
+ statusCode: 'statusCode',
2473
+ body: 'body',
2474
+ };
2475
+ }
2476
+
2477
+ static types(): { [key: string]: any } {
2478
+ return {
2479
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2480
+ statusCode: 'number',
2481
+ body: GetConversationalAutomationResponseBody,
2482
+ };
2483
+ }
2484
+
2485
+ constructor(map?: { [key: string]: any }) {
2486
+ super(map);
2487
+ }
2488
+ }
2489
+
2400
2490
  export class GetFlowRequest extends $tea.Model {
2401
2491
  custSpaceId?: string;
2402
2492
  flowId?: string;
@@ -3121,6 +3211,108 @@ export class GetWhatsappConnectionCatalogResponse extends $tea.Model {
3121
3211
  }
3122
3212
  }
3123
3213
 
3214
+ export class GetWhatsappHealthStatusRequest extends $tea.Model {
3215
+ custSpaceId?: string;
3216
+ language?: string;
3217
+ nodeType?: string;
3218
+ ownerId?: number;
3219
+ phoneNumber?: string;
3220
+ resourceOwnerAccount?: string;
3221
+ resourceOwnerId?: number;
3222
+ templateCode?: string;
3223
+ wabaId?: string;
3224
+ static names(): { [key: string]: string } {
3225
+ return {
3226
+ custSpaceId: 'CustSpaceId',
3227
+ language: 'Language',
3228
+ nodeType: 'NodeType',
3229
+ ownerId: 'OwnerId',
3230
+ phoneNumber: 'PhoneNumber',
3231
+ resourceOwnerAccount: 'ResourceOwnerAccount',
3232
+ resourceOwnerId: 'ResourceOwnerId',
3233
+ templateCode: 'TemplateCode',
3234
+ wabaId: 'WabaId',
3235
+ };
3236
+ }
3237
+
3238
+ static types(): { [key: string]: any } {
3239
+ return {
3240
+ custSpaceId: 'string',
3241
+ language: 'string',
3242
+ nodeType: 'string',
3243
+ ownerId: 'number',
3244
+ phoneNumber: 'string',
3245
+ resourceOwnerAccount: 'string',
3246
+ resourceOwnerId: 'number',
3247
+ templateCode: 'string',
3248
+ wabaId: 'string',
3249
+ };
3250
+ }
3251
+
3252
+ constructor(map?: { [key: string]: any }) {
3253
+ super(map);
3254
+ }
3255
+ }
3256
+
3257
+ export class GetWhatsappHealthStatusResponseBody extends $tea.Model {
3258
+ accessDeniedDetail?: string;
3259
+ code?: string;
3260
+ data?: GetWhatsappHealthStatusResponseBodyData;
3261
+ message?: string;
3262
+ requestId?: string;
3263
+ success?: boolean;
3264
+ static names(): { [key: string]: string } {
3265
+ return {
3266
+ accessDeniedDetail: 'AccessDeniedDetail',
3267
+ code: 'Code',
3268
+ data: 'Data',
3269
+ message: 'Message',
3270
+ requestId: 'RequestId',
3271
+ success: 'Success',
3272
+ };
3273
+ }
3274
+
3275
+ static types(): { [key: string]: any } {
3276
+ return {
3277
+ accessDeniedDetail: 'string',
3278
+ code: 'string',
3279
+ data: GetWhatsappHealthStatusResponseBodyData,
3280
+ message: 'string',
3281
+ requestId: 'string',
3282
+ success: 'boolean',
3283
+ };
3284
+ }
3285
+
3286
+ constructor(map?: { [key: string]: any }) {
3287
+ super(map);
3288
+ }
3289
+ }
3290
+
3291
+ export class GetWhatsappHealthStatusResponse extends $tea.Model {
3292
+ headers?: { [key: string]: string };
3293
+ statusCode?: number;
3294
+ body?: GetWhatsappHealthStatusResponseBody;
3295
+ static names(): { [key: string]: string } {
3296
+ return {
3297
+ headers: 'headers',
3298
+ statusCode: 'statusCode',
3299
+ body: 'body',
3300
+ };
3301
+ }
3302
+
3303
+ static types(): { [key: string]: any } {
3304
+ return {
3305
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3306
+ statusCode: 'number',
3307
+ body: GetWhatsappHealthStatusResponseBody,
3308
+ };
3309
+ }
3310
+
3311
+ constructor(map?: { [key: string]: any }) {
3312
+ super(map);
3313
+ }
3314
+ }
3315
+
3124
3316
  export class IsvGetAppIdRequest extends $tea.Model {
3125
3317
  permissions?: string;
3126
3318
  type?: string;
@@ -5273,6 +5465,142 @@ export class UpdateCommerceSettingResponse extends $tea.Model {
5273
5465
  }
5274
5466
  }
5275
5467
 
5468
+ export class UpdateConversationalAutomationRequest extends $tea.Model {
5469
+ commands?: UpdateConversationalAutomationRequestCommands[];
5470
+ custSpaceId?: string;
5471
+ enableWelcomeMessage?: boolean;
5472
+ ownerId?: number;
5473
+ phoneNumber?: string;
5474
+ prompts?: string[];
5475
+ resourceOwnerAccount?: string;
5476
+ resourceOwnerId?: number;
5477
+ static names(): { [key: string]: string } {
5478
+ return {
5479
+ commands: 'Commands',
5480
+ custSpaceId: 'CustSpaceId',
5481
+ enableWelcomeMessage: 'EnableWelcomeMessage',
5482
+ ownerId: 'OwnerId',
5483
+ phoneNumber: 'PhoneNumber',
5484
+ prompts: 'Prompts',
5485
+ resourceOwnerAccount: 'ResourceOwnerAccount',
5486
+ resourceOwnerId: 'ResourceOwnerId',
5487
+ };
5488
+ }
5489
+
5490
+ static types(): { [key: string]: any } {
5491
+ return {
5492
+ commands: { 'type': 'array', 'itemType': UpdateConversationalAutomationRequestCommands },
5493
+ custSpaceId: 'string',
5494
+ enableWelcomeMessage: 'boolean',
5495
+ ownerId: 'number',
5496
+ phoneNumber: 'string',
5497
+ prompts: { 'type': 'array', 'itemType': 'string' },
5498
+ resourceOwnerAccount: 'string',
5499
+ resourceOwnerId: 'number',
5500
+ };
5501
+ }
5502
+
5503
+ constructor(map?: { [key: string]: any }) {
5504
+ super(map);
5505
+ }
5506
+ }
5507
+
5508
+ export class UpdateConversationalAutomationShrinkRequest extends $tea.Model {
5509
+ commandsShrink?: string;
5510
+ custSpaceId?: string;
5511
+ enableWelcomeMessage?: boolean;
5512
+ ownerId?: number;
5513
+ phoneNumber?: string;
5514
+ promptsShrink?: string;
5515
+ resourceOwnerAccount?: string;
5516
+ resourceOwnerId?: number;
5517
+ static names(): { [key: string]: string } {
5518
+ return {
5519
+ commandsShrink: 'Commands',
5520
+ custSpaceId: 'CustSpaceId',
5521
+ enableWelcomeMessage: 'EnableWelcomeMessage',
5522
+ ownerId: 'OwnerId',
5523
+ phoneNumber: 'PhoneNumber',
5524
+ promptsShrink: 'Prompts',
5525
+ resourceOwnerAccount: 'ResourceOwnerAccount',
5526
+ resourceOwnerId: 'ResourceOwnerId',
5527
+ };
5528
+ }
5529
+
5530
+ static types(): { [key: string]: any } {
5531
+ return {
5532
+ commandsShrink: 'string',
5533
+ custSpaceId: 'string',
5534
+ enableWelcomeMessage: 'boolean',
5535
+ ownerId: 'number',
5536
+ phoneNumber: 'string',
5537
+ promptsShrink: 'string',
5538
+ resourceOwnerAccount: 'string',
5539
+ resourceOwnerId: 'number',
5540
+ };
5541
+ }
5542
+
5543
+ constructor(map?: { [key: string]: any }) {
5544
+ super(map);
5545
+ }
5546
+ }
5547
+
5548
+ export class UpdateConversationalAutomationResponseBody extends $tea.Model {
5549
+ accessDeniedDetail?: string;
5550
+ code?: string;
5551
+ message?: string;
5552
+ requestId?: string;
5553
+ success?: boolean;
5554
+ static names(): { [key: string]: string } {
5555
+ return {
5556
+ accessDeniedDetail: 'AccessDeniedDetail',
5557
+ code: 'Code',
5558
+ message: 'Message',
5559
+ requestId: 'RequestId',
5560
+ success: 'Success',
5561
+ };
5562
+ }
5563
+
5564
+ static types(): { [key: string]: any } {
5565
+ return {
5566
+ accessDeniedDetail: 'string',
5567
+ code: 'string',
5568
+ message: 'string',
5569
+ requestId: 'string',
5570
+ success: 'boolean',
5571
+ };
5572
+ }
5573
+
5574
+ constructor(map?: { [key: string]: any }) {
5575
+ super(map);
5576
+ }
5577
+ }
5578
+
5579
+ export class UpdateConversationalAutomationResponse extends $tea.Model {
5580
+ headers?: { [key: string]: string };
5581
+ statusCode?: number;
5582
+ body?: UpdateConversationalAutomationResponseBody;
5583
+ static names(): { [key: string]: string } {
5584
+ return {
5585
+ headers: 'headers',
5586
+ statusCode: 'statusCode',
5587
+ body: 'body',
5588
+ };
5589
+ }
5590
+
5591
+ static types(): { [key: string]: any } {
5592
+ return {
5593
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5594
+ statusCode: 'number',
5595
+ body: UpdateConversationalAutomationResponseBody,
5596
+ };
5597
+ }
5598
+
5599
+ constructor(map?: { [key: string]: any }) {
5600
+ super(map);
5601
+ }
5602
+ }
5603
+
5276
5604
  export class UpdateFlowJSONAssetRequest extends $tea.Model {
5277
5605
  custSpaceId?: string;
5278
5606
  filePath?: string;
@@ -6778,20 +7106,70 @@ export class GetChatappUploadAuthorizationResponseBodyData extends $tea.Model {
6778
7106
  }
6779
7107
  }
6780
7108
 
6781
- export class GetCommerceSettingResponseBodyData extends $tea.Model {
6782
- cartEnable?: boolean;
6783
- catalogVisible?: boolean;
7109
+ export class GetCommerceSettingResponseBodyData extends $tea.Model {
7110
+ cartEnable?: boolean;
7111
+ catalogVisible?: boolean;
7112
+ static names(): { [key: string]: string } {
7113
+ return {
7114
+ cartEnable: 'CartEnable',
7115
+ catalogVisible: 'CatalogVisible',
7116
+ };
7117
+ }
7118
+
7119
+ static types(): { [key: string]: any } {
7120
+ return {
7121
+ cartEnable: 'boolean',
7122
+ catalogVisible: 'boolean',
7123
+ };
7124
+ }
7125
+
7126
+ constructor(map?: { [key: string]: any }) {
7127
+ super(map);
7128
+ }
7129
+ }
7130
+
7131
+ export class GetConversationalAutomationResponseBodyDataCommands extends $tea.Model {
7132
+ commandDescription?: string;
7133
+ commandName?: string;
7134
+ static names(): { [key: string]: string } {
7135
+ return {
7136
+ commandDescription: 'CommandDescription',
7137
+ commandName: 'CommandName',
7138
+ };
7139
+ }
7140
+
7141
+ static types(): { [key: string]: any } {
7142
+ return {
7143
+ commandDescription: 'string',
7144
+ commandName: 'string',
7145
+ };
7146
+ }
7147
+
7148
+ constructor(map?: { [key: string]: any }) {
7149
+ super(map);
7150
+ }
7151
+ }
7152
+
7153
+ export class GetConversationalAutomationResponseBodyData extends $tea.Model {
7154
+ commands?: GetConversationalAutomationResponseBodyDataCommands[];
7155
+ enableWelcomeMessage?: boolean;
7156
+ phoneNumber?: string;
7157
+ prompts?: string[];
6784
7158
  static names(): { [key: string]: string } {
6785
7159
  return {
6786
- cartEnable: 'CartEnable',
6787
- catalogVisible: 'CatalogVisible',
7160
+ commands: 'Commands',
7161
+ enableWelcomeMessage: 'EnableWelcomeMessage',
7162
+ phoneNumber: 'PhoneNumber',
7163
+ prompts: 'Prompts',
6788
7164
  };
6789
7165
  }
6790
7166
 
6791
7167
  static types(): { [key: string]: any } {
6792
7168
  return {
6793
- cartEnable: 'boolean',
6794
- catalogVisible: 'boolean',
7169
+ commands: { 'type': 'array', 'itemType': GetConversationalAutomationResponseBodyDataCommands },
7170
+ enableWelcomeMessage: 'boolean',
7171
+ phoneNumber: 'string',
7172
+ prompts: { 'type': 'array', 'itemType': 'string' },
6795
7173
  };
6796
7174
  }
6797
7175
 
@@ -6981,6 +7359,93 @@ export class GetPreValidatePhoneIdResponseBodyData extends $tea.Model {
6981
7359
  }
6982
7360
  }
6983
7361
 
7362
+ export class GetWhatsappHealthStatusResponseBodyDataEntitiesErrors extends $tea.Model {
7363
+ errorCode?: string;
7364
+ errorDescription?: string;
7365
+ possibleSolution?: string;
7366
+ static names(): { [key: string]: string } {
7367
+ return {
7368
+ errorCode: 'ErrorCode',
7369
+ errorDescription: 'ErrorDescription',
7370
+ possibleSolution: 'PossibleSolution',
7371
+ };
7372
+ }
7373
+
7374
+ static types(): { [key: string]: any } {
7375
+ return {
7376
+ errorCode: 'string',
7377
+ errorDescription: 'string',
7378
+ possibleSolution: 'string',
7379
+ };
7380
+ }
7381
+
7382
+ constructor(map?: { [key: string]: any }) {
7383
+ super(map);
7384
+ }
7385
+ }
7386
+
7387
+ export class GetWhatsappHealthStatusResponseBodyDataEntities extends $tea.Model {
7388
+ businessId?: string;
7389
+ canSendMessage?: string;
7390
+ entityType?: string;
7391
+ errors?: GetWhatsappHealthStatusResponseBodyDataEntitiesErrors[];
7392
+ language?: string;
7393
+ phoneNumber?: string;
7394
+ templateCode?: string;
7395
+ wabaId?: string;
7396
+ static names(): { [key: string]: string } {
7397
+ return {
7398
+ businessId: 'BusinessId',
7399
+ canSendMessage: 'CanSendMessage',
7400
+ entityType: 'EntityType',
7401
+ errors: 'Errors',
7402
+ language: 'Language',
7403
+ phoneNumber: 'PhoneNumber',
7404
+ templateCode: 'TemplateCode',
7405
+ wabaId: 'WabaId',
7406
+ };
7407
+ }
7408
+
7409
+ static types(): { [key: string]: any } {
7410
+ return {
7411
+ businessId: 'string',
7412
+ canSendMessage: 'string',
7413
+ entityType: 'string',
7414
+ errors: { 'type': 'array', 'itemType': GetWhatsappHealthStatusResponseBodyDataEntitiesErrors },
7415
+ language: 'string',
7416
+ phoneNumber: 'string',
7417
+ templateCode: 'string',
7418
+ wabaId: 'string',
7419
+ };
7420
+ }
7421
+
7422
+ constructor(map?: { [key: string]: any }) {
7423
+ super(map);
7424
+ }
7425
+ }
7426
+
7427
+ export class GetWhatsappHealthStatusResponseBodyData extends $tea.Model {
7428
+ canSendMessage?: string;
7429
+ entities?: GetWhatsappHealthStatusResponseBodyDataEntities[];
7430
+ static names(): { [key: string]: string } {
7431
+ return {
7432
+ canSendMessage: 'CanSendMessage',
7433
+ entities: 'Entities',
7434
+ };
7435
+ }
7436
+
7437
+ static types(): { [key: string]: any } {
7438
+ return {
7439
+ canSendMessage: 'string',
7440
+ entities: { 'type': 'array', 'itemType': GetWhatsappHealthStatusResponseBodyDataEntities },
7441
+ };
7442
+ }
7443
+
7444
+ constructor(map?: { [key: string]: any }) {
7445
+ super(map);
7446
+ }
7447
+ }
7448
+
6984
7449
  export class ListChatappTemplateRequestPage extends $tea.Model {
6985
7450
  index?: number;
6986
7451
  size?: number;
@@ -7871,6 +8336,28 @@ export class SendChatappMessageRequestProductAction extends $tea.Model {
7871
8336
  }
7872
8337
  }
7873
8338
 
8339
+ export class UpdateConversationalAutomationRequestCommands extends $tea.Model {
8340
+ commandDescription?: string;
8341
+ commandName?: string;
8342
+ static names(): { [key: string]: string } {
8343
+ return {
8344
+ commandDescription: 'CommandDescription',
8345
+ commandName: 'CommandName',
8346
+ };
8347
+ }
8348
+
8349
+ static types(): { [key: string]: any } {
8350
+ return {
8351
+ commandDescription: 'string',
8352
+ commandName: 'string',
8353
+ };
8354
+ }
8355
+
8356
+ constructor(map?: { [key: string]: any }) {
8357
+ super(map);
8358
+ }
8359
+ }
8360
+
7874
8361
  export class UpdateFlowJSONAssetResponseBodyData extends $tea.Model {
7875
8362
  flowId?: string;
7876
8363
  static names(): { [key: string]: string } {
@@ -9575,6 +10062,64 @@ export default class Client extends OpenApi {
9575
10062
  return await this.getCommerceSettingWithOptions(request, runtime);
9576
10063
  }
9577
10064
 
10065
+ /**
10066
+ * @summary 获取号码欢迎消息设置信息
10067
+ *
10068
+ * @param request GetConversationalAutomationRequest
10069
+ * @param runtime runtime options for this request RuntimeOptions
10070
+ * @return GetConversationalAutomationResponse
10071
+ */
10072
+ async getConversationalAutomationWithOptions(request: GetConversationalAutomationRequest, runtime: $Util.RuntimeOptions): Promise<GetConversationalAutomationResponse> {
10073
+ Util.validateModel(request);
10074
+ let query = { };
10075
+ if (!Util.isUnset(request.custSpaceId)) {
10076
+ query["CustSpaceId"] = request.custSpaceId;
10077
+ }
10078
+
10079
+ if (!Util.isUnset(request.ownerId)) {
10080
+ query["OwnerId"] = request.ownerId;
10081
+ }
10082
+
10083
+ if (!Util.isUnset(request.phoneNumber)) {
10084
+ query["PhoneNumber"] = request.phoneNumber;
10085
+ }
10086
+
10087
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
10088
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10089
+ }
10090
+
10091
+ if (!Util.isUnset(request.resourceOwnerId)) {
10092
+ query["ResourceOwnerId"] = request.resourceOwnerId;
10093
+ }
10094
+
10095
+ let req = new $OpenApi.OpenApiRequest({
10096
+ query: OpenApiUtil.query(query),
10097
+ });
10098
+ let params = new $OpenApi.Params({
10099
+ action: "GetConversationalAutomation",
10100
+ version: "2020-06-06",
10101
+ protocol: "HTTPS",
10102
+ pathname: "/",
10103
+ method: "POST",
10104
+ authType: "AK",
10105
+ style: "RPC",
10106
+ reqBodyType: "formData",
10107
+ bodyType: "json",
10108
+ });
10109
+ return $tea.cast<GetConversationalAutomationResponse>(await this.callApi(params, req, runtime), new GetConversationalAutomationResponse({}));
10110
+ }
10111
+
10112
+ /**
10113
+ * @summary 获取号码欢迎消息设置信息
10114
+ *
10115
+ * @param request GetConversationalAutomationRequest
10116
+ * @return GetConversationalAutomationResponse
10117
+ */
10118
+ async getConversationalAutomation(request: GetConversationalAutomationRequest): Promise<GetConversationalAutomationResponse> {
10119
+ let runtime = new $Util.RuntimeOptions({ });
10120
+ return await this.getConversationalAutomationWithOptions(request, runtime);
10121
+ }
10122
+
9578
10123
  /**
9579
10124
  * @summary Queries the information about a Flow.
9580
10125
  *
@@ -10043,6 +10588,80 @@ export default class Client extends OpenApi {
10043
10588
  return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
10044
10589
  }
10045
10590
 
10591
+ /**
10592
+ * @summary 获取whatsapp节点信息发送消息健康度
10593
+ *
10594
+ * @param request GetWhatsappHealthStatusRequest
10595
+ * @param runtime runtime options for this request RuntimeOptions
10596
+ * @return GetWhatsappHealthStatusResponse
10597
+ */
10598
+ async getWhatsappHealthStatusWithOptions(request: GetWhatsappHealthStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetWhatsappHealthStatusResponse> {
10599
+ Util.validateModel(request);
10600
+ let query = { };
10601
+ if (!Util.isUnset(request.custSpaceId)) {
10602
+ query["CustSpaceId"] = request.custSpaceId;
10603
+ }
10604
+
10605
+ if (!Util.isUnset(request.language)) {
10606
+ query["Language"] = request.language;
10607
+ }
10608
+
10609
+ if (!Util.isUnset(request.nodeType)) {
10610
+ query["NodeType"] = request.nodeType;
10611
+ }
10612
+
10613
+ if (!Util.isUnset(request.ownerId)) {
10614
+ query["OwnerId"] = request.ownerId;
10615
+ }
10616
+
10617
+ if (!Util.isUnset(request.phoneNumber)) {
10618
+ query["PhoneNumber"] = request.phoneNumber;
10619
+ }
10620
+
10621
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
10622
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10623
+ }
10624
+
10625
+ if (!Util.isUnset(request.resourceOwnerId)) {
10626
+ query["ResourceOwnerId"] = request.resourceOwnerId;
10627
+ }
10628
+
10629
+ if (!Util.isUnset(request.templateCode)) {
10630
+ query["TemplateCode"] = request.templateCode;
10631
+ }
10632
+
10633
+ if (!Util.isUnset(request.wabaId)) {
10634
+ query["WabaId"] = request.wabaId;
10635
+ }
10636
+
10637
+ let req = new $OpenApi.OpenApiRequest({
10638
+ query: OpenApiUtil.query(query),
10639
+ });
10640
+ let params = new $OpenApi.Params({
10641
+ action: "GetWhatsappHealthStatus",
10642
+ version: "2020-06-06",
10643
+ protocol: "HTTPS",
10644
+ pathname: "/",
10645
+ method: "POST",
10646
+ authType: "AK",
10647
+ style: "RPC",
10648
+ reqBodyType: "formData",
10649
+ bodyType: "json",
10650
+ });
10651
+ return $tea.cast<GetWhatsappHealthStatusResponse>(await this.callApi(params, req, runtime), new GetWhatsappHealthStatusResponse({}));
10652
+ }
10653
+
10654
+ /**
10655
+ * @summary 获取whatsapp节点信息发送消息健康度
10656
+ *
10657
+ * @param request GetWhatsappHealthStatusRequest
10658
+ * @return GetWhatsappHealthStatusResponse
10659
+ */
10660
+ async getWhatsappHealthStatus(request: GetWhatsappHealthStatusRequest): Promise<GetWhatsappHealthStatusResponse> {
10661
+ let runtime = new $Util.RuntimeOptions({ });
10662
+ return await this.getWhatsappHealthStatusWithOptions(request, runtime);
10663
+ }
10664
+
10046
10665
  /**
10047
10666
  * @summary Obtains the application ID under the ISV account.
10048
10667
  *
@@ -11473,6 +12092,86 @@ export default class Client extends OpenApi {
11473
12092
  return await this.updateCommerceSettingWithOptions(request, runtime);
11474
12093
  }
11475
12094
 
12095
+ /**
12096
+ * @summary 更新号码欢迎消息、命令等属性
12097
+ *
12098
+ * @param tmpReq UpdateConversationalAutomationRequest
12099
+ * @param runtime runtime options for this request RuntimeOptions
12100
+ * @return UpdateConversationalAutomationResponse
12101
+ */
12102
+ async updateConversationalAutomationWithOptions(tmpReq: UpdateConversationalAutomationRequest, runtime: $Util.RuntimeOptions): Promise<UpdateConversationalAutomationResponse> {
12103
+ Util.validateModel(tmpReq);
12104
+ let request = new UpdateConversationalAutomationShrinkRequest({ });
12105
+ OpenApiUtil.convert(tmpReq, request);
12106
+ if (!Util.isUnset(tmpReq.commands)) {
12107
+ request.commandsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.commands, "Commands", "json");
12108
+ }
12109
+
12110
+ if (!Util.isUnset(tmpReq.prompts)) {
12111
+ request.promptsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.prompts, "Prompts", "json");
12112
+ }
12113
+
12114
+ let query = { };
12115
+ if (!Util.isUnset(request.commandsShrink)) {
12116
+ query["Commands"] = request.commandsShrink;
12117
+ }
12118
+
12119
+ if (!Util.isUnset(request.custSpaceId)) {
12120
+ query["CustSpaceId"] = request.custSpaceId;
12121
+ }
12122
+
12123
+ if (!Util.isUnset(request.enableWelcomeMessage)) {
12124
+ query["EnableWelcomeMessage"] = request.enableWelcomeMessage;
12125
+ }
12126
+
12127
+ if (!Util.isUnset(request.ownerId)) {
12128
+ query["OwnerId"] = request.ownerId;
12129
+ }
12130
+
12131
+ if (!Util.isUnset(request.phoneNumber)) {
12132
+ query["PhoneNumber"] = request.phoneNumber;
12133
+ }
12134
+
12135
+ if (!Util.isUnset(request.promptsShrink)) {
12136
+ query["Prompts"] = request.promptsShrink;
12137
+ }
12138
+
12139
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
12140
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
12141
+ }
12142
+
12143
+ if (!Util.isUnset(request.resourceOwnerId)) {
12144
+ query["ResourceOwnerId"] = request.resourceOwnerId;
12145
+ }
12146
+
12147
+ let req = new $OpenApi.OpenApiRequest({
12148
+ query: OpenApiUtil.query(query),
12149
+ });
12150
+ let params = new $OpenApi.Params({
12151
+ action: "UpdateConversationalAutomation",
12152
+ version: "2020-06-06",
12153
+ protocol: "HTTPS",
12154
+ pathname: "/",
12155
+ method: "POST",
12156
+ authType: "AK",
12157
+ style: "RPC",
12158
+ reqBodyType: "formData",
12159
+ bodyType: "json",
12160
+ });
12161
+ return $tea.cast<UpdateConversationalAutomationResponse>(await this.callApi(params, req, runtime), new UpdateConversationalAutomationResponse({}));
12162
+ }
12163
+
12164
+ /**
12165
+ * @summary 更新号码欢迎消息、命令等属性
12166
+ *
12167
+ * @param request UpdateConversationalAutomationRequest
12168
+ * @return UpdateConversationalAutomationResponse
12169
+ */
12170
+ async updateConversationalAutomation(request: UpdateConversationalAutomationRequest): Promise<UpdateConversationalAutomationResponse> {
12171
+ let runtime = new $Util.RuntimeOptions({ });
12172
+ return await this.updateConversationalAutomationWithOptions(request, runtime);
12173
+ }
12174
+
11476
12175
  /**
11477
12176
  * @summary 更新flow的表单内容
11478
12177
  *