@alicloud/cams20200606 2.2.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 (449) hide show
  1. package/dist/client.d.ts +345 -42
  2. package/dist/client.js +1572 -288
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ChatappBindWabaResponseBodyData.d.ts +2 -0
  5. package/dist/models/ChatappBindWabaResponseBodyData.js +2 -0
  6. package/dist/models/ChatappBindWabaResponseBodyData.js.map +1 -1
  7. package/dist/models/ChatappSyncPhoneNumberResponseBody.d.ts +14 -1
  8. package/dist/models/ChatappSyncPhoneNumberResponseBody.js.map +1 -1
  9. package/dist/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.d.ts +34 -4
  10. package/dist/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.js.map +1 -1
  11. package/dist/models/ChatappVerifyAndRegisterResponseBody.d.ts +13 -0
  12. package/dist/models/ChatappVerifyAndRegisterResponseBody.js.map +1 -1
  13. package/dist/models/CreateChatFlowByImportRequest.d.ts +58 -0
  14. package/dist/models/CreateChatFlowByImportRequest.js +75 -0
  15. package/dist/models/CreateChatFlowByImportRequest.js.map +1 -0
  16. package/dist/models/CreateChatFlowByImportResponse.d.ts +19 -0
  17. package/dist/models/CreateChatFlowByImportResponse.js +69 -0
  18. package/dist/models/CreateChatFlowByImportResponse.js.map +1 -0
  19. package/dist/models/CreateChatFlowByImportResponseBody.d.ts +63 -0
  20. package/dist/models/CreateChatFlowByImportResponseBody.js +71 -0
  21. package/dist/models/CreateChatFlowByImportResponseBody.js.map +1 -0
  22. package/dist/models/CreateChatFlowByImportShrinkRequest.d.ts +56 -0
  23. package/dist/models/CreateChatFlowByImportShrinkRequest.js +72 -0
  24. package/dist/models/CreateChatFlowByImportShrinkRequest.js.map +1 -0
  25. package/dist/models/CreateChatFlowLogSettingRequest.d.ts +24 -0
  26. package/dist/models/CreateChatFlowLogSettingRequest.js +64 -0
  27. package/dist/models/CreateChatFlowLogSettingRequest.js.map +1 -0
  28. package/dist/models/CreateChatFlowLogSettingResponse.d.ts +19 -0
  29. package/dist/models/CreateChatFlowLogSettingResponse.js +69 -0
  30. package/dist/models/CreateChatFlowLogSettingResponse.js.map +1 -0
  31. package/dist/models/CreateChatFlowLogSettingResponseBody.d.ts +63 -0
  32. package/dist/models/CreateChatFlowLogSettingResponseBody.js +71 -0
  33. package/dist/models/CreateChatFlowLogSettingResponseBody.js.map +1 -0
  34. package/dist/models/CreateChatFlowRequest.d.ts +58 -0
  35. package/dist/models/CreateChatFlowRequest.js +75 -0
  36. package/dist/models/CreateChatFlowRequest.js.map +1 -0
  37. package/dist/models/CreateChatFlowResponse.d.ts +19 -0
  38. package/dist/models/CreateChatFlowResponse.js +69 -0
  39. package/dist/models/CreateChatFlowResponse.js.map +1 -0
  40. package/dist/models/CreateChatFlowResponseBody.d.ts +67 -0
  41. package/dist/models/CreateChatFlowResponseBody.js +76 -0
  42. package/dist/models/CreateChatFlowResponseBody.js.map +1 -0
  43. package/dist/models/CreateChatFlowShrinkRequest.d.ts +56 -0
  44. package/dist/models/CreateChatFlowShrinkRequest.js +72 -0
  45. package/dist/models/CreateChatFlowShrinkRequest.js.map +1 -0
  46. package/dist/models/CreateFlowVersionRequest.d.ts +58 -0
  47. package/dist/models/CreateFlowVersionRequest.js +75 -0
  48. package/dist/models/CreateFlowVersionRequest.js.map +1 -0
  49. package/dist/models/CreateFlowVersionResponse.d.ts +19 -0
  50. package/dist/models/CreateFlowVersionResponse.js +69 -0
  51. package/dist/models/CreateFlowVersionResponse.js.map +1 -0
  52. package/dist/models/CreateFlowVersionResponseBody.d.ts +63 -0
  53. package/dist/models/CreateFlowVersionResponseBody.js +71 -0
  54. package/dist/models/CreateFlowVersionResponseBody.js.map +1 -0
  55. package/dist/models/CreateFlowVersionShrinkRequest.d.ts +56 -0
  56. package/dist/models/CreateFlowVersionShrinkRequest.js +72 -0
  57. package/dist/models/CreateFlowVersionShrinkRequest.js.map +1 -0
  58. package/dist/models/DeleteChatFlowRequest.d.ts +42 -0
  59. package/dist/models/DeleteChatFlowRequest.js +71 -0
  60. package/dist/models/DeleteChatFlowRequest.js.map +1 -0
  61. package/dist/models/DeleteChatFlowResponse.d.ts +19 -0
  62. package/dist/models/DeleteChatFlowResponse.js +69 -0
  63. package/dist/models/DeleteChatFlowResponse.js.map +1 -0
  64. package/dist/models/DeleteChatFlowResponseBody.d.ts +63 -0
  65. package/dist/models/DeleteChatFlowResponseBody.js +71 -0
  66. package/dist/models/DeleteChatFlowResponseBody.js.map +1 -0
  67. package/dist/models/DeleteChatFlowShrinkRequest.d.ts +40 -0
  68. package/dist/models/DeleteChatFlowShrinkRequest.js +68 -0
  69. package/dist/models/DeleteChatFlowShrinkRequest.js.map +1 -0
  70. package/dist/models/DeleteFlowVersionRequest.d.ts +50 -0
  71. package/dist/models/{BeeBotAssociateRequest.js → DeleteFlowVersionRequest.js} +20 -20
  72. package/dist/models/DeleteFlowVersionRequest.js.map +1 -0
  73. package/dist/models/DeleteFlowVersionResponse.d.ts +19 -0
  74. package/dist/models/DeleteFlowVersionResponse.js +69 -0
  75. package/dist/models/DeleteFlowVersionResponse.js.map +1 -0
  76. package/dist/models/{BeeBotChatResponseBody.d.ts → DeleteFlowVersionResponseBody.d.ts} +25 -13
  77. package/dist/models/DeleteFlowVersionResponseBody.js +71 -0
  78. package/dist/models/DeleteFlowVersionResponseBody.js.map +1 -0
  79. package/dist/models/DeleteFlowVersionShrinkRequest.d.ts +48 -0
  80. package/dist/models/{BeeBotAssociateShrinkRequest.js → DeleteFlowVersionShrinkRequest.js} +18 -18
  81. package/dist/models/DeleteFlowVersionShrinkRequest.js.map +1 -0
  82. package/dist/models/FlowBindPhoneRequest.d.ts +69 -0
  83. package/dist/models/FlowBindPhoneRequest.js +77 -0
  84. package/dist/models/FlowBindPhoneRequest.js.map +1 -0
  85. package/dist/models/FlowBindPhoneResponse.d.ts +19 -0
  86. package/dist/models/FlowBindPhoneResponse.js +69 -0
  87. package/dist/models/FlowBindPhoneResponse.js.map +1 -0
  88. package/dist/models/FlowBindPhoneResponseBody.d.ts +61 -0
  89. package/dist/models/FlowBindPhoneResponseBody.js +68 -0
  90. package/dist/models/FlowBindPhoneResponseBody.js.map +1 -0
  91. package/dist/models/FlowBindPhoneShrinkRequest.d.ts +69 -0
  92. package/dist/models/FlowBindPhoneShrinkRequest.js +74 -0
  93. package/dist/models/FlowBindPhoneShrinkRequest.js.map +1 -0
  94. package/dist/models/FlowRebindPhoneRequest.d.ts +69 -0
  95. package/dist/models/FlowRebindPhoneRequest.js +77 -0
  96. package/dist/models/FlowRebindPhoneRequest.js.map +1 -0
  97. package/dist/models/{BeeBotAssociateResponse.d.ts → FlowRebindPhoneResponse.d.ts} +3 -3
  98. package/dist/models/{BeeBotAssociateResponse.js → FlowRebindPhoneResponse.js} +6 -6
  99. package/dist/models/{BeeBotAssociateResponse.js.map → FlowRebindPhoneResponse.js.map} +1 -1
  100. package/dist/models/FlowRebindPhoneResponseBody.d.ts +61 -0
  101. package/dist/models/FlowRebindPhoneResponseBody.js +68 -0
  102. package/dist/models/FlowRebindPhoneResponseBody.js.map +1 -0
  103. package/dist/models/FlowRebindPhoneShrinkRequest.d.ts +69 -0
  104. package/dist/models/FlowRebindPhoneShrinkRequest.js +74 -0
  105. package/dist/models/FlowRebindPhoneShrinkRequest.js.map +1 -0
  106. package/dist/models/FlowUnbindPhoneRequest.d.ts +47 -0
  107. package/dist/models/FlowUnbindPhoneRequest.js +73 -0
  108. package/dist/models/FlowUnbindPhoneRequest.js.map +1 -0
  109. package/dist/models/FlowUnbindPhoneResponse.d.ts +19 -0
  110. package/dist/models/{BeeBotAssociateResponseBodyData.js → FlowUnbindPhoneResponse.js} +16 -13
  111. package/dist/models/FlowUnbindPhoneResponse.js.map +1 -0
  112. package/dist/models/FlowUnbindPhoneResponseBody.d.ts +53 -0
  113. package/dist/models/{BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.js → FlowUnbindPhoneResponseBody.js} +14 -8
  114. package/dist/models/FlowUnbindPhoneResponseBody.js.map +1 -0
  115. package/dist/models/FlowUnbindPhoneShrinkRequest.d.ts +47 -0
  116. package/dist/models/FlowUnbindPhoneShrinkRequest.js +70 -0
  117. package/dist/models/FlowUnbindPhoneShrinkRequest.js.map +1 -0
  118. package/dist/models/GetChatFlowMetricRequest.d.ts +76 -0
  119. package/dist/models/GetChatFlowMetricRequest.js +79 -0
  120. package/dist/models/GetChatFlowMetricRequest.js.map +1 -0
  121. package/dist/models/GetChatFlowMetricResponse.d.ts +19 -0
  122. package/dist/models/GetChatFlowMetricResponse.js +69 -0
  123. package/dist/models/GetChatFlowMetricResponse.js.map +1 -0
  124. package/dist/models/GetChatFlowMetricResponseBody.d.ts +63 -0
  125. package/dist/models/{BeeBotChatResponseBody.js → GetChatFlowMetricResponseBody.js} +9 -8
  126. package/dist/models/GetChatFlowMetricResponseBody.js.map +1 -0
  127. package/dist/models/GetChatFlowMetricShrinkRequest.d.ts +74 -0
  128. package/dist/models/GetChatFlowMetricShrinkRequest.js +76 -0
  129. package/dist/models/GetChatFlowMetricShrinkRequest.js.map +1 -0
  130. package/dist/models/{BeeBotAssociateResponseBodyDataAssociate.d.ts → GetChatFlowTemplateRequest.d.ts} +12 -9
  131. package/dist/models/GetChatFlowTemplateRequest.js +66 -0
  132. package/dist/models/GetChatFlowTemplateRequest.js.map +1 -0
  133. package/dist/models/GetChatFlowTemplateResponse.d.ts +19 -0
  134. package/dist/models/GetChatFlowTemplateResponse.js +69 -0
  135. package/dist/models/GetChatFlowTemplateResponse.js.map +1 -0
  136. package/dist/models/GetChatFlowTemplateResponseBody.d.ts +59 -0
  137. package/dist/models/{BeeBotAssociateResponseBody.js → GetChatFlowTemplateResponseBody.js} +8 -6
  138. package/dist/models/GetChatFlowTemplateResponseBody.js.map +1 -0
  139. package/dist/models/GetChatFlowTemplateResponseBodyData.d.ts +23 -0
  140. package/dist/models/{BeeBotAssociateResponseBodyDataAssociate.js → GetChatFlowTemplateResponseBodyData.js} +9 -10
  141. package/dist/models/GetChatFlowTemplateResponseBodyData.js.map +1 -0
  142. package/dist/models/GetChatappVerifyCodeResponseBody.d.ts +13 -0
  143. package/dist/models/GetChatappVerifyCodeResponseBody.js.map +1 -1
  144. package/dist/models/{BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.d.ts → ListBindingRelationsForFlowVersionRequest.d.ts} +10 -7
  145. package/dist/models/ListBindingRelationsForFlowVersionRequest.js +66 -0
  146. package/dist/models/ListBindingRelationsForFlowVersionRequest.js.map +1 -0
  147. package/dist/models/ListBindingRelationsForFlowVersionResponse.d.ts +19 -0
  148. package/dist/models/ListBindingRelationsForFlowVersionResponse.js +69 -0
  149. package/dist/models/ListBindingRelationsForFlowVersionResponse.js.map +1 -0
  150. package/dist/models/ListBindingRelationsForFlowVersionResponseBody.d.ts +37 -0
  151. package/dist/models/ListBindingRelationsForFlowVersionResponseBody.js +71 -0
  152. package/dist/models/ListBindingRelationsForFlowVersionResponseBody.js.map +1 -0
  153. package/dist/models/ListChatFlowRequest.d.ts +87 -0
  154. package/dist/models/ListChatFlowRequest.js +81 -0
  155. package/dist/models/ListChatFlowRequest.js.map +1 -0
  156. package/dist/models/{BeeBotChatResponse.d.ts → ListChatFlowResponse.d.ts} +3 -3
  157. package/dist/models/{BeeBotChatResponse.js → ListChatFlowResponse.js} +6 -6
  158. package/dist/models/ListChatFlowResponse.js.map +1 -0
  159. package/dist/models/ListChatFlowResponseBody.d.ts +63 -0
  160. package/dist/models/ListChatFlowResponseBody.js +71 -0
  161. package/dist/models/ListChatFlowResponseBody.js.map +1 -0
  162. package/dist/models/ListChatFlowShrinkRequest.d.ts +85 -0
  163. package/dist/models/ListChatFlowShrinkRequest.js +78 -0
  164. package/dist/models/ListChatFlowShrinkRequest.js.map +1 -0
  165. package/dist/models/ListChatFlowTemplateRequest.d.ts +64 -0
  166. package/dist/models/ListChatFlowTemplateRequest.js +72 -0
  167. package/dist/models/ListChatFlowTemplateRequest.js.map +1 -0
  168. package/dist/models/ListChatFlowTemplateResponse.d.ts +19 -0
  169. package/dist/models/ListChatFlowTemplateResponse.js +69 -0
  170. package/dist/models/ListChatFlowTemplateResponse.js.map +1 -0
  171. package/dist/models/ListChatFlowTemplateResponseBody.d.ts +59 -0
  172. package/dist/models/ListChatFlowTemplateResponseBody.js +72 -0
  173. package/dist/models/ListChatFlowTemplateResponseBody.js.map +1 -0
  174. package/dist/models/ListChatFlowTemplateResponseBodyData.d.ts +23 -0
  175. package/dist/models/{BeeBotChatResponseBodyDataMessagesRecommends.js → ListChatFlowTemplateResponseBodyData.js} +9 -10
  176. package/dist/models/ListChatFlowTemplateResponseBodyData.js.map +1 -0
  177. package/dist/models/ListChatappTemplateRequest.d.ts +12 -10
  178. package/dist/models/ListChatappTemplateRequest.js.map +1 -1
  179. package/dist/models/ListChatappTemplateResponseBody.d.ts +8 -2
  180. package/dist/models/ListChatappTemplateResponseBody.js.map +1 -1
  181. package/dist/models/ListChatappTemplateResponseBodyListTemplate.d.ts +17 -17
  182. package/dist/models/ListChatappTemplateShrinkRequest.d.ts +12 -10
  183. package/dist/models/ListChatappTemplateShrinkRequest.js.map +1 -1
  184. package/dist/models/ListFlowVersionRequest.d.ts +66 -0
  185. package/dist/models/ListFlowVersionRequest.js +77 -0
  186. package/dist/models/ListFlowVersionRequest.js.map +1 -0
  187. package/dist/models/ListFlowVersionResponse.d.ts +19 -0
  188. package/dist/models/ListFlowVersionResponse.js +69 -0
  189. package/dist/models/ListFlowVersionResponse.js.map +1 -0
  190. package/dist/models/ListFlowVersionResponseBody.d.ts +63 -0
  191. package/dist/models/ListFlowVersionResponseBody.js +71 -0
  192. package/dist/models/ListFlowVersionResponseBody.js.map +1 -0
  193. package/dist/models/ListFlowVersionShrinkRequest.d.ts +64 -0
  194. package/dist/models/ListFlowVersionShrinkRequest.js +74 -0
  195. package/dist/models/ListFlowVersionShrinkRequest.js.map +1 -0
  196. package/dist/models/ListPhoneMessageQrdlRequest.d.ts +5 -7
  197. package/dist/models/ListPhoneMessageQrdlRequest.js +6 -0
  198. package/dist/models/ListPhoneMessageQrdlRequest.js.map +1 -1
  199. package/dist/models/ListPhoneMessageQrdlResponseBody.d.ts +1 -0
  200. package/dist/models/ListPhoneMessageQrdlResponseBody.js +2 -0
  201. package/dist/models/ListPhoneMessageQrdlResponseBody.js.map +1 -1
  202. package/dist/models/OfflineFlowVersionRequest.d.ts +58 -0
  203. package/dist/models/OfflineFlowVersionRequest.js +75 -0
  204. package/dist/models/OfflineFlowVersionRequest.js.map +1 -0
  205. package/dist/models/OfflineFlowVersionResponse.d.ts +19 -0
  206. package/dist/models/OfflineFlowVersionResponse.js +69 -0
  207. package/dist/models/OfflineFlowVersionResponse.js.map +1 -0
  208. package/dist/models/OfflineFlowVersionResponseBody.d.ts +63 -0
  209. package/dist/models/OfflineFlowVersionResponseBody.js +71 -0
  210. package/dist/models/OfflineFlowVersionResponseBody.js.map +1 -0
  211. package/dist/models/OfflineFlowVersionShrinkRequest.d.ts +56 -0
  212. package/dist/models/OfflineFlowVersionShrinkRequest.js +72 -0
  213. package/dist/models/OfflineFlowVersionShrinkRequest.js.map +1 -0
  214. package/dist/models/OnlineFlowVersionRequest.d.ts +58 -0
  215. package/dist/models/OnlineFlowVersionRequest.js +75 -0
  216. package/dist/models/OnlineFlowVersionRequest.js.map +1 -0
  217. package/dist/models/OnlineFlowVersionResponse.d.ts +19 -0
  218. package/dist/models/OnlineFlowVersionResponse.js +69 -0
  219. package/dist/models/OnlineFlowVersionResponse.js.map +1 -0
  220. package/dist/models/OnlineFlowVersionResponseBody.d.ts +63 -0
  221. package/dist/models/OnlineFlowVersionResponseBody.js +71 -0
  222. package/dist/models/OnlineFlowVersionResponseBody.js.map +1 -0
  223. package/dist/models/OnlineFlowVersionShrinkRequest.d.ts +56 -0
  224. package/dist/models/OnlineFlowVersionShrinkRequest.js +72 -0
  225. package/dist/models/OnlineFlowVersionShrinkRequest.js.map +1 -0
  226. package/dist/models/QueryChatappBindWabaResponseBodyData.d.ts +5 -2
  227. package/dist/models/QueryChatappBindWabaResponseBodyData.js.map +1 -1
  228. package/dist/models/QueryChatappPhoneNumbersResponseBody.d.ts +6 -0
  229. package/dist/models/QueryChatappPhoneNumbersResponseBody.js.map +1 -1
  230. package/dist/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.d.ts +20 -10
  231. package/dist/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.js.map +1 -1
  232. package/dist/models/ReadChatFlowLogSettingRequest.d.ts +24 -0
  233. package/dist/models/{BeeBotChatResponseBodyDataMessagesTextSlots.js → ReadChatFlowLogSettingRequest.js} +12 -12
  234. package/dist/models/ReadChatFlowLogSettingRequest.js.map +1 -0
  235. package/dist/models/ReadChatFlowLogSettingResponse.d.ts +19 -0
  236. package/dist/models/ReadChatFlowLogSettingResponse.js +69 -0
  237. package/dist/models/ReadChatFlowLogSettingResponse.js.map +1 -0
  238. package/dist/models/{BeeBotAssociateResponseBody.d.ts → ReadChatFlowLogSettingResponseBody.d.ts} +22 -10
  239. package/dist/models/ReadChatFlowLogSettingResponseBody.js +71 -0
  240. package/dist/models/ReadChatFlowLogSettingResponseBody.js.map +1 -0
  241. package/dist/models/ReadChatFlowRequest.d.ts +42 -0
  242. package/dist/models/ReadChatFlowRequest.js +71 -0
  243. package/dist/models/ReadChatFlowRequest.js.map +1 -0
  244. package/dist/models/ReadChatFlowResponse.d.ts +19 -0
  245. package/dist/models/{BeeBotChatResponseBodyData.js → ReadChatFlowResponse.js} +16 -13
  246. package/dist/models/ReadChatFlowResponse.js.map +1 -0
  247. package/dist/models/ReadChatFlowResponseBody.d.ts +63 -0
  248. package/dist/models/ReadChatFlowResponseBody.js +71 -0
  249. package/dist/models/ReadChatFlowResponseBody.js.map +1 -0
  250. package/dist/models/ReadChatFlowShrinkRequest.d.ts +40 -0
  251. package/dist/models/ReadChatFlowShrinkRequest.js +68 -0
  252. package/dist/models/ReadChatFlowShrinkRequest.js.map +1 -0
  253. package/dist/models/ReadFlowVersionRequest.d.ts +58 -0
  254. package/dist/models/ReadFlowVersionRequest.js +75 -0
  255. package/dist/models/ReadFlowVersionRequest.js.map +1 -0
  256. package/dist/models/ReadFlowVersionResponse.d.ts +19 -0
  257. package/dist/models/ReadFlowVersionResponse.js +69 -0
  258. package/dist/models/ReadFlowVersionResponse.js.map +1 -0
  259. package/dist/models/ReadFlowVersionResponseBody.d.ts +63 -0
  260. package/dist/models/ReadFlowVersionResponseBody.js +71 -0
  261. package/dist/models/ReadFlowVersionResponseBody.js.map +1 -0
  262. package/dist/models/ReadFlowVersionShrinkRequest.d.ts +56 -0
  263. package/dist/models/ReadFlowVersionShrinkRequest.js +72 -0
  264. package/dist/models/ReadFlowVersionShrinkRequest.js.map +1 -0
  265. package/dist/models/UpdateChatFlowLogSettingRequest.d.ts +43 -0
  266. package/dist/models/UpdateChatFlowLogSettingRequest.js +68 -0
  267. package/dist/models/UpdateChatFlowLogSettingRequest.js.map +1 -0
  268. package/dist/models/UpdateChatFlowLogSettingResponse.d.ts +19 -0
  269. package/dist/models/UpdateChatFlowLogSettingResponse.js +69 -0
  270. package/dist/models/UpdateChatFlowLogSettingResponse.js.map +1 -0
  271. package/dist/models/UpdateChatFlowLogSettingResponseBody.d.ts +63 -0
  272. package/dist/models/UpdateChatFlowLogSettingResponseBody.js +71 -0
  273. package/dist/models/UpdateChatFlowLogSettingResponseBody.js.map +1 -0
  274. package/dist/models/UpdateChatFlowRequest.d.ts +58 -0
  275. package/dist/models/UpdateChatFlowRequest.js +75 -0
  276. package/dist/models/UpdateChatFlowRequest.js.map +1 -0
  277. package/dist/models/UpdateChatFlowResponse.d.ts +19 -0
  278. package/dist/models/UpdateChatFlowResponse.js +69 -0
  279. package/dist/models/UpdateChatFlowResponse.js.map +1 -0
  280. package/dist/models/UpdateChatFlowResponseBody.d.ts +63 -0
  281. package/dist/models/UpdateChatFlowResponseBody.js +71 -0
  282. package/dist/models/UpdateChatFlowResponseBody.js.map +1 -0
  283. package/dist/models/UpdateChatFlowShrinkRequest.d.ts +56 -0
  284. package/dist/models/UpdateChatFlowShrinkRequest.js +72 -0
  285. package/dist/models/UpdateChatFlowShrinkRequest.js.map +1 -0
  286. package/dist/models/UpdateFlowVersionRequest.d.ts +66 -0
  287. package/dist/models/UpdateFlowVersionRequest.js +77 -0
  288. package/dist/models/UpdateFlowVersionRequest.js.map +1 -0
  289. package/dist/models/UpdateFlowVersionResponse.d.ts +19 -0
  290. package/dist/models/UpdateFlowVersionResponse.js +69 -0
  291. package/dist/models/UpdateFlowVersionResponse.js.map +1 -0
  292. package/dist/models/UpdateFlowVersionResponseBody.d.ts +63 -0
  293. package/dist/models/UpdateFlowVersionResponseBody.js +71 -0
  294. package/dist/models/UpdateFlowVersionResponseBody.js.map +1 -0
  295. package/dist/models/UpdateFlowVersionShrinkRequest.d.ts +64 -0
  296. package/dist/models/UpdateFlowVersionShrinkRequest.js +74 -0
  297. package/dist/models/UpdateFlowVersionShrinkRequest.js.map +1 -0
  298. package/dist/models/model.d.ts +88 -17
  299. package/dist/models/model.js +184 -41
  300. package/dist/models/model.js.map +1 -1
  301. package/package.json +1 -1
  302. package/src/client.ts +2964 -1468
  303. package/src/models/ChatappBindWabaResponseBodyData.ts +2 -0
  304. package/src/models/ChatappSyncPhoneNumberResponseBody.ts +14 -1
  305. package/src/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.ts +34 -4
  306. package/src/models/ChatappVerifyAndRegisterResponseBody.ts +13 -0
  307. package/src/models/CreateChatFlowByImportRequest.ts +86 -0
  308. package/src/models/CreateChatFlowByImportResponse.ts +40 -0
  309. package/src/models/CreateChatFlowByImportResponseBody.ts +87 -0
  310. package/src/models/CreateChatFlowByImportShrinkRequest.ts +83 -0
  311. package/src/models/CreateChatFlowLogSettingRequest.ts +43 -0
  312. package/src/models/CreateChatFlowLogSettingResponse.ts +40 -0
  313. package/src/models/CreateChatFlowLogSettingResponseBody.ts +87 -0
  314. package/src/models/CreateChatFlowRequest.ts +86 -0
  315. package/src/models/CreateChatFlowResponse.ts +40 -0
  316. package/src/models/CreateChatFlowResponseBody.ts +94 -0
  317. package/src/models/CreateChatFlowShrinkRequest.ts +83 -0
  318. package/src/models/CreateFlowVersionRequest.ts +86 -0
  319. package/src/models/CreateFlowVersionResponse.ts +40 -0
  320. package/src/models/CreateFlowVersionResponseBody.ts +87 -0
  321. package/src/models/CreateFlowVersionShrinkRequest.ts +83 -0
  322. package/src/models/DeleteChatFlowRequest.ts +66 -0
  323. package/src/models/DeleteChatFlowResponse.ts +40 -0
  324. package/src/models/DeleteChatFlowResponseBody.ts +87 -0
  325. package/src/models/DeleteChatFlowShrinkRequest.ts +63 -0
  326. package/src/models/DeleteFlowVersionRequest.ts +76 -0
  327. package/src/models/DeleteFlowVersionResponse.ts +40 -0
  328. package/src/models/DeleteFlowVersionResponseBody.ts +87 -0
  329. package/src/models/DeleteFlowVersionShrinkRequest.ts +73 -0
  330. package/src/models/FlowBindPhoneRequest.ts +101 -0
  331. package/src/models/FlowBindPhoneResponse.ts +40 -0
  332. package/src/models/FlowBindPhoneResponseBody.ts +84 -0
  333. package/src/models/FlowBindPhoneShrinkRequest.ts +98 -0
  334. package/src/models/FlowRebindPhoneRequest.ts +101 -0
  335. package/src/models/{BeeBotAssociateResponse.ts → FlowRebindPhoneResponse.ts} +4 -4
  336. package/src/models/FlowRebindPhoneResponseBody.ts +84 -0
  337. package/src/models/FlowRebindPhoneShrinkRequest.ts +98 -0
  338. package/src/models/FlowUnbindPhoneRequest.ts +75 -0
  339. package/src/models/FlowUnbindPhoneResponse.ts +40 -0
  340. package/src/models/FlowUnbindPhoneResponseBody.ts +74 -0
  341. package/src/models/FlowUnbindPhoneShrinkRequest.ts +72 -0
  342. package/src/models/GetChatFlowMetricRequest.ts +108 -0
  343. package/src/models/GetChatFlowMetricResponse.ts +40 -0
  344. package/src/models/GetChatFlowMetricResponseBody.ts +87 -0
  345. package/src/models/GetChatFlowMetricShrinkRequest.ts +105 -0
  346. package/src/models/GetChatFlowTemplateRequest.ts +55 -0
  347. package/src/models/GetChatFlowTemplateResponse.ts +40 -0
  348. package/src/models/{BeeBotChatResponseBody.ts → GetChatFlowTemplateResponseBody.ts} +22 -12
  349. package/src/models/{BeeBotAssociateResponseBodyDataAssociate.ts → GetChatFlowTemplateResponseBodyData.ts} +9 -18
  350. package/src/models/GetChatappVerifyCodeResponseBody.ts +13 -0
  351. package/src/models/ListBindingRelationsForFlowVersionRequest.ts +53 -0
  352. package/src/models/ListBindingRelationsForFlowVersionResponse.ts +40 -0
  353. package/src/models/ListBindingRelationsForFlowVersionResponseBody.ts +61 -0
  354. package/src/models/ListChatFlowRequest.ts +121 -0
  355. package/src/models/{BeeBotChatResponse.ts → ListChatFlowResponse.ts} +4 -4
  356. package/src/models/ListChatFlowResponseBody.ts +87 -0
  357. package/src/models/ListChatFlowShrinkRequest.ts +118 -0
  358. package/src/models/ListChatFlowTemplateRequest.ts +91 -0
  359. package/src/models/ListChatFlowTemplateResponse.ts +40 -0
  360. package/src/models/{BeeBotAssociateResponseBody.ts → ListChatFlowTemplateResponseBody.ts} +21 -11
  361. package/src/models/ListChatFlowTemplateResponseBodyData.ts +37 -0
  362. package/src/models/ListChatappTemplateRequest.ts +12 -10
  363. package/src/models/ListChatappTemplateResponseBody.ts +8 -2
  364. package/src/models/ListChatappTemplateResponseBodyListTemplate.ts +17 -17
  365. package/src/models/ListChatappTemplateShrinkRequest.ts +12 -10
  366. package/src/models/ListFlowVersionRequest.ts +96 -0
  367. package/src/models/ListFlowVersionResponse.ts +40 -0
  368. package/src/models/ListFlowVersionResponseBody.ts +87 -0
  369. package/src/models/ListFlowVersionShrinkRequest.ts +93 -0
  370. package/src/models/ListPhoneMessageQrdlRequest.ts +11 -7
  371. package/src/models/ListPhoneMessageQrdlResponseBody.ts +3 -0
  372. package/src/models/OfflineFlowVersionRequest.ts +86 -0
  373. package/src/models/OfflineFlowVersionResponse.ts +40 -0
  374. package/src/models/OfflineFlowVersionResponseBody.ts +87 -0
  375. package/src/models/OfflineFlowVersionShrinkRequest.ts +83 -0
  376. package/src/models/OnlineFlowVersionRequest.ts +86 -0
  377. package/src/models/OnlineFlowVersionResponse.ts +40 -0
  378. package/src/models/OnlineFlowVersionResponseBody.ts +87 -0
  379. package/src/models/OnlineFlowVersionShrinkRequest.ts +83 -0
  380. package/src/models/QueryChatappBindWabaResponseBodyData.ts +5 -2
  381. package/src/models/QueryChatappPhoneNumbersResponseBody.ts +6 -0
  382. package/src/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.ts +20 -10
  383. package/src/models/ReadChatFlowLogSettingRequest.ts +43 -0
  384. package/src/models/ReadChatFlowLogSettingResponse.ts +40 -0
  385. package/src/models/ReadChatFlowLogSettingResponseBody.ts +87 -0
  386. package/src/models/ReadChatFlowRequest.ts +66 -0
  387. package/src/models/ReadChatFlowResponse.ts +40 -0
  388. package/src/models/ReadChatFlowResponseBody.ts +87 -0
  389. package/src/models/ReadChatFlowShrinkRequest.ts +63 -0
  390. package/src/models/ReadFlowVersionRequest.ts +86 -0
  391. package/src/models/ReadFlowVersionResponse.ts +40 -0
  392. package/src/models/ReadFlowVersionResponseBody.ts +87 -0
  393. package/src/models/ReadFlowVersionShrinkRequest.ts +83 -0
  394. package/src/models/UpdateChatFlowLogSettingRequest.ts +66 -0
  395. package/src/models/UpdateChatFlowLogSettingResponse.ts +40 -0
  396. package/src/models/UpdateChatFlowLogSettingResponseBody.ts +87 -0
  397. package/src/models/UpdateChatFlowRequest.ts +86 -0
  398. package/src/models/UpdateChatFlowResponse.ts +40 -0
  399. package/src/models/UpdateChatFlowResponseBody.ts +87 -0
  400. package/src/models/UpdateChatFlowShrinkRequest.ts +83 -0
  401. package/src/models/UpdateFlowVersionRequest.ts +96 -0
  402. package/src/models/UpdateFlowVersionResponse.ts +40 -0
  403. package/src/models/UpdateFlowVersionResponseBody.ts +87 -0
  404. package/src/models/UpdateFlowVersionShrinkRequest.ts +93 -0
  405. package/src/models/model.ts +88 -17
  406. package/dist/models/BeeBotAssociateRequest.d.ts +0 -68
  407. package/dist/models/BeeBotAssociateRequest.js.map +0 -1
  408. package/dist/models/BeeBotAssociateResponseBody.js.map +0 -1
  409. package/dist/models/BeeBotAssociateResponseBodyData.d.ts +0 -35
  410. package/dist/models/BeeBotAssociateResponseBodyData.js.map +0 -1
  411. package/dist/models/BeeBotAssociateResponseBodyDataAssociate.js.map +0 -1
  412. package/dist/models/BeeBotAssociateShrinkRequest.d.ts +0 -68
  413. package/dist/models/BeeBotAssociateShrinkRequest.js.map +0 -1
  414. package/dist/models/BeeBotChatRequest.d.ts +0 -104
  415. package/dist/models/BeeBotChatRequest.js +0 -84
  416. package/dist/models/BeeBotChatRequest.js.map +0 -1
  417. package/dist/models/BeeBotChatResponse.js.map +0 -1
  418. package/dist/models/BeeBotChatResponseBody.js.map +0 -1
  419. package/dist/models/BeeBotChatResponseBodyData.d.ts +0 -35
  420. package/dist/models/BeeBotChatResponseBodyData.js.map +0 -1
  421. package/dist/models/BeeBotChatResponseBodyDataMessages.d.ts +0 -47
  422. package/dist/models/BeeBotChatResponseBodyDataMessages.js +0 -78
  423. package/dist/models/BeeBotChatResponseBodyDataMessages.js.map +0 -1
  424. package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledge.d.ts +0 -83
  425. package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledge.js +0 -78
  426. package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledge.js.map +0 -1
  427. package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.js.map +0 -1
  428. package/dist/models/BeeBotChatResponseBodyDataMessagesRecommends.d.ts +0 -37
  429. package/dist/models/BeeBotChatResponseBodyDataMessagesRecommends.js.map +0 -1
  430. package/dist/models/BeeBotChatResponseBodyDataMessagesText.d.ts +0 -113
  431. package/dist/models/BeeBotChatResponseBodyDataMessagesText.js +0 -92
  432. package/dist/models/BeeBotChatResponseBodyDataMessagesText.js.map +0 -1
  433. package/dist/models/BeeBotChatResponseBodyDataMessagesTextSlots.d.ts +0 -45
  434. package/dist/models/BeeBotChatResponseBodyDataMessagesTextSlots.js.map +0 -1
  435. package/dist/models/BeeBotChatShrinkRequest.d.ts +0 -102
  436. package/dist/models/BeeBotChatShrinkRequest.js +0 -78
  437. package/dist/models/BeeBotChatShrinkRequest.js.map +0 -1
  438. package/src/models/BeeBotAssociateRequest.ts +0 -96
  439. package/src/models/BeeBotAssociateResponseBodyData.ts +0 -55
  440. package/src/models/BeeBotAssociateShrinkRequest.ts +0 -93
  441. package/src/models/BeeBotChatRequest.ts +0 -141
  442. package/src/models/BeeBotChatResponseBodyData.ts +0 -55
  443. package/src/models/BeeBotChatResponseBodyDataMessages.ts +0 -77
  444. package/src/models/BeeBotChatResponseBodyDataMessagesKnowledge.ts +0 -115
  445. package/src/models/BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.ts +0 -44
  446. package/src/models/BeeBotChatResponseBodyDataMessagesRecommends.ts +0 -54
  447. package/src/models/BeeBotChatResponseBodyDataMessagesText.ts +0 -155
  448. package/src/models/BeeBotChatResponseBodyDataMessagesTextSlots.ts +0 -64
  449. package/src/models/BeeBotChatShrinkRequest.ts +0 -135
