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