@alicloud/cams20200606 1.5.1 → 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.d.ts +1824 -444
- package/dist/client.js +676 -123
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +2359 -512
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 (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
};
|
|
@@ -29,9 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
39
|
exports.DeleteChatappTemplateRequest = exports.CreatePhoneMessageQrdlResponse = exports.CreatePhoneMessageQrdlResponseBody = exports.CreatePhoneMessageQrdlRequest = exports.CreateFlowResponse = exports.CreateFlowResponseBody = exports.CreateFlowShrinkRequest = exports.CreateFlowRequest = exports.CreateChatappTemplateResponse = exports.CreateChatappTemplateResponseBody = exports.CreateChatappTemplateShrinkRequest = exports.CreateChatappTemplateRequest = exports.CreateChatappMigrationInitiateResponse = exports.CreateChatappMigrationInitiateResponseBody = exports.CreateChatappMigrationInitiateRequest = exports.ChatappVerifyAndRegisterResponse = exports.ChatappVerifyAndRegisterResponseBody = exports.ChatappVerifyAndRegisterRequest = exports.ChatappSyncPhoneNumberResponse = exports.ChatappSyncPhoneNumberResponseBody = exports.ChatappSyncPhoneNumberRequest = exports.ChatappPhoneNumberRegisterResponse = exports.ChatappPhoneNumberRegisterResponseBody = exports.ChatappPhoneNumberRegisterRequest = exports.ChatappPhoneNumberDeregisterResponse = exports.ChatappPhoneNumberDeregisterResponseBody = exports.ChatappPhoneNumberDeregisterRequest = exports.ChatappMigrationVerifiedResponse = exports.ChatappMigrationVerifiedResponseBody = exports.ChatappMigrationVerifiedRequest = exports.ChatappMigrationRegisterResponse = exports.ChatappMigrationRegisterResponseBody = exports.ChatappMigrationRegisterRequest = exports.ChatappEmbedSignUpResponse = exports.ChatappEmbedSignUpResponseBody = exports.ChatappEmbedSignUpRequest = exports.ChatappBindWabaResponse = exports.ChatappBindWabaResponseBody = exports.ChatappBindWabaRequest = exports.BeeBotChatResponse = exports.BeeBotChatResponseBody = exports.BeeBotChatShrinkRequest = exports.BeeBotChatRequest = exports.BeeBotAssociateResponse = exports.BeeBotAssociateResponseBody = exports.BeeBotAssociateShrinkRequest = exports.BeeBotAssociateRequest = exports.AddChatappPhoneNumberResponse = exports.AddChatappPhoneNumberResponseBody = exports.AddChatappPhoneNumberRequest = void 0;
|
|
30
40
|
exports.GetPermissionByCodeResponseBody = exports.GetPermissionByCodeShrinkRequest = exports.GetPermissionByCodeRequest = exports.GetMigrationVerifyCodeResponse = exports.GetMigrationVerifyCodeResponseBody = exports.GetMigrationVerifyCodeRequest = exports.GetFlowPreviewUrlResponse = exports.GetFlowPreviewUrlResponseBody = exports.GetFlowPreviewUrlRequest = exports.GetFlowJSONAssestResponse = exports.GetFlowJSONAssestResponseBody = exports.GetFlowJSONAssestRequest = exports.GetFlowResponse = exports.GetFlowResponseBody = exports.GetFlowRequest = exports.GetConversationalAutomationResponse = exports.GetConversationalAutomationResponseBody = exports.GetConversationalAutomationRequest = exports.GetCommerceSettingResponse = exports.GetCommerceSettingResponseBody = exports.GetCommerceSettingRequest = exports.GetChatappVerifyCodeResponse = exports.GetChatappVerifyCodeResponseBody = exports.GetChatappVerifyCodeRequest = exports.GetChatappUploadAuthorizationResponse = exports.GetChatappUploadAuthorizationResponseBody = exports.GetChatappUploadAuthorizationRequest = exports.GetChatappTemplateMetricResponse = exports.GetChatappTemplateMetricResponseBody = exports.GetChatappTemplateMetricRequest = exports.GetChatappTemplateDetailResponse = exports.GetChatappTemplateDetailResponseBody = exports.GetChatappTemplateDetailRequest = exports.GetChatappPhoneNumberMetricResponse = exports.GetChatappPhoneNumberMetricResponseBody = exports.GetChatappPhoneNumberMetricRequest = exports.EnableWhatsappROIMetricResponse = exports.EnableWhatsappROIMetricResponseBody = exports.EnableWhatsappROIMetricRequest = exports.DeprecateFlowResponse = exports.DeprecateFlowResponseBody = exports.DeprecateFlowRequest = exports.DeletePhoneMessageQrdlResponse = exports.DeletePhoneMessageQrdlResponseBody = exports.DeletePhoneMessageQrdlRequest = exports.DeleteFlowResponse = exports.DeleteFlowResponseBody = exports.DeleteFlowRequest = exports.DeleteChatappTemplateResponse = exports.DeleteChatappTemplateResponseBody = void 0;
|
|
31
41
|
exports.PublishFlowResponseBody = exports.PublishFlowRequest = exports.ModifyPhoneBusinessProfileResponse = exports.ModifyPhoneBusinessProfileResponseBody = exports.ModifyPhoneBusinessProfileShrinkRequest = exports.ModifyPhoneBusinessProfileRequest = exports.ModifyFlowResponse = exports.ModifyFlowResponseBody = exports.ModifyFlowShrinkRequest = exports.ModifyFlowRequest = exports.ModifyChatappTemplateResponse = exports.ModifyChatappTemplateResponseBody = exports.ModifyChatappTemplateShrinkRequest = exports.ModifyChatappTemplateRequest = exports.ListProductCatalogResponse = exports.ListProductCatalogResponseBody = exports.ListProductCatalogRequest = exports.ListProductResponse = exports.ListProductResponseBody = exports.ListProductRequest = exports.ListPhoneMessageQrdlResponse = exports.ListPhoneMessageQrdlResponseBody = exports.ListPhoneMessageQrdlRequest = exports.ListFlowResponse = exports.ListFlowResponseBody = exports.ListFlowShrinkRequest = exports.ListFlowRequest = exports.ListChatappTemplateResponse = exports.ListChatappTemplateResponseBody = exports.ListChatappTemplateShrinkRequest = exports.ListChatappTemplateRequest = exports.IsvGetAppIdResponse = exports.IsvGetAppIdResponseBody = exports.IsvGetAppIdRequest = exports.GetWhatsappHealthStatusResponse = exports.GetWhatsappHealthStatusResponseBody = exports.GetWhatsappHealthStatusRequest = exports.GetWhatsappConnectionCatalogResponse = exports.GetWhatsappConnectionCatalogResponseBody = exports.GetWhatsappConnectionCatalogRequest = exports.GetPreValidatePhoneIdResponse = exports.GetPreValidatePhoneIdResponseBody = exports.GetPreValidatePhoneIdRequest = exports.GetPhoneNumberVerificationStatusResponse = exports.GetPhoneNumberVerificationStatusResponseBody = exports.GetPhoneNumberVerificationStatusRequest = exports.GetPhoneEncryptionPublicKeyResponse = exports.GetPhoneEncryptionPublicKeyResponseBody = exports.GetPhoneEncryptionPublicKeyRequest = exports.GetPermissionByCodeResponse = void 0;
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.UpdatePhoneMessageQrdlResponseBodyData = exports.UpdateFlowJSONAssetResponseBodyData = exports.UpdateConversationalAutomationRequestCommands = exports.SendChatappMessageRequestProductAction = exports.SendChatappMessageRequestProductActionSections = exports.SendChatappMessageRequestProductActionSectionsProductItems = exports.SendChatappMessageRequestFlowAction = exports.SendChatappMassMessageRequestSenderList = exports.SendChatappMassMessageRequestSenderListProductAction = exports.SendChatappMassMessageRequestSenderListProductActionSections = exports.SendChatappMassMessageRequestSenderListProductActionSectionsProductItems = exports.SendChatappMassMessageRequestSenderListFlowAction = exports.QueryWabaBusinessInfoResponseBodyData = exports.QueryPhoneBusinessProfileResponseBodyData = exports.QueryChatappPhoneNumbersResponseBodyPhoneNumbers = exports.QueryChatappBindWabaResponseBodyData = exports.ModifyFlowResponseBodyData = exports.ModifyChatappTemplateResponseBodyData = exports.ModifyChatappTemplateRequestComponents = exports.ModifyChatappTemplateRequestComponentsCards = exports.ModifyChatappTemplateRequestComponentsCardsCardComponents = exports.ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons = exports.ModifyChatappTemplateRequestComponentsButtons = exports.ModifyChatappTemplateRequestComponentsButtonsSupportedApps = exports.ListProductCatalogResponseBodyModel = exports.ListProductCatalogResponseBodyModelPaging = exports.ListProductCatalogResponseBodyModelPagingCursors = exports.ListProductResponseBodyModel = exports.ListProductResponseBodyModelPaging = void 0;
|
|
42
|
+
exports.UpdatePhoneWebhookResponse = exports.UpdatePhoneWebhookResponseBody = exports.UpdatePhoneWebhookRequest = exports.UpdatePhoneMessageQrdlResponse = exports.UpdatePhoneMessageQrdlResponseBody = exports.UpdatePhoneMessageQrdlRequest = exports.UpdatePhoneEncryptionPublicKeyResponse = exports.UpdatePhoneEncryptionPublicKeyResponseBody = exports.UpdatePhoneEncryptionPublicKeyRequest = exports.UpdateFlowJSONAssetResponse = exports.UpdateFlowJSONAssetResponseBody = exports.UpdateFlowJSONAssetRequest = exports.UpdateConversationalAutomationResponse = exports.UpdateConversationalAutomationResponseBody = exports.UpdateConversationalAutomationShrinkRequest = exports.UpdateConversationalAutomationRequest = exports.UpdateCommerceSettingResponse = exports.UpdateCommerceSettingResponseBody = exports.UpdateCommerceSettingRequest = exports.UpdateAccountWebhookResponse = exports.UpdateAccountWebhookResponseBody = exports.UpdateAccountWebhookRequest = exports.TriggerChatFlowResponse = exports.TriggerChatFlowResponseBody = exports.TriggerChatFlowShrinkRequest = exports.TriggerChatFlowRequest = exports.SubmitIsvCustomerTermsResponse = exports.SubmitIsvCustomerTermsResponseBody = exports.SubmitIsvCustomerTermsRequest = exports.SendChatappMessageResponse = exports.SendChatappMessageResponseBody = exports.SendChatappMessageShrinkRequest = exports.SendChatappMessageRequest = exports.SendChatappMassMessageResponse = exports.SendChatappMassMessageResponseBody = exports.SendChatappMassMessageShrinkRequest = exports.SendChatappMassMessageRequest = exports.QueryWabaBusinessInfoResponse = exports.QueryWabaBusinessInfoResponseBody = exports.QueryWabaBusinessInfoRequest = exports.QueryPhoneBusinessProfileResponse = exports.QueryPhoneBusinessProfileResponseBody = exports.QueryPhoneBusinessProfileRequest = exports.QueryChatappPhoneNumbersResponse = exports.QueryChatappPhoneNumbersResponseBody = exports.QueryChatappPhoneNumbersRequest = exports.QueryChatappBindWabaResponse = exports.QueryChatappBindWabaResponseBody = exports.QueryChatappBindWabaRequest = exports.PublishFlowResponse = void 0;
|
|
43
|
+
exports.ListChatappTemplateResponseBodyListTemplate = exports.ListChatappTemplateRequestPage = exports.GetWhatsappHealthStatusResponseBodyData = exports.GetWhatsappHealthStatusResponseBodyDataEntities = exports.GetWhatsappHealthStatusResponseBodyDataEntitiesErrors = exports.GetPreValidatePhoneIdResponseBodyData = exports.GetPhoneNumberVerificationStatusResponseBodyData = exports.GetPhoneEncryptionPublicKeyResponseBodyData = exports.GetMigrationVerifyCodeResponseBodyData = exports.GetFlowPreviewUrlResponseBodyData = exports.GetFlowJSONAssestResponseBodyData = exports.GetFlowResponseBodyData = exports.GetConversationalAutomationResponseBodyData = exports.GetConversationalAutomationResponseBodyDataCommands = exports.GetCommerceSettingResponseBodyData = exports.GetChatappUploadAuthorizationResponseBodyData = exports.GetChatappTemplateMetricResponseBodyData = exports.GetChatappTemplateMetricResponseBodyDataCliented = exports.GetChatappTemplateDetailResponseBodyData = exports.GetChatappTemplateDetailResponseBodyDataComponents = exports.GetChatappTemplateDetailResponseBodyDataComponentsCards = exports.GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents = exports.GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons = exports.GetChatappTemplateDetailResponseBodyDataComponentsButtons = exports.GetChatappTemplateDetailResponseBodyDataComponentsButtonsSupportedApps = exports.GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs = exports.GetChatappPhoneNumberMetricResponseBodyData = exports.CreatePhoneMessageQrdlResponseBodyData = exports.CreateFlowResponseBodyData = exports.CreateChatappTemplateResponseBodyData = exports.CreateChatappTemplateRequestComponents = exports.CreateChatappTemplateRequestComponentsCards = exports.CreateChatappTemplateRequestComponentsCardsCardComponents = exports.CreateChatappTemplateRequestComponentsCardsCardComponentsButtons = exports.CreateChatappTemplateRequestComponentsButtons = exports.CreateChatappTemplateRequestComponentsButtonsSupportedApps = exports.CreateChatappMigrationInitiateResponseBodyData = exports.ChatappSyncPhoneNumberResponseBodyPhoneNumbers = exports.ChatappMigrationVerifiedResponseBodyData = exports.ChatappEmbedSignUpResponseBodyWabas = exports.ChatappBindWabaResponseBodyData = exports.BeeBotChatResponseBodyData = exports.BeeBotChatResponseBodyDataMessages = exports.BeeBotChatResponseBodyDataMessagesText = exports.BeeBotChatResponseBodyDataMessagesTextSlots = exports.BeeBotChatResponseBodyDataMessagesRecommends = exports.BeeBotChatResponseBodyDataMessagesKnowledge = exports.BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges = exports.BeeBotAssociateResponseBodyData = exports.BeeBotAssociateResponseBodyDataAssociate = void 0;
|
|
44
|
+
exports.UpdatePhoneMessageQrdlResponseBodyData = exports.UpdateFlowJSONAssetResponseBodyData = exports.UpdateConversationalAutomationRequestCommands = exports.SendChatappMessageRequestProductAction = exports.SendChatappMessageRequestProductActionSections = exports.SendChatappMessageRequestProductActionSectionsProductItems = exports.SendChatappMessageRequestFlowAction = exports.SendChatappMassMessageRequestSenderList = exports.SendChatappMassMessageRequestSenderListProductAction = exports.SendChatappMassMessageRequestSenderListProductActionSections = exports.SendChatappMassMessageRequestSenderListProductActionSectionsProductItems = exports.SendChatappMassMessageRequestSenderListFlowAction = exports.QueryWabaBusinessInfoResponseBodyData = exports.QueryPhoneBusinessProfileResponseBodyData = exports.QueryChatappPhoneNumbersResponseBodyPhoneNumbers = exports.QueryChatappBindWabaResponseBodyData = exports.ModifyFlowResponseBodyData = exports.ModifyChatappTemplateResponseBodyData = exports.ModifyChatappTemplateRequestComponents = exports.ModifyChatappTemplateRequestComponentsCards = exports.ModifyChatappTemplateRequestComponentsCardsCardComponents = exports.ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons = exports.ModifyChatappTemplateRequestComponentsButtons = exports.ModifyChatappTemplateRequestComponentsButtonsSupportedApps = exports.ListProductCatalogResponseBodyModel = exports.ListProductCatalogResponseBodyModelPaging = exports.ListProductCatalogResponseBodyModelPagingCursors = exports.ListProductResponseBodyModel = exports.ListProductResponseBodyModelPaging = exports.ListProductResponseBodyModelPagingCursors = exports.ListPhoneMessageQrdlResponseBodyData = exports.ListFlowResponseBodyData = exports.ListFlowRequestPage = void 0;
|
|
35
45
|
// This file is auto-generated, don't edit it
|
|
36
46
|
/**
|
|
37
47
|
*/
|
|
@@ -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) {
|
|
@@ -4142,6 +4160,116 @@ class SubmitIsvCustomerTermsResponse extends $tea.Model {
|
|
|
4142
4160
|
}
|
|
4143
4161
|
}
|
|
4144
4162
|
exports.SubmitIsvCustomerTermsResponse = SubmitIsvCustomerTermsResponse;
|
|
4163
|
+
class TriggerChatFlowRequest extends $tea.Model {
|
|
4164
|
+
static names() {
|
|
4165
|
+
return {
|
|
4166
|
+
claimTimeMillis: 'ClaimTimeMillis',
|
|
4167
|
+
data: 'Data',
|
|
4168
|
+
discardTimeMillis: 'DiscardTimeMillis',
|
|
4169
|
+
flowCode: 'FlowCode',
|
|
4170
|
+
outId: 'OutId',
|
|
4171
|
+
ownerId: 'OwnerId',
|
|
4172
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
4173
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
4174
|
+
uuid: 'Uuid',
|
|
4175
|
+
};
|
|
4176
|
+
}
|
|
4177
|
+
static types() {
|
|
4178
|
+
return {
|
|
4179
|
+
claimTimeMillis: 'number',
|
|
4180
|
+
data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
4181
|
+
discardTimeMillis: 'number',
|
|
4182
|
+
flowCode: 'string',
|
|
4183
|
+
outId: 'string',
|
|
4184
|
+
ownerId: 'number',
|
|
4185
|
+
resourceOwnerAccount: 'string',
|
|
4186
|
+
resourceOwnerId: 'number',
|
|
4187
|
+
uuid: 'string',
|
|
4188
|
+
};
|
|
4189
|
+
}
|
|
4190
|
+
constructor(map) {
|
|
4191
|
+
super(map);
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4194
|
+
exports.TriggerChatFlowRequest = TriggerChatFlowRequest;
|
|
4195
|
+
class TriggerChatFlowShrinkRequest extends $tea.Model {
|
|
4196
|
+
static names() {
|
|
4197
|
+
return {
|
|
4198
|
+
claimTimeMillis: 'ClaimTimeMillis',
|
|
4199
|
+
dataShrink: 'Data',
|
|
4200
|
+
discardTimeMillis: 'DiscardTimeMillis',
|
|
4201
|
+
flowCode: 'FlowCode',
|
|
4202
|
+
outId: 'OutId',
|
|
4203
|
+
ownerId: 'OwnerId',
|
|
4204
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
4205
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
4206
|
+
uuid: 'Uuid',
|
|
4207
|
+
};
|
|
4208
|
+
}
|
|
4209
|
+
static types() {
|
|
4210
|
+
return {
|
|
4211
|
+
claimTimeMillis: 'number',
|
|
4212
|
+
dataShrink: 'string',
|
|
4213
|
+
discardTimeMillis: 'number',
|
|
4214
|
+
flowCode: 'string',
|
|
4215
|
+
outId: 'string',
|
|
4216
|
+
ownerId: 'number',
|
|
4217
|
+
resourceOwnerAccount: 'string',
|
|
4218
|
+
resourceOwnerId: 'number',
|
|
4219
|
+
uuid: 'string',
|
|
4220
|
+
};
|
|
4221
|
+
}
|
|
4222
|
+
constructor(map) {
|
|
4223
|
+
super(map);
|
|
4224
|
+
}
|
|
4225
|
+
}
|
|
4226
|
+
exports.TriggerChatFlowShrinkRequest = TriggerChatFlowShrinkRequest;
|
|
4227
|
+
class TriggerChatFlowResponseBody extends $tea.Model {
|
|
4228
|
+
static names() {
|
|
4229
|
+
return {
|
|
4230
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
4231
|
+
code: 'Code',
|
|
4232
|
+
data: 'Data',
|
|
4233
|
+
message: 'Message',
|
|
4234
|
+
requestId: 'RequestId',
|
|
4235
|
+
success: 'Success',
|
|
4236
|
+
};
|
|
4237
|
+
}
|
|
4238
|
+
static types() {
|
|
4239
|
+
return {
|
|
4240
|
+
accessDeniedDetail: 'string',
|
|
4241
|
+
code: 'string',
|
|
4242
|
+
data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
4243
|
+
message: 'string',
|
|
4244
|
+
requestId: 'string',
|
|
4245
|
+
success: 'boolean',
|
|
4246
|
+
};
|
|
4247
|
+
}
|
|
4248
|
+
constructor(map) {
|
|
4249
|
+
super(map);
|
|
4250
|
+
}
|
|
4251
|
+
}
|
|
4252
|
+
exports.TriggerChatFlowResponseBody = TriggerChatFlowResponseBody;
|
|
4253
|
+
class TriggerChatFlowResponse extends $tea.Model {
|
|
4254
|
+
static names() {
|
|
4255
|
+
return {
|
|
4256
|
+
headers: 'headers',
|
|
4257
|
+
statusCode: 'statusCode',
|
|
4258
|
+
body: 'body',
|
|
4259
|
+
};
|
|
4260
|
+
}
|
|
4261
|
+
static types() {
|
|
4262
|
+
return {
|
|
4263
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4264
|
+
statusCode: 'number',
|
|
4265
|
+
body: TriggerChatFlowResponseBody,
|
|
4266
|
+
};
|
|
4267
|
+
}
|
|
4268
|
+
constructor(map) {
|
|
4269
|
+
super(map);
|
|
4270
|
+
}
|
|
4271
|
+
}
|
|
4272
|
+
exports.TriggerChatFlowResponse = TriggerChatFlowResponse;
|
|
4145
4273
|
class UpdateAccountWebhookRequest extends $tea.Model {
|
|
4146
4274
|
static names() {
|
|
4147
4275
|
return {
|
|
@@ -4916,6 +5044,7 @@ class ChatappSyncPhoneNumberResponseBodyPhoneNumbers extends $tea.Model {
|
|
|
4916
5044
|
static names() {
|
|
4917
5045
|
return {
|
|
4918
5046
|
codeVerificationStatus: 'CodeVerificationStatus',
|
|
5047
|
+
isOfficial: 'IsOfficial',
|
|
4919
5048
|
messagingLimitTier: 'MessagingLimitTier',
|
|
4920
5049
|
nameStatus: 'NameStatus',
|
|
4921
5050
|
newNameStatus: 'NewNameStatus',
|
|
@@ -4932,6 +5061,7 @@ class ChatappSyncPhoneNumberResponseBodyPhoneNumbers extends $tea.Model {
|
|
|
4932
5061
|
static types() {
|
|
4933
5062
|
return {
|
|
4934
5063
|
codeVerificationStatus: 'string',
|
|
5064
|
+
isOfficial: 'string',
|
|
4935
5065
|
messagingLimitTier: 'string',
|
|
4936
5066
|
nameStatus: 'string',
|
|
4937
5067
|
newNameStatus: 'string',
|
|
@@ -6268,6 +6398,7 @@ class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $tea.Model {
|
|
|
6268
6398
|
static names() {
|
|
6269
6399
|
return {
|
|
6270
6400
|
codeVerificationStatus: 'CodeVerificationStatus',
|
|
6401
|
+
isOfficial: 'IsOfficial',
|
|
6271
6402
|
messagingLimitTier: 'MessagingLimitTier',
|
|
6272
6403
|
nameStatus: 'NameStatus',
|
|
6273
6404
|
newNameStatus: 'NewNameStatus',
|
|
@@ -6284,6 +6415,7 @@ class QueryChatappPhoneNumbersResponseBodyPhoneNumbers extends $tea.Model {
|
|
|
6284
6415
|
static types() {
|
|
6285
6416
|
return {
|
|
6286
6417
|
codeVerificationStatus: 'string',
|
|
6418
|
+
isOfficial: 'string',
|
|
6287
6419
|
messagingLimitTier: 'string',
|
|
6288
6420
|
nameStatus: 'string',
|
|
6289
6421
|
newNameStatus: 'string',
|
|
@@ -6595,9 +6727,6 @@ class Client extends openapi_client_1.default {
|
|
|
6595
6727
|
/**
|
|
6596
6728
|
* Adds a phone number for a WhatsApp Business account (WABA).
|
|
6597
6729
|
*
|
|
6598
|
-
* @remarks
|
|
6599
|
-
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
6600
|
-
*
|
|
6601
6730
|
* @param request - AddChatappPhoneNumberRequest
|
|
6602
6731
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
6603
6732
|
* @returns AddChatappPhoneNumberResponse
|
|
@@ -6643,14 +6772,16 @@ class Client extends openapi_client_1.default {
|
|
|
6643
6772
|
reqBodyType: "formData",
|
|
6644
6773
|
bodyType: "json",
|
|
6645
6774
|
});
|
|
6646
|
-
|
|
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
|
+
}
|
|
6647
6781
|
}
|
|
6648
6782
|
/**
|
|
6649
6783
|
* Adds a phone number for a WhatsApp Business account (WABA).
|
|
6650
6784
|
*
|
|
6651
|
-
* @remarks
|
|
6652
|
-
* You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
6653
|
-
*
|
|
6654
6785
|
* @param request - AddChatappPhoneNumberRequest
|
|
6655
6786
|
* @returns AddChatappPhoneNumberResponse
|
|
6656
6787
|
*/
|
|
@@ -6711,7 +6842,12 @@ class Client extends openapi_client_1.default {
|
|
|
6711
6842
|
reqBodyType: "formData",
|
|
6712
6843
|
bodyType: "json",
|
|
6713
6844
|
});
|
|
6714
|
-
|
|
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
|
+
}
|
|
6715
6851
|
}
|
|
6716
6852
|
/**
|
|
6717
6853
|
* Associates FAQs in the knowledge base.
|
|
@@ -6730,7 +6866,7 @@ class Client extends openapi_client_1.default {
|
|
|
6730
6866
|
* Conducts sessions with the bot based on its unique identifier (ID).
|
|
6731
6867
|
*
|
|
6732
6868
|
* @remarks
|
|
6733
|
-
*
|
|
6869
|
+
* The ID of the session.
|
|
6734
6870
|
*
|
|
6735
6871
|
* @param tmpReq - BeeBotChatRequest
|
|
6736
6872
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6794,13 +6930,18 @@ class Client extends openapi_client_1.default {
|
|
|
6794
6930
|
reqBodyType: "formData",
|
|
6795
6931
|
bodyType: "json",
|
|
6796
6932
|
});
|
|
6797
|
-
|
|
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
|
+
}
|
|
6798
6939
|
}
|
|
6799
6940
|
/**
|
|
6800
6941
|
* Conducts sessions with the bot based on its unique identifier (ID).
|
|
6801
6942
|
*
|
|
6802
6943
|
* @remarks
|
|
6803
|
-
*
|
|
6944
|
+
* The ID of the session.
|
|
6804
6945
|
*
|
|
6805
6946
|
* @param request - BeeBotChatRequest
|
|
6806
6947
|
* @returns BeeBotChatResponse
|
|
@@ -6848,7 +6989,12 @@ class Client extends openapi_client_1.default {
|
|
|
6848
6989
|
reqBodyType: "formData",
|
|
6849
6990
|
bodyType: "json",
|
|
6850
6991
|
});
|
|
6851
|
-
|
|
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
|
+
}
|
|
6852
6998
|
}
|
|
6853
6999
|
/**
|
|
6854
7000
|
* Binds the WhatsApp Business account with ChatApp.
|
|
@@ -6893,7 +7039,12 @@ class Client extends openapi_client_1.default {
|
|
|
6893
7039
|
reqBodyType: "formData",
|
|
6894
7040
|
bodyType: "json",
|
|
6895
7041
|
});
|
|
6896
|
-
|
|
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
|
+
}
|
|
6897
7048
|
}
|
|
6898
7049
|
/**
|
|
6899
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.
|
|
@@ -6912,7 +7063,7 @@ class Client extends openapi_client_1.default {
|
|
|
6912
7063
|
* Registers a phone number for migration.
|
|
6913
7064
|
*
|
|
6914
7065
|
* @remarks
|
|
6915
|
-
*
|
|
7066
|
+
* The space ID of the RAM user within the independent software vendor (ISV) account.
|
|
6916
7067
|
*
|
|
6917
7068
|
* @param request - ChatappMigrationRegisterRequest
|
|
6918
7069
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6941,13 +7092,18 @@ class Client extends openapi_client_1.default {
|
|
|
6941
7092
|
reqBodyType: "formData",
|
|
6942
7093
|
bodyType: "json",
|
|
6943
7094
|
});
|
|
6944
|
-
|
|
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
|
+
}
|
|
6945
7101
|
}
|
|
6946
7102
|
/**
|
|
6947
7103
|
* Registers a phone number for migration.
|
|
6948
7104
|
*
|
|
6949
7105
|
* @remarks
|
|
6950
|
-
*
|
|
7106
|
+
* The space ID of the RAM user within the independent software vendor (ISV) account.
|
|
6951
7107
|
*
|
|
6952
7108
|
* @param request - ChatappMigrationRegisterRequest
|
|
6953
7109
|
* @returns ChatappMigrationRegisterResponse
|
|
@@ -6992,7 +7148,12 @@ class Client extends openapi_client_1.default {
|
|
|
6992
7148
|
reqBodyType: "formData",
|
|
6993
7149
|
bodyType: "json",
|
|
6994
7150
|
});
|
|
6995
|
-
|
|
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
|
+
}
|
|
6996
7157
|
}
|
|
6997
7158
|
/**
|
|
6998
7159
|
* Verifies a specified phone number for migration.
|
|
@@ -7040,7 +7201,12 @@ class Client extends openapi_client_1.default {
|
|
|
7040
7201
|
reqBodyType: "formData",
|
|
7041
7202
|
bodyType: "json",
|
|
7042
7203
|
});
|
|
7043
|
-
|
|
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
|
+
}
|
|
7044
7210
|
}
|
|
7045
7211
|
/**
|
|
7046
7212
|
* Deregisters a phone number from a WhatsApp Business account (WABA).
|
|
@@ -7097,7 +7263,12 @@ class Client extends openapi_client_1.default {
|
|
|
7097
7263
|
reqBodyType: "formData",
|
|
7098
7264
|
bodyType: "json",
|
|
7099
7265
|
});
|
|
7100
|
-
|
|
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
|
+
}
|
|
7101
7272
|
}
|
|
7102
7273
|
/**
|
|
7103
7274
|
* Registers a phone number.
|
|
@@ -7151,7 +7322,12 @@ class Client extends openapi_client_1.default {
|
|
|
7151
7322
|
reqBodyType: "formData",
|
|
7152
7323
|
bodyType: "json",
|
|
7153
7324
|
});
|
|
7154
|
-
|
|
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
|
+
}
|
|
7155
7331
|
}
|
|
7156
7332
|
/**
|
|
7157
7333
|
* Synchronizes phone numbers.
|
|
@@ -7211,7 +7387,12 @@ class Client extends openapi_client_1.default {
|
|
|
7211
7387
|
reqBodyType: "formData",
|
|
7212
7388
|
bodyType: "json",
|
|
7213
7389
|
});
|
|
7214
|
-
|
|
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
|
+
}
|
|
7215
7396
|
}
|
|
7216
7397
|
/**
|
|
7217
7398
|
* Associates a phone number with a WhatsApp Business account (WABA).
|
|
@@ -7262,7 +7443,12 @@ class Client extends openapi_client_1.default {
|
|
|
7262
7443
|
reqBodyType: "formData",
|
|
7263
7444
|
bodyType: "json",
|
|
7264
7445
|
});
|
|
7265
|
-
|
|
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
|
+
}
|
|
7266
7452
|
}
|
|
7267
7453
|
/**
|
|
7268
7454
|
* The ID of the number.
|
|
@@ -7279,11 +7465,12 @@ class Client extends openapi_client_1.default {
|
|
|
7279
7465
|
}
|
|
7280
7466
|
/**
|
|
7281
7467
|
* The HTTP status code.
|
|
7282
|
-
*
|
|
7283
|
-
*
|
|
7468
|
+
* \\\\\\\\* Example: OK. This parameter indicates that the request is successful.
|
|
7469
|
+
* \\\\\\\\* Other values indicate that the request fails. For more information, see \\\\\\[Error codes]\\\\\\(https://www.alibabacloud.com/help/zh/cams/latest/api-error-codes).
|
|
7284
7470
|
*
|
|
7285
7471
|
* @remarks
|
|
7286
|
-
*
|
|
7472
|
+
* ### [](#qps-)QPS limit
|
|
7473
|
+
* You can call this operation up to 50 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
7287
7474
|
*
|
|
7288
7475
|
* @param tmpReq - CreateChatappTemplateRequest
|
|
7289
7476
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -7347,15 +7534,21 @@ class Client extends openapi_client_1.default {
|
|
|
7347
7534
|
reqBodyType: "formData",
|
|
7348
7535
|
bodyType: "json",
|
|
7349
7536
|
});
|
|
7350
|
-
|
|
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
|
+
}
|
|
7351
7543
|
}
|
|
7352
7544
|
/**
|
|
7353
7545
|
* The HTTP status code.
|
|
7354
|
-
*
|
|
7355
|
-
*
|
|
7546
|
+
* \\\\\\\\* Example: OK. This parameter indicates that the request is successful.
|
|
7547
|
+
* \\\\\\\\* Other values indicate that the request fails. For more information, see \\\\\\[Error codes]\\\\\\(https://www.alibabacloud.com/help/zh/cams/latest/api-error-codes).
|
|
7356
7548
|
*
|
|
7357
7549
|
* @remarks
|
|
7358
|
-
*
|
|
7550
|
+
* ### [](#qps-)QPS limit
|
|
7551
|
+
* You can call this operation up to 50 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
7359
7552
|
*
|
|
7360
7553
|
* @param request - CreateChatappTemplateRequest
|
|
7361
7554
|
* @returns CreateChatappTemplateResponse
|
|
@@ -7405,7 +7598,12 @@ class Client extends openapi_client_1.default {
|
|
|
7405
7598
|
reqBodyType: "formData",
|
|
7406
7599
|
bodyType: "json",
|
|
7407
7600
|
});
|
|
7408
|
-
|
|
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
|
+
}
|
|
7409
7607
|
}
|
|
7410
7608
|
/**
|
|
7411
7609
|
* Creates a Flow.
|
|
@@ -7421,7 +7619,7 @@ class Client extends openapi_client_1.default {
|
|
|
7421
7619
|
return await this.createFlowWithOptions(request, runtime);
|
|
7422
7620
|
}
|
|
7423
7621
|
/**
|
|
7424
|
-
*
|
|
7622
|
+
* Creates a quick-response (QR) code that contains a message.
|
|
7425
7623
|
*
|
|
7426
7624
|
* @param request - CreatePhoneMessageQrdlRequest
|
|
7427
7625
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -7456,10 +7654,15 @@ class Client extends openapi_client_1.default {
|
|
|
7456
7654
|
reqBodyType: "formData",
|
|
7457
7655
|
bodyType: "json",
|
|
7458
7656
|
});
|
|
7459
|
-
|
|
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
|
+
}
|
|
7460
7663
|
}
|
|
7461
7664
|
/**
|
|
7462
|
-
*
|
|
7665
|
+
* Creates a quick-response (QR) code that contains a message.
|
|
7463
7666
|
*
|
|
7464
7667
|
* @param request - CreatePhoneMessageQrdlRequest
|
|
7465
7668
|
* @returns CreatePhoneMessageQrdlResponse
|
|
@@ -7526,7 +7729,12 @@ class Client extends openapi_client_1.default {
|
|
|
7526
7729
|
reqBodyType: "formData",
|
|
7527
7730
|
bodyType: "json",
|
|
7528
7731
|
});
|
|
7529
|
-
|
|
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
|
+
}
|
|
7530
7738
|
}
|
|
7531
7739
|
/**
|
|
7532
7740
|
* Deletes a message template.
|
|
@@ -7575,7 +7783,12 @@ class Client extends openapi_client_1.default {
|
|
|
7575
7783
|
reqBodyType: "formData",
|
|
7576
7784
|
bodyType: "json",
|
|
7577
7785
|
});
|
|
7578
|
-
|
|
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
|
+
}
|
|
7579
7792
|
}
|
|
7580
7793
|
/**
|
|
7581
7794
|
* Deletes a Flow. Only Flows in the DRAFT state can be deleted.
|
|
@@ -7591,7 +7804,7 @@ class Client extends openapi_client_1.default {
|
|
|
7591
7804
|
return await this.deleteFlowWithOptions(request, runtime);
|
|
7592
7805
|
}
|
|
7593
7806
|
/**
|
|
7594
|
-
*
|
|
7807
|
+
* Deletes a quick-response (QR) code that contains a message.
|
|
7595
7808
|
*
|
|
7596
7809
|
* @param request - DeletePhoneMessageQrdlRequest
|
|
7597
7810
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -7623,10 +7836,15 @@ class Client extends openapi_client_1.default {
|
|
|
7623
7836
|
reqBodyType: "formData",
|
|
7624
7837
|
bodyType: "json",
|
|
7625
7838
|
});
|
|
7626
|
-
|
|
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
|
+
}
|
|
7627
7845
|
}
|
|
7628
7846
|
/**
|
|
7629
|
-
*
|
|
7847
|
+
* Deletes a quick-response (QR) code that contains a message.
|
|
7630
7848
|
*
|
|
7631
7849
|
* @param request - DeletePhoneMessageQrdlRequest
|
|
7632
7850
|
* @returns DeletePhoneMessageQrdlResponse
|
|
@@ -7636,7 +7854,7 @@ class Client extends openapi_client_1.default {
|
|
|
7636
7854
|
return await this.deletePhoneMessageQrdlWithOptions(request, runtime);
|
|
7637
7855
|
}
|
|
7638
7856
|
/**
|
|
7639
|
-
*
|
|
7857
|
+
* Deprecates a Flow.
|
|
7640
7858
|
*
|
|
7641
7859
|
* @param request - DeprecateFlowRequest
|
|
7642
7860
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -7665,10 +7883,15 @@ class Client extends openapi_client_1.default {
|
|
|
7665
7883
|
reqBodyType: "formData",
|
|
7666
7884
|
bodyType: "json",
|
|
7667
7885
|
});
|
|
7668
|
-
|
|
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
|
+
}
|
|
7669
7892
|
}
|
|
7670
7893
|
/**
|
|
7671
|
-
*
|
|
7894
|
+
* Deprecates a Flow.
|
|
7672
7895
|
*
|
|
7673
7896
|
* @param request - DeprecateFlowRequest
|
|
7674
7897
|
* @returns DeprecateFlowResponse
|
|
@@ -7710,7 +7933,12 @@ class Client extends openapi_client_1.default {
|
|
|
7710
7933
|
reqBodyType: "formData",
|
|
7711
7934
|
bodyType: "json",
|
|
7712
7935
|
});
|
|
7713
|
-
|
|
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
|
+
}
|
|
7714
7942
|
}
|
|
7715
7943
|
/**
|
|
7716
7944
|
* Enables the statistics on the metrics that are related to WhatsApp.
|
|
@@ -7770,7 +7998,12 @@ class Client extends openapi_client_1.default {
|
|
|
7770
7998
|
reqBodyType: "formData",
|
|
7771
7999
|
bodyType: "json",
|
|
7772
8000
|
});
|
|
7773
|
-
|
|
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
|
+
}
|
|
7774
8007
|
}
|
|
7775
8008
|
/**
|
|
7776
8009
|
* Queries the number of messages that are sent by using a phone number by a specific metric.
|
|
@@ -7834,7 +8067,12 @@ class Client extends openapi_client_1.default {
|
|
|
7834
8067
|
reqBodyType: "formData",
|
|
7835
8068
|
bodyType: "json",
|
|
7836
8069
|
});
|
|
7837
|
-
|
|
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
|
+
}
|
|
7838
8076
|
}
|
|
7839
8077
|
/**
|
|
7840
8078
|
* Queries the information of a message template.
|
|
@@ -7901,7 +8139,12 @@ class Client extends openapi_client_1.default {
|
|
|
7901
8139
|
reqBodyType: "formData",
|
|
7902
8140
|
bodyType: "json",
|
|
7903
8141
|
});
|
|
7904
|
-
|
|
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
|
+
}
|
|
7905
8148
|
}
|
|
7906
8149
|
/**
|
|
7907
8150
|
* Queries the metrics about a marketing template.
|
|
@@ -7946,7 +8189,12 @@ class Client extends openapi_client_1.default {
|
|
|
7946
8189
|
reqBodyType: "formData",
|
|
7947
8190
|
bodyType: "json",
|
|
7948
8191
|
});
|
|
7949
|
-
|
|
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
|
+
}
|
|
7950
8198
|
}
|
|
7951
8199
|
/**
|
|
7952
8200
|
* Obtains the authentication information that is used to upload a file.
|
|
@@ -8009,7 +8257,12 @@ class Client extends openapi_client_1.default {
|
|
|
8009
8257
|
reqBodyType: "formData",
|
|
8010
8258
|
bodyType: "json",
|
|
8011
8259
|
});
|
|
8012
|
-
|
|
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
|
+
}
|
|
8013
8266
|
}
|
|
8014
8267
|
/**
|
|
8015
8268
|
* Obtains a verification code.
|
|
@@ -8066,7 +8319,12 @@ class Client extends openapi_client_1.default {
|
|
|
8066
8319
|
reqBodyType: "formData",
|
|
8067
8320
|
bodyType: "json",
|
|
8068
8321
|
});
|
|
8069
|
-
|
|
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
|
+
}
|
|
8070
8328
|
}
|
|
8071
8329
|
/**
|
|
8072
8330
|
* Queries the business settings of a phone number.
|
|
@@ -8082,7 +8340,12 @@ class Client extends openapi_client_1.default {
|
|
|
8082
8340
|
return await this.getCommerceSettingWithOptions(request, runtime);
|
|
8083
8341
|
}
|
|
8084
8342
|
/**
|
|
8085
|
-
*
|
|
8343
|
+
* Configures welcoming messages, opening remarks, and commands.
|
|
8344
|
+
*
|
|
8345
|
+
* @remarks
|
|
8346
|
+
* ### [](#qps-)QPS limit
|
|
8347
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
8348
|
+
* This operation will directly obtain data from Facebook, which sets an upper limit on the total number of calls for operations. We recommend that you take note of the limit when you call this operation.
|
|
8086
8349
|
*
|
|
8087
8350
|
* @param request - GetConversationalAutomationRequest
|
|
8088
8351
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -8120,10 +8383,20 @@ class Client extends openapi_client_1.default {
|
|
|
8120
8383
|
reqBodyType: "formData",
|
|
8121
8384
|
bodyType: "json",
|
|
8122
8385
|
});
|
|
8123
|
-
|
|
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
|
+
}
|
|
8124
8392
|
}
|
|
8125
8393
|
/**
|
|
8126
|
-
*
|
|
8394
|
+
* Configures welcoming messages, opening remarks, and commands.
|
|
8395
|
+
*
|
|
8396
|
+
* @remarks
|
|
8397
|
+
* ### [](#qps-)QPS limit
|
|
8398
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
8399
|
+
* This operation will directly obtain data from Facebook, which sets an upper limit on the total number of calls for operations. We recommend that you take note of the limit when you call this operation.
|
|
8127
8400
|
*
|
|
8128
8401
|
* @param request - GetConversationalAutomationRequest
|
|
8129
8402
|
* @returns GetConversationalAutomationResponse
|
|
@@ -8165,7 +8438,12 @@ class Client extends openapi_client_1.default {
|
|
|
8165
8438
|
reqBodyType: "formData",
|
|
8166
8439
|
bodyType: "json",
|
|
8167
8440
|
});
|
|
8168
|
-
|
|
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
|
+
}
|
|
8169
8447
|
}
|
|
8170
8448
|
/**
|
|
8171
8449
|
* Queries the information about a Flow.
|
|
@@ -8181,7 +8459,7 @@ class Client extends openapi_client_1.default {
|
|
|
8181
8459
|
return await this.getFlowWithOptions(request, runtime);
|
|
8182
8460
|
}
|
|
8183
8461
|
/**
|
|
8184
|
-
*
|
|
8462
|
+
* Queries the JSON content of a Flow.
|
|
8185
8463
|
*
|
|
8186
8464
|
* @param request - GetFlowJSONAssestRequest
|
|
8187
8465
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -8210,10 +8488,15 @@ class Client extends openapi_client_1.default {
|
|
|
8210
8488
|
reqBodyType: "formData",
|
|
8211
8489
|
bodyType: "json",
|
|
8212
8490
|
});
|
|
8213
|
-
|
|
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
|
+
}
|
|
8214
8497
|
}
|
|
8215
8498
|
/**
|
|
8216
|
-
*
|
|
8499
|
+
* Queries the JSON content of a Flow.
|
|
8217
8500
|
*
|
|
8218
8501
|
* @param request - GetFlowJSONAssestRequest
|
|
8219
8502
|
* @returns GetFlowJSONAssestResponse
|
|
@@ -8255,7 +8538,12 @@ class Client extends openapi_client_1.default {
|
|
|
8255
8538
|
reqBodyType: "formData",
|
|
8256
8539
|
bodyType: "json",
|
|
8257
8540
|
});
|
|
8258
|
-
|
|
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
|
+
}
|
|
8259
8547
|
}
|
|
8260
8548
|
/**
|
|
8261
8549
|
* Obtains the preview URL of a Flow.
|
|
@@ -8271,10 +8559,10 @@ class Client extends openapi_client_1.default {
|
|
|
8271
8559
|
return await this.getFlowPreviewUrlWithOptions(request, runtime);
|
|
8272
8560
|
}
|
|
8273
8561
|
/**
|
|
8274
|
-
*
|
|
8562
|
+
* Obtain the verification code for the migration number.
|
|
8275
8563
|
*
|
|
8276
8564
|
* @remarks
|
|
8277
|
-
* The
|
|
8565
|
+
* The single user QPS limit for this interface is 10 times per second. Exceeding the limit may result in restricted API calls, which may affect your business. Please make reasonable calls.
|
|
8278
8566
|
*
|
|
8279
8567
|
* @param request - GetMigrationVerifyCodeRequest
|
|
8280
8568
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -8309,13 +8597,18 @@ class Client extends openapi_client_1.default {
|
|
|
8309
8597
|
reqBodyType: "formData",
|
|
8310
8598
|
bodyType: "json",
|
|
8311
8599
|
});
|
|
8312
|
-
|
|
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
|
+
}
|
|
8313
8606
|
}
|
|
8314
8607
|
/**
|
|
8315
|
-
*
|
|
8608
|
+
* Obtain the verification code for the migration number.
|
|
8316
8609
|
*
|
|
8317
8610
|
* @remarks
|
|
8318
|
-
* The
|
|
8611
|
+
* The single user QPS limit for this interface is 10 times per second. Exceeding the limit may result in restricted API calls, which may affect your business. Please make reasonable calls.
|
|
8319
8612
|
*
|
|
8320
8613
|
* @param request - GetMigrationVerifyCodeRequest
|
|
8321
8614
|
* @returns GetMigrationVerifyCodeResponse
|
|
@@ -8325,7 +8618,7 @@ class Client extends openapi_client_1.default {
|
|
|
8325
8618
|
return await this.getMigrationVerifyCodeWithOptions(request, runtime);
|
|
8326
8619
|
}
|
|
8327
8620
|
/**
|
|
8328
|
-
*
|
|
8621
|
+
* Obtains permissions based on the authorization code obtained from embedded signup.
|
|
8329
8622
|
*
|
|
8330
8623
|
* @param tmpReq - GetPermissionByCodeRequest
|
|
8331
8624
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -8362,10 +8655,15 @@ class Client extends openapi_client_1.default {
|
|
|
8362
8655
|
reqBodyType: "formData",
|
|
8363
8656
|
bodyType: "json",
|
|
8364
8657
|
});
|
|
8365
|
-
|
|
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
|
+
}
|
|
8366
8664
|
}
|
|
8367
8665
|
/**
|
|
8368
|
-
*
|
|
8666
|
+
* Obtains permissions based on the authorization code obtained from embedded signup.
|
|
8369
8667
|
*
|
|
8370
8668
|
* @param request - GetPermissionByCodeRequest
|
|
8371
8669
|
* @returns GetPermissionByCodeResponse
|
|
@@ -8375,7 +8673,7 @@ class Client extends openapi_client_1.default {
|
|
|
8375
8673
|
return await this.getPermissionByCodeWithOptions(request, runtime);
|
|
8376
8674
|
}
|
|
8377
8675
|
/**
|
|
8378
|
-
*
|
|
8676
|
+
* Queries the encryption public key of a phone number.
|
|
8379
8677
|
*
|
|
8380
8678
|
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
8381
8679
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -8404,10 +8702,15 @@ class Client extends openapi_client_1.default {
|
|
|
8404
8702
|
reqBodyType: "formData",
|
|
8405
8703
|
bodyType: "json",
|
|
8406
8704
|
});
|
|
8407
|
-
|
|
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
|
+
}
|
|
8408
8711
|
}
|
|
8409
8712
|
/**
|
|
8410
|
-
*
|
|
8713
|
+
* Queries the encryption public key of a phone number.
|
|
8411
8714
|
*
|
|
8412
8715
|
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
8413
8716
|
* @returns GetPhoneEncryptionPublicKeyResponse
|
|
@@ -8449,7 +8752,12 @@ class Client extends openapi_client_1.default {
|
|
|
8449
8752
|
reqBodyType: "formData",
|
|
8450
8753
|
bodyType: "json",
|
|
8451
8754
|
});
|
|
8452
|
-
|
|
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
|
+
}
|
|
8453
8761
|
}
|
|
8454
8762
|
/**
|
|
8455
8763
|
* Obtains the verification status of a phone number.
|
|
@@ -8497,7 +8805,12 @@ class Client extends openapi_client_1.default {
|
|
|
8497
8805
|
reqBodyType: "formData",
|
|
8498
8806
|
bodyType: "json",
|
|
8499
8807
|
});
|
|
8500
|
-
|
|
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
|
+
}
|
|
8501
8814
|
}
|
|
8502
8815
|
/**
|
|
8503
8816
|
* Obtains the ID of a pre-registered phone number used for embedded signup without the need to re-obtain a verification code.
|
|
@@ -8554,7 +8867,12 @@ class Client extends openapi_client_1.default {
|
|
|
8554
8867
|
reqBodyType: "formData",
|
|
8555
8868
|
bodyType: "json",
|
|
8556
8869
|
});
|
|
8557
|
-
|
|
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
|
+
}
|
|
8558
8876
|
}
|
|
8559
8877
|
/**
|
|
8560
8878
|
* Queries the product catalogs that are associated with a WhatsApp Business account (WABA).
|
|
@@ -8570,7 +8888,12 @@ class Client extends openapi_client_1.default {
|
|
|
8570
8888
|
return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
|
|
8571
8889
|
}
|
|
8572
8890
|
/**
|
|
8573
|
-
*
|
|
8891
|
+
* Queries the messaging health status of different types of nodes.
|
|
8892
|
+
*
|
|
8893
|
+
* @remarks
|
|
8894
|
+
* ### [](#qps-)QPS limit
|
|
8895
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
8896
|
+
* This operation will directly obtain data from Facebook, which sets an upper limit on the total number of calls for operations. We recommend that you take note of the limit when you call this operation.
|
|
8574
8897
|
*
|
|
8575
8898
|
* @param request - GetWhatsappHealthStatusRequest
|
|
8576
8899
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -8620,10 +8943,20 @@ class Client extends openapi_client_1.default {
|
|
|
8620
8943
|
reqBodyType: "formData",
|
|
8621
8944
|
bodyType: "json",
|
|
8622
8945
|
});
|
|
8623
|
-
|
|
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
|
+
}
|
|
8624
8952
|
}
|
|
8625
8953
|
/**
|
|
8626
|
-
*
|
|
8954
|
+
* Queries the messaging health status of different types of nodes.
|
|
8955
|
+
*
|
|
8956
|
+
* @remarks
|
|
8957
|
+
* ### [](#qps-)QPS limit
|
|
8958
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
8959
|
+
* This operation will directly obtain data from Facebook, which sets an upper limit on the total number of calls for operations. We recommend that you take note of the limit when you call this operation.
|
|
8627
8960
|
*
|
|
8628
8961
|
* @param request - GetWhatsappHealthStatusRequest
|
|
8629
8962
|
* @returns GetWhatsappHealthStatusResponse
|
|
@@ -8665,7 +8998,12 @@ class Client extends openapi_client_1.default {
|
|
|
8665
8998
|
reqBodyType: "formData",
|
|
8666
8999
|
bodyType: "json",
|
|
8667
9000
|
});
|
|
8668
|
-
|
|
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
|
+
}
|
|
8669
9007
|
}
|
|
8670
9008
|
/**
|
|
8671
9009
|
* Obtains the application ID under the ISV account.
|
|
@@ -8740,7 +9078,12 @@ class Client extends openapi_client_1.default {
|
|
|
8740
9078
|
reqBodyType: "formData",
|
|
8741
9079
|
bodyType: "json",
|
|
8742
9080
|
});
|
|
8743
|
-
|
|
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
|
+
}
|
|
8744
9087
|
}
|
|
8745
9088
|
/**
|
|
8746
9089
|
* Queries message templates.
|
|
@@ -8797,7 +9140,12 @@ class Client extends openapi_client_1.default {
|
|
|
8797
9140
|
reqBodyType: "formData",
|
|
8798
9141
|
bodyType: "json",
|
|
8799
9142
|
});
|
|
8800
|
-
|
|
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
|
+
}
|
|
8801
9149
|
}
|
|
8802
9150
|
/**
|
|
8803
9151
|
* Queries a list of Flows.
|
|
@@ -8813,7 +9161,7 @@ class Client extends openapi_client_1.default {
|
|
|
8813
9161
|
return await this.listFlowWithOptions(request, runtime);
|
|
8814
9162
|
}
|
|
8815
9163
|
/**
|
|
8816
|
-
*
|
|
9164
|
+
* Queries the information about a list of quick-response (QR) codes that contain messages.
|
|
8817
9165
|
*
|
|
8818
9166
|
* @param request - ListPhoneMessageQrdlRequest
|
|
8819
9167
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -8842,10 +9190,15 @@ class Client extends openapi_client_1.default {
|
|
|
8842
9190
|
reqBodyType: "formData",
|
|
8843
9191
|
bodyType: "json",
|
|
8844
9192
|
});
|
|
8845
|
-
|
|
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
|
+
}
|
|
8846
9199
|
}
|
|
8847
9200
|
/**
|
|
8848
|
-
*
|
|
9201
|
+
* Queries the information about a list of quick-response (QR) codes that contain messages.
|
|
8849
9202
|
*
|
|
8850
9203
|
* @param request - ListPhoneMessageQrdlRequest
|
|
8851
9204
|
* @returns ListPhoneMessageQrdlResponse
|
|
@@ -8911,7 +9264,12 @@ class Client extends openapi_client_1.default {
|
|
|
8911
9264
|
reqBodyType: "formData",
|
|
8912
9265
|
bodyType: "json",
|
|
8913
9266
|
});
|
|
8914
|
-
|
|
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
|
+
}
|
|
8915
9273
|
}
|
|
8916
9274
|
/**
|
|
8917
9275
|
* Queries products in a product catalog.
|
|
@@ -8980,7 +9338,12 @@ class Client extends openapi_client_1.default {
|
|
|
8980
9338
|
reqBodyType: "formData",
|
|
8981
9339
|
bodyType: "json",
|
|
8982
9340
|
});
|
|
8983
|
-
|
|
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
|
+
}
|
|
8984
9347
|
}
|
|
8985
9348
|
/**
|
|
8986
9349
|
* Queries the product catalogs on the Business Manager platform of Meta.
|
|
@@ -9063,7 +9426,12 @@ class Client extends openapi_client_1.default {
|
|
|
9063
9426
|
reqBodyType: "formData",
|
|
9064
9427
|
bodyType: "json",
|
|
9065
9428
|
});
|
|
9066
|
-
|
|
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
|
+
}
|
|
9067
9435
|
}
|
|
9068
9436
|
/**
|
|
9069
9437
|
* The code of the message template.
|
|
@@ -9122,7 +9490,12 @@ class Client extends openapi_client_1.default {
|
|
|
9122
9490
|
reqBodyType: "formData",
|
|
9123
9491
|
bodyType: "json",
|
|
9124
9492
|
});
|
|
9125
|
-
|
|
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
|
+
}
|
|
9126
9499
|
}
|
|
9127
9500
|
/**
|
|
9128
9501
|
* Modifies the basic information about a Flow.
|
|
@@ -9205,7 +9578,12 @@ class Client extends openapi_client_1.default {
|
|
|
9205
9578
|
reqBodyType: "formData",
|
|
9206
9579
|
bodyType: "json",
|
|
9207
9580
|
});
|
|
9208
|
-
|
|
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
|
+
}
|
|
9209
9587
|
}
|
|
9210
9588
|
/**
|
|
9211
9589
|
* The ID of the request.
|
|
@@ -9253,7 +9631,12 @@ class Client extends openapi_client_1.default {
|
|
|
9253
9631
|
reqBodyType: "formData",
|
|
9254
9632
|
bodyType: "json",
|
|
9255
9633
|
});
|
|
9256
|
-
|
|
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
|
+
}
|
|
9257
9640
|
}
|
|
9258
9641
|
/**
|
|
9259
9642
|
* Publishes a Flow.
|
|
@@ -9310,7 +9693,12 @@ class Client extends openapi_client_1.default {
|
|
|
9310
9693
|
reqBodyType: "formData",
|
|
9311
9694
|
bodyType: "json",
|
|
9312
9695
|
});
|
|
9313
|
-
|
|
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
|
+
}
|
|
9314
9702
|
}
|
|
9315
9703
|
/**
|
|
9316
9704
|
* Query the WhatsApp Business account you associate with ChatApp.
|
|
@@ -9344,6 +9732,15 @@ class Client extends openapi_client_1.default {
|
|
|
9344
9732
|
if (!tea_util_1.default.isUnset(request.isvCode)) {
|
|
9345
9733
|
query["IsvCode"] = request.isvCode;
|
|
9346
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
|
+
}
|
|
9347
9744
|
if (!tea_util_1.default.isUnset(request.status)) {
|
|
9348
9745
|
query["Status"] = request.status;
|
|
9349
9746
|
}
|
|
@@ -9361,7 +9758,12 @@ class Client extends openapi_client_1.default {
|
|
|
9361
9758
|
reqBodyType: "formData",
|
|
9362
9759
|
bodyType: "json",
|
|
9363
9760
|
});
|
|
9364
|
-
|
|
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
|
+
}
|
|
9365
9767
|
}
|
|
9366
9768
|
/**
|
|
9367
9769
|
* Queries phone numbers that receive messages and statuses of these numbers under a specified user.
|
|
@@ -9418,7 +9820,12 @@ class Client extends openapi_client_1.default {
|
|
|
9418
9820
|
reqBodyType: "formData",
|
|
9419
9821
|
bodyType: "json",
|
|
9420
9822
|
});
|
|
9421
|
-
|
|
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
|
+
}
|
|
9422
9829
|
}
|
|
9423
9830
|
/**
|
|
9424
9831
|
* Queries the business information of the account to which a specified phone number is bound.
|
|
@@ -9475,7 +9882,12 @@ class Client extends openapi_client_1.default {
|
|
|
9475
9882
|
reqBodyType: "formData",
|
|
9476
9883
|
bodyType: "json",
|
|
9477
9884
|
});
|
|
9478
|
-
|
|
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
|
+
}
|
|
9479
9891
|
}
|
|
9480
9892
|
/**
|
|
9481
9893
|
* Queries the business information about the WhatsApp Business account (WABA).
|
|
@@ -9574,7 +9986,12 @@ class Client extends openapi_client_1.default {
|
|
|
9574
9986
|
reqBodyType: "formData",
|
|
9575
9987
|
bodyType: "json",
|
|
9576
9988
|
});
|
|
9577
|
-
|
|
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
|
+
}
|
|
9578
9995
|
}
|
|
9579
9996
|
/**
|
|
9580
9997
|
* Sends a message to multiple phone numbers by using ChatAPP at a time.
|
|
@@ -9711,7 +10128,12 @@ class Client extends openapi_client_1.default {
|
|
|
9711
10128
|
reqBodyType: "formData",
|
|
9712
10129
|
bodyType: "json",
|
|
9713
10130
|
});
|
|
9714
|
-
|
|
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
|
+
}
|
|
9715
10137
|
}
|
|
9716
10138
|
/**
|
|
9717
10139
|
* Sends messages by using ChatAPP.
|
|
@@ -9730,7 +10152,8 @@ class Client extends openapi_client_1.default {
|
|
|
9730
10152
|
* Submits the agreement information for independent software vendor (ISV) customers.
|
|
9731
10153
|
*
|
|
9732
10154
|
* @remarks
|
|
9733
|
-
*
|
|
10155
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
10156
|
+
* * After you call the [GetChatappUploadAuthorization](~~GetChatappUploadAuthorization~~) operation to obtain the authentication information for uploading the file to Object Storage Service (OSS), you can use the authentication information to upload the file to the OSS server. To upload the file, you can call the SDK provided by OSS. When you upload the file, set the value of the key to the value of `Dir + "/" + file name`, such as C200293990209/isvTerms.pdf. The value of Dir is obtained from the [GetChatappUploadAuthorization](~~GetChatappUploadAuthorization~~) operation. The value of IsvTerms is obtained from the PutObject operation.
|
|
9734
10157
|
*
|
|
9735
10158
|
* @param request - SubmitIsvCustomerTermsRequest
|
|
9736
10159
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9774,13 +10197,19 @@ class Client extends openapi_client_1.default {
|
|
|
9774
10197
|
reqBodyType: "formData",
|
|
9775
10198
|
bodyType: "json",
|
|
9776
10199
|
});
|
|
9777
|
-
|
|
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
|
+
}
|
|
9778
10206
|
}
|
|
9779
10207
|
/**
|
|
9780
10208
|
* Submits the agreement information for independent software vendor (ISV) customers.
|
|
9781
10209
|
*
|
|
9782
10210
|
* @remarks
|
|
9783
|
-
*
|
|
10211
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
10212
|
+
* * After you call the [GetChatappUploadAuthorization](~~GetChatappUploadAuthorization~~) operation to obtain the authentication information for uploading the file to Object Storage Service (OSS), you can use the authentication information to upload the file to the OSS server. To upload the file, you can call the SDK provided by OSS. When you upload the file, set the value of the key to the value of `Dir + "/" + file name`, such as C200293990209/isvTerms.pdf. The value of Dir is obtained from the [GetChatappUploadAuthorization](~~GetChatappUploadAuthorization~~) operation. The value of IsvTerms is obtained from the PutObject operation.
|
|
9784
10213
|
*
|
|
9785
10214
|
* @param request - SubmitIsvCustomerTermsRequest
|
|
9786
10215
|
* @returns SubmitIsvCustomerTermsResponse
|
|
@@ -9789,6 +10218,85 @@ class Client extends openapi_client_1.default {
|
|
|
9789
10218
|
let runtime = new $Util.RuntimeOptions({});
|
|
9790
10219
|
return await this.submitIsvCustomerTermsWithOptions(request, runtime);
|
|
9791
10220
|
}
|
|
10221
|
+
/**
|
|
10222
|
+
* Trigger an Online ChatFlow
|
|
10223
|
+
*
|
|
10224
|
+
* @remarks
|
|
10225
|
+
* After triggering an online flow, if your flow contains components that incur costs for cloud products, such as message sending or function calls, please ensure you fully understand the billing methods and prices of the related products before using this interface.
|
|
10226
|
+
*
|
|
10227
|
+
* @param tmpReq - TriggerChatFlowRequest
|
|
10228
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10229
|
+
* @returns TriggerChatFlowResponse
|
|
10230
|
+
*/
|
|
10231
|
+
async triggerChatFlowWithOptions(tmpReq, runtime) {
|
|
10232
|
+
tea_util_1.default.validateModel(tmpReq);
|
|
10233
|
+
let request = new TriggerChatFlowShrinkRequest({});
|
|
10234
|
+
openapi_util_1.default.convert(tmpReq, request);
|
|
10235
|
+
if (!tea_util_1.default.isUnset(tmpReq.data)) {
|
|
10236
|
+
request.dataShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.data, "Data", "json");
|
|
10237
|
+
}
|
|
10238
|
+
let query = {};
|
|
10239
|
+
if (!tea_util_1.default.isUnset(request.claimTimeMillis)) {
|
|
10240
|
+
query["ClaimTimeMillis"] = request.claimTimeMillis;
|
|
10241
|
+
}
|
|
10242
|
+
if (!tea_util_1.default.isUnset(request.dataShrink)) {
|
|
10243
|
+
query["Data"] = request.dataShrink;
|
|
10244
|
+
}
|
|
10245
|
+
if (!tea_util_1.default.isUnset(request.discardTimeMillis)) {
|
|
10246
|
+
query["DiscardTimeMillis"] = request.discardTimeMillis;
|
|
10247
|
+
}
|
|
10248
|
+
if (!tea_util_1.default.isUnset(request.flowCode)) {
|
|
10249
|
+
query["FlowCode"] = request.flowCode;
|
|
10250
|
+
}
|
|
10251
|
+
if (!tea_util_1.default.isUnset(request.outId)) {
|
|
10252
|
+
query["OutId"] = request.outId;
|
|
10253
|
+
}
|
|
10254
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
10255
|
+
query["OwnerId"] = request.ownerId;
|
|
10256
|
+
}
|
|
10257
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
10258
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
10259
|
+
}
|
|
10260
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
10261
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
10262
|
+
}
|
|
10263
|
+
if (!tea_util_1.default.isUnset(request.uuid)) {
|
|
10264
|
+
query["Uuid"] = request.uuid;
|
|
10265
|
+
}
|
|
10266
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10267
|
+
query: openapi_util_1.default.query(query),
|
|
10268
|
+
});
|
|
10269
|
+
let params = new $OpenApi.Params({
|
|
10270
|
+
action: "TriggerChatFlow",
|
|
10271
|
+
version: "2020-06-06",
|
|
10272
|
+
protocol: "HTTPS",
|
|
10273
|
+
pathname: "/",
|
|
10274
|
+
method: "POST",
|
|
10275
|
+
authType: "AK",
|
|
10276
|
+
style: "RPC",
|
|
10277
|
+
reqBodyType: "formData",
|
|
10278
|
+
bodyType: "json",
|
|
10279
|
+
});
|
|
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
|
+
}
|
|
10286
|
+
}
|
|
10287
|
+
/**
|
|
10288
|
+
* Trigger an Online ChatFlow
|
|
10289
|
+
*
|
|
10290
|
+
* @remarks
|
|
10291
|
+
* After triggering an online flow, if your flow contains components that incur costs for cloud products, such as message sending or function calls, please ensure you fully understand the billing methods and prices of the related products before using this interface.
|
|
10292
|
+
*
|
|
10293
|
+
* @param request - TriggerChatFlowRequest
|
|
10294
|
+
* @returns TriggerChatFlowResponse
|
|
10295
|
+
*/
|
|
10296
|
+
async triggerChatFlow(request) {
|
|
10297
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
10298
|
+
return await this.triggerChatFlowWithOptions(request, runtime);
|
|
10299
|
+
}
|
|
9792
10300
|
/**
|
|
9793
10301
|
* Modifies the callback URL of an account.
|
|
9794
10302
|
*
|
|
@@ -9828,7 +10336,12 @@ class Client extends openapi_client_1.default {
|
|
|
9828
10336
|
reqBodyType: "formData",
|
|
9829
10337
|
bodyType: "json",
|
|
9830
10338
|
});
|
|
9831
|
-
|
|
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
|
+
}
|
|
9832
10345
|
}
|
|
9833
10346
|
/**
|
|
9834
10347
|
* Modifies the callback URL of an account.
|
|
@@ -9891,7 +10404,12 @@ class Client extends openapi_client_1.default {
|
|
|
9891
10404
|
reqBodyType: "formData",
|
|
9892
10405
|
bodyType: "json",
|
|
9893
10406
|
});
|
|
9894
|
-
|
|
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
|
+
}
|
|
9895
10413
|
}
|
|
9896
10414
|
/**
|
|
9897
10415
|
* Modifies the business settings of a phone number.
|
|
@@ -9907,7 +10425,12 @@ class Client extends openapi_client_1.default {
|
|
|
9907
10425
|
return await this.updateCommerceSettingWithOptions(request, runtime);
|
|
9908
10426
|
}
|
|
9909
10427
|
/**
|
|
9910
|
-
*
|
|
10428
|
+
* Modifies welcoming messages, opening remarks, and commands for a phone number.
|
|
10429
|
+
*
|
|
10430
|
+
* @remarks
|
|
10431
|
+
* ### [](#qps-)QPS limit
|
|
10432
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
10433
|
+
* This operation will directly obtain data from Facebook, which sets an upper limit on the total number of calls for operations. We recommend that you take note of the limit when you call this operation.
|
|
9911
10434
|
*
|
|
9912
10435
|
* @param tmpReq - UpdateConversationalAutomationRequest
|
|
9913
10436
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9962,10 +10485,20 @@ class Client extends openapi_client_1.default {
|
|
|
9962
10485
|
reqBodyType: "formData",
|
|
9963
10486
|
bodyType: "json",
|
|
9964
10487
|
});
|
|
9965
|
-
|
|
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
|
+
}
|
|
9966
10494
|
}
|
|
9967
10495
|
/**
|
|
9968
|
-
*
|
|
10496
|
+
* Modifies welcoming messages, opening remarks, and commands for a phone number.
|
|
10497
|
+
*
|
|
10498
|
+
* @remarks
|
|
10499
|
+
* ### [](#qps-)QPS limit
|
|
10500
|
+
* You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
10501
|
+
* This operation will directly obtain data from Facebook, which sets an upper limit on the total number of calls for operations. We recommend that you take note of the limit when you call this operation.
|
|
9969
10502
|
*
|
|
9970
10503
|
* @param request - UpdateConversationalAutomationRequest
|
|
9971
10504
|
* @returns UpdateConversationalAutomationResponse
|
|
@@ -9975,7 +10508,7 @@ class Client extends openapi_client_1.default {
|
|
|
9975
10508
|
return await this.updateConversationalAutomationWithOptions(request, runtime);
|
|
9976
10509
|
}
|
|
9977
10510
|
/**
|
|
9978
|
-
*
|
|
10511
|
+
* Updates a Flow by using JSON content.
|
|
9979
10512
|
*
|
|
9980
10513
|
* @param request - UpdateFlowJSONAssetRequest
|
|
9981
10514
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -10007,10 +10540,15 @@ class Client extends openapi_client_1.default {
|
|
|
10007
10540
|
reqBodyType: "formData",
|
|
10008
10541
|
bodyType: "json",
|
|
10009
10542
|
});
|
|
10010
|
-
|
|
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
|
+
}
|
|
10011
10549
|
}
|
|
10012
10550
|
/**
|
|
10013
|
-
*
|
|
10551
|
+
* Updates a Flow by using JSON content.
|
|
10014
10552
|
*
|
|
10015
10553
|
* @param request - UpdateFlowJSONAssetRequest
|
|
10016
10554
|
* @returns UpdateFlowJSONAssetResponse
|
|
@@ -10020,7 +10558,7 @@ class Client extends openapi_client_1.default {
|
|
|
10020
10558
|
return await this.updateFlowJSONAssetWithOptions(request, runtime);
|
|
10021
10559
|
}
|
|
10022
10560
|
/**
|
|
10023
|
-
*
|
|
10561
|
+
* Updates the encryption public key of a phone number.
|
|
10024
10562
|
*
|
|
10025
10563
|
* @param request - UpdatePhoneEncryptionPublicKeyRequest
|
|
10026
10564
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -10052,10 +10590,15 @@ class Client extends openapi_client_1.default {
|
|
|
10052
10590
|
reqBodyType: "formData",
|
|
10053
10591
|
bodyType: "json",
|
|
10054
10592
|
});
|
|
10055
|
-
|
|
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
|
+
}
|
|
10056
10599
|
}
|
|
10057
10600
|
/**
|
|
10058
|
-
*
|
|
10601
|
+
* Updates the encryption public key of a phone number.
|
|
10059
10602
|
*
|
|
10060
10603
|
* @param request - UpdatePhoneEncryptionPublicKeyRequest
|
|
10061
10604
|
* @returns UpdatePhoneEncryptionPublicKeyResponse
|
|
@@ -10065,7 +10608,7 @@ class Client extends openapi_client_1.default {
|
|
|
10065
10608
|
return await this.updatePhoneEncryptionPublicKeyWithOptions(request, runtime);
|
|
10066
10609
|
}
|
|
10067
10610
|
/**
|
|
10068
|
-
*
|
|
10611
|
+
* Modifies a quick-response (QR) code that contains a message.
|
|
10069
10612
|
*
|
|
10070
10613
|
* @param request - UpdatePhoneMessageQrdlRequest
|
|
10071
10614
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -10103,10 +10646,15 @@ class Client extends openapi_client_1.default {
|
|
|
10103
10646
|
reqBodyType: "formData",
|
|
10104
10647
|
bodyType: "json",
|
|
10105
10648
|
});
|
|
10106
|
-
|
|
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
|
+
}
|
|
10107
10655
|
}
|
|
10108
10656
|
/**
|
|
10109
|
-
*
|
|
10657
|
+
* Modifies a quick-response (QR) code that contains a message.
|
|
10110
10658
|
*
|
|
10111
10659
|
* @param request - UpdatePhoneMessageQrdlRequest
|
|
10112
10660
|
* @returns UpdatePhoneMessageQrdlResponse
|
|
@@ -10117,8 +10665,8 @@ class Client extends openapi_client_1.default {
|
|
|
10117
10665
|
}
|
|
10118
10666
|
/**
|
|
10119
10667
|
* The HTTP status code returned.
|
|
10120
|
-
*
|
|
10121
|
-
*
|
|
10668
|
+
* \\* A value of OK indicates that the call is successful.
|
|
10669
|
+
* \\* Other values indicate that the call fails. For more information, see [Error codes]\\(~~196974~~).
|
|
10122
10670
|
*
|
|
10123
10671
|
* @remarks
|
|
10124
10672
|
* The error message returned.
|
|
@@ -10162,12 +10710,17 @@ class Client extends openapi_client_1.default {
|
|
|
10162
10710
|
reqBodyType: "formData",
|
|
10163
10711
|
bodyType: "json",
|
|
10164
10712
|
});
|
|
10165
|
-
|
|
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
|
+
}
|
|
10166
10719
|
}
|
|
10167
10720
|
/**
|
|
10168
10721
|
* The HTTP status code returned.
|
|
10169
|
-
*
|
|
10170
|
-
*
|
|
10722
|
+
* \\* A value of OK indicates that the call is successful.
|
|
10723
|
+
* \\* Other values indicate that the call fails. For more information, see [Error codes]\\(~~196974~~).
|
|
10171
10724
|
*
|
|
10172
10725
|
* @remarks
|
|
10173
10726
|
* The error message returned.
|