package/dist/client.js CHANGED
@@ -238,157 +238,6 @@ class Client extends openapi_core_1.default {
238
238
  let runtime = new $dara.RuntimeOptions({});
239
239
  return await this.addChatappPhoneNumberWithOptions(request, runtime);
240
240
  }
241
- /**
242
- * Associates FAQs in the knowledge base.
243
- *
244
- * @remarks
245
- * 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.
246
- *
247
- * @param tmpReq - BeeBotAssociateRequest
248
- * @param runtime - runtime options for this request RuntimeOptions
249
- * @returns BeeBotAssociateResponse
250
- */
251
- async beeBotAssociateWithOptions(tmpReq, runtime) {
252
- tmpReq.validate();
253
- let request = new $_model.BeeBotAssociateShrinkRequest({});
254
- openapi_core_2.OpenApiUtil.convert(tmpReq, request);
255
- if (!$dara.isNull(tmpReq.perspective)) {
256
- request.perspectiveShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
257
- }
258
- let body = {};
259
- if (!$dara.isNull(request.chatBotInstanceId)) {
260
- body["ChatBotInstanceId"] = request.chatBotInstanceId;
261
- }
262
- if (!$dara.isNull(request.custSpaceId)) {
263
- body["CustSpaceId"] = request.custSpaceId;
264
- }
265
- if (!$dara.isNull(request.isvCode)) {
266
- body["IsvCode"] = request.isvCode;
267
- }
268
- if (!$dara.isNull(request.perspectiveShrink)) {
269
- body["Perspective"] = request.perspectiveShrink;
270
- }
271
- if (!$dara.isNull(request.recommendNum)) {
272
- body["RecommendNum"] = request.recommendNum;
273
- }
274
- if (!$dara.isNull(request.sessionId)) {
275
- body["SessionId"] = request.sessionId;
276
- }
277
- if (!$dara.isNull(request.utterance)) {
278
- body["Utterance"] = request.utterance;
279
- }
280
- let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
281
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
282
- });
283
- let params = new openapi_core_2.$OpenApiUtil.Params({
284
- action: "BeeBotAssociate",
285
- version: "2020-06-06",
286
- protocol: "HTTPS",
287
- pathname: "/",
288
- method: "POST",
289
- authType: "AK",
290
- style: "RPC",
291
- reqBodyType: "formData",
292
- bodyType: "json",
293
- });
294
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.BeeBotAssociateResponse({}));
295
- }
296
- /**
297
- * Associates FAQs in the knowledge base.
298
- *
299
- * @remarks
300
- * 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.
301
- *
302
- * @param request - BeeBotAssociateRequest
303
- * @returns BeeBotAssociateResponse
304
- */
305
- async beeBotAssociate(request) {
306
- let runtime = new $dara.RuntimeOptions({});
307
- return await this.beeBotAssociateWithOptions(request, runtime);
308
- }
309
- /**
310
- * Conducts sessions with the bot based on its unique identifier (ID).
311
- *
312
- * @remarks
313
- * The ID of the session.
314
- *
315
- * @param tmpReq - BeeBotChatRequest
316
- * @param runtime - runtime options for this request RuntimeOptions
317
- * @returns BeeBotChatResponse
318
- */
319
- async beeBotChatWithOptions(tmpReq, runtime) {
320
- tmpReq.validate();
321
- let request = new $_model.BeeBotChatShrinkRequest({});
322
- openapi_core_2.OpenApiUtil.convert(tmpReq, request);
323
- if (!$dara.isNull(tmpReq.perspective)) {
324
- request.perspectiveShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.perspective, "Perspective", "json");
325
- }
326
- if (!$dara.isNull(tmpReq.vendorParam)) {
327
- request.vendorParamShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.vendorParam, "VendorParam", "json");
328
- }
329
- let body = {};
330
- if (!$dara.isNull(request.chatBotInstanceId)) {
331
- body["ChatBotInstanceId"] = request.chatBotInstanceId;
332
- }
333
- if (!$dara.isNull(request.custSpaceId)) {
334
- body["CustSpaceId"] = request.custSpaceId;
335
- }
336
- if (!$dara.isNull(request.intentName)) {
337
- body["IntentName"] = request.intentName;
338
- }
339
- if (!$dara.isNull(request.isvCode)) {
340
- body["IsvCode"] = request.isvCode;
341
- }
342
- if (!$dara.isNull(request.knowledgeId)) {
343
- body["KnowledgeId"] = request.knowledgeId;
344
- }
345
- if (!$dara.isNull(request.perspectiveShrink)) {
346
- body["Perspective"] = request.perspectiveShrink;
347
- }
348
- if (!$dara.isNull(request.senderId)) {
349
- body["SenderId"] = request.senderId;
350
- }
351
- if (!$dara.isNull(request.senderNick)) {
352
- body["SenderNick"] = request.senderNick;
353
- }
354
- if (!$dara.isNull(request.sessionId)) {
355
- body["SessionId"] = request.sessionId;
356
- }
357
- if (!$dara.isNull(request.utterance)) {
358
- body["Utterance"] = request.utterance;
359
- }
360
- if (!$dara.isNull(request.vendorParamShrink)) {
361
- body["VendorParam"] = request.vendorParamShrink;
362
- }
363
- let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
364
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
365
- });
366
- let params = new openapi_core_2.$OpenApiUtil.Params({
367
- action: "BeeBotChat",
368
- version: "2020-06-06",
369
- protocol: "HTTPS",
370
- pathname: "/",
371
- method: "POST",
372
- authType: "AK",
373
- style: "RPC",
374
- reqBodyType: "formData",
375
- bodyType: "json",
376
- });
377
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.BeeBotChatResponse({}));
378
- }
379
- /**
380
- * Conducts sessions with the bot based on its unique identifier (ID).
381
- *
382
- * @remarks
383
- * The ID of the session.
384
- *
385
- * @param request - BeeBotChatRequest
386
- * @returns BeeBotChatResponse
387
- */
388
- async beeBotChat(request) {
389
- let runtime = new $dara.RuntimeOptions({});
390
- return await this.beeBotChatWithOptions(request, runtime);
391
- }
392
241
  /**
393
242
  * Binds the WhatsApp Business account with ChatApp.
394
243
  *
@@ -806,6 +655,184 @@ class Client extends openapi_core_1.default {
806
655
  let runtime = new $dara.RuntimeOptions({});
807
656
  return await this.chatappVerifyAndRegisterWithOptions(request, runtime);
808
657
  }
658
+ /**
659
+ * Create Chatflow
660
+ *
661
+ * @param tmpReq - CreateChatFlowRequest
662
+ * @param runtime - runtime options for this request RuntimeOptions
663
+ * @returns CreateChatFlowResponse
664
+ */
665
+ async createChatFlowWithOptions(tmpReq, runtime) {
666
+ tmpReq.validate();
667
+ let request = new $_model.CreateChatFlowShrinkRequest({});
668
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
669
+ if (!$dara.isNull(tmpReq.bizExtend)) {
670
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
671
+ }
672
+ let query = {};
673
+ if (!$dara.isNull(request.bizCode)) {
674
+ query["BizCode"] = request.bizCode;
675
+ }
676
+ if (!$dara.isNull(request.bizExtendShrink)) {
677
+ query["BizExtend"] = request.bizExtendShrink;
678
+ }
679
+ if (!$dara.isNull(request.flowTriggerType)) {
680
+ query["FlowTriggerType"] = request.flowTriggerType;
681
+ }
682
+ if (!$dara.isNull(request.ownerId)) {
683
+ query["OwnerId"] = request.ownerId;
684
+ }
685
+ if (!$dara.isNull(request.remark)) {
686
+ query["Remark"] = request.remark;
687
+ }
688
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
689
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
690
+ }
691
+ if (!$dara.isNull(request.resourceOwnerId)) {
692
+ query["ResourceOwnerId"] = request.resourceOwnerId;
693
+ }
694
+ if (!$dara.isNull(request.title)) {
695
+ query["Title"] = request.title;
696
+ }
697
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
698
+ query: openapi_core_2.OpenApiUtil.query(query),
699
+ });
700
+ let params = new openapi_core_2.$OpenApiUtil.Params({
701
+ action: "CreateChatFlow",
702
+ version: "2020-06-06",
703
+ protocol: "HTTPS",
704
+ pathname: "/",
705
+ method: "POST",
706
+ authType: "AK",
707
+ style: "RPC",
708
+ reqBodyType: "formData",
709
+ bodyType: "json",
710
+ });
711
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatFlowResponse({}));
712
+ }
713
+ /**
714
+ * Create Chatflow
715
+ *
716
+ * @param request - CreateChatFlowRequest
717
+ * @returns CreateChatFlowResponse
718
+ */
719
+ async createChatFlow(request) {
720
+ let runtime = new $dara.RuntimeOptions({});
721
+ return await this.createChatFlowWithOptions(request, runtime);
722
+ }
723
+ /**
724
+ * Import and create flow
725
+ *
726
+ * @param tmpReq - CreateChatFlowByImportRequest
727
+ * @param runtime - runtime options for this request RuntimeOptions
728
+ * @returns CreateChatFlowByImportResponse
729
+ */
730
+ async createChatFlowByImportWithOptions(tmpReq, runtime) {
731
+ tmpReq.validate();
732
+ let request = new $_model.CreateChatFlowByImportShrinkRequest({});
733
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
734
+ if (!$dara.isNull(tmpReq.bizExtend)) {
735
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
736
+ }
737
+ let query = {};
738
+ if (!$dara.isNull(request.bizCode)) {
739
+ query["BizCode"] = request.bizCode;
740
+ }
741
+ if (!$dara.isNull(request.bizExtendShrink)) {
742
+ query["BizExtend"] = request.bizExtendShrink;
743
+ }
744
+ if (!$dara.isNull(request.flowViewModel)) {
745
+ query["FlowViewModel"] = request.flowViewModel;
746
+ }
747
+ if (!$dara.isNull(request.ownerId)) {
748
+ query["OwnerId"] = request.ownerId;
749
+ }
750
+ if (!$dara.isNull(request.remark)) {
751
+ query["Remark"] = request.remark;
752
+ }
753
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
754
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
755
+ }
756
+ if (!$dara.isNull(request.resourceOwnerId)) {
757
+ query["ResourceOwnerId"] = request.resourceOwnerId;
758
+ }
759
+ if (!$dara.isNull(request.title)) {
760
+ query["Title"] = request.title;
761
+ }
762
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
763
+ query: openapi_core_2.OpenApiUtil.query(query),
764
+ });
765
+ let params = new openapi_core_2.$OpenApiUtil.Params({
766
+ action: "CreateChatFlowByImport",
767
+ version: "2020-06-06",
768
+ protocol: "HTTPS",
769
+ pathname: "/",
770
+ method: "POST",
771
+ authType: "AK",
772
+ style: "RPC",
773
+ reqBodyType: "formData",
774
+ bodyType: "json",
775
+ });
776
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatFlowByImportResponse({}));
777
+ }
778
+ /**
779
+ * Import and create flow
780
+ *
781
+ * @param request - CreateChatFlowByImportRequest
782
+ * @returns CreateChatFlowByImportResponse
783
+ */
784
+ async createChatFlowByImport(request) {
785
+ let runtime = new $dara.RuntimeOptions({});
786
+ return await this.createChatFlowByImportWithOptions(request, runtime);
787
+ }
788
+ /**
789
+ * Create chatFlow log setting
790
+ *
791
+ * @param request - CreateChatFlowLogSettingRequest
792
+ * @param runtime - runtime options for this request RuntimeOptions
793
+ * @returns CreateChatFlowLogSettingResponse
794
+ */
795
+ async createChatFlowLogSettingWithOptions(request, runtime) {
796
+ request.validate();
797
+ let query = {};
798
+ if (!$dara.isNull(request.flowCode)) {
799
+ query["FlowCode"] = request.flowCode;
800
+ }
801
+ if (!$dara.isNull(request.ownerId)) {
802
+ query["OwnerId"] = request.ownerId;
803
+ }
804
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
805
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
806
+ }
807
+ if (!$dara.isNull(request.resourceOwnerId)) {
808
+ query["ResourceOwnerId"] = request.resourceOwnerId;
809
+ }
810
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
811
+ query: openapi_core_2.OpenApiUtil.query(query),
812
+ });
813
+ let params = new openapi_core_2.$OpenApiUtil.Params({
814
+ action: "CreateChatFlowLogSetting",
815
+ version: "2020-06-06",
816
+ protocol: "HTTPS",
817
+ pathname: "/",
818
+ method: "POST",
819
+ authType: "AK",
820
+ style: "RPC",
821
+ reqBodyType: "formData",
822
+ bodyType: "json",
823
+ });
824
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatFlowLogSettingResponse({}));
825
+ }
826
+ /**
827
+ * Create chatFlow log setting
828
+ *
829
+ * @param request - CreateChatFlowLogSettingRequest
830
+ * @returns CreateChatFlowLogSettingResponse
831
+ */
832
+ async createChatFlowLogSetting(request) {
833
+ let runtime = new $dara.RuntimeOptions({});
834
+ return await this.createChatFlowLogSettingWithOptions(request, runtime);
835
+ }
809
836
  /**
810
837
  * The ID of the number.
811
838
  *
@@ -1005,6 +1032,71 @@ class Client extends openapi_core_1.default {
1005
1032
  let runtime = new $dara.RuntimeOptions({});
1006
1033
  return await this.createFlowWithOptions(request, runtime);
1007
1034
  }
1035
+ /**
1036
+ * CreateFlowVersion
1037
+ *
1038
+ * @param tmpReq - CreateFlowVersionRequest
1039
+ * @param runtime - runtime options for this request RuntimeOptions
1040
+ * @returns CreateFlowVersionResponse
1041
+ */
1042
+ async createFlowVersionWithOptions(tmpReq, runtime) {
1043
+ tmpReq.validate();
1044
+ let request = new $_model.CreateFlowVersionShrinkRequest({});
1045
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1046
+ if (!$dara.isNull(tmpReq.bizExtend)) {
1047
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
1048
+ }
1049
+ let query = {};
1050
+ if (!$dara.isNull(request.bizCode)) {
1051
+ query["BizCode"] = request.bizCode;
1052
+ }
1053
+ if (!$dara.isNull(request.bizExtendShrink)) {
1054
+ query["BizExtend"] = request.bizExtendShrink;
1055
+ }
1056
+ if (!$dara.isNull(request.flowCode)) {
1057
+ query["FlowCode"] = request.flowCode;
1058
+ }
1059
+ if (!$dara.isNull(request.flowVersionCopyFrom)) {
1060
+ query["FlowVersionCopyFrom"] = request.flowVersionCopyFrom;
1061
+ }
1062
+ if (!$dara.isNull(request.ownerId)) {
1063
+ query["OwnerId"] = request.ownerId;
1064
+ }
1065
+ if (!$dara.isNull(request.remark)) {
1066
+ query["Remark"] = request.remark;
1067
+ }
1068
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1069
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1070
+ }
1071
+ if (!$dara.isNull(request.resourceOwnerId)) {
1072
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1073
+ }
1074
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1075
+ query: openapi_core_2.OpenApiUtil.query(query),
1076
+ });
1077
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1078
+ action: "CreateFlowVersion",
1079
+ version: "2020-06-06",
1080
+ protocol: "HTTPS",
1081
+ pathname: "/",
1082
+ method: "POST",
1083
+ authType: "AK",
1084
+ style: "RPC",
1085
+ reqBodyType: "formData",
1086
+ bodyType: "json",
1087
+ });
1088
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateFlowVersionResponse({}));
1089
+ }
1090
+ /**
1091
+ * CreateFlowVersion
1092
+ *
1093
+ * @param request - CreateFlowVersionRequest
1094
+ * @returns CreateFlowVersionResponse
1095
+ */
1096
+ async createFlowVersion(request) {
1097
+ let runtime = new $dara.RuntimeOptions({});
1098
+ return await this.createFlowVersionWithOptions(request, runtime);
1099
+ }
1008
1100
  /**
1009
1101
  * Creates a quick-response (QR) code that contains a message.
1010
1102
  *
@@ -1054,14 +1146,73 @@ class Client extends openapi_core_1.default {
1054
1146
  return await this.createPhoneMessageQrdlWithOptions(request, runtime);
1055
1147
  }
1056
1148
  /**
1057
- * DeleteChatGroup
1149
+ * Delete Process
1058
1150
  *
1059
- * @param request - DeleteChatGroupRequest
1151
+ * @param tmpReq - DeleteChatFlowRequest
1060
1152
  * @param runtime - runtime options for this request RuntimeOptions
1061
- * @returns DeleteChatGroupResponse
1153
+ * @returns DeleteChatFlowResponse
1062
1154
  */
