@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/dist/client.js
CHANGED
|
@@ -62,44 +62,44 @@ class Client extends openapi_core_1.default {
|
|
|
62
62
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* AddChatGroup
|
|
66
66
|
*
|
|
67
|
-
* @param request -
|
|
67
|
+
* @param request - AddChatGroupRequest
|
|
68
68
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
69
|
-
* @returns
|
|
69
|
+
* @returns AddChatGroupResponse
|
|
70
70
|
*/
|
|
71
|
-
async
|
|
71
|
+
async addChatGroupWithOptions(request, runtime) {
|
|
72
72
|
request.validate();
|
|
73
73
|
let query = {};
|
|
74
|
-
if (!$dara.isNull(request.
|
|
75
|
-
query["
|
|
74
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
75
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
76
|
+
}
|
|
77
|
+
if (!$dara.isNull(request.channelType)) {
|
|
78
|
+
query["ChannelType"] = request.channelType;
|
|
76
79
|
}
|
|
77
80
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
78
81
|
query["CustSpaceId"] = request.custSpaceId;
|
|
79
82
|
}
|
|
83
|
+
if (!$dara.isNull(request.description)) {
|
|
84
|
+
query["Description"] = request.description;
|
|
85
|
+
}
|
|
80
86
|
if (!$dara.isNull(request.ownerId)) {
|
|
81
87
|
query["OwnerId"] = request.ownerId;
|
|
82
88
|
}
|
|
83
|
-
if (!$dara.isNull(request.phoneNumber)) {
|
|
84
|
-
query["PhoneNumber"] = request.phoneNumber;
|
|
85
|
-
}
|
|
86
|
-
if (!$dara.isNull(request.preValidateId)) {
|
|
87
|
-
query["PreValidateId"] = request.preValidateId;
|
|
88
|
-
}
|
|
89
89
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
90
90
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
91
91
|
}
|
|
92
92
|
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
93
93
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
94
94
|
}
|
|
95
|
-
if (!$dara.isNull(request.
|
|
96
|
-
query["
|
|
95
|
+
if (!$dara.isNull(request.subject)) {
|
|
96
|
+
query["Subject"] = request.subject;
|
|
97
97
|
}
|
|
98
98
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
99
99
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
100
100
|
});
|
|
101
101
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
102
|
-
action: "
|
|
102
|
+
action: "AddChatGroup",
|
|
103
103
|
version: "2020-06-06",
|
|
104
104
|
protocol: "HTTPS",
|
|
105
105
|
pathname: "/",
|
|
@@ -109,62 +109,54 @@ class Client extends openapi_core_1.default {
|
|
|
109
109
|
reqBodyType: "formData",
|
|
110
110
|
bodyType: "json",
|
|
111
111
|
});
|
|
112
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
112
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddChatGroupResponse({}));
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* AddChatGroup
|
|
116
116
|
*
|
|
117
|
-
* @param request -
|
|
118
|
-
* @returns
|
|
117
|
+
* @param request - AddChatGroupRequest
|
|
118
|
+
* @returns AddChatGroupResponse
|
|
119
119
|
*/
|
|
120
|
-
async
|
|
120
|
+
async addChatGroup(request) {
|
|
121
121
|
let runtime = new $dara.RuntimeOptions({});
|
|
122
|
-
return await this.
|
|
122
|
+
return await this.addChatGroupWithOptions(request, runtime);
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* @remarks
|
|
128
|
-
* 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.
|
|
125
|
+
* AddChatGroupInviteLink
|
|
129
126
|
*
|
|
130
|
-
* @param
|
|
127
|
+
* @param request - AddChatGroupInviteLinkRequest
|
|
131
128
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
132
|
-
* @returns
|
|
129
|
+
* @returns AddChatGroupInviteLinkResponse
|
|
133
130
|
*/
|
|
134
|
-
async
|
|
135
|
-
|
|
136
|
-
let
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
request.perspectiveShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
|
|
131
|
+
async addChatGroupInviteLinkWithOptions(request, runtime) {
|
|
132
|
+
request.validate();
|
|
133
|
+
let query = {};
|
|
134
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
135
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
140
136
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
body["ChatBotInstanceId"] = request.chatBotInstanceId;
|
|
137
|
+
if (!$dara.isNull(request.channelType)) {
|
|
138
|
+
query["ChannelType"] = request.channelType;
|
|
144
139
|
}
|
|
145
140
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
if (!$dara.isNull(request.isvCode)) {
|
|
149
|
-
body["IsvCode"] = request.isvCode;
|
|
141
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
150
142
|
}
|
|
151
|
-
if (!$dara.isNull(request.
|
|
152
|
-
|
|
143
|
+
if (!$dara.isNull(request.groupId)) {
|
|
144
|
+
query["GroupId"] = request.groupId;
|
|
153
145
|
}
|
|
154
|
-
if (!$dara.isNull(request.
|
|
155
|
-
|
|
146
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
147
|
+
query["OwnerId"] = request.ownerId;
|
|
156
148
|
}
|
|
157
|
-
if (!$dara.isNull(request.
|
|
158
|
-
|
|
149
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
150
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
159
151
|
}
|
|
160
|
-
if (!$dara.isNull(request.
|
|
161
|
-
|
|
152
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
153
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
162
154
|
}
|
|
163
155
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
164
|
-
|
|
156
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
165
157
|
});
|
|
166
158
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
167
|
-
action: "
|
|
159
|
+
action: "AddChatGroupInviteLink",
|
|
168
160
|
version: "2020-06-06",
|
|
169
161
|
protocol: "HTTPS",
|
|
170
162
|
pathname: "/",
|
|
@@ -174,80 +166,57 @@ class Client extends openapi_core_1.default {
|
|
|
174
166
|
reqBodyType: "formData",
|
|
175
167
|
bodyType: "json",
|
|
176
168
|
});
|
|
177
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
169
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddChatGroupInviteLinkResponse({}));
|
|
178
170
|
}
|
|
179
171
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* @remarks
|
|
183
|
-
* 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.
|
|
172
|
+
* AddChatGroupInviteLink
|
|
184
173
|
*
|
|
185
|
-
* @param request -
|
|
186
|
-
* @returns
|
|
174
|
+
* @param request - AddChatGroupInviteLinkRequest
|
|
175
|
+
* @returns AddChatGroupInviteLinkResponse
|
|
187
176
|
*/
|
|
188
|
-
async
|
|
177
|
+
async addChatGroupInviteLink(request) {
|
|
189
178
|
let runtime = new $dara.RuntimeOptions({});
|
|
190
|
-
return await this.
|
|
179
|
+
return await this.addChatGroupInviteLinkWithOptions(request, runtime);
|
|
191
180
|
}
|
|
192
181
|
/**
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
* @remarks
|
|
196
|
-
* The ID of the session.
|
|
182
|
+
* Adds a phone number for a WhatsApp Business account (WABA).
|
|
197
183
|
*
|
|
198
|
-
* @param
|
|
184
|
+
* @param request - AddChatappPhoneNumberRequest
|
|
199
185
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
200
|
-
* @returns
|
|
186
|
+
* @returns AddChatappPhoneNumberResponse
|
|
201
187
|
*/
|
|
202
|
-
async
|
|
203
|
-
|
|
204
|
-
let
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
request.perspectiveShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
|
|
208
|
-
}
|
|
209
|
-
if (!$dara.isNull(tmpReq.vendorParam)) {
|
|
210
|
-
request.vendorParamShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.vendorParam, "VendorParam", "json");
|
|
211
|
-
}
|
|
212
|
-
let body = {};
|
|
213
|
-
if (!$dara.isNull(request.chatBotInstanceId)) {
|
|
214
|
-
body["ChatBotInstanceId"] = request.chatBotInstanceId;
|
|
188
|
+
async addChatappPhoneNumberWithOptions(request, runtime) {
|
|
189
|
+
request.validate();
|
|
190
|
+
let query = {};
|
|
191
|
+
if (!$dara.isNull(request.cc)) {
|
|
192
|
+
query["Cc"] = request.cc;
|
|
215
193
|
}
|
|
216
194
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
if (!$dara.isNull(request.intentName)) {
|
|
220
|
-
body["IntentName"] = request.intentName;
|
|
221
|
-
}
|
|
222
|
-
if (!$dara.isNull(request.isvCode)) {
|
|
223
|
-
body["IsvCode"] = request.isvCode;
|
|
224
|
-
}
|
|
225
|
-
if (!$dara.isNull(request.knowledgeId)) {
|
|
226
|
-
body["KnowledgeId"] = request.knowledgeId;
|
|
195
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
227
196
|
}
|
|
228
|
-
if (!$dara.isNull(request.
|
|
229
|
-
|
|
197
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
198
|
+
query["OwnerId"] = request.ownerId;
|
|
230
199
|
}
|
|
231
|
-
if (!$dara.isNull(request.
|
|
232
|
-
|
|
200
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
201
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
233
202
|
}
|
|
234
|
-
if (!$dara.isNull(request.
|
|
235
|
-
|
|
203
|
+
if (!$dara.isNull(request.preValidateId)) {
|
|
204
|
+
query["PreValidateId"] = request.preValidateId;
|
|
236
205
|
}
|
|
237
|
-
if (!$dara.isNull(request.
|
|
238
|
-
|
|
206
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
207
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
239
208
|
}
|
|
240
|
-
if (!$dara.isNull(request.
|
|
241
|
-
|
|
209
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
210
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
242
211
|
}
|
|
243
|
-
if (!$dara.isNull(request.
|
|
244
|
-
|
|
212
|
+
if (!$dara.isNull(request.verifiedName)) {
|
|
213
|
+
query["VerifiedName"] = request.verifiedName;
|
|
245
214
|
}
|
|
246
215
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
247
|
-
|
|
216
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
248
217
|
});
|
|
249
218
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
250
|
-
action: "
|
|
219
|
+
action: "AddChatappPhoneNumber",
|
|
251
220
|
version: "2020-06-06",
|
|
252
221
|
protocol: "HTTPS",
|
|
253
222
|
pathname: "/",
|
|
@@ -257,20 +226,17 @@ class Client extends openapi_core_1.default {
|
|
|
257
226
|
reqBodyType: "formData",
|
|
258
227
|
bodyType: "json",
|
|
259
228
|
});
|
|
260
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
229
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddChatappPhoneNumberResponse({}));
|
|
261
230
|
}
|
|
262
231
|
/**
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
* @remarks
|
|
266
|
-
* The ID of the session.
|
|
232
|
+
* Adds a phone number for a WhatsApp Business account (WABA).
|
|
267
233
|
*
|
|
268
|
-
* @param request -
|
|
269
|
-
* @returns
|
|
234
|
+
* @param request - AddChatappPhoneNumberRequest
|
|
235
|
+
* @returns AddChatappPhoneNumberResponse
|
|
270
236
|
*/
|
|
271
|
-
async
|
|
237
|
+
async addChatappPhoneNumber(request) {
|
|
272
238
|
let runtime = new $dara.RuntimeOptions({});
|
|
273
|
-
return await this.
|
|
239
|
+
return await this.addChatappPhoneNumberWithOptions(request, runtime);
|
|
274
240
|
}
|
|
275
241
|
/**
|
|
276
242
|
* Binds the WhatsApp Business account with ChatApp.
|
|
@@ -689,6 +655,184 @@ class Client extends openapi_core_1.default {
|
|
|
689
655
|
let runtime = new $dara.RuntimeOptions({});
|
|
690
656
|
return await this.chatappVerifyAndRegisterWithOptions(request, runtime);
|
|
691
657
|
}
|
|
658
|
+
/**
|
|
659
|
+
* Create Chatflow
|
|
660
|
+
*
|
|
661
|
+
* @param tmpReq - CreateChatFlowRequest
|
|
662
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
663
|
+
* @returns CreateChatFlowResponse
|
|
664
|
+
*/
|
|
665
|
+
async createChatFlowWithOptions(tmpReq, runtime) {
|
|
666
|
+
tmpReq.validate();
|
|
667
|
+
let request = new $_model.CreateChatFlowShrinkRequest({});
|
|
668
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
669
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
670
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
671
|
+
}
|
|
672
|
+
let query = {};
|
|
673
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
674
|
+
query["BizCode"] = request.bizCode;
|
|
675
|
+
}
|
|
676
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
677
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
678
|
+
}
|
|
679
|
+
if (!$dara.isNull(request.flowTriggerType)) {
|
|
680
|
+
query["FlowTriggerType"] = request.flowTriggerType;
|
|
681
|
+
}
|
|
682
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
683
|
+
query["OwnerId"] = request.ownerId;
|
|
684
|
+
}
|
|
685
|
+
if (!$dara.isNull(request.remark)) {
|
|
686
|
+
query["Remark"] = request.remark;
|
|
687
|
+
}
|
|
688
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
689
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
690
|
+
}
|
|
691
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
692
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
693
|
+
}
|
|
694
|
+
if (!$dara.isNull(request.title)) {
|
|
695
|
+
query["Title"] = request.title;
|
|
696
|
+
}
|
|
697
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
698
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
699
|
+
});
|
|
700
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
701
|
+
action: "CreateChatFlow",
|
|
702
|
+
version: "2020-06-06",
|
|
703
|
+
protocol: "HTTPS",
|
|
704
|
+
pathname: "/",
|
|
705
|
+
method: "POST",
|
|
706
|
+
authType: "AK",
|
|
707
|
+
style: "RPC",
|
|
708
|
+
reqBodyType: "formData",
|
|
709
|
+
bodyType: "json",
|
|
710
|
+
});
|
|
711
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatFlowResponse({}));
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Create Chatflow
|
|
715
|
+
*
|
|
716
|
+
* @param request - CreateChatFlowRequest
|
|
717
|
+
* @returns CreateChatFlowResponse
|
|
718
|
+
*/
|
|
719
|
+
async createChatFlow(request) {
|
|
720
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
721
|
+
return await this.createChatFlowWithOptions(request, runtime);
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Import and create flow
|
|
725
|
+
*
|
|
726
|
+
* @param tmpReq - CreateChatFlowByImportRequest
|
|
727
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
728
|
+
* @returns CreateChatFlowByImportResponse
|
|
729
|
+
*/
|
|
730
|
+
async createChatFlowByImportWithOptions(tmpReq, runtime) {
|
|
731
|
+
tmpReq.validate();
|
|
732
|
+
let request = new $_model.CreateChatFlowByImportShrinkRequest({});
|
|
733
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
734
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
735
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
736
|
+
}
|
|
737
|
+
let query = {};
|
|
738
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
739
|
+
query["BizCode"] = request.bizCode;
|
|
740
|
+
}
|
|
741
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
742
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
743
|
+
}
|
|
744
|
+
if (!$dara.isNull(request.flowViewModel)) {
|
|
745
|
+
query["FlowViewModel"] = request.flowViewModel;
|
|
746
|
+
}
|
|
747
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
748
|
+
query["OwnerId"] = request.ownerId;
|
|
749
|
+
}
|
|
750
|
+
if (!$dara.isNull(request.remark)) {
|
|
751
|
+
query["Remark"] = request.remark;
|
|
752
|
+
}
|
|
753
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
754
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
755
|
+
}
|
|
756
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
757
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
758
|
+
}
|
|
759
|
+
if (!$dara.isNull(request.title)) {
|
|
760
|
+
query["Title"] = request.title;
|
|
761
|
+
}
|
|
762
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
763
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
764
|
+
});
|
|
765
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
766
|
+
action: "CreateChatFlowByImport",
|
|
767
|
+
version: "2020-06-06",
|
|
768
|
+
protocol: "HTTPS",
|
|
769
|
+
pathname: "/",
|
|
770
|
+
method: "POST",
|
|
771
|
+
authType: "AK",
|
|
772
|
+
style: "RPC",
|
|
773
|
+
reqBodyType: "formData",
|
|
774
|
+
bodyType: "json",
|
|
775
|
+
});
|
|
776
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatFlowByImportResponse({}));
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Import and create flow
|
|
780
|
+
*
|
|
781
|
+
* @param request - CreateChatFlowByImportRequest
|
|
782
|
+
* @returns CreateChatFlowByImportResponse
|
|
783
|
+
*/
|
|
784
|
+
async createChatFlowByImport(request) {
|
|
785
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
786
|
+
return await this.createChatFlowByImportWithOptions(request, runtime);
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Create chatFlow log setting
|
|
790
|
+
*
|
|
791
|
+
* @param request - CreateChatFlowLogSettingRequest
|
|
792
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
793
|
+
* @returns CreateChatFlowLogSettingResponse
|
|
794
|
+
*/
|
|
795
|
+
async createChatFlowLogSettingWithOptions(request, runtime) {
|
|
796
|
+
request.validate();
|
|
797
|
+
let query = {};
|
|
798
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
799
|
+
query["FlowCode"] = request.flowCode;
|
|
800
|
+
}
|
|
801
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
802
|
+
query["OwnerId"] = request.ownerId;
|
|
803
|
+
}
|
|
804
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
805
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
806
|
+
}
|
|
807
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
808
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
809
|
+
}
|
|
810
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
811
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
812
|
+
});
|
|
813
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
814
|
+
action: "CreateChatFlowLogSetting",
|
|
815
|
+
version: "2020-06-06",
|
|
816
|
+
protocol: "HTTPS",
|
|
817
|
+
pathname: "/",
|
|
818
|
+
method: "POST",
|
|
819
|
+
authType: "AK",
|
|
820
|
+
style: "RPC",
|
|
821
|
+
reqBodyType: "formData",
|
|
822
|
+
bodyType: "json",
|
|
823
|
+
});
|
|
824
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatFlowLogSettingResponse({}));
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Create chatFlow log setting
|
|
828
|
+
*
|
|
829
|
+
* @param request - CreateChatFlowLogSettingRequest
|
|
830
|
+
* @returns CreateChatFlowLogSettingResponse
|
|
831
|
+
*/
|
|
832
|
+
async createChatFlowLogSetting(request) {
|
|
833
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
834
|
+
return await this.createChatFlowLogSettingWithOptions(request, runtime);
|
|
835
|
+
}
|
|
692
836
|
/**
|
|
693
837
|
* The ID of the number.
|
|
694
838
|
*
|
|
@@ -888,6 +1032,71 @@ class Client extends openapi_core_1.default {
|
|
|
888
1032
|
let runtime = new $dara.RuntimeOptions({});
|
|
889
1033
|
return await this.createFlowWithOptions(request, runtime);
|
|
890
1034
|
}
|
|
1035
|
+
/**
|
|
1036
|
+
* CreateFlowVersion
|
|
1037
|
+
*
|
|
1038
|
+
* @param tmpReq - CreateFlowVersionRequest
|
|
1039
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1040
|
+
* @returns CreateFlowVersionResponse
|
|
1041
|
+
*/
|
|
1042
|
+
async createFlowVersionWithOptions(tmpReq, runtime) {
|
|
1043
|
+
tmpReq.validate();
|
|
1044
|
+
let request = new $_model.CreateFlowVersionShrinkRequest({});
|
|
1045
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1046
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
1047
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
1048
|
+
}
|
|
1049
|
+
let query = {};
|
|
1050
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
1051
|
+
query["BizCode"] = request.bizCode;
|
|
1052
|
+
}
|
|
1053
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
1054
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
1055
|
+
}
|
|
1056
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1057
|
+
query["FlowCode"] = request.flowCode;
|
|
1058
|
+
}
|
|
1059
|
+
if (!$dara.isNull(request.flowVersionCopyFrom)) {
|
|
1060
|
+
query["FlowVersionCopyFrom"] = request.flowVersionCopyFrom;
|
|
1061
|
+
}
|
|
1062
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1063
|
+
query["OwnerId"] = request.ownerId;
|
|
1064
|
+
}
|
|
1065
|
+
if (!$dara.isNull(request.remark)) {
|
|
1066
|
+
query["Remark"] = request.remark;
|
|
1067
|
+
}
|
|
1068
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1069
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1070
|
+
}
|
|
1071
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1072
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1073
|
+
}
|
|
1074
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1075
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1076
|
+
});
|
|
1077
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1078
|
+
action: "CreateFlowVersion",
|
|
1079
|
+
version: "2020-06-06",
|
|
1080
|
+
protocol: "HTTPS",
|
|
1081
|
+
pathname: "/",
|
|
1082
|
+
method: "POST",
|
|
1083
|
+
authType: "AK",
|
|
1084
|
+
style: "RPC",
|
|
1085
|
+
reqBodyType: "formData",
|
|
1086
|
+
bodyType: "json",
|
|
1087
|
+
});
|
|
1088
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateFlowVersionResponse({}));
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
* CreateFlowVersion
|
|
1092
|
+
*
|
|
1093
|
+
* @param request - CreateFlowVersionRequest
|
|
1094
|
+
* @returns CreateFlowVersionResponse
|
|
1095
|
+
*/
|
|
1096
|
+
async createFlowVersion(request) {
|
|
1097
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1098
|
+
return await this.createFlowVersionWithOptions(request, runtime);
|
|
1099
|
+
}
|
|
891
1100
|
/**
|
|
892
1101
|
* Creates a quick-response (QR) code that contains a message.
|
|
893
1102
|
*
|
|
@@ -936,6 +1145,244 @@ class Client extends openapi_core_1.default {
|
|
|
936
1145
|
let runtime = new $dara.RuntimeOptions({});
|
|
937
1146
|
return await this.createPhoneMessageQrdlWithOptions(request, runtime);
|
|
938
1147
|
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Delete Process
|
|
1150
|
+
*
|
|
1151
|
+
* @param tmpReq - DeleteChatFlowRequest
|
|
1152
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1153
|
+
* @returns DeleteChatFlowResponse
|
|
1154
|
+
*/
|
|
1155
|
+
async deleteChatFlowWithOptions(tmpReq, runtime) {
|
|
1156
|
+
tmpReq.validate();
|
|
1157
|
+
let request = new $_model.DeleteChatFlowShrinkRequest({});
|
|
1158
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1159
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
1160
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
1161
|
+
}
|
|
1162
|
+
let query = {};
|
|
1163
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
1164
|
+
query["BizCode"] = request.bizCode;
|
|
1165
|
+
}
|
|
1166
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
1167
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
1168
|
+
}
|
|
1169
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1170
|
+
query["FlowCode"] = request.flowCode;
|
|
1171
|
+
}
|
|
1172
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1173
|
+
query["OwnerId"] = request.ownerId;
|
|
1174
|
+
}
|
|
1175
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1176
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1177
|
+
}
|
|
1178
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1179
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1180
|
+
}
|
|
1181
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1182
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1183
|
+
});
|
|
1184
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1185
|
+
action: "DeleteChatFlow",
|
|
1186
|
+
version: "2020-06-06",
|
|
1187
|
+
protocol: "HTTPS",
|
|
1188
|
+
pathname: "/",
|
|
1189
|
+
method: "POST",
|
|
1190
|
+
authType: "AK",
|
|
1191
|
+
style: "RPC",
|
|
1192
|
+
reqBodyType: "formData",
|
|
1193
|
+
bodyType: "json",
|
|
1194
|
+
});
|
|
1195
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatFlowResponse({}));
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
* Delete Process
|
|
1199
|
+
*
|
|
1200
|
+
* @param request - DeleteChatFlowRequest
|
|
1201
|
+
* @returns DeleteChatFlowResponse
|
|
1202
|
+
*/
|
|
1203
|
+
async deleteChatFlow(request) {
|
|
1204
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1205
|
+
return await this.deleteChatFlowWithOptions(request, runtime);
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* DeleteChatGroup
|
|
1209
|
+
*
|
|
1210
|
+
* @param request - DeleteChatGroupRequest
|
|
1211
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1212
|
+
* @returns DeleteChatGroupResponse
|
|
1213
|
+
*/
|
|
1214
|
+
async deleteChatGroupWithOptions(request, runtime) {
|
|
1215
|
+
request.validate();
|
|
1216
|
+
let query = {};
|
|
1217
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
1218
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
1219
|
+
}
|
|
1220
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1221
|
+
query["ChannelType"] = request.channelType;
|
|
1222
|
+
}
|
|
1223
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
1224
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1225
|
+
}
|
|
1226
|
+
if (!$dara.isNull(request.groupId)) {
|
|
1227
|
+
query["GroupId"] = request.groupId;
|
|
1228
|
+
}
|
|
1229
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1230
|
+
query["OwnerId"] = request.ownerId;
|
|
1231
|
+
}
|
|
1232
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1233
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1234
|
+
}
|
|
1235
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1236
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1237
|
+
}
|
|
1238
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1239
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1240
|
+
});
|
|
1241
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1242
|
+
action: "DeleteChatGroup",
|
|
1243
|
+
version: "2020-06-06",
|
|
1244
|
+
protocol: "HTTPS",
|
|
1245
|
+
pathname: "/",
|
|
1246
|
+
method: "POST",
|
|
1247
|
+
authType: "AK",
|
|
1248
|
+
style: "RPC",
|
|
1249
|
+
reqBodyType: "formData",
|
|
1250
|
+
bodyType: "json",
|
|
1251
|
+
});
|
|
1252
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupResponse({}));
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* DeleteChatGroup
|
|
1256
|
+
*
|
|
1257
|
+
* @param request - DeleteChatGroupRequest
|
|
1258
|
+
* @returns DeleteChatGroupResponse
|
|
1259
|
+
*/
|
|
1260
|
+
async deleteChatGroup(request) {
|
|
1261
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1262
|
+
return await this.deleteChatGroupWithOptions(request, runtime);
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* DeleteChatGroupInviteLink
|
|
1266
|
+
*
|
|
1267
|
+
* @param request - DeleteChatGroupInviteLinkRequest
|
|
1268
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1269
|
+
* @returns DeleteChatGroupInviteLinkResponse
|
|
1270
|
+
*/
|
|
1271
|
+
async deleteChatGroupInviteLinkWithOptions(request, runtime) {
|
|
1272
|
+
request.validate();
|
|
1273
|
+
let query = {};
|
|
1274
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
1275
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
1276
|
+
}
|
|
1277
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1278
|
+
query["ChannelType"] = request.channelType;
|
|
1279
|
+
}
|
|
1280
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
1281
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1282
|
+
}
|
|
1283
|
+
if (!$dara.isNull(request.groupId)) {
|
|
1284
|
+
query["GroupId"] = request.groupId;
|
|
1285
|
+
}
|
|
1286
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1287
|
+
query["OwnerId"] = request.ownerId;
|
|
1288
|
+
}
|
|
1289
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1290
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1291
|
+
}
|
|
1292
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1293
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1294
|
+
}
|
|
1295
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1296
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1297
|
+
});
|
|
1298
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1299
|
+
action: "DeleteChatGroupInviteLink",
|
|
1300
|
+
version: "2020-06-06",
|
|
1301
|
+
protocol: "HTTPS",
|
|
1302
|
+
pathname: "/",
|
|
1303
|
+
method: "POST",
|
|
1304
|
+
authType: "AK",
|
|
1305
|
+
style: "RPC",
|
|
1306
|
+
reqBodyType: "formData",
|
|
1307
|
+
bodyType: "json",
|
|
1308
|
+
});
|
|
1309
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupInviteLinkResponse({}));
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* DeleteChatGroupInviteLink
|
|
1313
|
+
*
|
|
1314
|
+
* @param request - DeleteChatGroupInviteLinkRequest
|
|
1315
|
+
* @returns DeleteChatGroupInviteLinkResponse
|
|
1316
|
+
*/
|
|
1317
|
+
async deleteChatGroupInviteLink(request) {
|
|
1318
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1319
|
+
return await this.deleteChatGroupInviteLinkWithOptions(request, runtime);
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* DeleteChatGroupParticipants
|
|
1323
|
+
*
|
|
1324
|
+
* @param tmpReq - DeleteChatGroupParticipantsRequest
|
|
1325
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1326
|
+
* @returns DeleteChatGroupParticipantsResponse
|
|
1327
|
+
*/
|
|
1328
|
+
async deleteChatGroupParticipantsWithOptions(tmpReq, runtime) {
|
|
1329
|
+
tmpReq.validate();
|
|
1330
|
+
let request = new $_model.DeleteChatGroupParticipantsShrinkRequest({});
|
|
1331
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1332
|
+
if (!$dara.isNull(tmpReq.list)) {
|
|
1333
|
+
request.listShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.list, "List", "json");
|
|
1334
|
+
}
|
|
1335
|
+
let query = {};
|
|
1336
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
1337
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
1338
|
+
}
|
|
1339
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1340
|
+
query["ChannelType"] = request.channelType;
|
|
1341
|
+
}
|
|
1342
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
1343
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
1344
|
+
}
|
|
1345
|
+
if (!$dara.isNull(request.groupId)) {
|
|
1346
|
+
query["GroupId"] = request.groupId;
|
|
1347
|
+
}
|
|
1348
|
+
if (!$dara.isNull(request.listShrink)) {
|
|
1349
|
+
query["List"] = request.listShrink;
|
|
1350
|
+
}
|
|
1351
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1352
|
+
query["OwnerId"] = request.ownerId;
|
|
1353
|
+
}
|
|
1354
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1355
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1356
|
+
}
|
|
1357
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1358
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1359
|
+
}
|
|
1360
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1361
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1362
|
+
});
|
|
1363
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1364
|
+
action: "DeleteChatGroupParticipants",
|
|
1365
|
+
version: "2020-06-06",
|
|
1366
|
+
protocol: "HTTPS",
|
|
1367
|
+
pathname: "/",
|
|
1368
|
+
method: "POST",
|
|
1369
|
+
authType: "AK",
|
|
1370
|
+
style: "RPC",
|
|
1371
|
+
reqBodyType: "formData",
|
|
1372
|
+
bodyType: "json",
|
|
1373
|
+
});
|
|
1374
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupParticipantsResponse({}));
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* DeleteChatGroupParticipants
|
|
1378
|
+
*
|
|
1379
|
+
* @param request - DeleteChatGroupParticipantsRequest
|
|
1380
|
+
* @returns DeleteChatGroupParticipantsResponse
|
|
1381
|
+
*/
|
|
1382
|
+
async deleteChatGroupParticipants(request) {
|
|
1383
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1384
|
+
return await this.deleteChatGroupParticipantsWithOptions(request, runtime);
|
|
1385
|
+
}
|
|
939
1386
|
/**
|
|
940
1387
|
* Deletes a message template.
|
|
941
1388
|
*
|
|
@@ -1058,6 +1505,68 @@ class Client extends openapi_core_1.default {
|
|
|
1058
1505
|
let runtime = new $dara.RuntimeOptions({});
|
|
1059
1506
|
return await this.deleteFlowWithOptions(request, runtime);
|
|
1060
1507
|
}
|
|
1508
|
+
/**
|
|
1509
|
+
* Delete Flow Version
|
|
1510
|
+
*
|
|
1511
|
+
* @param tmpReq - DeleteFlowVersionRequest
|
|
1512
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1513
|
+
* @returns DeleteFlowVersionResponse
|
|
1514
|
+
*/
|
|
1515
|
+
async deleteFlowVersionWithOptions(tmpReq, runtime) {
|
|
1516
|
+
tmpReq.validate();
|
|
1517
|
+
let request = new $_model.DeleteFlowVersionShrinkRequest({});
|
|
1518
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1519
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
1520
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
1521
|
+
}
|
|
1522
|
+
let query = {};
|
|
1523
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
1524
|
+
query["BizCode"] = request.bizCode;
|
|
1525
|
+
}
|
|
1526
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
1527
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
1528
|
+
}
|
|
1529
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1530
|
+
query["FlowCode"] = request.flowCode;
|
|
1531
|
+
}
|
|
1532
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
1533
|
+
query["FlowVersion"] = request.flowVersion;
|
|
1534
|
+
}
|
|
1535
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1536
|
+
query["OwnerId"] = request.ownerId;
|
|
1537
|
+
}
|
|
1538
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1539
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1540
|
+
}
|
|
1541
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1542
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1543
|
+
}
|
|
1544
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1545
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1546
|
+
});
|
|
1547
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1548
|
+
action: "DeleteFlowVersion",
|
|
1549
|
+
version: "2020-06-06",
|
|
1550
|
+
protocol: "HTTPS",
|
|
1551
|
+
pathname: "/",
|
|
1552
|
+
method: "POST",
|
|
1553
|
+
authType: "AK",
|
|
1554
|
+
style: "RPC",
|
|
1555
|
+
reqBodyType: "formData",
|
|
1556
|
+
bodyType: "json",
|
|
1557
|
+
});
|
|
1558
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFlowVersionResponse({}));
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* Delete Flow Version
|
|
1562
|
+
*
|
|
1563
|
+
* @param request - DeleteFlowVersionRequest
|
|
1564
|
+
* @returns DeleteFlowVersionResponse
|
|
1565
|
+
*/
|
|
1566
|
+
async deleteFlowVersion(request) {
|
|
1567
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1568
|
+
return await this.deleteFlowVersionWithOptions(request, runtime);
|
|
1569
|
+
}
|
|
1061
1570
|
/**
|
|
1062
1571
|
* Deletes a quick-response (QR) code that contains a message.
|
|
1063
1572
|
*
|
|
@@ -1194,41 +1703,52 @@ class Client extends openapi_core_1.default {
|
|
|
1194
1703
|
return await this.enableWhatsappROIMetricWithOptions(request, runtime);
|
|
1195
1704
|
}
|
|
1196
1705
|
/**
|
|
1197
|
-
*
|
|
1198
|
-
*
|
|
1199
|
-
* @remarks
|
|
1200
|
-
* 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.
|
|
1706
|
+
* Bind phone numbers to flow
|
|
1201
1707
|
*
|
|
1202
|
-
* @param
|
|
1708
|
+
* @param tmpReq - FlowBindPhoneRequest
|
|
1203
1709
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1204
|
-
* @returns
|
|
1710
|
+
* @returns FlowBindPhoneResponse
|
|
1205
1711
|
*/
|
|
1206
|
-
async
|
|
1207
|
-
|
|
1712
|
+
async flowBindPhoneWithOptions(tmpReq, runtime) {
|
|
1713
|
+
tmpReq.validate();
|
|
1714
|
+
let request = new $_model.FlowBindPhoneShrinkRequest({});
|
|
1715
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1716
|
+
if (!$dara.isNull(tmpReq.phoneNumbers)) {
|
|
1717
|
+
request.phoneNumbersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
|
|
1718
|
+
}
|
|
1208
1719
|
let query = {};
|
|
1209
|
-
if (!$dara.isNull(request.
|
|
1210
|
-
query["
|
|
1720
|
+
if (!$dara.isNull(request.channelCode)) {
|
|
1721
|
+
query["ChannelCode"] = request.channelCode;
|
|
1211
1722
|
}
|
|
1212
|
-
if (!$dara.isNull(request.
|
|
1213
|
-
query["
|
|
1723
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1724
|
+
query["ChannelType"] = request.channelType;
|
|
1214
1725
|
}
|
|
1215
|
-
if (!$dara.isNull(request.
|
|
1216
|
-
query["
|
|
1726
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1727
|
+
query["FlowCode"] = request.flowCode;
|
|
1217
1728
|
}
|
|
1218
|
-
if (!$dara.isNull(request.
|
|
1219
|
-
query["
|
|
1729
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
1730
|
+
query["FlowVersion"] = request.flowVersion;
|
|
1220
1731
|
}
|
|
1221
|
-
if (!$dara.isNull(request.
|
|
1222
|
-
query["
|
|
1732
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1733
|
+
query["OwnerId"] = request.ownerId;
|
|
1223
1734
|
}
|
|
1224
|
-
if (!$dara.isNull(request.
|
|
1225
|
-
query["
|
|
1735
|
+
if (!$dara.isNull(request.phoneNumbersShrink)) {
|
|
1736
|
+
query["PhoneNumbers"] = request.phoneNumbersShrink;
|
|
1737
|
+
}
|
|
1738
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1739
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1740
|
+
}
|
|
1741
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1742
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1743
|
+
}
|
|
1744
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
1745
|
+
query["WabaId"] = request.wabaId;
|
|
1226
1746
|
}
|
|
1227
1747
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1228
1748
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1229
1749
|
});
|
|
1230
1750
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1231
|
-
action: "
|
|
1751
|
+
action: "FlowBindPhone",
|
|
1232
1752
|
version: "2020-06-06",
|
|
1233
1753
|
protocol: "HTTPS",
|
|
1234
1754
|
pathname: "/",
|
|
@@ -1238,20 +1758,329 @@ class Client extends openapi_core_1.default {
|
|
|
1238
1758
|
reqBodyType: "formData",
|
|
1239
1759
|
bodyType: "json",
|
|
1240
1760
|
});
|
|
1241
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
1761
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.FlowBindPhoneResponse({}));
|
|
1242
1762
|
}
|
|
1243
1763
|
/**
|
|
1244
|
-
*
|
|
1245
|
-
*
|
|
1246
|
-
* @remarks
|
|
1247
|
-
* 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.
|
|
1764
|
+
* Bind phone numbers to flow
|
|
1248
1765
|
*
|
|
1249
|
-
* @param request -
|
|
1250
|
-
* @returns
|
|
1766
|
+
* @param request - FlowBindPhoneRequest
|
|
1767
|
+
* @returns FlowBindPhoneResponse
|
|
1251
1768
|
*/
|
|
1252
|
-
async
|
|
1769
|
+
async flowBindPhone(request) {
|
|
1253
1770
|
let runtime = new $dara.RuntimeOptions({});
|
|
1254
|
-
return await this.
|
|
1771
|
+
return await this.flowBindPhoneWithOptions(request, runtime);
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* Rebind phone number for flow
|
|
1775
|
+
*
|
|
1776
|
+
* @param tmpReq - FlowRebindPhoneRequest
|
|
1777
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1778
|
+
* @returns FlowRebindPhoneResponse
|
|
1779
|
+
*/
|
|
1780
|
+
async flowRebindPhoneWithOptions(tmpReq, runtime) {
|
|
1781
|
+
tmpReq.validate();
|
|
1782
|
+
let request = new $_model.FlowRebindPhoneShrinkRequest({});
|
|
1783
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1784
|
+
if (!$dara.isNull(tmpReq.phoneNumbers)) {
|
|
1785
|
+
request.phoneNumbersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
|
|
1786
|
+
}
|
|
1787
|
+
let query = {};
|
|
1788
|
+
if (!$dara.isNull(request.channelCode)) {
|
|
1789
|
+
query["ChannelCode"] = request.channelCode;
|
|
1790
|
+
}
|
|
1791
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1792
|
+
query["ChannelType"] = request.channelType;
|
|
1793
|
+
}
|
|
1794
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1795
|
+
query["FlowCode"] = request.flowCode;
|
|
1796
|
+
}
|
|
1797
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
1798
|
+
query["FlowVersion"] = request.flowVersion;
|
|
1799
|
+
}
|
|
1800
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1801
|
+
query["OwnerId"] = request.ownerId;
|
|
1802
|
+
}
|
|
1803
|
+
if (!$dara.isNull(request.phoneNumbersShrink)) {
|
|
1804
|
+
query["PhoneNumbers"] = request.phoneNumbersShrink;
|
|
1805
|
+
}
|
|
1806
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1807
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1808
|
+
}
|
|
1809
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1810
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1811
|
+
}
|
|
1812
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
1813
|
+
query["WabaId"] = request.wabaId;
|
|
1814
|
+
}
|
|
1815
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1816
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1817
|
+
});
|
|
1818
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1819
|
+
action: "FlowRebindPhone",
|
|
1820
|
+
version: "2020-06-06",
|
|
1821
|
+
protocol: "HTTPS",
|
|
1822
|
+
pathname: "/",
|
|
1823
|
+
method: "POST",
|
|
1824
|
+
authType: "AK",
|
|
1825
|
+
style: "RPC",
|
|
1826
|
+
reqBodyType: "formData",
|
|
1827
|
+
bodyType: "json",
|
|
1828
|
+
});
|
|
1829
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.FlowRebindPhoneResponse({}));
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* Rebind phone number for flow
|
|
1833
|
+
*
|
|
1834
|
+
* @param request - FlowRebindPhoneRequest
|
|
1835
|
+
* @returns FlowRebindPhoneResponse
|
|
1836
|
+
*/
|
|
1837
|
+
async flowRebindPhone(request) {
|
|
1838
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1839
|
+
return await this.flowRebindPhoneWithOptions(request, runtime);
|
|
1840
|
+
}
|
|
1841
|
+
/**
|
|
1842
|
+
* Unbind phone number from flow
|
|
1843
|
+
*
|
|
1844
|
+
* @param tmpReq - FlowUnbindPhoneRequest
|
|
1845
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1846
|
+
* @returns FlowUnbindPhoneResponse
|
|
1847
|
+
*/
|
|
1848
|
+
async flowUnbindPhoneWithOptions(tmpReq, runtime) {
|
|
1849
|
+
tmpReq.validate();
|
|
1850
|
+
let request = new $_model.FlowUnbindPhoneShrinkRequest({});
|
|
1851
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1852
|
+
if (!$dara.isNull(tmpReq.phoneNumbers)) {
|
|
1853
|
+
request.phoneNumbersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
|
|
1854
|
+
}
|
|
1855
|
+
let query = {};
|
|
1856
|
+
if (!$dara.isNull(request.channelType)) {
|
|
1857
|
+
query["ChannelType"] = request.channelType;
|
|
1858
|
+
}
|
|
1859
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1860
|
+
query["FlowCode"] = request.flowCode;
|
|
1861
|
+
}
|
|
1862
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
1863
|
+
query["FlowVersion"] = request.flowVersion;
|
|
1864
|
+
}
|
|
1865
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1866
|
+
query["OwnerId"] = request.ownerId;
|
|
1867
|
+
}
|
|
1868
|
+
if (!$dara.isNull(request.phoneNumbersShrink)) {
|
|
1869
|
+
query["PhoneNumbers"] = request.phoneNumbersShrink;
|
|
1870
|
+
}
|
|
1871
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1872
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1873
|
+
}
|
|
1874
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1875
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1876
|
+
}
|
|
1877
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1878
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1879
|
+
});
|
|
1880
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1881
|
+
action: "FlowUnbindPhone",
|
|
1882
|
+
version: "2020-06-06",
|
|
1883
|
+
protocol: "HTTPS",
|
|
1884
|
+
pathname: "/",
|
|
1885
|
+
method: "POST",
|
|
1886
|
+
authType: "AK",
|
|
1887
|
+
style: "RPC",
|
|
1888
|
+
reqBodyType: "formData",
|
|
1889
|
+
bodyType: "json",
|
|
1890
|
+
});
|
|
1891
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.FlowUnbindPhoneResponse({}));
|
|
1892
|
+
}
|
|
1893
|
+
/**
|
|
1894
|
+
* Unbind phone number from flow
|
|
1895
|
+
*
|
|
1896
|
+
* @param request - FlowUnbindPhoneRequest
|
|
1897
|
+
* @returns FlowUnbindPhoneResponse
|
|
1898
|
+
*/
|
|
1899
|
+
async flowUnbindPhone(request) {
|
|
1900
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1901
|
+
return await this.flowUnbindPhoneWithOptions(request, runtime);
|
|
1902
|
+
}
|
|
1903
|
+
/**
|
|
1904
|
+
* Get ChatFlow Runtime Data
|
|
1905
|
+
*
|
|
1906
|
+
* @param tmpReq - GetChatFlowMetricRequest
|
|
1907
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1908
|
+
* @returns GetChatFlowMetricResponse
|
|
1909
|
+
*/
|
|
1910
|
+
async getChatFlowMetricWithOptions(tmpReq, runtime) {
|
|
1911
|
+
tmpReq.validate();
|
|
1912
|
+
let request = new $_model.GetChatFlowMetricShrinkRequest({});
|
|
1913
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
1914
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
1915
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
1916
|
+
}
|
|
1917
|
+
let query = {};
|
|
1918
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
1919
|
+
query["BizCode"] = request.bizCode;
|
|
1920
|
+
}
|
|
1921
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
1922
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
1923
|
+
}
|
|
1924
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
1925
|
+
query["FlowCode"] = request.flowCode;
|
|
1926
|
+
}
|
|
1927
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
1928
|
+
query["FlowVersion"] = request.flowVersion;
|
|
1929
|
+
}
|
|
1930
|
+
if (!$dara.isNull(request.from)) {
|
|
1931
|
+
query["From"] = request.from;
|
|
1932
|
+
}
|
|
1933
|
+
if (!$dara.isNull(request.metricName)) {
|
|
1934
|
+
query["MetricName"] = request.metricName;
|
|
1935
|
+
}
|
|
1936
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1937
|
+
query["OwnerId"] = request.ownerId;
|
|
1938
|
+
}
|
|
1939
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1940
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1941
|
+
}
|
|
1942
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1943
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1944
|
+
}
|
|
1945
|
+
if (!$dara.isNull(request.to)) {
|
|
1946
|
+
query["To"] = request.to;
|
|
1947
|
+
}
|
|
1948
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1949
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1950
|
+
});
|
|
1951
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1952
|
+
action: "GetChatFlowMetric",
|
|
1953
|
+
version: "2020-06-06",
|
|
1954
|
+
protocol: "HTTPS",
|
|
1955
|
+
pathname: "/",
|
|
1956
|
+
method: "POST",
|
|
1957
|
+
authType: "AK",
|
|
1958
|
+
style: "RPC",
|
|
1959
|
+
reqBodyType: "formData",
|
|
1960
|
+
bodyType: "json",
|
|
1961
|
+
});
|
|
1962
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetChatFlowMetricResponse({}));
|
|
1963
|
+
}
|
|
1964
|
+
/**
|
|
1965
|
+
* Get ChatFlow Runtime Data
|
|
1966
|
+
*
|
|
1967
|
+
* @param request - GetChatFlowMetricRequest
|
|
1968
|
+
* @returns GetChatFlowMetricResponse
|
|
1969
|
+
*/
|
|
1970
|
+
async getChatFlowMetric(request) {
|
|
1971
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1972
|
+
return await this.getChatFlowMetricWithOptions(request, runtime);
|
|
1973
|
+
}
|
|
1974
|
+
/**
|
|
1975
|
+
* Query chatFlow template
|
|
1976
|
+
*
|
|
1977
|
+
* @param request - GetChatFlowTemplateRequest
|
|
1978
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1979
|
+
* @returns GetChatFlowTemplateResponse
|
|
1980
|
+
*/
|
|
1981
|
+
async getChatFlowTemplateWithOptions(request, runtime) {
|
|
1982
|
+
request.validate();
|
|
1983
|
+
let query = {};
|
|
1984
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
1985
|
+
query["BizCode"] = request.bizCode;
|
|
1986
|
+
}
|
|
1987
|
+
if (!$dara.isNull(request.id)) {
|
|
1988
|
+
query["Id"] = request.id;
|
|
1989
|
+
}
|
|
1990
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
1991
|
+
query["OwnerId"] = request.ownerId;
|
|
1992
|
+
}
|
|
1993
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
1994
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
1995
|
+
}
|
|
1996
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
1997
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1998
|
+
}
|
|
1999
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2000
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2001
|
+
});
|
|
2002
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2003
|
+
action: "GetChatFlowTemplate",
|
|
2004
|
+
version: "2020-06-06",
|
|
2005
|
+
protocol: "HTTPS",
|
|
2006
|
+
pathname: "/",
|
|
2007
|
+
method: "POST",
|
|
2008
|
+
authType: "AK",
|
|
2009
|
+
style: "RPC",
|
|
2010
|
+
reqBodyType: "formData",
|
|
2011
|
+
bodyType: "json",
|
|
2012
|
+
});
|
|
2013
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetChatFlowTemplateResponse({}));
|
|
2014
|
+
}
|
|
2015
|
+
/**
|
|
2016
|
+
* Query chatFlow template
|
|
2017
|
+
*
|
|
2018
|
+
* @param request - GetChatFlowTemplateRequest
|
|
2019
|
+
* @returns GetChatFlowTemplateResponse
|
|
2020
|
+
*/
|
|
2021
|
+
async getChatFlowTemplate(request) {
|
|
2022
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2023
|
+
return await this.getChatFlowTemplateWithOptions(request, runtime);
|
|
2024
|
+
}
|
|
2025
|
+
/**
|
|
2026
|
+
* Queries the number of messages that are sent by using a phone number by a specific metric.
|
|
2027
|
+
*
|
|
2028
|
+
* @remarks
|
|
2029
|
+
* 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.
|
|
2030
|
+
*
|
|
2031
|
+
* @param request - GetChatappPhoneNumberMetricRequest
|
|
2032
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2033
|
+
* @returns GetChatappPhoneNumberMetricResponse
|
|
2034
|
+
*/
|
|
2035
|
+
async getChatappPhoneNumberMetricWithOptions(request, runtime) {
|
|
2036
|
+
request.validate();
|
|
2037
|
+
let query = {};
|
|
2038
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2039
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
2040
|
+
}
|
|
2041
|
+
if (!$dara.isNull(request.end)) {
|
|
2042
|
+
query["End"] = request.end;
|
|
2043
|
+
}
|
|
2044
|
+
if (!$dara.isNull(request.granularity)) {
|
|
2045
|
+
query["Granularity"] = request.granularity;
|
|
2046
|
+
}
|
|
2047
|
+
if (!$dara.isNull(request.isvCode)) {
|
|
2048
|
+
query["IsvCode"] = request.isvCode;
|
|
2049
|
+
}
|
|
2050
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
2051
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
2052
|
+
}
|
|
2053
|
+
if (!$dara.isNull(request.start)) {
|
|
2054
|
+
query["Start"] = request.start;
|
|
2055
|
+
}
|
|
2056
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2057
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2058
|
+
});
|
|
2059
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2060
|
+
action: "GetChatappPhoneNumberMetric",
|
|
2061
|
+
version: "2020-06-06",
|
|
2062
|
+
protocol: "HTTPS",
|
|
2063
|
+
pathname: "/",
|
|
2064
|
+
method: "POST",
|
|
2065
|
+
authType: "AK",
|
|
2066
|
+
style: "RPC",
|
|
2067
|
+
reqBodyType: "formData",
|
|
2068
|
+
bodyType: "json",
|
|
2069
|
+
});
|
|
2070
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetChatappPhoneNumberMetricResponse({}));
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Queries the number of messages that are sent by using a phone number by a specific metric.
|
|
2074
|
+
*
|
|
2075
|
+
* @remarks
|
|
2076
|
+
* 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.
|
|
2077
|
+
*
|
|
2078
|
+
* @param request - GetChatappPhoneNumberMetricRequest
|
|
2079
|
+
* @returns GetChatappPhoneNumberMetricResponse
|
|
2080
|
+
*/
|
|
2081
|
+
async getChatappPhoneNumberMetric(request) {
|
|
2082
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2083
|
+
return await this.getChatappPhoneNumberMetricWithOptions(request, runtime);
|
|
1255
2084
|
}
|
|
1256
2085
|
/**
|
|
1257
2086
|
* Queries the information of a message template.
|
|
@@ -1900,24 +2729,304 @@ class Client extends openapi_core_1.default {
|
|
|
1900
2729
|
* @remarks
|
|
1901
2730
|
* 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.
|
|
1902
2731
|
*
|
|
1903
|
-
* @param request - GetPhoneNumberVerificationStatusRequest
|
|
2732
|
+
* @param request - GetPhoneNumberVerificationStatusRequest
|
|
2733
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2734
|
+
* @returns GetPhoneNumberVerificationStatusResponse
|
|
2735
|
+
*/
|
|
2736
|
+
async getPhoneNumberVerificationStatusWithOptions(request, runtime) {
|
|
2737
|
+
request.validate();
|
|
2738
|
+
let body = {};
|
|
2739
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2740
|
+
body["CustSpaceId"] = request.custSpaceId;
|
|
2741
|
+
}
|
|
2742
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
2743
|
+
body["PhoneNumber"] = request.phoneNumber;
|
|
2744
|
+
}
|
|
2745
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2746
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2747
|
+
});
|
|
2748
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2749
|
+
action: "GetPhoneNumberVerificationStatus",
|
|
2750
|
+
version: "2020-06-06",
|
|
2751
|
+
protocol: "HTTPS",
|
|
2752
|
+
pathname: "/",
|
|
2753
|
+
method: "POST",
|
|
2754
|
+
authType: "AK",
|
|
2755
|
+
style: "RPC",
|
|
2756
|
+
reqBodyType: "formData",
|
|
2757
|
+
bodyType: "json",
|
|
2758
|
+
});
|
|
2759
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPhoneNumberVerificationStatusResponse({}));
|
|
2760
|
+
}
|
|
2761
|
+
/**
|
|
2762
|
+
* Obtains the verification status of a phone number.
|
|
2763
|
+
*
|
|
2764
|
+
* @remarks
|
|
2765
|
+
* 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.
|
|
2766
|
+
*
|
|
2767
|
+
* @param request - GetPhoneNumberVerificationStatusRequest
|
|
2768
|
+
* @returns GetPhoneNumberVerificationStatusResponse
|
|
2769
|
+
*/
|
|
2770
|
+
async getPhoneNumberVerificationStatus(request) {
|
|
2771
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2772
|
+
return await this.getPhoneNumberVerificationStatusWithOptions(request, runtime);
|
|
2773
|
+
}
|
|
2774
|
+
/**
|
|
2775
|
+
* Obtains the ID of a pre-registered phone number used for embedded signup without the need to re-obtain a verification code.
|
|
2776
|
+
*
|
|
2777
|
+
* @remarks
|
|
2778
|
+
* 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.
|
|
2779
|
+
*
|
|
2780
|
+
* @param request - GetPreValidatePhoneIdRequest
|
|
2781
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2782
|
+
* @returns GetPreValidatePhoneIdResponse
|
|
2783
|
+
*/
|
|
2784
|
+
async getPreValidatePhoneIdWithOptions(request, runtime) {
|
|
2785
|
+
request.validate();
|
|
2786
|
+
let body = {};
|
|
2787
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
2788
|
+
body["PhoneNumber"] = request.phoneNumber;
|
|
2789
|
+
}
|
|
2790
|
+
if (!$dara.isNull(request.verifyCode)) {
|
|
2791
|
+
body["VerifyCode"] = request.verifyCode;
|
|
2792
|
+
}
|
|
2793
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2794
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2795
|
+
});
|
|
2796
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2797
|
+
action: "GetPreValidatePhoneId",
|
|
2798
|
+
version: "2020-06-06",
|
|
2799
|
+
protocol: "HTTPS",
|
|
2800
|
+
pathname: "/",
|
|
2801
|
+
method: "POST",
|
|
2802
|
+
authType: "AK",
|
|
2803
|
+
style: "RPC",
|
|
2804
|
+
reqBodyType: "formData",
|
|
2805
|
+
bodyType: "json",
|
|
2806
|
+
});
|
|
2807
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetPreValidatePhoneIdResponse({}));
|
|
2808
|
+
}
|
|
2809
|
+
/**
|
|
2810
|
+
* Obtains the ID of a pre-registered phone number used for embedded signup without the need to re-obtain a verification code.
|
|
2811
|
+
*
|
|
2812
|
+
* @remarks
|
|
2813
|
+
* 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.
|
|
2814
|
+
*
|
|
2815
|
+
* @param request - GetPreValidatePhoneIdRequest
|
|
2816
|
+
* @returns GetPreValidatePhoneIdResponse
|
|
2817
|
+
*/
|
|
2818
|
+
async getPreValidatePhoneId(request) {
|
|
2819
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2820
|
+
return await this.getPreValidatePhoneIdWithOptions(request, runtime);
|
|
2821
|
+
}
|
|
2822
|
+
/**
|
|
2823
|
+
* Queries the product catalogs that are associated with a WhatsApp Business account (WABA).
|
|
2824
|
+
*
|
|
2825
|
+
* @remarks
|
|
2826
|
+
* 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.
|
|
2827
|
+
*
|
|
2828
|
+
* @param request - GetWhatsappConnectionCatalogRequest
|
|
2829
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2830
|
+
* @returns GetWhatsappConnectionCatalogResponse
|
|
2831
|
+
*/
|
|
2832
|
+
async getWhatsappConnectionCatalogWithOptions(request, runtime) {
|
|
2833
|
+
request.validate();
|
|
2834
|
+
let query = {};
|
|
2835
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2836
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
2837
|
+
}
|
|
2838
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2839
|
+
query["OwnerId"] = request.ownerId;
|
|
2840
|
+
}
|
|
2841
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2842
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2843
|
+
}
|
|
2844
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2845
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2846
|
+
}
|
|
2847
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
2848
|
+
query["WabaId"] = request.wabaId;
|
|
2849
|
+
}
|
|
2850
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2851
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2852
|
+
});
|
|
2853
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2854
|
+
action: "GetWhatsappConnectionCatalog",
|
|
2855
|
+
version: "2020-06-06",
|
|
2856
|
+
protocol: "HTTPS",
|
|
2857
|
+
pathname: "/",
|
|
2858
|
+
method: "POST",
|
|
2859
|
+
authType: "AK",
|
|
2860
|
+
style: "RPC",
|
|
2861
|
+
reqBodyType: "formData",
|
|
2862
|
+
bodyType: "json",
|
|
2863
|
+
});
|
|
2864
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWhatsappConnectionCatalogResponse({}));
|
|
2865
|
+
}
|
|
2866
|
+
/**
|
|
2867
|
+
* Queries the product catalogs that are associated with a WhatsApp Business account (WABA).
|
|
2868
|
+
*
|
|
2869
|
+
* @remarks
|
|
2870
|
+
* 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.
|
|
2871
|
+
*
|
|
2872
|
+
* @param request - GetWhatsappConnectionCatalogRequest
|
|
2873
|
+
* @returns GetWhatsappConnectionCatalogResponse
|
|
2874
|
+
*/
|
|
2875
|
+
async getWhatsappConnectionCatalog(request) {
|
|
2876
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2877
|
+
return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
|
|
2878
|
+
}
|
|
2879
|
+
/**
|
|
2880
|
+
* Queries the messaging health status of different types of nodes.
|
|
2881
|
+
*
|
|
2882
|
+
* @remarks
|
|
2883
|
+
* ### [](#qps-)QPS limit
|
|
2884
|
+
* 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.
|
|
2885
|
+
* 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.
|
|
2886
|
+
*
|
|
2887
|
+
* @param request - GetWhatsappHealthStatusRequest
|
|
2888
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2889
|
+
* @returns GetWhatsappHealthStatusResponse
|
|
2890
|
+
*/
|
|
2891
|
+
async getWhatsappHealthStatusWithOptions(request, runtime) {
|
|
2892
|
+
request.validate();
|
|
2893
|
+
let query = {};
|
|
2894
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
2895
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
2896
|
+
}
|
|
2897
|
+
if (!$dara.isNull(request.language)) {
|
|
2898
|
+
query["Language"] = request.language;
|
|
2899
|
+
}
|
|
2900
|
+
if (!$dara.isNull(request.nodeType)) {
|
|
2901
|
+
query["NodeType"] = request.nodeType;
|
|
2902
|
+
}
|
|
2903
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
2904
|
+
query["OwnerId"] = request.ownerId;
|
|
2905
|
+
}
|
|
2906
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
2907
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
2908
|
+
}
|
|
2909
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2910
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2911
|
+
}
|
|
2912
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2913
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2914
|
+
}
|
|
2915
|
+
if (!$dara.isNull(request.templateCode)) {
|
|
2916
|
+
query["TemplateCode"] = request.templateCode;
|
|
2917
|
+
}
|
|
2918
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
2919
|
+
query["WabaId"] = request.wabaId;
|
|
2920
|
+
}
|
|
2921
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2922
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2923
|
+
});
|
|
2924
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2925
|
+
action: "GetWhatsappHealthStatus",
|
|
2926
|
+
version: "2020-06-06",
|
|
2927
|
+
protocol: "HTTPS",
|
|
2928
|
+
pathname: "/",
|
|
2929
|
+
method: "POST",
|
|
2930
|
+
authType: "AK",
|
|
2931
|
+
style: "RPC",
|
|
2932
|
+
reqBodyType: "formData",
|
|
2933
|
+
bodyType: "json",
|
|
2934
|
+
});
|
|
2935
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWhatsappHealthStatusResponse({}));
|
|
2936
|
+
}
|
|
2937
|
+
/**
|
|
2938
|
+
* Queries the messaging health status of different types of nodes.
|
|
2939
|
+
*
|
|
2940
|
+
* @remarks
|
|
2941
|
+
* ### [](#qps-)QPS limit
|
|
2942
|
+
* 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.
|
|
2943
|
+
* 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.
|
|
2944
|
+
*
|
|
2945
|
+
* @param request - GetWhatsappHealthStatusRequest
|
|
2946
|
+
* @returns GetWhatsappHealthStatusResponse
|
|
2947
|
+
*/
|
|
2948
|
+
async getWhatsappHealthStatus(request) {
|
|
2949
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2950
|
+
return await this.getWhatsappHealthStatusWithOptions(request, runtime);
|
|
2951
|
+
}
|
|
2952
|
+
/**
|
|
2953
|
+
* Obtains the application ID under the ISV account.
|
|
2954
|
+
*
|
|
2955
|
+
* @remarks
|
|
2956
|
+
* 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.
|
|
2957
|
+
*
|
|
2958
|
+
* @param request - IsvGetAppIdRequest
|
|
2959
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2960
|
+
* @returns IsvGetAppIdResponse
|
|
2961
|
+
*/
|
|
2962
|
+
async isvGetAppIdWithOptions(request, runtime) {
|
|
2963
|
+
request.validate();
|
|
2964
|
+
let body = {};
|
|
2965
|
+
if (!$dara.isNull(request.permissions)) {
|
|
2966
|
+
body["Permissions"] = request.permissions;
|
|
2967
|
+
}
|
|
2968
|
+
if (!$dara.isNull(request.type)) {
|
|
2969
|
+
body["Type"] = request.type;
|
|
2970
|
+
}
|
|
2971
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2972
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2973
|
+
});
|
|
2974
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2975
|
+
action: "IsvGetAppId",
|
|
2976
|
+
version: "2020-06-06",
|
|
2977
|
+
protocol: "HTTPS",
|
|
2978
|
+
pathname: "/",
|
|
2979
|
+
method: "POST",
|
|
2980
|
+
authType: "AK",
|
|
2981
|
+
style: "RPC",
|
|
2982
|
+
reqBodyType: "formData",
|
|
2983
|
+
bodyType: "json",
|
|
2984
|
+
});
|
|
2985
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.IsvGetAppIdResponse({}));
|
|
2986
|
+
}
|
|
2987
|
+
/**
|
|
2988
|
+
* Obtains the application ID under the ISV account.
|
|
2989
|
+
*
|
|
2990
|
+
* @remarks
|
|
2991
|
+
* 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.
|
|
2992
|
+
*
|
|
2993
|
+
* @param request - IsvGetAppIdRequest
|
|
2994
|
+
* @returns IsvGetAppIdResponse
|
|
2995
|
+
*/
|
|
2996
|
+
async isvGetAppId(request) {
|
|
2997
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2998
|
+
return await this.isvGetAppIdWithOptions(request, runtime);
|
|
2999
|
+
}
|
|
3000
|
+
/**
|
|
3001
|
+
* 根据flowCode查询已绑定列表
|
|
3002
|
+
*
|
|
3003
|
+
* @param request - ListBindingRelationsForFlowVersionRequest
|
|
1904
3004
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1905
|
-
* @returns
|
|
3005
|
+
* @returns ListBindingRelationsForFlowVersionResponse
|
|
1906
3006
|
*/
|
|
1907
|
-
async
|
|
3007
|
+
async listBindingRelationsForFlowVersionWithOptions(request, runtime) {
|
|
1908
3008
|
request.validate();
|
|
1909
|
-
let
|
|
1910
|
-
if (!$dara.isNull(request.
|
|
1911
|
-
|
|
3009
|
+
let query = {};
|
|
3010
|
+
if (!$dara.isNull(request.channelType)) {
|
|
3011
|
+
query["ChannelType"] = request.channelType;
|
|
1912
3012
|
}
|
|
1913
|
-
if (!$dara.isNull(request.
|
|
1914
|
-
|
|
3013
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
3014
|
+
query["FlowCode"] = request.flowCode;
|
|
3015
|
+
}
|
|
3016
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3017
|
+
query["OwnerId"] = request.ownerId;
|
|
3018
|
+
}
|
|
3019
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3020
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3021
|
+
}
|
|
3022
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3023
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
1915
3024
|
}
|
|
1916
3025
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1917
|
-
|
|
3026
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1918
3027
|
});
|
|
1919
3028
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1920
|
-
action: "
|
|
3029
|
+
action: "ListBindingRelationsForFlowVersion",
|
|
1921
3030
|
version: "2020-06-06",
|
|
1922
3031
|
protocol: "HTTPS",
|
|
1923
3032
|
pathname: "/",
|
|
@@ -1927,45 +3036,71 @@ class Client extends openapi_core_1.default {
|
|
|
1927
3036
|
reqBodyType: "formData",
|
|
1928
3037
|
bodyType: "json",
|
|
1929
3038
|
});
|
|
1930
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
3039
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListBindingRelationsForFlowVersionResponse({}));
|
|
1931
3040
|
}
|
|
1932
3041
|
/**
|
|
1933
|
-
*
|
|
1934
|
-
*
|
|
1935
|
-
* @remarks
|
|
1936
|
-
* 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.
|
|
3042
|
+
* 根据flowCode查询已绑定列表
|
|
1937
3043
|
*
|
|
1938
|
-
* @param request -
|
|
1939
|
-
* @returns
|
|
3044
|
+
* @param request - ListBindingRelationsForFlowVersionRequest
|
|
3045
|
+
* @returns ListBindingRelationsForFlowVersionResponse
|
|
1940
3046
|
*/
|
|
1941
|
-
async
|
|
3047
|
+
async listBindingRelationsForFlowVersion(request) {
|
|
1942
3048
|
let runtime = new $dara.RuntimeOptions({});
|
|
1943
|
-
return await this.
|
|
3049
|
+
return await this.listBindingRelationsForFlowVersionWithOptions(request, runtime);
|
|
1944
3050
|
}
|
|
1945
3051
|
/**
|
|
1946
|
-
*
|
|
1947
|
-
*
|
|
1948
|
-
* @remarks
|
|
1949
|
-
* 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.
|
|
3052
|
+
* List Flows
|
|
1950
3053
|
*
|
|
1951
|
-
* @param
|
|
3054
|
+
* @param tmpReq - ListChatFlowRequest
|
|
1952
3055
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1953
|
-
* @returns
|
|
3056
|
+
* @returns ListChatFlowResponse
|
|
1954
3057
|
*/
|
|
1955
|
-
async
|
|
1956
|
-
|
|
1957
|
-
let
|
|
1958
|
-
|
|
1959
|
-
|
|
3058
|
+
async listChatFlowWithOptions(tmpReq, runtime) {
|
|
3059
|
+
tmpReq.validate();
|
|
3060
|
+
let request = new $_model.ListChatFlowShrinkRequest({});
|
|
3061
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
3062
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
3063
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
1960
3064
|
}
|
|
1961
|
-
|
|
1962
|
-
|
|
3065
|
+
let query = {};
|
|
3066
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
3067
|
+
query["BizCode"] = request.bizCode;
|
|
3068
|
+
}
|
|
3069
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
3070
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
3071
|
+
}
|
|
3072
|
+
if (!$dara.isNull(request.flowTriggerType)) {
|
|
3073
|
+
query["FlowTriggerType"] = request.flowTriggerType;
|
|
3074
|
+
}
|
|
3075
|
+
if (!$dara.isNull(request.keyword)) {
|
|
3076
|
+
query["Keyword"] = request.keyword;
|
|
3077
|
+
}
|
|
3078
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3079
|
+
query["OwnerId"] = request.ownerId;
|
|
3080
|
+
}
|
|
3081
|
+
if (!$dara.isNull(request.pageNo)) {
|
|
3082
|
+
query["PageNo"] = request.pageNo;
|
|
3083
|
+
}
|
|
3084
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3085
|
+
query["PageSize"] = request.pageSize;
|
|
3086
|
+
}
|
|
3087
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3088
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3089
|
+
}
|
|
3090
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3091
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3092
|
+
}
|
|
3093
|
+
if (!$dara.isNull(request.returnWithOnlineVersion)) {
|
|
3094
|
+
query["ReturnWithOnlineVersion"] = request.returnWithOnlineVersion;
|
|
3095
|
+
}
|
|
3096
|
+
if (!$dara.isNull(request.status)) {
|
|
3097
|
+
query["Status"] = request.status;
|
|
1963
3098
|
}
|
|
1964
3099
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1965
|
-
|
|
3100
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1966
3101
|
});
|
|
1967
3102
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1968
|
-
action: "
|
|
3103
|
+
action: "ListChatFlow",
|
|
1969
3104
|
version: "2020-06-06",
|
|
1970
3105
|
protocol: "HTTPS",
|
|
1971
3106
|
pathname: "/",
|
|
@@ -1975,54 +3110,57 @@ class Client extends openapi_core_1.default {
|
|
|
1975
3110
|
reqBodyType: "formData",
|
|
1976
3111
|
bodyType: "json",
|
|
1977
3112
|
});
|
|
1978
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
3113
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatFlowResponse({}));
|
|
1979
3114
|
}
|
|
1980
3115
|
/**
|
|
1981
|
-
*
|
|
3116
|
+
* List Flows
|
|
1982
3117
|
*
|
|
1983
|
-
* @
|
|
1984
|
-
*
|
|
1985
|
-
*
|
|
1986
|
-
* @param request - GetPreValidatePhoneIdRequest
|
|
1987
|
-
* @returns GetPreValidatePhoneIdResponse
|
|
3118
|
+
* @param request - ListChatFlowRequest
|
|
3119
|
+
* @returns ListChatFlowResponse
|
|
1988
3120
|
*/
|
|
1989
|
-
async
|
|
3121
|
+
async listChatFlow(request) {
|
|
1990
3122
|
let runtime = new $dara.RuntimeOptions({});
|
|
1991
|
-
return await this.
|
|
3123
|
+
return await this.listChatFlowWithOptions(request, runtime);
|
|
1992
3124
|
}
|
|
1993
3125
|
/**
|
|
1994
|
-
*
|
|
3126
|
+
* ChatFlow Template List
|
|
1995
3127
|
*
|
|
1996
|
-
* @
|
|
1997
|
-
* 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.
|
|
1998
|
-
*
|
|
1999
|
-
* @param request - GetWhatsappConnectionCatalogRequest
|
|
3128
|
+
* @param request - ListChatFlowTemplateRequest
|
|
2000
3129
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2001
|
-
* @returns
|
|
3130
|
+
* @returns ListChatFlowTemplateResponse
|
|
2002
3131
|
*/
|
|
2003
|
-
async
|
|
3132
|
+
async listChatFlowTemplateWithOptions(request, runtime) {
|
|
2004
3133
|
request.validate();
|
|
2005
3134
|
let query = {};
|
|
2006
|
-
if (!$dara.isNull(request.
|
|
2007
|
-
query["
|
|
3135
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
3136
|
+
query["BizCode"] = request.bizCode;
|
|
3137
|
+
}
|
|
3138
|
+
if (!$dara.isNull(request.keyword)) {
|
|
3139
|
+
query["Keyword"] = request.keyword;
|
|
2008
3140
|
}
|
|
2009
3141
|
if (!$dara.isNull(request.ownerId)) {
|
|
2010
3142
|
query["OwnerId"] = request.ownerId;
|
|
2011
3143
|
}
|
|
3144
|
+
if (!$dara.isNull(request.pageNo)) {
|
|
3145
|
+
query["PageNo"] = request.pageNo;
|
|
3146
|
+
}
|
|
3147
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3148
|
+
query["PageSize"] = request.pageSize;
|
|
3149
|
+
}
|
|
2012
3150
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2013
3151
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2014
3152
|
}
|
|
2015
3153
|
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2016
3154
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2017
3155
|
}
|
|
2018
|
-
if (!$dara.isNull(request.
|
|
2019
|
-
query["
|
|
3156
|
+
if (!$dara.isNull(request.triggerType)) {
|
|
3157
|
+
query["TriggerType"] = request.triggerType;
|
|
2020
3158
|
}
|
|
2021
3159
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2022
3160
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2023
3161
|
});
|
|
2024
3162
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2025
|
-
action: "
|
|
3163
|
+
action: "ListChatFlowTemplate",
|
|
2026
3164
|
version: "2020-06-06",
|
|
2027
3165
|
protocol: "HTTPS",
|
|
2028
3166
|
pathname: "/",
|
|
@@ -2032,50 +3170,50 @@ class Client extends openapi_core_1.default {
|
|
|
2032
3170
|
reqBodyType: "formData",
|
|
2033
3171
|
bodyType: "json",
|
|
2034
3172
|
});
|
|
2035
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
3173
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatFlowTemplateResponse({}));
|
|
2036
3174
|
}
|
|
2037
3175
|
/**
|
|
2038
|
-
*
|
|
3176
|
+
* ChatFlow Template List
|
|
2039
3177
|
*
|
|
2040
|
-
* @
|
|
2041
|
-
*
|
|
2042
|
-
*
|
|
2043
|
-
* @param request - GetWhatsappConnectionCatalogRequest
|
|
2044
|
-
* @returns GetWhatsappConnectionCatalogResponse
|
|
3178
|
+
* @param request - ListChatFlowTemplateRequest
|
|
3179
|
+
* @returns ListChatFlowTemplateResponse
|
|
2045
3180
|
*/
|
|
2046
|
-
async
|
|
3181
|
+
async listChatFlowTemplate(request) {
|
|
2047
3182
|
let runtime = new $dara.RuntimeOptions({});
|
|
2048
|
-
return await this.
|
|
3183
|
+
return await this.listChatFlowTemplateWithOptions(request, runtime);
|
|
2049
3184
|
}
|
|
2050
3185
|
/**
|
|
2051
|
-
*
|
|
3186
|
+
* ListChatGroup
|
|
2052
3187
|
*
|
|
2053
|
-
* @
|
|
2054
|
-
* ### [](#qps-)QPS limit
|
|
2055
|
-
* 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.
|
|
2056
|
-
* 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.
|
|
2057
|
-
*
|
|
2058
|
-
* @param request - GetWhatsappHealthStatusRequest
|
|
3188
|
+
* @param tmpReq - ListChatGroupRequest
|
|
2059
3189
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2060
|
-
* @returns
|
|
3190
|
+
* @returns ListChatGroupResponse
|
|
2061
3191
|
*/
|
|
2062
|
-
async
|
|
2063
|
-
|
|
3192
|
+
async listChatGroupWithOptions(tmpReq, runtime) {
|
|
3193
|
+
tmpReq.validate();
|
|
3194
|
+
let request = new $_model.ListChatGroupShrinkRequest({});
|
|
3195
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
3196
|
+
if (!$dara.isNull(tmpReq.page)) {
|
|
3197
|
+
request.pageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
|
|
3198
|
+
}
|
|
2064
3199
|
let query = {};
|
|
3200
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
3201
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
3202
|
+
}
|
|
3203
|
+
if (!$dara.isNull(request.channelType)) {
|
|
3204
|
+
query["ChannelType"] = request.channelType;
|
|
3205
|
+
}
|
|
2065
3206
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
2066
3207
|
query["CustSpaceId"] = request.custSpaceId;
|
|
2067
3208
|
}
|
|
2068
|
-
if (!$dara.isNull(request.
|
|
2069
|
-
query["
|
|
2070
|
-
}
|
|
2071
|
-
if (!$dara.isNull(request.nodeType)) {
|
|
2072
|
-
query["NodeType"] = request.nodeType;
|
|
3209
|
+
if (!$dara.isNull(request.groupStatus)) {
|
|
3210
|
+
query["GroupStatus"] = request.groupStatus;
|
|
2073
3211
|
}
|
|
2074
3212
|
if (!$dara.isNull(request.ownerId)) {
|
|
2075
3213
|
query["OwnerId"] = request.ownerId;
|
|
2076
3214
|
}
|
|
2077
|
-
if (!$dara.isNull(request.
|
|
2078
|
-
query["
|
|
3215
|
+
if (!$dara.isNull(request.pageShrink)) {
|
|
3216
|
+
query["Page"] = request.pageShrink;
|
|
2079
3217
|
}
|
|
2080
3218
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2081
3219
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
@@ -2083,17 +3221,14 @@ class Client extends openapi_core_1.default {
|
|
|
2083
3221
|
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2084
3222
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2085
3223
|
}
|
|
2086
|
-
if (!$dara.isNull(request.
|
|
2087
|
-
query["
|
|
2088
|
-
}
|
|
2089
|
-
if (!$dara.isNull(request.wabaId)) {
|
|
2090
|
-
query["WabaId"] = request.wabaId;
|
|
3224
|
+
if (!$dara.isNull(request.subject)) {
|
|
3225
|
+
query["Subject"] = request.subject;
|
|
2091
3226
|
}
|
|
2092
3227
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2093
3228
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2094
3229
|
});
|
|
2095
3230
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2096
|
-
action: "
|
|
3231
|
+
action: "ListChatGroup",
|
|
2097
3232
|
version: "2020-06-06",
|
|
2098
3233
|
protocol: "HTTPS",
|
|
2099
3234
|
pathname: "/",
|
|
@@ -2103,47 +3238,62 @@ class Client extends openapi_core_1.default {
|
|
|
2103
3238
|
reqBodyType: "formData",
|
|
2104
3239
|
bodyType: "json",
|
|
2105
3240
|
});
|
|
2106
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
3241
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatGroupResponse({}));
|
|
2107
3242
|
}
|
|
2108
3243
|
/**
|
|
2109
|
-
*
|
|
2110
|
-
*
|
|
2111
|
-
* @remarks
|
|
2112
|
-
* ### [](#qps-)QPS limit
|
|
2113
|
-
* 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.
|
|
2114
|
-
* 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.
|
|
3244
|
+
* ListChatGroup
|
|
2115
3245
|
*
|
|
2116
|
-
* @param request -
|
|
2117
|
-
* @returns
|
|
3246
|
+
* @param request - ListChatGroupRequest
|
|
3247
|
+
* @returns ListChatGroupResponse
|
|
2118
3248
|
*/
|
|
2119
|
-
async
|
|
3249
|
+
async listChatGroup(request) {
|
|
2120
3250
|
let runtime = new $dara.RuntimeOptions({});
|
|
2121
|
-
return await this.
|
|
3251
|
+
return await this.listChatGroupWithOptions(request, runtime);
|
|
2122
3252
|
}
|
|
2123
3253
|
/**
|
|
2124
|
-
*
|
|
3254
|
+
* ListChatGroupParticipants
|
|
2125
3255
|
*
|
|
2126
|
-
* @
|
|
2127
|
-
* 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.
|
|
2128
|
-
*
|
|
2129
|
-
* @param request - IsvGetAppIdRequest
|
|
3256
|
+
* @param tmpReq - ListChatGroupParticipantsRequest
|
|
2130
3257
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2131
|
-
* @returns
|
|
3258
|
+
* @returns ListChatGroupParticipantsResponse
|
|
2132
3259
|
*/
|
|
2133
|
-
async
|
|
2134
|
-
|
|
2135
|
-
let
|
|
2136
|
-
|
|
2137
|
-
|
|
3260
|
+
async listChatGroupParticipantsWithOptions(tmpReq, runtime) {
|
|
3261
|
+
tmpReq.validate();
|
|
3262
|
+
let request = new $_model.ListChatGroupParticipantsShrinkRequest({});
|
|
3263
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
3264
|
+
if (!$dara.isNull(tmpReq.page)) {
|
|
3265
|
+
request.pageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
|
|
2138
3266
|
}
|
|
2139
|
-
|
|
2140
|
-
|
|
3267
|
+
let query = {};
|
|
3268
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
3269
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
3270
|
+
}
|
|
3271
|
+
if (!$dara.isNull(request.channelType)) {
|
|
3272
|
+
query["ChannelType"] = request.channelType;
|
|
3273
|
+
}
|
|
3274
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
3275
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
3276
|
+
}
|
|
3277
|
+
if (!$dara.isNull(request.groupId)) {
|
|
3278
|
+
query["GroupId"] = request.groupId;
|
|
3279
|
+
}
|
|
3280
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3281
|
+
query["OwnerId"] = request.ownerId;
|
|
3282
|
+
}
|
|
3283
|
+
if (!$dara.isNull(request.pageShrink)) {
|
|
3284
|
+
query["Page"] = request.pageShrink;
|
|
3285
|
+
}
|
|
3286
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3287
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3288
|
+
}
|
|
3289
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3290
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2141
3291
|
}
|
|
2142
3292
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2143
|
-
|
|
3293
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2144
3294
|
});
|
|
2145
3295
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2146
|
-
action: "
|
|
3296
|
+
action: "ListChatGroupParticipants",
|
|
2147
3297
|
version: "2020-06-06",
|
|
2148
3298
|
protocol: "HTTPS",
|
|
2149
3299
|
pathname: "/",
|
|
@@ -2153,20 +3303,17 @@ class Client extends openapi_core_1.default {
|
|
|
2153
3303
|
reqBodyType: "formData",
|
|
2154
3304
|
bodyType: "json",
|
|
2155
3305
|
});
|
|
2156
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
3306
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatGroupParticipantsResponse({}));
|
|
2157
3307
|
}
|
|
2158
3308
|
/**
|
|
2159
|
-
*
|
|
3309
|
+
* ListChatGroupParticipants
|
|
2160
3310
|
*
|
|
2161
|
-
* @
|
|
2162
|
-
*
|
|
2163
|
-
*
|
|
2164
|
-
* @param request - IsvGetAppIdRequest
|
|
2165
|
-
* @returns IsvGetAppIdResponse
|
|
3311
|
+
* @param request - ListChatGroupParticipantsRequest
|
|
3312
|
+
* @returns ListChatGroupParticipantsResponse
|
|
2166
3313
|
*/
|
|
2167
|
-
async
|
|
3314
|
+
async listChatGroupParticipants(request) {
|
|
2168
3315
|
let runtime = new $dara.RuntimeOptions({});
|
|
2169
|
-
return await this.
|
|
3316
|
+
return await this.listChatGroupParticipantsWithOptions(request, runtime);
|
|
2170
3317
|
}
|
|
2171
3318
|
/**
|
|
2172
3319
|
* Queries message templates.
|
|
@@ -2312,6 +3459,74 @@ class Client extends openapi_core_1.default {
|
|
|
2312
3459
|
let runtime = new $dara.RuntimeOptions({});
|
|
2313
3460
|
return await this.listFlowWithOptions(request, runtime);
|
|
2314
3461
|
}
|
|
3462
|
+
/**
|
|
3463
|
+
* List Flow Versions
|
|
3464
|
+
*
|
|
3465
|
+
* @param tmpReq - ListFlowVersionRequest
|
|
3466
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3467
|
+
* @returns ListFlowVersionResponse
|
|
3468
|
+
*/
|
|
3469
|
+
async listFlowVersionWithOptions(tmpReq, runtime) {
|
|
3470
|
+
tmpReq.validate();
|
|
3471
|
+
let request = new $_model.ListFlowVersionShrinkRequest({});
|
|
3472
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
3473
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
3474
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
3475
|
+
}
|
|
3476
|
+
let query = {};
|
|
3477
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
3478
|
+
query["BizCode"] = request.bizCode;
|
|
3479
|
+
}
|
|
3480
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
3481
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
3482
|
+
}
|
|
3483
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
3484
|
+
query["FlowCode"] = request.flowCode;
|
|
3485
|
+
}
|
|
3486
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3487
|
+
query["OwnerId"] = request.ownerId;
|
|
3488
|
+
}
|
|
3489
|
+
if (!$dara.isNull(request.pageNo)) {
|
|
3490
|
+
query["PageNo"] = request.pageNo;
|
|
3491
|
+
}
|
|
3492
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3493
|
+
query["PageSize"] = request.pageSize;
|
|
3494
|
+
}
|
|
3495
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3496
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3497
|
+
}
|
|
3498
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3499
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3500
|
+
}
|
|
3501
|
+
if (!$dara.isNull(request.status)) {
|
|
3502
|
+
query["Status"] = request.status;
|
|
3503
|
+
}
|
|
3504
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3505
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3506
|
+
});
|
|
3507
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3508
|
+
action: "ListFlowVersion",
|
|
3509
|
+
version: "2020-06-06",
|
|
3510
|
+
protocol: "HTTPS",
|
|
3511
|
+
pathname: "/",
|
|
3512
|
+
method: "POST",
|
|
3513
|
+
authType: "AK",
|
|
3514
|
+
style: "RPC",
|
|
3515
|
+
reqBodyType: "formData",
|
|
3516
|
+
bodyType: "json",
|
|
3517
|
+
});
|
|
3518
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListFlowVersionResponse({}));
|
|
3519
|
+
}
|
|
3520
|
+
/**
|
|
3521
|
+
* List Flow Versions
|
|
3522
|
+
*
|
|
3523
|
+
* @param request - ListFlowVersionRequest
|
|
3524
|
+
* @returns ListFlowVersionResponse
|
|
3525
|
+
*/
|
|
3526
|
+
async listFlowVersion(request) {
|
|
3527
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3528
|
+
return await this.listFlowVersionWithOptions(request, runtime);
|
|
3529
|
+
}
|
|
2315
3530
|
/**
|
|
2316
3531
|
* Queries the information about a list of quick-response (QR) codes that contain messages.
|
|
2317
3532
|
*
|
|
@@ -2321,15 +3536,24 @@ class Client extends openapi_core_1.default {
|
|
|
2321
3536
|
*/
|
|
2322
3537
|
async listPhoneMessageQrdlWithOptions(request, runtime) {
|
|
2323
3538
|
request.validate();
|
|
2324
|
-
let
|
|
3539
|
+
let query = {};
|
|
2325
3540
|
if (!$dara.isNull(request.custSpaceId)) {
|
|
2326
|
-
|
|
3541
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
3542
|
+
}
|
|
3543
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
3544
|
+
query["OwnerId"] = request.ownerId;
|
|
2327
3545
|
}
|
|
2328
3546
|
if (!$dara.isNull(request.phoneNumber)) {
|
|
2329
|
-
|
|
3547
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
3548
|
+
}
|
|
3549
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
3550
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3551
|
+
}
|
|
3552
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3553
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2330
3554
|
}
|
|
2331
3555
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2332
|
-
|
|
3556
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2333
3557
|
});
|
|
2334
3558
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2335
3559
|
action: "ListPhoneMessageQrdl",
|
|
@@ -2786,6 +4010,136 @@ class Client extends openapi_core_1.default {
|
|
|
2786
4010
|
let runtime = new $dara.RuntimeOptions({});
|
|
2787
4011
|
return await this.modifyPhoneBusinessProfileWithOptions(request, runtime);
|
|
2788
4012
|
}
|
|
4013
|
+
/**
|
|
4014
|
+
* Offline Flow Version
|
|
4015
|
+
*
|
|
4016
|
+
* @param tmpReq - OfflineFlowVersionRequest
|
|
4017
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4018
|
+
* @returns OfflineFlowVersionResponse
|
|
4019
|
+
*/
|
|
4020
|
+
async offlineFlowVersionWithOptions(tmpReq, runtime) {
|
|
4021
|
+
tmpReq.validate();
|
|
4022
|
+
let request = new $_model.OfflineFlowVersionShrinkRequest({});
|
|
4023
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
4024
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
4025
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
4026
|
+
}
|
|
4027
|
+
let query = {};
|
|
4028
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
4029
|
+
query["BizCode"] = request.bizCode;
|
|
4030
|
+
}
|
|
4031
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
4032
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
4033
|
+
}
|
|
4034
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
4035
|
+
query["FlowCode"] = request.flowCode;
|
|
4036
|
+
}
|
|
4037
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
4038
|
+
query["FlowVersion"] = request.flowVersion;
|
|
4039
|
+
}
|
|
4040
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
4041
|
+
query["OwnerId"] = request.ownerId;
|
|
4042
|
+
}
|
|
4043
|
+
if (!$dara.isNull(request.remark)) {
|
|
4044
|
+
query["Remark"] = request.remark;
|
|
4045
|
+
}
|
|
4046
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
4047
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
4048
|
+
}
|
|
4049
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
4050
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
4051
|
+
}
|
|
4052
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4053
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4054
|
+
});
|
|
4055
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4056
|
+
action: "OfflineFlowVersion",
|
|
4057
|
+
version: "2020-06-06",
|
|
4058
|
+
protocol: "HTTPS",
|
|
4059
|
+
pathname: "/",
|
|
4060
|
+
method: "POST",
|
|
4061
|
+
authType: "AK",
|
|
4062
|
+
style: "RPC",
|
|
4063
|
+
reqBodyType: "formData",
|
|
4064
|
+
bodyType: "json",
|
|
4065
|
+
});
|
|
4066
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.OfflineFlowVersionResponse({}));
|
|
4067
|
+
}
|
|
4068
|
+
/**
|
|
4069
|
+
* Offline Flow Version
|
|
4070
|
+
*
|
|
4071
|
+
* @param request - OfflineFlowVersionRequest
|
|
4072
|
+
* @returns OfflineFlowVersionResponse
|
|
4073
|
+
*/
|
|
4074
|
+
async offlineFlowVersion(request) {
|
|
4075
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4076
|
+
return await this.offlineFlowVersionWithOptions(request, runtime);
|
|
4077
|
+
}
|
|
4078
|
+
/**
|
|
4079
|
+
* Online Flow Version
|
|
4080
|
+
*
|
|
4081
|
+
* @param tmpReq - OnlineFlowVersionRequest
|
|
4082
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4083
|
+
* @returns OnlineFlowVersionResponse
|
|
4084
|
+
*/
|
|
4085
|
+
async onlineFlowVersionWithOptions(tmpReq, runtime) {
|
|
4086
|
+
tmpReq.validate();
|
|
4087
|
+
let request = new $_model.OnlineFlowVersionShrinkRequest({});
|
|
4088
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
4089
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
4090
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
4091
|
+
}
|
|
4092
|
+
let query = {};
|
|
4093
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
4094
|
+
query["BizCode"] = request.bizCode;
|
|
4095
|
+
}
|
|
4096
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
4097
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
4098
|
+
}
|
|
4099
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
4100
|
+
query["FlowCode"] = request.flowCode;
|
|
4101
|
+
}
|
|
4102
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
4103
|
+
query["FlowVersion"] = request.flowVersion;
|
|
4104
|
+
}
|
|
4105
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
4106
|
+
query["OwnerId"] = request.ownerId;
|
|
4107
|
+
}
|
|
4108
|
+
if (!$dara.isNull(request.remark)) {
|
|
4109
|
+
query["Remark"] = request.remark;
|
|
4110
|
+
}
|
|
4111
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
4112
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
4113
|
+
}
|
|
4114
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
4115
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
4116
|
+
}
|
|
4117
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4118
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4119
|
+
});
|
|
4120
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4121
|
+
action: "OnlineFlowVersion",
|
|
4122
|
+
version: "2020-06-06",
|
|
4123
|
+
protocol: "HTTPS",
|
|
4124
|
+
pathname: "/",
|
|
4125
|
+
method: "POST",
|
|
4126
|
+
authType: "AK",
|
|
4127
|
+
style: "RPC",
|
|
4128
|
+
reqBodyType: "formData",
|
|
4129
|
+
bodyType: "json",
|
|
4130
|
+
});
|
|
4131
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.OnlineFlowVersionResponse({}));
|
|
4132
|
+
}
|
|
4133
|
+
/**
|
|
4134
|
+
* Online Flow Version
|
|
4135
|
+
*
|
|
4136
|
+
* @param request - OnlineFlowVersionRequest
|
|
4137
|
+
* @returns OnlineFlowVersionResponse
|
|
4138
|
+
*/
|
|
4139
|
+
async onlineFlowVersion(request) {
|
|
4140
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4141
|
+
return await this.onlineFlowVersionWithOptions(request, runtime);
|
|
4142
|
+
}
|
|
2789
4143
|
/**
|
|
2790
4144
|
* Publishes a Flow.
|
|
2791
4145
|
*
|
|
@@ -2901,14 +4255,193 @@ class Client extends openapi_core_1.default {
|
|
|
2901
4255
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2902
4256
|
* @returns QueryChatappPhoneNumbersResponse
|
|
2903
4257
|
*/
|
|
2904
|
-
async queryChatappPhoneNumbersWithOptions(request, runtime) {
|
|
2905
|
-
request.validate();
|
|
4258
|
+
async queryChatappPhoneNumbersWithOptions(request, runtime) {
|
|
4259
|
+
request.validate();
|
|
4260
|
+
let query = {};
|
|
4261
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
4262
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
4263
|
+
}
|
|
4264
|
+
if (!$dara.isNull(request.isvCode)) {
|
|
4265
|
+
query["IsvCode"] = request.isvCode;
|
|
4266
|
+
}
|
|
4267
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
4268
|
+
query["OwnerId"] = request.ownerId;
|
|
4269
|
+
}
|
|
4270
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
4271
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
4272
|
+
}
|
|
4273
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
4274
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
4275
|
+
}
|
|
4276
|
+
if (!$dara.isNull(request.status)) {
|
|
4277
|
+
query["Status"] = request.status;
|
|
4278
|
+
}
|
|
4279
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4280
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4281
|
+
});
|
|
4282
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4283
|
+
action: "QueryChatappPhoneNumbers",
|
|
4284
|
+
version: "2020-06-06",
|
|
4285
|
+
protocol: "HTTPS",
|
|
4286
|
+
pathname: "/",
|
|
4287
|
+
method: "POST",
|
|
4288
|
+
authType: "AK",
|
|
4289
|
+
style: "RPC",
|
|
4290
|
+
reqBodyType: "formData",
|
|
4291
|
+
bodyType: "json",
|
|
4292
|
+
});
|
|
4293
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryChatappPhoneNumbersResponse({}));
|
|
4294
|
+
}
|
|
4295
|
+
/**
|
|
4296
|
+
* Queries phone numbers that receive messages and statuses of these numbers under a specified user.
|
|
4297
|
+
*
|
|
4298
|
+
* @remarks
|
|
4299
|
+
* 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.
|
|
4300
|
+
*
|
|
4301
|
+
* @param request - QueryChatappPhoneNumbersRequest
|
|
4302
|
+
* @returns QueryChatappPhoneNumbersResponse
|
|
4303
|
+
*/
|
|
4304
|
+
async queryChatappPhoneNumbers(request) {
|
|
4305
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4306
|
+
return await this.queryChatappPhoneNumbersWithOptions(request, runtime);
|
|
4307
|
+
}
|
|
4308
|
+
/**
|
|
4309
|
+
* Queries the business information of the account to which a specified phone number is bound.
|
|
4310
|
+
*
|
|
4311
|
+
* @remarks
|
|
4312
|
+
* 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.
|
|
4313
|
+
*
|
|
4314
|
+
* @param request - QueryPhoneBusinessProfileRequest
|
|
4315
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4316
|
+
* @returns QueryPhoneBusinessProfileResponse
|
|
4317
|
+
*/
|
|
4318
|
+
async queryPhoneBusinessProfileWithOptions(request, runtime) {
|
|
4319
|
+
request.validate();
|
|
4320
|
+
let query = {};
|
|
4321
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
4322
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
4323
|
+
}
|
|
4324
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
4325
|
+
query["OwnerId"] = request.ownerId;
|
|
4326
|
+
}
|
|
4327
|
+
if (!$dara.isNull(request.phoneNumber)) {
|
|
4328
|
+
query["PhoneNumber"] = request.phoneNumber;
|
|
4329
|
+
}
|
|
4330
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
4331
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
4332
|
+
}
|
|
4333
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
4334
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
4335
|
+
}
|
|
4336
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4337
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4338
|
+
});
|
|
4339
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4340
|
+
action: "QueryPhoneBusinessProfile",
|
|
4341
|
+
version: "2020-06-06",
|
|
4342
|
+
protocol: "HTTPS",
|
|
4343
|
+
pathname: "/",
|
|
4344
|
+
method: "POST",
|
|
4345
|
+
authType: "AK",
|
|
4346
|
+
style: "RPC",
|
|
4347
|
+
reqBodyType: "formData",
|
|
4348
|
+
bodyType: "json",
|
|
4349
|
+
});
|
|
4350
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryPhoneBusinessProfileResponse({}));
|
|
4351
|
+
}
|
|
4352
|
+
/**
|
|
4353
|
+
* Queries the business information of the account to which a specified phone number is bound.
|
|
4354
|
+
*
|
|
4355
|
+
* @remarks
|
|
4356
|
+
* 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.
|
|
4357
|
+
*
|
|
4358
|
+
* @param request - QueryPhoneBusinessProfileRequest
|
|
4359
|
+
* @returns QueryPhoneBusinessProfileResponse
|
|
4360
|
+
*/
|
|
4361
|
+
async queryPhoneBusinessProfile(request) {
|
|
4362
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4363
|
+
return await this.queryPhoneBusinessProfileWithOptions(request, runtime);
|
|
4364
|
+
}
|
|
4365
|
+
/**
|
|
4366
|
+
* Queries the business information about the WhatsApp Business account (WABA).
|
|
4367
|
+
*
|
|
4368
|
+
* @remarks
|
|
4369
|
+
* 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.
|
|
4370
|
+
*
|
|
4371
|
+
* @param request - QueryWabaBusinessInfoRequest
|
|
4372
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4373
|
+
* @returns QueryWabaBusinessInfoResponse
|
|
4374
|
+
*/
|
|
4375
|
+
async queryWabaBusinessInfoWithOptions(request, runtime) {
|
|
4376
|
+
request.validate();
|
|
4377
|
+
let query = {};
|
|
4378
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
4379
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
4380
|
+
}
|
|
4381
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
4382
|
+
query["OwnerId"] = request.ownerId;
|
|
4383
|
+
}
|
|
4384
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
4385
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
4386
|
+
}
|
|
4387
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
4388
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
4389
|
+
}
|
|
4390
|
+
if (!$dara.isNull(request.wabaId)) {
|
|
4391
|
+
query["WabaId"] = request.wabaId;
|
|
4392
|
+
}
|
|
4393
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4394
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4395
|
+
});
|
|
4396
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4397
|
+
action: "QueryWabaBusinessInfo",
|
|
4398
|
+
version: "2020-06-06",
|
|
4399
|
+
protocol: "HTTPS",
|
|
4400
|
+
pathname: "/",
|
|
4401
|
+
method: "POST",
|
|
4402
|
+
authType: "AK",
|
|
4403
|
+
style: "RPC",
|
|
4404
|
+
reqBodyType: "formData",
|
|
4405
|
+
bodyType: "json",
|
|
4406
|
+
});
|
|
4407
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryWabaBusinessInfoResponse({}));
|
|
4408
|
+
}
|
|
4409
|
+
/**
|
|
4410
|
+
* Queries the business information about the WhatsApp Business account (WABA).
|
|
4411
|
+
*
|
|
4412
|
+
* @remarks
|
|
4413
|
+
* 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.
|
|
4414
|
+
*
|
|
4415
|
+
* @param request - QueryWabaBusinessInfoRequest
|
|
4416
|
+
* @returns QueryWabaBusinessInfoResponse
|
|
4417
|
+
*/
|
|
4418
|
+
async queryWabaBusinessInfo(request) {
|
|
4419
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4420
|
+
return await this.queryWabaBusinessInfoWithOptions(request, runtime);
|
|
4421
|
+
}
|
|
4422
|
+
/**
|
|
4423
|
+
* Retrieve Flow
|
|
4424
|
+
*
|
|
4425
|
+
* @param tmpReq - ReadChatFlowRequest
|
|
4426
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4427
|
+
* @returns ReadChatFlowResponse
|
|
4428
|
+
*/
|
|
4429
|
+
async readChatFlowWithOptions(tmpReq, runtime) {
|
|
4430
|
+
tmpReq.validate();
|
|
4431
|
+
let request = new $_model.ReadChatFlowShrinkRequest({});
|
|
4432
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
4433
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
4434
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
4435
|
+
}
|
|
2906
4436
|
let query = {};
|
|
2907
|
-
if (!$dara.isNull(request.
|
|
2908
|
-
query["
|
|
4437
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
4438
|
+
query["BizCode"] = request.bizCode;
|
|
2909
4439
|
}
|
|
2910
|
-
if (!$dara.isNull(request.
|
|
2911
|
-
query["
|
|
4440
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
4441
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
4442
|
+
}
|
|
4443
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
4444
|
+
query["FlowCode"] = request.flowCode;
|
|
2912
4445
|
}
|
|
2913
4446
|
if (!$dara.isNull(request.ownerId)) {
|
|
2914
4447
|
query["OwnerId"] = request.ownerId;
|
|
@@ -2919,14 +4452,11 @@ class Client extends openapi_core_1.default {
|
|
|
2919
4452
|
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
2920
4453
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
2921
4454
|
}
|
|
2922
|
-
if (!$dara.isNull(request.status)) {
|
|
2923
|
-
query["Status"] = request.status;
|
|
2924
|
-
}
|
|
2925
4455
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2926
4456
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2927
4457
|
});
|
|
2928
4458
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2929
|
-
action: "
|
|
4459
|
+
action: "ReadChatFlow",
|
|
2930
4460
|
version: "2020-06-06",
|
|
2931
4461
|
protocol: "HTTPS",
|
|
2932
4462
|
pathname: "/",
|
|
@@ -2936,43 +4466,34 @@ class Client extends openapi_core_1.default {
|
|
|
2936
4466
|
reqBodyType: "formData",
|
|
2937
4467
|
bodyType: "json",
|
|
2938
4468
|
});
|
|
2939
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
4469
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReadChatFlowResponse({}));
|
|
2940
4470
|
}
|
|
2941
4471
|
/**
|
|
2942
|
-
*
|
|
2943
|
-
*
|
|
2944
|
-
* @remarks
|
|
2945
|
-
* 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.
|
|
4472
|
+
* Retrieve Flow
|
|
2946
4473
|
*
|
|
2947
|
-
* @param request -
|
|
2948
|
-
* @returns
|
|
4474
|
+
* @param request - ReadChatFlowRequest
|
|
4475
|
+
* @returns ReadChatFlowResponse
|
|
2949
4476
|
*/
|
|
2950
|
-
async
|
|
4477
|
+
async readChatFlow(request) {
|
|
2951
4478
|
let runtime = new $dara.RuntimeOptions({});
|
|
2952
|
-
return await this.
|
|
4479
|
+
return await this.readChatFlowWithOptions(request, runtime);
|
|
2953
4480
|
}
|
|
2954
4481
|
/**
|
|
2955
|
-
*
|
|
2956
|
-
*
|
|
2957
|
-
* @remarks
|
|
2958
|
-
* 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.
|
|
4482
|
+
* View chatFlow log settings
|
|
2959
4483
|
*
|
|
2960
|
-
* @param request -
|
|
4484
|
+
* @param request - ReadChatFlowLogSettingRequest
|
|
2961
4485
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2962
|
-
* @returns
|
|
4486
|
+
* @returns ReadChatFlowLogSettingResponse
|
|
2963
4487
|
*/
|
|
2964
|
-
async
|
|
4488
|
+
async readChatFlowLogSettingWithOptions(request, runtime) {
|
|
2965
4489
|
request.validate();
|
|
2966
4490
|
let query = {};
|
|
2967
|
-
if (!$dara.isNull(request.
|
|
2968
|
-
query["
|
|
4491
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
4492
|
+
query["FlowCode"] = request.flowCode;
|
|
2969
4493
|
}
|
|
2970
4494
|
if (!$dara.isNull(request.ownerId)) {
|
|
2971
4495
|
query["OwnerId"] = request.ownerId;
|
|
2972
4496
|
}
|
|
2973
|
-
if (!$dara.isNull(request.phoneNumber)) {
|
|
2974
|
-
query["PhoneNumber"] = request.phoneNumber;
|
|
2975
|
-
}
|
|
2976
4497
|
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
2977
4498
|
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
2978
4499
|
}
|
|
@@ -2983,7 +4504,7 @@ class Client extends openapi_core_1.default {
|
|
|
2983
4504
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2984
4505
|
});
|
|
2985
4506
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2986
|
-
action: "
|
|
4507
|
+
action: "ReadChatFlowLogSetting",
|
|
2987
4508
|
version: "2020-06-06",
|
|
2988
4509
|
protocol: "HTTPS",
|
|
2989
4510
|
pathname: "/",
|
|
@@ -2993,36 +4514,44 @@ class Client extends openapi_core_1.default {
|
|
|
2993
4514
|
reqBodyType: "formData",
|
|
2994
4515
|
bodyType: "json",
|
|
2995
4516
|
});
|
|
2996
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
4517
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReadChatFlowLogSettingResponse({}));
|
|
2997
4518
|
}
|
|
2998
4519
|
/**
|
|
2999
|
-
*
|
|
3000
|
-
*
|
|
3001
|
-
* @remarks
|
|
3002
|
-
* 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.
|
|
4520
|
+
* View chatFlow log settings
|
|
3003
4521
|
*
|
|
3004
|
-
* @param request -
|
|
3005
|
-
* @returns
|
|
4522
|
+
* @param request - ReadChatFlowLogSettingRequest
|
|
4523
|
+
* @returns ReadChatFlowLogSettingResponse
|
|
3006
4524
|
*/
|
|
3007
|
-
async
|
|
4525
|
+
async readChatFlowLogSetting(request) {
|
|
3008
4526
|
let runtime = new $dara.RuntimeOptions({});
|
|
3009
|
-
return await this.
|
|
4527
|
+
return await this.readChatFlowLogSettingWithOptions(request, runtime);
|
|
3010
4528
|
}
|
|
3011
4529
|
/**
|
|
3012
|
-
*
|
|
3013
|
-
*
|
|
3014
|
-
* @remarks
|
|
3015
|
-
* 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.
|
|
4530
|
+
* Get Flow Version
|
|
3016
4531
|
*
|
|
3017
|
-
* @param
|
|
4532
|
+
* @param tmpReq - ReadFlowVersionRequest
|
|
3018
4533
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3019
|
-
* @returns
|
|
4534
|
+
* @returns ReadFlowVersionResponse
|
|
3020
4535
|
*/
|
|
3021
|
-
async
|
|
3022
|
-
|
|
4536
|
+
async readFlowVersionWithOptions(tmpReq, runtime) {
|
|
4537
|
+
tmpReq.validate();
|
|
4538
|
+
let request = new $_model.ReadFlowVersionShrinkRequest({});
|
|
4539
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
4540
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
4541
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
4542
|
+
}
|
|
3023
4543
|
let query = {};
|
|
3024
|
-
if (!$dara.isNull(request.
|
|
3025
|
-
query["
|
|
4544
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
4545
|
+
query["BizCode"] = request.bizCode;
|
|
4546
|
+
}
|
|
4547
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
4548
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
4549
|
+
}
|
|
4550
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
4551
|
+
query["FlowCode"] = request.flowCode;
|
|
4552
|
+
}
|
|
4553
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
4554
|
+
query["FlowVersion"] = request.flowVersion;
|
|
3026
4555
|
}
|
|
3027
4556
|
if (!$dara.isNull(request.ownerId)) {
|
|
3028
4557
|
query["OwnerId"] = request.ownerId;
|
|
@@ -3033,14 +4562,14 @@ class Client extends openapi_core_1.default {
|
|
|
3033
4562
|
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
3034
4563
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3035
4564
|
}
|
|
3036
|
-
if (!$dara.isNull(request.
|
|
3037
|
-
query["
|
|
4565
|
+
if (!$dara.isNull(request.status)) {
|
|
4566
|
+
query["Status"] = request.status;
|
|
3038
4567
|
}
|
|
3039
4568
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3040
4569
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3041
4570
|
});
|
|
3042
4571
|
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3043
|
-
action: "
|
|
4572
|
+
action: "ReadFlowVersion",
|
|
3044
4573
|
version: "2020-06-06",
|
|
3045
4574
|
protocol: "HTTPS",
|
|
3046
4575
|
pathname: "/",
|
|
@@ -3050,20 +4579,17 @@ class Client extends openapi_core_1.default {
|
|
|
3050
4579
|
reqBodyType: "formData",
|
|
3051
4580
|
bodyType: "json",
|
|
3052
4581
|
});
|
|
3053
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.
|
|
4582
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReadFlowVersionResponse({}));
|
|
3054
4583
|
}
|
|
3055
4584
|
/**
|
|
3056
|
-
*
|
|
3057
|
-
*
|
|
3058
|
-
* @remarks
|
|
3059
|
-
* 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.
|
|
4585
|
+
* Get Flow Version
|
|
3060
4586
|
*
|
|
3061
|
-
* @param request -
|
|
3062
|
-
* @returns
|
|
4587
|
+
* @param request - ReadFlowVersionRequest
|
|
4588
|
+
* @returns ReadFlowVersionResponse
|
|
3063
4589
|
*/
|
|
3064
|
-
async
|
|
4590
|
+
async readFlowVersion(request) {
|
|
3065
4591
|
let runtime = new $dara.RuntimeOptions({});
|
|
3066
|
-
return await this.
|
|
4592
|
+
return await this.readFlowVersionWithOptions(request, runtime);
|
|
3067
4593
|
}
|
|
3068
4594
|
/**
|
|
3069
4595
|
* Sends a message to multiple phone numbers by using ChatAPP at a time.
|
|
@@ -3244,6 +4770,9 @@ class Client extends openapi_core_1.default {
|
|
|
3244
4770
|
if (!$dara.isNull(request.productActionShrink)) {
|
|
3245
4771
|
body["ProductAction"] = request.productActionShrink;
|
|
3246
4772
|
}
|
|
4773
|
+
if (!$dara.isNull(request.recipientType)) {
|
|
4774
|
+
body["RecipientType"] = request.recipientType;
|
|
4775
|
+
}
|
|
3247
4776
|
if (!$dara.isNull(request.tag)) {
|
|
3248
4777
|
body["Tag"] = request.tag;
|
|
3249
4778
|
}
|
|
@@ -3494,6 +5023,191 @@ class Client extends openapi_core_1.default {
|
|
|
3494
5023
|
let runtime = new $dara.RuntimeOptions({});
|
|
3495
5024
|
return await this.updateAccountWebhookWithOptions(request, runtime);
|
|
3496
5025
|
}
|
|
5026
|
+
/**
|
|
5027
|
+
* Get Process
|
|
5028
|
+
*
|
|
5029
|
+
* @param tmpReq - UpdateChatFlowRequest
|
|
5030
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5031
|
+
* @returns UpdateChatFlowResponse
|
|
5032
|
+
*/
|
|
5033
|
+
async updateChatFlowWithOptions(tmpReq, runtime) {
|
|
5034
|
+
tmpReq.validate();
|
|
5035
|
+
let request = new $_model.UpdateChatFlowShrinkRequest({});
|
|
5036
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
5037
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
5038
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
5039
|
+
}
|
|
5040
|
+
let query = {};
|
|
5041
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
5042
|
+
query["BizCode"] = request.bizCode;
|
|
5043
|
+
}
|
|
5044
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
5045
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
5046
|
+
}
|
|
5047
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
5048
|
+
query["FlowCode"] = request.flowCode;
|
|
5049
|
+
}
|
|
5050
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
5051
|
+
query["OwnerId"] = request.ownerId;
|
|
5052
|
+
}
|
|
5053
|
+
if (!$dara.isNull(request.remark)) {
|
|
5054
|
+
query["Remark"] = request.remark;
|
|
5055
|
+
}
|
|
5056
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
5057
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5058
|
+
}
|
|
5059
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
5060
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5061
|
+
}
|
|
5062
|
+
if (!$dara.isNull(request.title)) {
|
|
5063
|
+
query["Title"] = request.title;
|
|
5064
|
+
}
|
|
5065
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5066
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
5067
|
+
});
|
|
5068
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5069
|
+
action: "UpdateChatFlow",
|
|
5070
|
+
version: "2020-06-06",
|
|
5071
|
+
protocol: "HTTPS",
|
|
5072
|
+
pathname: "/",
|
|
5073
|
+
method: "POST",
|
|
5074
|
+
authType: "AK",
|
|
5075
|
+
style: "RPC",
|
|
5076
|
+
reqBodyType: "formData",
|
|
5077
|
+
bodyType: "json",
|
|
5078
|
+
});
|
|
5079
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateChatFlowResponse({}));
|
|
5080
|
+
}
|
|
5081
|
+
/**
|
|
5082
|
+
* Get Process
|
|
5083
|
+
*
|
|
5084
|
+
* @param request - UpdateChatFlowRequest
|
|
5085
|
+
* @returns UpdateChatFlowResponse
|
|
5086
|
+
*/
|
|
5087
|
+
async updateChatFlow(request) {
|
|
5088
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5089
|
+
return await this.updateChatFlowWithOptions(request, runtime);
|
|
5090
|
+
}
|
|
5091
|
+
/**
|
|
5092
|
+
* Modify chatFlow log settings
|
|
5093
|
+
*
|
|
5094
|
+
* @param request - UpdateChatFlowLogSettingRequest
|
|
5095
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5096
|
+
* @returns UpdateChatFlowLogSettingResponse
|
|
5097
|
+
*/
|
|
5098
|
+
async updateChatFlowLogSettingWithOptions(request, runtime) {
|
|
5099
|
+
request.validate();
|
|
5100
|
+
let query = {};
|
|
5101
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
5102
|
+
query["FlowCode"] = request.flowCode;
|
|
5103
|
+
}
|
|
5104
|
+
if (!$dara.isNull(request.id)) {
|
|
5105
|
+
query["Id"] = request.id;
|
|
5106
|
+
}
|
|
5107
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
5108
|
+
query["OwnerId"] = request.ownerId;
|
|
5109
|
+
}
|
|
5110
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
5111
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5112
|
+
}
|
|
5113
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
5114
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5115
|
+
}
|
|
5116
|
+
if (!$dara.isNull(request.status)) {
|
|
5117
|
+
query["Status"] = request.status;
|
|
5118
|
+
}
|
|
5119
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5120
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
5121
|
+
});
|
|
5122
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5123
|
+
action: "UpdateChatFlowLogSetting",
|
|
5124
|
+
version: "2020-06-06",
|
|
5125
|
+
protocol: "HTTPS",
|
|
5126
|
+
pathname: "/",
|
|
5127
|
+
method: "POST",
|
|
5128
|
+
authType: "AK",
|
|
5129
|
+
style: "RPC",
|
|
5130
|
+
reqBodyType: "formData",
|
|
5131
|
+
bodyType: "json",
|
|
5132
|
+
});
|
|
5133
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateChatFlowLogSettingResponse({}));
|
|
5134
|
+
}
|
|
5135
|
+
/**
|
|
5136
|
+
* Modify chatFlow log settings
|
|
5137
|
+
*
|
|
5138
|
+
* @param request - UpdateChatFlowLogSettingRequest
|
|
5139
|
+
* @returns UpdateChatFlowLogSettingResponse
|
|
5140
|
+
*/
|
|
5141
|
+
async updateChatFlowLogSetting(request) {
|
|
5142
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5143
|
+
return await this.updateChatFlowLogSettingWithOptions(request, runtime);
|
|
5144
|
+
}
|
|
5145
|
+
/**
|
|
5146
|
+
* UpdateChatGroup
|
|
5147
|
+
*
|
|
5148
|
+
* @param request - UpdateChatGroupRequest
|
|
5149
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5150
|
+
* @returns UpdateChatGroupResponse
|
|
5151
|
+
*/
|
|
5152
|
+
async updateChatGroupWithOptions(request, runtime) {
|
|
5153
|
+
request.validate();
|
|
5154
|
+
let query = {};
|
|
5155
|
+
if (!$dara.isNull(request.businessNumber)) {
|
|
5156
|
+
query["BusinessNumber"] = request.businessNumber;
|
|
5157
|
+
}
|
|
5158
|
+
if (!$dara.isNull(request.channelType)) {
|
|
5159
|
+
query["ChannelType"] = request.channelType;
|
|
5160
|
+
}
|
|
5161
|
+
if (!$dara.isNull(request.custSpaceId)) {
|
|
5162
|
+
query["CustSpaceId"] = request.custSpaceId;
|
|
5163
|
+
}
|
|
5164
|
+
if (!$dara.isNull(request.description)) {
|
|
5165
|
+
query["Description"] = request.description;
|
|
5166
|
+
}
|
|
5167
|
+
if (!$dara.isNull(request.groupId)) {
|
|
5168
|
+
query["GroupId"] = request.groupId;
|
|
5169
|
+
}
|
|
5170
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
5171
|
+
query["OwnerId"] = request.ownerId;
|
|
5172
|
+
}
|
|
5173
|
+
if (!$dara.isNull(request.profilePictureFile)) {
|
|
5174
|
+
query["ProfilePictureFile"] = request.profilePictureFile;
|
|
5175
|
+
}
|
|
5176
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
5177
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5178
|
+
}
|
|
5179
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
5180
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5181
|
+
}
|
|
5182
|
+
if (!$dara.isNull(request.subject)) {
|
|
5183
|
+
query["Subject"] = request.subject;
|
|
5184
|
+
}
|
|
5185
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5186
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
5187
|
+
});
|
|
5188
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5189
|
+
action: "UpdateChatGroup",
|
|
5190
|
+
version: "2020-06-06",
|
|
5191
|
+
protocol: "HTTPS",
|
|
5192
|
+
pathname: "/",
|
|
5193
|
+
method: "POST",
|
|
5194
|
+
authType: "AK",
|
|
5195
|
+
style: "RPC",
|
|
5196
|
+
reqBodyType: "formData",
|
|
5197
|
+
bodyType: "json",
|
|
5198
|
+
});
|
|
5199
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateChatGroupResponse({}));
|
|
5200
|
+
}
|
|
5201
|
+
/**
|
|
5202
|
+
* UpdateChatGroup
|
|
5203
|
+
*
|
|
5204
|
+
* @param request - UpdateChatGroupRequest
|
|
5205
|
+
* @returns UpdateChatGroupResponse
|
|
5206
|
+
*/
|
|
5207
|
+
async updateChatGroup(request) {
|
|
5208
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5209
|
+
return await this.updateChatGroupWithOptions(request, runtime);
|
|
5210
|
+
}
|
|
3497
5211
|
/**
|
|
3498
5212
|
* Modifies the business settings of a phone number.
|
|
3499
5213
|
*
|
|
@@ -3680,6 +5394,74 @@ class Client extends openapi_core_1.default {
|
|
|
3680
5394
|
let runtime = new $dara.RuntimeOptions({});
|
|
3681
5395
|
return await this.updateFlowJSONAssetWithOptions(request, runtime);
|
|
3682
5396
|
}
|
|
5397
|
+
/**
|
|
5398
|
+
* Update flow version, used for updating the flow DSL on the canvas
|
|
5399
|
+
*
|
|
5400
|
+
* @param tmpReq - UpdateFlowVersionRequest
|
|
5401
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5402
|
+
* @returns UpdateFlowVersionResponse
|
|
5403
|
+
*/
|
|
5404
|
+
async updateFlowVersionWithOptions(tmpReq, runtime) {
|
|
5405
|
+
tmpReq.validate();
|
|
5406
|
+
let request = new $_model.UpdateFlowVersionShrinkRequest({});
|
|
5407
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
5408
|
+
if (!$dara.isNull(tmpReq.bizExtend)) {
|
|
5409
|
+
request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
|
|
5410
|
+
}
|
|
5411
|
+
let query = {};
|
|
5412
|
+
if (!$dara.isNull(request.bizCode)) {
|
|
5413
|
+
query["BizCode"] = request.bizCode;
|
|
5414
|
+
}
|
|
5415
|
+
if (!$dara.isNull(request.bizExtendShrink)) {
|
|
5416
|
+
query["BizExtend"] = request.bizExtendShrink;
|
|
5417
|
+
}
|
|
5418
|
+
if (!$dara.isNull(request.flowCode)) {
|
|
5419
|
+
query["FlowCode"] = request.flowCode;
|
|
5420
|
+
}
|
|
5421
|
+
if (!$dara.isNull(request.flowVersion)) {
|
|
5422
|
+
query["FlowVersion"] = request.flowVersion;
|
|
5423
|
+
}
|
|
5424
|
+
if (!$dara.isNull(request.flowViewModel)) {
|
|
5425
|
+
query["FlowViewModel"] = request.flowViewModel;
|
|
5426
|
+
}
|
|
5427
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
5428
|
+
query["OwnerId"] = request.ownerId;
|
|
5429
|
+
}
|
|
5430
|
+
if (!$dara.isNull(request.remark)) {
|
|
5431
|
+
query["Remark"] = request.remark;
|
|
5432
|
+
}
|
|
5433
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
5434
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
5435
|
+
}
|
|
5436
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
5437
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
5438
|
+
}
|
|
5439
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5440
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
5441
|
+
});
|
|
5442
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5443
|
+
action: "UpdateFlowVersion",
|
|
5444
|
+
version: "2020-06-06",
|
|
5445
|
+
protocol: "HTTPS",
|
|
5446
|
+
pathname: "/",
|
|
5447
|
+
method: "POST",
|
|
5448
|
+
authType: "AK",
|
|
5449
|
+
style: "RPC",
|
|
5450
|
+
reqBodyType: "formData",
|
|
5451
|
+
bodyType: "json",
|
|
5452
|
+
});
|
|
5453
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateFlowVersionResponse({}));
|
|
5454
|
+
}
|
|
5455
|
+
/**
|
|
5456
|
+
* Update flow version, used for updating the flow DSL on the canvas
|
|
5457
|
+
*
|
|
5458
|
+
* @param request - UpdateFlowVersionRequest
|
|
5459
|
+
* @returns UpdateFlowVersionResponse
|
|
5460
|
+
*/
|
|
5461
|
+
async updateFlowVersion(request) {
|
|
5462
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5463
|
+
return await this.updateFlowVersionWithOptions(request, runtime);
|
|
5464
|
+
}
|
|
3683
5465
|
/**
|
|
3684
5466
|
* Updates the encryption public key of a phone number.
|
|
3685
5467
|
*
|