@alicloud/cams20200606 2.1.0 → 3.0.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/dist/client.d.ts +459 -36
- package/dist/client.js +2112 -330
- package/dist/client.js.map +1 -1
- package/dist/models/AddChatGroupInviteLinkRequest.d.ts +45 -0
- package/dist/models/{BeeBotAssociateRequest.js → AddChatGroupInviteLinkRequest.js} +16 -19
- package/dist/models/AddChatGroupInviteLinkRequest.js.map +1 -0
- package/dist/models/AddChatGroupInviteLinkResponse.d.ts +19 -0
- package/dist/models/AddChatGroupInviteLinkResponse.js +69 -0
- package/dist/models/AddChatGroupInviteLinkResponse.js.map +1 -0
- package/dist/models/AddChatGroupInviteLinkResponseBody.d.ts +39 -0
- package/dist/models/AddChatGroupInviteLinkResponseBody.js +68 -0
- package/dist/models/AddChatGroupInviteLinkResponseBody.js.map +1 -0
- package/dist/models/AddChatGroupRequest.d.ts +50 -0
- package/dist/models/AddChatGroupRequest.js +72 -0
- package/dist/models/AddChatGroupRequest.js.map +1 -0
- package/dist/models/{BeeBotChatResponse.d.ts → AddChatGroupResponse.d.ts} +3 -3
- package/dist/models/{BeeBotChatResponse.js → AddChatGroupResponse.js} +6 -6
- package/dist/models/AddChatGroupResponse.js.map +1 -0
- package/dist/models/AddChatGroupResponseBody.d.ts +39 -0
- package/dist/models/AddChatGroupResponseBody.js +68 -0
- package/dist/models/AddChatGroupResponseBody.js.map +1 -0
- package/dist/models/ChatappBindWabaResponseBodyData.d.ts +2 -0
- package/dist/models/ChatappBindWabaResponseBodyData.js +2 -0
- package/dist/models/ChatappBindWabaResponseBodyData.js.map +1 -1
- package/dist/models/ChatappMigrationVerifiedRequest.d.ts +1 -1
- package/dist/models/ChatappMigrationVerifiedResponseBody.d.ts +8 -1
- package/dist/models/ChatappMigrationVerifiedResponseBody.js.map +1 -1
- package/dist/models/ChatappSyncPhoneNumberResponseBody.d.ts +14 -1
- package/dist/models/ChatappSyncPhoneNumberResponseBody.js.map +1 -1
- package/dist/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.d.ts +34 -4
- package/dist/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.js.map +1 -1
- package/dist/models/ChatappVerifyAndRegisterResponseBody.d.ts +13 -0
- package/dist/models/ChatappVerifyAndRegisterResponseBody.js.map +1 -1
- package/dist/models/CreateChatFlowByImportRequest.d.ts +58 -0
- package/dist/models/CreateChatFlowByImportRequest.js +75 -0
- package/dist/models/CreateChatFlowByImportRequest.js.map +1 -0
- package/dist/models/CreateChatFlowByImportResponse.d.ts +19 -0
- package/dist/models/CreateChatFlowByImportResponse.js +69 -0
- package/dist/models/CreateChatFlowByImportResponse.js.map +1 -0
- package/dist/models/CreateChatFlowByImportResponseBody.d.ts +63 -0
- package/dist/models/CreateChatFlowByImportResponseBody.js +71 -0
- package/dist/models/CreateChatFlowByImportResponseBody.js.map +1 -0
- package/dist/models/CreateChatFlowByImportShrinkRequest.d.ts +56 -0
- package/dist/models/CreateChatFlowByImportShrinkRequest.js +72 -0
- package/dist/models/CreateChatFlowByImportShrinkRequest.js.map +1 -0
- package/dist/models/CreateChatFlowLogSettingRequest.d.ts +24 -0
- package/dist/models/CreateChatFlowLogSettingRequest.js +64 -0
- package/dist/models/CreateChatFlowLogSettingRequest.js.map +1 -0
- package/dist/models/CreateChatFlowLogSettingResponse.d.ts +19 -0
- package/dist/models/CreateChatFlowLogSettingResponse.js +69 -0
- package/dist/models/CreateChatFlowLogSettingResponse.js.map +1 -0
- package/dist/models/CreateChatFlowLogSettingResponseBody.d.ts +63 -0
- package/dist/models/CreateChatFlowLogSettingResponseBody.js +71 -0
- package/dist/models/CreateChatFlowLogSettingResponseBody.js.map +1 -0
- package/dist/models/CreateChatFlowRequest.d.ts +58 -0
- package/dist/models/CreateChatFlowRequest.js +75 -0
- package/dist/models/CreateChatFlowRequest.js.map +1 -0
- package/dist/models/CreateChatFlowResponse.d.ts +19 -0
- package/dist/models/CreateChatFlowResponse.js +69 -0
- package/dist/models/CreateChatFlowResponse.js.map +1 -0
- package/dist/models/CreateChatFlowResponseBody.d.ts +67 -0
- package/dist/models/CreateChatFlowResponseBody.js +76 -0
- package/dist/models/CreateChatFlowResponseBody.js.map +1 -0
- package/dist/models/CreateChatFlowShrinkRequest.d.ts +56 -0
- package/dist/models/CreateChatFlowShrinkRequest.js +72 -0
- package/dist/models/CreateChatFlowShrinkRequest.js.map +1 -0
- package/dist/models/CreateFlowVersionRequest.d.ts +58 -0
- package/dist/models/CreateFlowVersionRequest.js +75 -0
- package/dist/models/CreateFlowVersionRequest.js.map +1 -0
- package/dist/models/CreateFlowVersionResponse.d.ts +19 -0
- package/dist/models/CreateFlowVersionResponse.js +69 -0
- package/dist/models/CreateFlowVersionResponse.js.map +1 -0
- package/dist/models/CreateFlowVersionResponseBody.d.ts +63 -0
- package/dist/models/CreateFlowVersionResponseBody.js +71 -0
- package/dist/models/CreateFlowVersionResponseBody.js.map +1 -0
- package/dist/models/CreateFlowVersionShrinkRequest.d.ts +56 -0
- package/dist/models/CreateFlowVersionShrinkRequest.js +72 -0
- package/dist/models/CreateFlowVersionShrinkRequest.js.map +1 -0
- package/dist/models/DeleteChatFlowRequest.d.ts +42 -0
- package/dist/models/DeleteChatFlowRequest.js +71 -0
- package/dist/models/DeleteChatFlowRequest.js.map +1 -0
- package/dist/models/DeleteChatFlowResponse.d.ts +19 -0
- package/dist/models/DeleteChatFlowResponse.js +69 -0
- package/dist/models/DeleteChatFlowResponse.js.map +1 -0
- package/dist/models/DeleteChatFlowResponseBody.d.ts +63 -0
- package/dist/models/DeleteChatFlowResponseBody.js +71 -0
- package/dist/models/DeleteChatFlowResponseBody.js.map +1 -0
- package/dist/models/DeleteChatFlowShrinkRequest.d.ts +40 -0
- package/dist/models/DeleteChatFlowShrinkRequest.js +68 -0
- package/dist/models/DeleteChatFlowShrinkRequest.js.map +1 -0
- package/dist/models/DeleteChatGroupInviteLinkRequest.d.ts +45 -0
- package/dist/models/DeleteChatGroupInviteLinkRequest.js +70 -0
- package/dist/models/DeleteChatGroupInviteLinkRequest.js.map +1 -0
- package/dist/models/DeleteChatGroupInviteLinkResponse.d.ts +19 -0
- package/dist/models/DeleteChatGroupInviteLinkResponse.js +69 -0
- package/dist/models/DeleteChatGroupInviteLinkResponse.js.map +1 -0
- package/dist/models/DeleteChatGroupInviteLinkResponseBody.d.ts +39 -0
- package/dist/models/DeleteChatGroupInviteLinkResponseBody.js +68 -0
- package/dist/models/DeleteChatGroupInviteLinkResponseBody.js.map +1 -0
- package/dist/models/DeleteChatGroupParticipantsRequest.d.ts +47 -0
- package/dist/models/{BeeBotChatRequest.js → DeleteChatGroupParticipantsRequest.js} +21 -29
- package/dist/models/DeleteChatGroupParticipantsRequest.js.map +1 -0
- package/dist/models/DeleteChatGroupParticipantsRequestList.d.ts +18 -0
- package/dist/models/{BeeBotAssociateResponseBodyDataAssociate.js → DeleteChatGroupParticipantsRequestList.js} +6 -10
- package/dist/models/DeleteChatGroupParticipantsRequestList.js.map +1 -0
- package/dist/models/DeleteChatGroupParticipantsResponse.d.ts +19 -0
- package/dist/models/DeleteChatGroupParticipantsResponse.js +69 -0
- package/dist/models/DeleteChatGroupParticipantsResponse.js.map +1 -0
- package/dist/models/DeleteChatGroupParticipantsResponseBody.d.ts +39 -0
- package/dist/models/DeleteChatGroupParticipantsResponseBody.js +68 -0
- package/dist/models/DeleteChatGroupParticipantsResponseBody.js.map +1 -0
- package/dist/models/DeleteChatGroupParticipantsShrinkRequest.d.ts +46 -0
- package/dist/models/DeleteChatGroupParticipantsShrinkRequest.js +72 -0
- package/dist/models/DeleteChatGroupParticipantsShrinkRequest.js.map +1 -0
- package/dist/models/{BeeBotChatResponseBodyDataMessagesTextSlots.d.ts → DeleteChatGroupRequest.d.ts} +15 -15
- package/dist/models/{BeeBotAssociateShrinkRequest.js → DeleteChatGroupRequest.js} +16 -16
- package/dist/models/DeleteChatGroupRequest.js.map +1 -0
- package/dist/models/{BeeBotAssociateResponse.d.ts → DeleteChatGroupResponse.d.ts} +3 -3
- package/dist/models/{BeeBotAssociateResponse.js → DeleteChatGroupResponse.js} +6 -6
- package/dist/models/{BeeBotAssociateResponse.js.map → DeleteChatGroupResponse.js.map} +1 -1
- package/dist/models/DeleteChatGroupResponseBody.d.ts +39 -0
- package/dist/models/DeleteChatGroupResponseBody.js +68 -0
- package/dist/models/DeleteChatGroupResponseBody.js.map +1 -0
- package/dist/models/DeleteFlowVersionRequest.d.ts +50 -0
- package/dist/models/DeleteFlowVersionRequest.js +73 -0
- package/dist/models/DeleteFlowVersionRequest.js.map +1 -0
- package/dist/models/DeleteFlowVersionResponse.d.ts +19 -0
- package/dist/models/DeleteFlowVersionResponse.js +69 -0
- package/dist/models/DeleteFlowVersionResponse.js.map +1 -0
- package/dist/models/{BeeBotChatResponseBody.d.ts → DeleteFlowVersionResponseBody.d.ts} +25 -13
- package/dist/models/DeleteFlowVersionResponseBody.js +71 -0
- package/dist/models/DeleteFlowVersionResponseBody.js.map +1 -0
- package/dist/models/DeleteFlowVersionShrinkRequest.d.ts +48 -0
- package/dist/models/DeleteFlowVersionShrinkRequest.js +70 -0
- package/dist/models/DeleteFlowVersionShrinkRequest.js.map +1 -0
- package/dist/models/FlowBindPhoneRequest.d.ts +69 -0
- package/dist/models/FlowBindPhoneRequest.js +77 -0
- package/dist/models/FlowBindPhoneRequest.js.map +1 -0
- package/dist/models/FlowBindPhoneResponse.d.ts +19 -0
- package/dist/models/FlowBindPhoneResponse.js +69 -0
- package/dist/models/FlowBindPhoneResponse.js.map +1 -0
- package/dist/models/FlowBindPhoneResponseBody.d.ts +61 -0
- package/dist/models/FlowBindPhoneResponseBody.js +68 -0
- package/dist/models/FlowBindPhoneResponseBody.js.map +1 -0
- package/dist/models/FlowBindPhoneShrinkRequest.d.ts +69 -0
- package/dist/models/FlowBindPhoneShrinkRequest.js +74 -0
- package/dist/models/FlowBindPhoneShrinkRequest.js.map +1 -0
- package/dist/models/FlowRebindPhoneRequest.d.ts +69 -0
- package/dist/models/FlowRebindPhoneRequest.js +77 -0
- package/dist/models/FlowRebindPhoneRequest.js.map +1 -0
- package/dist/models/FlowRebindPhoneResponse.d.ts +19 -0
- package/dist/models/{BeeBotAssociateResponseBodyData.js → FlowRebindPhoneResponse.js} +16 -13
- package/dist/models/FlowRebindPhoneResponse.js.map +1 -0
- package/dist/models/FlowRebindPhoneResponseBody.d.ts +61 -0
- package/dist/models/FlowRebindPhoneResponseBody.js +68 -0
- package/dist/models/FlowRebindPhoneResponseBody.js.map +1 -0
- package/dist/models/FlowRebindPhoneShrinkRequest.d.ts +69 -0
- package/dist/models/FlowRebindPhoneShrinkRequest.js +74 -0
- package/dist/models/FlowRebindPhoneShrinkRequest.js.map +1 -0
- package/dist/models/FlowUnbindPhoneRequest.d.ts +47 -0
- package/dist/models/FlowUnbindPhoneRequest.js +73 -0
- package/dist/models/FlowUnbindPhoneRequest.js.map +1 -0
- package/dist/models/FlowUnbindPhoneResponse.d.ts +19 -0
- package/dist/models/FlowUnbindPhoneResponse.js +69 -0
- package/dist/models/FlowUnbindPhoneResponse.js.map +1 -0
- package/dist/models/FlowUnbindPhoneResponseBody.d.ts +53 -0
- package/dist/models/FlowUnbindPhoneResponseBody.js +66 -0
- package/dist/models/FlowUnbindPhoneResponseBody.js.map +1 -0
- package/dist/models/FlowUnbindPhoneShrinkRequest.d.ts +47 -0
- package/dist/models/FlowUnbindPhoneShrinkRequest.js +70 -0
- package/dist/models/FlowUnbindPhoneShrinkRequest.js.map +1 -0
- package/dist/models/GetChatFlowMetricRequest.d.ts +76 -0
- package/dist/models/GetChatFlowMetricRequest.js +79 -0
- package/dist/models/GetChatFlowMetricRequest.js.map +1 -0
- package/dist/models/GetChatFlowMetricResponse.d.ts +19 -0
- package/dist/models/GetChatFlowMetricResponse.js +69 -0
- package/dist/models/GetChatFlowMetricResponse.js.map +1 -0
- package/dist/models/GetChatFlowMetricResponseBody.d.ts +63 -0
- package/dist/models/GetChatFlowMetricResponseBody.js +71 -0
- package/dist/models/GetChatFlowMetricResponseBody.js.map +1 -0
- package/dist/models/GetChatFlowMetricShrinkRequest.d.ts +74 -0
- package/dist/models/GetChatFlowMetricShrinkRequest.js +76 -0
- package/dist/models/GetChatFlowMetricShrinkRequest.js.map +1 -0
- package/dist/models/{BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.d.ts → GetChatFlowTemplateRequest.d.ts} +12 -7
- package/dist/models/GetChatFlowTemplateRequest.js +66 -0
- package/dist/models/GetChatFlowTemplateRequest.js.map +1 -0
- package/dist/models/GetChatFlowTemplateResponse.d.ts +19 -0
- package/dist/models/GetChatFlowTemplateResponse.js +69 -0
- package/dist/models/GetChatFlowTemplateResponse.js.map +1 -0
- package/dist/models/GetChatFlowTemplateResponseBody.d.ts +59 -0
- package/dist/models/{BeeBotAssociateResponseBody.js → GetChatFlowTemplateResponseBody.js} +8 -6
- package/dist/models/GetChatFlowTemplateResponseBody.js.map +1 -0
- package/dist/models/GetChatFlowTemplateResponseBodyData.d.ts +23 -0
- package/dist/models/{BeeBotChatResponseBodyDataMessagesRecommends.js → GetChatFlowTemplateResponseBodyData.js} +9 -10
- package/dist/models/GetChatFlowTemplateResponseBodyData.js.map +1 -0
- package/dist/models/GetChatappVerifyCodeResponseBody.d.ts +13 -0
- package/dist/models/GetChatappVerifyCodeResponseBody.js.map +1 -1
- package/dist/models/ListBindingRelationsForFlowVersionRequest.d.ts +32 -0
- package/dist/models/ListBindingRelationsForFlowVersionRequest.js +66 -0
- package/dist/models/ListBindingRelationsForFlowVersionRequest.js.map +1 -0
- package/dist/models/ListBindingRelationsForFlowVersionResponse.d.ts +19 -0
- package/dist/models/ListBindingRelationsForFlowVersionResponse.js +69 -0
- package/dist/models/ListBindingRelationsForFlowVersionResponse.js.map +1 -0
- package/dist/models/ListBindingRelationsForFlowVersionResponseBody.d.ts +37 -0
- package/dist/models/ListBindingRelationsForFlowVersionResponseBody.js +71 -0
- package/dist/models/ListBindingRelationsForFlowVersionResponseBody.js.map +1 -0
- package/dist/models/ListChatFlowRequest.d.ts +87 -0
- package/dist/models/ListChatFlowRequest.js +81 -0
- package/dist/models/ListChatFlowRequest.js.map +1 -0
- package/dist/models/ListChatFlowResponse.d.ts +19 -0
- package/dist/models/ListChatFlowResponse.js +69 -0
- package/dist/models/ListChatFlowResponse.js.map +1 -0
- package/dist/models/ListChatFlowResponseBody.d.ts +63 -0
- package/dist/models/ListChatFlowResponseBody.js +71 -0
- package/dist/models/ListChatFlowResponseBody.js.map +1 -0
- package/dist/models/ListChatFlowShrinkRequest.d.ts +85 -0
- package/dist/models/ListChatFlowShrinkRequest.js +78 -0
- package/dist/models/ListChatFlowShrinkRequest.js.map +1 -0
- package/dist/models/ListChatFlowTemplateRequest.d.ts +64 -0
- package/dist/models/ListChatFlowTemplateRequest.js +72 -0
- package/dist/models/ListChatFlowTemplateRequest.js.map +1 -0
- package/dist/models/ListChatFlowTemplateResponse.d.ts +19 -0
- package/dist/models/ListChatFlowTemplateResponse.js +69 -0
- package/dist/models/ListChatFlowTemplateResponse.js.map +1 -0
- package/dist/models/ListChatFlowTemplateResponseBody.d.ts +59 -0
- package/dist/models/ListChatFlowTemplateResponseBody.js +72 -0
- package/dist/models/ListChatFlowTemplateResponseBody.js.map +1 -0
- package/dist/models/ListChatFlowTemplateResponseBodyData.d.ts +23 -0
- package/dist/models/{BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.js → ListChatFlowTemplateResponseBodyData.js} +9 -8
- package/dist/models/ListChatFlowTemplateResponseBodyData.js.map +1 -0
- package/dist/models/ListChatGroupParticipantsRequest.d.ts +47 -0
- package/dist/models/ListChatGroupParticipantsRequest.js +76 -0
- package/dist/models/ListChatGroupParticipantsRequest.js.map +1 -0
- package/dist/models/ListChatGroupParticipantsRequestPage.d.ts +23 -0
- package/dist/models/{BeeBotChatResponseBodyDataMessagesTextSlots.js → ListChatGroupParticipantsRequestPage.js} +8 -12
- package/dist/models/ListChatGroupParticipantsRequestPage.js.map +1 -0
- package/dist/models/ListChatGroupParticipantsResponse.d.ts +19 -0
- package/dist/models/ListChatGroupParticipantsResponse.js +69 -0
- package/dist/models/ListChatGroupParticipantsResponse.js.map +1 -0
- package/dist/models/ListChatGroupParticipantsResponseBody.d.ts +36 -0
- package/dist/models/ListChatGroupParticipantsResponseBody.js +72 -0
- package/dist/models/ListChatGroupParticipantsResponseBody.js.map +1 -0
- package/dist/models/ListChatGroupParticipantsResponseBodyData.d.ts +20 -0
- package/dist/models/{BeeBotChatResponseBodyData.js → ListChatGroupParticipantsResponseBodyData.js} +11 -13
- package/dist/models/ListChatGroupParticipantsResponseBodyData.js.map +1 -0
- package/dist/models/ListChatGroupParticipantsResponseBodyDataList.d.ts +18 -0
- package/dist/models/ListChatGroupParticipantsResponseBodyDataList.js +58 -0
- package/dist/models/ListChatGroupParticipantsResponseBodyDataList.js.map +1 -0
- package/dist/models/ListChatGroupParticipantsShrinkRequest.d.ts +46 -0
- package/dist/models/ListChatGroupParticipantsShrinkRequest.js +72 -0
- package/dist/models/ListChatGroupParticipantsShrinkRequest.js.map +1 -0
- package/dist/models/ListChatGroupRequest.d.ts +53 -0
- package/dist/models/ListChatGroupRequest.js +78 -0
- package/dist/models/ListChatGroupRequest.js.map +1 -0
- package/dist/models/{BeeBotAssociateResponseBodyDataAssociate.d.ts → ListChatGroupRequestPage.d.ts} +7 -9
- package/dist/models/ListChatGroupRequestPage.js +60 -0
- package/dist/models/ListChatGroupRequestPage.js.map +1 -0
- package/dist/models/ListChatGroupResponse.d.ts +19 -0
- package/dist/models/ListChatGroupResponse.js +69 -0
- package/dist/models/ListChatGroupResponse.js.map +1 -0
- package/dist/models/ListChatGroupResponseBody.d.ts +36 -0
- package/dist/models/{BeeBotChatResponseBody.js → ListChatGroupResponseBody.js} +8 -6
- package/dist/models/ListChatGroupResponseBody.js.map +1 -0
- package/dist/models/ListChatGroupResponseBodyData.d.ts +20 -0
- package/dist/models/ListChatGroupResponseBodyData.js +64 -0
- package/dist/models/ListChatGroupResponseBodyData.js.map +1 -0
- package/dist/models/ListChatGroupResponseBodyDataList.d.ts +48 -0
- package/dist/models/ListChatGroupResponseBodyDataList.js +70 -0
- package/dist/models/ListChatGroupResponseBodyDataList.js.map +1 -0
- package/dist/models/ListChatGroupShrinkRequest.d.ts +52 -0
- package/dist/models/ListChatGroupShrinkRequest.js +74 -0
- package/dist/models/ListChatGroupShrinkRequest.js.map +1 -0
- package/dist/models/ListChatappTemplateRequest.d.ts +12 -10
- package/dist/models/ListChatappTemplateRequest.js.map +1 -1
- package/dist/models/ListChatappTemplateResponseBody.d.ts +8 -2
- package/dist/models/ListChatappTemplateResponseBody.js.map +1 -1
- package/dist/models/ListChatappTemplateResponseBodyListTemplate.d.ts +17 -17
- package/dist/models/ListChatappTemplateShrinkRequest.d.ts +12 -10
- package/dist/models/ListChatappTemplateShrinkRequest.js.map +1 -1
- package/dist/models/ListFlowVersionRequest.d.ts +66 -0
- package/dist/models/ListFlowVersionRequest.js +77 -0
- package/dist/models/ListFlowVersionRequest.js.map +1 -0
- package/dist/models/ListFlowVersionResponse.d.ts +19 -0
- package/dist/models/ListFlowVersionResponse.js +69 -0
- package/dist/models/ListFlowVersionResponse.js.map +1 -0
- package/dist/models/ListFlowVersionResponseBody.d.ts +63 -0
- package/dist/models/ListFlowVersionResponseBody.js +71 -0
- package/dist/models/ListFlowVersionResponseBody.js.map +1 -0
- package/dist/models/ListFlowVersionShrinkRequest.d.ts +64 -0
- package/dist/models/ListFlowVersionShrinkRequest.js +74 -0
- package/dist/models/ListFlowVersionShrinkRequest.js.map +1 -0
- package/dist/models/ListPhoneMessageQrdlRequest.d.ts +5 -7
- package/dist/models/ListPhoneMessageQrdlRequest.js +6 -0
- package/dist/models/ListPhoneMessageQrdlRequest.js.map +1 -1
- package/dist/models/ListPhoneMessageQrdlResponseBody.d.ts +1 -0
- package/dist/models/ListPhoneMessageQrdlResponseBody.js +2 -0
- package/dist/models/ListPhoneMessageQrdlResponseBody.js.map +1 -1
- package/dist/models/OfflineFlowVersionRequest.d.ts +58 -0
- package/dist/models/OfflineFlowVersionRequest.js +75 -0
- package/dist/models/OfflineFlowVersionRequest.js.map +1 -0
- package/dist/models/OfflineFlowVersionResponse.d.ts +19 -0
- package/dist/models/OfflineFlowVersionResponse.js +69 -0
- package/dist/models/OfflineFlowVersionResponse.js.map +1 -0
- package/dist/models/OfflineFlowVersionResponseBody.d.ts +63 -0
- package/dist/models/OfflineFlowVersionResponseBody.js +71 -0
- package/dist/models/OfflineFlowVersionResponseBody.js.map +1 -0
- package/dist/models/OfflineFlowVersionShrinkRequest.d.ts +56 -0
- package/dist/models/OfflineFlowVersionShrinkRequest.js +72 -0
- package/dist/models/OfflineFlowVersionShrinkRequest.js.map +1 -0
- package/dist/models/OnlineFlowVersionRequest.d.ts +58 -0
- package/dist/models/OnlineFlowVersionRequest.js +75 -0
- package/dist/models/OnlineFlowVersionRequest.js.map +1 -0
- package/dist/models/OnlineFlowVersionResponse.d.ts +19 -0
- package/dist/models/OnlineFlowVersionResponse.js +69 -0
- package/dist/models/OnlineFlowVersionResponse.js.map +1 -0
- package/dist/models/OnlineFlowVersionResponseBody.d.ts +63 -0
- package/dist/models/OnlineFlowVersionResponseBody.js +71 -0
- package/dist/models/OnlineFlowVersionResponseBody.js.map +1 -0
- package/dist/models/OnlineFlowVersionShrinkRequest.d.ts +56 -0
- package/dist/models/OnlineFlowVersionShrinkRequest.js +72 -0
- package/dist/models/OnlineFlowVersionShrinkRequest.js.map +1 -0
- package/dist/models/QueryChatappBindWabaResponseBodyData.d.ts +5 -2
- package/dist/models/QueryChatappBindWabaResponseBodyData.js.map +1 -1
- package/dist/models/QueryChatappPhoneNumbersResponseBody.d.ts +6 -0
- package/dist/models/QueryChatappPhoneNumbersResponseBody.js.map +1 -1
- package/dist/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.d.ts +20 -10
- package/dist/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.js.map +1 -1
- package/dist/models/ReadChatFlowLogSettingRequest.d.ts +24 -0
- package/dist/models/ReadChatFlowLogSettingRequest.js +64 -0
- package/dist/models/ReadChatFlowLogSettingRequest.js.map +1 -0
- package/dist/models/ReadChatFlowLogSettingResponse.d.ts +19 -0
- package/dist/models/ReadChatFlowLogSettingResponse.js +69 -0
- package/dist/models/ReadChatFlowLogSettingResponse.js.map +1 -0
- package/dist/models/{BeeBotAssociateResponseBody.d.ts → ReadChatFlowLogSettingResponseBody.d.ts} +22 -10
- package/dist/models/ReadChatFlowLogSettingResponseBody.js +71 -0
- package/dist/models/ReadChatFlowLogSettingResponseBody.js.map +1 -0
- package/dist/models/ReadChatFlowRequest.d.ts +42 -0
- package/dist/models/ReadChatFlowRequest.js +71 -0
- package/dist/models/ReadChatFlowRequest.js.map +1 -0
- package/dist/models/ReadChatFlowResponse.d.ts +19 -0
- package/dist/models/ReadChatFlowResponse.js +69 -0
- package/dist/models/ReadChatFlowResponse.js.map +1 -0
- package/dist/models/ReadChatFlowResponseBody.d.ts +63 -0
- package/dist/models/ReadChatFlowResponseBody.js +71 -0
- package/dist/models/ReadChatFlowResponseBody.js.map +1 -0
- package/dist/models/ReadChatFlowShrinkRequest.d.ts +40 -0
- package/dist/models/ReadChatFlowShrinkRequest.js +68 -0
- package/dist/models/ReadChatFlowShrinkRequest.js.map +1 -0
- package/dist/models/ReadFlowVersionRequest.d.ts +58 -0
- package/dist/models/ReadFlowVersionRequest.js +75 -0
- package/dist/models/ReadFlowVersionRequest.js.map +1 -0
- package/dist/models/ReadFlowVersionResponse.d.ts +19 -0
- package/dist/models/ReadFlowVersionResponse.js +69 -0
- package/dist/models/ReadFlowVersionResponse.js.map +1 -0
- package/dist/models/ReadFlowVersionResponseBody.d.ts +63 -0
- package/dist/models/ReadFlowVersionResponseBody.js +71 -0
- package/dist/models/ReadFlowVersionResponseBody.js.map +1 -0
- package/dist/models/ReadFlowVersionShrinkRequest.d.ts +56 -0
- package/dist/models/ReadFlowVersionShrinkRequest.js +72 -0
- package/dist/models/ReadFlowVersionShrinkRequest.js.map +1 -0
- package/dist/models/SendChatappMessageRequest.d.ts +1 -0
- package/dist/models/SendChatappMessageRequest.js +2 -0
- package/dist/models/SendChatappMessageRequest.js.map +1 -1
- package/dist/models/SendChatappMessageShrinkRequest.d.ts +1 -0
- package/dist/models/SendChatappMessageShrinkRequest.js +2 -0
- package/dist/models/SendChatappMessageShrinkRequest.js.map +1 -1
- package/dist/models/UpdateChatFlowLogSettingRequest.d.ts +43 -0
- package/dist/models/UpdateChatFlowLogSettingRequest.js +68 -0
- package/dist/models/UpdateChatFlowLogSettingRequest.js.map +1 -0
- package/dist/models/UpdateChatFlowLogSettingResponse.d.ts +19 -0
- package/dist/models/UpdateChatFlowLogSettingResponse.js +69 -0
- package/dist/models/UpdateChatFlowLogSettingResponse.js.map +1 -0
- package/dist/models/UpdateChatFlowLogSettingResponseBody.d.ts +63 -0
- package/dist/models/UpdateChatFlowLogSettingResponseBody.js +71 -0
- package/dist/models/UpdateChatFlowLogSettingResponseBody.js.map +1 -0
- package/dist/models/UpdateChatFlowRequest.d.ts +58 -0
- package/dist/models/UpdateChatFlowRequest.js +75 -0
- package/dist/models/UpdateChatFlowRequest.js.map +1 -0
- package/dist/models/UpdateChatFlowResponse.d.ts +19 -0
- package/dist/models/UpdateChatFlowResponse.js +69 -0
- package/dist/models/UpdateChatFlowResponse.js.map +1 -0
- package/dist/models/UpdateChatFlowResponseBody.d.ts +63 -0
- package/dist/models/UpdateChatFlowResponseBody.js +71 -0
- package/dist/models/UpdateChatFlowResponseBody.js.map +1 -0
- package/dist/models/UpdateChatFlowShrinkRequest.d.ts +56 -0
- package/dist/models/UpdateChatFlowShrinkRequest.js +72 -0
- package/dist/models/UpdateChatFlowShrinkRequest.js.map +1 -0
- package/dist/models/UpdateChatGroupRequest.d.ts +60 -0
- package/dist/models/{BeeBotChatShrinkRequest.js → UpdateChatGroupRequest.js} +22 -24
- package/dist/models/UpdateChatGroupRequest.js.map +1 -0
- package/dist/models/UpdateChatGroupResponse.d.ts +19 -0
- package/dist/models/UpdateChatGroupResponse.js +69 -0
- package/dist/models/UpdateChatGroupResponse.js.map +1 -0
- package/dist/models/UpdateChatGroupResponseBody.d.ts +39 -0
- package/dist/models/UpdateChatGroupResponseBody.js +68 -0
- package/dist/models/UpdateChatGroupResponseBody.js.map +1 -0
- package/dist/models/UpdateFlowVersionRequest.d.ts +66 -0
- package/dist/models/UpdateFlowVersionRequest.js +77 -0
- package/dist/models/UpdateFlowVersionRequest.js.map +1 -0
- package/dist/models/UpdateFlowVersionResponse.d.ts +19 -0
- package/dist/models/UpdateFlowVersionResponse.js +69 -0
- package/dist/models/UpdateFlowVersionResponse.js.map +1 -0
- package/dist/models/UpdateFlowVersionResponseBody.d.ts +63 -0
- package/dist/models/UpdateFlowVersionResponseBody.js +71 -0
- package/dist/models/UpdateFlowVersionResponseBody.js.map +1 -0
- package/dist/models/UpdateFlowVersionShrinkRequest.d.ts +64 -0
- package/dist/models/UpdateFlowVersionShrinkRequest.js +74 -0
- package/dist/models/UpdateFlowVersionShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +122 -17
- package/dist/models/model.js +251 -39
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2868 -790
- package/src/models/AddChatGroupInviteLinkRequest.ts +70 -0
- package/src/models/AddChatGroupInviteLinkResponse.ts +40 -0
- package/src/models/AddChatGroupInviteLinkResponseBody.ts +62 -0
- package/src/models/AddChatGroupRequest.ts +77 -0
- package/src/models/{BeeBotChatResponse.ts → AddChatGroupResponse.ts} +4 -4
- package/src/models/AddChatGroupResponseBody.ts +62 -0
- package/src/models/ChatappBindWabaResponseBodyData.ts +2 -0
- package/src/models/ChatappMigrationVerifiedRequest.ts +1 -1
- package/src/models/ChatappMigrationVerifiedResponseBody.ts +8 -1
- package/src/models/ChatappSyncPhoneNumberResponseBody.ts +14 -1
- package/src/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.ts +34 -4
- package/src/models/ChatappVerifyAndRegisterResponseBody.ts +13 -0
- package/src/models/CreateChatFlowByImportRequest.ts +86 -0
- package/src/models/CreateChatFlowByImportResponse.ts +40 -0
- package/src/models/CreateChatFlowByImportResponseBody.ts +87 -0
- package/src/models/CreateChatFlowByImportShrinkRequest.ts +83 -0
- package/src/models/CreateChatFlowLogSettingRequest.ts +43 -0
- package/src/models/CreateChatFlowLogSettingResponse.ts +40 -0
- package/src/models/CreateChatFlowLogSettingResponseBody.ts +87 -0
- package/src/models/CreateChatFlowRequest.ts +86 -0
- package/src/models/CreateChatFlowResponse.ts +40 -0
- package/src/models/CreateChatFlowResponseBody.ts +94 -0
- package/src/models/CreateChatFlowShrinkRequest.ts +83 -0
- package/src/models/CreateFlowVersionRequest.ts +86 -0
- package/src/models/CreateFlowVersionResponse.ts +40 -0
- package/src/models/CreateFlowVersionResponseBody.ts +87 -0
- package/src/models/CreateFlowVersionShrinkRequest.ts +83 -0
- package/src/models/DeleteChatFlowRequest.ts +66 -0
- package/src/models/DeleteChatFlowResponse.ts +40 -0
- package/src/models/DeleteChatFlowResponseBody.ts +87 -0
- package/src/models/DeleteChatFlowShrinkRequest.ts +63 -0
- package/src/models/DeleteChatGroupInviteLinkRequest.ts +70 -0
- package/src/models/DeleteChatGroupInviteLinkResponse.ts +40 -0
- package/src/models/DeleteChatGroupInviteLinkResponseBody.ts +62 -0
- package/src/models/DeleteChatGroupParticipantsRequest.ts +77 -0
- package/src/models/DeleteChatGroupParticipantsRequestList.ts +31 -0
- package/src/models/DeleteChatGroupParticipantsResponse.ts +40 -0
- package/src/models/DeleteChatGroupParticipantsResponseBody.ts +62 -0
- package/src/models/DeleteChatGroupParticipantsShrinkRequest.ts +73 -0
- package/src/models/DeleteChatGroupRequest.ts +70 -0
- package/src/models/{BeeBotAssociateResponse.ts → DeleteChatGroupResponse.ts} +4 -4
- package/src/models/DeleteChatGroupResponseBody.ts +62 -0
- package/src/models/DeleteFlowVersionRequest.ts +76 -0
- package/src/models/DeleteFlowVersionResponse.ts +40 -0
- package/src/models/DeleteFlowVersionResponseBody.ts +87 -0
- package/src/models/DeleteFlowVersionShrinkRequest.ts +73 -0
- package/src/models/FlowBindPhoneRequest.ts +101 -0
- package/src/models/FlowBindPhoneResponse.ts +40 -0
- package/src/models/FlowBindPhoneResponseBody.ts +84 -0
- package/src/models/FlowBindPhoneShrinkRequest.ts +98 -0
- package/src/models/FlowRebindPhoneRequest.ts +101 -0
- package/src/models/FlowRebindPhoneResponse.ts +40 -0
- package/src/models/FlowRebindPhoneResponseBody.ts +84 -0
- package/src/models/FlowRebindPhoneShrinkRequest.ts +98 -0
- package/src/models/FlowUnbindPhoneRequest.ts +75 -0
- package/src/models/FlowUnbindPhoneResponse.ts +40 -0
- package/src/models/FlowUnbindPhoneResponseBody.ts +74 -0
- package/src/models/FlowUnbindPhoneShrinkRequest.ts +72 -0
- package/src/models/GetChatFlowMetricRequest.ts +108 -0
- package/src/models/GetChatFlowMetricResponse.ts +40 -0
- package/src/models/GetChatFlowMetricResponseBody.ts +87 -0
- package/src/models/GetChatFlowMetricShrinkRequest.ts +105 -0
- package/src/models/GetChatFlowTemplateRequest.ts +55 -0
- package/src/models/GetChatFlowTemplateResponse.ts +40 -0
- package/src/models/{BeeBotChatResponseBody.ts → GetChatFlowTemplateResponseBody.ts} +22 -12
- package/src/models/GetChatFlowTemplateResponseBodyData.ts +37 -0
- package/src/models/GetChatappVerifyCodeResponseBody.ts +13 -0
- package/src/models/ListBindingRelationsForFlowVersionRequest.ts +53 -0
- package/src/models/ListBindingRelationsForFlowVersionResponse.ts +40 -0
- package/src/models/ListBindingRelationsForFlowVersionResponseBody.ts +61 -0
- package/src/models/ListChatFlowRequest.ts +121 -0
- package/src/models/ListChatFlowResponse.ts +40 -0
- package/src/models/ListChatFlowResponseBody.ts +87 -0
- package/src/models/ListChatFlowShrinkRequest.ts +118 -0
- package/src/models/ListChatFlowTemplateRequest.ts +91 -0
- package/src/models/ListChatFlowTemplateResponse.ts +40 -0
- package/src/models/{BeeBotAssociateResponseBody.ts → ListChatFlowTemplateResponseBody.ts} +21 -11
- package/src/models/ListChatFlowTemplateResponseBodyData.ts +37 -0
- package/src/models/ListChatGroupParticipantsRequest.ts +77 -0
- package/src/models/ListChatGroupParticipantsRequestPage.ts +38 -0
- package/src/models/ListChatGroupParticipantsResponse.ts +40 -0
- package/src/models/ListChatGroupParticipantsResponseBody.ts +62 -0
- package/src/models/ListChatGroupParticipantsResponseBodyData.ts +38 -0
- package/src/models/ListChatGroupParticipantsResponseBodyDataList.ts +31 -0
- package/src/models/ListChatGroupParticipantsShrinkRequest.ts +73 -0
- package/src/models/ListChatGroupRequest.ts +85 -0
- package/src/models/{BeeBotAssociateResponseBodyDataAssociate.ts → ListChatGroupRequestPage.ts} +11 -13
- package/src/models/ListChatGroupResponse.ts +40 -0
- package/src/models/ListChatGroupResponseBody.ts +62 -0
- package/src/models/ListChatGroupResponseBodyData.ts +38 -0
- package/src/models/ListChatGroupResponseBodyDataList.ts +73 -0
- package/src/models/ListChatGroupShrinkRequest.ts +81 -0
- package/src/models/ListChatappTemplateRequest.ts +12 -10
- package/src/models/ListChatappTemplateResponseBody.ts +8 -2
- package/src/models/ListChatappTemplateResponseBodyListTemplate.ts +17 -17
- package/src/models/ListChatappTemplateShrinkRequest.ts +12 -10
- package/src/models/ListFlowVersionRequest.ts +96 -0
- package/src/models/ListFlowVersionResponse.ts +40 -0
- package/src/models/ListFlowVersionResponseBody.ts +87 -0
- package/src/models/ListFlowVersionShrinkRequest.ts +93 -0
- package/src/models/ListPhoneMessageQrdlRequest.ts +11 -7
- package/src/models/ListPhoneMessageQrdlResponseBody.ts +3 -0
- package/src/models/OfflineFlowVersionRequest.ts +86 -0
- package/src/models/OfflineFlowVersionResponse.ts +40 -0
- package/src/models/OfflineFlowVersionResponseBody.ts +87 -0
- package/src/models/OfflineFlowVersionShrinkRequest.ts +83 -0
- package/src/models/OnlineFlowVersionRequest.ts +86 -0
- package/src/models/OnlineFlowVersionResponse.ts +40 -0
- package/src/models/OnlineFlowVersionResponseBody.ts +87 -0
- package/src/models/OnlineFlowVersionShrinkRequest.ts +83 -0
- package/src/models/QueryChatappBindWabaResponseBodyData.ts +5 -2
- package/src/models/QueryChatappPhoneNumbersResponseBody.ts +6 -0
- package/src/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.ts +20 -10
- package/src/models/ReadChatFlowLogSettingRequest.ts +43 -0
- package/src/models/ReadChatFlowLogSettingResponse.ts +40 -0
- package/src/models/ReadChatFlowLogSettingResponseBody.ts +87 -0
- package/src/models/ReadChatFlowRequest.ts +66 -0
- package/src/models/ReadChatFlowResponse.ts +40 -0
- package/src/models/ReadChatFlowResponseBody.ts +87 -0
- package/src/models/ReadChatFlowShrinkRequest.ts +63 -0
- package/src/models/ReadFlowVersionRequest.ts +86 -0
- package/src/models/ReadFlowVersionResponse.ts +40 -0
- package/src/models/ReadFlowVersionResponseBody.ts +87 -0
- package/src/models/ReadFlowVersionShrinkRequest.ts +83 -0
- package/src/models/SendChatappMessageRequest.ts +3 -0
- package/src/models/SendChatappMessageShrinkRequest.ts +3 -0
- package/src/models/UpdateChatFlowLogSettingRequest.ts +66 -0
- package/src/models/UpdateChatFlowLogSettingResponse.ts +40 -0
- package/src/models/UpdateChatFlowLogSettingResponseBody.ts +87 -0
- package/src/models/UpdateChatFlowRequest.ts +86 -0
- package/src/models/UpdateChatFlowResponse.ts +40 -0
- package/src/models/UpdateChatFlowResponseBody.ts +87 -0
- package/src/models/UpdateChatFlowShrinkRequest.ts +83 -0
- package/src/models/UpdateChatGroupRequest.ts +91 -0
- package/src/models/UpdateChatGroupResponse.ts +40 -0
- package/src/models/UpdateChatGroupResponseBody.ts +62 -0
- package/src/models/UpdateFlowVersionRequest.ts +96 -0
- package/src/models/UpdateFlowVersionResponse.ts +40 -0
- package/src/models/UpdateFlowVersionResponseBody.ts +87 -0
- package/src/models/UpdateFlowVersionShrinkRequest.ts +93 -0
- package/src/models/model.ts +122 -17
- package/dist/models/BeeBotAssociateRequest.d.ts +0 -68
- package/dist/models/BeeBotAssociateRequest.js.map +0 -1
- package/dist/models/BeeBotAssociateResponseBody.js.map +0 -1
- package/dist/models/BeeBotAssociateResponseBodyData.d.ts +0 -35
- package/dist/models/BeeBotAssociateResponseBodyData.js.map +0 -1
- package/dist/models/BeeBotAssociateResponseBodyDataAssociate.js.map +0 -1
- package/dist/models/BeeBotAssociateShrinkRequest.d.ts +0 -68
- package/dist/models/BeeBotAssociateShrinkRequest.js.map +0 -1
- package/dist/models/BeeBotChatRequest.d.ts +0 -104
- package/dist/models/BeeBotChatRequest.js.map +0 -1
- package/dist/models/BeeBotChatResponse.js.map +0 -1
- package/dist/models/BeeBotChatResponseBody.js.map +0 -1
- package/dist/models/BeeBotChatResponseBodyData.d.ts +0 -35
- package/dist/models/BeeBotChatResponseBodyData.js.map +0 -1
- package/dist/models/BeeBotChatResponseBodyDataMessages.d.ts +0 -47
- package/dist/models/BeeBotChatResponseBodyDataMessages.js +0 -78
- package/dist/models/BeeBotChatResponseBodyDataMessages.js.map +0 -1
- package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledge.d.ts +0 -83
- package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledge.js +0 -78
- package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledge.js.map +0 -1
- package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.js.map +0 -1
- package/dist/models/BeeBotChatResponseBodyDataMessagesRecommends.d.ts +0 -37
- package/dist/models/BeeBotChatResponseBodyDataMessagesRecommends.js.map +0 -1
- package/dist/models/BeeBotChatResponseBodyDataMessagesText.d.ts +0 -113
- package/dist/models/BeeBotChatResponseBodyDataMessagesText.js +0 -92
- package/dist/models/BeeBotChatResponseBodyDataMessagesText.js.map +0 -1
- package/dist/models/BeeBotChatResponseBodyDataMessagesTextSlots.js.map +0 -1
- package/dist/models/BeeBotChatShrinkRequest.d.ts +0 -102
- package/dist/models/BeeBotChatShrinkRequest.js.map +0 -1
- package/src/models/BeeBotAssociateRequest.ts +0 -96
- package/src/models/BeeBotAssociateResponseBodyData.ts +0 -55
- package/src/models/BeeBotAssociateShrinkRequest.ts +0 -93
- package/src/models/BeeBotChatRequest.ts +0 -141
- package/src/models/BeeBotChatResponseBodyData.ts +0 -55
- package/src/models/BeeBotChatResponseBodyDataMessages.ts +0 -77
- package/src/models/BeeBotChatResponseBodyDataMessagesKnowledge.ts +0 -115
- package/src/models/BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.ts +0 -44
- package/src/models/BeeBotChatResponseBodyDataMessagesRecommends.ts +0 -54
- package/src/models/BeeBotChatResponseBodyDataMessagesText.ts +0 -155
- package/src/models/BeeBotChatResponseBodyDataMessagesTextSlots.ts +0 -64
- package/src/models/BeeBotChatShrinkRequest.ts +0 -135
package/src/client.ts
CHANGED
|
@@ -30,33 +30,33 @@ export default class Client extends OpenApi {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* AddChatGroup
|
|
34
34
|
*
|
|
35
|
-
* @param request -
|
|
35
|
+
* @param request - AddChatGroupRequest
|
|
36
36
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
37
|
-
* @returns
|
|
37
|
+
* @returns AddChatGroupResponse
|
|
38
38
|
*/
|
|
39
|
-
async
|
|
39
|
+
async addChatGroupWithOptions(request: $_model.AddChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddChatGroupResponse> {
|
|
40
40
|
request.validate();
|
|
41
41
|
let query = { };
|
|
42
|
-
if (!$dara.isNull(request.
|
|
43
|
-
query["
|
|
42
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
43
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
if (!$dara.isNull(request.
|
|
47
|
-
query["
|
|
46
|
+
if (!$dara.isNull(request.channelType)) {
|
|
47
|
+
query["ChannelType"] = request.channelType;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
if (!$dara.isNull(request.
|
|
51
|
-
query["
|
|
50
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
51
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
if (!$dara.isNull(request.
|
|
55
|
-
query["
|
|
54
|
+
if (!$dara.isNull(request.description)) {
|
|
55
|
+
query["Description"] = request.description;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
if (!$dara.isNull(request.
|
|
59
|
-
query["
|
|
58
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
59
|
+
query["OwnerId"] = request.ownerId;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
@@ -67,15 +67,15 @@ export default class Client extends OpenApi {
|
|
|
67
67
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
if (!$dara.isNull(request.
|
|
71
|
-
query["
|
|
70
|
+
if (!$dara.isNull(request.subject)) {
|
|
71
|
+
query["Subject"] = request.subject;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
75
75
|
query: OpenApiUtil.query(query),
|
|
76
76
|
});
|
|
77
77
|
let params = new $OpenApiUtil.Params({
|
|
78
|
-
action: "
|
|
78
|
+
action: "AddChatGroup",
|
|
79
79
|
version: "2020-06-06",
|
|
80
80
|
protocol: "HTTPS",
|
|
81
81
|
pathname: "/",
|
|
@@ -85,72 +85,63 @@ export default class Client extends OpenApi {
|
|
|
85
85
|
reqBodyType: "formData",
|
|
86
86
|
bodyType: "json",
|
|
87
87
|
});
|
|
88
|
-
return $dara.cast<$_model.
|
|
88
|
+
return $dara.cast<$_model.AddChatGroupResponse>(await this.callApi(params, req, runtime), new $_model.AddChatGroupResponse({}));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* AddChatGroup
|
|
93
93
|
*
|
|
94
|
-
* @param request -
|
|
95
|
-
* @returns
|
|
94
|
+
* @param request - AddChatGroupRequest
|
|
95
|
+
* @returns AddChatGroupResponse
|
|
96
96
|
*/
|
|
97
|
-
async
|
|
97
|
+
async addChatGroup(request: $_model.AddChatGroupRequest): Promise<$_model.AddChatGroupResponse> {
|
|
98
98
|
let runtime = new $dara.RuntimeOptions({ });
|
|
99
|
-
return await this.
|
|
99
|
+
return await this.addChatGroupWithOptions(request, runtime);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* You can call this operation up to 100 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.
|
|
103
|
+
* AddChatGroupInviteLink
|
|
107
104
|
*
|
|
108
|
-
* @param
|
|
105
|
+
* @param request - AddChatGroupInviteLinkRequest
|
|
109
106
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
110
|
-
* @returns
|
|
107
|
+
* @returns AddChatGroupInviteLinkResponse
|
|
111
108
|
*/
|
|
112
|
-
async
|
|
113
|
-
|
|
114
|
-
let
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
request.perspectiveShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
|
|
109
|
+
async addChatGroupInviteLinkWithOptions(request: $_model.AddChatGroupInviteLinkRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddChatGroupInviteLinkResponse> {
|
|
110
|
+
request.validate();
|
|
111
|
+
let query = { };
|
|
112
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
113
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
118
114
|
}
|
|
119
115
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
body["ChatBotInstanceId"] = request.chatBotInstanceId;
|
|
116
|
+
if (!$dara.isNull(request.channelType)) {
|
|
117
|
+
query["ChannelType"] = request.channelType;
|
|
123
118
|
}
|
|
124
119
|
|
|
125
120
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
if (!$dara.isNull(request.isvCode)) {
|
|
130
|
-
body["IsvCode"] = request.isvCode;
|
|
121
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
131
122
|
}
|
|
132
123
|
|
|
133
|
-
if (!$dara.isNull(request.
|
|
134
|
-
|
|
124
|
+
if (!$dara.isNull(request.groupId)) {
|
|
125
|
+
query["GroupId"] = request.groupId;
|
|
135
126
|
}
|
|
136
127
|
|
|
137
|
-
if (!$dara.isNull(request.
|
|
138
|
-
|
|
128
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
129
|
+
query["OwnerId"] = request.ownerId;
|
|
139
130
|
}
|
|
140
131
|
|
|
141
|
-
if (!$dara.isNull(request.
|
|
142
|
-
|
|
132
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
133
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
143
134
|
}
|
|
144
135
|
|
|
145
|
-
if (!$dara.isNull(request.
|
|
146
|
-
|
|
136
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
137
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
147
138
|
}
|
|
148
139
|
|
|
149
140
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
150
|
-
|
|
141
|
+
query: OpenApiUtil.query(query),
|
|
151
142
|
});
|
|
152
143
|
let params = new $OpenApiUtil.Params({
|
|
153
|
-
action: "
|
|
144
|
+
action: "AddChatGroupInviteLink",
|
|
154
145
|
version: "2020-06-06",
|
|
155
146
|
protocol: "HTTPS",
|
|
156
147
|
pathname: "/",
|
|
@@ -160,95 +151,67 @@ export default class Client extends OpenApi {
|
|
|
160
151
|
reqBodyType: "formData",
|
|
161
152
|
bodyType: "json",
|
|
162
153
|
});
|
|
163
|
-
return $dara.cast<$_model.
|
|
154
|
+
return $dara.cast<$_model.AddChatGroupInviteLinkResponse>(await this.callApi(params, req, runtime), new $_model.AddChatGroupInviteLinkResponse({}));
|
|
164
155
|
}
|
|
165
156
|
|
|
166
157
|
/**
|
|
167
|
-
*
|
|
158
|
+
* AddChatGroupInviteLink
|
|
168
159
|
*
|
|
169
|
-
* @
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* @param request - BeeBotAssociateRequest
|
|
173
|
-
* @returns BeeBotAssociateResponse
|
|
160
|
+
* @param request - AddChatGroupInviteLinkRequest
|
|
161
|
+
* @returns AddChatGroupInviteLinkResponse
|
|
174
162
|
*/
|
|
175
|
-
async
|
|
163
|
+
async addChatGroupInviteLink(request: $_model.AddChatGroupInviteLinkRequest): Promise<$_model.AddChatGroupInviteLinkResponse> {
|
|
176
164
|
let runtime = new $dara.RuntimeOptions({ });
|
|
177
|
-
return await this.
|
|
165
|
+
return await this.addChatGroupInviteLinkWithOptions(request, runtime);
|
|
178
166
|
}
|
|
179
167
|
|
|
180
168
|
/**
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* @remarks
|
|
184
|
-
* The ID of the session.
|
|
169
|
+
* Adds a phone number for a WhatsApp Business account (WABA).
|
|
185
170
|
*
|
|
186
|
-
* @param
|
|
171
|
+
* @param request - AddChatappPhoneNumberRequest
|
|
187
172
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
188
|
-
* @returns
|
|
173
|
+
* @returns AddChatappPhoneNumberResponse
|
|
189
174
|
*/
|
|
190
|
-
async
|
|
191
|
-
|
|
192
|
-
let
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
request.perspectiveShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
if (!$dara.isNull(tmpReq.vendorParam)) {
|
|
199
|
-
request.vendorParamShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.vendorParam, "VendorParam", "json");
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
let body : {[key: string ]: any} = { };
|
|
203
|
-
if (!$dara.isNull(request.chatBotInstanceId)) {
|
|
204
|
-
body["ChatBotInstanceId"] = request.chatBotInstanceId;
|
|
175
|
+
async addChatappPhoneNumberWithOptions(request: $_model.AddChatappPhoneNumberRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddChatappPhoneNumberResponse> {
|
|
176
|
+
request.validate();
|
|
177
|
+
let query = { };
|
|
178
|
+
if (!$dara.isNull(request.cc)) {
|
|
179
|
+
query["Cc"] = request.cc;
|
|
205
180
|
}
|
|
206
181
|
|
|
207
182
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if (!$dara.isNull(request.intentName)) {
|
|
212
|
-
body["IntentName"] = request.intentName;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
if (!$dara.isNull(request.isvCode)) {
|
|
216
|
-
body["IsvCode"] = request.isvCode;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
if (!$dara.isNull(request.knowledgeId)) {
|
|
220
|
-
body["KnowledgeId"] = request.knowledgeId;
|
|
183
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
221
184
|
}
|
|
222
185
|
|
|
223
|
-
if (!$dara.isNull(request.
|
|
224
|
-
|
|
186
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
187
|
+
query["OwnerId"] = request.ownerId;
|
|
225
188
|
}
|
|
226
189
|
|
|
227
|
-
if (!$dara.isNull(request.
|
|
228
|
-
|
|
190
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
191
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
229
192
|
}
|
|
230
193
|
|
|
231
|
-
if (!$dara.isNull(request.
|
|
232
|
-
|
|
194
|
+
if (!$dara.isNull(request.preValidateId)) {
|
|
195
|
+
query["PreValidateId"] = request.preValidateId;
|
|
233
196
|
}
|
|
234
197
|
|
|
235
|
-
if (!$dara.isNull(request.
|
|
236
|
-
|
|
198
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
199
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
237
200
|
}
|
|
238
201
|
|
|
239
|
-
if (!$dara.isNull(request.
|
|
240
|
-
|
|
202
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
203
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
241
204
|
}
|
|
242
205
|
|
|
243
|
-
if (!$dara.isNull(request.
|
|
244
|
-
|
|
206
|
+
if (!$dara.isNull(request.verifiedName)) {
|
|
207
|
+
query["VerifiedName"] = request.verifiedName;
|
|
245
208
|
}
|
|
246
209
|
|
|
247
210
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
248
|
-
|
|
211
|
+
query: OpenApiUtil.query(query),
|
|
249
212
|
});
|
|
250
213
|
let params = new $OpenApiUtil.Params({
|
|
251
|
-
action: "
|
|
214
|
+
action: "AddChatappPhoneNumber",
|
|
252
215
|
version: "2020-06-06",
|
|
253
216
|
protocol: "HTTPS",
|
|
254
217
|
pathname: "/",
|
|
@@ -258,21 +221,18 @@ export default class Client extends OpenApi {
|
|
|
258
221
|
reqBodyType: "formData",
|
|
259
222
|
bodyType: "json",
|
|
260
223
|
});
|
|
261
|
-
return $dara.cast<$_model.
|
|
224
|
+
return $dara.cast<$_model.AddChatappPhoneNumberResponse>(await this.callApi(params, req, runtime), new $_model.AddChatappPhoneNumberResponse({}));
|
|
262
225
|
}
|
|
263
226
|
|
|
264
227
|
/**
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
* @remarks
|
|
268
|
-
* The ID of the session.
|
|
228
|
+
* Adds a phone number for a WhatsApp Business account (WABA).
|
|
269
229
|
*
|
|
270
|
-
* @param request -
|
|
271
|
-
* @returns
|
|
230
|
+
* @param request - AddChatappPhoneNumberRequest
|
|
231
|
+
* @returns AddChatappPhoneNumberResponse
|
|
272
232
|
*/
|
|
273
|
-
async
|
|
233
|
+
async addChatappPhoneNumber(request: $_model.AddChatappPhoneNumberRequest): Promise<$_model.AddChatappPhoneNumberResponse> {
|
|
274
234
|
let runtime = new $dara.RuntimeOptions({ });
|
|
275
|
-
return await this.
|
|
235
|
+
return await this.addChatappPhoneNumberWithOptions(request, runtime);
|
|
276
236
|
}
|
|
277
237
|
|
|
278
238
|
/**
|
|
@@ -735,6 +695,212 @@ export default class Client extends OpenApi {
|
|
|
735
695
|
return await this.chatappVerifyAndRegisterWithOptions(request, runtime);
|
|
736
696
|
}
|
|
737
697
|
|
|
698
|
+
/**
|
|
699
|
+
* Create Chatflow
|
|
700
|
+
*
|
|
701
|
+
* @param tmpReq - CreateChatFlowRequest
|
|
702
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
703
|
+
* @returns CreateChatFlowResponse
|
|
704
|
+
*/
|
|
705
|
+
async createChatFlowWithOptions(tmpReq: $_model.CreateChatFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateChatFlowResponse> {
|
|
706
|
+
tmpReq.validate();
|
|
707
|
+
let request = new $_model.CreateChatFlowShrinkRequest({ });
|
|
708
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
709
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
710
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
let query = { };
|
|
714
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
715
|
+
query["BizCode"] = request.bizCode;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
719
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
if (!$dara.isNull(request.flowTriggerType)) {
|
|
723
|
+
query["FlowTriggerType"] = request.flowTriggerType;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
727
|
+
query["OwnerId"] = request.ownerId;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
if (!$dara.isNull(request.remark)) {
|
|
731
|
+
query["Remark"] = request.remark;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
735
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
739
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
if (!$dara.isNull(request.title)) {
|
|
743
|
+
query["Title"] = request.title;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
747
|
+
query: OpenApiUtil.query(query),
|
|
748
|
+
});
|
|
749
|
+
let params = new $OpenApiUtil.Params({
|
|
750
|
+
action: "CreateChatFlow",
|
|
751
|
+
version: "2020-06-06",
|
|
752
|
+
protocol: "HTTPS",
|
|
753
|
+
pathname: "/",
|
|
754
|
+
method: "POST",
|
|
755
|
+
authType: "AK",
|
|
756
|
+
style: "RPC",
|
|
757
|
+
reqBodyType: "formData",
|
|
758
|
+
bodyType: "json",
|
|
759
|
+
});
|
|
760
|
+
return $dara.cast<$_model.CreateChatFlowResponse>(await this.callApi(params, req, runtime), new $_model.CreateChatFlowResponse({}));
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Create Chatflow
|
|
765
|
+
*
|
|
766
|
+
* @param request - CreateChatFlowRequest
|
|
767
|
+
* @returns CreateChatFlowResponse
|
|
768
|
+
*/
|
|
769
|
+
async createChatFlow(request: $_model.CreateChatFlowRequest): Promise<$_model.CreateChatFlowResponse> {
|
|
770
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
771
|
+
return await this.createChatFlowWithOptions(request, runtime);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Import and create flow
|
|
776
|
+
*
|
|
777
|
+
* @param tmpReq - CreateChatFlowByImportRequest
|
|
778
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
779
|
+
* @returns CreateChatFlowByImportResponse
|
|
780
|
+
*/
|
|
781
|
+
async createChatFlowByImportWithOptions(tmpReq: $_model.CreateChatFlowByImportRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateChatFlowByImportResponse> {
|
|
782
|
+
tmpReq.validate();
|
|
783
|
+
let request = new $_model.CreateChatFlowByImportShrinkRequest({ });
|
|
784
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
785
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
786
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
let query = { };
|
|
790
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
791
|
+
query["BizCode"] = request.bizCode;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
795
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
if (!$dara.isNull(request.flowViewModel)) {
|
|
799
|
+
query["FlowViewModel"] = request.flowViewModel;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
803
|
+
query["OwnerId"] = request.ownerId;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
if (!$dara.isNull(request.remark)) {
|
|
807
|
+
query["Remark"] = request.remark;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
811
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
815
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
if (!$dara.isNull(request.title)) {
|
|
819
|
+
query["Title"] = request.title;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
823
|
+
query: OpenApiUtil.query(query),
|
|
824
|
+
});
|
|
825
|
+
let params = new $OpenApiUtil.Params({
|
|
826
|
+
action: "CreateChatFlowByImport",
|
|
827
|
+
version: "2020-06-06",
|
|
828
|
+
protocol: "HTTPS",
|
|
829
|
+
pathname: "/",
|
|
830
|
+
method: "POST",
|
|
831
|
+
authType: "AK",
|
|
832
|
+
style: "RPC",
|
|
833
|
+
reqBodyType: "formData",
|
|
834
|
+
bodyType: "json",
|
|
835
|
+
});
|
|
836
|
+
return $dara.cast<$_model.CreateChatFlowByImportResponse>(await this.callApi(params, req, runtime), new $_model.CreateChatFlowByImportResponse({}));
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Import and create flow
|
|
841
|
+
*
|
|
842
|
+
* @param request - CreateChatFlowByImportRequest
|
|
843
|
+
* @returns CreateChatFlowByImportResponse
|
|
844
|
+
*/
|
|
845
|
+
async createChatFlowByImport(request: $_model.CreateChatFlowByImportRequest): Promise<$_model.CreateChatFlowByImportResponse> {
|
|
846
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
847
|
+
return await this.createChatFlowByImportWithOptions(request, runtime);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Create chatFlow log setting
|
|
852
|
+
*
|
|
853
|
+
* @param request - CreateChatFlowLogSettingRequest
|
|
854
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
855
|
+
* @returns CreateChatFlowLogSettingResponse
|
|
856
|
+
*/
|
|
857
|
+
async createChatFlowLogSettingWithOptions(request: $_model.CreateChatFlowLogSettingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateChatFlowLogSettingResponse> {
|
|
858
|
+
request.validate();
|
|
859
|
+
let query = { };
|
|
860
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
861
|
+
query["FlowCode"] = request.flowCode;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
865
|
+
query["OwnerId"] = request.ownerId;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
869
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
873
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
877
|
+
query: OpenApiUtil.query(query),
|
|
878
|
+
});
|
|
879
|
+
let params = new $OpenApiUtil.Params({
|
|
880
|
+
action: "CreateChatFlowLogSetting",
|
|
881
|
+
version: "2020-06-06",
|
|
882
|
+
protocol: "HTTPS",
|
|
883
|
+
pathname: "/",
|
|
884
|
+
method: "POST",
|
|
885
|
+
authType: "AK",
|
|
886
|
+
style: "RPC",
|
|
887
|
+
reqBodyType: "formData",
|
|
888
|
+
bodyType: "json",
|
|
889
|
+
});
|
|
890
|
+
return $dara.cast<$_model.CreateChatFlowLogSettingResponse>(await this.callApi(params, req, runtime), new $_model.CreateChatFlowLogSettingResponse({}));
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Create chatFlow log setting
|
|
895
|
+
*
|
|
896
|
+
* @param request - CreateChatFlowLogSettingRequest
|
|
897
|
+
* @returns CreateChatFlowLogSettingResponse
|
|
898
|
+
*/
|
|
899
|
+
async createChatFlowLogSetting(request: $_model.CreateChatFlowLogSettingRequest): Promise<$_model.CreateChatFlowLogSettingResponse> {
|
|
900
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
901
|
+
return await this.createChatFlowLogSettingWithOptions(request, runtime);
|
|
902
|
+
}
|
|
903
|
+
|
|
738
904
|
/**
|
|
739
905
|
* The ID of the number.
|
|
740
906
|
*
|
|
@@ -962,14 +1128,90 @@ export default class Client extends OpenApi {
|
|
|
962
1128
|
}
|
|
963
1129
|
|
|
964
1130
|
/**
|
|
965
|
-
*
|
|
1131
|
+
* CreateFlowVersion
|
|
966
1132
|
*
|
|
967
|
-
* @param
|
|
1133
|
+
* @param tmpReq - CreateFlowVersionRequest
|
|
968
1134
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
969
|
-
* @returns
|
|
1135
|
+
* @returns CreateFlowVersionResponse
|
|
970
1136
|
*/
|
|
971
|
-
async
|
|
972
|
-
|
|
1137
|
+
async createFlowVersionWithOptions(tmpReq: $_model.CreateFlowVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateFlowVersionResponse> {
|
|
1138
|
+
tmpReq.validate();
|
|
1139
|
+
let request = new $_model.CreateFlowVersionShrinkRequest({ });
|
|
1140
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1141
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
1142
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
let query = { };
|
|
1146
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
1147
|
+
query["BizCode"] = request.bizCode;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
1151
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1155
|
+
query["FlowCode"] = request.flowCode;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
if (!$dara.isNull(request.flowVersionCopyFrom)) {
|
|
1159
|
+
query["FlowVersionCopyFrom"] = request.flowVersionCopyFrom;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1163
|
+
query["OwnerId"] = request.ownerId;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
if (!$dara.isNull(request.remark)) {
|
|
1167
|
+
query["Remark"] = request.remark;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1171
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1175
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1179
|
+
query: OpenApiUtil.query(query),
|
|
1180
|
+
});
|
|
1181
|
+
let params = new $OpenApiUtil.Params({
|
|
1182
|
+
action: "CreateFlowVersion",
|
|
1183
|
+
version: "2020-06-06",
|
|
1184
|
+
protocol: "HTTPS",
|
|
1185
|
+
pathname: "/",
|
|
1186
|
+
method: "POST",
|
|
1187
|
+
authType: "AK",
|
|
1188
|
+
style: "RPC",
|
|
1189
|
+
reqBodyType: "formData",
|
|
1190
|
+
bodyType: "json",
|
|
1191
|
+
});
|
|
1192
|
+
return $dara.cast<$_model.CreateFlowVersionResponse>(await this.callApi(params, req, runtime), new $_model.CreateFlowVersionResponse({}));
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* CreateFlowVersion
|
|
1197
|
+
*
|
|
1198
|
+
* @param request - CreateFlowVersionRequest
|
|
1199
|
+
* @returns CreateFlowVersionResponse
|
|
1200
|
+
*/
|
|
1201
|
+
async createFlowVersion(request: $_model.CreateFlowVersionRequest): Promise<$_model.CreateFlowVersionResponse> {
|
|
1202
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1203
|
+
return await this.createFlowVersionWithOptions(request, runtime);
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Creates a quick-response (QR) code that contains a message.
|
|
1208
|
+
*
|
|
1209
|
+
* @param request - CreatePhoneMessageQrdlRequest
|
|
1210
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1211
|
+
* @returns CreatePhoneMessageQrdlResponse
|
|
1212
|
+
*/
|
|
1213
|
+
async createPhoneMessageQrdlWithOptions(request: $_model.CreatePhoneMessageQrdlRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePhoneMessageQrdlResponse> {
|
|
1214
|
+
request.validate();
|
|
973
1215
|
let body : {[key: string ]: any} = { };
|
|
974
1216
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
975
1217
|
body["CustSpaceId"] = request.custSpaceId;
|
|
@@ -1016,33 +1258,31 @@ export default class Client extends OpenApi {
|
|
|
1016
1258
|
}
|
|
1017
1259
|
|
|
1018
1260
|
/**
|
|
1019
|
-
*
|
|
1020
|
-
*
|
|
1021
|
-
* @remarks
|
|
1022
|
-
* ### QPS limit
|
|
1023
|
-
* You can call this operation up to five times per second per account. If the number of the 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.
|
|
1261
|
+
* Delete Process
|
|
1024
1262
|
*
|
|
1025
|
-
* @param
|
|
1263
|
+
* @param tmpReq - DeleteChatFlowRequest
|
|
1026
1264
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1027
|
-
* @returns
|
|
1265
|
+
* @returns DeleteChatFlowResponse
|
|
1028
1266
|
*/
|
|
1029
|
-
async
|
|
1030
|
-
|
|
1031
|
-
let
|
|
1032
|
-
|
|
1033
|
-
|
|
1267
|
+
async deleteChatFlowWithOptions(tmpReq: $_model.DeleteChatFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatFlowResponse> {
|
|
1268
|
+
tmpReq.validate();
|
|
1269
|
+
let request = new $_model.DeleteChatFlowShrinkRequest({ });
|
|
1270
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1271
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
1272
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
1034
1273
|
}
|
|
1035
1274
|
|
|
1036
|
-
|
|
1037
|
-
|
|
1275
|
+
let query = { };
|
|
1276
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
1277
|
+
query["BizCode"] = request.bizCode;
|
|
1038
1278
|
}
|
|
1039
1279
|
|
|
1040
|
-
if (!$dara.isNull(request.
|
|
1041
|
-
query["
|
|
1280
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
1281
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
1042
1282
|
}
|
|
1043
1283
|
|
|
1044
|
-
if (!$dara.isNull(request.
|
|
1045
|
-
query["
|
|
1284
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1285
|
+
query["FlowCode"] = request.flowCode;
|
|
1046
1286
|
}
|
|
1047
1287
|
|
|
1048
1288
|
if (!$dara.isNull(request.ownerId)) {
|
|
@@ -1057,23 +1297,11 @@ export default class Client extends OpenApi {
|
|
|
1057
1297
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1058
1298
|
}
|
|
1059
1299
|
|
|
1060
|
-
if (!$dara.isNull(request.templateCode)) {
|
|
1061
|
-
query["TemplateCode"] = request.templateCode;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
if (!$dara.isNull(request.templateName)) {
|
|
1065
|
-
query["TemplateName"] = request.templateName;
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
if (!$dara.isNull(request.templateType)) {
|
|
1069
|
-
query["TemplateType"] = request.templateType;
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
1300
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1073
1301
|
query: OpenApiUtil.query(query),
|
|
1074
1302
|
});
|
|
1075
1303
|
let params = new $OpenApiUtil.Params({
|
|
1076
|
-
action: "
|
|
1304
|
+
action: "DeleteChatFlow",
|
|
1077
1305
|
version: "2020-06-06",
|
|
1078
1306
|
protocol: "HTTPS",
|
|
1079
1307
|
pathname: "/",
|
|
@@ -1083,50 +1311,63 @@ export default class Client extends OpenApi {
|
|
|
1083
1311
|
reqBodyType: "formData",
|
|
1084
1312
|
bodyType: "json",
|
|
1085
1313
|
});
|
|
1086
|
-
return $dara.cast<$_model.
|
|
1314
|
+
return $dara.cast<$_model.DeleteChatFlowResponse>(await this.callApi(params, req, runtime), new $_model.DeleteChatFlowResponse({}));
|
|
1087
1315
|
}
|
|
1088
1316
|
|
|
1089
1317
|
/**
|
|
1090
|
-
*
|
|
1091
|
-
*
|
|
1092
|
-
* @remarks
|
|
1093
|
-
* ### QPS limit
|
|
1094
|
-
* You can call this operation up to five times per second per account. If the number of the 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.
|
|
1318
|
+
* Delete Process
|
|
1095
1319
|
*
|
|
1096
|
-
* @param request -
|
|
1097
|
-
* @returns
|
|
1320
|
+
* @param request - DeleteChatFlowRequest
|
|
1321
|
+
* @returns DeleteChatFlowResponse
|
|
1098
1322
|
*/
|
|
1099
|
-
async
|
|
1323
|
+
async deleteChatFlow(request: $_model.DeleteChatFlowRequest): Promise<$_model.DeleteChatFlowResponse> {
|
|
1100
1324
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1101
|
-
return await this.
|
|
1325
|
+
return await this.deleteChatFlowWithOptions(request, runtime);
|
|
1102
1326
|
}
|
|
1103
1327
|
|
|
1104
1328
|
/**
|
|
1105
|
-
*
|
|
1106
|
-
*
|
|
1107
|
-
* @remarks
|
|
1108
|
-
* 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.
|
|
1329
|
+
* DeleteChatGroup
|
|
1109
1330
|
*
|
|
1110
|
-
* @param request -
|
|
1331
|
+
* @param request - DeleteChatGroupRequest
|
|
1111
1332
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1112
|
-
* @returns
|
|
1333
|
+
* @returns DeleteChatGroupResponse
|
|
1113
1334
|
*/
|
|
1114
|
-
async
|
|
1335
|
+
async deleteChatGroupWithOptions(request: $_model.DeleteChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatGroupResponse> {
|
|
1115
1336
|
request.validate();
|
|
1116
|
-
let
|
|
1337
|
+
let query = { };
|
|
1338
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
1339
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1343
|
+
query["ChannelType"] = request.channelType;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1117
1346
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1118
|
-
|
|
1347
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1119
1348
|
}
|
|
1120
1349
|
|
|
1121
|
-
if (!$dara.isNull(request.
|
|
1122
|
-
|
|
1350
|
+
if (!$dara.isNull(request.groupId)) {
|
|
1351
|
+
query["GroupId"] = request.groupId;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1355
|
+
query["OwnerId"] = request.ownerId;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1359
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1363
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1123
1364
|
}
|
|
1124
1365
|
|
|
1125
1366
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1126
|
-
|
|
1367
|
+
query: OpenApiUtil.query(query),
|
|
1127
1368
|
});
|
|
1128
1369
|
let params = new $OpenApiUtil.Params({
|
|
1129
|
-
action: "
|
|
1370
|
+
action: "DeleteChatGroup",
|
|
1130
1371
|
version: "2020-06-06",
|
|
1131
1372
|
protocol: "HTTPS",
|
|
1132
1373
|
pathname: "/",
|
|
@@ -1136,50 +1377,63 @@ export default class Client extends OpenApi {
|
|
|
1136
1377
|
reqBodyType: "formData",
|
|
1137
1378
|
bodyType: "json",
|
|
1138
1379
|
});
|
|
1139
|
-
return $dara.cast<$_model.
|
|
1380
|
+
return $dara.cast<$_model.DeleteChatGroupResponse>(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupResponse({}));
|
|
1140
1381
|
}
|
|
1141
1382
|
|
|
1142
1383
|
/**
|
|
1143
|
-
*
|
|
1384
|
+
* DeleteChatGroup
|
|
1144
1385
|
*
|
|
1145
|
-
* @
|
|
1146
|
-
*
|
|
1147
|
-
*
|
|
1148
|
-
* @param request - DeleteFlowRequest
|
|
1149
|
-
* @returns DeleteFlowResponse
|
|
1386
|
+
* @param request - DeleteChatGroupRequest
|
|
1387
|
+
* @returns DeleteChatGroupResponse
|
|
1150
1388
|
*/
|
|
1151
|
-
async
|
|
1389
|
+
async deleteChatGroup(request: $_model.DeleteChatGroupRequest): Promise<$_model.DeleteChatGroupResponse> {
|
|
1152
1390
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1153
|
-
return await this.
|
|
1391
|
+
return await this.deleteChatGroupWithOptions(request, runtime);
|
|
1154
1392
|
}
|
|
1155
1393
|
|
|
1156
1394
|
/**
|
|
1157
|
-
*
|
|
1395
|
+
* DeleteChatGroupInviteLink
|
|
1158
1396
|
*
|
|
1159
|
-
* @param request -
|
|
1397
|
+
* @param request - DeleteChatGroupInviteLinkRequest
|
|
1160
1398
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1161
|
-
* @returns
|
|
1399
|
+
* @returns DeleteChatGroupInviteLinkResponse
|
|
1162
1400
|
*/
|
|
1163
|
-
async
|
|
1401
|
+
async deleteChatGroupInviteLinkWithOptions(request: $_model.DeleteChatGroupInviteLinkRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatGroupInviteLinkResponse> {
|
|
1164
1402
|
request.validate();
|
|
1165
|
-
let
|
|
1403
|
+
let query = { };
|
|
1404
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
1405
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1409
|
+
query["ChannelType"] = request.channelType;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1166
1412
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1167
|
-
|
|
1413
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1168
1414
|
}
|
|
1169
1415
|
|
|
1170
|
-
if (!$dara.isNull(request.
|
|
1171
|
-
|
|
1416
|
+
if (!$dara.isNull(request.groupId)) {
|
|
1417
|
+
query["GroupId"] = request.groupId;
|
|
1172
1418
|
}
|
|
1173
1419
|
|
|
1174
|
-
if (!$dara.isNull(request.
|
|
1175
|
-
|
|
1420
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1421
|
+
query["OwnerId"] = request.ownerId;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1425
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1429
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1176
1430
|
}
|
|
1177
1431
|
|
|
1178
1432
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1179
|
-
|
|
1433
|
+
query: OpenApiUtil.query(query),
|
|
1180
1434
|
});
|
|
1181
1435
|
let params = new $OpenApiUtil.Params({
|
|
1182
|
-
action: "
|
|
1436
|
+
action: "DeleteChatGroupInviteLink",
|
|
1183
1437
|
version: "2020-06-06",
|
|
1184
1438
|
protocol: "HTTPS",
|
|
1185
1439
|
pathname: "/",
|
|
@@ -1189,43 +1443,73 @@ export default class Client extends OpenApi {
|
|
|
1189
1443
|
reqBodyType: "formData",
|
|
1190
1444
|
bodyType: "json",
|
|
1191
1445
|
});
|
|
1192
|
-
return $dara.cast<$_model.
|
|
1446
|
+
return $dara.cast<$_model.DeleteChatGroupInviteLinkResponse>(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupInviteLinkResponse({}));
|
|
1193
1447
|
}
|
|
1194
1448
|
|
|
1195
1449
|
/**
|
|
1196
|
-
*
|
|
1450
|
+
* DeleteChatGroupInviteLink
|
|
1197
1451
|
*
|
|
1198
|
-
* @param request -
|
|
1199
|
-
* @returns
|
|
1452
|
+
* @param request - DeleteChatGroupInviteLinkRequest
|
|
1453
|
+
* @returns DeleteChatGroupInviteLinkResponse
|
|
1200
1454
|
*/
|
|
1201
|
-
async
|
|
1455
|
+
async deleteChatGroupInviteLink(request: $_model.DeleteChatGroupInviteLinkRequest): Promise<$_model.DeleteChatGroupInviteLinkResponse> {
|
|
1202
1456
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1203
|
-
return await this.
|
|
1457
|
+
return await this.deleteChatGroupInviteLinkWithOptions(request, runtime);
|
|
1204
1458
|
}
|
|
1205
1459
|
|
|
1206
1460
|
/**
|
|
1207
|
-
*
|
|
1461
|
+
* DeleteChatGroupParticipants
|
|
1208
1462
|
*
|
|
1209
|
-
* @param
|
|
1463
|
+
* @param tmpReq - DeleteChatGroupParticipantsRequest
|
|
1210
1464
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1211
|
-
* @returns
|
|
1465
|
+
* @returns DeleteChatGroupParticipantsResponse
|
|
1212
1466
|
*/
|
|
1213
|
-
async
|
|
1214
|
-
|
|
1215
|
-
let
|
|
1467
|
+
async deleteChatGroupParticipantsWithOptions(tmpReq: $_model.DeleteChatGroupParticipantsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatGroupParticipantsResponse> {
|
|
1468
|
+
tmpReq.validate();
|
|
1469
|
+
let request = new $_model.DeleteChatGroupParticipantsShrinkRequest({ });
|
|
1470
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1471
|
+
if (!$dara.isNull(tmpReq.list)) {
|
|
1472
|
+
request.listShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.list, "List", "json");
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
let query = { };
|
|
1476
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
1477
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1481
|
+
query["ChannelType"] = request.channelType;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1216
1484
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1217
|
-
|
|
1485
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1218
1486
|
}
|
|
1219
1487
|
|
|
1220
|
-
if (!$dara.isNull(request.
|
|
1221
|
-
|
|
1488
|
+
if (!$dara.isNull(request.groupId)) {
|
|
1489
|
+
query["GroupId"] = request.groupId;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
if (!$dara.isNull(request.listShrink)) {
|
|
1493
|
+
query["List"] = request.listShrink;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1497
|
+
query["OwnerId"] = request.ownerId;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1501
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1505
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1222
1506
|
}
|
|
1223
1507
|
|
|
1224
1508
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1225
|
-
|
|
1509
|
+
query: OpenApiUtil.query(query),
|
|
1226
1510
|
});
|
|
1227
1511
|
let params = new $OpenApiUtil.Params({
|
|
1228
|
-
action: "
|
|
1512
|
+
action: "DeleteChatGroupParticipants",
|
|
1229
1513
|
version: "2020-06-06",
|
|
1230
1514
|
protocol: "HTTPS",
|
|
1231
1515
|
pathname: "/",
|
|
@@ -1235,83 +1519,905 @@ export default class Client extends OpenApi {
|
|
|
1235
1519
|
reqBodyType: "formData",
|
|
1236
1520
|
bodyType: "json",
|
|
1237
1521
|
});
|
|
1238
|
-
return $dara.cast<$_model.
|
|
1522
|
+
return $dara.cast<$_model.DeleteChatGroupParticipantsResponse>(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupParticipantsResponse({}));
|
|
1239
1523
|
}
|
|
1240
1524
|
|
|
1241
1525
|
/**
|
|
1242
|
-
*
|
|
1526
|
+
* DeleteChatGroupParticipants
|
|
1243
1527
|
*
|
|
1244
|
-
* @param request -
|
|
1245
|
-
* @returns
|
|
1528
|
+
* @param request - DeleteChatGroupParticipantsRequest
|
|
1529
|
+
* @returns DeleteChatGroupParticipantsResponse
|
|
1246
1530
|
*/
|
|
1247
|
-
async
|
|
1531
|
+
async deleteChatGroupParticipants(request: $_model.DeleteChatGroupParticipantsRequest): Promise<$_model.DeleteChatGroupParticipantsResponse> {
|
|
1248
1532
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1249
|
-
return await this.
|
|
1533
|
+
return await this.deleteChatGroupParticipantsWithOptions(request, runtime);
|
|
1250
1534
|
}
|
|
1251
1535
|
|
|
1252
1536
|
/**
|
|
1253
|
-
*
|
|
1537
|
+
* Deletes a message template.
|
|
1254
1538
|
*
|
|
1255
1539
|
* @remarks
|
|
1256
|
-
*
|
|
1540
|
+
* ### QPS limit
|
|
1541
|
+
* You can call this operation up to five times per second per account. If the number of the 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.
|
|
1257
1542
|
*
|
|
1258
|
-
* @param request -
|
|
1543
|
+
* @param request - DeleteChatappTemplateRequest
|
|
1259
1544
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1260
|
-
* @returns
|
|
1545
|
+
* @returns DeleteChatappTemplateResponse
|
|
1261
1546
|
*/
|
|
1262
|
-
async
|
|
1547
|
+
async deleteChatappTemplateWithOptions(request: $_model.DeleteChatappTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChatappTemplateResponse> {
|
|
1263
1548
|
request.validate();
|
|
1264
1549
|
let query = { };
|
|
1265
1550
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1266
1551
|
query["CustSpaceId"] = request.custSpaceId;
|
|
1267
1552
|
}
|
|
1268
1553
|
|
|
1554
|
+
if (!$dara.isNull(request.custWabaId)) {
|
|
1555
|
+
query["CustWabaId"] = request.custWabaId;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1269
1558
|
if (!$dara.isNull(request.isvCode)) {
|
|
1270
1559
|
query["IsvCode"] = request.isvCode;
|
|
1271
1560
|
}
|
|
1272
1561
|
|
|
1273
|
-
|
|
1274
|
-
query
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1562
|
+
if (!$dara.isNull(request.language)) {
|
|
1563
|
+
query["Language"] = request.language;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1567
|
+
query["OwnerId"] = request.ownerId;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1571
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1575
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
if (!$dara.isNull(request.templateCode)) {
|
|
1579
|
+
query["TemplateCode"] = request.templateCode;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
if (!$dara.isNull(request.templateName)) {
|
|
1583
|
+
query["TemplateName"] = request.templateName;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
if (!$dara.isNull(request.templateType)) {
|
|
1587
|
+
query["TemplateType"] = request.templateType;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1591
|
+
query: OpenApiUtil.query(query),
|
|
1592
|
+
});
|
|
1593
|
+
let params = new $OpenApiUtil.Params({
|
|
1594
|
+
action: "DeleteChatappTemplate",
|
|
1595
|
+
version: "2020-06-06",
|
|
1596
|
+
protocol: "HTTPS",
|
|
1597
|
+
pathname: "/",
|
|
1598
|
+
method: "POST",
|
|
1599
|
+
authType: "AK",
|
|
1600
|
+
style: "RPC",
|
|
1601
|
+
reqBodyType: "formData",
|
|
1602
|
+
bodyType: "json",
|
|
1603
|
+
});
|
|
1604
|
+
return $dara.cast<$_model.DeleteChatappTemplateResponse>(await this.callApi(params, req, runtime), new $_model.DeleteChatappTemplateResponse({}));
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Deletes a message template.
|
|
1609
|
+
*
|
|
1610
|
+
* @remarks
|
|
1611
|
+
* ### QPS limit
|
|
1612
|
+
* You can call this operation up to five times per second per account. If the number of the 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.
|
|
1613
|
+
*
|
|
1614
|
+
* @param request - DeleteChatappTemplateRequest
|
|
1615
|
+
* @returns DeleteChatappTemplateResponse
|
|
1616
|
+
*/
|
|
1617
|
+
async deleteChatappTemplate(request: $_model.DeleteChatappTemplateRequest): Promise<$_model.DeleteChatappTemplateResponse> {
|
|
1618
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1619
|
+
return await this.deleteChatappTemplateWithOptions(request, runtime);
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* Deletes a Flow. Only Flows in the DRAFT state can be deleted.
|
|
1624
|
+
*
|
|
1625
|
+
* @remarks
|
|
1626
|
+
* 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.
|
|
1627
|
+
*
|
|
1628
|
+
* @param request - DeleteFlowRequest
|
|
1629
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1630
|
+
* @returns DeleteFlowResponse
|
|
1631
|
+
*/
|
|
1632
|
+
async deleteFlowWithOptions(request: $_model.DeleteFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteFlowResponse> {
|
|
1633
|
+
request.validate();
|
|
1634
|
+
let body : {[key: string ]: any} = { };
|
|
1635
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
1636
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
if (!$dara.isNull(request.flowId)) {
|
|
1640
|
+
body["FlowId"] = request.flowId;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1644
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1645
|
+
});
|
|
1646
|
+
let params = new $OpenApiUtil.Params({
|
|
1647
|
+
action: "DeleteFlow",
|
|
1648
|
+
version: "2020-06-06",
|
|
1649
|
+
protocol: "HTTPS",
|
|
1650
|
+
pathname: "/",
|
|
1651
|
+
method: "POST",
|
|
1652
|
+
authType: "AK",
|
|
1653
|
+
style: "RPC",
|
|
1654
|
+
reqBodyType: "formData",
|
|
1655
|
+
bodyType: "json",
|
|
1656
|
+
});
|
|
1657
|
+
return $dara.cast<$_model.DeleteFlowResponse>(await this.callApi(params, req, runtime), new $_model.DeleteFlowResponse({}));
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* Deletes a Flow. Only Flows in the DRAFT state can be deleted.
|
|
1662
|
+
*
|
|
1663
|
+
* @remarks
|
|
1664
|
+
* 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.
|
|
1665
|
+
*
|
|
1666
|
+
* @param request - DeleteFlowRequest
|
|
1667
|
+
* @returns DeleteFlowResponse
|
|
1668
|
+
*/
|
|
1669
|
+
async deleteFlow(request: $_model.DeleteFlowRequest): Promise<$_model.DeleteFlowResponse> {
|
|
1670
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1671
|
+
return await this.deleteFlowWithOptions(request, runtime);
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
* Delete Flow Version
|
|
1676
|
+
*
|
|
1677
|
+
* @param tmpReq - DeleteFlowVersionRequest
|
|
1678
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1679
|
+
* @returns DeleteFlowVersionResponse
|
|
1680
|
+
*/
|
|
1681
|
+
async deleteFlowVersionWithOptions(tmpReq: $_model.DeleteFlowVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteFlowVersionResponse> {
|
|
1682
|
+
tmpReq.validate();
|
|
1683
|
+
let request = new $_model.DeleteFlowVersionShrinkRequest({ });
|
|
1684
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1685
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
1686
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
let query = { };
|
|
1690
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
1691
|
+
query["BizCode"] = request.bizCode;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
1695
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1699
|
+
query["FlowCode"] = request.flowCode;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
1703
|
+
query["FlowVersion"] = request.flowVersion;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1707
|
+
query["OwnerId"] = request.ownerId;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1711
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1715
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1719
|
+
query: OpenApiUtil.query(query),
|
|
1720
|
+
});
|
|
1721
|
+
let params = new $OpenApiUtil.Params({
|
|
1722
|
+
action: "DeleteFlowVersion",
|
|
1723
|
+
version: "2020-06-06",
|
|
1724
|
+
protocol: "HTTPS",
|
|
1725
|
+
pathname: "/",
|
|
1726
|
+
method: "POST",
|
|
1727
|
+
authType: "AK",
|
|
1728
|
+
style: "RPC",
|
|
1729
|
+
reqBodyType: "formData",
|
|
1730
|
+
bodyType: "json",
|
|
1731
|
+
});
|
|
1732
|
+
return $dara.cast<$_model.DeleteFlowVersionResponse>(await this.callApi(params, req, runtime), new $_model.DeleteFlowVersionResponse({}));
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* Delete Flow Version
|
|
1737
|
+
*
|
|
1738
|
+
* @param request - DeleteFlowVersionRequest
|
|
1739
|
+
* @returns DeleteFlowVersionResponse
|
|
1740
|
+
*/
|
|
1741
|
+
async deleteFlowVersion(request: $_model.DeleteFlowVersionRequest): Promise<$_model.DeleteFlowVersionResponse> {
|
|
1742
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1743
|
+
return await this.deleteFlowVersionWithOptions(request, runtime);
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Deletes a quick-response (QR) code that contains a message.
|
|
1748
|
+
*
|
|
1749
|
+
* @param request - DeletePhoneMessageQrdlRequest
|
|
1750
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1751
|
+
* @returns DeletePhoneMessageQrdlResponse
|
|
1752
|
+
*/
|
|
1753
|
+
async deletePhoneMessageQrdlWithOptions(request: $_model.DeletePhoneMessageQrdlRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeletePhoneMessageQrdlResponse> {
|
|
1754
|
+
request.validate();
|
|
1755
|
+
let body : {[key: string ]: any} = { };
|
|
1756
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
1757
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
1761
|
+
body["PhoneNumber"] = request.phoneNumber;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
if (!$dara.isNull(request.qrdlCode)) {
|
|
1765
|
+
body["QrdlCode"] = request.qrdlCode;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1769
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1770
|
+
});
|
|
1771
|
+
let params = new $OpenApiUtil.Params({
|
|
1772
|
+
action: "DeletePhoneMessageQrdl",
|
|
1773
|
+
version: "2020-06-06",
|
|
1774
|
+
protocol: "HTTPS",
|
|
1775
|
+
pathname: "/",
|
|
1776
|
+
method: "POST",
|
|
1777
|
+
authType: "AK",
|
|
1778
|
+
style: "RPC",
|
|
1779
|
+
reqBodyType: "formData",
|
|
1780
|
+
bodyType: "json",
|
|
1781
|
+
});
|
|
1782
|
+
return $dara.cast<$_model.DeletePhoneMessageQrdlResponse>(await this.callApi(params, req, runtime), new $_model.DeletePhoneMessageQrdlResponse({}));
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
/**
|
|
1786
|
+
* Deletes a quick-response (QR) code that contains a message.
|
|
1787
|
+
*
|
|
1788
|
+
* @param request - DeletePhoneMessageQrdlRequest
|
|
1789
|
+
* @returns DeletePhoneMessageQrdlResponse
|
|
1790
|
+
*/
|
|
1791
|
+
async deletePhoneMessageQrdl(request: $_model.DeletePhoneMessageQrdlRequest): Promise<$_model.DeletePhoneMessageQrdlResponse> {
|
|
1792
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1793
|
+
return await this.deletePhoneMessageQrdlWithOptions(request, runtime);
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* Deprecates a Flow.
|
|
1798
|
+
*
|
|
1799
|
+
* @param request - DeprecateFlowRequest
|
|
1800
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1801
|
+
* @returns DeprecateFlowResponse
|
|
1802
|
+
*/
|
|
1803
|
+
async deprecateFlowWithOptions(request: $_model.DeprecateFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeprecateFlowResponse> {
|
|
1804
|
+
request.validate();
|
|
1805
|
+
let body : {[key: string ]: any} = { };
|
|
1806
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
1807
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
if (!$dara.isNull(request.flowId)) {
|
|
1811
|
+
body["FlowId"] = request.flowId;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1815
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1816
|
+
});
|
|
1817
|
+
let params = new $OpenApiUtil.Params({
|
|
1818
|
+
action: "DeprecateFlow",
|
|
1819
|
+
version: "2020-06-06",
|
|
1820
|
+
protocol: "HTTPS",
|
|
1821
|
+
pathname: "/",
|
|
1822
|
+
method: "POST",
|
|
1823
|
+
authType: "AK",
|
|
1824
|
+
style: "RPC",
|
|
1825
|
+
reqBodyType: "formData",
|
|
1826
|
+
bodyType: "json",
|
|
1827
|
+
});
|
|
1828
|
+
return $dara.cast<$_model.DeprecateFlowResponse>(await this.callApi(params, req, runtime), new $_model.DeprecateFlowResponse({}));
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Deprecates a Flow.
|
|
1833
|
+
*
|
|
1834
|
+
* @param request - DeprecateFlowRequest
|
|
1835
|
+
* @returns DeprecateFlowResponse
|
|
1836
|
+
*/
|
|
1837
|
+
async deprecateFlow(request: $_model.DeprecateFlowRequest): Promise<$_model.DeprecateFlowResponse> {
|
|
1838
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1839
|
+
return await this.deprecateFlowWithOptions(request, runtime);
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* Enables the statistics on the metrics that are related to WhatsApp.
|
|
1844
|
+
*
|
|
1845
|
+
* @remarks
|
|
1846
|
+
* 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.
|
|
1847
|
+
*
|
|
1848
|
+
* @param request - EnableWhatsappROIMetricRequest
|
|
1849
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1850
|
+
* @returns EnableWhatsappROIMetricResponse
|
|
1851
|
+
*/
|
|
1852
|
+
async enableWhatsappROIMetricWithOptions(request: $_model.EnableWhatsappROIMetricRequest, runtime: $dara.RuntimeOptions): Promise<$_model.EnableWhatsappROIMetricResponse> {
|
|
1853
|
+
request.validate();
|
|
1854
|
+
let query = { };
|
|
1855
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
1856
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
if (!$dara.isNull(request.isvCode)) {
|
|
1860
|
+
query["IsvCode"] = request.isvCode;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1864
|
+
query: OpenApiUtil.query(query),
|
|
1865
|
+
});
|
|
1866
|
+
let params = new $OpenApiUtil.Params({
|
|
1867
|
+
action: "EnableWhatsappROIMetric",
|
|
1868
|
+
version: "2020-06-06",
|
|
1869
|
+
protocol: "HTTPS",
|
|
1870
|
+
pathname: "/",
|
|
1871
|
+
method: "POST",
|
|
1872
|
+
authType: "AK",
|
|
1873
|
+
style: "RPC",
|
|
1874
|
+
reqBodyType: "formData",
|
|
1875
|
+
bodyType: "json",
|
|
1876
|
+
});
|
|
1877
|
+
return $dara.cast<$_model.EnableWhatsappROIMetricResponse>(await this.callApi(params, req, runtime), new $_model.EnableWhatsappROIMetricResponse({}));
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* Enables the statistics on the metrics that are related to WhatsApp.
|
|
1882
|
+
*
|
|
1883
|
+
* @remarks
|
|
1884
|
+
* 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.
|
|
1885
|
+
*
|
|
1886
|
+
* @param request - EnableWhatsappROIMetricRequest
|
|
1887
|
+
* @returns EnableWhatsappROIMetricResponse
|
|
1888
|
+
*/
|
|
1889
|
+
async enableWhatsappROIMetric(request: $_model.EnableWhatsappROIMetricRequest): Promise<$_model.EnableWhatsappROIMetricResponse> {
|
|
1890
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1891
|
+
return await this.enableWhatsappROIMetricWithOptions(request, runtime);
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Bind phone numbers to flow
|
|
1896
|
+
*
|
|
1897
|
+
* @param tmpReq - FlowBindPhoneRequest
|
|
1898
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1899
|
+
* @returns FlowBindPhoneResponse
|
|
1900
|
+
*/
|
|
1901
|
+
async flowBindPhoneWithOptions(tmpReq: $_model.FlowBindPhoneRequest, runtime: $dara.RuntimeOptions): Promise<$_model.FlowBindPhoneResponse> {
|
|
1902
|
+
tmpReq.validate();
|
|
1903
|
+
let request = new $_model.FlowBindPhoneShrinkRequest({ });
|
|
1904
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1905
|
+
if (!$dara.isNull(tmpReq.phoneNumbers)) {
|
|
1906
|
+
request.phoneNumbersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
let query = { };
|
|
1910
|
+
if (!$dara.isNull(request.channelCode)) {
|
|
1911
|
+
query["ChannelCode"] = request.channelCode;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1915
|
+
query["ChannelType"] = request.channelType;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1919
|
+
query["FlowCode"] = request.flowCode;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
1923
|
+
query["FlowVersion"] = request.flowVersion;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1927
|
+
query["OwnerId"] = request.ownerId;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
if (!$dara.isNull(request.phoneNumbersShrink)) {
|
|
1931
|
+
query["PhoneNumbers"] = request.phoneNumbersShrink;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1935
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1939
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
1943
|
+
query["WabaId"] = request.wabaId;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1947
|
+
query: OpenApiUtil.query(query),
|
|
1948
|
+
});
|
|
1949
|
+
let params = new $OpenApiUtil.Params({
|
|
1950
|
+
action: "FlowBindPhone",
|
|
1951
|
+
version: "2020-06-06",
|
|
1952
|
+
protocol: "HTTPS",
|
|
1953
|
+
pathname: "/",
|
|
1954
|
+
method: "POST",
|
|
1955
|
+
authType: "AK",
|
|
1956
|
+
style: "RPC",
|
|
1957
|
+
reqBodyType: "formData",
|
|
1958
|
+
bodyType: "json",
|
|
1959
|
+
});
|
|
1960
|
+
return $dara.cast<$_model.FlowBindPhoneResponse>(await this.callApi(params, req, runtime), new $_model.FlowBindPhoneResponse({}));
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
/**
|
|
1964
|
+
* Bind phone numbers to flow
|
|
1965
|
+
*
|
|
1966
|
+
* @param request - FlowBindPhoneRequest
|
|
1967
|
+
* @returns FlowBindPhoneResponse
|
|
1968
|
+
*/
|
|
1969
|
+
async flowBindPhone(request: $_model.FlowBindPhoneRequest): Promise<$_model.FlowBindPhoneResponse> {
|
|
1970
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1971
|
+
return await this.flowBindPhoneWithOptions(request, runtime);
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* Rebind phone number for flow
|
|
1976
|
+
*
|
|
1977
|
+
* @param tmpReq - FlowRebindPhoneRequest
|
|
1978
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1979
|
+
* @returns FlowRebindPhoneResponse
|
|
1980
|
+
*/
|
|
1981
|
+
async flowRebindPhoneWithOptions(tmpReq: $_model.FlowRebindPhoneRequest, runtime: $dara.RuntimeOptions): Promise<$_model.FlowRebindPhoneResponse> {
|
|
1982
|
+
tmpReq.validate();
|
|
1983
|
+
let request = new $_model.FlowRebindPhoneShrinkRequest({ });
|
|
1984
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
1985
|
+
if (!$dara.isNull(tmpReq.phoneNumbers)) {
|
|
1986
|
+
request.phoneNumbersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
let query = { };
|
|
1990
|
+
if (!$dara.isNull(request.channelCode)) {
|
|
1991
|
+
query["ChannelCode"] = request.channelCode;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1995
|
+
query["ChannelType"] = request.channelType;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1999
|
+
query["FlowCode"] = request.flowCode;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
2003
|
+
query["FlowVersion"] = request.flowVersion;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2007
|
+
query["OwnerId"] = request.ownerId;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
if (!$dara.isNull(request.phoneNumbersShrink)) {
|
|
2011
|
+
query["PhoneNumbers"] = request.phoneNumbersShrink;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2015
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2019
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
2023
|
+
query["WabaId"] = request.wabaId;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2027
|
+
query: OpenApiUtil.query(query),
|
|
2028
|
+
});
|
|
2029
|
+
let params = new $OpenApiUtil.Params({
|
|
2030
|
+
action: "FlowRebindPhone",
|
|
2031
|
+
version: "2020-06-06",
|
|
2032
|
+
protocol: "HTTPS",
|
|
2033
|
+
pathname: "/",
|
|
2034
|
+
method: "POST",
|
|
2035
|
+
authType: "AK",
|
|
2036
|
+
style: "RPC",
|
|
2037
|
+
reqBodyType: "formData",
|
|
2038
|
+
bodyType: "json",
|
|
2039
|
+
});
|
|
2040
|
+
return $dara.cast<$_model.FlowRebindPhoneResponse>(await this.callApi(params, req, runtime), new $_model.FlowRebindPhoneResponse({}));
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Rebind phone number for flow
|
|
2045
|
+
*
|
|
2046
|
+
* @param request - FlowRebindPhoneRequest
|
|
2047
|
+
* @returns FlowRebindPhoneResponse
|
|
2048
|
+
*/
|
|
2049
|
+
async flowRebindPhone(request: $_model.FlowRebindPhoneRequest): Promise<$_model.FlowRebindPhoneResponse> {
|
|
2050
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2051
|
+
return await this.flowRebindPhoneWithOptions(request, runtime);
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
/**
|
|
2055
|
+
* Unbind phone number from flow
|
|
2056
|
+
*
|
|
2057
|
+
* @param tmpReq - FlowUnbindPhoneRequest
|
|
2058
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2059
|
+
* @returns FlowUnbindPhoneResponse
|
|
2060
|
+
*/
|
|
2061
|
+
async flowUnbindPhoneWithOptions(tmpReq: $_model.FlowUnbindPhoneRequest, runtime: $dara.RuntimeOptions): Promise<$_model.FlowUnbindPhoneResponse> {
|
|
2062
|
+
tmpReq.validate();
|
|
2063
|
+
let request = new $_model.FlowUnbindPhoneShrinkRequest({ });
|
|
2064
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2065
|
+
if (!$dara.isNull(tmpReq.phoneNumbers)) {
|
|
2066
|
+
request.phoneNumbersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
let query = { };
|
|
2070
|
+
if (!$dara.isNull(request.channelType)) {
|
|
2071
|
+
query["ChannelType"] = request.channelType;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
2075
|
+
query["FlowCode"] = request.flowCode;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
2079
|
+
query["FlowVersion"] = request.flowVersion;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2083
|
+
query["OwnerId"] = request.ownerId;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
if (!$dara.isNull(request.phoneNumbersShrink)) {
|
|
2087
|
+
query["PhoneNumbers"] = request.phoneNumbersShrink;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2091
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2095
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2099
|
+
query: OpenApiUtil.query(query),
|
|
2100
|
+
});
|
|
2101
|
+
let params = new $OpenApiUtil.Params({
|
|
2102
|
+
action: "FlowUnbindPhone",
|
|
2103
|
+
version: "2020-06-06",
|
|
2104
|
+
protocol: "HTTPS",
|
|
2105
|
+
pathname: "/",
|
|
2106
|
+
method: "POST",
|
|
2107
|
+
authType: "AK",
|
|
2108
|
+
style: "RPC",
|
|
2109
|
+
reqBodyType: "formData",
|
|
2110
|
+
bodyType: "json",
|
|
2111
|
+
});
|
|
2112
|
+
return $dara.cast<$_model.FlowUnbindPhoneResponse>(await this.callApi(params, req, runtime), new $_model.FlowUnbindPhoneResponse({}));
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* Unbind phone number from flow
|
|
2117
|
+
*
|
|
2118
|
+
* @param request - FlowUnbindPhoneRequest
|
|
2119
|
+
* @returns FlowUnbindPhoneResponse
|
|
2120
|
+
*/
|
|
2121
|
+
async flowUnbindPhone(request: $_model.FlowUnbindPhoneRequest): Promise<$_model.FlowUnbindPhoneResponse> {
|
|
2122
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2123
|
+
return await this.flowUnbindPhoneWithOptions(request, runtime);
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* Get ChatFlow Runtime Data
|
|
2128
|
+
*
|
|
2129
|
+
* @param tmpReq - GetChatFlowMetricRequest
|
|
2130
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2131
|
+
* @returns GetChatFlowMetricResponse
|
|
2132
|
+
*/
|
|
2133
|
+
async getChatFlowMetricWithOptions(tmpReq: $_model.GetChatFlowMetricRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetChatFlowMetricResponse> {
|
|
2134
|
+
tmpReq.validate();
|
|
2135
|
+
let request = new $_model.GetChatFlowMetricShrinkRequest({ });
|
|
2136
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2137
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
2138
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
let query = { };
|
|
2142
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
2143
|
+
query["BizCode"] = request.bizCode;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
2147
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
2151
|
+
query["FlowCode"] = request.flowCode;
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
2155
|
+
query["FlowVersion"] = request.flowVersion;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
if (!$dara.isNull(request.from)) {
|
|
2159
|
+
query["From"] = request.from;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
if (!$dara.isNull(request.metricName)) {
|
|
2163
|
+
query["MetricName"] = request.metricName;
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2167
|
+
query["OwnerId"] = request.ownerId;
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2171
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2175
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
if (!$dara.isNull(request.to)) {
|
|
2179
|
+
query["To"] = request.to;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2183
|
+
query: OpenApiUtil.query(query),
|
|
2184
|
+
});
|
|
2185
|
+
let params = new $OpenApiUtil.Params({
|
|
2186
|
+
action: "GetChatFlowMetric",
|
|
2187
|
+
version: "2020-06-06",
|
|
2188
|
+
protocol: "HTTPS",
|
|
2189
|
+
pathname: "/",
|
|
2190
|
+
method: "POST",
|
|
2191
|
+
authType: "AK",
|
|
2192
|
+
style: "RPC",
|
|
2193
|
+
reqBodyType: "formData",
|
|
2194
|
+
bodyType: "json",
|
|
2195
|
+
});
|
|
2196
|
+
return $dara.cast<$_model.GetChatFlowMetricResponse>(await this.callApi(params, req, runtime), new $_model.GetChatFlowMetricResponse({}));
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* Get ChatFlow Runtime Data
|
|
2201
|
+
*
|
|
2202
|
+
* @param request - GetChatFlowMetricRequest
|
|
2203
|
+
* @returns GetChatFlowMetricResponse
|
|
2204
|
+
*/
|
|
2205
|
+
async getChatFlowMetric(request: $_model.GetChatFlowMetricRequest): Promise<$_model.GetChatFlowMetricResponse> {
|
|
2206
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2207
|
+
return await this.getChatFlowMetricWithOptions(request, runtime);
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* Query chatFlow template
|
|
2212
|
+
*
|
|
2213
|
+
* @param request - GetChatFlowTemplateRequest
|
|
2214
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2215
|
+
* @returns GetChatFlowTemplateResponse
|
|
2216
|
+
*/
|
|
2217
|
+
async getChatFlowTemplateWithOptions(request: $_model.GetChatFlowTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetChatFlowTemplateResponse> {
|
|
2218
|
+
request.validate();
|
|
2219
|
+
let query = { };
|
|
2220
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
2221
|
+
query["BizCode"] = request.bizCode;
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
if (!$dara.isNull(request.id)) {
|
|
2225
|
+
query["Id"] = request.id;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2229
|
+
query["OwnerId"] = request.ownerId;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2233
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2237
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2241
|
+
query: OpenApiUtil.query(query),
|
|
2242
|
+
});
|
|
2243
|
+
let params = new $OpenApiUtil.Params({
|
|
2244
|
+
action: "GetChatFlowTemplate",
|
|
2245
|
+
version: "2020-06-06",
|
|
2246
|
+
protocol: "HTTPS",
|
|
2247
|
+
pathname: "/",
|
|
2248
|
+
method: "POST",
|
|
2249
|
+
authType: "AK",
|
|
2250
|
+
style: "RPC",
|
|
2251
|
+
reqBodyType: "formData",
|
|
2252
|
+
bodyType: "json",
|
|
2253
|
+
});
|
|
2254
|
+
return $dara.cast<$_model.GetChatFlowTemplateResponse>(await this.callApi(params, req, runtime), new $_model.GetChatFlowTemplateResponse({}));
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
/**
|
|
2258
|
+
* Query chatFlow template
|
|
2259
|
+
*
|
|
2260
|
+
* @param request - GetChatFlowTemplateRequest
|
|
2261
|
+
* @returns GetChatFlowTemplateResponse
|
|
2262
|
+
*/
|
|
2263
|
+
async getChatFlowTemplate(request: $_model.GetChatFlowTemplateRequest): Promise<$_model.GetChatFlowTemplateResponse> {
|
|
2264
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2265
|
+
return await this.getChatFlowTemplateWithOptions(request, runtime);
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
/**
|
|
2269
|
+
* Queries the number of messages that are sent by using a phone number by a specific metric.
|
|
2270
|
+
*
|
|
2271
|
+
* @remarks
|
|
2272
|
+
* 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.
|
|
2273
|
+
*
|
|
2274
|
+
* @param request - GetChatappPhoneNumberMetricRequest
|
|
2275
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2276
|
+
* @returns GetChatappPhoneNumberMetricResponse
|
|
2277
|
+
*/
|
|
2278
|
+
async getChatappPhoneNumberMetricWithOptions(request: $_model.GetChatappPhoneNumberMetricRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetChatappPhoneNumberMetricResponse> {
|
|
2279
|
+
request.validate();
|
|
2280
|
+
let query = { };
|
|
2281
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2282
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
if (!$dara.isNull(request.end)) {
|
|
2286
|
+
query["End"] = request.end;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
if (!$dara.isNull(request.granularity)) {
|
|
2290
|
+
query["Granularity"] = request.granularity;
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
if (!$dara.isNull(request.isvCode)) {
|
|
2294
|
+
query["IsvCode"] = request.isvCode;
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
2298
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
if (!$dara.isNull(request.start)) {
|
|
2302
|
+
query["Start"] = request.start;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2306
|
+
query: OpenApiUtil.query(query),
|
|
2307
|
+
});
|
|
2308
|
+
let params = new $OpenApiUtil.Params({
|
|
2309
|
+
action: "GetChatappPhoneNumberMetric",
|
|
2310
|
+
version: "2020-06-06",
|
|
2311
|
+
protocol: "HTTPS",
|
|
2312
|
+
pathname: "/",
|
|
2313
|
+
method: "POST",
|
|
2314
|
+
authType: "AK",
|
|
2315
|
+
style: "RPC",
|
|
2316
|
+
reqBodyType: "formData",
|
|
2317
|
+
bodyType: "json",
|
|
2318
|
+
});
|
|
2319
|
+
return $dara.cast<$_model.GetChatappPhoneNumberMetricResponse>(await this.callApi(params, req, runtime), new $_model.GetChatappPhoneNumberMetricResponse({}));
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
/**
|
|
2323
|
+
* Queries the number of messages that are sent by using a phone number by a specific metric.
|
|
2324
|
+
*
|
|
2325
|
+
* @remarks
|
|
2326
|
+
* 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.
|
|
2327
|
+
*
|
|
2328
|
+
* @param request - GetChatappPhoneNumberMetricRequest
|
|
2329
|
+
* @returns GetChatappPhoneNumberMetricResponse
|
|
2330
|
+
*/
|
|
2331
|
+
async getChatappPhoneNumberMetric(request: $_model.GetChatappPhoneNumberMetricRequest): Promise<$_model.GetChatappPhoneNumberMetricResponse> {
|
|
2332
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2333
|
+
return await this.getChatappPhoneNumberMetricWithOptions(request, runtime);
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* Queries the information of a message template.
|
|
2338
|
+
*
|
|
2339
|
+
* @remarks
|
|
2340
|
+
* ### QPS limit
|
|
2341
|
+
* You can call this API 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.
|
|
2342
|
+
*
|
|
2343
|
+
* @param request - GetChatappTemplateDetailRequest
|
|
2344
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2345
|
+
* @returns GetChatappTemplateDetailResponse
|
|
2346
|
+
*/
|
|
2347
|
+
async getChatappTemplateDetailWithOptions(request: $_model.GetChatappTemplateDetailRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetChatappTemplateDetailResponse> {
|
|
2348
|
+
request.validate();
|
|
2349
|
+
let query = { };
|
|
2350
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2351
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
if (!$dara.isNull(request.custWabaId)) {
|
|
2355
|
+
query["CustWabaId"] = request.custWabaId;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
if (!$dara.isNull(request.isvCode)) {
|
|
2359
|
+
query["IsvCode"] = request.isvCode;
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
if (!$dara.isNull(request.language)) {
|
|
2363
|
+
query["Language"] = request.language;
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
if (!$dara.isNull(request.templateCode)) {
|
|
2367
|
+
query["TemplateCode"] = request.templateCode;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
if (!$dara.isNull(request.templateName)) {
|
|
2371
|
+
query["TemplateName"] = request.templateName;
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
if (!$dara.isNull(request.templateType)) {
|
|
2375
|
+
query["TemplateType"] = request.templateType;
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2379
|
+
query: OpenApiUtil.query(query),
|
|
2380
|
+
});
|
|
2381
|
+
let params = new $OpenApiUtil.Params({
|
|
2382
|
+
action: "GetChatappTemplateDetail",
|
|
2383
|
+
version: "2020-06-06",
|
|
2384
|
+
protocol: "HTTPS",
|
|
2385
|
+
pathname: "/",
|
|
2386
|
+
method: "POST",
|
|
2387
|
+
authType: "AK",
|
|
2388
|
+
style: "RPC",
|
|
2389
|
+
reqBodyType: "formData",
|
|
2390
|
+
bodyType: "json",
|
|
2391
|
+
});
|
|
2392
|
+
return $dara.cast<$_model.GetChatappTemplateDetailResponse>(await this.callApi(params, req, runtime), new $_model.GetChatappTemplateDetailResponse({}));
|
|
1288
2393
|
}
|
|
1289
2394
|
|
|
1290
2395
|
/**
|
|
1291
|
-
*
|
|
2396
|
+
* Queries the information of a message template.
|
|
1292
2397
|
*
|
|
1293
2398
|
* @remarks
|
|
1294
|
-
*
|
|
2399
|
+
* ### QPS limit
|
|
2400
|
+
* You can call this API 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.
|
|
1295
2401
|
*
|
|
1296
|
-
* @param request -
|
|
1297
|
-
* @returns
|
|
2402
|
+
* @param request - GetChatappTemplateDetailRequest
|
|
2403
|
+
* @returns GetChatappTemplateDetailResponse
|
|
1298
2404
|
*/
|
|
1299
|
-
async
|
|
2405
|
+
async getChatappTemplateDetail(request: $_model.GetChatappTemplateDetailRequest): Promise<$_model.GetChatappTemplateDetailResponse> {
|
|
1300
2406
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1301
|
-
return await this.
|
|
2407
|
+
return await this.getChatappTemplateDetailWithOptions(request, runtime);
|
|
1302
2408
|
}
|
|
1303
2409
|
|
|
1304
2410
|
/**
|
|
1305
|
-
* Queries the
|
|
2411
|
+
* Queries the metrics about a marketing template.
|
|
1306
2412
|
*
|
|
1307
2413
|
* @remarks
|
|
1308
2414
|
* 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.
|
|
1309
2415
|
*
|
|
1310
|
-
* @param request -
|
|
2416
|
+
* @param request - GetChatappTemplateMetricRequest
|
|
1311
2417
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1312
|
-
* @returns
|
|
2418
|
+
* @returns GetChatappTemplateMetricResponse
|
|
1313
2419
|
*/
|
|
1314
|
-
async
|
|
2420
|
+
async getChatappTemplateMetricWithOptions(request: $_model.GetChatappTemplateMetricRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetChatappTemplateMetricResponse> {
|
|
1315
2421
|
request.validate();
|
|
1316
2422
|
let query = { };
|
|
1317
2423
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
@@ -1330,19 +2436,27 @@ export default class Client extends OpenApi {
|
|
|
1330
2436
|
query["IsvCode"] = request.isvCode;
|
|
1331
2437
|
}
|
|
1332
2438
|
|
|
1333
|
-
if (!$dara.isNull(request.
|
|
1334
|
-
query["
|
|
2439
|
+
if (!$dara.isNull(request.language)) {
|
|
2440
|
+
query["Language"] = request.language;
|
|
1335
2441
|
}
|
|
1336
2442
|
|
|
1337
2443
|
if (!$dara.isNull(request.start)) {
|
|
1338
2444
|
query["Start"] = request.start;
|
|
1339
2445
|
}
|
|
1340
2446
|
|
|
2447
|
+
if (!$dara.isNull(request.templateCode)) {
|
|
2448
|
+
query["TemplateCode"] = request.templateCode;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
if (!$dara.isNull(request.templateType)) {
|
|
2452
|
+
query["TemplateType"] = request.templateType;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
1341
2455
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1342
2456
|
query: OpenApiUtil.query(query),
|
|
1343
2457
|
});
|
|
1344
2458
|
let params = new $OpenApiUtil.Params({
|
|
1345
|
-
action: "
|
|
2459
|
+
action: "GetChatappTemplateMetric",
|
|
1346
2460
|
version: "2020-06-06",
|
|
1347
2461
|
protocol: "HTTPS",
|
|
1348
2462
|
pathname: "/",
|
|
@@ -1352,70 +2466,247 @@ export default class Client extends OpenApi {
|
|
|
1352
2466
|
reqBodyType: "formData",
|
|
1353
2467
|
bodyType: "json",
|
|
1354
2468
|
});
|
|
1355
|
-
return $dara.cast<$_model.
|
|
2469
|
+
return $dara.cast<$_model.GetChatappTemplateMetricResponse>(await this.callApi(params, req, runtime), new $_model.GetChatappTemplateMetricResponse({}));
|
|
1356
2470
|
}
|
|
1357
2471
|
|
|
1358
2472
|
/**
|
|
1359
|
-
* Queries the
|
|
2473
|
+
* Queries the metrics about a marketing template.
|
|
1360
2474
|
*
|
|
1361
2475
|
* @remarks
|
|
1362
2476
|
* 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.
|
|
1363
2477
|
*
|
|
1364
|
-
* @param request -
|
|
1365
|
-
* @returns
|
|
2478
|
+
* @param request - GetChatappTemplateMetricRequest
|
|
2479
|
+
* @returns GetChatappTemplateMetricResponse
|
|
1366
2480
|
*/
|
|
1367
|
-
async
|
|
2481
|
+
async getChatappTemplateMetric(request: $_model.GetChatappTemplateMetricRequest): Promise<$_model.GetChatappTemplateMetricResponse> {
|
|
1368
2482
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1369
|
-
return await this.
|
|
2483
|
+
return await this.getChatappTemplateMetricWithOptions(request, runtime);
|
|
1370
2484
|
}
|
|
1371
2485
|
|
|
1372
2486
|
/**
|
|
1373
|
-
*
|
|
2487
|
+
* Obtains the authentication information that is used to upload a file.
|
|
1374
2488
|
*
|
|
1375
2489
|
* @remarks
|
|
1376
|
-
*
|
|
1377
|
-
* You can call this API 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.
|
|
2490
|
+
* 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.
|
|
1378
2491
|
*
|
|
1379
|
-
* @param request -
|
|
2492
|
+
* @param request - GetChatappUploadAuthorizationRequest
|
|
1380
2493
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1381
|
-
* @returns
|
|
2494
|
+
* @returns GetChatappUploadAuthorizationResponse
|
|
1382
2495
|
*/
|
|
1383
|
-
async
|
|
2496
|
+
async getChatappUploadAuthorizationWithOptions(request: $_model.GetChatappUploadAuthorizationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetChatappUploadAuthorizationResponse> {
|
|
1384
2497
|
request.validate();
|
|
1385
2498
|
let query = { };
|
|
1386
2499
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1387
2500
|
query["CustSpaceId"] = request.custSpaceId;
|
|
1388
2501
|
}
|
|
1389
2502
|
|
|
1390
|
-
|
|
1391
|
-
query
|
|
2503
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2504
|
+
query: OpenApiUtil.query(query),
|
|
2505
|
+
});
|
|
2506
|
+
let params = new $OpenApiUtil.Params({
|
|
2507
|
+
action: "GetChatappUploadAuthorization",
|
|
2508
|
+
version: "2020-06-06",
|
|
2509
|
+
protocol: "HTTPS",
|
|
2510
|
+
pathname: "/",
|
|
2511
|
+
method: "POST",
|
|
2512
|
+
authType: "AK",
|
|
2513
|
+
style: "RPC",
|
|
2514
|
+
reqBodyType: "formData",
|
|
2515
|
+
bodyType: "json",
|
|
2516
|
+
});
|
|
2517
|
+
return $dara.cast<$_model.GetChatappUploadAuthorizationResponse>(await this.callApi(params, req, runtime), new $_model.GetChatappUploadAuthorizationResponse({}));
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
/**
|
|
2521
|
+
* Obtains the authentication information that is used to upload a file.
|
|
2522
|
+
*
|
|
2523
|
+
* @remarks
|
|
2524
|
+
* 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.
|
|
2525
|
+
*
|
|
2526
|
+
* @param request - GetChatappUploadAuthorizationRequest
|
|
2527
|
+
* @returns GetChatappUploadAuthorizationResponse
|
|
2528
|
+
*/
|
|
2529
|
+
async getChatappUploadAuthorization(request: $_model.GetChatappUploadAuthorizationRequest): Promise<$_model.GetChatappUploadAuthorizationResponse> {
|
|
2530
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2531
|
+
return await this.getChatappUploadAuthorizationWithOptions(request, runtime);
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
/**
|
|
2535
|
+
* Obtains a verification code.
|
|
2536
|
+
*
|
|
2537
|
+
* @remarks
|
|
2538
|
+
* 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.
|
|
2539
|
+
*
|
|
2540
|
+
* @param request - GetChatappVerifyCodeRequest
|
|
2541
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2542
|
+
* @returns GetChatappVerifyCodeResponse
|
|
2543
|
+
*/
|
|
2544
|
+
async getChatappVerifyCodeWithOptions(request: $_model.GetChatappVerifyCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetChatappVerifyCodeResponse> {
|
|
2545
|
+
request.validate();
|
|
2546
|
+
let query = { };
|
|
2547
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2548
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1392
2549
|
}
|
|
1393
2550
|
|
|
1394
|
-
if (!$dara.isNull(request.
|
|
1395
|
-
query["
|
|
2551
|
+
if (!$dara.isNull(request.locale)) {
|
|
2552
|
+
query["Locale"] = request.locale;
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
if (!$dara.isNull(request.method)) {
|
|
2556
|
+
query["Method"] = request.method;
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2560
|
+
query["OwnerId"] = request.ownerId;
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
2564
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2568
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2572
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2576
|
+
query: OpenApiUtil.query(query),
|
|
2577
|
+
});
|
|
2578
|
+
let params = new $OpenApiUtil.Params({
|
|
2579
|
+
action: "GetChatappVerifyCode",
|
|
2580
|
+
version: "2020-06-06",
|
|
2581
|
+
protocol: "HTTPS",
|
|
2582
|
+
pathname: "/",
|
|
2583
|
+
method: "POST",
|
|
2584
|
+
authType: "AK",
|
|
2585
|
+
style: "RPC",
|
|
2586
|
+
reqBodyType: "formData",
|
|
2587
|
+
bodyType: "json",
|
|
2588
|
+
});
|
|
2589
|
+
return $dara.cast<$_model.GetChatappVerifyCodeResponse>(await this.callApi(params, req, runtime), new $_model.GetChatappVerifyCodeResponse({}));
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
/**
|
|
2593
|
+
* Obtains a verification code.
|
|
2594
|
+
*
|
|
2595
|
+
* @remarks
|
|
2596
|
+
* 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.
|
|
2597
|
+
*
|
|
2598
|
+
* @param request - GetChatappVerifyCodeRequest
|
|
2599
|
+
* @returns GetChatappVerifyCodeResponse
|
|
2600
|
+
*/
|
|
2601
|
+
async getChatappVerifyCode(request: $_model.GetChatappVerifyCodeRequest): Promise<$_model.GetChatappVerifyCodeResponse> {
|
|
2602
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2603
|
+
return await this.getChatappVerifyCodeWithOptions(request, runtime);
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
/**
|
|
2607
|
+
* Queries the business settings of a phone number.
|
|
2608
|
+
*
|
|
2609
|
+
* @remarks
|
|
2610
|
+
* 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.
|
|
2611
|
+
*
|
|
2612
|
+
* @param request - GetCommerceSettingRequest
|
|
2613
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2614
|
+
* @returns GetCommerceSettingResponse
|
|
2615
|
+
*/
|
|
2616
|
+
async getCommerceSettingWithOptions(request: $_model.GetCommerceSettingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetCommerceSettingResponse> {
|
|
2617
|
+
request.validate();
|
|
2618
|
+
let query = { };
|
|
2619
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2620
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2624
|
+
query["OwnerId"] = request.ownerId;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
2628
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2632
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2636
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2640
|
+
query: OpenApiUtil.query(query),
|
|
2641
|
+
});
|
|
2642
|
+
let params = new $OpenApiUtil.Params({
|
|
2643
|
+
action: "GetCommerceSetting",
|
|
2644
|
+
version: "2020-06-06",
|
|
2645
|
+
protocol: "HTTPS",
|
|
2646
|
+
pathname: "/",
|
|
2647
|
+
method: "POST",
|
|
2648
|
+
authType: "AK",
|
|
2649
|
+
style: "RPC",
|
|
2650
|
+
reqBodyType: "formData",
|
|
2651
|
+
bodyType: "json",
|
|
2652
|
+
});
|
|
2653
|
+
return $dara.cast<$_model.GetCommerceSettingResponse>(await this.callApi(params, req, runtime), new $_model.GetCommerceSettingResponse({}));
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* Queries the business settings of a phone number.
|
|
2658
|
+
*
|
|
2659
|
+
* @remarks
|
|
2660
|
+
* 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.
|
|
2661
|
+
*
|
|
2662
|
+
* @param request - GetCommerceSettingRequest
|
|
2663
|
+
* @returns GetCommerceSettingResponse
|
|
2664
|
+
*/
|
|
2665
|
+
async getCommerceSetting(request: $_model.GetCommerceSettingRequest): Promise<$_model.GetCommerceSettingResponse> {
|
|
2666
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2667
|
+
return await this.getCommerceSettingWithOptions(request, runtime);
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* Configures welcoming messages, opening remarks, and commands.
|
|
2672
|
+
*
|
|
2673
|
+
* @remarks
|
|
2674
|
+
* ### [](#qps-)QPS limit
|
|
2675
|
+
* 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.
|
|
2676
|
+
* 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.
|
|
2677
|
+
*
|
|
2678
|
+
* @param request - GetConversationalAutomationRequest
|
|
2679
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2680
|
+
* @returns GetConversationalAutomationResponse
|
|
2681
|
+
*/
|
|
2682
|
+
async getConversationalAutomationWithOptions(request: $_model.GetConversationalAutomationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetConversationalAutomationResponse> {
|
|
2683
|
+
request.validate();
|
|
2684
|
+
let query = { };
|
|
2685
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2686
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1396
2687
|
}
|
|
1397
2688
|
|
|
1398
|
-
if (!$dara.isNull(request.
|
|
1399
|
-
query["
|
|
2689
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2690
|
+
query["OwnerId"] = request.ownerId;
|
|
1400
2691
|
}
|
|
1401
2692
|
|
|
1402
|
-
if (!$dara.isNull(request.
|
|
1403
|
-
query["
|
|
2693
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
2694
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
1404
2695
|
}
|
|
1405
2696
|
|
|
1406
|
-
if (!$dara.isNull(request.
|
|
1407
|
-
query["
|
|
2697
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2698
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1408
2699
|
}
|
|
1409
2700
|
|
|
1410
|
-
if (!$dara.isNull(request.
|
|
1411
|
-
query["
|
|
2701
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2702
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1412
2703
|
}
|
|
1413
2704
|
|
|
1414
2705
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1415
2706
|
query: OpenApiUtil.query(query),
|
|
1416
2707
|
});
|
|
1417
2708
|
let params = new $OpenApiUtil.Params({
|
|
1418
|
-
action: "
|
|
2709
|
+
action: "GetConversationalAutomation",
|
|
1419
2710
|
version: "2020-06-06",
|
|
1420
2711
|
protocol: "HTTPS",
|
|
1421
2712
|
pathname: "/",
|
|
@@ -1425,74 +2716,51 @@ export default class Client extends OpenApi {
|
|
|
1425
2716
|
reqBodyType: "formData",
|
|
1426
2717
|
bodyType: "json",
|
|
1427
2718
|
});
|
|
1428
|
-
return $dara.cast<$_model.
|
|
2719
|
+
return $dara.cast<$_model.GetConversationalAutomationResponse>(await this.callApi(params, req, runtime), new $_model.GetConversationalAutomationResponse({}));
|
|
1429
2720
|
}
|
|
1430
2721
|
|
|
1431
2722
|
/**
|
|
1432
|
-
*
|
|
2723
|
+
* Configures welcoming messages, opening remarks, and commands.
|
|
1433
2724
|
*
|
|
1434
2725
|
* @remarks
|
|
1435
|
-
* ### QPS limit
|
|
1436
|
-
* You can call this
|
|
2726
|
+
* ### [](#qps-)QPS limit
|
|
2727
|
+
* 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.
|
|
2728
|
+
* 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.
|
|
1437
2729
|
*
|
|
1438
|
-
* @param request -
|
|
1439
|
-
* @returns
|
|
2730
|
+
* @param request - GetConversationalAutomationRequest
|
|
2731
|
+
* @returns GetConversationalAutomationResponse
|
|
1440
2732
|
*/
|
|
1441
|
-
async
|
|
2733
|
+
async getConversationalAutomation(request: $_model.GetConversationalAutomationRequest): Promise<$_model.GetConversationalAutomationResponse> {
|
|
1442
2734
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1443
|
-
return await this.
|
|
2735
|
+
return await this.getConversationalAutomationWithOptions(request, runtime);
|
|
1444
2736
|
}
|
|
1445
2737
|
|
|
1446
2738
|
/**
|
|
1447
|
-
* Queries the
|
|
2739
|
+
* Queries the information about a Flow.
|
|
1448
2740
|
*
|
|
1449
2741
|
* @remarks
|
|
1450
|
-
* You can call this operation up to
|
|
2742
|
+
* 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.
|
|
1451
2743
|
*
|
|
1452
|
-
* @param request -
|
|
2744
|
+
* @param request - GetFlowRequest
|
|
1453
2745
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1454
|
-
* @returns
|
|
2746
|
+
* @returns GetFlowResponse
|
|
1455
2747
|
*/
|
|
1456
|
-
async
|
|
2748
|
+
async getFlowWithOptions(request: $_model.GetFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetFlowResponse> {
|
|
1457
2749
|
request.validate();
|
|
1458
|
-
let
|
|
2750
|
+
let body : {[key: string ]: any} = { };
|
|
1459
2751
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1460
|
-
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
if (!$dara.isNull(request.end)) {
|
|
1464
|
-
query["End"] = request.end;
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
if (!$dara.isNull(request.granularity)) {
|
|
1468
|
-
query["Granularity"] = request.granularity;
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
if (!$dara.isNull(request.isvCode)) {
|
|
1472
|
-
query["IsvCode"] = request.isvCode;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
if (!$dara.isNull(request.language)) {
|
|
1476
|
-
query["Language"] = request.language;
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
if (!$dara.isNull(request.start)) {
|
|
1480
|
-
query["Start"] = request.start;
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
if (!$dara.isNull(request.templateCode)) {
|
|
1484
|
-
query["TemplateCode"] = request.templateCode;
|
|
2752
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
1485
2753
|
}
|
|
1486
2754
|
|
|
1487
|
-
if (!$dara.isNull(request.
|
|
1488
|
-
|
|
2755
|
+
if (!$dara.isNull(request.flowId)) {
|
|
2756
|
+
body["FlowId"] = request.flowId;
|
|
1489
2757
|
}
|
|
1490
2758
|
|
|
1491
2759
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1492
|
-
|
|
2760
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1493
2761
|
});
|
|
1494
2762
|
let params = new $OpenApiUtil.Params({
|
|
1495
|
-
action: "
|
|
2763
|
+
action: "GetFlow",
|
|
1496
2764
|
version: "2020-06-06",
|
|
1497
2765
|
protocol: "HTTPS",
|
|
1498
2766
|
pathname: "/",
|
|
@@ -1502,45 +2770,46 @@ export default class Client extends OpenApi {
|
|
|
1502
2770
|
reqBodyType: "formData",
|
|
1503
2771
|
bodyType: "json",
|
|
1504
2772
|
});
|
|
1505
|
-
return $dara.cast<$_model.
|
|
2773
|
+
return $dara.cast<$_model.GetFlowResponse>(await this.callApi(params, req, runtime), new $_model.GetFlowResponse({}));
|
|
1506
2774
|
}
|
|
1507
2775
|
|
|
1508
2776
|
/**
|
|
1509
|
-
* Queries the
|
|
2777
|
+
* Queries the information about a Flow.
|
|
1510
2778
|
*
|
|
1511
2779
|
* @remarks
|
|
1512
|
-
* You can call this operation up to
|
|
2780
|
+
* 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.
|
|
1513
2781
|
*
|
|
1514
|
-
* @param request -
|
|
1515
|
-
* @returns
|
|
2782
|
+
* @param request - GetFlowRequest
|
|
2783
|
+
* @returns GetFlowResponse
|
|
1516
2784
|
*/
|
|
1517
|
-
async
|
|
2785
|
+
async getFlow(request: $_model.GetFlowRequest): Promise<$_model.GetFlowResponse> {
|
|
1518
2786
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1519
|
-
return await this.
|
|
2787
|
+
return await this.getFlowWithOptions(request, runtime);
|
|
1520
2788
|
}
|
|
1521
2789
|
|
|
1522
2790
|
/**
|
|
1523
|
-
*
|
|
1524
|
-
*
|
|
1525
|
-
* @remarks
|
|
1526
|
-
* 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.
|
|
2791
|
+
* Queries the JSON content of a Flow.
|
|
1527
2792
|
*
|
|
1528
|
-
* @param request -
|
|
2793
|
+
* @param request - GetFlowJSONAssestRequest
|
|
1529
2794
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1530
|
-
* @returns
|
|
2795
|
+
* @returns GetFlowJSONAssestResponse
|
|
1531
2796
|
*/
|
|
1532
|
-
async
|
|
2797
|
+
async getFlowJSONAssestWithOptions(request: $_model.GetFlowJSONAssestRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetFlowJSONAssestResponse> {
|
|
1533
2798
|
request.validate();
|
|
1534
|
-
let
|
|
2799
|
+
let body : {[key: string ]: any} = { };
|
|
1535
2800
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1536
|
-
|
|
2801
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
if (!$dara.isNull(request.flowId)) {
|
|
2805
|
+
body["FlowId"] = request.flowId;
|
|
1537
2806
|
}
|
|
1538
2807
|
|
|
1539
2808
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1540
|
-
|
|
2809
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1541
2810
|
});
|
|
1542
2811
|
let params = new $OpenApiUtil.Params({
|
|
1543
|
-
action: "
|
|
2812
|
+
action: "GetFlowJSONAssest",
|
|
1544
2813
|
version: "2020-06-06",
|
|
1545
2814
|
protocol: "HTTPS",
|
|
1546
2815
|
pathname: "/",
|
|
@@ -1550,69 +2819,46 @@ export default class Client extends OpenApi {
|
|
|
1550
2819
|
reqBodyType: "formData",
|
|
1551
2820
|
bodyType: "json",
|
|
1552
2821
|
});
|
|
1553
|
-
return $dara.cast<$_model.
|
|
2822
|
+
return $dara.cast<$_model.GetFlowJSONAssestResponse>(await this.callApi(params, req, runtime), new $_model.GetFlowJSONAssestResponse({}));
|
|
1554
2823
|
}
|
|
1555
2824
|
|
|
1556
2825
|
/**
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
1559
|
-
* @remarks
|
|
1560
|
-
* 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.
|
|
2826
|
+
* Queries the JSON content of a Flow.
|
|
1561
2827
|
*
|
|
1562
|
-
* @param request -
|
|
1563
|
-
* @returns
|
|
2828
|
+
* @param request - GetFlowJSONAssestRequest
|
|
2829
|
+
* @returns GetFlowJSONAssestResponse
|
|
1564
2830
|
*/
|
|
1565
|
-
async
|
|
2831
|
+
async getFlowJSONAssest(request: $_model.GetFlowJSONAssestRequest): Promise<$_model.GetFlowJSONAssestResponse> {
|
|
1566
2832
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1567
|
-
return await this.
|
|
2833
|
+
return await this.getFlowJSONAssestWithOptions(request, runtime);
|
|
1568
2834
|
}
|
|
1569
2835
|
|
|
1570
2836
|
/**
|
|
1571
|
-
* Obtains a
|
|
2837
|
+
* Obtains the preview URL of a Flow.
|
|
1572
2838
|
*
|
|
1573
2839
|
* @remarks
|
|
1574
|
-
* You can call this operation up to
|
|
2840
|
+
* 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.
|
|
1575
2841
|
*
|
|
1576
|
-
* @param request -
|
|
2842
|
+
* @param request - GetFlowPreviewUrlRequest
|
|
1577
2843
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1578
|
-
* @returns
|
|
2844
|
+
* @returns GetFlowPreviewUrlResponse
|
|
1579
2845
|
*/
|
|
1580
|
-
async
|
|
2846
|
+
async getFlowPreviewUrlWithOptions(request: $_model.GetFlowPreviewUrlRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetFlowPreviewUrlResponse> {
|
|
1581
2847
|
request.validate();
|
|
1582
|
-
let
|
|
2848
|
+
let body : {[key: string ]: any} = { };
|
|
1583
2849
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1584
|
-
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
if (!$dara.isNull(request.locale)) {
|
|
1588
|
-
query["Locale"] = request.locale;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
if (!$dara.isNull(request.method)) {
|
|
1592
|
-
query["Method"] = request.method;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
if (!$dara.isNull(request.ownerId)) {
|
|
1596
|
-
query["OwnerId"] = request.ownerId;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
if (!$dara.isNull(request.phoneNumber)) {
|
|
1600
|
-
query["PhoneNumber"] = request.phoneNumber;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1604
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2850
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
1605
2851
|
}
|
|
1606
2852
|
|
|
1607
|
-
if (!$dara.isNull(request.
|
|
1608
|
-
|
|
2853
|
+
if (!$dara.isNull(request.flowId)) {
|
|
2854
|
+
body["FlowId"] = request.flowId;
|
|
1609
2855
|
}
|
|
1610
2856
|
|
|
1611
2857
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1612
|
-
|
|
2858
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1613
2859
|
});
|
|
1614
2860
|
let params = new $OpenApiUtil.Params({
|
|
1615
|
-
action: "
|
|
2861
|
+
action: "GetFlowPreviewUrl",
|
|
1616
2862
|
version: "2020-06-06",
|
|
1617
2863
|
protocol: "HTTPS",
|
|
1618
2864
|
pathname: "/",
|
|
@@ -1622,61 +2868,57 @@ export default class Client extends OpenApi {
|
|
|
1622
2868
|
reqBodyType: "formData",
|
|
1623
2869
|
bodyType: "json",
|
|
1624
2870
|
});
|
|
1625
|
-
return $dara.cast<$_model.
|
|
2871
|
+
return $dara.cast<$_model.GetFlowPreviewUrlResponse>(await this.callApi(params, req, runtime), new $_model.GetFlowPreviewUrlResponse({}));
|
|
1626
2872
|
}
|
|
1627
2873
|
|
|
1628
2874
|
/**
|
|
1629
|
-
* Obtains a
|
|
2875
|
+
* Obtains the preview URL of a Flow.
|
|
1630
2876
|
*
|
|
1631
2877
|
* @remarks
|
|
1632
|
-
* You can call this operation up to
|
|
2878
|
+
* 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.
|
|
1633
2879
|
*
|
|
1634
|
-
* @param request -
|
|
1635
|
-
* @returns
|
|
2880
|
+
* @param request - GetFlowPreviewUrlRequest
|
|
2881
|
+
* @returns GetFlowPreviewUrlResponse
|
|
1636
2882
|
*/
|
|
1637
|
-
async
|
|
2883
|
+
async getFlowPreviewUrl(request: $_model.GetFlowPreviewUrlRequest): Promise<$_model.GetFlowPreviewUrlResponse> {
|
|
1638
2884
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1639
|
-
return await this.
|
|
2885
|
+
return await this.getFlowPreviewUrlWithOptions(request, runtime);
|
|
1640
2886
|
}
|
|
1641
2887
|
|
|
1642
2888
|
/**
|
|
1643
|
-
*
|
|
2889
|
+
* Obtain the verification code for the migration number.
|
|
1644
2890
|
*
|
|
1645
2891
|
* @remarks
|
|
1646
|
-
*
|
|
2892
|
+
* 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.
|
|
1647
2893
|
*
|
|
1648
|
-
* @param request -
|
|
2894
|
+
* @param request - GetMigrationVerifyCodeRequest
|
|
1649
2895
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1650
|
-
* @returns
|
|
2896
|
+
* @returns GetMigrationVerifyCodeResponse
|
|
1651
2897
|
*/
|
|
1652
|
-
async
|
|
2898
|
+
async getMigrationVerifyCodeWithOptions(request: $_model.GetMigrationVerifyCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetMigrationVerifyCodeResponse> {
|
|
1653
2899
|
request.validate();
|
|
1654
2900
|
let query = { };
|
|
1655
2901
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1656
2902
|
query["CustSpaceId"] = request.custSpaceId;
|
|
1657
2903
|
}
|
|
1658
2904
|
|
|
1659
|
-
if (!$dara.isNull(request.
|
|
1660
|
-
query["
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
if (!$dara.isNull(request.phoneNumber)) {
|
|
1664
|
-
query["PhoneNumber"] = request.phoneNumber;
|
|
2905
|
+
if (!$dara.isNull(request.locale)) {
|
|
2906
|
+
query["Locale"] = request.locale;
|
|
1665
2907
|
}
|
|
1666
2908
|
|
|
1667
|
-
if (!$dara.isNull(request.
|
|
1668
|
-
query["
|
|
2909
|
+
if (!$dara.isNull(request.method)) {
|
|
2910
|
+
query["Method"] = request.method;
|
|
1669
2911
|
}
|
|
1670
2912
|
|
|
1671
|
-
if (!$dara.isNull(request.
|
|
1672
|
-
query["
|
|
2913
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
2914
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
1673
2915
|
}
|
|
1674
2916
|
|
|
1675
2917
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1676
2918
|
query: OpenApiUtil.query(query),
|
|
1677
2919
|
});
|
|
1678
2920
|
let params = new $OpenApiUtil.Params({
|
|
1679
|
-
action: "
|
|
2921
|
+
action: "GetMigrationVerifyCode",
|
|
1680
2922
|
version: "2020-06-06",
|
|
1681
2923
|
protocol: "HTTPS",
|
|
1682
2924
|
pathname: "/",
|
|
@@ -1686,63 +2928,56 @@ export default class Client extends OpenApi {
|
|
|
1686
2928
|
reqBodyType: "formData",
|
|
1687
2929
|
bodyType: "json",
|
|
1688
2930
|
});
|
|
1689
|
-
return $dara.cast<$_model.
|
|
2931
|
+
return $dara.cast<$_model.GetMigrationVerifyCodeResponse>(await this.callApi(params, req, runtime), new $_model.GetMigrationVerifyCodeResponse({}));
|
|
1690
2932
|
}
|
|
1691
2933
|
|
|
1692
2934
|
/**
|
|
1693
|
-
*
|
|
2935
|
+
* Obtain the verification code for the migration number.
|
|
1694
2936
|
*
|
|
1695
2937
|
* @remarks
|
|
1696
|
-
*
|
|
2938
|
+
* 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.
|
|
1697
2939
|
*
|
|
1698
|
-
* @param request -
|
|
1699
|
-
* @returns
|
|
2940
|
+
* @param request - GetMigrationVerifyCodeRequest
|
|
2941
|
+
* @returns GetMigrationVerifyCodeResponse
|
|
1700
2942
|
*/
|
|
1701
|
-
async
|
|
2943
|
+
async getMigrationVerifyCode(request: $_model.GetMigrationVerifyCodeRequest): Promise<$_model.GetMigrationVerifyCodeResponse> {
|
|
1702
2944
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1703
|
-
return await this.
|
|
2945
|
+
return await this.getMigrationVerifyCodeWithOptions(request, runtime);
|
|
1704
2946
|
}
|
|
1705
2947
|
|
|
1706
|
-
/**
|
|
1707
|
-
*
|
|
1708
|
-
*
|
|
1709
|
-
* @
|
|
1710
|
-
*
|
|
1711
|
-
*
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
request.validate();
|
|
1720
|
-
let query = { };
|
|
1721
|
-
if (!$dara.isNull(request.custSpaceId)) {
|
|
1722
|
-
query["CustSpaceId"] = request.custSpaceId;
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
if (!$dara.isNull(request.ownerId)) {
|
|
1726
|
-
query["OwnerId"] = request.ownerId;
|
|
2948
|
+
/**
|
|
2949
|
+
* Obtains permissions based on the authorization code obtained from embedded signup.
|
|
2950
|
+
*
|
|
2951
|
+
* @param tmpReq - GetPermissionByCodeRequest
|
|
2952
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2953
|
+
* @returns GetPermissionByCodeResponse
|
|
2954
|
+
*/
|
|
2955
|
+
async getPermissionByCodeWithOptions(tmpReq: $_model.GetPermissionByCodeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetPermissionByCodeResponse> {
|
|
2956
|
+
tmpReq.validate();
|
|
2957
|
+
let request = new $_model.GetPermissionByCodeShrinkRequest({ });
|
|
2958
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2959
|
+
if (!$dara.isNull(tmpReq.permissions)) {
|
|
2960
|
+
request.permissionsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.permissions, "Permissions", "json");
|
|
1727
2961
|
}
|
|
1728
2962
|
|
|
1729
|
-
|
|
1730
|
-
|
|
2963
|
+
let body : {[key: string ]: any} = { };
|
|
2964
|
+
if (!$dara.isNull(request.code)) {
|
|
2965
|
+
body["Code"] = request.code;
|
|
1731
2966
|
}
|
|
1732
2967
|
|
|
1733
|
-
if (!$dara.isNull(request.
|
|
1734
|
-
|
|
2968
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2969
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
1735
2970
|
}
|
|
1736
2971
|
|
|
1737
|
-
if (!$dara.isNull(request.
|
|
1738
|
-
|
|
2972
|
+
if (!$dara.isNull(request.permissionsShrink)) {
|
|
2973
|
+
body["Permissions"] = request.permissionsShrink;
|
|
1739
2974
|
}
|
|
1740
2975
|
|
|
1741
2976
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1742
|
-
|
|
2977
|
+
body: OpenApiUtil.parseToMap(body),
|
|
1743
2978
|
});
|
|
1744
2979
|
let params = new $OpenApiUtil.Params({
|
|
1745
|
-
action: "
|
|
2980
|
+
action: "GetPermissionByCode",
|
|
1746
2981
|
version: "2020-06-06",
|
|
1747
2982
|
protocol: "HTTPS",
|
|
1748
2983
|
pathname: "/",
|
|
@@ -1752,51 +2987,43 @@ export default class Client extends OpenApi {
|
|
|
1752
2987
|
reqBodyType: "formData",
|
|
1753
2988
|
bodyType: "json",
|
|
1754
2989
|
});
|
|
1755
|
-
return $dara.cast<$_model.
|
|
2990
|
+
return $dara.cast<$_model.GetPermissionByCodeResponse>(await this.callApi(params, req, runtime), new $_model.GetPermissionByCodeResponse({}));
|
|
1756
2991
|
}
|
|
1757
2992
|
|
|
1758
2993
|
/**
|
|
1759
|
-
*
|
|
1760
|
-
*
|
|
1761
|
-
* @remarks
|
|
1762
|
-
* ### [](#qps-)QPS limit
|
|
1763
|
-
* 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.
|
|
1764
|
-
* 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.
|
|
2994
|
+
* Obtains permissions based on the authorization code obtained from embedded signup.
|
|
1765
2995
|
*
|
|
1766
|
-
* @param request -
|
|
1767
|
-
* @returns
|
|
2996
|
+
* @param request - GetPermissionByCodeRequest
|
|
2997
|
+
* @returns GetPermissionByCodeResponse
|
|
1768
2998
|
*/
|
|
1769
|
-
async
|
|
2999
|
+
async getPermissionByCode(request: $_model.GetPermissionByCodeRequest): Promise<$_model.GetPermissionByCodeResponse> {
|
|
1770
3000
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1771
|
-
return await this.
|
|
3001
|
+
return await this.getPermissionByCodeWithOptions(request, runtime);
|
|
1772
3002
|
}
|
|
1773
3003
|
|
|
1774
3004
|
/**
|
|
1775
|
-
* Queries the
|
|
1776
|
-
*
|
|
1777
|
-
* @remarks
|
|
1778
|
-
* 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.
|
|
3005
|
+
* Queries the encryption public key of a phone number.
|
|
1779
3006
|
*
|
|
1780
|
-
* @param request -
|
|
3007
|
+
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
1781
3008
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1782
|
-
* @returns
|
|
3009
|
+
* @returns GetPhoneEncryptionPublicKeyResponse
|
|
1783
3010
|
*/
|
|
1784
|
-
async
|
|
3011
|
+
async getPhoneEncryptionPublicKeyWithOptions(request: $_model.GetPhoneEncryptionPublicKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetPhoneEncryptionPublicKeyResponse> {
|
|
1785
3012
|
request.validate();
|
|
1786
3013
|
let body : {[key: string ]: any} = { };
|
|
1787
3014
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1788
3015
|
body["CustSpaceId"] = request.custSpaceId;
|
|
1789
3016
|
}
|
|
1790
3017
|
|
|
1791
|
-
if (!$dara.isNull(request.
|
|
1792
|
-
body["
|
|
3018
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
3019
|
+
body["PhoneNumber"] = request.phoneNumber;
|
|
1793
3020
|
}
|
|
1794
3021
|
|
|
1795
3022
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1796
3023
|
body: OpenApiUtil.parseToMap(body),
|
|
1797
3024
|
});
|
|
1798
3025
|
let params = new $OpenApiUtil.Params({
|
|
1799
|
-
action: "
|
|
3026
|
+
action: "GetPhoneEncryptionPublicKey",
|
|
1800
3027
|
version: "2020-06-06",
|
|
1801
3028
|
protocol: "HTTPS",
|
|
1802
3029
|
pathname: "/",
|
|
@@ -1806,46 +3033,46 @@ export default class Client extends OpenApi {
|
|
|
1806
3033
|
reqBodyType: "formData",
|
|
1807
3034
|
bodyType: "json",
|
|
1808
3035
|
});
|
|
1809
|
-
return $dara.cast<$_model.
|
|
3036
|
+
return $dara.cast<$_model.GetPhoneEncryptionPublicKeyResponse>(await this.callApi(params, req, runtime), new $_model.GetPhoneEncryptionPublicKeyResponse({}));
|
|
1810
3037
|
}
|
|
1811
3038
|
|
|
1812
3039
|
/**
|
|
1813
|
-
* Queries the
|
|
1814
|
-
*
|
|
1815
|
-
* @remarks
|
|
1816
|
-
* 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.
|
|
3040
|
+
* Queries the encryption public key of a phone number.
|
|
1817
3041
|
*
|
|
1818
|
-
* @param request -
|
|
1819
|
-
* @returns
|
|
3042
|
+
* @param request - GetPhoneEncryptionPublicKeyRequest
|
|
3043
|
+
* @returns GetPhoneEncryptionPublicKeyResponse
|
|
1820
3044
|
*/
|
|
1821
|
-
async
|
|
3045
|
+
async getPhoneEncryptionPublicKey(request: $_model.GetPhoneEncryptionPublicKeyRequest): Promise<$_model.GetPhoneEncryptionPublicKeyResponse> {
|
|
1822
3046
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1823
|
-
return await this.
|
|
3047
|
+
return await this.getPhoneEncryptionPublicKeyWithOptions(request, runtime);
|
|
1824
3048
|
}
|
|
1825
3049
|
|
|
1826
3050
|
/**
|
|
1827
|
-
*
|
|
3051
|
+
* Obtains the verification status of a phone number.
|
|
1828
3052
|
*
|
|
1829
|
-
* @
|
|
3053
|
+
* @remarks
|
|
3054
|
+
* 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.
|
|
3055
|
+
*
|
|
3056
|
+
* @param request - GetPhoneNumberVerificationStatusRequest
|
|
1830
3057
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1831
|
-
* @returns
|
|
3058
|
+
* @returns GetPhoneNumberVerificationStatusResponse
|
|
1832
3059
|
*/
|
|
1833
|
-
async
|
|
3060
|
+
async getPhoneNumberVerificationStatusWithOptions(request: $_model.GetPhoneNumberVerificationStatusRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetPhoneNumberVerificationStatusResponse> {
|
|
1834
3061
|
request.validate();
|
|
1835
3062
|
let body : {[key: string ]: any} = { };
|
|
1836
3063
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1837
3064
|
body["CustSpaceId"] = request.custSpaceId;
|
|
1838
3065
|
}
|
|
1839
3066
|
|
|
1840
|
-
if (!$dara.isNull(request.
|
|
1841
|
-
body["
|
|
3067
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
3068
|
+
body["PhoneNumber"] = request.phoneNumber;
|
|
1842
3069
|
}
|
|
1843
3070
|
|
|
1844
3071
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1845
3072
|
body: OpenApiUtil.parseToMap(body),
|
|
1846
3073
|
});
|
|
1847
3074
|
let params = new $OpenApiUtil.Params({
|
|
1848
|
-
action: "
|
|
3075
|
+
action: "GetPhoneNumberVerificationStatus",
|
|
1849
3076
|
version: "2020-06-06",
|
|
1850
3077
|
protocol: "HTTPS",
|
|
1851
3078
|
pathname: "/",
|
|
@@ -1855,46 +3082,49 @@ export default class Client extends OpenApi {
|
|
|
1855
3082
|
reqBodyType: "formData",
|
|
1856
3083
|
bodyType: "json",
|
|
1857
3084
|
});
|
|
1858
|
-
return $dara.cast<$_model.
|
|
3085
|
+
return $dara.cast<$_model.GetPhoneNumberVerificationStatusResponse>(await this.callApi(params, req, runtime), new $_model.GetPhoneNumberVerificationStatusResponse({}));
|
|
1859
3086
|
}
|
|
1860
3087
|
|
|
1861
3088
|
/**
|
|
1862
|
-
*
|
|
3089
|
+
* Obtains the verification status of a phone number.
|
|
1863
3090
|
*
|
|
1864
|
-
* @
|
|
1865
|
-
*
|
|
3091
|
+
* @remarks
|
|
3092
|
+
* 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.
|
|
3093
|
+
*
|
|
3094
|
+
* @param request - GetPhoneNumberVerificationStatusRequest
|
|
3095
|
+
* @returns GetPhoneNumberVerificationStatusResponse
|
|
1866
3096
|
*/
|
|
1867
|
-
async
|
|
3097
|
+
async getPhoneNumberVerificationStatus(request: $_model.GetPhoneNumberVerificationStatusRequest): Promise<$_model.GetPhoneNumberVerificationStatusResponse> {
|
|
1868
3098
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1869
|
-
return await this.
|
|
3099
|
+
return await this.getPhoneNumberVerificationStatusWithOptions(request, runtime);
|
|
1870
3100
|
}
|
|
1871
3101
|
|
|
1872
3102
|
/**
|
|
1873
|
-
* Obtains the
|
|
3103
|
+
* Obtains the ID of a pre-registered phone number used for embedded signup without the need to re-obtain a verification code.
|
|
1874
3104
|
*
|
|
1875
3105
|
* @remarks
|
|
1876
|
-
* You can call this operation up to
|
|
3106
|
+
* 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.
|
|
1877
3107
|
*
|
|
1878
|
-
* @param request -
|
|
3108
|
+
* @param request - GetPreValidatePhoneIdRequest
|
|
1879
3109
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1880
|
-
* @returns
|
|
3110
|
+
* @returns GetPreValidatePhoneIdResponse
|
|
1881
3111
|
*/
|
|
1882
|
-
async
|
|
3112
|
+
async getPreValidatePhoneIdWithOptions(request: $_model.GetPreValidatePhoneIdRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetPreValidatePhoneIdResponse> {
|
|
1883
3113
|
request.validate();
|
|
1884
3114
|
let body : {[key: string ]: any} = { };
|
|
1885
|
-
if (!$dara.isNull(request.
|
|
1886
|
-
body["
|
|
3115
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
3116
|
+
body["PhoneNumber"] = request.phoneNumber;
|
|
1887
3117
|
}
|
|
1888
3118
|
|
|
1889
|
-
if (!$dara.isNull(request.
|
|
1890
|
-
body["
|
|
3119
|
+
if (!$dara.isNull(request.verifyCode)) {
|
|
3120
|
+
body["VerifyCode"] = request.verifyCode;
|
|
1891
3121
|
}
|
|
1892
3122
|
|
|
1893
3123
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1894
3124
|
body: OpenApiUtil.parseToMap(body),
|
|
1895
3125
|
});
|
|
1896
3126
|
let params = new $OpenApiUtil.Params({
|
|
1897
|
-
action: "
|
|
3127
|
+
action: "GetPreValidatePhoneId",
|
|
1898
3128
|
version: "2020-06-06",
|
|
1899
3129
|
protocol: "HTTPS",
|
|
1900
3130
|
pathname: "/",
|
|
@@ -1904,57 +3134,61 @@ export default class Client extends OpenApi {
|
|
|
1904
3134
|
reqBodyType: "formData",
|
|
1905
3135
|
bodyType: "json",
|
|
1906
3136
|
});
|
|
1907
|
-
return $dara.cast<$_model.
|
|
3137
|
+
return $dara.cast<$_model.GetPreValidatePhoneIdResponse>(await this.callApi(params, req, runtime), new $_model.GetPreValidatePhoneIdResponse({}));
|
|
1908
3138
|
}
|
|
1909
3139
|
|
|
1910
3140
|
/**
|
|
1911
|
-
* Obtains the
|
|
3141
|
+
* Obtains the ID of a pre-registered phone number used for embedded signup without the need to re-obtain a verification code.
|
|
1912
3142
|
*
|
|
1913
3143
|
* @remarks
|
|
1914
|
-
* You can call this operation up to
|
|
3144
|
+
* 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.
|
|
1915
3145
|
*
|
|
1916
|
-
* @param request -
|
|
1917
|
-
* @returns
|
|
3146
|
+
* @param request - GetPreValidatePhoneIdRequest
|
|
3147
|
+
* @returns GetPreValidatePhoneIdResponse
|
|
1918
3148
|
*/
|
|
1919
|
-
async
|
|
3149
|
+
async getPreValidatePhoneId(request: $_model.GetPreValidatePhoneIdRequest): Promise<$_model.GetPreValidatePhoneIdResponse> {
|
|
1920
3150
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1921
|
-
return await this.
|
|
3151
|
+
return await this.getPreValidatePhoneIdWithOptions(request, runtime);
|
|
1922
3152
|
}
|
|
1923
3153
|
|
|
1924
3154
|
/**
|
|
1925
|
-
*
|
|
3155
|
+
* Queries the product catalogs that are associated with a WhatsApp Business account (WABA).
|
|
1926
3156
|
*
|
|
1927
3157
|
* @remarks
|
|
1928
|
-
*
|
|
3158
|
+
* 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.
|
|
1929
3159
|
*
|
|
1930
|
-
* @param request -
|
|
3160
|
+
* @param request - GetWhatsappConnectionCatalogRequest
|
|
1931
3161
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1932
|
-
* @returns
|
|
3162
|
+
* @returns GetWhatsappConnectionCatalogResponse
|
|
1933
3163
|
*/
|
|
1934
|
-
async
|
|
3164
|
+
async getWhatsappConnectionCatalogWithOptions(request: $_model.GetWhatsappConnectionCatalogRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetWhatsappConnectionCatalogResponse> {
|
|
1935
3165
|
request.validate();
|
|
1936
3166
|
let query = { };
|
|
1937
3167
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
1938
3168
|
query["CustSpaceId"] = request.custSpaceId;
|
|
1939
3169
|
}
|
|
1940
3170
|
|
|
1941
|
-
if (!$dara.isNull(request.
|
|
1942
|
-
query["
|
|
3171
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3172
|
+
query["OwnerId"] = request.ownerId;
|
|
1943
3173
|
}
|
|
1944
3174
|
|
|
1945
|
-
if (!$dara.isNull(request.
|
|
1946
|
-
query["
|
|
3175
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3176
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1947
3177
|
}
|
|
1948
3178
|
|
|
1949
|
-
if (!$dara.isNull(request.
|
|
1950
|
-
query["
|
|
3179
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3180
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
3184
|
+
query["WabaId"] = request.wabaId;
|
|
1951
3185
|
}
|
|
1952
3186
|
|
|
1953
3187
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1954
3188
|
query: OpenApiUtil.query(query),
|
|
1955
3189
|
});
|
|
1956
3190
|
let params = new $OpenApiUtil.Params({
|
|
1957
|
-
action: "
|
|
3191
|
+
action: "GetWhatsappConnectionCatalog",
|
|
1958
3192
|
version: "2020-06-06",
|
|
1959
3193
|
protocol: "HTTPS",
|
|
1960
3194
|
pathname: "/",
|
|
@@ -1964,56 +3198,79 @@ export default class Client extends OpenApi {
|
|
|
1964
3198
|
reqBodyType: "formData",
|
|
1965
3199
|
bodyType: "json",
|
|
1966
3200
|
});
|
|
1967
|
-
return $dara.cast<$_model.
|
|
3201
|
+
return $dara.cast<$_model.GetWhatsappConnectionCatalogResponse>(await this.callApi(params, req, runtime), new $_model.GetWhatsappConnectionCatalogResponse({}));
|
|
1968
3202
|
}
|
|
1969
3203
|
|
|
1970
3204
|
/**
|
|
1971
|
-
*
|
|
3205
|
+
* Queries the product catalogs that are associated with a WhatsApp Business account (WABA).
|
|
1972
3206
|
*
|
|
1973
3207
|
* @remarks
|
|
1974
|
-
*
|
|
3208
|
+
* 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.
|
|
1975
3209
|
*
|
|
1976
|
-
* @param request -
|
|
1977
|
-
* @returns
|
|
3210
|
+
* @param request - GetWhatsappConnectionCatalogRequest
|
|
3211
|
+
* @returns GetWhatsappConnectionCatalogResponse
|
|
1978
3212
|
*/
|
|
1979
|
-
async
|
|
3213
|
+
async getWhatsappConnectionCatalog(request: $_model.GetWhatsappConnectionCatalogRequest): Promise<$_model.GetWhatsappConnectionCatalogResponse> {
|
|
1980
3214
|
let runtime = new $dara.RuntimeOptions({ });
|
|
1981
|
-
return await this.
|
|
3215
|
+
return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
|
|
1982
3216
|
}
|
|
1983
3217
|
|
|
1984
3218
|
/**
|
|
1985
|
-
*
|
|
3219
|
+
* Queries the messaging health status of different types of nodes.
|
|
1986
3220
|
*
|
|
1987
|
-
* @
|
|
3221
|
+
* @remarks
|
|
3222
|
+
* ### [](#qps-)QPS limit
|
|
3223
|
+
* 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.
|
|
3224
|
+
* 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.
|
|
3225
|
+
*
|
|
3226
|
+
* @param request - GetWhatsappHealthStatusRequest
|
|
1988
3227
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1989
|
-
* @returns
|
|
3228
|
+
* @returns GetWhatsappHealthStatusResponse
|
|
1990
3229
|
*/
|
|
1991
|
-
async
|
|
1992
|
-
|
|
1993
|
-
let
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
request.permissionsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.permissions, "Permissions", "json");
|
|
3230
|
+
async getWhatsappHealthStatusWithOptions(request: $_model.GetWhatsappHealthStatusRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetWhatsappHealthStatusResponse> {
|
|
3231
|
+
request.validate();
|
|
3232
|
+
let query = { };
|
|
3233
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
3234
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1997
3235
|
}
|
|
1998
3236
|
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
body["Code"] = request.code;
|
|
3237
|
+
if (!$dara.isNull(request.language)) {
|
|
3238
|
+
query["Language"] = request.language;
|
|
2002
3239
|
}
|
|
2003
3240
|
|
|
2004
|
-
if (!$dara.isNull(request.
|
|
2005
|
-
|
|
3241
|
+
if (!$dara.isNull(request.nodeType)) {
|
|
3242
|
+
query["NodeType"] = request.nodeType;
|
|
2006
3243
|
}
|
|
2007
3244
|
|
|
2008
|
-
if (!$dara.isNull(request.
|
|
2009
|
-
|
|
3245
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3246
|
+
query["OwnerId"] = request.ownerId;
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
3250
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3254
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3258
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
if (!$dara.isNull(request.templateCode)) {
|
|
3262
|
+
query["TemplateCode"] = request.templateCode;
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
3266
|
+
query["WabaId"] = request.wabaId;
|
|
2010
3267
|
}
|
|
2011
3268
|
|
|
2012
3269
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2013
|
-
|
|
3270
|
+
query: OpenApiUtil.query(query),
|
|
2014
3271
|
});
|
|
2015
3272
|
let params = new $OpenApiUtil.Params({
|
|
2016
|
-
action: "
|
|
3273
|
+
action: "GetWhatsappHealthStatus",
|
|
2017
3274
|
version: "2020-06-06",
|
|
2018
3275
|
protocol: "HTTPS",
|
|
2019
3276
|
pathname: "/",
|
|
@@ -2023,43 +3280,51 @@ export default class Client extends OpenApi {
|
|
|
2023
3280
|
reqBodyType: "formData",
|
|
2024
3281
|
bodyType: "json",
|
|
2025
3282
|
});
|
|
2026
|
-
return $dara.cast<$_model.
|
|
3283
|
+
return $dara.cast<$_model.GetWhatsappHealthStatusResponse>(await this.callApi(params, req, runtime), new $_model.GetWhatsappHealthStatusResponse({}));
|
|
2027
3284
|
}
|
|
2028
3285
|
|
|
2029
3286
|
/**
|
|
2030
|
-
*
|
|
3287
|
+
* Queries the messaging health status of different types of nodes.
|
|
2031
3288
|
*
|
|
2032
|
-
* @
|
|
2033
|
-
*
|
|
3289
|
+
* @remarks
|
|
3290
|
+
* ### [](#qps-)QPS limit
|
|
3291
|
+
* 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.
|
|
3292
|
+
* 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.
|
|
3293
|
+
*
|
|
3294
|
+
* @param request - GetWhatsappHealthStatusRequest
|
|
3295
|
+
* @returns GetWhatsappHealthStatusResponse
|
|
2034
3296
|
*/
|
|
2035
|
-
async
|
|
3297
|
+
async getWhatsappHealthStatus(request: $_model.GetWhatsappHealthStatusRequest): Promise<$_model.GetWhatsappHealthStatusResponse> {
|
|
2036
3298
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2037
|
-
return await this.
|
|
3299
|
+
return await this.getWhatsappHealthStatusWithOptions(request, runtime);
|
|
2038
3300
|
}
|
|
2039
3301
|
|
|
2040
3302
|
/**
|
|
2041
|
-
*
|
|
3303
|
+
* Obtains the application ID under the ISV account.
|
|
2042
3304
|
*
|
|
2043
|
-
* @
|
|
3305
|
+
* @remarks
|
|
3306
|
+
* 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.
|
|
3307
|
+
*
|
|
3308
|
+
* @param request - IsvGetAppIdRequest
|
|
2044
3309
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2045
|
-
* @returns
|
|
3310
|
+
* @returns IsvGetAppIdResponse
|
|
2046
3311
|
*/
|
|
2047
|
-
async
|
|
3312
|
+
async isvGetAppIdWithOptions(request: $_model.IsvGetAppIdRequest, runtime: $dara.RuntimeOptions): Promise<$_model.IsvGetAppIdResponse> {
|
|
2048
3313
|
request.validate();
|
|
2049
3314
|
let body : {[key: string ]: any} = { };
|
|
2050
|
-
if (!$dara.isNull(request.
|
|
2051
|
-
body["
|
|
3315
|
+
if (!$dara.isNull(request.permissions)) {
|
|
3316
|
+
body["Permissions"] = request.permissions;
|
|
2052
3317
|
}
|
|
2053
3318
|
|
|
2054
|
-
if (!$dara.isNull(request.
|
|
2055
|
-
body["
|
|
3319
|
+
if (!$dara.isNull(request.type)) {
|
|
3320
|
+
body["Type"] = request.type;
|
|
2056
3321
|
}
|
|
2057
3322
|
|
|
2058
3323
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2059
3324
|
body: OpenApiUtil.parseToMap(body),
|
|
2060
3325
|
});
|
|
2061
3326
|
let params = new $OpenApiUtil.Params({
|
|
2062
|
-
action: "
|
|
3327
|
+
action: "IsvGetAppId",
|
|
2063
3328
|
version: "2020-06-06",
|
|
2064
3329
|
protocol: "HTTPS",
|
|
2065
3330
|
pathname: "/",
|
|
@@ -2069,46 +3334,58 @@ export default class Client extends OpenApi {
|
|
|
2069
3334
|
reqBodyType: "formData",
|
|
2070
3335
|
bodyType: "json",
|
|
2071
3336
|
});
|
|
2072
|
-
return $dara.cast<$_model.
|
|
3337
|
+
return $dara.cast<$_model.IsvGetAppIdResponse>(await this.callApi(params, req, runtime), new $_model.IsvGetAppIdResponse({}));
|
|
2073
3338
|
}
|
|
2074
3339
|
|
|
2075
3340
|
/**
|
|
2076
|
-
*
|
|
3341
|
+
* Obtains the application ID under the ISV account.
|
|
2077
3342
|
*
|
|
2078
|
-
* @
|
|
2079
|
-
*
|
|
3343
|
+
* @remarks
|
|
3344
|
+
* 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.
|
|
3345
|
+
*
|
|
3346
|
+
* @param request - IsvGetAppIdRequest
|
|
3347
|
+
* @returns IsvGetAppIdResponse
|
|
2080
3348
|
*/
|
|
2081
|
-
async
|
|
3349
|
+
async isvGetAppId(request: $_model.IsvGetAppIdRequest): Promise<$_model.IsvGetAppIdResponse> {
|
|
2082
3350
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2083
|
-
return await this.
|
|
3351
|
+
return await this.isvGetAppIdWithOptions(request, runtime);
|
|
2084
3352
|
}
|
|
2085
3353
|
|
|
2086
3354
|
/**
|
|
2087
|
-
*
|
|
3355
|
+
* 根据flowCode查询已绑定列表
|
|
2088
3356
|
*
|
|
2089
|
-
* @
|
|
2090
|
-
* 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.
|
|
2091
|
-
*
|
|
2092
|
-
* @param request - GetPhoneNumberVerificationStatusRequest
|
|
3357
|
+
* @param request - ListBindingRelationsForFlowVersionRequest
|
|
2093
3358
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2094
|
-
* @returns
|
|
3359
|
+
* @returns ListBindingRelationsForFlowVersionResponse
|
|
2095
3360
|
*/
|
|
2096
|
-
async
|
|
3361
|
+
async listBindingRelationsForFlowVersionWithOptions(request: $_model.ListBindingRelationsForFlowVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListBindingRelationsForFlowVersionResponse> {
|
|
2097
3362
|
request.validate();
|
|
2098
|
-
let
|
|
2099
|
-
if (!$dara.isNull(request.
|
|
2100
|
-
|
|
3363
|
+
let query = { };
|
|
3364
|
+
if (!$dara.isNull(request.channelType)) {
|
|
3365
|
+
query["ChannelType"] = request.channelType;
|
|
2101
3366
|
}
|
|
2102
3367
|
|
|
2103
|
-
if (!$dara.isNull(request.
|
|
2104
|
-
|
|
3368
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
3369
|
+
query["FlowCode"] = request.flowCode;
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3373
|
+
query["OwnerId"] = request.ownerId;
|
|
3374
|
+
}
|
|
3375
|
+
|
|
3376
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3377
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3381
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2105
3382
|
}
|
|
2106
3383
|
|
|
2107
3384
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2108
|
-
|
|
3385
|
+
query: OpenApiUtil.query(query),
|
|
2109
3386
|
});
|
|
2110
3387
|
let params = new $OpenApiUtil.Params({
|
|
2111
|
-
action: "
|
|
3388
|
+
action: "ListBindingRelationsForFlowVersion",
|
|
2112
3389
|
version: "2020-06-06",
|
|
2113
3390
|
protocol: "HTTPS",
|
|
2114
3391
|
pathname: "/",
|
|
@@ -2118,49 +3395,85 @@ export default class Client extends OpenApi {
|
|
|
2118
3395
|
reqBodyType: "formData",
|
|
2119
3396
|
bodyType: "json",
|
|
2120
3397
|
});
|
|
2121
|
-
return $dara.cast<$_model.
|
|
3398
|
+
return $dara.cast<$_model.ListBindingRelationsForFlowVersionResponse>(await this.callApi(params, req, runtime), new $_model.ListBindingRelationsForFlowVersionResponse({}));
|
|
2122
3399
|
}
|
|
2123
3400
|
|
|
2124
3401
|
/**
|
|
2125
|
-
*
|
|
3402
|
+
* 根据flowCode查询已绑定列表
|
|
2126
3403
|
*
|
|
2127
|
-
* @
|
|
2128
|
-
*
|
|
2129
|
-
*
|
|
2130
|
-
* @param request - GetPhoneNumberVerificationStatusRequest
|
|
2131
|
-
* @returns GetPhoneNumberVerificationStatusResponse
|
|
3404
|
+
* @param request - ListBindingRelationsForFlowVersionRequest
|
|
3405
|
+
* @returns ListBindingRelationsForFlowVersionResponse
|
|
2132
3406
|
*/
|
|
2133
|
-
async
|
|
3407
|
+
async listBindingRelationsForFlowVersion(request: $_model.ListBindingRelationsForFlowVersionRequest): Promise<$_model.ListBindingRelationsForFlowVersionResponse> {
|
|
2134
3408
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2135
|
-
return await this.
|
|
3409
|
+
return await this.listBindingRelationsForFlowVersionWithOptions(request, runtime);
|
|
2136
3410
|
}
|
|
2137
3411
|
|
|
2138
3412
|
/**
|
|
2139
|
-
*
|
|
3413
|
+
* List Flows
|
|
2140
3414
|
*
|
|
2141
|
-
* @
|
|
2142
|
-
* 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.
|
|
2143
|
-
*
|
|
2144
|
-
* @param request - GetPreValidatePhoneIdRequest
|
|
3415
|
+
* @param tmpReq - ListChatFlowRequest
|
|
2145
3416
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2146
|
-
* @returns
|
|
3417
|
+
* @returns ListChatFlowResponse
|
|
2147
3418
|
*/
|
|
2148
|
-
async
|
|
2149
|
-
|
|
2150
|
-
let
|
|
2151
|
-
|
|
2152
|
-
|
|
3419
|
+
async listChatFlowWithOptions(tmpReq: $_model.ListChatFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListChatFlowResponse> {
|
|
3420
|
+
tmpReq.validate();
|
|
3421
|
+
let request = new $_model.ListChatFlowShrinkRequest({ });
|
|
3422
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3423
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
3424
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
2153
3425
|
}
|
|
2154
3426
|
|
|
2155
|
-
|
|
2156
|
-
|
|
3427
|
+
let query = { };
|
|
3428
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
3429
|
+
query["BizCode"] = request.bizCode;
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3432
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
3433
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
if (!$dara.isNull(request.flowTriggerType)) {
|
|
3437
|
+
query["FlowTriggerType"] = request.flowTriggerType;
|
|
3438
|
+
}
|
|
3439
|
+
|
|
3440
|
+
if (!$dara.isNull(request.keyword)) {
|
|
3441
|
+
query["Keyword"] = request.keyword;
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3445
|
+
query["OwnerId"] = request.ownerId;
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
if (!$dara.isNull(request.pageNo)) {
|
|
3449
|
+
query["PageNo"] = request.pageNo;
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3453
|
+
query["PageSize"] = request.pageSize;
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3457
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3460
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3461
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
if (!$dara.isNull(request.returnWithOnlineVersion)) {
|
|
3465
|
+
query["ReturnWithOnlineVersion"] = request.returnWithOnlineVersion;
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
if (!$dara.isNull(request.status)) {
|
|
3469
|
+
query["Status"] = request.status;
|
|
2157
3470
|
}
|
|
2158
3471
|
|
|
2159
3472
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2160
|
-
|
|
3473
|
+
query: OpenApiUtil.query(query),
|
|
2161
3474
|
});
|
|
2162
3475
|
let params = new $OpenApiUtil.Params({
|
|
2163
|
-
action: "
|
|
3476
|
+
action: "ListChatFlow",
|
|
2164
3477
|
version: "2020-06-06",
|
|
2165
3478
|
protocol: "HTTPS",
|
|
2166
3479
|
pathname: "/",
|
|
@@ -2170,44 +3483,50 @@ export default class Client extends OpenApi {
|
|
|
2170
3483
|
reqBodyType: "formData",
|
|
2171
3484
|
bodyType: "json",
|
|
2172
3485
|
});
|
|
2173
|
-
return $dara.cast<$_model.
|
|
3486
|
+
return $dara.cast<$_model.ListChatFlowResponse>(await this.callApi(params, req, runtime), new $_model.ListChatFlowResponse({}));
|
|
2174
3487
|
}
|
|
2175
3488
|
|
|
2176
3489
|
/**
|
|
2177
|
-
*
|
|
3490
|
+
* List Flows
|
|
2178
3491
|
*
|
|
2179
|
-
* @
|
|
2180
|
-
*
|
|
2181
|
-
*
|
|
2182
|
-
* @param request - GetPreValidatePhoneIdRequest
|
|
2183
|
-
* @returns GetPreValidatePhoneIdResponse
|
|
3492
|
+
* @param request - ListChatFlowRequest
|
|
3493
|
+
* @returns ListChatFlowResponse
|
|
2184
3494
|
*/
|
|
2185
|
-
async
|
|
3495
|
+
async listChatFlow(request: $_model.ListChatFlowRequest): Promise<$_model.ListChatFlowResponse> {
|
|
2186
3496
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2187
|
-
return await this.
|
|
3497
|
+
return await this.listChatFlowWithOptions(request, runtime);
|
|
2188
3498
|
}
|
|
2189
3499
|
|
|
2190
3500
|
/**
|
|
2191
|
-
*
|
|
3501
|
+
* ChatFlow Template List
|
|
2192
3502
|
*
|
|
2193
|
-
* @
|
|
2194
|
-
* 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.
|
|
2195
|
-
*
|
|
2196
|
-
* @param request - GetWhatsappConnectionCatalogRequest
|
|
3503
|
+
* @param request - ListChatFlowTemplateRequest
|
|
2197
3504
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2198
|
-
* @returns
|
|
3505
|
+
* @returns ListChatFlowTemplateResponse
|
|
2199
3506
|
*/
|
|
2200
|
-
async
|
|
3507
|
+
async listChatFlowTemplateWithOptions(request: $_model.ListChatFlowTemplateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListChatFlowTemplateResponse> {
|
|
2201
3508
|
request.validate();
|
|
2202
3509
|
let query = { };
|
|
2203
|
-
if (!$dara.isNull(request.
|
|
2204
|
-
query["
|
|
3510
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
3511
|
+
query["BizCode"] = request.bizCode;
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
if (!$dara.isNull(request.keyword)) {
|
|
3515
|
+
query["Keyword"] = request.keyword;
|
|
2205
3516
|
}
|
|
2206
3517
|
|
|
2207
3518
|
if (!$dara.isNull(request.ownerId)) {
|
|
2208
3519
|
query["OwnerId"] = request.ownerId;
|
|
2209
3520
|
}
|
|
2210
3521
|
|
|
3522
|
+
if (!$dara.isNull(request.pageNo)) {
|
|
3523
|
+
query["PageNo"] = request.pageNo;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3527
|
+
query["PageSize"] = request.pageSize;
|
|
3528
|
+
}
|
|
3529
|
+
|
|
2211
3530
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2212
3531
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2213
3532
|
}
|
|
@@ -2216,15 +3535,15 @@ export default class Client extends OpenApi {
|
|
|
2216
3535
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2217
3536
|
}
|
|
2218
3537
|
|
|
2219
|
-
if (!$dara.isNull(request.
|
|
2220
|
-
query["
|
|
3538
|
+
if (!$dara.isNull(request.triggerType)) {
|
|
3539
|
+
query["TriggerType"] = request.triggerType;
|
|
2221
3540
|
}
|
|
2222
3541
|
|
|
2223
3542
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2224
3543
|
query: OpenApiUtil.query(query),
|
|
2225
3544
|
});
|
|
2226
3545
|
let params = new $OpenApiUtil.Params({
|
|
2227
|
-
action: "
|
|
3546
|
+
action: "ListChatFlowTemplate",
|
|
2228
3547
|
version: "2020-06-06",
|
|
2229
3548
|
protocol: "HTTPS",
|
|
2230
3549
|
pathname: "/",
|
|
@@ -2234,56 +3553,58 @@ export default class Client extends OpenApi {
|
|
|
2234
3553
|
reqBodyType: "formData",
|
|
2235
3554
|
bodyType: "json",
|
|
2236
3555
|
});
|
|
2237
|
-
return $dara.cast<$_model.
|
|
3556
|
+
return $dara.cast<$_model.ListChatFlowTemplateResponse>(await this.callApi(params, req, runtime), new $_model.ListChatFlowTemplateResponse({}));
|
|
2238
3557
|
}
|
|
2239
3558
|
|
|
2240
3559
|
/**
|
|
2241
|
-
*
|
|
2242
|
-
*
|
|
2243
|
-
* @remarks
|
|
2244
|
-
* 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.
|
|
3560
|
+
* ChatFlow Template List
|
|
2245
3561
|
*
|
|
2246
|
-
* @param request -
|
|
2247
|
-
* @returns
|
|
3562
|
+
* @param request - ListChatFlowTemplateRequest
|
|
3563
|
+
* @returns ListChatFlowTemplateResponse
|
|
2248
3564
|
*/
|
|
2249
|
-
async
|
|
3565
|
+
async listChatFlowTemplate(request: $_model.ListChatFlowTemplateRequest): Promise<$_model.ListChatFlowTemplateResponse> {
|
|
2250
3566
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2251
|
-
return await this.
|
|
3567
|
+
return await this.listChatFlowTemplateWithOptions(request, runtime);
|
|
2252
3568
|
}
|
|
2253
3569
|
|
|
2254
3570
|
/**
|
|
2255
|
-
*
|
|
2256
|
-
*
|
|
2257
|
-
* @remarks
|
|
2258
|
-
* ### [](#qps-)QPS limit
|
|
2259
|
-
* 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.
|
|
2260
|
-
* 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.
|
|
3571
|
+
* ListChatGroup
|
|
2261
3572
|
*
|
|
2262
|
-
* @param
|
|
3573
|
+
* @param tmpReq - ListChatGroupRequest
|
|
2263
3574
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2264
|
-
* @returns
|
|
3575
|
+
* @returns ListChatGroupResponse
|
|
2265
3576
|
*/
|
|
2266
|
-
async
|
|
2267
|
-
|
|
3577
|
+
async listChatGroupWithOptions(tmpReq: $_model.ListChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListChatGroupResponse> {
|
|
3578
|
+
tmpReq.validate();
|
|
3579
|
+
let request = new $_model.ListChatGroupShrinkRequest({ });
|
|
3580
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3581
|
+
if (!$dara.isNull(tmpReq.page)) {
|
|
3582
|
+
request.pageShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
|
|
3583
|
+
}
|
|
3584
|
+
|
|
2268
3585
|
let query = { };
|
|
2269
|
-
if (!$dara.isNull(request.
|
|
2270
|
-
query["
|
|
3586
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
3587
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
2271
3588
|
}
|
|
2272
3589
|
|
|
2273
|
-
if (!$dara.isNull(request.
|
|
2274
|
-
query["
|
|
3590
|
+
if (!$dara.isNull(request.channelType)) {
|
|
3591
|
+
query["ChannelType"] = request.channelType;
|
|
2275
3592
|
}
|
|
2276
3593
|
|
|
2277
|
-
if (!$dara.isNull(request.
|
|
2278
|
-
query["
|
|
3594
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
3595
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
if (!$dara.isNull(request.groupStatus)) {
|
|
3599
|
+
query["GroupStatus"] = request.groupStatus;
|
|
2279
3600
|
}
|
|
2280
3601
|
|
|
2281
3602
|
if (!$dara.isNull(request.ownerId)) {
|
|
2282
3603
|
query["OwnerId"] = request.ownerId;
|
|
2283
3604
|
}
|
|
2284
3605
|
|
|
2285
|
-
if (!$dara.isNull(request.
|
|
2286
|
-
query["
|
|
3606
|
+
if (!$dara.isNull(request.pageShrink)) {
|
|
3607
|
+
query["Page"] = request.pageShrink;
|
|
2287
3608
|
}
|
|
2288
3609
|
|
|
2289
3610
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
@@ -2294,19 +3615,15 @@ export default class Client extends OpenApi {
|
|
|
2294
3615
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2295
3616
|
}
|
|
2296
3617
|
|
|
2297
|
-
if (!$dara.isNull(request.
|
|
2298
|
-
query["
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
if (!$dara.isNull(request.wabaId)) {
|
|
2302
|
-
query["WabaId"] = request.wabaId;
|
|
3618
|
+
if (!$dara.isNull(request.subject)) {
|
|
3619
|
+
query["Subject"] = request.subject;
|
|
2303
3620
|
}
|
|
2304
3621
|
|
|
2305
3622
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2306
3623
|
query: OpenApiUtil.query(query),
|
|
2307
3624
|
});
|
|
2308
3625
|
let params = new $OpenApiUtil.Params({
|
|
2309
|
-
action: "
|
|
3626
|
+
action: "ListChatGroup",
|
|
2310
3627
|
version: "2020-06-06",
|
|
2311
3628
|
protocol: "HTTPS",
|
|
2312
3629
|
pathname: "/",
|
|
@@ -2316,51 +3633,73 @@ export default class Client extends OpenApi {
|
|
|
2316
3633
|
reqBodyType: "formData",
|
|
2317
3634
|
bodyType: "json",
|
|
2318
3635
|
});
|
|
2319
|
-
return $dara.cast<$_model.
|
|
3636
|
+
return $dara.cast<$_model.ListChatGroupResponse>(await this.callApi(params, req, runtime), new $_model.ListChatGroupResponse({}));
|
|
2320
3637
|
}
|
|
2321
3638
|
|
|
2322
3639
|
/**
|
|
2323
|
-
*
|
|
2324
|
-
*
|
|
2325
|
-
* @remarks
|
|
2326
|
-
* ### [](#qps-)QPS limit
|
|
2327
|
-
* 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.
|
|
2328
|
-
* 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.
|
|
3640
|
+
* ListChatGroup
|
|
2329
3641
|
*
|
|
2330
|
-
* @param request -
|
|
2331
|
-
* @returns
|
|
3642
|
+
* @param request - ListChatGroupRequest
|
|
3643
|
+
* @returns ListChatGroupResponse
|
|
2332
3644
|
*/
|
|
2333
|
-
async
|
|
3645
|
+
async listChatGroup(request: $_model.ListChatGroupRequest): Promise<$_model.ListChatGroupResponse> {
|
|
2334
3646
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2335
|
-
return await this.
|
|
3647
|
+
return await this.listChatGroupWithOptions(request, runtime);
|
|
2336
3648
|
}
|
|
2337
3649
|
|
|
2338
3650
|
/**
|
|
2339
|
-
*
|
|
3651
|
+
* ListChatGroupParticipants
|
|
2340
3652
|
*
|
|
2341
|
-
* @
|
|
2342
|
-
* 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.
|
|
2343
|
-
*
|
|
2344
|
-
* @param request - IsvGetAppIdRequest
|
|
3653
|
+
* @param tmpReq - ListChatGroupParticipantsRequest
|
|
2345
3654
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2346
|
-
* @returns
|
|
3655
|
+
* @returns ListChatGroupParticipantsResponse
|
|
2347
3656
|
*/
|
|
2348
|
-
async
|
|
2349
|
-
|
|
2350
|
-
let
|
|
2351
|
-
|
|
2352
|
-
|
|
3657
|
+
async listChatGroupParticipantsWithOptions(tmpReq: $_model.ListChatGroupParticipantsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListChatGroupParticipantsResponse> {
|
|
3658
|
+
tmpReq.validate();
|
|
3659
|
+
let request = new $_model.ListChatGroupParticipantsShrinkRequest({ });
|
|
3660
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3661
|
+
if (!$dara.isNull(tmpReq.page)) {
|
|
3662
|
+
request.pageShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
|
|
2353
3663
|
}
|
|
2354
3664
|
|
|
2355
|
-
|
|
2356
|
-
|
|
3665
|
+
let query = { };
|
|
3666
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
3667
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3670
|
+
if (!$dara.isNull(request.channelType)) {
|
|
3671
|
+
query["ChannelType"] = request.channelType;
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
3675
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
if (!$dara.isNull(request.groupId)) {
|
|
3679
|
+
query["GroupId"] = request.groupId;
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3683
|
+
query["OwnerId"] = request.ownerId;
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3686
|
+
if (!$dara.isNull(request.pageShrink)) {
|
|
3687
|
+
query["Page"] = request.pageShrink;
|
|
3688
|
+
}
|
|
3689
|
+
|
|
3690
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3691
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3695
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2357
3696
|
}
|
|
2358
3697
|
|
|
2359
3698
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2360
|
-
|
|
3699
|
+
query: OpenApiUtil.query(query),
|
|
2361
3700
|
});
|
|
2362
3701
|
let params = new $OpenApiUtil.Params({
|
|
2363
|
-
action: "
|
|
3702
|
+
action: "ListChatGroupParticipants",
|
|
2364
3703
|
version: "2020-06-06",
|
|
2365
3704
|
protocol: "HTTPS",
|
|
2366
3705
|
pathname: "/",
|
|
@@ -2370,21 +3709,18 @@ export default class Client extends OpenApi {
|
|
|
2370
3709
|
reqBodyType: "formData",
|
|
2371
3710
|
bodyType: "json",
|
|
2372
3711
|
});
|
|
2373
|
-
return $dara.cast<$_model.
|
|
3712
|
+
return $dara.cast<$_model.ListChatGroupParticipantsResponse>(await this.callApi(params, req, runtime), new $_model.ListChatGroupParticipantsResponse({}));
|
|
2374
3713
|
}
|
|
2375
3714
|
|
|
2376
3715
|
/**
|
|
2377
|
-
*
|
|
2378
|
-
*
|
|
2379
|
-
* @remarks
|
|
2380
|
-
* 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.
|
|
3716
|
+
* ListChatGroupParticipants
|
|
2381
3717
|
*
|
|
2382
|
-
* @param request -
|
|
2383
|
-
* @returns
|
|
3718
|
+
* @param request - ListChatGroupParticipantsRequest
|
|
3719
|
+
* @returns ListChatGroupParticipantsResponse
|
|
2384
3720
|
*/
|
|
2385
|
-
async
|
|
3721
|
+
async listChatGroupParticipants(request: $_model.ListChatGroupParticipantsRequest): Promise<$_model.ListChatGroupParticipantsResponse> {
|
|
2386
3722
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2387
|
-
return await this.
|
|
3723
|
+
return await this.listChatGroupParticipantsWithOptions(request, runtime);
|
|
2388
3724
|
}
|
|
2389
3725
|
|
|
2390
3726
|
/**
|
|
@@ -2553,6 +3889,86 @@ export default class Client extends OpenApi {
|
|
|
2553
3889
|
return await this.listFlowWithOptions(request, runtime);
|
|
2554
3890
|
}
|
|
2555
3891
|
|
|
3892
|
+
/**
|
|
3893
|
+
* List Flow Versions
|
|
3894
|
+
*
|
|
3895
|
+
* @param tmpReq - ListFlowVersionRequest
|
|
3896
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3897
|
+
* @returns ListFlowVersionResponse
|
|
3898
|
+
*/
|
|
3899
|
+
async listFlowVersionWithOptions(tmpReq: $_model.ListFlowVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListFlowVersionResponse> {
|
|
3900
|
+
tmpReq.validate();
|
|
3901
|
+
let request = new $_model.ListFlowVersionShrinkRequest({ });
|
|
3902
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
3903
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
3904
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3907
|
+
let query = { };
|
|
3908
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
3909
|
+
query["BizCode"] = request.bizCode;
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
3913
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
3917
|
+
query["FlowCode"] = request.flowCode;
|
|
3918
|
+
}
|
|
3919
|
+
|
|
3920
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3921
|
+
query["OwnerId"] = request.ownerId;
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
if (!$dara.isNull(request.pageNo)) {
|
|
3925
|
+
query["PageNo"] = request.pageNo;
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3929
|
+
query["PageSize"] = request.pageSize;
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3933
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3937
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3938
|
+
}
|
|
3939
|
+
|
|
3940
|
+
if (!$dara.isNull(request.status)) {
|
|
3941
|
+
query["Status"] = request.status;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3945
|
+
query: OpenApiUtil.query(query),
|
|
3946
|
+
});
|
|
3947
|
+
let params = new $OpenApiUtil.Params({
|
|
3948
|
+
action: "ListFlowVersion",
|
|
3949
|
+
version: "2020-06-06",
|
|
3950
|
+
protocol: "HTTPS",
|
|
3951
|
+
pathname: "/",
|
|
3952
|
+
method: "POST",
|
|
3953
|
+
authType: "AK",
|
|
3954
|
+
style: "RPC",
|
|
3955
|
+
reqBodyType: "formData",
|
|
3956
|
+
bodyType: "json",
|
|
3957
|
+
});
|
|
3958
|
+
return $dara.cast<$_model.ListFlowVersionResponse>(await this.callApi(params, req, runtime), new $_model.ListFlowVersionResponse({}));
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* List Flow Versions
|
|
3963
|
+
*
|
|
3964
|
+
* @param request - ListFlowVersionRequest
|
|
3965
|
+
* @returns ListFlowVersionResponse
|
|
3966
|
+
*/
|
|
3967
|
+
async listFlowVersion(request: $_model.ListFlowVersionRequest): Promise<$_model.ListFlowVersionResponse> {
|
|
3968
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3969
|
+
return await this.listFlowVersionWithOptions(request, runtime);
|
|
3970
|
+
}
|
|
3971
|
+
|
|
2556
3972
|
/**
|
|
2557
3973
|
* Queries the information about a list of quick-response (QR) codes that contain messages.
|
|
2558
3974
|
*
|
|
@@ -2562,17 +3978,29 @@ export default class Client extends OpenApi {
|
|
|
2562
3978
|
*/
|
|
2563
3979
|
async listPhoneMessageQrdlWithOptions(request: $_model.ListPhoneMessageQrdlRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListPhoneMessageQrdlResponse> {
|
|
2564
3980
|
request.validate();
|
|
2565
|
-
let
|
|
3981
|
+
let query = { };
|
|
2566
3982
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
2567
|
-
|
|
3983
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3987
|
+
query["OwnerId"] = request.ownerId;
|
|
2568
3988
|
}
|
|
2569
3989
|
|
|
2570
3990
|
if (!$dara.isNull(request.phoneNumber)) {
|
|
2571
|
-
|
|
3991
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3995
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3999
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2572
4000
|
}
|
|
2573
4001
|
|
|
2574
4002
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2575
|
-
|
|
4003
|
+
query: OpenApiUtil.query(query),
|
|
2576
4004
|
});
|
|
2577
4005
|
let params = new $OpenApiUtil.Params({
|
|
2578
4006
|
action: "ListPhoneMessageQrdl",
|
|
@@ -2936,49 +4364,226 @@ export default class Client extends OpenApi {
|
|
|
2936
4364
|
*/
|
|
2937
4365
|
async modifyChatappTemplateProperties(request: $_model.ModifyChatappTemplatePropertiesRequest): Promise<$_model.ModifyChatappTemplatePropertiesResponse> {
|
|
2938
4366
|
let runtime = new $dara.RuntimeOptions({ });
|
|
2939
|
-
return await this.modifyChatappTemplatePropertiesWithOptions(request, runtime);
|
|
4367
|
+
return await this.modifyChatappTemplatePropertiesWithOptions(request, runtime);
|
|
4368
|
+
}
|
|
4369
|
+
|
|
4370
|
+
/**
|
|
4371
|
+
* Modifies the basic information about a Flow.
|
|
4372
|
+
*
|
|
4373
|
+
* @remarks
|
|
4374
|
+
* 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.
|
|
4375
|
+
*
|
|
4376
|
+
* @param tmpReq - ModifyFlowRequest
|
|
4377
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4378
|
+
* @returns ModifyFlowResponse
|
|
4379
|
+
*/
|
|
4380
|
+
async modifyFlowWithOptions(tmpReq: $_model.ModifyFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyFlowResponse> {
|
|
4381
|
+
tmpReq.validate();
|
|
4382
|
+
let request = new $_model.ModifyFlowShrinkRequest({ });
|
|
4383
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4384
|
+
if (!$dara.isNull(tmpReq.categories)) {
|
|
4385
|
+
request.categoriesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.categories, "Categories", "json");
|
|
4386
|
+
}
|
|
4387
|
+
|
|
4388
|
+
let body : {[key: string ]: any} = { };
|
|
4389
|
+
if (!$dara.isNull(request.categoriesShrink)) {
|
|
4390
|
+
body["Categories"] = request.categoriesShrink;
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4393
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
4394
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
4395
|
+
}
|
|
4396
|
+
|
|
4397
|
+
if (!$dara.isNull(request.flowId)) {
|
|
4398
|
+
body["FlowId"] = request.flowId;
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4401
|
+
if (!$dara.isNull(request.flowName)) {
|
|
4402
|
+
body["FlowName"] = request.flowName;
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4405
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4406
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4407
|
+
});
|
|
4408
|
+
let params = new $OpenApiUtil.Params({
|
|
4409
|
+
action: "ModifyFlow",
|
|
4410
|
+
version: "2020-06-06",
|
|
4411
|
+
protocol: "HTTPS",
|
|
4412
|
+
pathname: "/",
|
|
4413
|
+
method: "POST",
|
|
4414
|
+
authType: "AK",
|
|
4415
|
+
style: "RPC",
|
|
4416
|
+
reqBodyType: "formData",
|
|
4417
|
+
bodyType: "json",
|
|
4418
|
+
});
|
|
4419
|
+
return $dara.cast<$_model.ModifyFlowResponse>(await this.callApi(params, req, runtime), new $_model.ModifyFlowResponse({}));
|
|
4420
|
+
}
|
|
4421
|
+
|
|
4422
|
+
/**
|
|
4423
|
+
* Modifies the basic information about a Flow.
|
|
4424
|
+
*
|
|
4425
|
+
* @remarks
|
|
4426
|
+
* 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.
|
|
4427
|
+
*
|
|
4428
|
+
* @param request - ModifyFlowRequest
|
|
4429
|
+
* @returns ModifyFlowResponse
|
|
4430
|
+
*/
|
|
4431
|
+
async modifyFlow(request: $_model.ModifyFlowRequest): Promise<$_model.ModifyFlowResponse> {
|
|
4432
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4433
|
+
return await this.modifyFlowWithOptions(request, runtime);
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
/**
|
|
4437
|
+
* The ID of the request.
|
|
4438
|
+
*
|
|
4439
|
+
* @remarks
|
|
4440
|
+
* ModifyPhoneBusinessProfile
|
|
4441
|
+
*
|
|
4442
|
+
* @param tmpReq - ModifyPhoneBusinessProfileRequest
|
|
4443
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4444
|
+
* @returns ModifyPhoneBusinessProfileResponse
|
|
4445
|
+
*/
|
|
4446
|
+
async modifyPhoneBusinessProfileWithOptions(tmpReq: $_model.ModifyPhoneBusinessProfileRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyPhoneBusinessProfileResponse> {
|
|
4447
|
+
tmpReq.validate();
|
|
4448
|
+
let request = new $_model.ModifyPhoneBusinessProfileShrinkRequest({ });
|
|
4449
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4450
|
+
if (!$dara.isNull(tmpReq.websites)) {
|
|
4451
|
+
request.websitesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.websites, "Websites", "json");
|
|
4452
|
+
}
|
|
4453
|
+
|
|
4454
|
+
let query = { };
|
|
4455
|
+
if (!$dara.isNull(request.about)) {
|
|
4456
|
+
query["About"] = request.about;
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4459
|
+
if (!$dara.isNull(request.address)) {
|
|
4460
|
+
query["Address"] = request.address;
|
|
4461
|
+
}
|
|
4462
|
+
|
|
4463
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
4464
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
4465
|
+
}
|
|
4466
|
+
|
|
4467
|
+
if (!$dara.isNull(request.description)) {
|
|
4468
|
+
query["Description"] = request.description;
|
|
4469
|
+
}
|
|
4470
|
+
|
|
4471
|
+
if (!$dara.isNull(request.email)) {
|
|
4472
|
+
query["Email"] = request.email;
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
4476
|
+
query["OwnerId"] = request.ownerId;
|
|
4477
|
+
}
|
|
4478
|
+
|
|
4479
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
4480
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
4481
|
+
}
|
|
4482
|
+
|
|
4483
|
+
if (!$dara.isNull(request.profilePictureUrl)) {
|
|
4484
|
+
query["ProfilePictureUrl"] = request.profilePictureUrl;
|
|
4485
|
+
}
|
|
4486
|
+
|
|
4487
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
4488
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
4489
|
+
}
|
|
4490
|
+
|
|
4491
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
4492
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
4493
|
+
}
|
|
4494
|
+
|
|
4495
|
+
if (!$dara.isNull(request.vertical)) {
|
|
4496
|
+
query["Vertical"] = request.vertical;
|
|
4497
|
+
}
|
|
4498
|
+
|
|
4499
|
+
if (!$dara.isNull(request.websitesShrink)) {
|
|
4500
|
+
query["Websites"] = request.websitesShrink;
|
|
4501
|
+
}
|
|
4502
|
+
|
|
4503
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4504
|
+
query: OpenApiUtil.query(query),
|
|
4505
|
+
});
|
|
4506
|
+
let params = new $OpenApiUtil.Params({
|
|
4507
|
+
action: "ModifyPhoneBusinessProfile",
|
|
4508
|
+
version: "2020-06-06",
|
|
4509
|
+
protocol: "HTTPS",
|
|
4510
|
+
pathname: "/",
|
|
4511
|
+
method: "POST",
|
|
4512
|
+
authType: "AK",
|
|
4513
|
+
style: "RPC",
|
|
4514
|
+
reqBodyType: "formData",
|
|
4515
|
+
bodyType: "json",
|
|
4516
|
+
});
|
|
4517
|
+
return $dara.cast<$_model.ModifyPhoneBusinessProfileResponse>(await this.callApi(params, req, runtime), new $_model.ModifyPhoneBusinessProfileResponse({}));
|
|
4518
|
+
}
|
|
4519
|
+
|
|
4520
|
+
/**
|
|
4521
|
+
* The ID of the request.
|
|
4522
|
+
*
|
|
4523
|
+
* @remarks
|
|
4524
|
+
* ModifyPhoneBusinessProfile
|
|
4525
|
+
*
|
|
4526
|
+
* @param request - ModifyPhoneBusinessProfileRequest
|
|
4527
|
+
* @returns ModifyPhoneBusinessProfileResponse
|
|
4528
|
+
*/
|
|
4529
|
+
async modifyPhoneBusinessProfile(request: $_model.ModifyPhoneBusinessProfileRequest): Promise<$_model.ModifyPhoneBusinessProfileResponse> {
|
|
4530
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4531
|
+
return await this.modifyPhoneBusinessProfileWithOptions(request, runtime);
|
|
2940
4532
|
}
|
|
2941
4533
|
|
|
2942
4534
|
/**
|
|
2943
|
-
*
|
|
2944
|
-
*
|
|
2945
|
-
* @remarks
|
|
2946
|
-
* 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.
|
|
4535
|
+
* Offline Flow Version
|
|
2947
4536
|
*
|
|
2948
|
-
* @param tmpReq -
|
|
4537
|
+
* @param tmpReq - OfflineFlowVersionRequest
|
|
2949
4538
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2950
|
-
* @returns
|
|
4539
|
+
* @returns OfflineFlowVersionResponse
|
|
2951
4540
|
*/
|
|
2952
|
-
async
|
|
4541
|
+
async offlineFlowVersionWithOptions(tmpReq: $_model.OfflineFlowVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.OfflineFlowVersionResponse> {
|
|
2953
4542
|
tmpReq.validate();
|
|
2954
|
-
let request = new $_model.
|
|
4543
|
+
let request = new $_model.OfflineFlowVersionShrinkRequest({ });
|
|
2955
4544
|
OpenApiUtil.convert(tmpReq, request);
|
|
2956
|
-
if (!$dara.isNull(tmpReq.
|
|
2957
|
-
request.
|
|
4545
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
4546
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
2958
4547
|
}
|
|
2959
4548
|
|
|
2960
|
-
let
|
|
2961
|
-
if (!$dara.isNull(request.
|
|
2962
|
-
|
|
4549
|
+
let query = { };
|
|
4550
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
4551
|
+
query["BizCode"] = request.bizCode;
|
|
2963
4552
|
}
|
|
2964
4553
|
|
|
2965
|
-
if (!$dara.isNull(request.
|
|
2966
|
-
|
|
4554
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
4555
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
2967
4556
|
}
|
|
2968
4557
|
|
|
2969
|
-
if (!$dara.isNull(request.
|
|
2970
|
-
|
|
4558
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
4559
|
+
query["FlowCode"] = request.flowCode;
|
|
2971
4560
|
}
|
|
2972
4561
|
|
|
2973
|
-
if (!$dara.isNull(request.
|
|
2974
|
-
|
|
4562
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
4563
|
+
query["FlowVersion"] = request.flowVersion;
|
|
4564
|
+
}
|
|
4565
|
+
|
|
4566
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
4567
|
+
query["OwnerId"] = request.ownerId;
|
|
4568
|
+
}
|
|
4569
|
+
|
|
4570
|
+
if (!$dara.isNull(request.remark)) {
|
|
4571
|
+
query["Remark"] = request.remark;
|
|
4572
|
+
}
|
|
4573
|
+
|
|
4574
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
4575
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
4576
|
+
}
|
|
4577
|
+
|
|
4578
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
4579
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2975
4580
|
}
|
|
2976
4581
|
|
|
2977
4582
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2978
|
-
|
|
4583
|
+
query: OpenApiUtil.query(query),
|
|
2979
4584
|
});
|
|
2980
4585
|
let params = new $OpenApiUtil.Params({
|
|
2981
|
-
action: "
|
|
4586
|
+
action: "OfflineFlowVersion",
|
|
2982
4587
|
version: "2020-06-06",
|
|
2983
4588
|
protocol: "HTTPS",
|
|
2984
4589
|
pathname: "/",
|
|
@@ -2988,72 +4593,58 @@ export default class Client extends OpenApi {
|
|
|
2988
4593
|
reqBodyType: "formData",
|
|
2989
4594
|
bodyType: "json",
|
|
2990
4595
|
});
|
|
2991
|
-
return $dara.cast<$_model.
|
|
4596
|
+
return $dara.cast<$_model.OfflineFlowVersionResponse>(await this.callApi(params, req, runtime), new $_model.OfflineFlowVersionResponse({}));
|
|
2992
4597
|
}
|
|
2993
4598
|
|
|
2994
4599
|
/**
|
|
2995
|
-
*
|
|
2996
|
-
*
|
|
2997
|
-
* @remarks
|
|
2998
|
-
* 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.
|
|
4600
|
+
* Offline Flow Version
|
|
2999
4601
|
*
|
|
3000
|
-
* @param request -
|
|
3001
|
-
* @returns
|
|
4602
|
+
* @param request - OfflineFlowVersionRequest
|
|
4603
|
+
* @returns OfflineFlowVersionResponse
|
|
3002
4604
|
*/
|
|
3003
|
-
async
|
|
4605
|
+
async offlineFlowVersion(request: $_model.OfflineFlowVersionRequest): Promise<$_model.OfflineFlowVersionResponse> {
|
|
3004
4606
|
let runtime = new $dara.RuntimeOptions({ });
|
|
3005
|
-
return await this.
|
|
4607
|
+
return await this.offlineFlowVersionWithOptions(request, runtime);
|
|
3006
4608
|
}
|
|
3007
4609
|
|
|
3008
4610
|
/**
|
|
3009
|
-
*
|
|
3010
|
-
*
|
|
3011
|
-
* @remarks
|
|
3012
|
-
* ModifyPhoneBusinessProfile
|
|
4611
|
+
* Online Flow Version
|
|
3013
4612
|
*
|
|
3014
|
-
* @param tmpReq -
|
|
4613
|
+
* @param tmpReq - OnlineFlowVersionRequest
|
|
3015
4614
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3016
|
-
* @returns
|
|
4615
|
+
* @returns OnlineFlowVersionResponse
|
|
3017
4616
|
*/
|
|
3018
|
-
async
|
|
4617
|
+
async onlineFlowVersionWithOptions(tmpReq: $_model.OnlineFlowVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.OnlineFlowVersionResponse> {
|
|
3019
4618
|
tmpReq.validate();
|
|
3020
|
-
let request = new $_model.
|
|
4619
|
+
let request = new $_model.OnlineFlowVersionShrinkRequest({ });
|
|
3021
4620
|
OpenApiUtil.convert(tmpReq, request);
|
|
3022
|
-
if (!$dara.isNull(tmpReq.
|
|
3023
|
-
request.
|
|
4621
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
4622
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
3024
4623
|
}
|
|
3025
4624
|
|
|
3026
4625
|
let query = { };
|
|
3027
|
-
if (!$dara.isNull(request.
|
|
3028
|
-
query["
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
if (!$dara.isNull(request.address)) {
|
|
3032
|
-
query["Address"] = request.address;
|
|
4626
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
4627
|
+
query["BizCode"] = request.bizCode;
|
|
3033
4628
|
}
|
|
3034
4629
|
|
|
3035
|
-
if (!$dara.isNull(request.
|
|
3036
|
-
query["
|
|
4630
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
4631
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
3037
4632
|
}
|
|
3038
4633
|
|
|
3039
|
-
if (!$dara.isNull(request.
|
|
3040
|
-
query["
|
|
4634
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
4635
|
+
query["FlowCode"] = request.flowCode;
|
|
3041
4636
|
}
|
|
3042
4637
|
|
|
3043
|
-
if (!$dara.isNull(request.
|
|
3044
|
-
query["
|
|
4638
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
4639
|
+
query["FlowVersion"] = request.flowVersion;
|
|
3045
4640
|
}
|
|
3046
4641
|
|
|
3047
4642
|
if (!$dara.isNull(request.ownerId)) {
|
|
3048
4643
|
query["OwnerId"] = request.ownerId;
|
|
3049
4644
|
}
|
|
3050
4645
|
|
|
3051
|
-
if (!$dara.isNull(request.
|
|
3052
|
-
query["
|
|
3053
|
-
}
|
|
3054
|
-
|
|
3055
|
-
if (!$dara.isNull(request.profilePictureUrl)) {
|
|
3056
|
-
query["ProfilePictureUrl"] = request.profilePictureUrl;
|
|
4646
|
+
if (!$dara.isNull(request.remark)) {
|
|
4647
|
+
query["Remark"] = request.remark;
|
|
3057
4648
|
}
|
|
3058
4649
|
|
|
3059
4650
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
@@ -3064,19 +4655,11 @@ export default class Client extends OpenApi {
|
|
|
3064
4655
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3065
4656
|
}
|
|
3066
4657
|
|
|
3067
|
-
if (!$dara.isNull(request.vertical)) {
|
|
3068
|
-
query["Vertical"] = request.vertical;
|
|
3069
|
-
}
|
|
3070
|
-
|
|
3071
|
-
if (!$dara.isNull(request.websitesShrink)) {
|
|
3072
|
-
query["Websites"] = request.websitesShrink;
|
|
3073
|
-
}
|
|
3074
|
-
|
|
3075
4658
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3076
4659
|
query: OpenApiUtil.query(query),
|
|
3077
4660
|
});
|
|
3078
4661
|
let params = new $OpenApiUtil.Params({
|
|
3079
|
-
action: "
|
|
4662
|
+
action: "OnlineFlowVersion",
|
|
3080
4663
|
version: "2020-06-06",
|
|
3081
4664
|
protocol: "HTTPS",
|
|
3082
4665
|
pathname: "/",
|
|
@@ -3086,21 +4669,18 @@ export default class Client extends OpenApi {
|
|
|
3086
4669
|
reqBodyType: "formData",
|
|
3087
4670
|
bodyType: "json",
|
|
3088
4671
|
});
|
|
3089
|
-
return $dara.cast<$_model.
|
|
4672
|
+
return $dara.cast<$_model.OnlineFlowVersionResponse>(await this.callApi(params, req, runtime), new $_model.OnlineFlowVersionResponse({}));
|
|
3090
4673
|
}
|
|
3091
4674
|
|
|
3092
4675
|
/**
|
|
3093
|
-
*
|
|
3094
|
-
*
|
|
3095
|
-
* @remarks
|
|
3096
|
-
* ModifyPhoneBusinessProfile
|
|
4676
|
+
* Online Flow Version
|
|
3097
4677
|
*
|
|
3098
|
-
* @param request -
|
|
3099
|
-
* @returns
|
|
4678
|
+
* @param request - OnlineFlowVersionRequest
|
|
4679
|
+
* @returns OnlineFlowVersionResponse
|
|
3100
4680
|
*/
|
|
3101
|
-
async
|
|
4681
|
+
async onlineFlowVersion(request: $_model.OnlineFlowVersionRequest): Promise<$_model.OnlineFlowVersionResponse> {
|
|
3102
4682
|
let runtime = new $dara.RuntimeOptions({ });
|
|
3103
|
-
return await this.
|
|
4683
|
+
return await this.onlineFlowVersionWithOptions(request, runtime);
|
|
3104
4684
|
}
|
|
3105
4685
|
|
|
3106
4686
|
/**
|
|
@@ -3348,24 +4928,225 @@ export default class Client extends OpenApi {
|
|
|
3348
4928
|
*/
|
|
3349
4929
|
async queryPhoneBusinessProfile(request: $_model.QueryPhoneBusinessProfileRequest): Promise<$_model.QueryPhoneBusinessProfileResponse> {
|
|
3350
4930
|
let runtime = new $dara.RuntimeOptions({ });
|
|
3351
|
-
return await this.queryPhoneBusinessProfileWithOptions(request, runtime);
|
|
4931
|
+
return await this.queryPhoneBusinessProfileWithOptions(request, runtime);
|
|
4932
|
+
}
|
|
4933
|
+
|
|
4934
|
+
/**
|
|
4935
|
+
* Queries the business information about the WhatsApp Business account (WABA).
|
|
4936
|
+
*
|
|
4937
|
+
* @remarks
|
|
4938
|
+
* 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.
|
|
4939
|
+
*
|
|
4940
|
+
* @param request - QueryWabaBusinessInfoRequest
|
|
4941
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4942
|
+
* @returns QueryWabaBusinessInfoResponse
|
|
4943
|
+
*/
|
|
4944
|
+
async queryWabaBusinessInfoWithOptions(request: $_model.QueryWabaBusinessInfoRequest, runtime: $dara.RuntimeOptions): Promise<$_model.QueryWabaBusinessInfoResponse> {
|
|
4945
|
+
request.validate();
|
|
4946
|
+
let query = { };
|
|
4947
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
4948
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
4949
|
+
}
|
|
4950
|
+
|
|
4951
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
4952
|
+
query["OwnerId"] = request.ownerId;
|
|
4953
|
+
}
|
|
4954
|
+
|
|
4955
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
4956
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
4957
|
+
}
|
|
4958
|
+
|
|
4959
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
4960
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
4964
|
+
query["WabaId"] = request.wabaId;
|
|
4965
|
+
}
|
|
4966
|
+
|
|
4967
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4968
|
+
query: OpenApiUtil.query(query),
|
|
4969
|
+
});
|
|
4970
|
+
let params = new $OpenApiUtil.Params({
|
|
4971
|
+
action: "QueryWabaBusinessInfo",
|
|
4972
|
+
version: "2020-06-06",
|
|
4973
|
+
protocol: "HTTPS",
|
|
4974
|
+
pathname: "/",
|
|
4975
|
+
method: "POST",
|
|
4976
|
+
authType: "AK",
|
|
4977
|
+
style: "RPC",
|
|
4978
|
+
reqBodyType: "formData",
|
|
4979
|
+
bodyType: "json",
|
|
4980
|
+
});
|
|
4981
|
+
return $dara.cast<$_model.QueryWabaBusinessInfoResponse>(await this.callApi(params, req, runtime), new $_model.QueryWabaBusinessInfoResponse({}));
|
|
4982
|
+
}
|
|
4983
|
+
|
|
4984
|
+
/**
|
|
4985
|
+
* Queries the business information about the WhatsApp Business account (WABA).
|
|
4986
|
+
*
|
|
4987
|
+
* @remarks
|
|
4988
|
+
* 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.
|
|
4989
|
+
*
|
|
4990
|
+
* @param request - QueryWabaBusinessInfoRequest
|
|
4991
|
+
* @returns QueryWabaBusinessInfoResponse
|
|
4992
|
+
*/
|
|
4993
|
+
async queryWabaBusinessInfo(request: $_model.QueryWabaBusinessInfoRequest): Promise<$_model.QueryWabaBusinessInfoResponse> {
|
|
4994
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4995
|
+
return await this.queryWabaBusinessInfoWithOptions(request, runtime);
|
|
4996
|
+
}
|
|
4997
|
+
|
|
4998
|
+
/**
|
|
4999
|
+
* Retrieve Flow
|
|
5000
|
+
*
|
|
5001
|
+
* @param tmpReq - ReadChatFlowRequest
|
|
5002
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5003
|
+
* @returns ReadChatFlowResponse
|
|
5004
|
+
*/
|
|
5005
|
+
async readChatFlowWithOptions(tmpReq: $_model.ReadChatFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ReadChatFlowResponse> {
|
|
5006
|
+
tmpReq.validate();
|
|
5007
|
+
let request = new $_model.ReadChatFlowShrinkRequest({ });
|
|
5008
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
5009
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
5010
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
5011
|
+
}
|
|
5012
|
+
|
|
5013
|
+
let query = { };
|
|
5014
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
5015
|
+
query["BizCode"] = request.bizCode;
|
|
5016
|
+
}
|
|
5017
|
+
|
|
5018
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
5019
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
5020
|
+
}
|
|
5021
|
+
|
|
5022
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
5023
|
+
query["FlowCode"] = request.flowCode;
|
|
5024
|
+
}
|
|
5025
|
+
|
|
5026
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
5027
|
+
query["OwnerId"] = request.ownerId;
|
|
5028
|
+
}
|
|
5029
|
+
|
|
5030
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
5031
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5032
|
+
}
|
|
5033
|
+
|
|
5034
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
5035
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5039
|
+
query: OpenApiUtil.query(query),
|
|
5040
|
+
});
|
|
5041
|
+
let params = new $OpenApiUtil.Params({
|
|
5042
|
+
action: "ReadChatFlow",
|
|
5043
|
+
version: "2020-06-06",
|
|
5044
|
+
protocol: "HTTPS",
|
|
5045
|
+
pathname: "/",
|
|
5046
|
+
method: "POST",
|
|
5047
|
+
authType: "AK",
|
|
5048
|
+
style: "RPC",
|
|
5049
|
+
reqBodyType: "formData",
|
|
5050
|
+
bodyType: "json",
|
|
5051
|
+
});
|
|
5052
|
+
return $dara.cast<$_model.ReadChatFlowResponse>(await this.callApi(params, req, runtime), new $_model.ReadChatFlowResponse({}));
|
|
5053
|
+
}
|
|
5054
|
+
|
|
5055
|
+
/**
|
|
5056
|
+
* Retrieve Flow
|
|
5057
|
+
*
|
|
5058
|
+
* @param request - ReadChatFlowRequest
|
|
5059
|
+
* @returns ReadChatFlowResponse
|
|
5060
|
+
*/
|
|
5061
|
+
async readChatFlow(request: $_model.ReadChatFlowRequest): Promise<$_model.ReadChatFlowResponse> {
|
|
5062
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5063
|
+
return await this.readChatFlowWithOptions(request, runtime);
|
|
5064
|
+
}
|
|
5065
|
+
|
|
5066
|
+
/**
|
|
5067
|
+
* View chatFlow log settings
|
|
5068
|
+
*
|
|
5069
|
+
* @param request - ReadChatFlowLogSettingRequest
|
|
5070
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5071
|
+
* @returns ReadChatFlowLogSettingResponse
|
|
5072
|
+
*/
|
|
5073
|
+
async readChatFlowLogSettingWithOptions(request: $_model.ReadChatFlowLogSettingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ReadChatFlowLogSettingResponse> {
|
|
5074
|
+
request.validate();
|
|
5075
|
+
let query = { };
|
|
5076
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
5077
|
+
query["FlowCode"] = request.flowCode;
|
|
5078
|
+
}
|
|
5079
|
+
|
|
5080
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
5081
|
+
query["OwnerId"] = request.ownerId;
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5084
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
5085
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5086
|
+
}
|
|
5087
|
+
|
|
5088
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
5089
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5090
|
+
}
|
|
5091
|
+
|
|
5092
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5093
|
+
query: OpenApiUtil.query(query),
|
|
5094
|
+
});
|
|
5095
|
+
let params = new $OpenApiUtil.Params({
|
|
5096
|
+
action: "ReadChatFlowLogSetting",
|
|
5097
|
+
version: "2020-06-06",
|
|
5098
|
+
protocol: "HTTPS",
|
|
5099
|
+
pathname: "/",
|
|
5100
|
+
method: "POST",
|
|
5101
|
+
authType: "AK",
|
|
5102
|
+
style: "RPC",
|
|
5103
|
+
reqBodyType: "formData",
|
|
5104
|
+
bodyType: "json",
|
|
5105
|
+
});
|
|
5106
|
+
return $dara.cast<$_model.ReadChatFlowLogSettingResponse>(await this.callApi(params, req, runtime), new $_model.ReadChatFlowLogSettingResponse({}));
|
|
5107
|
+
}
|
|
5108
|
+
|
|
5109
|
+
/**
|
|
5110
|
+
* View chatFlow log settings
|
|
5111
|
+
*
|
|
5112
|
+
* @param request - ReadChatFlowLogSettingRequest
|
|
5113
|
+
* @returns ReadChatFlowLogSettingResponse
|
|
5114
|
+
*/
|
|
5115
|
+
async readChatFlowLogSetting(request: $_model.ReadChatFlowLogSettingRequest): Promise<$_model.ReadChatFlowLogSettingResponse> {
|
|
5116
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5117
|
+
return await this.readChatFlowLogSettingWithOptions(request, runtime);
|
|
3352
5118
|
}
|
|
3353
5119
|
|
|
3354
5120
|
/**
|
|
3355
|
-
*
|
|
3356
|
-
*
|
|
3357
|
-
* @remarks
|
|
3358
|
-
* 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.
|
|
5121
|
+
* Get Flow Version
|
|
3359
5122
|
*
|
|
3360
|
-
* @param
|
|
5123
|
+
* @param tmpReq - ReadFlowVersionRequest
|
|
3361
5124
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3362
|
-
* @returns
|
|
5125
|
+
* @returns ReadFlowVersionResponse
|
|
3363
5126
|
*/
|
|
3364
|
-
async
|
|
3365
|
-
|
|
5127
|
+
async readFlowVersionWithOptions(tmpReq: $_model.ReadFlowVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ReadFlowVersionResponse> {
|
|
5128
|
+
tmpReq.validate();
|
|
5129
|
+
let request = new $_model.ReadFlowVersionShrinkRequest({ });
|
|
5130
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
5131
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
5132
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
5133
|
+
}
|
|
5134
|
+
|
|
3366
5135
|
let query = { };
|
|
3367
|
-
if (!$dara.isNull(request.
|
|
3368
|
-
query["
|
|
5136
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
5137
|
+
query["BizCode"] = request.bizCode;
|
|
5138
|
+
}
|
|
5139
|
+
|
|
5140
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
5141
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
5142
|
+
}
|
|
5143
|
+
|
|
5144
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
5145
|
+
query["FlowCode"] = request.flowCode;
|
|
5146
|
+
}
|
|
5147
|
+
|
|
5148
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
5149
|
+
query["FlowVersion"] = request.flowVersion;
|
|
3369
5150
|
}
|
|
3370
5151
|
|
|
3371
5152
|
if (!$dara.isNull(request.ownerId)) {
|
|
@@ -3380,15 +5161,15 @@ export default class Client extends OpenApi {
|
|
|
3380
5161
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3381
5162
|
}
|
|
3382
5163
|
|
|
3383
|
-
if (!$dara.isNull(request.
|
|
3384
|
-
query["
|
|
5164
|
+
if (!$dara.isNull(request.status)) {
|
|
5165
|
+
query["Status"] = request.status;
|
|
3385
5166
|
}
|
|
3386
5167
|
|
|
3387
5168
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3388
5169
|
query: OpenApiUtil.query(query),
|
|
3389
5170
|
});
|
|
3390
5171
|
let params = new $OpenApiUtil.Params({
|
|
3391
|
-
action: "
|
|
5172
|
+
action: "ReadFlowVersion",
|
|
3392
5173
|
version: "2020-06-06",
|
|
3393
5174
|
protocol: "HTTPS",
|
|
3394
5175
|
pathname: "/",
|
|
@@ -3398,21 +5179,18 @@ export default class Client extends OpenApi {
|
|
|
3398
5179
|
reqBodyType: "formData",
|
|
3399
5180
|
bodyType: "json",
|
|
3400
5181
|
});
|
|
3401
|
-
return $dara.cast<$_model.
|
|
5182
|
+
return $dara.cast<$_model.ReadFlowVersionResponse>(await this.callApi(params, req, runtime), new $_model.ReadFlowVersionResponse({}));
|
|
3402
5183
|
}
|
|
3403
5184
|
|
|
3404
5185
|
/**
|
|
3405
|
-
*
|
|
3406
|
-
*
|
|
3407
|
-
* @remarks
|
|
3408
|
-
* 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.
|
|
5186
|
+
* Get Flow Version
|
|
3409
5187
|
*
|
|
3410
|
-
* @param request -
|
|
3411
|
-
* @returns
|
|
5188
|
+
* @param request - ReadFlowVersionRequest
|
|
5189
|
+
* @returns ReadFlowVersionResponse
|
|
3412
5190
|
*/
|
|
3413
|
-
async
|
|
5191
|
+
async readFlowVersion(request: $_model.ReadFlowVersionRequest): Promise<$_model.ReadFlowVersionResponse> {
|
|
3414
5192
|
let runtime = new $dara.RuntimeOptions({ });
|
|
3415
|
-
return await this.
|
|
5193
|
+
return await this.readFlowVersionWithOptions(request, runtime);
|
|
3416
5194
|
}
|
|
3417
5195
|
|
|
3418
5196
|
/**
|
|
@@ -3635,6 +5413,10 @@ export default class Client extends OpenApi {
|
|
|
3635
5413
|
body["ProductAction"] = request.productActionShrink;
|
|
3636
5414
|
}
|
|
3637
5415
|
|
|
5416
|
+
if (!$dara.isNull(request.recipientType)) {
|
|
5417
|
+
body["RecipientType"] = request.recipientType;
|
|
5418
|
+
}
|
|
5419
|
+
|
|
3638
5420
|
if (!$dara.isNull(request.tag)) {
|
|
3639
5421
|
body["Tag"] = request.tag;
|
|
3640
5422
|
}
|
|
@@ -3923,6 +5705,222 @@ export default class Client extends OpenApi {
|
|
|
3923
5705
|
return await this.updateAccountWebhookWithOptions(request, runtime);
|
|
3924
5706
|
}
|
|
3925
5707
|
|
|
5708
|
+
/**
|
|
5709
|
+
* Get Process
|
|
5710
|
+
*
|
|
5711
|
+
* @param tmpReq - UpdateChatFlowRequest
|
|
5712
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5713
|
+
* @returns UpdateChatFlowResponse
|
|
5714
|
+
*/
|
|
5715
|
+
async updateChatFlowWithOptions(tmpReq: $_model.UpdateChatFlowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateChatFlowResponse> {
|
|
5716
|
+
tmpReq.validate();
|
|
5717
|
+
let request = new $_model.UpdateChatFlowShrinkRequest({ });
|
|
5718
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
5719
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
5720
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
5721
|
+
}
|
|
5722
|
+
|
|
5723
|
+
let query = { };
|
|
5724
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
5725
|
+
query["BizCode"] = request.bizCode;
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5728
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
5729
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
5730
|
+
}
|
|
5731
|
+
|
|
5732
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
5733
|
+
query["FlowCode"] = request.flowCode;
|
|
5734
|
+
}
|
|
5735
|
+
|
|
5736
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
5737
|
+
query["OwnerId"] = request.ownerId;
|
|
5738
|
+
}
|
|
5739
|
+
|
|
5740
|
+
if (!$dara.isNull(request.remark)) {
|
|
5741
|
+
query["Remark"] = request.remark;
|
|
5742
|
+
}
|
|
5743
|
+
|
|
5744
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
5745
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5746
|
+
}
|
|
5747
|
+
|
|
5748
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
5749
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5750
|
+
}
|
|
5751
|
+
|
|
5752
|
+
if (!$dara.isNull(request.title)) {
|
|
5753
|
+
query["Title"] = request.title;
|
|
5754
|
+
}
|
|
5755
|
+
|
|
5756
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5757
|
+
query: OpenApiUtil.query(query),
|
|
5758
|
+
});
|
|
5759
|
+
let params = new $OpenApiUtil.Params({
|
|
5760
|
+
action: "UpdateChatFlow",
|
|
5761
|
+
version: "2020-06-06",
|
|
5762
|
+
protocol: "HTTPS",
|
|
5763
|
+
pathname: "/",
|
|
5764
|
+
method: "POST",
|
|
5765
|
+
authType: "AK",
|
|
5766
|
+
style: "RPC",
|
|
5767
|
+
reqBodyType: "formData",
|
|
5768
|
+
bodyType: "json",
|
|
5769
|
+
});
|
|
5770
|
+
return $dara.cast<$_model.UpdateChatFlowResponse>(await this.callApi(params, req, runtime), new $_model.UpdateChatFlowResponse({}));
|
|
5771
|
+
}
|
|
5772
|
+
|
|
5773
|
+
/**
|
|
5774
|
+
* Get Process
|
|
5775
|
+
*
|
|
5776
|
+
* @param request - UpdateChatFlowRequest
|
|
5777
|
+
* @returns UpdateChatFlowResponse
|
|
5778
|
+
*/
|
|
5779
|
+
async updateChatFlow(request: $_model.UpdateChatFlowRequest): Promise<$_model.UpdateChatFlowResponse> {
|
|
5780
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5781
|
+
return await this.updateChatFlowWithOptions(request, runtime);
|
|
5782
|
+
}
|
|
5783
|
+
|
|
5784
|
+
/**
|
|
5785
|
+
* Modify chatFlow log settings
|
|
5786
|
+
*
|
|
5787
|
+
* @param request - UpdateChatFlowLogSettingRequest
|
|
5788
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5789
|
+
* @returns UpdateChatFlowLogSettingResponse
|
|
5790
|
+
*/
|
|
5791
|
+
async updateChatFlowLogSettingWithOptions(request: $_model.UpdateChatFlowLogSettingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateChatFlowLogSettingResponse> {
|
|
5792
|
+
request.validate();
|
|
5793
|
+
let query = { };
|
|
5794
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
5795
|
+
query["FlowCode"] = request.flowCode;
|
|
5796
|
+
}
|
|
5797
|
+
|
|
5798
|
+
if (!$dara.isNull(request.id)) {
|
|
5799
|
+
query["Id"] = request.id;
|
|
5800
|
+
}
|
|
5801
|
+
|
|
5802
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
5803
|
+
query["OwnerId"] = request.ownerId;
|
|
5804
|
+
}
|
|
5805
|
+
|
|
5806
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
5807
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5808
|
+
}
|
|
5809
|
+
|
|
5810
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
5811
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5812
|
+
}
|
|
5813
|
+
|
|
5814
|
+
if (!$dara.isNull(request.status)) {
|
|
5815
|
+
query["Status"] = request.status;
|
|
5816
|
+
}
|
|
5817
|
+
|
|
5818
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5819
|
+
query: OpenApiUtil.query(query),
|
|
5820
|
+
});
|
|
5821
|
+
let params = new $OpenApiUtil.Params({
|
|
5822
|
+
action: "UpdateChatFlowLogSetting",
|
|
5823
|
+
version: "2020-06-06",
|
|
5824
|
+
protocol: "HTTPS",
|
|
5825
|
+
pathname: "/",
|
|
5826
|
+
method: "POST",
|
|
5827
|
+
authType: "AK",
|
|
5828
|
+
style: "RPC",
|
|
5829
|
+
reqBodyType: "formData",
|
|
5830
|
+
bodyType: "json",
|
|
5831
|
+
});
|
|
5832
|
+
return $dara.cast<$_model.UpdateChatFlowLogSettingResponse>(await this.callApi(params, req, runtime), new $_model.UpdateChatFlowLogSettingResponse({}));
|
|
5833
|
+
}
|
|
5834
|
+
|
|
5835
|
+
/**
|
|
5836
|
+
* Modify chatFlow log settings
|
|
5837
|
+
*
|
|
5838
|
+
* @param request - UpdateChatFlowLogSettingRequest
|
|
5839
|
+
* @returns UpdateChatFlowLogSettingResponse
|
|
5840
|
+
*/
|
|
5841
|
+
async updateChatFlowLogSetting(request: $_model.UpdateChatFlowLogSettingRequest): Promise<$_model.UpdateChatFlowLogSettingResponse> {
|
|
5842
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5843
|
+
return await this.updateChatFlowLogSettingWithOptions(request, runtime);
|
|
5844
|
+
}
|
|
5845
|
+
|
|
5846
|
+
/**
|
|
5847
|
+
* UpdateChatGroup
|
|
5848
|
+
*
|
|
5849
|
+
* @param request - UpdateChatGroupRequest
|
|
5850
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5851
|
+
* @returns UpdateChatGroupResponse
|
|
5852
|
+
*/
|
|
5853
|
+
async updateChatGroupWithOptions(request: $_model.UpdateChatGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateChatGroupResponse> {
|
|
5854
|
+
request.validate();
|
|
5855
|
+
let query = { };
|
|
5856
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
5857
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
if (!$dara.isNull(request.channelType)) {
|
|
5861
|
+
query["ChannelType"] = request.channelType;
|
|
5862
|
+
}
|
|
5863
|
+
|
|
5864
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
5865
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
5866
|
+
}
|
|
5867
|
+
|
|
5868
|
+
if (!$dara.isNull(request.description)) {
|
|
5869
|
+
query["Description"] = request.description;
|
|
5870
|
+
}
|
|
5871
|
+
|
|
5872
|
+
if (!$dara.isNull(request.groupId)) {
|
|
5873
|
+
query["GroupId"] = request.groupId;
|
|
5874
|
+
}
|
|
5875
|
+
|
|
5876
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
5877
|
+
query["OwnerId"] = request.ownerId;
|
|
5878
|
+
}
|
|
5879
|
+
|
|
5880
|
+
if (!$dara.isNull(request.profilePictureFile)) {
|
|
5881
|
+
query["ProfilePictureFile"] = request.profilePictureFile;
|
|
5882
|
+
}
|
|
5883
|
+
|
|
5884
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
5885
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5886
|
+
}
|
|
5887
|
+
|
|
5888
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
5889
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5890
|
+
}
|
|
5891
|
+
|
|
5892
|
+
if (!$dara.isNull(request.subject)) {
|
|
5893
|
+
query["Subject"] = request.subject;
|
|
5894
|
+
}
|
|
5895
|
+
|
|
5896
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5897
|
+
query: OpenApiUtil.query(query),
|
|
5898
|
+
});
|
|
5899
|
+
let params = new $OpenApiUtil.Params({
|
|
5900
|
+
action: "UpdateChatGroup",
|
|
5901
|
+
version: "2020-06-06",
|
|
5902
|
+
protocol: "HTTPS",
|
|
5903
|
+
pathname: "/",
|
|
5904
|
+
method: "POST",
|
|
5905
|
+
authType: "AK",
|
|
5906
|
+
style: "RPC",
|
|
5907
|
+
reqBodyType: "formData",
|
|
5908
|
+
bodyType: "json",
|
|
5909
|
+
});
|
|
5910
|
+
return $dara.cast<$_model.UpdateChatGroupResponse>(await this.callApi(params, req, runtime), new $_model.UpdateChatGroupResponse({}));
|
|
5911
|
+
}
|
|
5912
|
+
|
|
5913
|
+
/**
|
|
5914
|
+
* UpdateChatGroup
|
|
5915
|
+
*
|
|
5916
|
+
* @param request - UpdateChatGroupRequest
|
|
5917
|
+
* @returns UpdateChatGroupResponse
|
|
5918
|
+
*/
|
|
5919
|
+
async updateChatGroup(request: $_model.UpdateChatGroupRequest): Promise<$_model.UpdateChatGroupResponse> {
|
|
5920
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5921
|
+
return await this.updateChatGroupWithOptions(request, runtime);
|
|
5922
|
+
}
|
|
5923
|
+
|
|
3926
5924
|
/**
|
|
3927
5925
|
* Modifies the business settings of a phone number.
|
|
3928
5926
|
*
|
|
@@ -4135,6 +6133,86 @@ export default class Client extends OpenApi {
|
|
|
4135
6133
|
return await this.updateFlowJSONAssetWithOptions(request, runtime);
|
|
4136
6134
|
}
|
|
4137
6135
|
|
|
6136
|
+
/**
|
|
6137
|
+
* Update flow version, used for updating the flow DSL on the canvas
|
|
6138
|
+
*
|
|
6139
|
+
* @param tmpReq - UpdateFlowVersionRequest
|
|
6140
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6141
|
+
* @returns UpdateFlowVersionResponse
|
|
6142
|
+
*/
|
|
6143
|
+
async updateFlowVersionWithOptions(tmpReq: $_model.UpdateFlowVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateFlowVersionResponse> {
|
|
6144
|
+
tmpReq.validate();
|
|
6145
|
+
let request = new $_model.UpdateFlowVersionShrinkRequest({ });
|
|
6146
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
6147
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
6148
|
+
request.bizExtendShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
6149
|
+
}
|
|
6150
|
+
|
|
6151
|
+
let query = { };
|
|
6152
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
6153
|
+
query["BizCode"] = request.bizCode;
|
|
6154
|
+
}
|
|
6155
|
+
|
|
6156
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
6157
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6160
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
6161
|
+
query["FlowCode"] = request.flowCode;
|
|
6162
|
+
}
|
|
6163
|
+
|
|
6164
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
6165
|
+
query["FlowVersion"] = request.flowVersion;
|
|
6166
|
+
}
|
|
6167
|
+
|
|
6168
|
+
if (!$dara.isNull(request.flowViewModel)) {
|
|
6169
|
+
query["FlowViewModel"] = request.flowViewModel;
|
|
6170
|
+
}
|
|
6171
|
+
|
|
6172
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
6173
|
+
query["OwnerId"] = request.ownerId;
|
|
6174
|
+
}
|
|
6175
|
+
|
|
6176
|
+
if (!$dara.isNull(request.remark)) {
|
|
6177
|
+
query["Remark"] = request.remark;
|
|
6178
|
+
}
|
|
6179
|
+
|
|
6180
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
6181
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
6182
|
+
}
|
|
6183
|
+
|
|
6184
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
6185
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
6186
|
+
}
|
|
6187
|
+
|
|
6188
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
6189
|
+
query: OpenApiUtil.query(query),
|
|
6190
|
+
});
|
|
6191
|
+
let params = new $OpenApiUtil.Params({
|
|
6192
|
+
action: "UpdateFlowVersion",
|
|
6193
|
+
version: "2020-06-06",
|
|
6194
|
+
protocol: "HTTPS",
|
|
6195
|
+
pathname: "/",
|
|
6196
|
+
method: "POST",
|
|
6197
|
+
authType: "AK",
|
|
6198
|
+
style: "RPC",
|
|
6199
|
+
reqBodyType: "formData",
|
|
6200
|
+
bodyType: "json",
|
|
6201
|
+
});
|
|
6202
|
+
return $dara.cast<$_model.UpdateFlowVersionResponse>(await this.callApi(params, req, runtime), new $_model.UpdateFlowVersionResponse({}));
|
|
6203
|
+
}
|
|
6204
|
+
|
|
6205
|
+
/**
|
|
6206
|
+
* Update flow version, used for updating the flow DSL on the canvas
|
|
6207
|
+
*
|
|
6208
|
+
* @param request - UpdateFlowVersionRequest
|
|
6209
|
+
* @returns UpdateFlowVersionResponse
|
|
6210
|
+
*/
|
|
6211
|
+
async updateFlowVersion(request: $_model.UpdateFlowVersionRequest): Promise<$_model.UpdateFlowVersionResponse> {
|
|
6212
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
6213
|
+
return await this.updateFlowVersionWithOptions(request, runtime);
|
|
6214
|
+
}
|
|
6215
|
+
|
|
4138
6216
|
/**
|
|
4139
6217
|
* Updates the encryption public key of a phone number.
|
|
4140
6218
|
*
|