1063
- async deleteChatGroupWithOptions(request, runtime) {
1064
- request.validate();
1155
+ async deleteChatFlowWithOptions(tmpReq, runtime) {
1156
+ tmpReq.validate();
1157
+ let request = new $_model.DeleteChatFlowShrinkRequest({});
1158
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1159
+ if (!$dara.isNull(tmpReq.bizExtend)) {
1160
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
1161
+ }
1162
+ let query = {};
1163
+ if (!$dara.isNull(request.bizCode)) {
1164
+ query["BizCode"] = request.bizCode;
1165
+ }
1166
+ if (!$dara.isNull(request.bizExtendShrink)) {
1167
+ query["BizExtend"] = request.bizExtendShrink;
1168
+ }
1169
+ if (!$dara.isNull(request.flowCode)) {
1170
+ query["FlowCode"] = request.flowCode;
1171
+ }
1172
+ if (!$dara.isNull(request.ownerId)) {
1173
+ query["OwnerId"] = request.ownerId;
1174
+ }
1175
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1176
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1177
+ }
1178
+ if (!$dara.isNull(request.resourceOwnerId)) {
1179
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1180
+ }
1181
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1182
+ query: openapi_core_2.OpenApiUtil.query(query),
1183
+ });
1184
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1185
+ action: "DeleteChatFlow",
1186
+ version: "2020-06-06",
1187
+ protocol: "HTTPS",
1188
+ pathname: "/",
1189
+ method: "POST",
1190
+ authType: "AK",
1191
+ style: "RPC",
1192
+ reqBodyType: "formData",
1193
+ bodyType: "json",
1194
+ });
1195
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatFlowResponse({}));
1196
+ }
1197
+ /**
1198
+ * Delete Process
1199
+ *
1200
+ * @param request - DeleteChatFlowRequest
1201
+ * @returns DeleteChatFlowResponse
1202
+ */
1203
+ async deleteChatFlow(request) {
1204
+ let runtime = new $dara.RuntimeOptions({});
1205
+ return await this.deleteChatFlowWithOptions(request, runtime);
1206
+ }
1207
+ /**
1208
+ * DeleteChatGroup
1209
+ *
1210
+ * @param request - DeleteChatGroupRequest
1211
+ * @param runtime - runtime options for this request RuntimeOptions
1212
+ * @returns DeleteChatGroupResponse
1213
+ */
1214
+ async deleteChatGroupWithOptions(request, runtime) {
1215
+ request.validate();
1065
1216
  let query = {};
1066
1217
  if (!$dara.isNull(request.businessNumber)) {
1067
1218
  query["BusinessNumber"] = request.businessNumber;
@@ -1354,6 +1505,68 @@ class Client extends openapi_core_1.default {
1354
1505
  let runtime = new $dara.RuntimeOptions({});
1355
1506
  return await this.deleteFlowWithOptions(request, runtime);
1356
1507
  }
1508
+ /**
1509
+ * Delete Flow Version
1510
+ *
1511
+ * @param tmpReq - DeleteFlowVersionRequest
1512
+ * @param runtime - runtime options for this request RuntimeOptions
1513
+ * @returns DeleteFlowVersionResponse
1514
+ */
1515
+ async deleteFlowVersionWithOptions(tmpReq, runtime) {
1516
+ tmpReq.validate();
1517
+ let request = new $_model.DeleteFlowVersionShrinkRequest({});
1518
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1519
+ if (!$dara.isNull(tmpReq.bizExtend)) {
1520
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
1521
+ }
1522
+ let query = {};
1523
+ if (!$dara.isNull(request.bizCode)) {
1524
+ query["BizCode"] = request.bizCode;
1525
+ }
1526
+ if (!$dara.isNull(request.bizExtendShrink)) {
1527
+ query["BizExtend"] = request.bizExtendShrink;
1528
+ }
1529
+ if (!$dara.isNull(request.flowCode)) {
1530
+ query["FlowCode"] = request.flowCode;
1531
+ }
1532
+ if (!$dara.isNull(request.flowVersion)) {
1533
+ query["FlowVersion"] = request.flowVersion;
1534
+ }
1535
+ if (!$dara.isNull(request.ownerId)) {
1536
+ query["OwnerId"] = request.ownerId;
1537
+ }
1538
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1539
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1540
+ }
1541
+ if (!$dara.isNull(request.resourceOwnerId)) {
1542
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1543
+ }
1544
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1545
+ query: openapi_core_2.OpenApiUtil.query(query),
1546
+ });
1547
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1548
+ action: "DeleteFlowVersion",
1549
+ version: "2020-06-06",
1550
+ protocol: "HTTPS",
1551
+ pathname: "/",
1552
+ method: "POST",
1553
+ authType: "AK",
1554
+ style: "RPC",
1555
+ reqBodyType: "formData",
1556
+ bodyType: "json",
1557
+ });
1558
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFlowVersionResponse({}));
1559
+ }
1560
+ /**
1561
+ * Delete Flow Version
1562
+ *
1563
+ * @param request - DeleteFlowVersionRequest
1564
+ * @returns DeleteFlowVersionResponse
1565
+ */
1566
+ async deleteFlowVersion(request) {
1567
+ let runtime = new $dara.RuntimeOptions({});
1568
+ return await this.deleteFlowVersionWithOptions(request, runtime);
1569
+ }
1357
1570
  /**
1358
1571
  * Deletes a quick-response (QR) code that contains a message.
1359
1572
  *
@@ -1370,14 +1583,302 @@ class Client extends openapi_core_1.default {
1370
1583
  if (!$dara.isNull(request.phoneNumber)) {
1371
1584
  body["PhoneNumber"] = request.phoneNumber;
1372
1585
  }
1373
- if (!$dara.isNull(request.qrdlCode)) {
1374
- body["QrdlCode"] = request.qrdlCode;
1586
+ if (!$dara.isNull(request.qrdlCode)) {
1587
+ body["QrdlCode"] = request.qrdlCode;
1588
+ }
1589
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1590
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1591
+ });
1592
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1593
+ action: "DeletePhoneMessageQrdl",
1594
+ version: "2020-06-06",
1595
+ protocol: "HTTPS",
1596
+ pathname: "/",
1597
+ method: "POST",
1598
+ authType: "AK",
1599
+ style: "RPC",
1600
+ reqBodyType: "formData",
1601
+ bodyType: "json",
1602
+ });
1603
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeletePhoneMessageQrdlResponse({}));
1604
+ }
1605
+ /**
1606
+ * Deletes a quick-response (QR) code that contains a message.
1607
+ *
1608
+ * @param request - DeletePhoneMessageQrdlRequest
1609
+ * @returns DeletePhoneMessageQrdlResponse
1610
+ */
1611
+ async deletePhoneMessageQrdl(request) {
1612
+ let runtime = new $dara.RuntimeOptions({});
1613
+ return await this.deletePhoneMessageQrdlWithOptions(request, runtime);
1614
+ }
1615
+ /**
1616
+ * Deprecates a Flow.
1617
+ *
1618
+ * @param request - DeprecateFlowRequest
1619
+ * @param runtime - runtime options for this request RuntimeOptions
1620
+ * @returns DeprecateFlowResponse
1621
+ */
1622
+ async deprecateFlowWithOptions(request, runtime) {
1623
+ request.validate();
1624
+ let body = {};
1625
+ if (!$dara.isNull(request.custSpaceId)) {
1626
+ body["CustSpaceId"] = request.custSpaceId;
1627
+ }
1628
+ if (!$dara.isNull(request.flowId)) {
1629
+ body["FlowId"] = request.flowId;
1630
+ }
1631
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1632
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1633
+ });
1634
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1635
+ action: "DeprecateFlow",
1636
+ version: "2020-06-06",
1637
+ protocol: "HTTPS",
1638
+ pathname: "/",
1639
+ method: "POST",
1640
+ authType: "AK",
1641
+ style: "RPC",
1642
+ reqBodyType: "formData",
1643
+ bodyType: "json",
1644
+ });
1645
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeprecateFlowResponse({}));
1646
+ }
1647
+ /**
1648
+ * Deprecates a Flow.
1649
+ *
1650
+ * @param request - DeprecateFlowRequest
1651
+ * @returns DeprecateFlowResponse
1652
+ */
1653
+ async deprecateFlow(request) {
1654
+ let runtime = new $dara.RuntimeOptions({});
1655
+ return await this.deprecateFlowWithOptions(request, runtime);
1656
+ }
1657
+ /**
1658
+ * Enables the statistics on the metrics that are related to WhatsApp.
1659
+ *
1660
+ * @remarks
1661
+ * 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.
1662
+ *
1663
+ * @param request - EnableWhatsappROIMetricRequest
1664
+ * @param runtime - runtime options for this request RuntimeOptions
1665
+ * @returns EnableWhatsappROIMetricResponse
1666
+ */
1667
+ async enableWhatsappROIMetricWithOptions(request, runtime) {
1668
+ request.validate();
1669
+ let query = {};
1670
+ if (!$dara.isNull(request.custSpaceId)) {
1671
+ query["CustSpaceId"] = request.custSpaceId;
1672
+ }
1673
+ if (!$dara.isNull(request.isvCode)) {
1674
+ query["IsvCode"] = request.isvCode;
1675
+ }
1676
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1677
+ query: openapi_core_2.OpenApiUtil.query(query),
1678
+ });
1679
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1680
+ action: "EnableWhatsappROIMetric",
1681
+ version: "2020-06-06",
1682
+ protocol: "HTTPS",
1683
+ pathname: "/",
1684
+ method: "POST",
1685
+ authType: "AK",
1686
+ style: "RPC",
1687
+ reqBodyType: "formData",
1688
+ bodyType: "json",
1689
+ });
1690
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableWhatsappROIMetricResponse({}));
1691
+ }
1692
+ /**
1693
+ * Enables the statistics on the metrics that are related to WhatsApp.
1694
+ *
1695
+ * @remarks
1696
+ * 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.
1697
+ *
1698
+ * @param request - EnableWhatsappROIMetricRequest
1699
+ * @returns EnableWhatsappROIMetricResponse
1700
+ */
1701
+ async enableWhatsappROIMetric(request) {
1702
+ let runtime = new $dara.RuntimeOptions({});
1703
+ return await this.enableWhatsappROIMetricWithOptions(request, runtime);
1704
+ }
1705
+ /**
1706
+ * Bind phone numbers to flow
1707
+ *
1708
+ * @param tmpReq - FlowBindPhoneRequest
1709
+ * @param runtime - runtime options for this request RuntimeOptions
1710
+ * @returns FlowBindPhoneResponse
1711
+ */
1712
+ async flowBindPhoneWithOptions(tmpReq, runtime) {
1713
+ tmpReq.validate();
1714
+ let request = new $_model.FlowBindPhoneShrinkRequest({});
1715
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1716
+ if (!$dara.isNull(tmpReq.phoneNumbers)) {
1717
+ request.phoneNumbersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
1718
+ }
1719
+ let query = {};
1720
+ if (!$dara.isNull(request.channelCode)) {
1721
+ query["ChannelCode"] = request.channelCode;
1722
+ }
1723
+ if (!$dara.isNull(request.channelType)) {
1724
+ query["ChannelType"] = request.channelType;
1725
+ }
1726
+ if (!$dara.isNull(request.flowCode)) {
1727
+ query["FlowCode"] = request.flowCode;
1728
+ }
1729
+ if (!$dara.isNull(request.flowVersion)) {
1730
+ query["FlowVersion"] = request.flowVersion;
1731
+ }
1732
+ if (!$dara.isNull(request.ownerId)) {
1733
+ query["OwnerId"] = request.ownerId;
1734
+ }
1735
+ if (!$dara.isNull(request.phoneNumbersShrink)) {
1736
+ query["PhoneNumbers"] = request.phoneNumbersShrink;
1737
+ }
1738
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1739
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1740
+ }
1741
+ if (!$dara.isNull(request.resourceOwnerId)) {
1742
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1743
+ }
1744
+ if (!$dara.isNull(request.wabaId)) {
1745
+ query["WabaId"] = request.wabaId;
1746
+ }
1747
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1748
+ query: openapi_core_2.OpenApiUtil.query(query),
1749
+ });
1750
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1751
+ action: "FlowBindPhone",
1752
+ version: "2020-06-06",
1753
+ protocol: "HTTPS",
1754
+ pathname: "/",
1755
+ method: "POST",
1756
+ authType: "AK",
1757
+ style: "RPC",
1758
+ reqBodyType: "formData",
1759
+ bodyType: "json",
1760
+ });
1761
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.FlowBindPhoneResponse({}));
1762
+ }
1763
+ /**
1764
+ * Bind phone numbers to flow
1765
+ *
1766
+ * @param request - FlowBindPhoneRequest
1767
+ * @returns FlowBindPhoneResponse
1768
+ */
1769
+ async flowBindPhone(request) {
1770
+ let runtime = new $dara.RuntimeOptions({});
1771
+ return await this.flowBindPhoneWithOptions(request, runtime);
1772
+ }
1773
+ /**
1774
+ * Rebind phone number for flow
1775
+ *
1776
+ * @param tmpReq - FlowRebindPhoneRequest
1777
+ * @param runtime - runtime options for this request RuntimeOptions
1778
+ * @returns FlowRebindPhoneResponse
1779
+ */
1780
+ async flowRebindPhoneWithOptions(tmpReq, runtime) {
1781
+ tmpReq.validate();
1782
+ let request = new $_model.FlowRebindPhoneShrinkRequest({});
1783
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1784
+ if (!$dara.isNull(tmpReq.phoneNumbers)) {
1785
+ request.phoneNumbersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
1786
+ }
1787
+ let query = {};
1788
+ if (!$dara.isNull(request.channelCode)) {
1789
+ query["ChannelCode"] = request.channelCode;
1790
+ }
1791
+ if (!$dara.isNull(request.channelType)) {
1792
+ query["ChannelType"] = request.channelType;
1793
+ }
1794
+ if (!$dara.isNull(request.flowCode)) {
1795
+ query["FlowCode"] = request.flowCode;
1796
+ }
1797
+ if (!$dara.isNull(request.flowVersion)) {
1798
+ query["FlowVersion"] = request.flowVersion;
1799
+ }
1800
+ if (!$dara.isNull(request.ownerId)) {
1801
+ query["OwnerId"] = request.ownerId;
1802
+ }
1803
+ if (!$dara.isNull(request.phoneNumbersShrink)) {
1804
+ query["PhoneNumbers"] = request.phoneNumbersShrink;
1805
+ }
1806
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1807
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1808
+ }
1809
+ if (!$dara.isNull(request.resourceOwnerId)) {
1810
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1811
+ }
1812
+ if (!$dara.isNull(request.wabaId)) {
1813
+ query["WabaId"] = request.wabaId;
1814
+ }
1815
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1816
+ query: openapi_core_2.OpenApiUtil.query(query),
1817
+ });
1818
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1819
+ action: "FlowRebindPhone",
1820
+ version: "2020-06-06",
1821
+ protocol: "HTTPS",
1822
+ pathname: "/",
1823
+ method: "POST",
1824
+ authType: "AK",
1825
+ style: "RPC",
1826
+ reqBodyType: "formData",
1827
+ bodyType: "json",
1828
+ });
1829
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.FlowRebindPhoneResponse({}));
1830
+ }
1831
+ /**
1832
+ * Rebind phone number for flow
1833
+ *
1834
+ * @param request - FlowRebindPhoneRequest
1835
+ * @returns FlowRebindPhoneResponse
1836
+ */
1837
+ async flowRebindPhone(request) {
1838
+ let runtime = new $dara.RuntimeOptions({});
1839
+ return await this.flowRebindPhoneWithOptions(request, runtime);
1840
+ }
1841
+ /**
1842
+ * Unbind phone number from flow
1843
+ *
1844
+ * @param tmpReq - FlowUnbindPhoneRequest
1845
+ * @param runtime - runtime options for this request RuntimeOptions
1846
+ * @returns FlowUnbindPhoneResponse
1847
+ */
1848
+ async flowUnbindPhoneWithOptions(tmpReq, runtime) {
1849
+ tmpReq.validate();
1850
+ let request = new $_model.FlowUnbindPhoneShrinkRequest({});
1851
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1852
+ if (!$dara.isNull(tmpReq.phoneNumbers)) {
1853
+ request.phoneNumbersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
1854
+ }
1855
+ let query = {};
1856
+ if (!$dara.isNull(request.channelType)) {
1857
+ query["ChannelType"] = request.channelType;
1858
+ }
1859
+ if (!$dara.isNull(request.flowCode)) {
1860
+ query["FlowCode"] = request.flowCode;
1861
+ }
1862
+ if (!$dara.isNull(request.flowVersion)) {
1863
+ query["FlowVersion"] = request.flowVersion;
1864
+ }
1865
+ if (!$dara.isNull(request.ownerId)) {
1866
+ query["OwnerId"] = request.ownerId;
1867
+ }
1868
+ if (!$dara.isNull(request.phoneNumbersShrink)) {
1869
+ query["PhoneNumbers"] = request.phoneNumbersShrink;
1870
+ }
1871
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1872
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1873
+ }
1874
+ if (!$dara.isNull(request.resourceOwnerId)) {
1875
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1375
1876
  }
1376
1877
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1377
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
1878
+ query: openapi_core_2.OpenApiUtil.query(query),
1378
1879
  });
1379
1880
  let params = new openapi_core_2.$OpenApiUtil.Params({
1380
- action: "DeletePhoneMessageQrdl",
1881
+ action: "FlowUnbindPhone",
1381
1882
  version: "2020-06-06",
1382
1883
  protocol: "HTTPS",
1383
1884
  pathname: "/",
@@ -1387,39 +1888,68 @@ class Client extends openapi_core_1.default {
1387
1888
  reqBodyType: "formData",
1388
1889
  bodyType: "json",
1389
1890
  });
1390
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeletePhoneMessageQrdlResponse({}));
1891
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.FlowUnbindPhoneResponse({}));
1391
1892
  }
1392
1893
  /**
1393
- * Deletes a quick-response (QR) code that contains a message.
1894
+ * Unbind phone number from flow
1394
1895
  *
1395
- * @param request - DeletePhoneMessageQrdlRequest
1396
- * @returns DeletePhoneMessageQrdlResponse
1896
+ * @param request - FlowUnbindPhoneRequest
1897
+ * @returns FlowUnbindPhoneResponse
1397
1898
  */
1398
- async deletePhoneMessageQrdl(request) {
1899
+ async flowUnbindPhone(request) {
1399
1900
  let runtime = new $dara.RuntimeOptions({});
1400
- return await this.deletePhoneMessageQrdlWithOptions(request, runtime);
1901
+ return await this.flowUnbindPhoneWithOptions(request, runtime);
1401
1902
  }
1402
1903
  /**
1403
- * Deprecates a Flow.
1904
+ * Get ChatFlow Runtime Data
1404
1905
  *
1405
- * @param request - DeprecateFlowRequest
1906
+ * @param tmpReq - GetChatFlowMetricRequest
1406
1907
  * @param runtime - runtime options for this request RuntimeOptions
1407
- * @returns DeprecateFlowResponse
1908
+ * @returns GetChatFlowMetricResponse
1408
1909
  */
1409
- async deprecateFlowWithOptions(request, runtime) {
1410
- request.validate();
1411
- let body = {};
1412
- if (!$dara.isNull(request.custSpaceId)) {
1413
- body["CustSpaceId"] = request.custSpaceId;
1910
+ async getChatFlowMetricWithOptions(tmpReq, runtime) {
1911
+ tmpReq.validate();
1912
+ let request = new $_model.GetChatFlowMetricShrinkRequest({});
1913
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1914
+ if (!$dara.isNull(tmpReq.bizExtend)) {
1915
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
1414
1916
  }
1415
- if (!$dara.isNull(request.flowId)) {
1416
- body["FlowId"] = request.flowId;
1917
+ let query = {};
1918
+ if (!$dara.isNull(request.bizCode)) {
1919
+ query["BizCode"] = request.bizCode;
1920
+ }
1921
+ if (!$dara.isNull(request.bizExtendShrink)) {
1922
+ query["BizExtend"] = request.bizExtendShrink;
1923
+ }
1924
+ if (!$dara.isNull(request.flowCode)) {
1925
+ query["FlowCode"] = request.flowCode;
1926
+ }
1927
+ if (!$dara.isNull(request.flowVersion)) {
1928
+ query["FlowVersion"] = request.flowVersion;
1929
+ }
1930
+ if (!$dara.isNull(request.from)) {
1931
+ query["From"] = request.from;
1932
+ }
1933
+ if (!$dara.isNull(request.metricName)) {
1934
+ query["MetricName"] = request.metricName;
1935
+ }
1936
+ if (!$dara.isNull(request.ownerId)) {
1937
+ query["OwnerId"] = request.ownerId;
1938
+ }
1939
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1940
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1941
+ }
1942
+ if (!$dara.isNull(request.resourceOwnerId)) {
1943
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1944
+ }
1945
+ if (!$dara.isNull(request.to)) {
1946
+ query["To"] = request.to;
1417
1947
  }
1418
1948
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1419
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
1949
+ query: openapi_core_2.OpenApiUtil.query(query),
1420
1950
  });
1421
1951
  let params = new openapi_core_2.$OpenApiUtil.Params({
1422
- action: "DeprecateFlow",
1952
+ action: "GetChatFlowMetric",
1423
1953
  version: "2020-06-06",
1424
1954
  protocol: "HTTPS",
1425
1955
  pathname: "/",
@@ -1429,42 +1959,48 @@ class Client extends openapi_core_1.default {
1429
1959
  reqBodyType: "formData",
1430
1960
  bodyType: "json",
1431
1961
  });
1432
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeprecateFlowResponse({}));
1962
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetChatFlowMetricResponse({}));
1433
1963
  }
1434
1964
  /**
1435
- * Deprecates a Flow.
1965
+ * Get ChatFlow Runtime Data
1436
1966
  *
1437
- * @param request - DeprecateFlowRequest
1438
- * @returns DeprecateFlowResponse
1967
+ * @param request - GetChatFlowMetricRequest
1968
+ * @returns GetChatFlowMetricResponse
1439
1969
  */
1440
- async deprecateFlow(request) {
1970
+ async getChatFlowMetric(request) {
1441
1971
  let runtime = new $dara.RuntimeOptions({});
1442
- return await this.deprecateFlowWithOptions(request, runtime);
1972
+ return await this.getChatFlowMetricWithOptions(request, runtime);
1443
1973
  }
1444
1974
  /**
1445
- * Enables the statistics on the metrics that are related to WhatsApp.
1975
+ * Query chatFlow template
1446
1976
  *
1447
- * @remarks
1448
- * 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.
1449
- *
1450
- * @param request - EnableWhatsappROIMetricRequest
1977
+ * @param request - GetChatFlowTemplateRequest
1451
1978
  * @param runtime - runtime options for this request RuntimeOptions
1452
- * @returns EnableWhatsappROIMetricResponse
1979
+ * @returns GetChatFlowTemplateResponse
1453
1980
  */
1454
- async enableWhatsappROIMetricWithOptions(request, runtime) {
1981
+ async getChatFlowTemplateWithOptions(request, runtime) {
1455
1982
  request.validate();
1456
1983
  let query = {};
1457
- if (!$dara.isNull(request.custSpaceId)) {
1458
- query["CustSpaceId"] = request.custSpaceId;
1984
+ if (!$dara.isNull(request.bizCode)) {
1985
+ query["BizCode"] = request.bizCode;
1459
1986
  }
1460
- if (!$dara.isNull(request.isvCode)) {
1461
- query["IsvCode"] = request.isvCode;
1987
+ if (!$dara.isNull(request.id)) {
1988
+ query["Id"] = request.id;
1989
+ }
1990
+ if (!$dara.isNull(request.ownerId)) {
1991
+ query["OwnerId"] = request.ownerId;
1992
+ }
1993
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1994
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1995
+ }
1996
+ if (!$dara.isNull(request.resourceOwnerId)) {
1997
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1462
1998
  }
1463
1999
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1464
2000
  query: openapi_core_2.OpenApiUtil.query(query),
1465
2001
  });
1466
2002
  let params = new openapi_core_2.$OpenApiUtil.Params({
1467
- action: "EnableWhatsappROIMetric",
2003
+ action: "GetChatFlowTemplate",
1468
2004
  version: "2020-06-06",
1469
2005
  protocol: "HTTPS",
1470
2006
  pathname: "/",
@@ -1474,20 +2010,17 @@ class Client extends openapi_core_1.default {
1474
2010
  reqBodyType: "formData",
1475
2011
  bodyType: "json",
1476
2012
  });
1477
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableWhatsappROIMetricResponse({}));
2013
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetChatFlowTemplateResponse({}));
1478
2014
  }
1479
2015
  /**
1480
- * Enables the statistics on the metrics that are related to WhatsApp.
1481
- *
1482
- * @remarks
1483
- * 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.
2016
+ * Query chatFlow template
1484
2017
  *
1485
- * @param request - EnableWhatsappROIMetricRequest
1486
- * @returns EnableWhatsappROIMetricResponse
2018
+ * @param request - GetChatFlowTemplateRequest
2019
+ * @returns GetChatFlowTemplateResponse
1487
2020
  */
1488
- async enableWhatsappROIMetric(request) {
2021
+ async getChatFlowTemplate(request) {
1489
2022
  let runtime = new $dara.RuntimeOptions({});
1490
- return await this.enableWhatsappROIMetricWithOptions(request, runtime);
2023
+ return await this.getChatFlowTemplateWithOptions(request, runtime);
1491
2024
  }
1492
2025
  /**
1493
2026
  * Queries the number of messages that are sent by using a phone number by a specific metric.
@@ -2292,15 +2825,193 @@ class Client extends openapi_core_1.default {
2292
2825
  * @remarks
2293
2826
  * You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2294
2827
  *
2295
- * @param request - GetWhatsappConnectionCatalogRequest
2828
+ * @param request - GetWhatsappConnectionCatalogRequest
2829
+ * @param runtime - runtime options for this request RuntimeOptions
2830
+ * @returns GetWhatsappConnectionCatalogResponse
2831
+ */
2832
+ async getWhatsappConnectionCatalogWithOptions(request, runtime) {
2833
+ request.validate();
2834
+ let query = {};
2835
+ if (!$dara.isNull(request.custSpaceId)) {
2836
+ query["CustSpaceId"] = request.custSpaceId;
2837
+ }
2838
+ if (!$dara.isNull(request.ownerId)) {
2839
+ query["OwnerId"] = request.ownerId;
2840
+ }
2841
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2842
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2843
+ }
2844
+ if (!$dara.isNull(request.resourceOwnerId)) {
2845
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2846
+ }
2847
+ if (!$dara.isNull(request.wabaId)) {
2848
+ query["WabaId"] = request.wabaId;
2849
+ }
2850
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2851
+ query: openapi_core_2.OpenApiUtil.query(query),
2852
+ });
2853
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2854
+ action: "GetWhatsappConnectionCatalog",
2855
+ version: "2020-06-06",
2856
+ protocol: "HTTPS",
2857
+ pathname: "/",
2858
+ method: "POST",
2859
+ authType: "AK",
2860
+ style: "RPC",
2861
+ reqBodyType: "formData",
2862
+ bodyType: "json",
2863
+ });
2864
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWhatsappConnectionCatalogResponse({}));
2865
+ }
2866
+ /**
2867
+ * Queries the product catalogs that are associated with a WhatsApp Business account (WABA).
2868
+ *
2869
+ * @remarks
2870
+ * You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2871
+ *
2872
+ * @param request - GetWhatsappConnectionCatalogRequest
2873
+ * @returns GetWhatsappConnectionCatalogResponse
2874
+ */
2875
+ async getWhatsappConnectionCatalog(request) {
2876
+ let runtime = new $dara.RuntimeOptions({});
2877
+ return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
2878
+ }
2879
+ /**
2880
+ * Queries the messaging health status of different types of nodes.
2881
+ *
2882
+ * @remarks
2883
+ * ### [](#qps-)QPS limit
2884
+ * You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2885
+ * This operation will directly obtain data from Facebook, which sets an upper limit on the total number of calls for operations. We recommend that you take note of the limit when you call this operation.
2886
+ *
2887
+ * @param request - GetWhatsappHealthStatusRequest
2888
+ * @param runtime - runtime options for this request RuntimeOptions
2889
+ * @returns GetWhatsappHealthStatusResponse
2890
+ */
2891
+ async getWhatsappHealthStatusWithOptions(request, runtime) {
2892
+ request.validate();
2893
+ let query = {};
2894
+ if (!$dara.isNull(request.custSpaceId)) {
2895
+ query["CustSpaceId"] = request.custSpaceId;
2896
+ }
2897
+ if (!$dara.isNull(request.language)) {
2898
+ query["Language"] = request.language;
2899
+ }
2900
+ if (!$dara.isNull(request.nodeType)) {
2901
+ query["NodeType"] = request.nodeType;
2902
+ }
2903
+ if (!$dara.isNull(request.ownerId)) {
2904
+ query["OwnerId"] = request.ownerId;
2905
+ }
2906
+ if (!$dara.isNull(request.phoneNumber)) {
2907
+ query["PhoneNumber"] = request.phoneNumber;
2908
+ }
2909
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2910
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2911
+ }
2912
+ if (!$dara.isNull(request.resourceOwnerId)) {
2913
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2914
+ }
2915
+ if (!$dara.isNull(request.templateCode)) {
2916
+ query["TemplateCode"] = request.templateCode;
2917
+ }
2918
+ if (!$dara.isNull(request.wabaId)) {
2919
+ query["WabaId"] = request.wabaId;
2920
+ }
2921
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2922
+ query: openapi_core_2.OpenApiUtil.query(query),
2923
+ });
2924
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2925
+ action: "GetWhatsappHealthStatus",
2926
+ version: "2020-06-06",
2927
+ protocol: "HTTPS",
2928
+ pathname: "/",
2929
+ method: "POST",
2930
+ authType: "AK",
2931
+ style: "RPC",
2932
+ reqBodyType: "formData",
2933
+ bodyType: "json",
2934
+ });
2935
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWhatsappHealthStatusResponse({}));
2936
+ }
2937
+ /**
2938
+ * Queries the messaging health status of different types of nodes.
2939
+ *
2940
+ * @remarks
2941
+ * ### [](#qps-)QPS limit
2942
+ * You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2943
+ * This operation will directly obtain data from Facebook, which sets an upper limit on the total number of calls for operations. We recommend that you take note of the limit when you call this operation.
2944
+ *
2945
+ * @param request - GetWhatsappHealthStatusRequest
2946
+ * @returns GetWhatsappHealthStatusResponse
2947
+ */
2948
+ async getWhatsappHealthStatus(request) {
2949
+ let runtime = new $dara.RuntimeOptions({});
2950
+ return await this.getWhatsappHealthStatusWithOptions(request, runtime);
2951
+ }
2952
+ /**
2953
+ * Obtains the application ID under the ISV account.
2954
+ *
2955
+ * @remarks
2956
+ * You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2957
+ *
2958
+ * @param request - IsvGetAppIdRequest
2959
+ * @param runtime - runtime options for this request RuntimeOptions
2960
+ * @returns IsvGetAppIdResponse
2961
+ */
2962
+ async isvGetAppIdWithOptions(request, runtime) {
2963
+ request.validate();
2964
+ let body = {};
2965
+ if (!$dara.isNull(request.permissions)) {
2966
+ body["Permissions"] = request.permissions;
2967
+ }
2968
+ if (!$dara.isNull(request.type)) {
2969
+ body["Type"] = request.type;
2970
+ }
2971
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2972
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
2973
+ });
2974
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2975
+ action: "IsvGetAppId",
2976
+ version: "2020-06-06",
2977
+ protocol: "HTTPS",
2978
+ pathname: "/",
2979
+ method: "POST",
2980
+ authType: "AK",
2981
+ style: "RPC",
2982
+ reqBodyType: "formData",
2983
+ bodyType: "json",
2984
+ });
2985
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.IsvGetAppIdResponse({}));
2986
+ }
2987
+ /**
2988
+ * Obtains the application ID under the ISV account.
2989
+ *
2990
+ * @remarks
2991
+ * You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2992
+ *
2993
+ * @param request - IsvGetAppIdRequest
2994
+ * @returns IsvGetAppIdResponse
2995
+ */
2996
+ async isvGetAppId(request) {
2997
+ let runtime = new $dara.RuntimeOptions({});
2998
+ return await this.isvGetAppIdWithOptions(request, runtime);
2999
+ }
3000
+ /**
3001
+ * 根据flowCode查询已绑定列表
3002
+ *
3003
+ * @param request - ListBindingRelationsForFlowVersionRequest
2296
3004
  * @param runtime - runtime options for this request RuntimeOptions
2297
- * @returns GetWhatsappConnectionCatalogResponse
3005
+ * @returns ListBindingRelationsForFlowVersionResponse
2298
3006
  */
2299
- async getWhatsappConnectionCatalogWithOptions(request, runtime) {
3007
+ async listBindingRelationsForFlowVersionWithOptions(request, runtime) {
2300
3008
  request.validate();
2301
3009
  let query = {};
2302
- if (!$dara.isNull(request.custSpaceId)) {
2303
- query["CustSpaceId"] = request.custSpaceId;
3010
+ if (!$dara.isNull(request.channelType)) {
3011
+ query["ChannelType"] = request.channelType;
3012
+ }
3013
+ if (!$dara.isNull(request.flowCode)) {
3014
+ query["FlowCode"] = request.flowCode;
2304
3015
  }
2305
3016
  if (!$dara.isNull(request.ownerId)) {
2306
3017
  query["OwnerId"] = request.ownerId;
@@ -2311,14 +3022,11 @@ class Client extends openapi_core_1.default {
2311
3022
  if (!$dara.isNull(request.resourceOwnerId)) {
2312
3023
  query["ResourceOwnerId"] = request.resourceOwnerId;
2313
3024
  }
2314
- if (!$dara.isNull(request.wabaId)) {
2315
- query["WabaId"] = request.wabaId;
2316
- }
2317
3025
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2318
3026
  query: openapi_core_2.OpenApiUtil.query(query),
2319
3027
  });
2320
3028
  let params = new openapi_core_2.$OpenApiUtil.Params({
2321
- action: "GetWhatsappConnectionCatalog",
3029
+ action: "ListBindingRelationsForFlowVersion",
2322
3030
  version: "2020-06-06",
2323
3031
  protocol: "HTTPS",
2324
3032
  pathname: "/",
@@ -2328,50 +3036,53 @@ class Client extends openapi_core_1.default {
2328
3036
  reqBodyType: "formData",
2329
3037
  bodyType: "json",
2330
3038
  });
2331
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWhatsappConnectionCatalogResponse({}));
3039
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListBindingRelationsForFlowVersionResponse({}));
2332
3040
  }
2333
3041
  /**
2334
- * Queries the product catalogs that are associated with a WhatsApp Business account (WABA).
2335
- *
2336
- * @remarks
2337
- * You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
3042
+ * 根据flowCode查询已绑定列表
2338
3043
  *
2339
- * @param request - GetWhatsappConnectionCatalogRequest
2340
- * @returns GetWhatsappConnectionCatalogResponse
3044
+ * @param request - ListBindingRelationsForFlowVersionRequest
3045
+ * @returns ListBindingRelationsForFlowVersionResponse
2341
3046
  */
2342
- async getWhatsappConnectionCatalog(request) {
3047
+ async listBindingRelationsForFlowVersion(request) {
2343
3048
  let runtime = new $dara.RuntimeOptions({});
2344
- return await this.getWhatsappConnectionCatalogWithOptions(request, runtime);
3049
+ return await this.listBindingRelationsForFlowVersionWithOptions(request, runtime);
2345
3050
  }
2346
3051
  /**
2347
- * Queries the messaging health status of different types of nodes.
2348
- *
2349
- * @remarks
2350
- * ### [](#qps-)QPS limit
2351
- * 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.
2352
- * 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.
3052
+ * List Flows
2353
3053
  *
2354
- * @param request - GetWhatsappHealthStatusRequest
3054
+ * @param tmpReq - ListChatFlowRequest
2355
3055
  * @param runtime - runtime options for this request RuntimeOptions
2356
- * @returns GetWhatsappHealthStatusResponse
3056
+ * @returns ListChatFlowResponse
2357
3057
  */
2358
- async getWhatsappHealthStatusWithOptions(request, runtime) {
2359
- request.validate();
3058
+ async listChatFlowWithOptions(tmpReq, runtime) {
3059
+ tmpReq.validate();
3060
+ let request = new $_model.ListChatFlowShrinkRequest({});
3061
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3062
+ if (!$dara.isNull(tmpReq.bizExtend)) {
3063
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
3064
+ }
2360
3065
  let query = {};
2361
- if (!$dara.isNull(request.custSpaceId)) {
2362
- query["CustSpaceId"] = request.custSpaceId;
3066
+ if (!$dara.isNull(request.bizCode)) {
3067
+ query["BizCode"] = request.bizCode;
2363
3068
  }
2364
- if (!$dara.isNull(request.language)) {
2365
- query["Language"] = request.language;
3069
+ if (!$dara.isNull(request.bizExtendShrink)) {
3070
+ query["BizExtend"] = request.bizExtendShrink;
2366
3071
  }
2367
- if (!$dara.isNull(request.nodeType)) {
2368
- query["NodeType"] = request.nodeType;
3072
+ if (!$dara.isNull(request.flowTriggerType)) {
3073
+ query["FlowTriggerType"] = request.flowTriggerType;
3074
+ }
3075
+ if (!$dara.isNull(request.keyword)) {
3076
+ query["Keyword"] = request.keyword;
2369
3077
  }
2370
3078
  if (!$dara.isNull(request.ownerId)) {
2371
3079
  query["OwnerId"] = request.ownerId;
2372
3080
  }
2373
- if (!$dara.isNull(request.phoneNumber)) {
2374
- query["PhoneNumber"] = request.phoneNumber;
3081
+ if (!$dara.isNull(request.pageNo)) {
3082
+ query["PageNo"] = request.pageNo;
3083
+ }
3084
+ if (!$dara.isNull(request.pageSize)) {
3085
+ query["PageSize"] = request.pageSize;
2375
3086
  }
2376
3087
  if (!$dara.isNull(request.resourceOwnerAccount)) {
2377
3088
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
@@ -2379,17 +3090,17 @@ class Client extends openapi_core_1.default {
2379
3090
  if (!$dara.isNull(request.resourceOwnerId)) {
2380
3091
  query["ResourceOwnerId"] = request.resourceOwnerId;
2381
3092
  }
2382
- if (!$dara.isNull(request.templateCode)) {
2383
- query["TemplateCode"] = request.templateCode;
3093
+ if (!$dara.isNull(request.returnWithOnlineVersion)) {
3094
+ query["ReturnWithOnlineVersion"] = request.returnWithOnlineVersion;
2384
3095
  }
2385
- if (!$dara.isNull(request.wabaId)) {
2386
- query["WabaId"] = request.wabaId;
3096
+ if (!$dara.isNull(request.status)) {
3097
+ query["Status"] = request.status;
2387
3098
  }
2388
3099
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2389
3100
  query: openapi_core_2.OpenApiUtil.query(query),
2390
3101
  });
2391
3102
  let params = new openapi_core_2.$OpenApiUtil.Params({
2392
- action: "GetWhatsappHealthStatus",
3103
+ action: "ListChatFlow",
2393
3104
  version: "2020-06-06",
2394
3105
  protocol: "HTTPS",
2395
3106
  pathname: "/",
@@ -2399,47 +3110,57 @@ class Client extends openapi_core_1.default {
2399
3110
  reqBodyType: "formData",
2400
3111
  bodyType: "json",
2401
3112
  });
2402
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWhatsappHealthStatusResponse({}));
3113
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatFlowResponse({}));
2403
3114
  }
2404
3115
  /**
2405
- * Queries the messaging health status of different types of nodes.
2406
- *
2407
- * @remarks
2408
- * ### [](#qps-)QPS limit
2409
- * 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.
2410
- * 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.
3116
+ * List Flows
2411
3117
  *
2412
- * @param request - GetWhatsappHealthStatusRequest
2413
- * @returns GetWhatsappHealthStatusResponse
3118
+ * @param request - ListChatFlowRequest
3119
+ * @returns ListChatFlowResponse
2414
3120
  */
2415
- async getWhatsappHealthStatus(request) {
3121
+ async listChatFlow(request) {
2416
3122
  let runtime = new $dara.RuntimeOptions({});
2417
- return await this.getWhatsappHealthStatusWithOptions(request, runtime);
3123
+ return await this.listChatFlowWithOptions(request, runtime);
2418
3124
  }
2419
3125
  /**
2420
- * Obtains the application ID under the ISV account.
3126
+ * ChatFlow Template List
2421
3127
  *
2422
- * @remarks
2423
- * 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.
2424
- *
2425
- * @param request - IsvGetAppIdRequest
3128
+ * @param request - ListChatFlowTemplateRequest
2426
3129
  * @param runtime - runtime options for this request RuntimeOptions
2427
- * @returns IsvGetAppIdResponse
3130
+ * @returns ListChatFlowTemplateResponse
2428
3131
  */
2429
- async isvGetAppIdWithOptions(request, runtime) {
3132
+ async listChatFlowTemplateWithOptions(request, runtime) {
2430
3133
  request.validate();
2431
- let body = {};
2432
- if (!$dara.isNull(request.permissions)) {
2433
- body["Permissions"] = request.permissions;
3134
+ let query = {};
3135
+ if (!$dara.isNull(request.bizCode)) {
3136
+ query["BizCode"] = request.bizCode;
2434
3137
  }
2435
- if (!$dara.isNull(request.type)) {
2436
- body["Type"] = request.type;
3138
+ if (!$dara.isNull(request.keyword)) {
3139
+ query["Keyword"] = request.keyword;
3140
+ }
3141
+ if (!$dara.isNull(request.ownerId)) {
3142
+ query["OwnerId"] = request.ownerId;
3143
+ }
3144
+ if (!$dara.isNull(request.pageNo)) {
3145
+ query["PageNo"] = request.pageNo;
3146
+ }
3147
+ if (!$dara.isNull(request.pageSize)) {
3148
+ query["PageSize"] = request.pageSize;
3149
+ }
3150
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3151
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3152
+ }
3153
+ if (!$dara.isNull(request.resourceOwnerId)) {
3154
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3155
+ }
3156
+ if (!$dara.isNull(request.triggerType)) {
3157
+ query["TriggerType"] = request.triggerType;
2437
3158
  }
2438
3159
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2439
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
3160
+ query: openapi_core_2.OpenApiUtil.query(query),
2440
3161
  });
2441
3162
  let params = new openapi_core_2.$OpenApiUtil.Params({
2442
- action: "IsvGetAppId",
3163
+ action: "ListChatFlowTemplate",
2443
3164
  version: "2020-06-06",
2444
3165
  protocol: "HTTPS",
2445
3166
  pathname: "/",
@@ -2449,20 +3170,17 @@ class Client extends openapi_core_1.default {
2449
3170
  reqBodyType: "formData",
2450
3171
  bodyType: "json",
2451
3172
  });
2452
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.IsvGetAppIdResponse({}));
3173
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatFlowTemplateResponse({}));
2453
3174
  }
2454
3175
  /**
2455
- * Obtains the application ID under the ISV account.
2456
- *
2457
- * @remarks
2458
- * 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.
3176
+ * ChatFlow Template List
2459
3177
  *
2460
- * @param request - IsvGetAppIdRequest
2461
- * @returns IsvGetAppIdResponse
3178
+ * @param request - ListChatFlowTemplateRequest
3179
+ * @returns ListChatFlowTemplateResponse
2462
3180
  */
2463
- async isvGetAppId(request) {
3181
+ async listChatFlowTemplate(request) {
2464
3182
  let runtime = new $dara.RuntimeOptions({});
2465
- return await this.isvGetAppIdWithOptions(request, runtime);
3183
+ return await this.listChatFlowTemplateWithOptions(request, runtime);
2466
3184
  }
2467
3185
  /**
2468
3186
  * ListChatGroup
@@ -2741,6 +3459,74 @@ class Client extends openapi_core_1.default {
2741
3459
  let runtime = new $dara.RuntimeOptions({});
2742
3460
  return await this.listFlowWithOptions(request, runtime);
2743
3461
  }
3462
+ /**
3463
+ * List Flow Versions
3464
+ *
3465
+ * @param tmpReq - ListFlowVersionRequest
3466
+ * @param runtime - runtime options for this request RuntimeOptions
3467
+ * @returns ListFlowVersionResponse
3468
+ */
3469
+ async listFlowVersionWithOptions(tmpReq, runtime) {
3470
+ tmpReq.validate();
3471
+ let request = new $_model.ListFlowVersionShrinkRequest({});
3472
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3473
+ if (!$dara.isNull(tmpReq.bizExtend)) {
3474
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
3475
+ }
3476
+ let query = {};
3477
+ if (!$dara.isNull(request.bizCode)) {
3478
+ query["BizCode"] = request.bizCode;
3479
+ }
3480
+ if (!$dara.isNull(request.bizExtendShrink)) {
3481
+ query["BizExtend"] = request.bizExtendShrink;
3482
+ }
3483
+ if (!$dara.isNull(request.flowCode)) {
3484
+ query["FlowCode"] = request.flowCode;
3485
+ }
3486
+ if (!$dara.isNull(request.ownerId)) {
3487
+ query["OwnerId"] = request.ownerId;
3488
+ }
3489
+ if (!$dara.isNull(request.pageNo)) {
3490
+ query["PageNo"] = request.pageNo;
3491
+ }
3492
+ if (!$dara.isNull(request.pageSize)) {
3493
+ query["PageSize"] = request.pageSize;
3494
+ }
3495
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3496
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3497
+ }
3498
+ if (!$dara.isNull(request.resourceOwnerId)) {
3499
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3500
+ }
3501
+ if (!$dara.isNull(request.status)) {
3502
+ query["Status"] = request.status;
3503
+ }
3504
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3505
+ query: openapi_core_2.OpenApiUtil.query(query),
3506
+ });
3507
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3508
+ action: "ListFlowVersion",
3509
+ version: "2020-06-06",
3510
+ protocol: "HTTPS",
3511
+ pathname: "/",
3512
+ method: "POST",
3513
+ authType: "AK",
3514
+ style: "RPC",
3515
+ reqBodyType: "formData",
3516
+ bodyType: "json",
3517
+ });
3518
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListFlowVersionResponse({}));
3519
+ }
3520
+ /**
3521
+ * List Flow Versions
3522
+ *
3523
+ * @param request - ListFlowVersionRequest
3524
+ * @returns ListFlowVersionResponse
3525
+ */
3526
+ async listFlowVersion(request) {
3527
+ let runtime = new $dara.RuntimeOptions({});
3528
+ return await this.listFlowVersionWithOptions(request, runtime);
3529
+ }
2744
3530
  /**
2745
3531
  * Queries the information about a list of quick-response (QR) codes that contain messages.
2746
3532
  *
@@ -2750,15 +3536,24 @@ class Client extends openapi_core_1.default {
2750
3536
  */
2751
3537
  async listPhoneMessageQrdlWithOptions(request, runtime) {
2752
3538
  request.validate();
2753
- let body = {};
3539
+ let query = {};
2754
3540
  if (!$dara.isNull(request.custSpaceId)) {
2755
- body["CustSpaceId"] = request.custSpaceId;
3541
+ query["CustSpaceId"] = request.custSpaceId;
3542
+ }
3543
+ if (!$dara.isNull(request.ownerId)) {
3544
+ query["OwnerId"] = request.ownerId;
2756
3545
  }
2757
3546
  if (!$dara.isNull(request.phoneNumber)) {
2758
- body["PhoneNumber"] = request.phoneNumber;
3547
+ query["PhoneNumber"] = request.phoneNumber;
3548
+ }
3549
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3550
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3551
+ }
3552
+ if (!$dara.isNull(request.resourceOwnerId)) {
3553
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2759
3554
  }
2760
3555
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2761
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
3556
+ query: openapi_core_2.OpenApiUtil.query(query),
2762
3557
  });
2763
3558
  let params = new openapi_core_2.$OpenApiUtil.Params({
2764
3559
  action: "ListPhoneMessageQrdl",
@@ -3208,12 +4003,142 @@ class Client extends openapi_core_1.default {
3208
4003
  * @remarks
3209
4004
  * ModifyPhoneBusinessProfile
3210
4005
  *
3211
- * @param request - ModifyPhoneBusinessProfileRequest
3212
- * @returns ModifyPhoneBusinessProfileResponse
4006
+ * @param request - ModifyPhoneBusinessProfileRequest
4007
+ * @returns ModifyPhoneBusinessProfileResponse
4008
+ */
4009
+ async modifyPhoneBusinessProfile(request) {
4010
+ let runtime = new $dara.RuntimeOptions({});
4011
+ return await this.modifyPhoneBusinessProfileWithOptions(request, runtime);
4012
+ }
4013
+ /**
4014
+ * Offline Flow Version
4015
+ *
4016
+ * @param tmpReq - OfflineFlowVersionRequest
4017
+ * @param runtime - runtime options for this request RuntimeOptions
4018
+ * @returns OfflineFlowVersionResponse
4019
+ */
4020
+ async offlineFlowVersionWithOptions(tmpReq, runtime) {
4021
+ tmpReq.validate();
4022
+ let request = new $_model.OfflineFlowVersionShrinkRequest({});
4023
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4024
+ if (!$dara.isNull(tmpReq.bizExtend)) {
4025
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
4026
+ }
4027
+ let query = {};
4028
+ if (!$dara.isNull(request.bizCode)) {
4029
+ query["BizCode"] = request.bizCode;
4030
+ }
4031
+ if (!$dara.isNull(request.bizExtendShrink)) {
4032
+ query["BizExtend"] = request.bizExtendShrink;
4033
+ }
4034
+ if (!$dara.isNull(request.flowCode)) {
4035
+ query["FlowCode"] = request.flowCode;
4036
+ }
4037
+ if (!$dara.isNull(request.flowVersion)) {
4038
+ query["FlowVersion"] = request.flowVersion;
4039
+ }
4040
+ if (!$dara.isNull(request.ownerId)) {
4041
+ query["OwnerId"] = request.ownerId;
4042
+ }
4043
+ if (!$dara.isNull(request.remark)) {
4044
+ query["Remark"] = request.remark;
4045
+ }
4046
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4047
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4048
+ }
4049
+ if (!$dara.isNull(request.resourceOwnerId)) {
4050
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4051
+ }
4052
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4053
+ query: openapi_core_2.OpenApiUtil.query(query),
4054
+ });
4055
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4056
+ action: "OfflineFlowVersion",
4057
+ version: "2020-06-06",
4058
+ protocol: "HTTPS",
4059
+ pathname: "/",
4060
+ method: "POST",
4061
+ authType: "AK",
4062
+ style: "RPC",
4063
+ reqBodyType: "formData",
4064
+ bodyType: "json",
4065
+ });
4066
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.OfflineFlowVersionResponse({}));
4067
+ }
4068
+ /**
4069
+ * Offline Flow Version
4070
+ *
4071
+ * @param request - OfflineFlowVersionRequest
4072
+ * @returns OfflineFlowVersionResponse
4073
+ */
4074
+ async offlineFlowVersion(request) {
4075
+ let runtime = new $dara.RuntimeOptions({});
4076
+ return await this.offlineFlowVersionWithOptions(request, runtime);
4077
+ }
4078
+ /**
4079
+ * Online Flow Version
4080
+ *
4081
+ * @param tmpReq - OnlineFlowVersionRequest
4082
+ * @param runtime - runtime options for this request RuntimeOptions
4083
+ * @returns OnlineFlowVersionResponse
4084
+ */
4085
+ async onlineFlowVersionWithOptions(tmpReq, runtime) {
4086
+ tmpReq.validate();
4087
+ let request = new $_model.OnlineFlowVersionShrinkRequest({});
4088
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4089
+ if (!$dara.isNull(tmpReq.bizExtend)) {
4090
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
4091
+ }
4092
+ let query = {};
4093
+ if (!$dara.isNull(request.bizCode)) {
4094
+ query["BizCode"] = request.bizCode;
4095
+ }
4096
+ if (!$dara.isNull(request.bizExtendShrink)) {
4097
+ query["BizExtend"] = request.bizExtendShrink;
4098
+ }
4099
+ if (!$dara.isNull(request.flowCode)) {
4100
+ query["FlowCode"] = request.flowCode;
4101
+ }
4102
+ if (!$dara.isNull(request.flowVersion)) {
4103
+ query["FlowVersion"] = request.flowVersion;
4104
+ }
4105
+ if (!$dara.isNull(request.ownerId)) {
4106
+ query["OwnerId"] = request.ownerId;
4107
+ }
4108
+ if (!$dara.isNull(request.remark)) {
4109
+ query["Remark"] = request.remark;
4110
+ }
4111
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4112
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4113
+ }
4114
+ if (!$dara.isNull(request.resourceOwnerId)) {
4115
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4116
+ }
4117
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4118
+ query: openapi_core_2.OpenApiUtil.query(query),
4119
+ });
4120
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4121
+ action: "OnlineFlowVersion",
4122
+ version: "2020-06-06",
4123
+ protocol: "HTTPS",
4124
+ pathname: "/",
4125
+ method: "POST",
4126
+ authType: "AK",
4127
+ style: "RPC",
4128
+ reqBodyType: "formData",
4129
+ bodyType: "json",
4130
+ });
4131
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.OnlineFlowVersionResponse({}));
4132
+ }
4133
+ /**
4134
+ * Online Flow Version
4135
+ *
4136
+ * @param request - OnlineFlowVersionRequest
4137
+ * @returns OnlineFlowVersionResponse
3213
4138
  */
3214
- async modifyPhoneBusinessProfile(request) {
4139
+ async onlineFlowVersion(request) {
3215
4140
  let runtime = new $dara.RuntimeOptions({});
3216
- return await this.modifyPhoneBusinessProfileWithOptions(request, runtime);
4141
+ return await this.onlineFlowVersionWithOptions(request, runtime);
3217
4142
  }
3218
4143
  /**
3219
4144
  * Publishes a Flow.
@@ -3494,6 +4419,178 @@ class Client extends openapi_core_1.default {
3494
4419
  let runtime = new $dara.RuntimeOptions({});
3495
4420
  return await this.queryWabaBusinessInfoWithOptions(request, runtime);
3496
4421
  }
4422
+ /**
4423
+ * Retrieve Flow
4424
+ *
4425
+ * @param tmpReq - ReadChatFlowRequest
4426
+ * @param runtime - runtime options for this request RuntimeOptions
4427
+ * @returns ReadChatFlowResponse
4428
+ */
4429
+ async readChatFlowWithOptions(tmpReq, runtime) {
4430
+ tmpReq.validate();
4431
+ let request = new $_model.ReadChatFlowShrinkRequest({});
4432
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4433
+ if (!$dara.isNull(tmpReq.bizExtend)) {
4434
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
4435
+ }
4436
+ let query = {};
4437
+ if (!$dara.isNull(request.bizCode)) {
4438
+ query["BizCode"] = request.bizCode;
4439
+ }
4440
+ if (!$dara.isNull(request.bizExtendShrink)) {
4441
+ query["BizExtend"] = request.bizExtendShrink;
4442
+ }
4443
+ if (!$dara.isNull(request.flowCode)) {
4444
+ query["FlowCode"] = request.flowCode;
4445
+ }
4446
+ if (!$dara.isNull(request.ownerId)) {
4447
+ query["OwnerId"] = request.ownerId;
4448
+ }
4449
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4450
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4451
+ }
4452
+ if (!$dara.isNull(request.resourceOwnerId)) {
4453
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4454
+ }
4455
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4456
+ query: openapi_core_2.OpenApiUtil.query(query),
4457
+ });
4458
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4459
+ action: "ReadChatFlow",
4460
+ version: "2020-06-06",
4461
+ protocol: "HTTPS",
4462
+ pathname: "/",
4463
+ method: "POST",
4464
+ authType: "AK",
4465
+ style: "RPC",
4466
+ reqBodyType: "formData",
4467
+ bodyType: "json",
4468
+ });
4469
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReadChatFlowResponse({}));
4470
+ }
4471
+ /**
4472
+ * Retrieve Flow
4473
+ *
4474
+ * @param request - ReadChatFlowRequest
4475
+ * @returns ReadChatFlowResponse
4476
+ */
4477
+ async readChatFlow(request) {
4478
+ let runtime = new $dara.RuntimeOptions({});
4479
+ return await this.readChatFlowWithOptions(request, runtime);
4480
+ }
4481
+ /**
4482
+ * View chatFlow log settings
4483
+ *
4484
+ * @param request - ReadChatFlowLogSettingRequest
4485
+ * @param runtime - runtime options for this request RuntimeOptions
4486
+ * @returns ReadChatFlowLogSettingResponse
4487
+ */
4488
+ async readChatFlowLogSettingWithOptions(request, runtime) {
4489
+ request.validate();
4490
+ let query = {};
4491
+ if (!$dara.isNull(request.flowCode)) {
4492
+ query["FlowCode"] = request.flowCode;
4493
+ }
4494
+ if (!$dara.isNull(request.ownerId)) {
4495
+ query["OwnerId"] = request.ownerId;
4496
+ }
4497
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4498
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4499
+ }
4500
+ if (!$dara.isNull(request.resourceOwnerId)) {
4501
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4502
+ }
4503
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4504
+ query: openapi_core_2.OpenApiUtil.query(query),
4505
+ });
4506
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4507
+ action: "ReadChatFlowLogSetting",
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(await this.callApi(params, req, runtime), new $_model.ReadChatFlowLogSettingResponse({}));
4518
+ }
4519
+ /**
4520
+ * View chatFlow log settings
4521
+ *
4522
+ * @param request - ReadChatFlowLogSettingRequest
4523
+ * @returns ReadChatFlowLogSettingResponse
4524
+ */
4525
+ async readChatFlowLogSetting(request) {
4526
+ let runtime = new $dara.RuntimeOptions({});
4527
+ return await this.readChatFlowLogSettingWithOptions(request, runtime);
4528
+ }
4529
+ /**
4530
+ * Get Flow Version
4531
+ *
4532
+ * @param tmpReq - ReadFlowVersionRequest
4533
+ * @param runtime - runtime options for this request RuntimeOptions
4534
+ * @returns ReadFlowVersionResponse
4535
+ */
4536
+ async readFlowVersionWithOptions(tmpReq, runtime) {
4537
+ tmpReq.validate();
4538
+ let request = new $_model.ReadFlowVersionShrinkRequest({});
4539
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4540
+ if (!$dara.isNull(tmpReq.bizExtend)) {
4541
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
4542
+ }
4543
+ let query = {};
4544
+ if (!$dara.isNull(request.bizCode)) {
4545
+ query["BizCode"] = request.bizCode;
4546
+ }
4547
+ if (!$dara.isNull(request.bizExtendShrink)) {
4548
+ query["BizExtend"] = request.bizExtendShrink;
4549
+ }
4550
+ if (!$dara.isNull(request.flowCode)) {
4551
+ query["FlowCode"] = request.flowCode;
4552
+ }
4553
+ if (!$dara.isNull(request.flowVersion)) {
4554
+ query["FlowVersion"] = request.flowVersion;
4555
+ }
4556
+ if (!$dara.isNull(request.ownerId)) {
4557
+ query["OwnerId"] = request.ownerId;
4558
+ }
4559
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4560
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4561
+ }
4562
+ if (!$dara.isNull(request.resourceOwnerId)) {
4563
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4564
+ }
4565
+ if (!$dara.isNull(request.status)) {
4566
+ query["Status"] = request.status;
4567
+ }
4568
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4569
+ query: openapi_core_2.OpenApiUtil.query(query),
4570
+ });
4571
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4572
+ action: "ReadFlowVersion",
4573
+ version: "2020-06-06",
4574
+ protocol: "HTTPS",
4575
+ pathname: "/",
4576
+ method: "POST",
4577
+ authType: "AK",
4578
+ style: "RPC",
4579
+ reqBodyType: "formData",
4580
+ bodyType: "json",
4581
+ });
4582
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReadFlowVersionResponse({}));
4583
+ }
4584
+ /**
4585
+ * Get Flow Version
4586
+ *
4587
+ * @param request - ReadFlowVersionRequest
4588
+ * @returns ReadFlowVersionResponse
4589
+ */
4590
+ async readFlowVersion(request) {
4591
+ let runtime = new $dara.RuntimeOptions({});
4592
+ return await this.readFlowVersionWithOptions(request, runtime);
4593
+ }
3497
4594
  /**
3498
4595
  * Sends a message to multiple phone numbers by using ChatAPP at a time.
3499
4596
  *
@@ -3926,6 +5023,125 @@ class Client extends openapi_core_1.default {
3926
5023
  let runtime = new $dara.RuntimeOptions({});
3927
5024
  return await this.updateAccountWebhookWithOptions(request, runtime);
3928
5025
  }
5026
+ /**
5027
+ * Get Process
5028
+ *
5029
+ * @param tmpReq - UpdateChatFlowRequest
5030
+ * @param runtime - runtime options for this request RuntimeOptions
5031
+ * @returns UpdateChatFlowResponse
5032
+ */
5033
+ async updateChatFlowWithOptions(tmpReq, runtime) {
5034
+ tmpReq.validate();
5035
+ let request = new $_model.UpdateChatFlowShrinkRequest({});
5036
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5037
+ if (!$dara.isNull(tmpReq.bizExtend)) {
5038
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
5039
+ }
5040
+ let query = {};
5041
+ if (!$dara.isNull(request.bizCode)) {
5042
+ query["BizCode"] = request.bizCode;
5043
+ }
5044
+ if (!$dara.isNull(request.bizExtendShrink)) {
5045
+ query["BizExtend"] = request.bizExtendShrink;
5046
+ }
5047
+ if (!$dara.isNull(request.flowCode)) {
5048
+ query["FlowCode"] = request.flowCode;
5049
+ }
5050
+ if (!$dara.isNull(request.ownerId)) {
5051
+ query["OwnerId"] = request.ownerId;
5052
+ }
5053
+ if (!$dara.isNull(request.remark)) {
5054
+ query["Remark"] = request.remark;
5055
+ }
5056
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5057
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5058
+ }
5059
+ if (!$dara.isNull(request.resourceOwnerId)) {
5060
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5061
+ }
5062
+ if (!$dara.isNull(request.title)) {
5063
+ query["Title"] = request.title;
5064
+ }
5065
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5066
+ query: openapi_core_2.OpenApiUtil.query(query),
5067
+ });
5068
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5069
+ action: "UpdateChatFlow",
5070
+ version: "2020-06-06",
5071
+ protocol: "HTTPS",
5072
+ pathname: "/",
5073
+ method: "POST",
5074
+ authType: "AK",
5075
+ style: "RPC",
5076
+ reqBodyType: "formData",
5077
+ bodyType: "json",
5078
+ });
5079
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateChatFlowResponse({}));
5080
+ }
5081
+ /**
5082
+ * Get Process
5083
+ *
5084
+ * @param request - UpdateChatFlowRequest
5085
+ * @returns UpdateChatFlowResponse
5086
+ */
5087
+ async updateChatFlow(request) {
5088
+ let runtime = new $dara.RuntimeOptions({});
5089
+ return await this.updateChatFlowWithOptions(request, runtime);
5090
+ }
5091
+ /**
5092
+ * Modify chatFlow log settings
5093
+ *
5094
+ * @param request - UpdateChatFlowLogSettingRequest
5095
+ * @param runtime - runtime options for this request RuntimeOptions
5096
+ * @returns UpdateChatFlowLogSettingResponse
5097
+ */
5098
+ async updateChatFlowLogSettingWithOptions(request, runtime) {
5099
+ request.validate();
5100
+ let query = {};
5101
+ if (!$dara.isNull(request.flowCode)) {
5102
+ query["FlowCode"] = request.flowCode;
5103
+ }
5104
+ if (!$dara.isNull(request.id)) {
5105
+ query["Id"] = request.id;
5106
+ }
5107
+ if (!$dara.isNull(request.ownerId)) {
5108
+ query["OwnerId"] = request.ownerId;
5109
+ }
5110
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5111
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5112
+ }
5113
+ if (!$dara.isNull(request.resourceOwnerId)) {
5114
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5115
+ }
5116
+ if (!$dara.isNull(request.status)) {
5117
+ query["Status"] = request.status;
5118
+ }
5119
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5120
+ query: openapi_core_2.OpenApiUtil.query(query),
5121
+ });
5122
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5123
+ action: "UpdateChatFlowLogSetting",
5124
+ version: "2020-06-06",
5125
+ protocol: "HTTPS",
5126
+ pathname: "/",
5127
+ method: "POST",
5128
+ authType: "AK",
5129
+ style: "RPC",
5130
+ reqBodyType: "formData",
5131
+ bodyType: "json",
5132
+ });
5133
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateChatFlowLogSettingResponse({}));
5134
+ }
5135
+ /**
5136
+ * Modify chatFlow log settings
5137
+ *
5138
+ * @param request - UpdateChatFlowLogSettingRequest
5139
+ * @returns UpdateChatFlowLogSettingResponse
5140
+ */
5141
+ async updateChatFlowLogSetting(request) {
5142
+ let runtime = new $dara.RuntimeOptions({});
5143
+ return await this.updateChatFlowLogSettingWithOptions(request, runtime);
5144
+ }
3929
5145
  /**
3930
5146
  * UpdateChatGroup
3931
5147
  *
@@ -4178,6 +5394,74 @@ class Client extends openapi_core_1.default {
4178
5394
  let runtime = new $dara.RuntimeOptions({});
4179
5395
  return await this.updateFlowJSONAssetWithOptions(request, runtime);
4180
5396
  }
5397
+ /**
5398
+ * Update flow version, used for updating the flow DSL on the canvas
5399
+ *
5400
+ * @param tmpReq - UpdateFlowVersionRequest
5401
+ * @param runtime - runtime options for this request RuntimeOptions
5402
+ * @returns UpdateFlowVersionResponse
5403
+ */
5404
+ async updateFlowVersionWithOptions(tmpReq, runtime) {
5405
+ tmpReq.validate();
5406
+ let request = new $_model.UpdateFlowVersionShrinkRequest({});
5407
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5408
+ if (!$dara.isNull(tmpReq.bizExtend)) {
5409
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
5410
+ }
5411
+ let query = {};
5412
+ if (!$dara.isNull(request.bizCode)) {
5413
+ query["BizCode"] = request.bizCode;
5414
+ }
5415
+ if (!$dara.isNull(request.bizExtendShrink)) {
5416
+ query["BizExtend"] = request.bizExtendShrink;
5417
+ }
5418
+ if (!$dara.isNull(request.flowCode)) {
5419
+ query["FlowCode"] = request.flowCode;
5420
+ }
5421
+ if (!$dara.isNull(request.flowVersion)) {
5422
+ query["FlowVersion"] = request.flowVersion;
5423
+ }
5424
+ if (!$dara.isNull(request.flowViewModel)) {
5425
+ query["FlowViewModel"] = request.flowViewModel;
5426
+ }
5427
+ if (!$dara.isNull(request.ownerId)) {
5428
+ query["OwnerId"] = request.ownerId;
5429
+ }
5430
+ if (!$dara.isNull(request.remark)) {
5431
+ query["Remark"] = request.remark;
5432
+ }
5433
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5434
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5435
+ }
5436
+ if (!$dara.isNull(request.resourceOwnerId)) {
5437
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5438
+ }
5439
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5440
+ query: openapi_core_2.OpenApiUtil.query(query),
5441
+ });
5442
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5443
+ action: "UpdateFlowVersion",
5444
+ version: "2020-06-06",
5445
+ protocol: "HTTPS",
5446
+ pathname: "/",
5447
+ method: "POST",
5448
+ authType: "AK",
5449
+ style: "RPC",
5450
+ reqBodyType: "formData",
5451
+ bodyType: "json",
5452
+ });
5453
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateFlowVersionResponse({}));
5454
+ }
5455
+ /**
5456
+ * Update flow version, used for updating the flow DSL on the canvas
5457
+ *
5458
+ * @param request - UpdateFlowVersionRequest
5459
+ * @returns UpdateFlowVersionResponse
5460
+ */
5461
+ async updateFlowVersion(request) {
5462
+ let runtime = new $dara.RuntimeOptions({});
5463
+ return await this.updateFlowVersionWithOptions(request, runtime);
5464
+ }
4181
5465
  /**
4182
5466
  * Updates the encryption public key of a phone number.
4183
5467
  *