@alicloud/cams20200606 2.2.0 → 3.1.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 (1094) hide show
  1. package/dist/client.d.ts +385 -42
  2. package/dist/client.js +2348 -620
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ChatappBindWabaResponseBody.d.ts +30 -1
  5. package/dist/models/ChatappBindWabaResponseBody.js +25 -3
  6. package/dist/models/ChatappBindWabaResponseBody.js.map +1 -1
  7. package/dist/models/ChatappEmbedSignUpRequest.d.ts +4 -3
  8. package/dist/models/ChatappEmbedSignUpRequest.js +6 -0
  9. package/dist/models/ChatappEmbedSignUpRequest.js.map +1 -1
  10. package/dist/models/ChatappEmbedSignUpResponseBody.d.ts +52 -1
  11. package/dist/models/ChatappEmbedSignUpResponseBody.js +29 -3
  12. package/dist/models/ChatappEmbedSignUpResponseBody.js.map +1 -1
  13. package/dist/models/ChatappMigrationRegisterRequest.d.ts +3 -0
  14. package/dist/models/ChatappMigrationRegisterRequest.js +6 -0
  15. package/dist/models/ChatappMigrationRegisterRequest.js.map +1 -1
  16. package/dist/models/ChatappMigrationVerifiedRequest.d.ts +3 -0
  17. package/dist/models/ChatappMigrationVerifiedRequest.js +6 -0
  18. package/dist/models/ChatappMigrationVerifiedRequest.js.map +1 -1
  19. package/dist/models/ChatappMigrationVerifiedResponseBody.d.ts +28 -1
  20. package/dist/models/ChatappMigrationVerifiedResponseBody.js +23 -3
  21. package/dist/models/ChatappMigrationVerifiedResponseBody.js.map +1 -1
  22. package/dist/models/ChatappPhoneNumberDeregisterRequest.d.ts +5 -6
  23. package/dist/models/ChatappPhoneNumberDeregisterRequest.js +6 -0
  24. package/dist/models/ChatappPhoneNumberDeregisterRequest.js.map +1 -1
  25. package/dist/models/ChatappSyncPhoneNumberResponseBody.d.ts +157 -2
  26. package/dist/models/ChatappSyncPhoneNumberResponseBody.js +45 -3
  27. package/dist/models/ChatappSyncPhoneNumberResponseBody.js.map +1 -1
  28. package/dist/models/ChatappVerifyAndRegisterResponseBody.d.ts +13 -0
  29. package/dist/models/ChatappVerifyAndRegisterResponseBody.js.map +1 -1
  30. package/dist/models/CreateChatFlowByImportRequest.d.ts +58 -0
  31. package/dist/models/CreateChatFlowByImportRequest.js +75 -0
  32. package/dist/models/CreateChatFlowByImportRequest.js.map +1 -0
  33. package/dist/models/CreateChatFlowByImportResponse.d.ts +19 -0
  34. package/dist/models/CreateChatFlowByImportResponse.js +69 -0
  35. package/dist/models/CreateChatFlowByImportResponse.js.map +1 -0
  36. package/dist/models/{UpdatePhoneMessageQrdlResponseBodyData.d.ts → CreateChatFlowByImportResponseBody.d.ts} +21 -19
  37. package/dist/models/{BeeBotAssociateResponseBody.js → CreateChatFlowByImportResponseBody.js} +9 -8
  38. package/dist/models/CreateChatFlowByImportResponseBody.js.map +1 -0
  39. package/dist/models/CreateChatFlowByImportShrinkRequest.d.ts +56 -0
  40. package/dist/models/CreateChatFlowByImportShrinkRequest.js +72 -0
  41. package/dist/models/CreateChatFlowByImportShrinkRequest.js.map +1 -0
  42. package/dist/models/{UpdateFlowJsonassetResponseBodyData.d.ts → CreateChatFlowLogSettingRequest.d.ts} +7 -4
  43. package/dist/models/{BeeBotAssociateResponseBodyDataAssociate.js → CreateChatFlowLogSettingRequest.js} +12 -10
  44. package/dist/models/CreateChatFlowLogSettingRequest.js.map +1 -0
  45. package/dist/models/CreateChatFlowLogSettingResponse.d.ts +19 -0
  46. package/dist/models/CreateChatFlowLogSettingResponse.js +69 -0
  47. package/dist/models/CreateChatFlowLogSettingResponse.js.map +1 -0
  48. package/dist/models/CreateChatFlowLogSettingResponseBody.d.ts +63 -0
  49. package/dist/models/{ListProductResponseBodyModel.js → CreateChatFlowLogSettingResponseBody.js} +17 -13
  50. package/dist/models/CreateChatFlowLogSettingResponseBody.js.map +1 -0
  51. package/dist/models/CreateChatFlowRequest.d.ts +58 -0
  52. package/dist/models/CreateChatFlowRequest.js +75 -0
  53. package/dist/models/CreateChatFlowRequest.js.map +1 -0
  54. package/dist/models/CreateChatFlowResponse.d.ts +19 -0
  55. package/dist/models/CreateChatFlowResponse.js +69 -0
  56. package/dist/models/CreateChatFlowResponse.js.map +1 -0
  57. package/dist/models/CreateChatFlowResponseBody.d.ts +67 -0
  58. package/dist/models/CreateChatFlowResponseBody.js +76 -0
  59. package/dist/models/CreateChatFlowResponseBody.js.map +1 -0
  60. package/dist/models/CreateChatFlowShrinkRequest.d.ts +56 -0
  61. package/dist/models/{SendChatappMessageRequestProductActionSections.js → CreateChatFlowShrinkRequest.js} +18 -10
  62. package/dist/models/CreateChatFlowShrinkRequest.js.map +1 -0
  63. package/dist/models/CreateChatappMigrationInitiateRequest.d.ts +3 -0
  64. package/dist/models/CreateChatappMigrationInitiateRequest.js +6 -0
  65. package/dist/models/CreateChatappMigrationInitiateRequest.js.map +1 -1
  66. package/dist/models/CreateChatappMigrationInitiateResponseBody.d.ts +36 -1
  67. package/dist/models/CreateChatappMigrationInitiateResponseBody.js +25 -3
  68. package/dist/models/CreateChatappMigrationInitiateResponseBody.js.map +1 -1
  69. package/dist/models/CreateChatappTemplateRequest.d.ts +467 -1
  70. package/dist/models/CreateChatappTemplateRequest.js +201 -3
  71. package/dist/models/CreateChatappTemplateRequest.js.map +1 -1
  72. package/dist/models/CreateChatappTemplateResponseBody.d.ts +28 -1
  73. package/dist/models/CreateChatappTemplateResponseBody.js +23 -3
  74. package/dist/models/CreateChatappTemplateResponseBody.js.map +1 -1
  75. package/dist/models/CreateFlowRequest.d.ts +5 -9
  76. package/dist/models/CreateFlowRequest.js +6 -0
  77. package/dist/models/CreateFlowRequest.js.map +1 -1
  78. package/dist/models/CreateFlowResponseBody.d.ts +34 -1
  79. package/dist/models/CreateFlowResponseBody.js +30 -3
  80. package/dist/models/CreateFlowResponseBody.js.map +1 -1
  81. package/dist/models/CreateFlowShrinkRequest.d.ts +5 -9
  82. package/dist/models/CreateFlowShrinkRequest.js +6 -0
  83. package/dist/models/CreateFlowShrinkRequest.js.map +1 -1
  84. package/dist/models/CreateFlowVersionRequest.d.ts +58 -0
  85. package/dist/models/CreateFlowVersionRequest.js +75 -0
  86. package/dist/models/CreateFlowVersionRequest.js.map +1 -0
  87. package/dist/models/CreateFlowVersionResponse.d.ts +19 -0
  88. package/dist/models/CreateFlowVersionResponse.js +69 -0
  89. package/dist/models/CreateFlowVersionResponse.js.map +1 -0
  90. package/dist/models/CreateFlowVersionResponseBody.d.ts +63 -0
  91. package/dist/models/CreateFlowVersionResponseBody.js +71 -0
  92. package/dist/models/CreateFlowVersionResponseBody.js.map +1 -0
  93. package/dist/models/CreateFlowVersionShrinkRequest.d.ts +56 -0
  94. package/dist/models/CreateFlowVersionShrinkRequest.js +72 -0
  95. package/dist/models/CreateFlowVersionShrinkRequest.js.map +1 -0
  96. package/dist/models/CreatePhoneMessageQrdlRequest.d.ts +7 -13
  97. package/dist/models/CreatePhoneMessageQrdlRequest.js +6 -0
  98. package/dist/models/CreatePhoneMessageQrdlRequest.js.map +1 -1
  99. package/dist/models/CreatePhoneMessageQrdlResponseBody.d.ts +61 -1
  100. package/dist/models/CreatePhoneMessageQrdlResponseBody.js +33 -3
  101. package/dist/models/CreatePhoneMessageQrdlResponseBody.js.map +1 -1
  102. package/dist/models/DeleteChatFlowRequest.d.ts +42 -0
  103. package/dist/models/DeleteChatFlowRequest.js +71 -0
  104. package/dist/models/DeleteChatFlowRequest.js.map +1 -0
  105. package/dist/models/DeleteChatFlowResponse.d.ts +19 -0
  106. package/dist/models/DeleteChatFlowResponse.js +69 -0
  107. package/dist/models/DeleteChatFlowResponse.js.map +1 -0
  108. package/dist/models/{CreatePhoneMessageQrdlResponseBodyData.d.ts → DeleteChatFlowResponseBody.d.ts} +21 -19
  109. package/dist/models/DeleteChatFlowResponseBody.js +71 -0
  110. package/dist/models/DeleteChatFlowResponseBody.js.map +1 -0
  111. package/dist/models/DeleteChatFlowShrinkRequest.d.ts +40 -0
  112. package/dist/models/DeleteChatFlowShrinkRequest.js +68 -0
  113. package/dist/models/DeleteChatFlowShrinkRequest.js.map +1 -0
  114. package/dist/models/DeleteChatGroupParticipantsRequest.d.ts +17 -1
  115. package/dist/models/DeleteChatGroupParticipantsRequest.js +21 -3
  116. package/dist/models/DeleteChatGroupParticipantsRequest.js.map +1 -1
  117. package/dist/models/DeleteFlowRequest.d.ts +5 -7
  118. package/dist/models/DeleteFlowRequest.js +6 -0
  119. package/dist/models/DeleteFlowRequest.js.map +1 -1
  120. package/dist/models/DeleteFlowResponseBody.d.ts +1 -0
  121. package/dist/models/DeleteFlowResponseBody.js +2 -0
  122. package/dist/models/DeleteFlowResponseBody.js.map +1 -1
  123. package/dist/models/DeleteFlowVersionRequest.d.ts +50 -0
  124. package/dist/models/{BeeBotAssociateRequest.js → DeleteFlowVersionRequest.js} +20 -20
  125. package/dist/models/DeleteFlowVersionRequest.js.map +1 -0
  126. package/dist/models/DeleteFlowVersionResponse.d.ts +19 -0
  127. package/dist/models/DeleteFlowVersionResponse.js +69 -0
  128. package/dist/models/DeleteFlowVersionResponse.js.map +1 -0
  129. package/dist/models/DeleteFlowVersionResponseBody.d.ts +63 -0
  130. package/dist/models/DeleteFlowVersionResponseBody.js +71 -0
  131. package/dist/models/DeleteFlowVersionResponseBody.js.map +1 -0
  132. package/dist/models/DeleteFlowVersionShrinkRequest.d.ts +48 -0
  133. package/dist/models/{BeeBotAssociateShrinkRequest.js → DeleteFlowVersionShrinkRequest.js} +18 -18
  134. package/dist/models/DeleteFlowVersionShrinkRequest.js.map +1 -0
  135. package/dist/models/DeletePhoneMessageQrdlRequest.d.ts +6 -10
  136. package/dist/models/DeletePhoneMessageQrdlRequest.js +6 -0
  137. package/dist/models/DeletePhoneMessageQrdlRequest.js.map +1 -1
  138. package/dist/models/DeletePhoneMessageQrdlResponseBody.d.ts +1 -0
  139. package/dist/models/DeletePhoneMessageQrdlResponseBody.js +2 -0
  140. package/dist/models/DeletePhoneMessageQrdlResponseBody.js.map +1 -1
  141. package/dist/models/DeprecateFlowRequest.d.ts +5 -7
  142. package/dist/models/DeprecateFlowRequest.js +6 -0
  143. package/dist/models/DeprecateFlowRequest.js.map +1 -1
  144. package/dist/models/DeprecateFlowResponseBody.d.ts +1 -0
  145. package/dist/models/DeprecateFlowResponseBody.js +2 -0
  146. package/dist/models/DeprecateFlowResponseBody.js.map +1 -1
  147. package/dist/models/EnableWhatsappRoimetricRequest.d.ts +3 -0
  148. package/dist/models/EnableWhatsappRoimetricRequest.js +6 -0
  149. package/dist/models/EnableWhatsappRoimetricRequest.js.map +1 -1
  150. package/dist/models/FlowBindPhoneRequest.d.ts +69 -0
  151. package/dist/models/FlowBindPhoneRequest.js +77 -0
  152. package/dist/models/FlowBindPhoneRequest.js.map +1 -0
  153. package/dist/models/FlowBindPhoneResponse.d.ts +19 -0
  154. package/dist/models/{CreateFlowResponseBodyData.js → FlowBindPhoneResponse.js} +16 -12
  155. package/dist/models/FlowBindPhoneResponse.js.map +1 -0
  156. package/dist/models/FlowBindPhoneResponseBody.d.ts +61 -0
  157. package/dist/models/FlowBindPhoneResponseBody.js +68 -0
  158. package/dist/models/FlowBindPhoneResponseBody.js.map +1 -0
  159. package/dist/models/FlowBindPhoneShrinkRequest.d.ts +69 -0
  160. package/dist/models/{ChatappBindWabaResponseBodyData.js → FlowBindPhoneShrinkRequest.js} +20 -6
  161. package/dist/models/FlowBindPhoneShrinkRequest.js.map +1 -0
  162. package/dist/models/FlowRebindPhoneRequest.d.ts +69 -0
  163. package/dist/models/FlowRebindPhoneRequest.js +77 -0
  164. package/dist/models/FlowRebindPhoneRequest.js.map +1 -0
  165. package/dist/models/{BeeBotAssociateResponse.d.ts → FlowRebindPhoneResponse.d.ts} +3 -3
  166. package/dist/models/{BeeBotAssociateResponse.js → FlowRebindPhoneResponse.js} +6 -6
  167. package/dist/models/{BeeBotAssociateResponse.js.map → FlowRebindPhoneResponse.js.map} +1 -1
  168. package/dist/models/{ListPhoneMessageQrdlResponseBodyData.d.ts → FlowRebindPhoneResponseBody.d.ts} +19 -19
  169. package/dist/models/FlowRebindPhoneResponseBody.js +68 -0
  170. package/dist/models/FlowRebindPhoneResponseBody.js.map +1 -0
  171. package/dist/models/FlowRebindPhoneShrinkRequest.d.ts +69 -0
  172. package/dist/models/FlowRebindPhoneShrinkRequest.js +74 -0
  173. package/dist/models/FlowRebindPhoneShrinkRequest.js.map +1 -0
  174. package/dist/models/FlowUnbindPhoneRequest.d.ts +47 -0
  175. package/dist/models/FlowUnbindPhoneRequest.js +73 -0
  176. package/dist/models/FlowUnbindPhoneRequest.js.map +1 -0
  177. package/dist/models/FlowUnbindPhoneResponse.d.ts +19 -0
  178. package/dist/models/{BeeBotAssociateResponseBodyData.js → FlowUnbindPhoneResponse.js} +16 -13
  179. package/dist/models/FlowUnbindPhoneResponse.js.map +1 -0
  180. package/dist/models/FlowUnbindPhoneResponseBody.d.ts +53 -0
  181. package/dist/models/{BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.js → FlowUnbindPhoneResponseBody.js} +14 -8
  182. package/dist/models/FlowUnbindPhoneResponseBody.js.map +1 -0
  183. package/dist/models/FlowUnbindPhoneShrinkRequest.d.ts +47 -0
  184. package/dist/models/FlowUnbindPhoneShrinkRequest.js +70 -0
  185. package/dist/models/FlowUnbindPhoneShrinkRequest.js.map +1 -0
  186. package/dist/models/GetChatFlowMetricRequest.d.ts +79 -0
  187. package/dist/models/{BeeBotChatRequest.js → GetChatFlowMetricRequest.js} +30 -30
  188. package/dist/models/GetChatFlowMetricRequest.js.map +1 -0
  189. package/dist/models/GetChatFlowMetricResponse.d.ts +19 -0
  190. package/dist/models/GetChatFlowMetricResponse.js +69 -0
  191. package/dist/models/GetChatFlowMetricResponse.js.map +1 -0
  192. package/dist/models/GetChatFlowMetricResponseBody.d.ts +63 -0
  193. package/dist/models/{BeeBotChatResponseBody.js → GetChatFlowMetricResponseBody.js} +9 -8
  194. package/dist/models/GetChatFlowMetricResponseBody.js.map +1 -0
  195. package/dist/models/GetChatFlowMetricShrinkRequest.d.ts +75 -0
  196. package/dist/models/GetChatFlowMetricShrinkRequest.js +78 -0
  197. package/dist/models/GetChatFlowMetricShrinkRequest.js.map +1 -0
  198. package/dist/models/{ListChatappTemplateRequestPage.d.ts → GetChatFlowTemplateRequest.d.ts} +10 -9
  199. package/dist/models/{CreateChatappMigrationInitiateResponseBodyData.js → GetChatFlowTemplateRequest.js} +13 -9
  200. package/dist/models/GetChatFlowTemplateRequest.js.map +1 -0
  201. package/dist/models/GetChatFlowTemplateResponse.d.ts +19 -0
  202. package/dist/models/GetChatFlowTemplateResponse.js +69 -0
  203. package/dist/models/GetChatFlowTemplateResponse.js.map +1 -0
  204. package/dist/models/GetChatFlowTemplateResponseBody.d.ts +80 -0
  205. package/dist/models/GetChatFlowTemplateResponseBody.js +93 -0
  206. package/dist/models/GetChatFlowTemplateResponseBody.js.map +1 -0
  207. package/dist/models/GetChatappPhoneNumberMetricRequest.d.ts +3 -0
  208. package/dist/models/GetChatappPhoneNumberMetricRequest.js +6 -0
  209. package/dist/models/GetChatappPhoneNumberMetricRequest.js.map +1 -1
  210. package/dist/models/GetChatappPhoneNumberMetricResponseBody.d.ts +65 -1
  211. package/dist/models/GetChatappPhoneNumberMetricResponseBody.js +31 -3
  212. package/dist/models/GetChatappPhoneNumberMetricResponseBody.js.map +1 -1
  213. package/dist/models/GetChatappTemplateDetailResponseBody.d.ts +647 -1
  214. package/dist/models/GetChatappTemplateDetailResponseBody.js +292 -3
  215. package/dist/models/GetChatappTemplateDetailResponseBody.js.map +1 -1
  216. package/dist/models/GetChatappTemplateMetricRequest.d.ts +3 -0
  217. package/dist/models/GetChatappTemplateMetricRequest.js +6 -0
  218. package/dist/models/GetChatappTemplateMetricRequest.js.map +1 -1
  219. package/dist/models/GetChatappTemplateMetricResponseBody.d.ts +115 -1
  220. package/dist/models/GetChatappTemplateMetricResponseBody.js +61 -3
  221. package/dist/models/GetChatappTemplateMetricResponseBody.js.map +1 -1
  222. package/dist/models/GetChatappUploadAuthorizationRequest.d.ts +3 -0
  223. package/dist/models/GetChatappUploadAuthorizationRequest.js +6 -0
  224. package/dist/models/GetChatappUploadAuthorizationRequest.js.map +1 -1
  225. package/dist/models/GetChatappUploadAuthorizationResponseBody.d.ts +68 -1
  226. package/dist/models/GetChatappUploadAuthorizationResponseBody.js +33 -3
  227. package/dist/models/GetChatappUploadAuthorizationResponseBody.js.map +1 -1
  228. package/dist/models/GetChatappVerifyCodeResponseBody.d.ts +13 -0
  229. package/dist/models/GetChatappVerifyCodeResponseBody.js.map +1 -1
  230. package/dist/models/GetCommerceSettingResponseBody.d.ts +34 -1
  231. package/dist/models/GetCommerceSettingResponseBody.js +23 -3
  232. package/dist/models/GetCommerceSettingResponseBody.js.map +1 -1
  233. package/dist/models/GetConversationalAutomationResponseBody.d.ts +66 -1
  234. package/dist/models/GetConversationalAutomationResponseBody.js +54 -3
  235. package/dist/models/GetConversationalAutomationResponseBody.js.map +1 -1
  236. package/dist/models/GetFlowJsonassestRequest.d.ts +5 -10
  237. package/dist/models/GetFlowJsonassestRequest.js +6 -0
  238. package/dist/models/GetFlowJsonassestRequest.js.map +1 -1
  239. package/dist/models/GetFlowJsonassestResponseBody.d.ts +29 -1
  240. package/dist/models/GetFlowJsonassestResponseBody.js +25 -3
  241. package/dist/models/GetFlowJsonassestResponseBody.js.map +1 -1
  242. package/dist/models/GetFlowPreviewUrlRequest.d.ts +5 -7
  243. package/dist/models/GetFlowPreviewUrlRequest.js +6 -0
  244. package/dist/models/GetFlowPreviewUrlRequest.js.map +1 -1
  245. package/dist/models/GetFlowPreviewUrlResponseBody.d.ts +37 -1
  246. package/dist/models/GetFlowPreviewUrlResponseBody.js +27 -3
  247. package/dist/models/GetFlowPreviewUrlResponseBody.js.map +1 -1
  248. package/dist/models/GetFlowRequest.d.ts +5 -7
  249. package/dist/models/GetFlowRequest.js +6 -0
  250. package/dist/models/GetFlowRequest.js.map +1 -1
  251. package/dist/models/GetFlowResponseBody.d.ts +100 -1
  252. package/dist/models/GetFlowResponseBody.js +40 -3
  253. package/dist/models/GetFlowResponseBody.js.map +1 -1
  254. package/dist/models/GetMigrationVerifyCodeRequest.d.ts +3 -0
  255. package/dist/models/GetMigrationVerifyCodeRequest.js +6 -0
  256. package/dist/models/GetMigrationVerifyCodeRequest.js.map +1 -1
  257. package/dist/models/GetMigrationVerifyCodeResponseBody.d.ts +28 -1
  258. package/dist/models/GetMigrationVerifyCodeResponseBody.js +23 -3
  259. package/dist/models/GetMigrationVerifyCodeResponseBody.js.map +1 -1
  260. package/dist/models/GetPermissionByCodeRequest.d.ts +5 -11
  261. package/dist/models/GetPermissionByCodeRequest.js +6 -0
  262. package/dist/models/GetPermissionByCodeRequest.js.map +1 -1
  263. package/dist/models/GetPermissionByCodeResponseBody.d.ts +1 -0
  264. package/dist/models/GetPermissionByCodeResponseBody.js +2 -0
  265. package/dist/models/GetPermissionByCodeResponseBody.js.map +1 -1
  266. package/dist/models/GetPermissionByCodeShrinkRequest.d.ts +5 -11
  267. package/dist/models/GetPermissionByCodeShrinkRequest.js +6 -0
  268. package/dist/models/GetPermissionByCodeShrinkRequest.js.map +1 -1
  269. package/dist/models/GetPhoneEncryptionPublicKeyRequest.d.ts +5 -7
  270. package/dist/models/GetPhoneEncryptionPublicKeyRequest.js +6 -0
  271. package/dist/models/GetPhoneEncryptionPublicKeyRequest.js.map +1 -1
  272. package/dist/models/GetPhoneEncryptionPublicKeyResponseBody.d.ts +48 -1
  273. package/dist/models/GetPhoneEncryptionPublicKeyResponseBody.js +27 -3
  274. package/dist/models/GetPhoneEncryptionPublicKeyResponseBody.js.map +1 -1
  275. package/dist/models/GetPhoneNumberVerificationStatusRequest.d.ts +5 -6
  276. package/dist/models/GetPhoneNumberVerificationStatusRequest.js +6 -0
  277. package/dist/models/GetPhoneNumberVerificationStatusRequest.js.map +1 -1
  278. package/dist/models/GetPhoneNumberVerificationStatusResponseBody.d.ts +37 -1
  279. package/dist/models/GetPhoneNumberVerificationStatusResponseBody.js +27 -3
  280. package/dist/models/GetPhoneNumberVerificationStatusResponseBody.js.map +1 -1
  281. package/dist/models/GetPreValidatePhoneIdResponseBody.d.ts +28 -1
  282. package/dist/models/GetPreValidatePhoneIdResponseBody.js +23 -3
  283. package/dist/models/GetPreValidatePhoneIdResponseBody.js.map +1 -1
  284. package/dist/models/GetWhatsappHealthStatusResponseBody.d.ts +134 -1
  285. package/dist/models/GetWhatsappHealthStatusResponseBody.js +85 -3
  286. package/dist/models/GetWhatsappHealthStatusResponseBody.js.map +1 -1
  287. package/dist/models/IsvGetAppIdRequest.d.ts +10 -13
  288. package/dist/models/IsvGetAppIdRequest.js +8 -0
  289. package/dist/models/IsvGetAppIdRequest.js.map +1 -1
  290. package/dist/models/ListBindingRelationsForFlowVersionRequest.d.ts +42 -0
  291. package/dist/models/{ListProductResponseBodyModelPagingCursors.js → ListBindingRelationsForFlowVersionRequest.js} +14 -8
  292. package/dist/models/ListBindingRelationsForFlowVersionRequest.js.map +1 -0
  293. package/dist/models/ListBindingRelationsForFlowVersionResponse.d.ts +19 -0
  294. package/dist/models/ListBindingRelationsForFlowVersionResponse.js +69 -0
  295. package/dist/models/ListBindingRelationsForFlowVersionResponse.js.map +1 -0
  296. package/dist/models/{BeeBotChatResponseBody.d.ts → ListBindingRelationsForFlowVersionResponseBody.d.ts} +22 -9
  297. package/dist/models/{ListProductCatalogResponseBodyModel.js → ListBindingRelationsForFlowVersionResponseBody.js} +14 -10
  298. package/dist/models/ListBindingRelationsForFlowVersionResponseBody.js.map +1 -0
  299. package/dist/models/ListChatFlowRequest.d.ts +87 -0
  300. package/dist/models/ListChatFlowRequest.js +81 -0
  301. package/dist/models/ListChatFlowRequest.js.map +1 -0
  302. package/dist/models/{BeeBotChatResponse.d.ts → ListChatFlowResponse.d.ts} +3 -3
  303. package/dist/models/{BeeBotChatResponse.js → ListChatFlowResponse.js} +6 -6
  304. package/dist/models/ListChatFlowResponse.js.map +1 -0
  305. package/dist/models/ListChatFlowResponseBody.d.ts +63 -0
  306. package/dist/models/ListChatFlowResponseBody.js +71 -0
  307. package/dist/models/ListChatFlowResponseBody.js.map +1 -0
  308. package/dist/models/ListChatFlowShrinkRequest.d.ts +85 -0
  309. package/dist/models/ListChatFlowShrinkRequest.js +78 -0
  310. package/dist/models/ListChatFlowShrinkRequest.js.map +1 -0
  311. package/dist/models/ListChatFlowTemplateRequest.d.ts +64 -0
  312. package/dist/models/ListChatFlowTemplateRequest.js +72 -0
  313. package/dist/models/ListChatFlowTemplateRequest.js.map +1 -0
  314. package/dist/models/ListChatFlowTemplateResponse.d.ts +19 -0
  315. package/dist/models/ListChatFlowTemplateResponse.js +69 -0
  316. package/dist/models/ListChatFlowTemplateResponse.js.map +1 -0
  317. package/dist/models/ListChatFlowTemplateResponseBody.d.ts +80 -0
  318. package/dist/models/ListChatFlowTemplateResponseBody.js +93 -0
  319. package/dist/models/ListChatFlowTemplateResponseBody.js.map +1 -0
  320. package/dist/models/ListChatGroupParticipantsRequest.d.ts +22 -1
  321. package/dist/models/ListChatGroupParticipantsRequest.js +23 -3
  322. package/dist/models/ListChatGroupParticipantsRequest.js.map +1 -1
  323. package/dist/models/ListChatGroupParticipantsResponseBody.d.ts +35 -1
  324. package/dist/models/ListChatGroupParticipantsResponseBody.js +45 -3
  325. package/dist/models/ListChatGroupParticipantsResponseBody.js.map +1 -1
  326. package/dist/models/ListChatGroupRequest.d.ts +28 -1
  327. package/dist/models/ListChatGroupRequest.js +23 -3
  328. package/dist/models/ListChatGroupRequest.js.map +1 -1
  329. package/dist/models/ListChatGroupResponseBody.d.ts +65 -1
  330. package/dist/models/ListChatGroupResponseBody.js +57 -3
  331. package/dist/models/ListChatGroupResponseBody.js.map +1 -1
  332. package/dist/models/ListChatappMessageRequest.d.ts +113 -0
  333. package/dist/models/ListChatappMessageRequest.js +110 -0
  334. package/dist/models/ListChatappMessageRequest.js.map +1 -0
  335. package/dist/models/ListChatappMessageResponse.d.ts +19 -0
  336. package/dist/models/ListChatappMessageResponse.js +69 -0
  337. package/dist/models/ListChatappMessageResponse.js.map +1 -0
  338. package/dist/models/ListChatappMessageResponseBody.d.ts +177 -0
  339. package/dist/models/ListChatappMessageResponseBody.js +140 -0
  340. package/dist/models/ListChatappMessageResponseBody.js.map +1 -0
  341. package/dist/models/ListChatappMessageShrinkRequest.d.ts +85 -0
  342. package/dist/models/{ListChatGroupResponseBodyDataList.js → ListChatappMessageShrinkRequest.js} +32 -16
  343. package/dist/models/ListChatappMessageShrinkRequest.js.map +1 -0
  344. package/dist/models/ListChatappTemplateRequest.d.ts +44 -11
  345. package/dist/models/ListChatappTemplateRequest.js +23 -3
  346. package/dist/models/ListChatappTemplateRequest.js.map +1 -1
  347. package/dist/models/ListChatappTemplateResponseBody.d.ts +105 -3
  348. package/dist/models/ListChatappTemplateResponseBody.js +35 -3
  349. package/dist/models/ListChatappTemplateResponseBody.js.map +1 -1
  350. package/dist/models/ListChatappTemplateShrinkRequest.d.ts +12 -10
  351. package/dist/models/ListChatappTemplateShrinkRequest.js.map +1 -1
  352. package/dist/models/ListFlowNodePrototypeV2request.d.ts +50 -0
  353. package/dist/models/ListFlowNodePrototypeV2request.js +72 -0
  354. package/dist/models/ListFlowNodePrototypeV2request.js.map +1 -0
  355. package/dist/models/ListFlowNodePrototypeV2response.d.ts +19 -0
  356. package/dist/models/ListFlowNodePrototypeV2response.js +69 -0
  357. package/dist/models/ListFlowNodePrototypeV2response.js.map +1 -0
  358. package/dist/models/ListFlowNodePrototypeV2responseBody.d.ts +76 -0
  359. package/dist/models/ListFlowNodePrototypeV2responseBody.js +118 -0
  360. package/dist/models/ListFlowNodePrototypeV2responseBody.js.map +1 -0
  361. package/dist/models/ListFlowRequest.d.ts +19 -13
  362. package/dist/models/ListFlowRequest.js +29 -3
  363. package/dist/models/ListFlowRequest.js.map +1 -1
  364. package/dist/models/ListFlowResponseBody.d.ts +34 -1
  365. package/dist/models/ListFlowResponseBody.js +30 -3
  366. package/dist/models/ListFlowResponseBody.js.map +1 -1
  367. package/dist/models/ListFlowShrinkRequest.d.ts +5 -12
  368. package/dist/models/ListFlowShrinkRequest.js +6 -0
  369. package/dist/models/ListFlowShrinkRequest.js.map +1 -1
  370. package/dist/models/ListFlowVersionRequest.d.ts +66 -0
  371. package/dist/models/ListFlowVersionRequest.js +77 -0
  372. package/dist/models/ListFlowVersionRequest.js.map +1 -0
  373. package/dist/models/ListFlowVersionResponse.d.ts +19 -0
  374. package/dist/models/ListFlowVersionResponse.js +69 -0
  375. package/dist/models/ListFlowVersionResponse.js.map +1 -0
  376. package/dist/models/{QueryPhoneBusinessProfileResponseBodyData.d.ts → ListFlowVersionResponseBody.d.ts} +21 -24
  377. package/dist/models/ListFlowVersionResponseBody.js +71 -0
  378. package/dist/models/ListFlowVersionResponseBody.js.map +1 -0
  379. package/dist/models/ListFlowVersionShrinkRequest.d.ts +64 -0
  380. package/dist/models/ListFlowVersionShrinkRequest.js +74 -0
  381. package/dist/models/ListFlowVersionShrinkRequest.js.map +1 -0
  382. package/dist/models/ListPhoneMessageQrdlRequest.d.ts +5 -7
  383. package/dist/models/ListPhoneMessageQrdlRequest.js +6 -0
  384. package/dist/models/ListPhoneMessageQrdlRequest.js.map +1 -1
  385. package/dist/models/ListPhoneMessageQrdlResponseBody.d.ts +61 -1
  386. package/dist/models/ListPhoneMessageQrdlResponseBody.js +33 -3
  387. package/dist/models/ListPhoneMessageQrdlResponseBody.js.map +1 -1
  388. package/dist/models/ListProductCatalogResponseBody.d.ts +69 -1
  389. package/dist/models/ListProductCatalogResponseBody.js +72 -3
  390. package/dist/models/ListProductCatalogResponseBody.js.map +1 -1
  391. package/dist/models/ListProductResponseBody.d.ts +69 -1
  392. package/dist/models/ListProductResponseBody.js +72 -3
  393. package/dist/models/ListProductResponseBody.js.map +1 -1
  394. package/dist/models/ModifyChatappTemplateRequest.d.ts +469 -1
  395. package/dist/models/ModifyChatappTemplateRequest.js +201 -3
  396. package/dist/models/ModifyChatappTemplateRequest.js.map +1 -1
  397. package/dist/models/ModifyChatappTemplateResponseBody.d.ts +28 -1
  398. package/dist/models/ModifyChatappTemplateResponseBody.js +23 -3
  399. package/dist/models/ModifyChatappTemplateResponseBody.js.map +1 -1
  400. package/dist/models/ModifyFlowRequest.d.ts +6 -13
  401. package/dist/models/ModifyFlowRequest.js +6 -0
  402. package/dist/models/ModifyFlowRequest.js.map +1 -1
  403. package/dist/models/ModifyFlowResponseBody.d.ts +34 -1
  404. package/dist/models/ModifyFlowResponseBody.js +30 -3
  405. package/dist/models/ModifyFlowResponseBody.js.map +1 -1
  406. package/dist/models/ModifyFlowShrinkRequest.d.ts +6 -13
  407. package/dist/models/ModifyFlowShrinkRequest.js +6 -0
  408. package/dist/models/ModifyFlowShrinkRequest.js.map +1 -1
  409. package/dist/models/OfflineFlowVersionRequest.d.ts +58 -0
  410. package/dist/models/OfflineFlowVersionRequest.js +75 -0
  411. package/dist/models/OfflineFlowVersionRequest.js.map +1 -0
  412. package/dist/models/OfflineFlowVersionResponse.d.ts +19 -0
  413. package/dist/models/OfflineFlowVersionResponse.js +69 -0
  414. package/dist/models/OfflineFlowVersionResponse.js.map +1 -0
  415. package/dist/models/OfflineFlowVersionResponseBody.d.ts +63 -0
  416. package/dist/models/OfflineFlowVersionResponseBody.js +71 -0
  417. package/dist/models/OfflineFlowVersionResponseBody.js.map +1 -0
  418. package/dist/models/OfflineFlowVersionShrinkRequest.d.ts +56 -0
  419. package/dist/models/OfflineFlowVersionShrinkRequest.js +72 -0
  420. package/dist/models/OfflineFlowVersionShrinkRequest.js.map +1 -0
  421. package/dist/models/OnlineFlowVersionRequest.d.ts +58 -0
  422. package/dist/models/OnlineFlowVersionRequest.js +75 -0
  423. package/dist/models/OnlineFlowVersionRequest.js.map +1 -0
  424. package/dist/models/OnlineFlowVersionResponse.d.ts +19 -0
  425. package/dist/models/OnlineFlowVersionResponse.js +69 -0
  426. package/dist/models/OnlineFlowVersionResponse.js.map +1 -0
  427. package/dist/models/OnlineFlowVersionResponseBody.d.ts +63 -0
  428. package/dist/models/OnlineFlowVersionResponseBody.js +71 -0
  429. package/dist/models/OnlineFlowVersionResponseBody.js.map +1 -0
  430. package/dist/models/OnlineFlowVersionShrinkRequest.d.ts +56 -0
  431. package/dist/models/{GetChatappPhoneNumberMetricResponseBodyData.js → OnlineFlowVersionShrinkRequest.js} +20 -16
  432. package/dist/models/OnlineFlowVersionShrinkRequest.js.map +1 -0
  433. package/dist/models/PublishFlowRequest.d.ts +5 -7
  434. package/dist/models/PublishFlowRequest.js +6 -0
  435. package/dist/models/PublishFlowRequest.js.map +1 -1
  436. package/dist/models/PublishFlowResponseBody.d.ts +1 -0
  437. package/dist/models/PublishFlowResponseBody.js +2 -0
  438. package/dist/models/PublishFlowResponseBody.js.map +1 -1
  439. package/dist/models/QueryChatappBindWabaResponseBody.d.ts +101 -1
  440. package/dist/models/QueryChatappBindWabaResponseBody.js +42 -3
  441. package/dist/models/QueryChatappBindWabaResponseBody.js.map +1 -1
  442. package/dist/models/QueryChatappPhoneNumbersResponseBody.d.ts +159 -1
  443. package/dist/models/QueryChatappPhoneNumbersResponseBody.js +45 -3
  444. package/dist/models/QueryChatappPhoneNumbersResponseBody.js.map +1 -1
  445. package/dist/models/QueryPhoneBusinessProfileResponseBody.d.ts +65 -1
  446. package/dist/models/QueryPhoneBusinessProfileResponseBody.js +36 -3
  447. package/dist/models/QueryPhoneBusinessProfileResponseBody.js.map +1 -1
  448. package/dist/models/QueryWabaBusinessInfoResponseBody.d.ts +46 -1
  449. package/dist/models/QueryWabaBusinessInfoResponseBody.js +27 -3
  450. package/dist/models/QueryWabaBusinessInfoResponseBody.js.map +1 -1
  451. package/dist/models/{ListFlowRequestPage.d.ts → ReadChatFlowLogSettingRequest.d.ts} +7 -12
  452. package/dist/models/{BeeBotChatResponseBodyDataMessagesTextSlots.js → ReadChatFlowLogSettingRequest.js} +12 -12
  453. package/dist/models/ReadChatFlowLogSettingRequest.js.map +1 -0
  454. package/dist/models/ReadChatFlowLogSettingResponse.d.ts +19 -0
  455. package/dist/models/ReadChatFlowLogSettingResponse.js +69 -0
  456. package/dist/models/ReadChatFlowLogSettingResponse.js.map +1 -0
  457. package/dist/models/{BeeBotAssociateResponseBody.d.ts → ReadChatFlowLogSettingResponseBody.d.ts} +22 -10
  458. package/dist/models/ReadChatFlowLogSettingResponseBody.js +71 -0
  459. package/dist/models/ReadChatFlowLogSettingResponseBody.js.map +1 -0
  460. package/dist/models/ReadChatFlowRequest.d.ts +42 -0
  461. package/dist/models/ReadChatFlowRequest.js +71 -0
  462. package/dist/models/ReadChatFlowRequest.js.map +1 -0
  463. package/dist/models/ReadChatFlowResponse.d.ts +19 -0
  464. package/dist/models/{BeeBotChatResponseBodyData.js → ReadChatFlowResponse.js} +16 -13
  465. package/dist/models/ReadChatFlowResponse.js.map +1 -0
  466. package/dist/models/ReadChatFlowResponseBody.d.ts +63 -0
  467. package/dist/models/ReadChatFlowResponseBody.js +71 -0
  468. package/dist/models/ReadChatFlowResponseBody.js.map +1 -0
  469. package/dist/models/ReadChatFlowShrinkRequest.d.ts +40 -0
  470. package/dist/models/{BeeBotChatResponseBodyDataMessagesRecommends.js → ReadChatFlowShrinkRequest.js} +16 -10
  471. package/dist/models/ReadChatFlowShrinkRequest.js.map +1 -0
  472. package/dist/models/ReadFlowVersionRequest.d.ts +58 -0
  473. package/dist/models/{GetFlowResponseBodyData.js → ReadFlowVersionRequest.js} +20 -20
  474. package/dist/models/ReadFlowVersionRequest.js.map +1 -0
  475. package/dist/models/ReadFlowVersionResponse.d.ts +19 -0
  476. package/dist/models/ReadFlowVersionResponse.js +69 -0
  477. package/dist/models/ReadFlowVersionResponse.js.map +1 -0
  478. package/dist/models/ReadFlowVersionResponseBody.d.ts +63 -0
  479. package/dist/models/ReadFlowVersionResponseBody.js +71 -0
  480. package/dist/models/ReadFlowVersionResponseBody.js.map +1 -0
  481. package/dist/models/ReadFlowVersionShrinkRequest.d.ts +56 -0
  482. package/dist/models/ReadFlowVersionShrinkRequest.js +72 -0
  483. package/dist/models/ReadFlowVersionShrinkRequest.js.map +1 -0
  484. package/dist/models/SendChatappMassMessageRequest.d.ts +141 -1
  485. package/dist/models/SendChatappMassMessageRequest.js +132 -3
  486. package/dist/models/SendChatappMassMessageRequest.js.map +1 -1
  487. package/dist/models/SendChatappMessageRequest.d.ts +97 -2
  488. package/dist/models/SendChatappMessageRequest.js +94 -5
  489. package/dist/models/SendChatappMessageRequest.js.map +1 -1
  490. package/dist/models/SubmitIsvCustomerTermsRequest.d.ts +3 -0
  491. package/dist/models/SubmitIsvCustomerTermsRequest.js +6 -0
  492. package/dist/models/SubmitIsvCustomerTermsRequest.js.map +1 -1
  493. package/dist/models/UpdateAccountWebhookRequest.d.ts +3 -0
  494. package/dist/models/UpdateAccountWebhookRequest.js +6 -0
  495. package/dist/models/UpdateAccountWebhookRequest.js.map +1 -1
  496. package/dist/models/UpdateChatFlowLogSettingRequest.d.ts +43 -0
  497. package/dist/models/{ChatappEmbedSignUpResponseBodyWabas.js → UpdateChatFlowLogSettingRequest.js} +15 -13
  498. package/dist/models/UpdateChatFlowLogSettingRequest.js.map +1 -0
  499. package/dist/models/UpdateChatFlowLogSettingResponse.d.ts +19 -0
  500. package/dist/models/UpdateChatFlowLogSettingResponse.js +69 -0
  501. package/dist/models/UpdateChatFlowLogSettingResponse.js.map +1 -0
  502. package/dist/models/UpdateChatFlowLogSettingResponseBody.d.ts +63 -0
  503. package/dist/models/UpdateChatFlowLogSettingResponseBody.js +71 -0
  504. package/dist/models/UpdateChatFlowLogSettingResponseBody.js.map +1 -0
  505. package/dist/models/UpdateChatFlowRequest.d.ts +58 -0
  506. package/dist/models/UpdateChatFlowRequest.js +75 -0
  507. package/dist/models/UpdateChatFlowRequest.js.map +1 -0
  508. package/dist/models/UpdateChatFlowResponse.d.ts +19 -0
  509. package/dist/models/UpdateChatFlowResponse.js +69 -0
  510. package/dist/models/UpdateChatFlowResponse.js.map +1 -0
  511. package/dist/models/UpdateChatFlowResponseBody.d.ts +63 -0
  512. package/dist/models/UpdateChatFlowResponseBody.js +71 -0
  513. package/dist/models/UpdateChatFlowResponseBody.js.map +1 -0
  514. package/dist/models/UpdateChatFlowShrinkRequest.d.ts +56 -0
  515. package/dist/models/UpdateChatFlowShrinkRequest.js +72 -0
  516. package/dist/models/UpdateChatFlowShrinkRequest.js.map +1 -0
  517. package/dist/models/UpdateConversationalAutomationRequest.d.ts +28 -1
  518. package/dist/models/UpdateConversationalAutomationRequest.js +23 -3
  519. package/dist/models/UpdateConversationalAutomationRequest.js.map +1 -1
  520. package/dist/models/UpdateFlowJsonassetRequest.d.ts +6 -10
  521. package/dist/models/UpdateFlowJsonassetRequest.js +6 -0
  522. package/dist/models/UpdateFlowJsonassetRequest.js.map +1 -1
  523. package/dist/models/UpdateFlowJsonassetResponseBody.d.ts +21 -1
  524. package/dist/models/UpdateFlowJsonassetResponseBody.js +23 -3
  525. package/dist/models/UpdateFlowJsonassetResponseBody.js.map +1 -1
  526. package/dist/models/UpdateFlowVersionRequest.d.ts +66 -0
  527. package/dist/models/UpdateFlowVersionRequest.js +77 -0
  528. package/dist/models/UpdateFlowVersionRequest.js.map +1 -0
  529. package/dist/models/UpdateFlowVersionResponse.d.ts +19 -0
  530. package/dist/models/UpdateFlowVersionResponse.js +69 -0
  531. package/dist/models/UpdateFlowVersionResponse.js.map +1 -0
  532. package/dist/models/UpdateFlowVersionResponseBody.d.ts +63 -0
  533. package/dist/models/UpdateFlowVersionResponseBody.js +71 -0
  534. package/dist/models/UpdateFlowVersionResponseBody.js.map +1 -0
  535. package/dist/models/UpdateFlowVersionShrinkRequest.d.ts +64 -0
  536. package/dist/models/UpdateFlowVersionShrinkRequest.js +74 -0
  537. package/dist/models/UpdateFlowVersionShrinkRequest.js.map +1 -0
  538. package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.d.ts +6 -18
  539. package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.js +6 -0
  540. package/dist/models/UpdatePhoneEncryptionPublicKeyRequest.js.map +1 -1
  541. package/dist/models/UpdatePhoneEncryptionPublicKeyResponseBody.d.ts +1 -0
  542. package/dist/models/UpdatePhoneEncryptionPublicKeyResponseBody.js +2 -0
  543. package/dist/models/UpdatePhoneEncryptionPublicKeyResponseBody.js.map +1 -1
  544. package/dist/models/UpdatePhoneMessageQrdlRequest.d.ts +8 -16
  545. package/dist/models/UpdatePhoneMessageQrdlRequest.js +6 -0
  546. package/dist/models/UpdatePhoneMessageQrdlRequest.js.map +1 -1
  547. package/dist/models/UpdatePhoneMessageQrdlResponseBody.d.ts +61 -1
  548. package/dist/models/UpdatePhoneMessageQrdlResponseBody.js +33 -3
  549. package/dist/models/UpdatePhoneMessageQrdlResponseBody.js.map +1 -1
  550. package/dist/models/UpdatePhoneWebhookRequest.d.ts +3 -0
  551. package/dist/models/UpdatePhoneWebhookRequest.js +6 -0
  552. package/dist/models/UpdatePhoneWebhookRequest.js.map +1 -1
  553. package/dist/models/model.d.ts +180 -98
  554. package/dist/models/model.js +463 -297
  555. package/dist/models/model.js.map +1 -1
  556. package/package.json +1 -1
  557. package/src/client.ts +2760 -696
  558. package/src/models/ChatappBindWabaResponseBody.ts +42 -1
  559. package/src/models/ChatappEmbedSignUpRequest.ts +10 -3
  560. package/src/models/ChatappEmbedSignUpResponseBody.ts +70 -1
  561. package/src/models/ChatappMigrationRegisterRequest.ts +9 -0
  562. package/src/models/ChatappMigrationVerifiedRequest.ts +9 -0
  563. package/src/models/ChatappMigrationVerifiedResponseBody.ts +40 -1
  564. package/src/models/ChatappPhoneNumberDeregisterRequest.ts +11 -6
  565. package/src/models/ChatappSyncPhoneNumberResponseBody.ts +191 -2
  566. package/src/models/ChatappVerifyAndRegisterResponseBody.ts +13 -0
  567. package/src/models/CreateChatFlowByImportRequest.ts +86 -0
  568. package/src/models/CreateChatFlowByImportResponse.ts +40 -0
  569. package/src/models/CreateChatFlowByImportResponseBody.ts +87 -0
  570. package/src/models/CreateChatFlowByImportShrinkRequest.ts +83 -0
  571. package/src/models/CreateChatFlowLogSettingRequest.ts +43 -0
  572. package/src/models/CreateChatFlowLogSettingResponse.ts +40 -0
  573. package/src/models/CreateChatFlowLogSettingResponseBody.ts +87 -0
  574. package/src/models/CreateChatFlowRequest.ts +86 -0
  575. package/src/models/CreateChatFlowResponse.ts +40 -0
  576. package/src/models/CreateChatFlowResponseBody.ts +94 -0
  577. package/src/models/CreateChatFlowShrinkRequest.ts +83 -0
  578. package/src/models/CreateChatappMigrationInitiateRequest.ts +9 -0
  579. package/src/models/CreateChatappMigrationInitiateResponseBody.ts +50 -1
  580. package/src/models/CreateChatappTemplateRequest.ts +612 -1
  581. package/src/models/CreateChatappTemplateResponseBody.ts +40 -1
  582. package/src/models/CreateFlowRequest.ts +11 -9
  583. package/src/models/CreateFlowResponseBody.ts +53 -1
  584. package/src/models/CreateFlowShrinkRequest.ts +11 -9
  585. package/src/models/CreateFlowVersionRequest.ts +86 -0
  586. package/src/models/CreateFlowVersionResponse.ts +40 -0
  587. package/src/models/CreateFlowVersionResponseBody.ts +87 -0
  588. package/src/models/CreateFlowVersionShrinkRequest.ts +83 -0
  589. package/src/models/CreatePhoneMessageQrdlRequest.ts +13 -13
  590. package/src/models/CreatePhoneMessageQrdlResponseBody.ts +83 -1
  591. package/src/models/DeleteChatFlowRequest.ts +66 -0
  592. package/src/models/DeleteChatFlowResponse.ts +40 -0
  593. package/src/models/DeleteChatFlowResponseBody.ts +87 -0
  594. package/src/models/DeleteChatFlowShrinkRequest.ts +63 -0
  595. package/src/models/DeleteChatGroupParticipantsRequest.ts +27 -1
  596. package/src/models/DeleteFlowRequest.ts +11 -7
  597. package/src/models/DeleteFlowResponseBody.ts +3 -0
  598. package/src/models/DeleteFlowVersionRequest.ts +76 -0
  599. package/src/models/DeleteFlowVersionResponse.ts +40 -0
  600. package/src/models/DeleteFlowVersionResponseBody.ts +87 -0
  601. package/src/models/DeleteFlowVersionShrinkRequest.ts +73 -0
  602. package/src/models/DeletePhoneMessageQrdlRequest.ts +12 -10
  603. package/src/models/DeletePhoneMessageQrdlResponseBody.ts +3 -0
  604. package/src/models/DeprecateFlowRequest.ts +11 -7
  605. package/src/models/DeprecateFlowResponseBody.ts +3 -0
  606. package/src/models/EnableWhatsappRoimetricRequest.ts +9 -0
  607. package/src/models/FlowBindPhoneRequest.ts +101 -0
  608. package/src/models/FlowBindPhoneResponse.ts +40 -0
  609. package/src/models/FlowBindPhoneResponseBody.ts +84 -0
  610. package/src/models/FlowBindPhoneShrinkRequest.ts +98 -0
  611. package/src/models/FlowRebindPhoneRequest.ts +101 -0
  612. package/src/models/{BeeBotAssociateResponse.ts → FlowRebindPhoneResponse.ts} +4 -4
  613. package/src/models/FlowRebindPhoneResponseBody.ts +84 -0
  614. package/src/models/FlowRebindPhoneShrinkRequest.ts +98 -0
  615. package/src/models/FlowUnbindPhoneRequest.ts +75 -0
  616. package/src/models/FlowUnbindPhoneResponse.ts +40 -0
  617. package/src/models/FlowUnbindPhoneResponseBody.ts +74 -0
  618. package/src/models/FlowUnbindPhoneShrinkRequest.ts +72 -0
  619. package/src/models/GetChatFlowMetricRequest.ts +114 -0
  620. package/src/models/GetChatFlowMetricResponse.ts +40 -0
  621. package/src/models/GetChatFlowMetricResponseBody.ts +87 -0
  622. package/src/models/GetChatFlowMetricShrinkRequest.ts +108 -0
  623. package/src/models/GetChatFlowTemplateRequest.ts +55 -0
  624. package/src/models/GetChatFlowTemplateResponse.ts +40 -0
  625. package/src/models/GetChatFlowTemplateResponseBody.ts +117 -0
  626. package/src/models/GetChatappPhoneNumberMetricRequest.ts +9 -0
  627. package/src/models/GetChatappPhoneNumberMetricResponseBody.ts +85 -1
  628. package/src/models/GetChatappTemplateDetailResponseBody.ts +863 -1
  629. package/src/models/GetChatappTemplateMetricRequest.ts +9 -0
  630. package/src/models/GetChatappTemplateMetricResponseBody.ts +156 -1
  631. package/src/models/GetChatappUploadAuthorizationRequest.ts +9 -0
  632. package/src/models/GetChatappUploadAuthorizationResponseBody.ts +90 -1
  633. package/src/models/GetChatappVerifyCodeResponseBody.ts +13 -0
  634. package/src/models/GetCommerceSettingResponseBody.ts +46 -1
  635. package/src/models/GetConversationalAutomationResponseBody.ts +100 -1
  636. package/src/models/GetFlowJsonassestRequest.ts +11 -10
  637. package/src/models/GetFlowJsonassestResponseBody.ts +43 -1
  638. package/src/models/GetFlowPreviewUrlRequest.ts +11 -7
  639. package/src/models/GetFlowPreviewUrlResponseBody.ts +53 -1
  640. package/src/models/GetFlowRequest.ts +11 -7
  641. package/src/models/GetFlowResponseBody.ts +129 -1
  642. package/src/models/GetMigrationVerifyCodeRequest.ts +9 -0
  643. package/src/models/GetMigrationVerifyCodeResponseBody.ts +40 -1
  644. package/src/models/GetPermissionByCodeRequest.ts +11 -11
  645. package/src/models/GetPermissionByCodeResponseBody.ts +3 -0
  646. package/src/models/GetPermissionByCodeShrinkRequest.ts +11 -11
  647. package/src/models/GetPhoneEncryptionPublicKeyRequest.ts +11 -7
  648. package/src/models/GetPhoneEncryptionPublicKeyResponseBody.ts +64 -1
  649. package/src/models/GetPhoneNumberVerificationStatusRequest.ts +11 -6
  650. package/src/models/GetPhoneNumberVerificationStatusResponseBody.ts +53 -1
  651. package/src/models/GetPreValidatePhoneIdResponseBody.ts +40 -1
  652. package/src/models/GetWhatsappHealthStatusResponseBody.ts +190 -1
  653. package/src/models/IsvGetAppIdRequest.ts +18 -13
  654. package/src/models/ListBindingRelationsForFlowVersionRequest.ts +63 -0
  655. package/src/models/ListBindingRelationsForFlowVersionResponse.ts +40 -0
  656. package/src/models/{BeeBotChatResponseBody.ts → ListBindingRelationsForFlowVersionResponseBody.ts} +25 -12
  657. package/src/models/ListChatFlowRequest.ts +121 -0
  658. package/src/models/{BeeBotChatResponse.ts → ListChatFlowResponse.ts} +4 -4
  659. package/src/models/ListChatFlowResponseBody.ts +87 -0
  660. package/src/models/ListChatFlowShrinkRequest.ts +118 -0
  661. package/src/models/ListChatFlowTemplateRequest.ts +91 -0
  662. package/src/models/ListChatFlowTemplateResponse.ts +40 -0
  663. package/src/models/ListChatFlowTemplateResponseBody.ts +117 -0
  664. package/src/models/ListChatGroupParticipantsRequest.ts +34 -1
  665. package/src/models/ListChatGroupParticipantsResponseBody.ts +60 -1
  666. package/src/models/ListChatGroupRequest.ts +40 -1
  667. package/src/models/ListChatGroupResponseBody.ts +102 -1
  668. package/src/models/ListChatappMessageRequest.ts +169 -0
  669. package/src/models/ListChatappMessageResponse.ts +40 -0
  670. package/src/models/ListChatappMessageResponseBody.ts +263 -0
  671. package/src/models/ListChatappMessageShrinkRequest.ts +126 -0
  672. package/src/models/ListChatappTemplateRequest.ts +56 -11
  673. package/src/models/ListChatappTemplateResponseBody.ts +129 -3
  674. package/src/models/ListChatappTemplateShrinkRequest.ts +12 -10
  675. package/src/models/ListFlowNodePrototypeV2request.ts +77 -0
  676. package/src/models/ListFlowNodePrototypeV2response.ts +40 -0
  677. package/src/models/ListFlowNodePrototypeV2responseBody.ts +131 -0
  678. package/src/models/ListFlowRequest.ts +37 -13
  679. package/src/models/ListFlowResponseBody.ts +53 -1
  680. package/src/models/ListFlowShrinkRequest.ts +11 -12
  681. package/src/models/ListFlowVersionRequest.ts +96 -0
  682. package/src/models/ListFlowVersionResponse.ts +40 -0
  683. package/src/models/ListFlowVersionResponseBody.ts +87 -0
  684. package/src/models/ListFlowVersionShrinkRequest.ts +93 -0
  685. package/src/models/ListPhoneMessageQrdlRequest.ts +11 -7
  686. package/src/models/ListPhoneMessageQrdlResponseBody.ts +83 -1
  687. package/src/models/ListProductCatalogResponseBody.ts +110 -1
  688. package/src/models/ListProductResponseBody.ts +110 -1
  689. package/src/models/ModifyChatappTemplateRequest.ts +614 -1
  690. package/src/models/ModifyChatappTemplateResponseBody.ts +40 -1
  691. package/src/models/ModifyFlowRequest.ts +12 -13
  692. package/src/models/ModifyFlowResponseBody.ts +53 -1
  693. package/src/models/ModifyFlowShrinkRequest.ts +12 -13
  694. package/src/models/OfflineFlowVersionRequest.ts +86 -0
  695. package/src/models/OfflineFlowVersionResponse.ts +40 -0
  696. package/src/models/OfflineFlowVersionResponseBody.ts +87 -0
  697. package/src/models/OfflineFlowVersionShrinkRequest.ts +83 -0
  698. package/src/models/OnlineFlowVersionRequest.ts +86 -0
  699. package/src/models/OnlineFlowVersionResponse.ts +40 -0
  700. package/src/models/OnlineFlowVersionResponseBody.ts +87 -0
  701. package/src/models/OnlineFlowVersionShrinkRequest.ts +83 -0
  702. package/src/models/PublishFlowRequest.ts +11 -7
  703. package/src/models/PublishFlowResponseBody.ts +3 -0
  704. package/src/models/QueryChatappBindWabaResponseBody.ts +130 -1
  705. package/src/models/QueryChatappPhoneNumbersResponseBody.ts +193 -1
  706. package/src/models/QueryPhoneBusinessProfileResponseBody.ts +90 -1
  707. package/src/models/QueryWabaBusinessInfoResponseBody.ts +62 -1
  708. package/src/models/ReadChatFlowLogSettingRequest.ts +43 -0
  709. package/src/models/ReadChatFlowLogSettingResponse.ts +40 -0
  710. package/src/models/{BeeBotAssociateResponseBody.ts → ReadChatFlowLogSettingResponseBody.ts} +25 -13
  711. package/src/models/ReadChatFlowRequest.ts +66 -0
  712. package/src/models/ReadChatFlowResponse.ts +40 -0
  713. package/src/models/ReadChatFlowResponseBody.ts +87 -0
  714. package/src/models/ReadChatFlowShrinkRequest.ts +63 -0
  715. package/src/models/ReadFlowVersionRequest.ts +86 -0
  716. package/src/models/ReadFlowVersionResponse.ts +40 -0
  717. package/src/models/ReadFlowVersionResponseBody.ts +87 -0
  718. package/src/models/ReadFlowVersionShrinkRequest.ts +83 -0
  719. package/src/models/SendChatappMassMessageRequest.ts +222 -1
  720. package/src/models/SendChatappMessageRequest.ts +150 -2
  721. package/src/models/SubmitIsvCustomerTermsRequest.ts +9 -0
  722. package/src/models/UpdateAccountWebhookRequest.ts +9 -0
  723. package/src/models/UpdateChatFlowLogSettingRequest.ts +66 -0
  724. package/src/models/UpdateChatFlowLogSettingResponse.ts +40 -0
  725. package/src/models/UpdateChatFlowLogSettingResponseBody.ts +87 -0
  726. package/src/models/UpdateChatFlowRequest.ts +86 -0
  727. package/src/models/UpdateChatFlowResponse.ts +40 -0
  728. package/src/models/UpdateChatFlowResponseBody.ts +87 -0
  729. package/src/models/UpdateChatFlowShrinkRequest.ts +83 -0
  730. package/src/models/UpdateConversationalAutomationRequest.ts +40 -1
  731. package/src/models/UpdateFlowJsonassetRequest.ts +12 -10
  732. package/src/models/UpdateFlowJsonassetResponseBody.ts +33 -1
  733. package/src/models/UpdateFlowVersionRequest.ts +96 -0
  734. package/src/models/UpdateFlowVersionResponse.ts +40 -0
  735. package/src/models/UpdateFlowVersionResponseBody.ts +87 -0
  736. package/src/models/UpdateFlowVersionShrinkRequest.ts +93 -0
  737. package/src/models/UpdatePhoneEncryptionPublicKeyRequest.ts +12 -18
  738. package/src/models/UpdatePhoneEncryptionPublicKeyResponseBody.ts +3 -0
  739. package/src/models/UpdatePhoneMessageQrdlRequest.ts +14 -16
  740. package/src/models/UpdatePhoneMessageQrdlResponseBody.ts +83 -1
  741. package/src/models/UpdatePhoneWebhookRequest.ts +9 -0
  742. package/src/models/model.ts +180 -98
  743. package/dist/models/BeeBotAssociateRequest.d.ts +0 -68
  744. package/dist/models/BeeBotAssociateRequest.js.map +0 -1
  745. package/dist/models/BeeBotAssociateResponseBody.js.map +0 -1
  746. package/dist/models/BeeBotAssociateResponseBodyData.d.ts +0 -35
  747. package/dist/models/BeeBotAssociateResponseBodyData.js.map +0 -1
  748. package/dist/models/BeeBotAssociateResponseBodyDataAssociate.d.ts +0 -31
  749. package/dist/models/BeeBotAssociateResponseBodyDataAssociate.js.map +0 -1
  750. package/dist/models/BeeBotAssociateShrinkRequest.d.ts +0 -68
  751. package/dist/models/BeeBotAssociateShrinkRequest.js.map +0 -1
  752. package/dist/models/BeeBotChatRequest.d.ts +0 -104
  753. package/dist/models/BeeBotChatRequest.js.map +0 -1
  754. package/dist/models/BeeBotChatResponse.js.map +0 -1
  755. package/dist/models/BeeBotChatResponseBody.js.map +0 -1
  756. package/dist/models/BeeBotChatResponseBodyData.d.ts +0 -35
  757. package/dist/models/BeeBotChatResponseBodyData.js.map +0 -1
  758. package/dist/models/BeeBotChatResponseBodyDataMessages.d.ts +0 -47
  759. package/dist/models/BeeBotChatResponseBodyDataMessages.js +0 -78
  760. package/dist/models/BeeBotChatResponseBodyDataMessages.js.map +0 -1
  761. package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledge.d.ts +0 -83
  762. package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledge.js +0 -78
  763. package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledge.js.map +0 -1
  764. package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.d.ts +0 -29
  765. package/dist/models/BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.js.map +0 -1
  766. package/dist/models/BeeBotChatResponseBodyDataMessagesRecommends.d.ts +0 -37
  767. package/dist/models/BeeBotChatResponseBodyDataMessagesRecommends.js.map +0 -1
  768. package/dist/models/BeeBotChatResponseBodyDataMessagesText.d.ts +0 -113
  769. package/dist/models/BeeBotChatResponseBodyDataMessagesText.js +0 -92
  770. package/dist/models/BeeBotChatResponseBodyDataMessagesText.js.map +0 -1
  771. package/dist/models/BeeBotChatResponseBodyDataMessagesTextSlots.d.ts +0 -45
  772. package/dist/models/BeeBotChatResponseBodyDataMessagesTextSlots.js.map +0 -1
  773. package/dist/models/BeeBotChatShrinkRequest.d.ts +0 -102
  774. package/dist/models/BeeBotChatShrinkRequest.js +0 -78
  775. package/dist/models/BeeBotChatShrinkRequest.js.map +0 -1
  776. package/dist/models/ChatappBindWabaResponseBodyData.d.ts +0 -29
  777. package/dist/models/ChatappBindWabaResponseBodyData.js.map +0 -1
  778. package/dist/models/ChatappEmbedSignUpResponseBodyWabas.d.ts +0 -53
  779. package/dist/models/ChatappEmbedSignUpResponseBodyWabas.js.map +0 -1
  780. package/dist/models/ChatappMigrationVerifiedResponseBodyData.d.ts +0 -29
  781. package/dist/models/ChatappMigrationVerifiedResponseBodyData.js +0 -60
  782. package/dist/models/ChatappMigrationVerifiedResponseBodyData.js.map +0 -1
  783. package/dist/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.d.ts +0 -114
  784. package/dist/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.js +0 -82
  785. package/dist/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.js.map +0 -1
  786. package/dist/models/CreateChatappMigrationInitiateResponseBodyData.d.ts +0 -37
  787. package/dist/models/CreateChatappMigrationInitiateResponseBodyData.js.map +0 -1
  788. package/dist/models/CreateChatappTemplateRequestComponents.d.ts +0 -157
  789. package/dist/models/CreateChatappTemplateRequestComponents.js +0 -92
  790. package/dist/models/CreateChatappTemplateRequestComponents.js.map +0 -1
  791. package/dist/models/CreateChatappTemplateRequestComponentsButtons.d.ts +0 -149
  792. package/dist/models/CreateChatappTemplateRequestComponentsButtons.js +0 -88
  793. package/dist/models/CreateChatappTemplateRequestComponentsButtons.js.map +0 -1
  794. package/dist/models/CreateChatappTemplateRequestComponentsButtonsSupportedApps.d.ts +0 -29
  795. package/dist/models/CreateChatappTemplateRequestComponentsButtonsSupportedApps.js +0 -60
  796. package/dist/models/CreateChatappTemplateRequestComponentsButtonsSupportedApps.js.map +0 -1
  797. package/dist/models/CreateChatappTemplateRequestComponentsCards.d.ts +0 -21
  798. package/dist/models/CreateChatappTemplateRequestComponentsCards.js +0 -62
  799. package/dist/models/CreateChatappTemplateRequestComponentsCards.js.map +0 -1
  800. package/dist/models/CreateChatappTemplateRequestComponentsCardsCardComponents.d.ts +0 -60
  801. package/dist/models/CreateChatappTemplateRequestComponentsCardsCardComponents.js +0 -70
  802. package/dist/models/CreateChatappTemplateRequestComponentsCardsCardComponents.js.map +0 -1
  803. package/dist/models/CreateChatappTemplateRequestComponentsCardsCardComponentsButtons.d.ts +0 -62
  804. package/dist/models/CreateChatappTemplateRequestComponentsCardsCardComponentsButtons.js +0 -66
  805. package/dist/models/CreateChatappTemplateRequestComponentsCardsCardComponentsButtons.js.map +0 -1
  806. package/dist/models/CreateChatappTemplateResponseBodyData.d.ts +0 -29
  807. package/dist/models/CreateChatappTemplateResponseBodyData.js +0 -60
  808. package/dist/models/CreateChatappTemplateResponseBodyData.js.map +0 -1
  809. package/dist/models/CreateFlowResponseBodyData.d.ts +0 -34
  810. package/dist/models/CreateFlowResponseBodyData.js.map +0 -1
  811. package/dist/models/CreatePhoneMessageQrdlResponseBodyData.js +0 -68
  812. package/dist/models/CreatePhoneMessageQrdlResponseBodyData.js.map +0 -1
  813. package/dist/models/DeleteChatGroupParticipantsRequestList.d.ts +0 -18
  814. package/dist/models/DeleteChatGroupParticipantsRequestList.js +0 -58
  815. package/dist/models/DeleteChatGroupParticipantsRequestList.js.map +0 -1
  816. package/dist/models/GetChatappPhoneNumberMetricResponseBodyData.d.ts +0 -66
  817. package/dist/models/GetChatappPhoneNumberMetricResponseBodyData.js.map +0 -1
  818. package/dist/models/GetChatappTemplateDetailResponseBodyData.d.ts +0 -127
  819. package/dist/models/GetChatappTemplateDetailResponseBodyData.js +0 -89
  820. package/dist/models/GetChatappTemplateDetailResponseBodyData.js.map +0 -1
  821. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponents.d.ts +0 -186
  822. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponents.js +0 -102
  823. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponents.js.map +0 -1
  824. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsButtons.d.ts +0 -144
  825. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsButtons.js +0 -94
  826. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsButtons.js.map +0 -1
  827. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs.d.ts +0 -53
  828. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs.js +0 -66
  829. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs.js.map +0 -1
  830. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsButtonsSupportedApps.d.ts +0 -29
  831. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsButtonsSupportedApps.js +0 -60
  832. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsButtonsSupportedApps.js.map +0 -1
  833. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsCards.d.ts +0 -19
  834. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsCards.js +0 -62
  835. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsCards.js.map +0 -1
  836. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents.d.ts +0 -51
  837. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents.js +0 -70
  838. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents.js.map +0 -1
  839. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons.d.ts +0 -53
  840. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons.js +0 -66
  841. package/dist/models/GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons.js.map +0 -1
  842. package/dist/models/GetChatappTemplateMetricResponseBodyData.d.ts +0 -75
  843. package/dist/models/GetChatappTemplateMetricResponseBodyData.js +0 -76
  844. package/dist/models/GetChatappTemplateMetricResponseBodyData.js.map +0 -1
  845. package/dist/models/GetChatappTemplateMetricResponseBodyDataCliented.d.ts +0 -43
  846. package/dist/models/GetChatappTemplateMetricResponseBodyDataCliented.js +0 -62
  847. package/dist/models/GetChatappTemplateMetricResponseBodyDataCliented.js.map +0 -1
  848. package/dist/models/GetChatappUploadAuthorizationResponseBodyData.d.ts +0 -69
  849. package/dist/models/GetChatappUploadAuthorizationResponseBodyData.js +0 -70
  850. package/dist/models/GetChatappUploadAuthorizationResponseBodyData.js.map +0 -1
  851. package/dist/models/GetCommerceSettingResponseBodyData.d.ts +0 -35
  852. package/dist/models/GetCommerceSettingResponseBodyData.js +0 -60
  853. package/dist/models/GetCommerceSettingResponseBodyData.js.map +0 -1
  854. package/dist/models/GetConversationalAutomationResponseBodyData.d.ts +0 -40
  855. package/dist/models/GetConversationalAutomationResponseBodyData.js +0 -71
  856. package/dist/models/GetConversationalAutomationResponseBodyData.js.map +0 -1
  857. package/dist/models/GetConversationalAutomationResponseBodyDataCommands.d.ts +0 -29
  858. package/dist/models/GetConversationalAutomationResponseBodyDataCommands.js +0 -60
  859. package/dist/models/GetConversationalAutomationResponseBodyDataCommands.js.map +0 -1
  860. package/dist/models/GetFlowJsonassestResponseBodyData.d.ts +0 -29
  861. package/dist/models/GetFlowJsonassestResponseBodyData.js +0 -60
  862. package/dist/models/GetFlowJsonassestResponseBodyData.js.map +0 -1
  863. package/dist/models/GetFlowPreviewUrlResponseBodyData.d.ts +0 -37
  864. package/dist/models/GetFlowPreviewUrlResponseBodyData.js +0 -62
  865. package/dist/models/GetFlowPreviewUrlResponseBodyData.js.map +0 -1
  866. package/dist/models/GetFlowResponseBodyData.d.ts +0 -100
  867. package/dist/models/GetFlowResponseBodyData.js.map +0 -1
  868. package/dist/models/GetMigrationVerifyCodeResponseBodyData.d.ts +0 -29
  869. package/dist/models/GetMigrationVerifyCodeResponseBodyData.js +0 -60
  870. package/dist/models/GetMigrationVerifyCodeResponseBodyData.js.map +0 -1
  871. package/dist/models/GetPhoneEncryptionPublicKeyResponseBodyData.d.ts +0 -48
  872. package/dist/models/GetPhoneEncryptionPublicKeyResponseBodyData.js +0 -62
  873. package/dist/models/GetPhoneEncryptionPublicKeyResponseBodyData.js.map +0 -1
  874. package/dist/models/GetPhoneNumberVerificationStatusResponseBodyData.d.ts +0 -37
  875. package/dist/models/GetPhoneNumberVerificationStatusResponseBodyData.js +0 -62
  876. package/dist/models/GetPhoneNumberVerificationStatusResponseBodyData.js.map +0 -1
  877. package/dist/models/GetPreValidatePhoneIdResponseBodyData.d.ts +0 -29
  878. package/dist/models/GetPreValidatePhoneIdResponseBodyData.js +0 -60
  879. package/dist/models/GetPreValidatePhoneIdResponseBodyData.js.map +0 -1
  880. package/dist/models/GetWhatsappHealthStatusResponseBodyData.d.ts +0 -27
  881. package/dist/models/GetWhatsappHealthStatusResponseBodyData.js +0 -64
  882. package/dist/models/GetWhatsappHealthStatusResponseBodyData.js.map +0 -1
  883. package/dist/models/GetWhatsappHealthStatusResponseBodyDataEntities.d.ts +0 -75
  884. package/dist/models/GetWhatsappHealthStatusResponseBodyDataEntities.js +0 -76
  885. package/dist/models/GetWhatsappHealthStatusResponseBodyDataEntities.js.map +0 -1
  886. package/dist/models/GetWhatsappHealthStatusResponseBodyDataEntitiesErrors.d.ts +0 -37
  887. package/dist/models/GetWhatsappHealthStatusResponseBodyDataEntitiesErrors.js +0 -62
  888. package/dist/models/GetWhatsappHealthStatusResponseBodyDataEntitiesErrors.js.map +0 -1
  889. package/dist/models/ListChatGroupParticipantsRequestPage.d.ts +0 -23
  890. package/dist/models/ListChatGroupParticipantsRequestPage.js +0 -60
  891. package/dist/models/ListChatGroupParticipantsRequestPage.js.map +0 -1
  892. package/dist/models/ListChatGroupParticipantsResponseBodyData.d.ts +0 -20
  893. package/dist/models/ListChatGroupParticipantsResponseBodyData.js +0 -64
  894. package/dist/models/ListChatGroupParticipantsResponseBodyData.js.map +0 -1
  895. package/dist/models/ListChatGroupParticipantsResponseBodyDataList.d.ts +0 -18
  896. package/dist/models/ListChatGroupParticipantsResponseBodyDataList.js +0 -58
  897. package/dist/models/ListChatGroupParticipantsResponseBodyDataList.js.map +0 -1
  898. package/dist/models/ListChatGroupRequestPage.d.ts +0 -29
  899. package/dist/models/ListChatGroupRequestPage.js +0 -60
  900. package/dist/models/ListChatGroupRequestPage.js.map +0 -1
  901. package/dist/models/ListChatGroupResponseBodyData.d.ts +0 -20
  902. package/dist/models/ListChatGroupResponseBodyData.js +0 -64
  903. package/dist/models/ListChatGroupResponseBodyData.js.map +0 -1
  904. package/dist/models/ListChatGroupResponseBodyDataList.d.ts +0 -48
  905. package/dist/models/ListChatGroupResponseBodyDataList.js.map +0 -1
  906. package/dist/models/ListChatappTemplateRequestPage.js +0 -60
  907. package/dist/models/ListChatappTemplateRequestPage.js.map +0 -1
  908. package/dist/models/ListChatappTemplateResponseBodyListTemplate.d.ts +0 -98
  909. package/dist/models/ListChatappTemplateResponseBodyListTemplate.js +0 -72
  910. package/dist/models/ListChatappTemplateResponseBodyListTemplate.js.map +0 -1
  911. package/dist/models/ListFlowRequestPage.js +0 -60
  912. package/dist/models/ListFlowRequestPage.js.map +0 -1
  913. package/dist/models/ListFlowResponseBodyData.d.ts +0 -34
  914. package/dist/models/ListFlowResponseBodyData.js +0 -65
  915. package/dist/models/ListFlowResponseBodyData.js.map +0 -1
  916. package/dist/models/ListPhoneMessageQrdlResponseBodyData.js +0 -68
  917. package/dist/models/ListPhoneMessageQrdlResponseBodyData.js.map +0 -1
  918. package/dist/models/ListProductCatalogResponseBodyModel.d.ts +0 -26
  919. package/dist/models/ListProductCatalogResponseBodyModel.js.map +0 -1
  920. package/dist/models/ListProductCatalogResponseBodyModelPaging.d.ts +0 -19
  921. package/dist/models/ListProductCatalogResponseBodyModelPaging.js +0 -62
  922. package/dist/models/ListProductCatalogResponseBodyModelPaging.js.map +0 -1
  923. package/dist/models/ListProductCatalogResponseBodyModelPagingCursors.d.ts +0 -29
  924. package/dist/models/ListProductCatalogResponseBodyModelPagingCursors.js +0 -60
  925. package/dist/models/ListProductCatalogResponseBodyModelPagingCursors.js.map +0 -1
  926. package/dist/models/ListProductResponseBodyModel.d.ts +0 -26
  927. package/dist/models/ListProductResponseBodyModel.js.map +0 -1
  928. package/dist/models/ListProductResponseBodyModelPaging.d.ts +0 -19
  929. package/dist/models/ListProductResponseBodyModelPaging.js +0 -62
  930. package/dist/models/ListProductResponseBodyModelPaging.js.map +0 -1
  931. package/dist/models/ListProductResponseBodyModelPagingCursors.d.ts +0 -29
  932. package/dist/models/ListProductResponseBodyModelPagingCursors.js.map +0 -1
  933. package/dist/models/ModifyChatappTemplateRequestComponents.d.ts +0 -159
  934. package/dist/models/ModifyChatappTemplateRequestComponents.js +0 -92
  935. package/dist/models/ModifyChatappTemplateRequestComponents.js.map +0 -1
  936. package/dist/models/ModifyChatappTemplateRequestComponentsButtons.d.ts +0 -149
  937. package/dist/models/ModifyChatappTemplateRequestComponentsButtons.js +0 -88
  938. package/dist/models/ModifyChatappTemplateRequestComponentsButtons.js.map +0 -1
  939. package/dist/models/ModifyChatappTemplateRequestComponentsButtonsSupportedApps.d.ts +0 -29
  940. package/dist/models/ModifyChatappTemplateRequestComponentsButtonsSupportedApps.js +0 -60
  941. package/dist/models/ModifyChatappTemplateRequestComponentsButtonsSupportedApps.js.map +0 -1
  942. package/dist/models/ModifyChatappTemplateRequestComponentsCards.d.ts +0 -21
  943. package/dist/models/ModifyChatappTemplateRequestComponentsCards.js +0 -62
  944. package/dist/models/ModifyChatappTemplateRequestComponentsCards.js.map +0 -1
  945. package/dist/models/ModifyChatappTemplateRequestComponentsCardsCardComponents.d.ts +0 -60
  946. package/dist/models/ModifyChatappTemplateRequestComponentsCardsCardComponents.js +0 -70
  947. package/dist/models/ModifyChatappTemplateRequestComponentsCardsCardComponents.js.map +0 -1
  948. package/dist/models/ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons.d.ts +0 -62
  949. package/dist/models/ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons.js +0 -66
  950. package/dist/models/ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons.js.map +0 -1
  951. package/dist/models/ModifyChatappTemplateResponseBodyData.d.ts +0 -29
  952. package/dist/models/ModifyChatappTemplateResponseBodyData.js +0 -60
  953. package/dist/models/ModifyChatappTemplateResponseBodyData.js.map +0 -1
  954. package/dist/models/ModifyFlowResponseBodyData.d.ts +0 -34
  955. package/dist/models/ModifyFlowResponseBodyData.js +0 -65
  956. package/dist/models/ModifyFlowResponseBodyData.js.map +0 -1
  957. package/dist/models/QueryChatappBindWabaResponseBodyData.d.ts +0 -99
  958. package/dist/models/QueryChatappBindWabaResponseBodyData.js +0 -79
  959. package/dist/models/QueryChatappBindWabaResponseBodyData.js.map +0 -1
  960. package/dist/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.d.ts +0 -144
  961. package/dist/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.js +0 -82
  962. package/dist/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.js.map +0 -1
  963. package/dist/models/QueryPhoneBusinessProfileResponseBodyData.js +0 -73
  964. package/dist/models/QueryPhoneBusinessProfileResponseBodyData.js.map +0 -1
  965. package/dist/models/QueryWabaBusinessInfoResponseBodyData.d.ts +0 -47
  966. package/dist/models/QueryWabaBusinessInfoResponseBodyData.js +0 -64
  967. package/dist/models/QueryWabaBusinessInfoResponseBodyData.js.map +0 -1
  968. package/dist/models/SendChatappMassMessageRequestSenderList.d.ts +0 -47
  969. package/dist/models/SendChatappMassMessageRequestSenderList.js +0 -80
  970. package/dist/models/SendChatappMassMessageRequestSenderList.js.map +0 -1
  971. package/dist/models/SendChatappMassMessageRequestSenderListFlowAction.d.ts +0 -28
  972. package/dist/models/SendChatappMassMessageRequestSenderListFlowAction.js +0 -63
  973. package/dist/models/SendChatappMassMessageRequestSenderListFlowAction.js.map +0 -1
  974. package/dist/models/SendChatappMassMessageRequestSenderListProductAction.d.ts +0 -27
  975. package/dist/models/SendChatappMassMessageRequestSenderListProductAction.js +0 -64
  976. package/dist/models/SendChatappMassMessageRequestSenderListProductAction.js.map +0 -1
  977. package/dist/models/SendChatappMassMessageRequestSenderListProductActionSections.d.ts +0 -27
  978. package/dist/models/SendChatappMassMessageRequestSenderListProductActionSections.js +0 -64
  979. package/dist/models/SendChatappMassMessageRequestSenderListProductActionSections.js.map +0 -1
  980. package/dist/models/SendChatappMassMessageRequestSenderListProductActionSectionsProductItems.d.ts +0 -21
  981. package/dist/models/SendChatappMassMessageRequestSenderListProductActionSectionsProductItems.js +0 -58
  982. package/dist/models/SendChatappMassMessageRequestSenderListProductActionSectionsProductItems.js.map +0 -1
  983. package/dist/models/SendChatappMessageRequestFlowAction.d.ts +0 -28
  984. package/dist/models/SendChatappMessageRequestFlowAction.js +0 -63
  985. package/dist/models/SendChatappMessageRequestFlowAction.js.map +0 -1
  986. package/dist/models/SendChatappMessageRequestProductAction.d.ts +0 -27
  987. package/dist/models/SendChatappMessageRequestProductAction.js +0 -64
  988. package/dist/models/SendChatappMessageRequestProductAction.js.map +0 -1
  989. package/dist/models/SendChatappMessageRequestProductActionSections.d.ts +0 -27
  990. package/dist/models/SendChatappMessageRequestProductActionSections.js.map +0 -1
  991. package/dist/models/SendChatappMessageRequestProductActionSectionsProductItems.d.ts +0 -21
  992. package/dist/models/SendChatappMessageRequestProductActionSectionsProductItems.js +0 -58
  993. package/dist/models/SendChatappMessageRequestProductActionSectionsProductItems.js.map +0 -1
  994. package/dist/models/UpdateConversationalAutomationRequestCommands.d.ts +0 -29
  995. package/dist/models/UpdateConversationalAutomationRequestCommands.js +0 -60
  996. package/dist/models/UpdateConversationalAutomationRequestCommands.js.map +0 -1
  997. package/dist/models/UpdateFlowJsonassetResponseBodyData.js +0 -58
  998. package/dist/models/UpdateFlowJsonassetResponseBodyData.js.map +0 -1
  999. package/dist/models/UpdatePhoneMessageQrdlResponseBodyData.js +0 -68
  1000. package/dist/models/UpdatePhoneMessageQrdlResponseBodyData.js.map +0 -1
  1001. package/src/models/BeeBotAssociateRequest.ts +0 -96
  1002. package/src/models/BeeBotAssociateResponseBodyData.ts +0 -55
  1003. package/src/models/BeeBotAssociateResponseBodyDataAssociate.ts +0 -46
  1004. package/src/models/BeeBotAssociateShrinkRequest.ts +0 -93
  1005. package/src/models/BeeBotChatRequest.ts +0 -141
  1006. package/src/models/BeeBotChatResponseBodyData.ts +0 -55
  1007. package/src/models/BeeBotChatResponseBodyDataMessages.ts +0 -77
  1008. package/src/models/BeeBotChatResponseBodyDataMessagesKnowledge.ts +0 -115
  1009. package/src/models/BeeBotChatResponseBodyDataMessagesKnowledgeRelatedKnowledges.ts +0 -44
  1010. package/src/models/BeeBotChatResponseBodyDataMessagesRecommends.ts +0 -54
  1011. package/src/models/BeeBotChatResponseBodyDataMessagesText.ts +0 -155
  1012. package/src/models/BeeBotChatResponseBodyDataMessagesTextSlots.ts +0 -64
  1013. package/src/models/BeeBotChatShrinkRequest.ts +0 -135
  1014. package/src/models/ChatappBindWabaResponseBodyData.ts +0 -44
  1015. package/src/models/ChatappEmbedSignUpResponseBodyWabas.ts +0 -74
  1016. package/src/models/ChatappMigrationVerifiedResponseBodyData.ts +0 -44
  1017. package/src/models/ChatappSyncPhoneNumberResponseBodyPhoneNumbers.ts +0 -151
  1018. package/src/models/CreateChatappMigrationInitiateResponseBodyData.ts +0 -54
  1019. package/src/models/CreateChatappTemplateRequestComponents.ts +0 -202
  1020. package/src/models/CreateChatappTemplateRequestComponentsButtons.ts +0 -191
  1021. package/src/models/CreateChatappTemplateRequestComponentsButtonsSupportedApps.ts +0 -44
  1022. package/src/models/CreateChatappTemplateRequestComponentsCards.ts +0 -37
  1023. package/src/models/CreateChatappTemplateRequestComponentsCardsCardComponents.ts +0 -84
  1024. package/src/models/CreateChatappTemplateRequestComponentsCardsCardComponentsButtons.ts +0 -83
  1025. package/src/models/CreateChatappTemplateResponseBodyData.ts +0 -44
  1026. package/src/models/CreateFlowResponseBodyData.ts +0 -54
  1027. package/src/models/CreatePhoneMessageQrdlResponseBodyData.ts +0 -84
  1028. package/src/models/DeleteChatGroupParticipantsRequestList.ts +0 -31
  1029. package/src/models/GetChatappPhoneNumberMetricResponseBodyData.ts +0 -89
  1030. package/src/models/GetChatappTemplateDetailResponseBodyData.ts +0 -168
  1031. package/src/models/GetChatappTemplateDetailResponseBodyDataComponents.ts +0 -241
  1032. package/src/models/GetChatappTemplateDetailResponseBodyDataComponentsButtons.ts +0 -191
  1033. package/src/models/GetChatappTemplateDetailResponseBodyDataComponentsButtonsExtendAttrs.ts +0 -74
  1034. package/src/models/GetChatappTemplateDetailResponseBodyDataComponentsButtonsSupportedApps.ts +0 -44
  1035. package/src/models/GetChatappTemplateDetailResponseBodyDataComponentsCards.ts +0 -35
  1036. package/src/models/GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponents.ts +0 -75
  1037. package/src/models/GetChatappTemplateDetailResponseBodyDataComponentsCardsCardComponentsButtons.ts +0 -74
  1038. package/src/models/GetChatappTemplateMetricResponseBodyData.ts +0 -105
  1039. package/src/models/GetChatappTemplateMetricResponseBodyDataCliented.ts +0 -60
  1040. package/src/models/GetChatappUploadAuthorizationResponseBodyData.ts +0 -94
  1041. package/src/models/GetCommerceSettingResponseBodyData.ts +0 -50
  1042. package/src/models/GetConversationalAutomationResponseBodyData.ts +0 -65
  1043. package/src/models/GetConversationalAutomationResponseBodyDataCommands.ts +0 -44
  1044. package/src/models/GetFlowJsonassestResponseBodyData.ts +0 -44
  1045. package/src/models/GetFlowPreviewUrlResponseBodyData.ts +0 -54
  1046. package/src/models/GetFlowResponseBodyData.ts +0 -130
  1047. package/src/models/GetMigrationVerifyCodeResponseBodyData.ts +0 -44
  1048. package/src/models/GetPhoneEncryptionPublicKeyResponseBodyData.ts +0 -65
  1049. package/src/models/GetPhoneNumberVerificationStatusResponseBodyData.ts +0 -54
  1050. package/src/models/GetPreValidatePhoneIdResponseBodyData.ts +0 -44
  1051. package/src/models/GetWhatsappHealthStatusResponseBodyData.ts +0 -45
  1052. package/src/models/GetWhatsappHealthStatusResponseBodyDataEntities.ts +0 -105
  1053. package/src/models/GetWhatsappHealthStatusResponseBodyDataEntitiesErrors.ts +0 -54
  1054. package/src/models/ListChatGroupParticipantsRequestPage.ts +0 -38
  1055. package/src/models/ListChatGroupParticipantsResponseBodyData.ts +0 -38
  1056. package/src/models/ListChatGroupParticipantsResponseBodyDataList.ts +0 -31
  1057. package/src/models/ListChatGroupRequestPage.ts +0 -44
  1058. package/src/models/ListChatGroupResponseBodyData.ts +0 -38
  1059. package/src/models/ListChatGroupResponseBodyDataList.ts +0 -73
  1060. package/src/models/ListChatappTemplateRequestPage.ts +0 -48
  1061. package/src/models/ListChatappTemplateResponseBodyListTemplate.ts +0 -125
  1062. package/src/models/ListFlowRequestPage.ts +0 -44
  1063. package/src/models/ListFlowResponseBodyData.ts +0 -54
  1064. package/src/models/ListPhoneMessageQrdlResponseBodyData.ts +0 -84
  1065. package/src/models/ListProductCatalogResponseBodyModel.ts +0 -45
  1066. package/src/models/ListProductCatalogResponseBodyModelPaging.ts +0 -35
  1067. package/src/models/ListProductCatalogResponseBodyModelPagingCursors.ts +0 -44
  1068. package/src/models/ListProductResponseBodyModel.ts +0 -45
  1069. package/src/models/ListProductResponseBodyModelPaging.ts +0 -35
  1070. package/src/models/ListProductResponseBodyModelPagingCursors.ts +0 -44
  1071. package/src/models/ModifyChatappTemplateRequestComponents.ts +0 -204
  1072. package/src/models/ModifyChatappTemplateRequestComponentsButtons.ts +0 -191
  1073. package/src/models/ModifyChatappTemplateRequestComponentsButtonsSupportedApps.ts +0 -44
  1074. package/src/models/ModifyChatappTemplateRequestComponentsCards.ts +0 -37
  1075. package/src/models/ModifyChatappTemplateRequestComponentsCardsCardComponents.ts +0 -84
  1076. package/src/models/ModifyChatappTemplateRequestComponentsCardsCardComponentsButtons.ts +0 -83
  1077. package/src/models/ModifyChatappTemplateResponseBodyData.ts +0 -44
  1078. package/src/models/ModifyFlowResponseBodyData.ts +0 -54
  1079. package/src/models/QueryChatappBindWabaResponseBodyData.ts +0 -131
  1080. package/src/models/QueryChatappPhoneNumbersResponseBodyPhoneNumbers.ts +0 -181
  1081. package/src/models/QueryPhoneBusinessProfileResponseBodyData.ts +0 -94
  1082. package/src/models/QueryWabaBusinessInfoResponseBodyData.ts +0 -66
  1083. package/src/models/SendChatappMassMessageRequestSenderList.ts +0 -78
  1084. package/src/models/SendChatappMassMessageRequestSenderListFlowAction.ts +0 -44
  1085. package/src/models/SendChatappMassMessageRequestSenderListProductAction.ts +0 -45
  1086. package/src/models/SendChatappMassMessageRequestSenderListProductActionSections.ts +0 -45
  1087. package/src/models/SendChatappMassMessageRequestSenderListProductActionSectionsProductItems.ts +0 -34
  1088. package/src/models/SendChatappMessageRequestFlowAction.ts +0 -44
  1089. package/src/models/SendChatappMessageRequestProductAction.ts +0 -45
  1090. package/src/models/SendChatappMessageRequestProductActionSections.ts +0 -45
  1091. package/src/models/SendChatappMessageRequestProductActionSectionsProductItems.ts +0 -34
  1092. package/src/models/UpdateConversationalAutomationRequestCommands.ts +0 -44
  1093. package/src/models/UpdateFlowJsonassetResponseBodyData.ts +0 -34
  1094. package/src/models/UpdatePhoneMessageQrdlResponseBodyData.ts +0 -84
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
  *
@@ -455,12 +304,21 @@ class Client extends openapi_core_1.default {
455
304
  */
456
305
  async chatappEmbedSignUpWithOptions(request, runtime) {
457
306
  request.validate();
458
- let body = {};
307
+ let query = {};
459
308
  if (!$dara.isNull(request.inputToken)) {
460
- body["InputToken"] = request.inputToken;
309
+ query["InputToken"] = request.inputToken;
310
+ }
311
+ if (!$dara.isNull(request.ownerId)) {
312
+ query["OwnerId"] = request.ownerId;
313
+ }
314
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
315
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
316
+ }
317
+ if (!$dara.isNull(request.resourceOwnerId)) {
318
+ query["ResourceOwnerId"] = request.resourceOwnerId;
461
319
  }
462
320
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
463
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
321
+ query: openapi_core_2.OpenApiUtil.query(query),
464
322
  });
465
323
  let params = new openapi_core_2.$OpenApiUtil.Params({
466
324
  action: "ChatappEmbedSignUp",
@@ -504,9 +362,18 @@ class Client extends openapi_core_1.default {
504
362
  if (!$dara.isNull(request.custSpaceId)) {
505
363
  query["CustSpaceId"] = request.custSpaceId;
506
364
  }
365
+ if (!$dara.isNull(request.ownerId)) {
366
+ query["OwnerId"] = request.ownerId;
367
+ }
507
368
  if (!$dara.isNull(request.phoneNumber)) {
508
369
  query["PhoneNumber"] = request.phoneNumber;
509
370
  }
371
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
372
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
373
+ }
374
+ if (!$dara.isNull(request.resourceOwnerId)) {
375
+ query["ResourceOwnerId"] = request.resourceOwnerId;
376
+ }
510
377
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
511
378
  query: openapi_core_2.OpenApiUtil.query(query),
512
379
  });
@@ -552,9 +419,18 @@ class Client extends openapi_core_1.default {
552
419
  if (!$dara.isNull(request.custSpaceId)) {
553
420
  query["CustSpaceId"] = request.custSpaceId;
554
421
  }
422
+ if (!$dara.isNull(request.ownerId)) {
423
+ query["OwnerId"] = request.ownerId;
424
+ }
555
425
  if (!$dara.isNull(request.phoneNumber)) {
556
426
  query["PhoneNumber"] = request.phoneNumber;
557
427
  }
428
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
429
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
430
+ }
431
+ if (!$dara.isNull(request.resourceOwnerId)) {
432
+ query["ResourceOwnerId"] = request.resourceOwnerId;
433
+ }
558
434
  if (!$dara.isNull(request.verifyCode)) {
559
435
  query["VerifyCode"] = request.verifyCode;
560
436
  }
@@ -599,15 +475,24 @@ class Client extends openapi_core_1.default {
599
475
  */
600
476
  async chatappPhoneNumberDeregisterWithOptions(request, runtime) {
601
477
  request.validate();
602
- let body = {};
478
+ let query = {};
603
479
  if (!$dara.isNull(request.custSpaceId)) {
604
- body["CustSpaceId"] = request.custSpaceId;
480
+ query["CustSpaceId"] = request.custSpaceId;
481
+ }
482
+ if (!$dara.isNull(request.ownerId)) {
483
+ query["OwnerId"] = request.ownerId;
605
484
  }
606
485
  if (!$dara.isNull(request.phoneNumber)) {
607
- body["PhoneNumber"] = request.phoneNumber;
486
+ query["PhoneNumber"] = request.phoneNumber;
487
+ }
488
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
489
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
490
+ }
491
+ if (!$dara.isNull(request.resourceOwnerId)) {
492
+ query["ResourceOwnerId"] = request.resourceOwnerId;
608
493
  }
609
494
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
610
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
495
+ query: openapi_core_2.OpenApiUtil.query(query),
611
496
  });
612
497
  let params = new openapi_core_2.$OpenApiUtil.Params({
613
498
  action: "ChatappPhoneNumberDeregister",
@@ -807,32 +692,49 @@ class Client extends openapi_core_1.default {
807
692
  return await this.chatappVerifyAndRegisterWithOptions(request, runtime);
808
693
  }
809
694
  /**
810
- * The ID of the number.
811
- *
812
- * @remarks
813
- * The status of the phone number.
695
+ * Create Chatflow
814
696
  *
815
- * @param request - CreateChatappMigrationInitiateRequest
697
+ * @param tmpReq - CreateChatFlowRequest
816
698
  * @param runtime - runtime options for this request RuntimeOptions
817
- * @returns CreateChatappMigrationInitiateResponse
699
+ * @returns CreateChatFlowResponse
818
700
  */
819
- async createChatappMigrationInitiateWithOptions(request, runtime) {
820
- request.validate();
701
+ async createChatFlowWithOptions(tmpReq, runtime) {
702
+ tmpReq.validate();
703
+ let request = new $_model.CreateChatFlowShrinkRequest({});
704
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
705
+ if (!$dara.isNull(tmpReq.bizExtend)) {
706
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
707
+ }
821
708
  let query = {};
822
- if (!$dara.isNull(request.countryCode)) {
823
- query["CountryCode"] = request.countryCode;
709
+ if (!$dara.isNull(request.bizCode)) {
710
+ query["BizCode"] = request.bizCode;
824
711
  }
825
- if (!$dara.isNull(request.custSpaceId)) {
826
- query["CustSpaceId"] = request.custSpaceId;
712
+ if (!$dara.isNull(request.bizExtendShrink)) {
713
+ query["BizExtend"] = request.bizExtendShrink;
827
714
  }
828
- if (!$dara.isNull(request.mobileNumber)) {
829
- query["MobileNumber"] = request.mobileNumber;
715
+ if (!$dara.isNull(request.flowTriggerType)) {
716
+ query["FlowTriggerType"] = request.flowTriggerType;
717
+ }
718
+ if (!$dara.isNull(request.ownerId)) {
719
+ query["OwnerId"] = request.ownerId;
720
+ }
721
+ if (!$dara.isNull(request.remark)) {
722
+ query["Remark"] = request.remark;
723
+ }
724
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
725
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
726
+ }
727
+ if (!$dara.isNull(request.resourceOwnerId)) {
728
+ query["ResourceOwnerId"] = request.resourceOwnerId;
729
+ }
730
+ if (!$dara.isNull(request.title)) {
731
+ query["Title"] = request.title;
830
732
  }
831
733
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
832
734
  query: openapi_core_2.OpenApiUtil.query(query),
833
735
  });
834
736
  let params = new openapi_core_2.$OpenApiUtil.Params({
835
- action: "CreateChatappMigrationInitiate",
737
+ action: "CreateChatFlow",
836
738
  version: "2020-06-06",
837
739
  protocol: "HTTPS",
838
740
  pathname: "/",
@@ -842,86 +744,62 @@ class Client extends openapi_core_1.default {
842
744
  reqBodyType: "formData",
843
745
  bodyType: "json",
844
746
  });
845
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatappMigrationInitiateResponse({}));
747
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatFlowResponse({}));
846
748
  }
847
749
  /**
848
- * The ID of the number.
750
+ * Create Chatflow
849
751
  *
850
- * @remarks
851
- * The status of the phone number.
852
- *
853
- * @param request - CreateChatappMigrationInitiateRequest
854
- * @returns CreateChatappMigrationInitiateResponse
752
+ * @param request - CreateChatFlowRequest
753
+ * @returns CreateChatFlowResponse
855
754
  */
856
- async createChatappMigrationInitiate(request) {
755
+ async createChatFlow(request) {
857
756
  let runtime = new $dara.RuntimeOptions({});
858
- return await this.createChatappMigrationInitiateWithOptions(request, runtime);
757
+ return await this.createChatFlowWithOptions(request, runtime);
859
758
  }
860
759
  /**
861
- * The HTTP status code.
862
- * \\\\\\\\* Example: OK. This parameter indicates that the request is successful.
863
- * \\\\\\\\* Other values indicate that the request fails. For more information, see \\\\\\[Error codes]\\\\\\(https://www.alibabacloud.com/help/zh/cams/latest/api-error-codes).
864
- *
865
- * @remarks
866
- * ### [](#qps-)QPS limit
867
- * You can call this operation up to 50 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
760
+ * Import and create flow
868
761
  *
869
- * @param tmpReq - CreateChatappTemplateRequest
762
+ * @param tmpReq - CreateChatFlowByImportRequest
870
763
  * @param runtime - runtime options for this request RuntimeOptions
871
- * @returns CreateChatappTemplateResponse
764
+ * @returns CreateChatFlowByImportResponse
872
765
  */
873
- async createChatappTemplateWithOptions(tmpReq, runtime) {
766
+ async createChatFlowByImportWithOptions(tmpReq, runtime) {
874
767
  tmpReq.validate();
875
- let request = new $_model.CreateChatappTemplateShrinkRequest({});
768
+ let request = new $_model.CreateChatFlowByImportShrinkRequest({});
876
769
  openapi_core_2.OpenApiUtil.convert(tmpReq, request);
877
- if (!$dara.isNull(tmpReq.components)) {
878
- request.componentsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.components, "Components", "json");
879
- }
880
- if (!$dara.isNull(tmpReq.example)) {
881
- request.exampleShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
882
- }
883
- let body = {};
884
- if (!$dara.isNull(request.allowCategoryChange)) {
885
- body["AllowCategoryChange"] = request.allowCategoryChange;
886
- }
887
- if (!$dara.isNull(request.category)) {
888
- body["Category"] = request.category;
889
- }
890
- if (!$dara.isNull(request.categoryChangePaused)) {
891
- body["CategoryChangePaused"] = request.categoryChangePaused;
892
- }
893
- if (!$dara.isNull(request.componentsShrink)) {
894
- body["Components"] = request.componentsShrink;
770
+ if (!$dara.isNull(tmpReq.bizExtend)) {
771
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
895
772
  }
896
- if (!$dara.isNull(request.custSpaceId)) {
897
- body["CustSpaceId"] = request.custSpaceId;
773
+ let query = {};
774
+ if (!$dara.isNull(request.bizCode)) {
775
+ query["BizCode"] = request.bizCode;
898
776
  }
899
- if (!$dara.isNull(request.custWabaId)) {
900
- body["CustWabaId"] = request.custWabaId;
777
+ if (!$dara.isNull(request.bizExtendShrink)) {
778
+ query["BizExtend"] = request.bizExtendShrink;
901
779
  }
902
- if (!$dara.isNull(request.exampleShrink)) {
903
- body["Example"] = request.exampleShrink;
780
+ if (!$dara.isNull(request.flowViewModel)) {
781
+ query["FlowViewModel"] = request.flowViewModel;
904
782
  }
905
- if (!$dara.isNull(request.isvCode)) {
906
- body["IsvCode"] = request.isvCode;
783
+ if (!$dara.isNull(request.ownerId)) {
784
+ query["OwnerId"] = request.ownerId;
907
785
  }
908
- if (!$dara.isNull(request.language)) {
909
- body["Language"] = request.language;
786
+ if (!$dara.isNull(request.remark)) {
787
+ query["Remark"] = request.remark;
910
788
  }
911
- if (!$dara.isNull(request.messageSendTtlSeconds)) {
912
- body["MessageSendTtlSeconds"] = request.messageSendTtlSeconds;
789
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
790
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
913
791
  }
914
- if (!$dara.isNull(request.name)) {
915
- body["Name"] = request.name;
792
+ if (!$dara.isNull(request.resourceOwnerId)) {
793
+ query["ResourceOwnerId"] = request.resourceOwnerId;
916
794
  }
917
- if (!$dara.isNull(request.templateType)) {
918
- body["TemplateType"] = request.templateType;
795
+ if (!$dara.isNull(request.title)) {
796
+ query["Title"] = request.title;
919
797
  }
920
798
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
921
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
799
+ query: openapi_core_2.OpenApiUtil.query(query),
922
800
  });
923
801
  let params = new openapi_core_2.$OpenApiUtil.Params({
924
- action: "CreateChatappTemplate",
802
+ action: "CreateChatFlowByImport",
925
803
  version: "2020-06-06",
926
804
  protocol: "HTTPS",
927
805
  pathname: "/",
@@ -931,56 +809,692 @@ class Client extends openapi_core_1.default {
931
809
  reqBodyType: "formData",
932
810
  bodyType: "json",
933
811
  });
934
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatappTemplateResponse({}));
812
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatFlowByImportResponse({}));
935
813
  }
936
814
  /**
937
- * The HTTP status code.
938
- * \\\\\\\\* Example: OK. This parameter indicates that the request is successful.
939
- * \\\\\\\\* Other values indicate that the request fails. For more information, see \\\\\\[Error codes]\\\\\\(https://www.alibabacloud.com/help/zh/cams/latest/api-error-codes).
940
- *
941
- * @remarks
942
- * ### [](#qps-)QPS limit
943
- * You can call this operation up to 50 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
815
+ * Import and create flow
944
816
  *
945
- * @param request - CreateChatappTemplateRequest
946
- * @returns CreateChatappTemplateResponse
817
+ * @param request - CreateChatFlowByImportRequest
818
+ * @returns CreateChatFlowByImportResponse
947
819
  */
948
- async createChatappTemplate(request) {
820
+ async createChatFlowByImport(request) {
949
821
  let runtime = new $dara.RuntimeOptions({});
950
- return await this.createChatappTemplateWithOptions(request, runtime);
822
+ return await this.createChatFlowByImportWithOptions(request, runtime);
951
823
  }
952
824
  /**
953
- * Creates a Flow.
954
- *
955
- * @remarks
956
- * 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.
825
+ * Create chatFlow log setting
957
826
  *
958
- * @param tmpReq - CreateFlowRequest
827
+ * @param request - CreateChatFlowLogSettingRequest
959
828
  * @param runtime - runtime options for this request RuntimeOptions
960
- * @returns CreateFlowResponse
829
+ * @returns CreateChatFlowLogSettingResponse
961
830
  */
962
- async createFlowWithOptions(tmpReq, runtime) {
963
- tmpReq.validate();
964
- let request = new $_model.CreateFlowShrinkRequest({});
965
- openapi_core_2.OpenApiUtil.convert(tmpReq, request);
966
- if (!$dara.isNull(tmpReq.categories)) {
967
- request.categoriesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.categories, "Categories", "json");
968
- }
969
- let body = {};
831
+ async createChatFlowLogSettingWithOptions(request, runtime) {
832
+ request.validate();
833
+ let query = {};
834
+ if (!$dara.isNull(request.flowCode)) {
835
+ query["FlowCode"] = request.flowCode;
836
+ }
837
+ if (!$dara.isNull(request.ownerId)) {
838
+ query["OwnerId"] = request.ownerId;
839
+ }
840
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
841
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
842
+ }
843
+ if (!$dara.isNull(request.resourceOwnerId)) {
844
+ query["ResourceOwnerId"] = request.resourceOwnerId;
845
+ }
846
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
847
+ query: openapi_core_2.OpenApiUtil.query(query),
848
+ });
849
+ let params = new openapi_core_2.$OpenApiUtil.Params({
850
+ action: "CreateChatFlowLogSetting",
851
+ version: "2020-06-06",
852
+ protocol: "HTTPS",
853
+ pathname: "/",
854
+ method: "POST",
855
+ authType: "AK",
856
+ style: "RPC",
857
+ reqBodyType: "formData",
858
+ bodyType: "json",
859
+ });
860
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatFlowLogSettingResponse({}));
861
+ }
862
+ /**
863
+ * Create chatFlow log setting
864
+ *
865
+ * @param request - CreateChatFlowLogSettingRequest
866
+ * @returns CreateChatFlowLogSettingResponse
867
+ */
868
+ async createChatFlowLogSetting(request) {
869
+ let runtime = new $dara.RuntimeOptions({});
870
+ return await this.createChatFlowLogSettingWithOptions(request, runtime);
871
+ }
872
+ /**
873
+ * The ID of the number.
874
+ *
875
+ * @remarks
876
+ * The status of the phone number.
877
+ *
878
+ * @param request - CreateChatappMigrationInitiateRequest
879
+ * @param runtime - runtime options for this request RuntimeOptions
880
+ * @returns CreateChatappMigrationInitiateResponse
881
+ */
882
+ async createChatappMigrationInitiateWithOptions(request, runtime) {
883
+ request.validate();
884
+ let query = {};
885
+ if (!$dara.isNull(request.countryCode)) {
886
+ query["CountryCode"] = request.countryCode;
887
+ }
888
+ if (!$dara.isNull(request.custSpaceId)) {
889
+ query["CustSpaceId"] = request.custSpaceId;
890
+ }
891
+ if (!$dara.isNull(request.mobileNumber)) {
892
+ query["MobileNumber"] = request.mobileNumber;
893
+ }
894
+ if (!$dara.isNull(request.ownerId)) {
895
+ query["OwnerId"] = request.ownerId;
896
+ }
897
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
898
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
899
+ }
900
+ if (!$dara.isNull(request.resourceOwnerId)) {
901
+ query["ResourceOwnerId"] = request.resourceOwnerId;
902
+ }
903
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
904
+ query: openapi_core_2.OpenApiUtil.query(query),
905
+ });
906
+ let params = new openapi_core_2.$OpenApiUtil.Params({
907
+ action: "CreateChatappMigrationInitiate",
908
+ version: "2020-06-06",
909
+ protocol: "HTTPS",
910
+ pathname: "/",
911
+ method: "POST",
912
+ authType: "AK",
913
+ style: "RPC",
914
+ reqBodyType: "formData",
915
+ bodyType: "json",
916
+ });
917
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatappMigrationInitiateResponse({}));
918
+ }
919
+ /**
920
+ * The ID of the number.
921
+ *
922
+ * @remarks
923
+ * The status of the phone number.
924
+ *
925
+ * @param request - CreateChatappMigrationInitiateRequest
926
+ * @returns CreateChatappMigrationInitiateResponse
927
+ */
928
+ async createChatappMigrationInitiate(request) {
929
+ let runtime = new $dara.RuntimeOptions({});
930
+ return await this.createChatappMigrationInitiateWithOptions(request, runtime);
931
+ }
932
+ /**
933
+ * The HTTP status code.
934
+ * \\\\\\\\* Example: OK. This parameter indicates that the request is successful.
935
+ * \\\\\\\\* Other values indicate that the request fails. For more information, see \\\\\\[Error codes]\\\\\\(https://www.alibabacloud.com/help/zh/cams/latest/api-error-codes).
936
+ *
937
+ * @remarks
938
+ * ### [](#qps-)QPS limit
939
+ * You can call this operation up to 50 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
940
+ *
941
+ * @param tmpReq - CreateChatappTemplateRequest
942
+ * @param runtime - runtime options for this request RuntimeOptions
943
+ * @returns CreateChatappTemplateResponse
944
+ */
945
+ async createChatappTemplateWithOptions(tmpReq, runtime) {
946
+ tmpReq.validate();
947
+ let request = new $_model.CreateChatappTemplateShrinkRequest({});
948
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
949
+ if (!$dara.isNull(tmpReq.components)) {
950
+ request.componentsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.components, "Components", "json");
951
+ }
952
+ if (!$dara.isNull(tmpReq.example)) {
953
+ request.exampleShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.example, "Example", "json");
954
+ }
955
+ let body = {};
956
+ if (!$dara.isNull(request.allowCategoryChange)) {
957
+ body["AllowCategoryChange"] = request.allowCategoryChange;
958
+ }
959
+ if (!$dara.isNull(request.category)) {
960
+ body["Category"] = request.category;
961
+ }
962
+ if (!$dara.isNull(request.categoryChangePaused)) {
963
+ body["CategoryChangePaused"] = request.categoryChangePaused;
964
+ }
965
+ if (!$dara.isNull(request.componentsShrink)) {
966
+ body["Components"] = request.componentsShrink;
967
+ }
968
+ if (!$dara.isNull(request.custSpaceId)) {
969
+ body["CustSpaceId"] = request.custSpaceId;
970
+ }
971
+ if (!$dara.isNull(request.custWabaId)) {
972
+ body["CustWabaId"] = request.custWabaId;
973
+ }
974
+ if (!$dara.isNull(request.exampleShrink)) {
975
+ body["Example"] = request.exampleShrink;
976
+ }
977
+ if (!$dara.isNull(request.isvCode)) {
978
+ body["IsvCode"] = request.isvCode;
979
+ }
980
+ if (!$dara.isNull(request.language)) {
981
+ body["Language"] = request.language;
982
+ }
983
+ if (!$dara.isNull(request.messageSendTtlSeconds)) {
984
+ body["MessageSendTtlSeconds"] = request.messageSendTtlSeconds;
985
+ }
986
+ if (!$dara.isNull(request.name)) {
987
+ body["Name"] = request.name;
988
+ }
989
+ if (!$dara.isNull(request.templateType)) {
990
+ body["TemplateType"] = request.templateType;
991
+ }
992
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
993
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
994
+ });
995
+ let params = new openapi_core_2.$OpenApiUtil.Params({
996
+ action: "CreateChatappTemplate",
997
+ version: "2020-06-06",
998
+ protocol: "HTTPS",
999
+ pathname: "/",
1000
+ method: "POST",
1001
+ authType: "AK",
1002
+ style: "RPC",
1003
+ reqBodyType: "formData",
1004
+ bodyType: "json",
1005
+ });
1006
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateChatappTemplateResponse({}));
1007
+ }
1008
+ /**
1009
+ * The HTTP status code.
1010
+ * \\\\\\\\* Example: OK. This parameter indicates that the request is successful.
1011
+ * \\\\\\\\* Other values indicate that the request fails. For more information, see \\\\\\[Error codes]\\\\\\(https://www.alibabacloud.com/help/zh/cams/latest/api-error-codes).
1012
+ *
1013
+ * @remarks
1014
+ * ### [](#qps-)QPS limit
1015
+ * You can call this operation up to 50 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1016
+ *
1017
+ * @param request - CreateChatappTemplateRequest
1018
+ * @returns CreateChatappTemplateResponse
1019
+ */
1020
+ async createChatappTemplate(request) {
1021
+ let runtime = new $dara.RuntimeOptions({});
1022
+ return await this.createChatappTemplateWithOptions(request, runtime);
1023
+ }
1024
+ /**
1025
+ * Creates a Flow.
1026
+ *
1027
+ * @remarks
1028
+ * 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.
1029
+ *
1030
+ * @param tmpReq - CreateFlowRequest
1031
+ * @param runtime - runtime options for this request RuntimeOptions
1032
+ * @returns CreateFlowResponse
1033
+ */
1034
+ async createFlowWithOptions(tmpReq, runtime) {
1035
+ tmpReq.validate();
1036
+ let request = new $_model.CreateFlowShrinkRequest({});
1037
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1038
+ if (!$dara.isNull(tmpReq.categories)) {
1039
+ request.categoriesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.categories, "Categories", "json");
1040
+ }
1041
+ let query = {};
970
1042
  if (!$dara.isNull(request.categoriesShrink)) {
971
- body["Categories"] = request.categoriesShrink;
1043
+ query["Categories"] = request.categoriesShrink;
1044
+ }
1045
+ if (!$dara.isNull(request.custSpaceId)) {
1046
+ query["CustSpaceId"] = request.custSpaceId;
1047
+ }
1048
+ if (!$dara.isNull(request.flowName)) {
1049
+ query["FlowName"] = request.flowName;
1050
+ }
1051
+ if (!$dara.isNull(request.ownerId)) {
1052
+ query["OwnerId"] = request.ownerId;
1053
+ }
1054
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1055
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1056
+ }
1057
+ if (!$dara.isNull(request.resourceOwnerId)) {
1058
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1059
+ }
1060
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1061
+ query: openapi_core_2.OpenApiUtil.query(query),
1062
+ });
1063
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1064
+ action: "CreateFlow",
1065
+ version: "2020-06-06",
1066
+ protocol: "HTTPS",
1067
+ pathname: "/",
1068
+ method: "POST",
1069
+ authType: "AK",
1070
+ style: "RPC",
1071
+ reqBodyType: "formData",
1072
+ bodyType: "json",
1073
+ });
1074
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateFlowResponse({}));
1075
+ }
1076
+ /**
1077
+ * Creates a Flow.
1078
+ *
1079
+ * @remarks
1080
+ * 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.
1081
+ *
1082
+ * @param request - CreateFlowRequest
1083
+ * @returns CreateFlowResponse
1084
+ */
1085
+ async createFlow(request) {
1086
+ let runtime = new $dara.RuntimeOptions({});
1087
+ return await this.createFlowWithOptions(request, runtime);
1088
+ }
1089
+ /**
1090
+ * CreateFlowVersion
1091
+ *
1092
+ * @param tmpReq - CreateFlowVersionRequest
1093
+ * @param runtime - runtime options for this request RuntimeOptions
1094
+ * @returns CreateFlowVersionResponse
1095
+ */
1096
+ async createFlowVersionWithOptions(tmpReq, runtime) {
1097
+ tmpReq.validate();
1098
+ let request = new $_model.CreateFlowVersionShrinkRequest({});
1099
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1100
+ if (!$dara.isNull(tmpReq.bizExtend)) {
1101
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
1102
+ }
1103
+ let query = {};
1104
+ if (!$dara.isNull(request.bizCode)) {
1105
+ query["BizCode"] = request.bizCode;
1106
+ }
1107
+ if (!$dara.isNull(request.bizExtendShrink)) {
1108
+ query["BizExtend"] = request.bizExtendShrink;
972
1109
  }
1110
+ if (!$dara.isNull(request.flowCode)) {
1111
+ query["FlowCode"] = request.flowCode;
1112
+ }
1113
+ if (!$dara.isNull(request.flowVersionCopyFrom)) {
1114
+ query["FlowVersionCopyFrom"] = request.flowVersionCopyFrom;
1115
+ }
1116
+ if (!$dara.isNull(request.ownerId)) {
1117
+ query["OwnerId"] = request.ownerId;
1118
+ }
1119
+ if (!$dara.isNull(request.remark)) {
1120
+ query["Remark"] = request.remark;
1121
+ }
1122
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1123
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1124
+ }
1125
+ if (!$dara.isNull(request.resourceOwnerId)) {
1126
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1127
+ }
1128
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1129
+ query: openapi_core_2.OpenApiUtil.query(query),
1130
+ });
1131
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1132
+ action: "CreateFlowVersion",
1133
+ version: "2020-06-06",
1134
+ protocol: "HTTPS",
1135
+ pathname: "/",
1136
+ method: "POST",
1137
+ authType: "AK",
1138
+ style: "RPC",
1139
+ reqBodyType: "formData",
1140
+ bodyType: "json",
1141
+ });
1142
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateFlowVersionResponse({}));
1143
+ }
1144
+ /**
1145
+ * CreateFlowVersion
1146
+ *
1147
+ * @param request - CreateFlowVersionRequest
1148
+ * @returns CreateFlowVersionResponse
1149
+ */
1150
+ async createFlowVersion(request) {
1151
+ let runtime = new $dara.RuntimeOptions({});
1152
+ return await this.createFlowVersionWithOptions(request, runtime);
1153
+ }
1154
+ /**
1155
+ * Creates a quick-response (QR) code that contains a message.
1156
+ *
1157
+ * @param request - CreatePhoneMessageQrdlRequest
1158
+ * @param runtime - runtime options for this request RuntimeOptions
1159
+ * @returns CreatePhoneMessageQrdlResponse
1160
+ */
1161
+ async createPhoneMessageQrdlWithOptions(request, runtime) {
1162
+ request.validate();
1163
+ let query = {};
1164
+ if (!$dara.isNull(request.custSpaceId)) {
1165
+ query["CustSpaceId"] = request.custSpaceId;
1166
+ }
1167
+ if (!$dara.isNull(request.generateQrImage)) {
1168
+ query["GenerateQrImage"] = request.generateQrImage;
1169
+ }
1170
+ if (!$dara.isNull(request.ownerId)) {
1171
+ query["OwnerId"] = request.ownerId;
1172
+ }
1173
+ if (!$dara.isNull(request.phoneNumber)) {
1174
+ query["PhoneNumber"] = request.phoneNumber;
1175
+ }
1176
+ if (!$dara.isNull(request.prefilledMessage)) {
1177
+ query["PrefilledMessage"] = request.prefilledMessage;
1178
+ }
1179
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1180
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1181
+ }
1182
+ if (!$dara.isNull(request.resourceOwnerId)) {
1183
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1184
+ }
1185
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1186
+ query: openapi_core_2.OpenApiUtil.query(query),
1187
+ });
1188
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1189
+ action: "CreatePhoneMessageQrdl",
1190
+ version: "2020-06-06",
1191
+ protocol: "HTTPS",
1192
+ pathname: "/",
1193
+ method: "POST",
1194
+ authType: "AK",
1195
+ style: "RPC",
1196
+ reqBodyType: "formData",
1197
+ bodyType: "json",
1198
+ });
1199
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePhoneMessageQrdlResponse({}));
1200
+ }
1201
+ /**
1202
+ * Creates a quick-response (QR) code that contains a message.
1203
+ *
1204
+ * @param request - CreatePhoneMessageQrdlRequest
1205
+ * @returns CreatePhoneMessageQrdlResponse
1206
+ */
1207
+ async createPhoneMessageQrdl(request) {
1208
+ let runtime = new $dara.RuntimeOptions({});
1209
+ return await this.createPhoneMessageQrdlWithOptions(request, runtime);
1210
+ }
1211
+ /**
1212
+ * Delete Process
1213
+ *
1214
+ * @param tmpReq - DeleteChatFlowRequest
1215
+ * @param runtime - runtime options for this request RuntimeOptions
1216
+ * @returns DeleteChatFlowResponse
1217
+ */
1218
+ async deleteChatFlowWithOptions(tmpReq, runtime) {
1219
+ tmpReq.validate();
1220
+ let request = new $_model.DeleteChatFlowShrinkRequest({});
1221
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1222
+ if (!$dara.isNull(tmpReq.bizExtend)) {
1223
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
1224
+ }
1225
+ let query = {};
1226
+ if (!$dara.isNull(request.bizCode)) {
1227
+ query["BizCode"] = request.bizCode;
1228
+ }
1229
+ if (!$dara.isNull(request.bizExtendShrink)) {
1230
+ query["BizExtend"] = request.bizExtendShrink;
1231
+ }
1232
+ if (!$dara.isNull(request.flowCode)) {
1233
+ query["FlowCode"] = request.flowCode;
1234
+ }
1235
+ if (!$dara.isNull(request.ownerId)) {
1236
+ query["OwnerId"] = request.ownerId;
1237
+ }
1238
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1239
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1240
+ }
1241
+ if (!$dara.isNull(request.resourceOwnerId)) {
1242
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1243
+ }
1244
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1245
+ query: openapi_core_2.OpenApiUtil.query(query),
1246
+ });
1247
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1248
+ action: "DeleteChatFlow",
1249
+ version: "2020-06-06",
1250
+ protocol: "HTTPS",
1251
+ pathname: "/",
1252
+ method: "POST",
1253
+ authType: "AK",
1254
+ style: "RPC",
1255
+ reqBodyType: "formData",
1256
+ bodyType: "json",
1257
+ });
1258
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatFlowResponse({}));
1259
+ }
1260
+ /**
1261
+ * Delete Process
1262
+ *
1263
+ * @param request - DeleteChatFlowRequest
1264
+ * @returns DeleteChatFlowResponse
1265
+ */
1266
+ async deleteChatFlow(request) {
1267
+ let runtime = new $dara.RuntimeOptions({});
1268
+ return await this.deleteChatFlowWithOptions(request, runtime);
1269
+ }
1270
+ /**
1271
+ * DeleteChatGroup
1272
+ *
1273
+ * @param request - DeleteChatGroupRequest
1274
+ * @param runtime - runtime options for this request RuntimeOptions
1275
+ * @returns DeleteChatGroupResponse
1276
+ */
1277
+ async deleteChatGroupWithOptions(request, runtime) {
1278
+ request.validate();
1279
+ let query = {};
1280
+ if (!$dara.isNull(request.businessNumber)) {
1281
+ query["BusinessNumber"] = request.businessNumber;
1282
+ }
1283
+ if (!$dara.isNull(request.channelType)) {
1284
+ query["ChannelType"] = request.channelType;
1285
+ }
1286
+ if (!$dara.isNull(request.custSpaceId)) {
1287
+ query["CustSpaceId"] = request.custSpaceId;
1288
+ }
1289
+ if (!$dara.isNull(request.groupId)) {
1290
+ query["GroupId"] = request.groupId;
1291
+ }
1292
+ if (!$dara.isNull(request.ownerId)) {
1293
+ query["OwnerId"] = request.ownerId;
1294
+ }
1295
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1296
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1297
+ }
1298
+ if (!$dara.isNull(request.resourceOwnerId)) {
1299
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1300
+ }
1301
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1302
+ query: openapi_core_2.OpenApiUtil.query(query),
1303
+ });
1304
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1305
+ action: "DeleteChatGroup",
1306
+ version: "2020-06-06",
1307
+ protocol: "HTTPS",
1308
+ pathname: "/",
1309
+ method: "POST",
1310
+ authType: "AK",
1311
+ style: "RPC",
1312
+ reqBodyType: "formData",
1313
+ bodyType: "json",
1314
+ });
1315
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupResponse({}));
1316
+ }
1317
+ /**
1318
+ * DeleteChatGroup
1319
+ *
1320
+ * @param request - DeleteChatGroupRequest
1321
+ * @returns DeleteChatGroupResponse
1322
+ */
1323
+ async deleteChatGroup(request) {
1324
+ let runtime = new $dara.RuntimeOptions({});
1325
+ return await this.deleteChatGroupWithOptions(request, runtime);
1326
+ }
1327
+ /**
1328
+ * DeleteChatGroupInviteLink
1329
+ *
1330
+ * @param request - DeleteChatGroupInviteLinkRequest
1331
+ * @param runtime - runtime options for this request RuntimeOptions
1332
+ * @returns DeleteChatGroupInviteLinkResponse
1333
+ */
1334
+ async deleteChatGroupInviteLinkWithOptions(request, runtime) {
1335
+ request.validate();
1336
+ let query = {};
1337
+ if (!$dara.isNull(request.businessNumber)) {
1338
+ query["BusinessNumber"] = request.businessNumber;
1339
+ }
1340
+ if (!$dara.isNull(request.channelType)) {
1341
+ query["ChannelType"] = request.channelType;
1342
+ }
1343
+ if (!$dara.isNull(request.custSpaceId)) {
1344
+ query["CustSpaceId"] = request.custSpaceId;
1345
+ }
1346
+ if (!$dara.isNull(request.groupId)) {
1347
+ query["GroupId"] = request.groupId;
1348
+ }
1349
+ if (!$dara.isNull(request.ownerId)) {
1350
+ query["OwnerId"] = request.ownerId;
1351
+ }
1352
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1353
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1354
+ }
1355
+ if (!$dara.isNull(request.resourceOwnerId)) {
1356
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1357
+ }
1358
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1359
+ query: openapi_core_2.OpenApiUtil.query(query),
1360
+ });
1361
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1362
+ action: "DeleteChatGroupInviteLink",
1363
+ version: "2020-06-06",
1364
+ protocol: "HTTPS",
1365
+ pathname: "/",
1366
+ method: "POST",
1367
+ authType: "AK",
1368
+ style: "RPC",
1369
+ reqBodyType: "formData",
1370
+ bodyType: "json",
1371
+ });
1372
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupInviteLinkResponse({}));
1373
+ }
1374
+ /**
1375
+ * DeleteChatGroupInviteLink
1376
+ *
1377
+ * @param request - DeleteChatGroupInviteLinkRequest
1378
+ * @returns DeleteChatGroupInviteLinkResponse
1379
+ */
1380
+ async deleteChatGroupInviteLink(request) {
1381
+ let runtime = new $dara.RuntimeOptions({});
1382
+ return await this.deleteChatGroupInviteLinkWithOptions(request, runtime);
1383
+ }
1384
+ /**
1385
+ * DeleteChatGroupParticipants
1386
+ *
1387
+ * @param tmpReq - DeleteChatGroupParticipantsRequest
1388
+ * @param runtime - runtime options for this request RuntimeOptions
1389
+ * @returns DeleteChatGroupParticipantsResponse
1390
+ */
1391
+ async deleteChatGroupParticipantsWithOptions(tmpReq, runtime) {
1392
+ tmpReq.validate();
1393
+ let request = new $_model.DeleteChatGroupParticipantsShrinkRequest({});
1394
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1395
+ if (!$dara.isNull(tmpReq.list)) {
1396
+ request.listShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.list, "List", "json");
1397
+ }
1398
+ let query = {};
1399
+ if (!$dara.isNull(request.businessNumber)) {
1400
+ query["BusinessNumber"] = request.businessNumber;
1401
+ }
1402
+ if (!$dara.isNull(request.channelType)) {
1403
+ query["ChannelType"] = request.channelType;
1404
+ }
1405
+ if (!$dara.isNull(request.custSpaceId)) {
1406
+ query["CustSpaceId"] = request.custSpaceId;
1407
+ }
1408
+ if (!$dara.isNull(request.groupId)) {
1409
+ query["GroupId"] = request.groupId;
1410
+ }
1411
+ if (!$dara.isNull(request.listShrink)) {
1412
+ query["List"] = request.listShrink;
1413
+ }
1414
+ if (!$dara.isNull(request.ownerId)) {
1415
+ query["OwnerId"] = request.ownerId;
1416
+ }
1417
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1418
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1419
+ }
1420
+ if (!$dara.isNull(request.resourceOwnerId)) {
1421
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1422
+ }
1423
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1424
+ query: openapi_core_2.OpenApiUtil.query(query),
1425
+ });
1426
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1427
+ action: "DeleteChatGroupParticipants",
1428
+ version: "2020-06-06",
1429
+ protocol: "HTTPS",
1430
+ pathname: "/",
1431
+ method: "POST",
1432
+ authType: "AK",
1433
+ style: "RPC",
1434
+ reqBodyType: "formData",
1435
+ bodyType: "json",
1436
+ });
1437
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupParticipantsResponse({}));
1438
+ }
1439
+ /**
1440
+ * DeleteChatGroupParticipants
1441
+ *
1442
+ * @param request - DeleteChatGroupParticipantsRequest
1443
+ * @returns DeleteChatGroupParticipantsResponse
1444
+ */
1445
+ async deleteChatGroupParticipants(request) {
1446
+ let runtime = new $dara.RuntimeOptions({});
1447
+ return await this.deleteChatGroupParticipantsWithOptions(request, runtime);
1448
+ }
1449
+ /**
1450
+ * Deletes a message template.
1451
+ *
1452
+ * @remarks
1453
+ * ### QPS limit
1454
+ * You can call this operation up to five times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1455
+ *
1456
+ * @param request - DeleteChatappTemplateRequest
1457
+ * @param runtime - runtime options for this request RuntimeOptions
1458
+ * @returns DeleteChatappTemplateResponse
1459
+ */
1460
+ async deleteChatappTemplateWithOptions(request, runtime) {
1461
+ request.validate();
1462
+ let query = {};
973
1463
  if (!$dara.isNull(request.custSpaceId)) {
974
- body["CustSpaceId"] = request.custSpaceId;
1464
+ query["CustSpaceId"] = request.custSpaceId;
975
1465
  }
976
- if (!$dara.isNull(request.flowName)) {
977
- body["FlowName"] = request.flowName;
1466
+ if (!$dara.isNull(request.custWabaId)) {
1467
+ query["CustWabaId"] = request.custWabaId;
1468
+ }
1469
+ if (!$dara.isNull(request.isvCode)) {
1470
+ query["IsvCode"] = request.isvCode;
1471
+ }
1472
+ if (!$dara.isNull(request.language)) {
1473
+ query["Language"] = request.language;
1474
+ }
1475
+ if (!$dara.isNull(request.ownerId)) {
1476
+ query["OwnerId"] = request.ownerId;
1477
+ }
1478
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1479
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1480
+ }
1481
+ if (!$dara.isNull(request.resourceOwnerId)) {
1482
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1483
+ }
1484
+ if (!$dara.isNull(request.templateCode)) {
1485
+ query["TemplateCode"] = request.templateCode;
1486
+ }
1487
+ if (!$dara.isNull(request.templateName)) {
1488
+ query["TemplateName"] = request.templateName;
1489
+ }
1490
+ if (!$dara.isNull(request.templateType)) {
1491
+ query["TemplateType"] = request.templateType;
978
1492
  }
979
1493
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
980
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
1494
+ query: openapi_core_2.OpenApiUtil.query(query),
981
1495
  });
982
1496
  let params = new openapi_core_2.$OpenApiUtil.Params({
983
- action: "CreateFlow",
1497
+ action: "DeleteChatappTemplate",
984
1498
  version: "2020-06-06",
985
1499
  protocol: "HTTPS",
986
1500
  pathname: "/",
@@ -990,48 +1504,55 @@ class Client extends openapi_core_1.default {
990
1504
  reqBodyType: "formData",
991
1505
  bodyType: "json",
992
1506
  });
993
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateFlowResponse({}));
1507
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatappTemplateResponse({}));
994
1508
  }
995
1509
  /**
996
- * Creates a Flow.
1510
+ * Deletes a message template.
997
1511
  *
998
1512
  * @remarks
999
- * You can call this operation up to five times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1513
+ * ### QPS limit
1514
+ * You can call this operation up to five times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1000
1515
  *
1001
- * @param request - CreateFlowRequest
1002
- * @returns CreateFlowResponse
1516
+ * @param request - DeleteChatappTemplateRequest
1517
+ * @returns DeleteChatappTemplateResponse
1003
1518
  */
1004
- async createFlow(request) {
1519
+ async deleteChatappTemplate(request) {
1005
1520
  let runtime = new $dara.RuntimeOptions({});
1006
- return await this.createFlowWithOptions(request, runtime);
1521
+ return await this.deleteChatappTemplateWithOptions(request, runtime);
1007
1522
  }
1008
1523
  /**
1009
- * Creates a quick-response (QR) code that contains a message.
1524
+ * Deletes a Flow. Only Flows in the DRAFT state can be deleted.
1010
1525
  *
1011
- * @param request - CreatePhoneMessageQrdlRequest
1526
+ * @remarks
1527
+ * 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.
1528
+ *
1529
+ * @param request - DeleteFlowRequest
1012
1530
  * @param runtime - runtime options for this request RuntimeOptions
1013
- * @returns CreatePhoneMessageQrdlResponse
1531
+ * @returns DeleteFlowResponse
1014
1532
  */
1015
- async createPhoneMessageQrdlWithOptions(request, runtime) {
1533
+ async deleteFlowWithOptions(request, runtime) {
1016
1534
  request.validate();
1017
- let body = {};
1535
+ let query = {};
1018
1536
  if (!$dara.isNull(request.custSpaceId)) {
1019
- body["CustSpaceId"] = request.custSpaceId;
1537
+ query["CustSpaceId"] = request.custSpaceId;
1020
1538
  }
1021
- if (!$dara.isNull(request.generateQrImage)) {
1022
- body["GenerateQrImage"] = request.generateQrImage;
1539
+ if (!$dara.isNull(request.flowId)) {
1540
+ query["FlowId"] = request.flowId;
1023
1541
  }
1024
- if (!$dara.isNull(request.phoneNumber)) {
1025
- body["PhoneNumber"] = request.phoneNumber;
1542
+ if (!$dara.isNull(request.ownerId)) {
1543
+ query["OwnerId"] = request.ownerId;
1026
1544
  }
1027
- if (!$dara.isNull(request.prefilledMessage)) {
1028
- body["PrefilledMessage"] = request.prefilledMessage;
1545
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1546
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1547
+ }
1548
+ if (!$dara.isNull(request.resourceOwnerId)) {
1549
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1029
1550
  }
1030
1551
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1031
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
1552
+ query: openapi_core_2.OpenApiUtil.query(query),
1032
1553
  });
1033
1554
  let params = new openapi_core_2.$OpenApiUtil.Params({
1034
- action: "CreatePhoneMessageQrdl",
1555
+ action: "DeleteFlow",
1035
1556
  version: "2020-06-06",
1036
1557
  protocol: "HTTPS",
1037
1558
  pathname: "/",
@@ -1041,39 +1562,47 @@ class Client extends openapi_core_1.default {
1041
1562
  reqBodyType: "formData",
1042
1563
  bodyType: "json",
1043
1564
  });
1044
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePhoneMessageQrdlResponse({}));
1565
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFlowResponse({}));
1045
1566
  }
1046
1567
  /**
1047
- * Creates a quick-response (QR) code that contains a message.
1568
+ * Deletes a Flow. Only Flows in the DRAFT state can be deleted.
1048
1569
  *
1049
- * @param request - CreatePhoneMessageQrdlRequest
1050
- * @returns CreatePhoneMessageQrdlResponse
1570
+ * @remarks
1571
+ * 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.
1572
+ *
1573
+ * @param request - DeleteFlowRequest
1574
+ * @returns DeleteFlowResponse
1051
1575
  */
1052
- async createPhoneMessageQrdl(request) {
1576
+ async deleteFlow(request) {
1053
1577
  let runtime = new $dara.RuntimeOptions({});
1054
- return await this.createPhoneMessageQrdlWithOptions(request, runtime);
1578
+ return await this.deleteFlowWithOptions(request, runtime);
1055
1579
  }
1056
1580
  /**
1057
- * DeleteChatGroup
1581
+ * Delete Flow Version
1058
1582
  *
1059
- * @param request - DeleteChatGroupRequest
1583
+ * @param tmpReq - DeleteFlowVersionRequest
1060
1584
  * @param runtime - runtime options for this request RuntimeOptions
1061
- * @returns DeleteChatGroupResponse
1585
+ * @returns DeleteFlowVersionResponse
1062
1586
  */
1063
- async deleteChatGroupWithOptions(request, runtime) {
1064
- request.validate();
1587
+ async deleteFlowVersionWithOptions(tmpReq, runtime) {
1588
+ tmpReq.validate();
1589
+ let request = new $_model.DeleteFlowVersionShrinkRequest({});
1590
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1591
+ if (!$dara.isNull(tmpReq.bizExtend)) {
1592
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
1593
+ }
1065
1594
  let query = {};
1066
- if (!$dara.isNull(request.businessNumber)) {
1067
- query["BusinessNumber"] = request.businessNumber;
1595
+ if (!$dara.isNull(request.bizCode)) {
1596
+ query["BizCode"] = request.bizCode;
1068
1597
  }
1069
- if (!$dara.isNull(request.channelType)) {
1070
- query["ChannelType"] = request.channelType;
1598
+ if (!$dara.isNull(request.bizExtendShrink)) {
1599
+ query["BizExtend"] = request.bizExtendShrink;
1071
1600
  }
1072
- if (!$dara.isNull(request.custSpaceId)) {
1073
- query["CustSpaceId"] = request.custSpaceId;
1601
+ if (!$dara.isNull(request.flowCode)) {
1602
+ query["FlowCode"] = request.flowCode;
1074
1603
  }
1075
- if (!$dara.isNull(request.groupId)) {
1076
- query["GroupId"] = request.groupId;
1604
+ if (!$dara.isNull(request.flowVersion)) {
1605
+ query["FlowVersion"] = request.flowVersion;
1077
1606
  }
1078
1607
  if (!$dara.isNull(request.ownerId)) {
1079
1608
  query["OwnerId"] = request.ownerId;
@@ -1088,7 +1617,7 @@ class Client extends openapi_core_1.default {
1088
1617
  query: openapi_core_2.OpenApiUtil.query(query),
1089
1618
  });
1090
1619
  let params = new openapi_core_2.$OpenApiUtil.Params({
1091
- action: "DeleteChatGroup",
1620
+ action: "DeleteFlowVersion",
1092
1621
  version: "2020-06-06",
1093
1622
  protocol: "HTTPS",
1094
1623
  pathname: "/",
@@ -1098,39 +1627,87 @@ class Client extends openapi_core_1.default {
1098
1627
  reqBodyType: "formData",
1099
1628
  bodyType: "json",
1100
1629
  });
1101
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupResponse({}));
1630
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFlowVersionResponse({}));
1102
1631
  }
1103
1632
  /**
1104
- * DeleteChatGroup
1633
+ * Delete Flow Version
1105
1634
  *
1106
- * @param request - DeleteChatGroupRequest
1107
- * @returns DeleteChatGroupResponse
1635
+ * @param request - DeleteFlowVersionRequest
1636
+ * @returns DeleteFlowVersionResponse
1108
1637
  */
1109
- async deleteChatGroup(request) {
1638
+ async deleteFlowVersion(request) {
1110
1639
  let runtime = new $dara.RuntimeOptions({});
1111
- return await this.deleteChatGroupWithOptions(request, runtime);
1640
+ return await this.deleteFlowVersionWithOptions(request, runtime);
1112
1641
  }
1113
1642
  /**
1114
- * DeleteChatGroupInviteLink
1643
+ * Deletes a quick-response (QR) code that contains a message.
1115
1644
  *
1116
- * @param request - DeleteChatGroupInviteLinkRequest
1645
+ * @param request - DeletePhoneMessageQrdlRequest
1117
1646
  * @param runtime - runtime options for this request RuntimeOptions
1118
- * @returns DeleteChatGroupInviteLinkResponse
1647
+ * @returns DeletePhoneMessageQrdlResponse
1119
1648
  */
1120
- async deleteChatGroupInviteLinkWithOptions(request, runtime) {
1649
+ async deletePhoneMessageQrdlWithOptions(request, runtime) {
1121
1650
  request.validate();
1122
1651
  let query = {};
1123
- if (!$dara.isNull(request.businessNumber)) {
1124
- query["BusinessNumber"] = request.businessNumber;
1652
+ if (!$dara.isNull(request.custSpaceId)) {
1653
+ query["CustSpaceId"] = request.custSpaceId;
1125
1654
  }
1126
- if (!$dara.isNull(request.channelType)) {
1127
- query["ChannelType"] = request.channelType;
1655
+ if (!$dara.isNull(request.ownerId)) {
1656
+ query["OwnerId"] = request.ownerId;
1657
+ }
1658
+ if (!$dara.isNull(request.phoneNumber)) {
1659
+ query["PhoneNumber"] = request.phoneNumber;
1660
+ }
1661
+ if (!$dara.isNull(request.qrdlCode)) {
1662
+ query["QrdlCode"] = request.qrdlCode;
1663
+ }
1664
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1665
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1666
+ }
1667
+ if (!$dara.isNull(request.resourceOwnerId)) {
1668
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1128
1669
  }
1670
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1671
+ query: openapi_core_2.OpenApiUtil.query(query),
1672
+ });
1673
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1674
+ action: "DeletePhoneMessageQrdl",
1675
+ version: "2020-06-06",
1676
+ protocol: "HTTPS",
1677
+ pathname: "/",
1678
+ method: "POST",
1679
+ authType: "AK",
1680
+ style: "RPC",
1681
+ reqBodyType: "formData",
1682
+ bodyType: "json",
1683
+ });
1684
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeletePhoneMessageQrdlResponse({}));
1685
+ }
1686
+ /**
1687
+ * Deletes a quick-response (QR) code that contains a message.
1688
+ *
1689
+ * @param request - DeletePhoneMessageQrdlRequest
1690
+ * @returns DeletePhoneMessageQrdlResponse
1691
+ */
1692
+ async deletePhoneMessageQrdl(request) {
1693
+ let runtime = new $dara.RuntimeOptions({});
1694
+ return await this.deletePhoneMessageQrdlWithOptions(request, runtime);
1695
+ }
1696
+ /**
1697
+ * Deprecates a Flow.
1698
+ *
1699
+ * @param request - DeprecateFlowRequest
1700
+ * @param runtime - runtime options for this request RuntimeOptions
1701
+ * @returns DeprecateFlowResponse
1702
+ */
1703
+ async deprecateFlowWithOptions(request, runtime) {
1704
+ request.validate();
1705
+ let query = {};
1129
1706
  if (!$dara.isNull(request.custSpaceId)) {
1130
1707
  query["CustSpaceId"] = request.custSpaceId;
1131
1708
  }
1132
- if (!$dara.isNull(request.groupId)) {
1133
- query["GroupId"] = request.groupId;
1709
+ if (!$dara.isNull(request.flowId)) {
1710
+ query["FlowId"] = request.flowId;
1134
1711
  }
1135
1712
  if (!$dara.isNull(request.ownerId)) {
1136
1713
  query["OwnerId"] = request.ownerId;
@@ -1145,7 +1722,7 @@ class Client extends openapi_core_1.default {
1145
1722
  query: openapi_core_2.OpenApiUtil.query(query),
1146
1723
  });
1147
1724
  let params = new openapi_core_2.$OpenApiUtil.Params({
1148
- action: "DeleteChatGroupInviteLink",
1725
+ action: "DeprecateFlow",
1149
1726
  version: "2020-06-06",
1150
1727
  protocol: "HTTPS",
1151
1728
  pathname: "/",
@@ -1155,47 +1732,36 @@ class Client extends openapi_core_1.default {
1155
1732
  reqBodyType: "formData",
1156
1733
  bodyType: "json",
1157
1734
  });
1158
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupInviteLinkResponse({}));
1735
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeprecateFlowResponse({}));
1159
1736
  }
1160
1737
  /**
1161
- * DeleteChatGroupInviteLink
1738
+ * Deprecates a Flow.
1162
1739
  *
1163
- * @param request - DeleteChatGroupInviteLinkRequest
1164
- * @returns DeleteChatGroupInviteLinkResponse
1740
+ * @param request - DeprecateFlowRequest
1741
+ * @returns DeprecateFlowResponse
1165
1742
  */
1166
- async deleteChatGroupInviteLink(request) {
1743
+ async deprecateFlow(request) {
1167
1744
  let runtime = new $dara.RuntimeOptions({});
1168
- return await this.deleteChatGroupInviteLinkWithOptions(request, runtime);
1745
+ return await this.deprecateFlowWithOptions(request, runtime);
1169
1746
  }
1170
1747
  /**
1171
- * DeleteChatGroupParticipants
1748
+ * Enables the statistics on the metrics that are related to WhatsApp.
1172
1749
  *
1173
- * @param tmpReq - DeleteChatGroupParticipantsRequest
1750
+ * @remarks
1751
+ * 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.
1752
+ *
1753
+ * @param request - EnableWhatsappROIMetricRequest
1174
1754
  * @param runtime - runtime options for this request RuntimeOptions
1175
- * @returns DeleteChatGroupParticipantsResponse
1755
+ * @returns EnableWhatsappROIMetricResponse
1176
1756
  */
1177
- async deleteChatGroupParticipantsWithOptions(tmpReq, runtime) {
1178
- tmpReq.validate();
1179
- let request = new $_model.DeleteChatGroupParticipantsShrinkRequest({});
1180
- openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1181
- if (!$dara.isNull(tmpReq.list)) {
1182
- request.listShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.list, "List", "json");
1183
- }
1757
+ async enableWhatsappROIMetricWithOptions(request, runtime) {
1758
+ request.validate();
1184
1759
  let query = {};
1185
- if (!$dara.isNull(request.businessNumber)) {
1186
- query["BusinessNumber"] = request.businessNumber;
1187
- }
1188
- if (!$dara.isNull(request.channelType)) {
1189
- query["ChannelType"] = request.channelType;
1190
- }
1191
1760
  if (!$dara.isNull(request.custSpaceId)) {
1192
1761
  query["CustSpaceId"] = request.custSpaceId;
1193
1762
  }
1194
- if (!$dara.isNull(request.groupId)) {
1195
- query["GroupId"] = request.groupId;
1196
- }
1197
- if (!$dara.isNull(request.listShrink)) {
1198
- query["List"] = request.listShrink;
1763
+ if (!$dara.isNull(request.isvCode)) {
1764
+ query["IsvCode"] = request.isvCode;
1199
1765
  }
1200
1766
  if (!$dara.isNull(request.ownerId)) {
1201
1767
  query["OwnerId"] = request.ownerId;
@@ -1210,7 +1776,7 @@ class Client extends openapi_core_1.default {
1210
1776
  query: openapi_core_2.OpenApiUtil.query(query),
1211
1777
  });
1212
1778
  let params = new openapi_core_2.$OpenApiUtil.Params({
1213
- action: "DeleteChatGroupParticipants",
1779
+ action: "EnableWhatsappROIMetric",
1214
1780
  version: "2020-06-06",
1215
1781
  protocol: "HTTPS",
1216
1782
  pathname: "/",
@@ -1220,67 +1786,68 @@ class Client extends openapi_core_1.default {
1220
1786
  reqBodyType: "formData",
1221
1787
  bodyType: "json",
1222
1788
  });
1223
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatGroupParticipantsResponse({}));
1789
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableWhatsappROIMetricResponse({}));
1224
1790
  }
1225
1791
  /**
1226
- * DeleteChatGroupParticipants
1792
+ * Enables the statistics on the metrics that are related to WhatsApp.
1227
1793
  *
1228
- * @param request - DeleteChatGroupParticipantsRequest
1229
- * @returns DeleteChatGroupParticipantsResponse
1794
+ * @remarks
1795
+ * 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.
1796
+ *
1797
+ * @param request - EnableWhatsappROIMetricRequest
1798
+ * @returns EnableWhatsappROIMetricResponse
1230
1799
  */
1231
- async deleteChatGroupParticipants(request) {
1800
+ async enableWhatsappROIMetric(request) {
1232
1801
  let runtime = new $dara.RuntimeOptions({});
1233
- return await this.deleteChatGroupParticipantsWithOptions(request, runtime);
1802
+ return await this.enableWhatsappROIMetricWithOptions(request, runtime);
1234
1803
  }
1235
1804
  /**
1236
- * Deletes a message template.
1805
+ * Bind phone numbers to flow
1237
1806
  *
1238
- * @remarks
1239
- * ### QPS limit
1240
- * You can call this operation up to five times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1241
- *
1242
- * @param request - DeleteChatappTemplateRequest
1807
+ * @param tmpReq - FlowBindPhoneRequest
1243
1808
  * @param runtime - runtime options for this request RuntimeOptions
1244
- * @returns DeleteChatappTemplateResponse
1809
+ * @returns FlowBindPhoneResponse
1245
1810
  */
1246
- async deleteChatappTemplateWithOptions(request, runtime) {
1247
- request.validate();
1811
+ async flowBindPhoneWithOptions(tmpReq, runtime) {
1812
+ tmpReq.validate();
1813
+ let request = new $_model.FlowBindPhoneShrinkRequest({});
1814
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1815
+ if (!$dara.isNull(tmpReq.phoneNumbers)) {
1816
+ request.phoneNumbersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
1817
+ }
1248
1818
  let query = {};
1249
- if (!$dara.isNull(request.custSpaceId)) {
1250
- query["CustSpaceId"] = request.custSpaceId;
1819
+ if (!$dara.isNull(request.channelCode)) {
1820
+ query["ChannelCode"] = request.channelCode;
1251
1821
  }
1252
- if (!$dara.isNull(request.custWabaId)) {
1253
- query["CustWabaId"] = request.custWabaId;
1822
+ if (!$dara.isNull(request.channelType)) {
1823
+ query["ChannelType"] = request.channelType;
1254
1824
  }
1255
- if (!$dara.isNull(request.isvCode)) {
1256
- query["IsvCode"] = request.isvCode;
1825
+ if (!$dara.isNull(request.flowCode)) {
1826
+ query["FlowCode"] = request.flowCode;
1257
1827
  }
1258
- if (!$dara.isNull(request.language)) {
1259
- query["Language"] = request.language;
1828
+ if (!$dara.isNull(request.flowVersion)) {
1829
+ query["FlowVersion"] = request.flowVersion;
1260
1830
  }
1261
1831
  if (!$dara.isNull(request.ownerId)) {
1262
1832
  query["OwnerId"] = request.ownerId;
1263
1833
  }
1834
+ if (!$dara.isNull(request.phoneNumbersShrink)) {
1835
+ query["PhoneNumbers"] = request.phoneNumbersShrink;
1836
+ }
1264
1837
  if (!$dara.isNull(request.resourceOwnerAccount)) {
1265
1838
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1266
1839
  }
1267
1840
  if (!$dara.isNull(request.resourceOwnerId)) {
1268
1841
  query["ResourceOwnerId"] = request.resourceOwnerId;
1269
1842
  }
1270
- if (!$dara.isNull(request.templateCode)) {
1271
- query["TemplateCode"] = request.templateCode;
1272
- }
1273
- if (!$dara.isNull(request.templateName)) {
1274
- query["TemplateName"] = request.templateName;
1275
- }
1276
- if (!$dara.isNull(request.templateType)) {
1277
- query["TemplateType"] = request.templateType;
1843
+ if (!$dara.isNull(request.wabaId)) {
1844
+ query["WabaId"] = request.wabaId;
1278
1845
  }
1279
1846
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1280
1847
  query: openapi_core_2.OpenApiUtil.query(query),
1281
1848
  });
1282
1849
  let params = new openapi_core_2.$OpenApiUtil.Params({
1283
- action: "DeleteChatappTemplate",
1850
+ action: "FlowBindPhone",
1284
1851
  version: "2020-06-06",
1285
1852
  protocol: "HTTPS",
1286
1853
  pathname: "/",
@@ -1290,46 +1857,65 @@ class Client extends openapi_core_1.default {
1290
1857
  reqBodyType: "formData",
1291
1858
  bodyType: "json",
1292
1859
  });
1293
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteChatappTemplateResponse({}));
1860
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.FlowBindPhoneResponse({}));
1294
1861
  }
1295
1862
  /**
1296
- * Deletes a message template.
1297
- *
1298
- * @remarks
1299
- * ### QPS limit
1300
- * You can call this operation up to five times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
1863
+ * Bind phone numbers to flow
1301
1864
  *
1302
- * @param request - DeleteChatappTemplateRequest
1303
- * @returns DeleteChatappTemplateResponse
1865
+ * @param request - FlowBindPhoneRequest
1866
+ * @returns FlowBindPhoneResponse
1304
1867
  */
1305
- async deleteChatappTemplate(request) {
1868
+ async flowBindPhone(request) {
1306
1869
  let runtime = new $dara.RuntimeOptions({});
1307
- return await this.deleteChatappTemplateWithOptions(request, runtime);
1870
+ return await this.flowBindPhoneWithOptions(request, runtime);
1308
1871
  }
1309
1872
  /**
1310
- * Deletes a Flow. Only Flows in the DRAFT state can be deleted.
1311
- *
1312
- * @remarks
1313
- * 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.
1873
+ * Rebind phone number for flow
1314
1874
  *
1315
- * @param request - DeleteFlowRequest
1875
+ * @param tmpReq - FlowRebindPhoneRequest
1316
1876
  * @param runtime - runtime options for this request RuntimeOptions
1317
- * @returns DeleteFlowResponse
1877
+ * @returns FlowRebindPhoneResponse
1318
1878
  */
1319
- async deleteFlowWithOptions(request, runtime) {
1320
- request.validate();
1321
- let body = {};
1322
- if (!$dara.isNull(request.custSpaceId)) {
1323
- body["CustSpaceId"] = request.custSpaceId;
1879
+ async flowRebindPhoneWithOptions(tmpReq, runtime) {
1880
+ tmpReq.validate();
1881
+ let request = new $_model.FlowRebindPhoneShrinkRequest({});
1882
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1883
+ if (!$dara.isNull(tmpReq.phoneNumbers)) {
1884
+ request.phoneNumbersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
1324
1885
  }
1325
- if (!$dara.isNull(request.flowId)) {
1326
- body["FlowId"] = request.flowId;
1886
+ let query = {};
1887
+ if (!$dara.isNull(request.channelCode)) {
1888
+ query["ChannelCode"] = request.channelCode;
1889
+ }
1890
+ if (!$dara.isNull(request.channelType)) {
1891
+ query["ChannelType"] = request.channelType;
1892
+ }
1893
+ if (!$dara.isNull(request.flowCode)) {
1894
+ query["FlowCode"] = request.flowCode;
1895
+ }
1896
+ if (!$dara.isNull(request.flowVersion)) {
1897
+ query["FlowVersion"] = request.flowVersion;
1898
+ }
1899
+ if (!$dara.isNull(request.ownerId)) {
1900
+ query["OwnerId"] = request.ownerId;
1901
+ }
1902
+ if (!$dara.isNull(request.phoneNumbersShrink)) {
1903
+ query["PhoneNumbers"] = request.phoneNumbersShrink;
1904
+ }
1905
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1906
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1907
+ }
1908
+ if (!$dara.isNull(request.resourceOwnerId)) {
1909
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1910
+ }
1911
+ if (!$dara.isNull(request.wabaId)) {
1912
+ query["WabaId"] = request.wabaId;
1327
1913
  }
1328
1914
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1329
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
1915
+ query: openapi_core_2.OpenApiUtil.query(query),
1330
1916
  });
1331
1917
  let params = new openapi_core_2.$OpenApiUtil.Params({
1332
- action: "DeleteFlow",
1918
+ action: "FlowRebindPhone",
1333
1919
  version: "2020-06-06",
1334
1920
  protocol: "HTTPS",
1335
1921
  pathname: "/",
@@ -1339,45 +1925,59 @@ class Client extends openapi_core_1.default {
1339
1925
  reqBodyType: "formData",
1340
1926
  bodyType: "json",
1341
1927
  });
1342
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteFlowResponse({}));
1928
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.FlowRebindPhoneResponse({}));
1343
1929
  }
1344
1930
  /**
1345
- * Deletes a Flow. Only Flows in the DRAFT state can be deleted.
1346
- *
1347
- * @remarks
1348
- * 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.
1931
+ * Rebind phone number for flow
1349
1932
  *
1350
- * @param request - DeleteFlowRequest
1351
- * @returns DeleteFlowResponse
1933
+ * @param request - FlowRebindPhoneRequest
1934
+ * @returns FlowRebindPhoneResponse
1352
1935
  */
1353
- async deleteFlow(request) {
1936
+ async flowRebindPhone(request) {
1354
1937
  let runtime = new $dara.RuntimeOptions({});
1355
- return await this.deleteFlowWithOptions(request, runtime);
1938
+ return await this.flowRebindPhoneWithOptions(request, runtime);
1356
1939
  }
1357
1940
  /**
1358
- * Deletes a quick-response (QR) code that contains a message.
1941
+ * Unbind phone number from flow
1359
1942
  *
1360
- * @param request - DeletePhoneMessageQrdlRequest
1943
+ * @param tmpReq - FlowUnbindPhoneRequest
1361
1944
  * @param runtime - runtime options for this request RuntimeOptions
1362
- * @returns DeletePhoneMessageQrdlResponse
1945
+ * @returns FlowUnbindPhoneResponse
1363
1946
  */
1364
- async deletePhoneMessageQrdlWithOptions(request, runtime) {
1365
- request.validate();
1366
- let body = {};
1367
- if (!$dara.isNull(request.custSpaceId)) {
1368
- body["CustSpaceId"] = request.custSpaceId;
1947
+ async flowUnbindPhoneWithOptions(tmpReq, runtime) {
1948
+ tmpReq.validate();
1949
+ let request = new $_model.FlowUnbindPhoneShrinkRequest({});
1950
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
1951
+ if (!$dara.isNull(tmpReq.phoneNumbers)) {
1952
+ request.phoneNumbersShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.phoneNumbers, "PhoneNumbers", "json");
1369
1953
  }
1370
- if (!$dara.isNull(request.phoneNumber)) {
1371
- body["PhoneNumber"] = request.phoneNumber;
1954
+ let query = {};
1955
+ if (!$dara.isNull(request.channelType)) {
1956
+ query["ChannelType"] = request.channelType;
1372
1957
  }
1373
- if (!$dara.isNull(request.qrdlCode)) {
1374
- body["QrdlCode"] = request.qrdlCode;
1958
+ if (!$dara.isNull(request.flowCode)) {
1959
+ query["FlowCode"] = request.flowCode;
1960
+ }
1961
+ if (!$dara.isNull(request.flowVersion)) {
1962
+ query["FlowVersion"] = request.flowVersion;
1963
+ }
1964
+ if (!$dara.isNull(request.ownerId)) {
1965
+ query["OwnerId"] = request.ownerId;
1966
+ }
1967
+ if (!$dara.isNull(request.phoneNumbersShrink)) {
1968
+ query["PhoneNumbers"] = request.phoneNumbersShrink;
1969
+ }
1970
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
1971
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
1972
+ }
1973
+ if (!$dara.isNull(request.resourceOwnerId)) {
1974
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1375
1975
  }
1376
1976
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1377
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
1977
+ query: openapi_core_2.OpenApiUtil.query(query),
1378
1978
  });
1379
1979
  let params = new openapi_core_2.$OpenApiUtil.Params({
1380
- action: "DeletePhoneMessageQrdl",
1980
+ action: "FlowUnbindPhone",
1381
1981
  version: "2020-06-06",
1382
1982
  protocol: "HTTPS",
1383
1983
  pathname: "/",
@@ -1387,39 +1987,74 @@ class Client extends openapi_core_1.default {
1387
1987
  reqBodyType: "formData",
1388
1988
  bodyType: "json",
1389
1989
  });
1390
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeletePhoneMessageQrdlResponse({}));
1990
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.FlowUnbindPhoneResponse({}));
1391
1991
  }
1392
1992
  /**
1393
- * Deletes a quick-response (QR) code that contains a message.
1993
+ * Unbind phone number from flow
1394
1994
  *
1395
- * @param request - DeletePhoneMessageQrdlRequest
1396
- * @returns DeletePhoneMessageQrdlResponse
1995
+ * @param request - FlowUnbindPhoneRequest
1996
+ * @returns FlowUnbindPhoneResponse
1397
1997
  */
1398
- async deletePhoneMessageQrdl(request) {
1998
+ async flowUnbindPhone(request) {
1399
1999
  let runtime = new $dara.RuntimeOptions({});
1400
- return await this.deletePhoneMessageQrdlWithOptions(request, runtime);
2000
+ return await this.flowUnbindPhoneWithOptions(request, runtime);
1401
2001
  }
1402
2002
  /**
1403
- * Deprecates a Flow.
2003
+ * Get ChatFlow Runtime Data
1404
2004
  *
1405
- * @param request - DeprecateFlowRequest
2005
+ * @param tmpReq - GetChatFlowMetricRequest
1406
2006
  * @param runtime - runtime options for this request RuntimeOptions
1407
- * @returns DeprecateFlowResponse
2007
+ * @returns GetChatFlowMetricResponse
1408
2008
  */
1409
- async deprecateFlowWithOptions(request, runtime) {
1410
- request.validate();
1411
- let body = {};
1412
- if (!$dara.isNull(request.custSpaceId)) {
1413
- body["CustSpaceId"] = request.custSpaceId;
2009
+ async getChatFlowMetricWithOptions(tmpReq, runtime) {
2010
+ tmpReq.validate();
2011
+ let request = new $_model.GetChatFlowMetricShrinkRequest({});
2012
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
2013
+ if (!$dara.isNull(tmpReq.bizExtend)) {
2014
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
1414
2015
  }
1415
- if (!$dara.isNull(request.flowId)) {
1416
- body["FlowId"] = request.flowId;
2016
+ if (!$dara.isNull(tmpReq.metricParam)) {
2017
+ request.metricParamShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.metricParam, "MetricParam", "json");
2018
+ }
2019
+ let query = {};
2020
+ if (!$dara.isNull(request.bizCode)) {
2021
+ query["BizCode"] = request.bizCode;
2022
+ }
2023
+ if (!$dara.isNull(request.bizExtendShrink)) {
2024
+ query["BizExtend"] = request.bizExtendShrink;
2025
+ }
2026
+ if (!$dara.isNull(request.flowCode)) {
2027
+ query["FlowCode"] = request.flowCode;
2028
+ }
2029
+ if (!$dara.isNull(request.flowVersion)) {
2030
+ query["FlowVersion"] = request.flowVersion;
2031
+ }
2032
+ if (!$dara.isNull(request.from)) {
2033
+ query["From"] = request.from;
2034
+ }
2035
+ if (!$dara.isNull(request.metricName)) {
2036
+ query["MetricName"] = request.metricName;
2037
+ }
2038
+ if (!$dara.isNull(request.metricParamShrink)) {
2039
+ query["MetricParam"] = request.metricParamShrink;
2040
+ }
2041
+ if (!$dara.isNull(request.ownerId)) {
2042
+ query["OwnerId"] = request.ownerId;
2043
+ }
2044
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2045
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2046
+ }
2047
+ if (!$dara.isNull(request.resourceOwnerId)) {
2048
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2049
+ }
2050
+ if (!$dara.isNull(request.to)) {
2051
+ query["To"] = request.to;
1417
2052
  }
1418
2053
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1419
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
2054
+ query: openapi_core_2.OpenApiUtil.query(query),
1420
2055
  });
1421
2056
  let params = new openapi_core_2.$OpenApiUtil.Params({
1422
- action: "DeprecateFlow",
2057
+ action: "GetChatFlowMetric",
1423
2058
  version: "2020-06-06",
1424
2059
  protocol: "HTTPS",
1425
2060
  pathname: "/",
@@ -1429,42 +2064,48 @@ class Client extends openapi_core_1.default {
1429
2064
  reqBodyType: "formData",
1430
2065
  bodyType: "json",
1431
2066
  });
1432
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeprecateFlowResponse({}));
2067
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetChatFlowMetricResponse({}));
1433
2068
  }
1434
2069
  /**
1435
- * Deprecates a Flow.
2070
+ * Get ChatFlow Runtime Data
1436
2071
  *
1437
- * @param request - DeprecateFlowRequest
1438
- * @returns DeprecateFlowResponse
2072
+ * @param request - GetChatFlowMetricRequest
2073
+ * @returns GetChatFlowMetricResponse
1439
2074
  */
1440
- async deprecateFlow(request) {
2075
+ async getChatFlowMetric(request) {
1441
2076
  let runtime = new $dara.RuntimeOptions({});
1442
- return await this.deprecateFlowWithOptions(request, runtime);
2077
+ return await this.getChatFlowMetricWithOptions(request, runtime);
1443
2078
  }
1444
2079
  /**
1445
- * Enables the statistics on the metrics that are related to WhatsApp.
1446
- *
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.
2080
+ * Query chatFlow template
1449
2081
  *
1450
- * @param request - EnableWhatsappROIMetricRequest
2082
+ * @param request - GetChatFlowTemplateRequest
1451
2083
  * @param runtime - runtime options for this request RuntimeOptions
1452
- * @returns EnableWhatsappROIMetricResponse
2084
+ * @returns GetChatFlowTemplateResponse
1453
2085
  */
1454
- async enableWhatsappROIMetricWithOptions(request, runtime) {
2086
+ async getChatFlowTemplateWithOptions(request, runtime) {
1455
2087
  request.validate();
1456
2088
  let query = {};
1457
- if (!$dara.isNull(request.custSpaceId)) {
1458
- query["CustSpaceId"] = request.custSpaceId;
2089
+ if (!$dara.isNull(request.bizCode)) {
2090
+ query["BizCode"] = request.bizCode;
1459
2091
  }
1460
- if (!$dara.isNull(request.isvCode)) {
1461
- query["IsvCode"] = request.isvCode;
2092
+ if (!$dara.isNull(request.id)) {
2093
+ query["Id"] = request.id;
2094
+ }
2095
+ if (!$dara.isNull(request.ownerId)) {
2096
+ query["OwnerId"] = request.ownerId;
2097
+ }
2098
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2099
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2100
+ }
2101
+ if (!$dara.isNull(request.resourceOwnerId)) {
2102
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1462
2103
  }
1463
2104
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1464
2105
  query: openapi_core_2.OpenApiUtil.query(query),
1465
2106
  });
1466
2107
  let params = new openapi_core_2.$OpenApiUtil.Params({
1467
- action: "EnableWhatsappROIMetric",
2108
+ action: "GetChatFlowTemplate",
1468
2109
  version: "2020-06-06",
1469
2110
  protocol: "HTTPS",
1470
2111
  pathname: "/",
@@ -1474,20 +2115,17 @@ class Client extends openapi_core_1.default {
1474
2115
  reqBodyType: "formData",
1475
2116
  bodyType: "json",
1476
2117
  });
1477
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.EnableWhatsappROIMetricResponse({}));
2118
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetChatFlowTemplateResponse({}));
1478
2119
  }
1479
2120
  /**
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.
2121
+ * Query chatFlow template
1484
2122
  *
1485
- * @param request - EnableWhatsappROIMetricRequest
1486
- * @returns EnableWhatsappROIMetricResponse
2123
+ * @param request - GetChatFlowTemplateRequest
2124
+ * @returns GetChatFlowTemplateResponse
1487
2125
  */
1488
- async enableWhatsappROIMetric(request) {
2126
+ async getChatFlowTemplate(request) {
1489
2127
  let runtime = new $dara.RuntimeOptions({});
1490
- return await this.enableWhatsappROIMetricWithOptions(request, runtime);
2128
+ return await this.getChatFlowTemplateWithOptions(request, runtime);
1491
2129
  }
1492
2130
  /**
1493
2131
  * Queries the number of messages that are sent by using a phone number by a specific metric.
@@ -1514,9 +2152,18 @@ class Client extends openapi_core_1.default {
1514
2152
  if (!$dara.isNull(request.isvCode)) {
1515
2153
  query["IsvCode"] = request.isvCode;
1516
2154
  }
2155
+ if (!$dara.isNull(request.ownerId)) {
2156
+ query["OwnerId"] = request.ownerId;
2157
+ }
1517
2158
  if (!$dara.isNull(request.phoneNumber)) {
1518
2159
  query["PhoneNumber"] = request.phoneNumber;
1519
2160
  }
2161
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2162
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2163
+ }
2164
+ if (!$dara.isNull(request.resourceOwnerId)) {
2165
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2166
+ }
1520
2167
  if (!$dara.isNull(request.start)) {
1521
2168
  query["Start"] = request.start;
1522
2169
  }
@@ -1642,6 +2289,15 @@ class Client extends openapi_core_1.default {
1642
2289
  if (!$dara.isNull(request.language)) {
1643
2290
  query["Language"] = request.language;
1644
2291
  }
2292
+ if (!$dara.isNull(request.ownerId)) {
2293
+ query["OwnerId"] = request.ownerId;
2294
+ }
2295
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2296
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2297
+ }
2298
+ if (!$dara.isNull(request.resourceOwnerId)) {
2299
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2300
+ }
1645
2301
  if (!$dara.isNull(request.start)) {
1646
2302
  query["Start"] = request.start;
1647
2303
  }
@@ -1696,6 +2352,15 @@ class Client extends openapi_core_1.default {
1696
2352
  if (!$dara.isNull(request.custSpaceId)) {
1697
2353
  query["CustSpaceId"] = request.custSpaceId;
1698
2354
  }
2355
+ if (!$dara.isNull(request.ownerId)) {
2356
+ query["OwnerId"] = request.ownerId;
2357
+ }
2358
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2359
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2360
+ }
2361
+ if (!$dara.isNull(request.resourceOwnerId)) {
2362
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2363
+ }
1699
2364
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1700
2365
  query: openapi_core_2.OpenApiUtil.query(query),
1701
2366
  });
@@ -1918,15 +2583,24 @@ class Client extends openapi_core_1.default {
1918
2583
  */
1919
2584
  async getFlowWithOptions(request, runtime) {
1920
2585
  request.validate();
1921
- let body = {};
2586
+ let query = {};
1922
2587
  if (!$dara.isNull(request.custSpaceId)) {
1923
- body["CustSpaceId"] = request.custSpaceId;
2588
+ query["CustSpaceId"] = request.custSpaceId;
1924
2589
  }
1925
2590
  if (!$dara.isNull(request.flowId)) {
1926
- body["FlowId"] = request.flowId;
2591
+ query["FlowId"] = request.flowId;
2592
+ }
2593
+ if (!$dara.isNull(request.ownerId)) {
2594
+ query["OwnerId"] = request.ownerId;
2595
+ }
2596
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2597
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2598
+ }
2599
+ if (!$dara.isNull(request.resourceOwnerId)) {
2600
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1927
2601
  }
1928
2602
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1929
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
2603
+ query: openapi_core_2.OpenApiUtil.query(query),
1930
2604
  });
1931
2605
  let params = new openapi_core_2.$OpenApiUtil.Params({
1932
2606
  action: "GetFlow",
@@ -1963,15 +2637,24 @@ class Client extends openapi_core_1.default {
1963
2637
  */
1964
2638
  async getFlowJSONAssestWithOptions(request, runtime) {
1965
2639
  request.validate();
1966
- let body = {};
2640
+ let query = {};
1967
2641
  if (!$dara.isNull(request.custSpaceId)) {
1968
- body["CustSpaceId"] = request.custSpaceId;
2642
+ query["CustSpaceId"] = request.custSpaceId;
1969
2643
  }
1970
2644
  if (!$dara.isNull(request.flowId)) {
1971
- body["FlowId"] = request.flowId;
2645
+ query["FlowId"] = request.flowId;
2646
+ }
2647
+ if (!$dara.isNull(request.ownerId)) {
2648
+ query["OwnerId"] = request.ownerId;
2649
+ }
2650
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2651
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2652
+ }
2653
+ if (!$dara.isNull(request.resourceOwnerId)) {
2654
+ query["ResourceOwnerId"] = request.resourceOwnerId;
1972
2655
  }
1973
2656
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1974
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
2657
+ query: openapi_core_2.OpenApiUtil.query(query),
1975
2658
  });
1976
2659
  let params = new openapi_core_2.$OpenApiUtil.Params({
1977
2660
  action: "GetFlowJSONAssest",
@@ -2008,15 +2691,24 @@ class Client extends openapi_core_1.default {
2008
2691
  */
2009
2692
  async getFlowPreviewUrlWithOptions(request, runtime) {
2010
2693
  request.validate();
2011
- let body = {};
2694
+ let query = {};
2012
2695
  if (!$dara.isNull(request.custSpaceId)) {
2013
- body["CustSpaceId"] = request.custSpaceId;
2696
+ query["CustSpaceId"] = request.custSpaceId;
2014
2697
  }
2015
2698
  if (!$dara.isNull(request.flowId)) {
2016
- body["FlowId"] = request.flowId;
2699
+ query["FlowId"] = request.flowId;
2700
+ }
2701
+ if (!$dara.isNull(request.ownerId)) {
2702
+ query["OwnerId"] = request.ownerId;
2703
+ }
2704
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2705
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2706
+ }
2707
+ if (!$dara.isNull(request.resourceOwnerId)) {
2708
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2017
2709
  }
2018
2710
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2019
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
2711
+ query: openapi_core_2.OpenApiUtil.query(query),
2020
2712
  });
2021
2713
  let params = new openapi_core_2.$OpenApiUtil.Params({
2022
2714
  action: "GetFlowPreviewUrl",
@@ -2066,9 +2758,18 @@ class Client extends openapi_core_1.default {
2066
2758
  if (!$dara.isNull(request.method)) {
2067
2759
  query["Method"] = request.method;
2068
2760
  }
2761
+ if (!$dara.isNull(request.ownerId)) {
2762
+ query["OwnerId"] = request.ownerId;
2763
+ }
2069
2764
  if (!$dara.isNull(request.phoneNumber)) {
2070
2765
  query["PhoneNumber"] = request.phoneNumber;
2071
2766
  }
2767
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2768
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2769
+ }
2770
+ if (!$dara.isNull(request.resourceOwnerId)) {
2771
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2772
+ }
2072
2773
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2073
2774
  query: openapi_core_2.OpenApiUtil.query(query),
2074
2775
  });
@@ -2112,18 +2813,27 @@ class Client extends openapi_core_1.default {
2112
2813
  if (!$dara.isNull(tmpReq.permissions)) {
2113
2814
  request.permissionsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.permissions, "Permissions", "json");
2114
2815
  }
2115
- let body = {};
2816
+ let query = {};
2116
2817
  if (!$dara.isNull(request.code)) {
2117
- body["Code"] = request.code;
2818
+ query["Code"] = request.code;
2118
2819
  }
2119
2820
  if (!$dara.isNull(request.custSpaceId)) {
2120
- body["CustSpaceId"] = request.custSpaceId;
2821
+ query["CustSpaceId"] = request.custSpaceId;
2822
+ }
2823
+ if (!$dara.isNull(request.ownerId)) {
2824
+ query["OwnerId"] = request.ownerId;
2121
2825
  }
2122
2826
  if (!$dara.isNull(request.permissionsShrink)) {
2123
- body["Permissions"] = request.permissionsShrink;
2827
+ query["Permissions"] = request.permissionsShrink;
2828
+ }
2829
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2830
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2831
+ }
2832
+ if (!$dara.isNull(request.resourceOwnerId)) {
2833
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2124
2834
  }
2125
2835
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2126
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
2836
+ query: openapi_core_2.OpenApiUtil.query(query),
2127
2837
  });
2128
2838
  let params = new openapi_core_2.$OpenApiUtil.Params({
2129
2839
  action: "GetPermissionByCode",
@@ -2157,15 +2867,24 @@ class Client extends openapi_core_1.default {
2157
2867
  */
2158
2868
  async getPhoneEncryptionPublicKeyWithOptions(request, runtime) {
2159
2869
  request.validate();
2160
- let body = {};
2870
+ let query = {};
2161
2871
  if (!$dara.isNull(request.custSpaceId)) {
2162
- body["CustSpaceId"] = request.custSpaceId;
2872
+ query["CustSpaceId"] = request.custSpaceId;
2873
+ }
2874
+ if (!$dara.isNull(request.ownerId)) {
2875
+ query["OwnerId"] = request.ownerId;
2163
2876
  }
2164
2877
  if (!$dara.isNull(request.phoneNumber)) {
2165
- body["PhoneNumber"] = request.phoneNumber;
2878
+ query["PhoneNumber"] = request.phoneNumber;
2879
+ }
2880
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2881
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2882
+ }
2883
+ if (!$dara.isNull(request.resourceOwnerId)) {
2884
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2166
2885
  }
2167
2886
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2168
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
2887
+ query: openapi_core_2.OpenApiUtil.query(query),
2169
2888
  });
2170
2889
  let params = new openapi_core_2.$OpenApiUtil.Params({
2171
2890
  action: "GetPhoneEncryptionPublicKey",
@@ -2202,15 +2921,24 @@ class Client extends openapi_core_1.default {
2202
2921
  */
2203
2922
  async getPhoneNumberVerificationStatusWithOptions(request, runtime) {
2204
2923
  request.validate();
2205
- let body = {};
2924
+ let query = {};
2206
2925
  if (!$dara.isNull(request.custSpaceId)) {
2207
- body["CustSpaceId"] = request.custSpaceId;
2926
+ query["CustSpaceId"] = request.custSpaceId;
2927
+ }
2928
+ if (!$dara.isNull(request.ownerId)) {
2929
+ query["OwnerId"] = request.ownerId;
2208
2930
  }
2209
2931
  if (!$dara.isNull(request.phoneNumber)) {
2210
- body["PhoneNumber"] = request.phoneNumber;
2932
+ query["PhoneNumber"] = request.phoneNumber;
2933
+ }
2934
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
2935
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
2936
+ }
2937
+ if (!$dara.isNull(request.resourceOwnerId)) {
2938
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2211
2939
  }
2212
2940
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2213
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
2941
+ query: openapi_core_2.OpenApiUtil.query(query),
2214
2942
  });
2215
2943
  let params = new openapi_core_2.$OpenApiUtil.Params({
2216
2944
  action: "GetPhoneNumberVerificationStatus",
@@ -2358,20 +3086,220 @@ class Client extends openapi_core_1.default {
2358
3086
  async getWhatsappHealthStatusWithOptions(request, runtime) {
2359
3087
  request.validate();
2360
3088
  let query = {};
2361
- if (!$dara.isNull(request.custSpaceId)) {
2362
- query["CustSpaceId"] = request.custSpaceId;
3089
+ if (!$dara.isNull(request.custSpaceId)) {
3090
+ query["CustSpaceId"] = request.custSpaceId;
3091
+ }
3092
+ if (!$dara.isNull(request.language)) {
3093
+ query["Language"] = request.language;
3094
+ }
3095
+ if (!$dara.isNull(request.nodeType)) {
3096
+ query["NodeType"] = request.nodeType;
3097
+ }
3098
+ if (!$dara.isNull(request.ownerId)) {
3099
+ query["OwnerId"] = request.ownerId;
3100
+ }
3101
+ if (!$dara.isNull(request.phoneNumber)) {
3102
+ query["PhoneNumber"] = request.phoneNumber;
3103
+ }
3104
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3105
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3106
+ }
3107
+ if (!$dara.isNull(request.resourceOwnerId)) {
3108
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3109
+ }
3110
+ if (!$dara.isNull(request.templateCode)) {
3111
+ query["TemplateCode"] = request.templateCode;
3112
+ }
3113
+ if (!$dara.isNull(request.wabaId)) {
3114
+ query["WabaId"] = request.wabaId;
3115
+ }
3116
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3117
+ query: openapi_core_2.OpenApiUtil.query(query),
3118
+ });
3119
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3120
+ action: "GetWhatsappHealthStatus",
3121
+ version: "2020-06-06",
3122
+ protocol: "HTTPS",
3123
+ pathname: "/",
3124
+ method: "POST",
3125
+ authType: "AK",
3126
+ style: "RPC",
3127
+ reqBodyType: "formData",
3128
+ bodyType: "json",
3129
+ });
3130
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWhatsappHealthStatusResponse({}));
3131
+ }
3132
+ /**
3133
+ * Queries the messaging health status of different types of nodes.
3134
+ *
3135
+ * @remarks
3136
+ * ### [](#qps-)QPS limit
3137
+ * 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.
3138
+ * 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.
3139
+ *
3140
+ * @param request - GetWhatsappHealthStatusRequest
3141
+ * @returns GetWhatsappHealthStatusResponse
3142
+ */
3143
+ async getWhatsappHealthStatus(request) {
3144
+ let runtime = new $dara.RuntimeOptions({});
3145
+ return await this.getWhatsappHealthStatusWithOptions(request, runtime);
3146
+ }
3147
+ /**
3148
+ * Obtains the application ID under the ISV account.
3149
+ *
3150
+ * @remarks
3151
+ * 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.
3152
+ *
3153
+ * @param request - IsvGetAppIdRequest
3154
+ * @param runtime - runtime options for this request RuntimeOptions
3155
+ * @returns IsvGetAppIdResponse
3156
+ */
3157
+ async isvGetAppIdWithOptions(request, runtime) {
3158
+ request.validate();
3159
+ let query = {};
3160
+ if (!$dara.isNull(request.intlVersion)) {
3161
+ query["IntlVersion"] = request.intlVersion;
3162
+ }
3163
+ if (!$dara.isNull(request.ownerId)) {
3164
+ query["OwnerId"] = request.ownerId;
3165
+ }
3166
+ if (!$dara.isNull(request.permissions)) {
3167
+ query["Permissions"] = request.permissions;
3168
+ }
3169
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3170
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3171
+ }
3172
+ if (!$dara.isNull(request.resourceOwnerId)) {
3173
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3174
+ }
3175
+ if (!$dara.isNull(request.type)) {
3176
+ query["Type"] = request.type;
3177
+ }
3178
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3179
+ query: openapi_core_2.OpenApiUtil.query(query),
3180
+ });
3181
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3182
+ action: "IsvGetAppId",
3183
+ version: "2020-06-06",
3184
+ protocol: "HTTPS",
3185
+ pathname: "/",
3186
+ method: "POST",
3187
+ authType: "AK",
3188
+ style: "RPC",
3189
+ reqBodyType: "formData",
3190
+ bodyType: "json",
3191
+ });
3192
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.IsvGetAppIdResponse({}));
3193
+ }
3194
+ /**
3195
+ * Obtains the application ID under the ISV account.
3196
+ *
3197
+ * @remarks
3198
+ * 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.
3199
+ *
3200
+ * @param request - IsvGetAppIdRequest
3201
+ * @returns IsvGetAppIdResponse
3202
+ */
3203
+ async isvGetAppId(request) {
3204
+ let runtime = new $dara.RuntimeOptions({});
3205
+ return await this.isvGetAppIdWithOptions(request, runtime);
3206
+ }
3207
+ /**
3208
+ * Query Bound List Based on flowCode
3209
+ *
3210
+ * @remarks
3211
+ * - You can call this interface to query the list of phone numbers or merchant account IDs bound to a process, or you can view the list in the [**Flow Editor**](https://chatapp.console.aliyun.com/ChatFlowBuilder) > **Settings** interface.
3212
+ * - Before calling this interface, make sure that the process you created has already been bound to a phone number or merchant account ID.
3213
+ * - If the process you created is not bound to a phone number or merchant account ID, you can manually bind a phone number or merchant account ID in the [**Flow Editor**](https://chatapp.console.aliyun.com/ChatFlowBuilder) > **Settings** interface, or bind it through the [FlowBindPhone](https://help.aliyun.com/document_detail/2937190.html) interface.
3214
+ *
3215
+ * @param request - ListBindingRelationsForFlowVersionRequest
3216
+ * @param runtime - runtime options for this request RuntimeOptions
3217
+ * @returns ListBindingRelationsForFlowVersionResponse
3218
+ */
3219
+ async listBindingRelationsForFlowVersionWithOptions(request, runtime) {
3220
+ request.validate();
3221
+ let query = {};
3222
+ if (!$dara.isNull(request.channelType)) {
3223
+ query["ChannelType"] = request.channelType;
3224
+ }
3225
+ if (!$dara.isNull(request.flowCode)) {
3226
+ query["FlowCode"] = request.flowCode;
3227
+ }
3228
+ if (!$dara.isNull(request.ownerId)) {
3229
+ query["OwnerId"] = request.ownerId;
3230
+ }
3231
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3232
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3233
+ }
3234
+ if (!$dara.isNull(request.resourceOwnerId)) {
3235
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3236
+ }
3237
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3238
+ query: openapi_core_2.OpenApiUtil.query(query),
3239
+ });
3240
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3241
+ action: "ListBindingRelationsForFlowVersion",
3242
+ version: "2020-06-06",
3243
+ protocol: "HTTPS",
3244
+ pathname: "/",
3245
+ method: "POST",
3246
+ authType: "AK",
3247
+ style: "RPC",
3248
+ reqBodyType: "formData",
3249
+ bodyType: "json",
3250
+ });
3251
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListBindingRelationsForFlowVersionResponse({}));
3252
+ }
3253
+ /**
3254
+ * Query Bound List Based on flowCode
3255
+ *
3256
+ * @remarks
3257
+ * - You can call this interface to query the list of phone numbers or merchant account IDs bound to a process, or you can view the list in the [**Flow Editor**](https://chatapp.console.aliyun.com/ChatFlowBuilder) > **Settings** interface.
3258
+ * - Before calling this interface, make sure that the process you created has already been bound to a phone number or merchant account ID.
3259
+ * - If the process you created is not bound to a phone number or merchant account ID, you can manually bind a phone number or merchant account ID in the [**Flow Editor**](https://chatapp.console.aliyun.com/ChatFlowBuilder) > **Settings** interface, or bind it through the [FlowBindPhone](https://help.aliyun.com/document_detail/2937190.html) interface.
3260
+ *
3261
+ * @param request - ListBindingRelationsForFlowVersionRequest
3262
+ * @returns ListBindingRelationsForFlowVersionResponse
3263
+ */
3264
+ async listBindingRelationsForFlowVersion(request) {
3265
+ let runtime = new $dara.RuntimeOptions({});
3266
+ return await this.listBindingRelationsForFlowVersionWithOptions(request, runtime);
3267
+ }
3268
+ /**
3269
+ * List Flows
3270
+ *
3271
+ * @param tmpReq - ListChatFlowRequest
3272
+ * @param runtime - runtime options for this request RuntimeOptions
3273
+ * @returns ListChatFlowResponse
3274
+ */
3275
+ async listChatFlowWithOptions(tmpReq, runtime) {
3276
+ tmpReq.validate();
3277
+ let request = new $_model.ListChatFlowShrinkRequest({});
3278
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3279
+ if (!$dara.isNull(tmpReq.bizExtend)) {
3280
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
3281
+ }
3282
+ let query = {};
3283
+ if (!$dara.isNull(request.bizCode)) {
3284
+ query["BizCode"] = request.bizCode;
2363
3285
  }
2364
- if (!$dara.isNull(request.language)) {
2365
- query["Language"] = request.language;
3286
+ if (!$dara.isNull(request.bizExtendShrink)) {
3287
+ query["BizExtend"] = request.bizExtendShrink;
2366
3288
  }
2367
- if (!$dara.isNull(request.nodeType)) {
2368
- query["NodeType"] = request.nodeType;
3289
+ if (!$dara.isNull(request.flowTriggerType)) {
3290
+ query["FlowTriggerType"] = request.flowTriggerType;
3291
+ }
3292
+ if (!$dara.isNull(request.keyword)) {
3293
+ query["Keyword"] = request.keyword;
2369
3294
  }
2370
3295
  if (!$dara.isNull(request.ownerId)) {
2371
3296
  query["OwnerId"] = request.ownerId;
2372
3297
  }
2373
- if (!$dara.isNull(request.phoneNumber)) {
2374
- query["PhoneNumber"] = request.phoneNumber;
3298
+ if (!$dara.isNull(request.pageNo)) {
3299
+ query["PageNo"] = request.pageNo;
3300
+ }
3301
+ if (!$dara.isNull(request.pageSize)) {
3302
+ query["PageSize"] = request.pageSize;
2375
3303
  }
2376
3304
  if (!$dara.isNull(request.resourceOwnerAccount)) {
2377
3305
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
@@ -2379,17 +3307,17 @@ class Client extends openapi_core_1.default {
2379
3307
  if (!$dara.isNull(request.resourceOwnerId)) {
2380
3308
  query["ResourceOwnerId"] = request.resourceOwnerId;
2381
3309
  }
2382
- if (!$dara.isNull(request.templateCode)) {
2383
- query["TemplateCode"] = request.templateCode;
3310
+ if (!$dara.isNull(request.returnWithOnlineVersion)) {
3311
+ query["ReturnWithOnlineVersion"] = request.returnWithOnlineVersion;
2384
3312
  }
2385
- if (!$dara.isNull(request.wabaId)) {
2386
- query["WabaId"] = request.wabaId;
3313
+ if (!$dara.isNull(request.status)) {
3314
+ query["Status"] = request.status;
2387
3315
  }
2388
3316
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2389
3317
  query: openapi_core_2.OpenApiUtil.query(query),
2390
3318
  });
2391
3319
  let params = new openapi_core_2.$OpenApiUtil.Params({
2392
- action: "GetWhatsappHealthStatus",
3320
+ action: "ListChatFlow",
2393
3321
  version: "2020-06-06",
2394
3322
  protocol: "HTTPS",
2395
3323
  pathname: "/",
@@ -2399,47 +3327,57 @@ class Client extends openapi_core_1.default {
2399
3327
  reqBodyType: "formData",
2400
3328
  bodyType: "json",
2401
3329
  });
2402
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetWhatsappHealthStatusResponse({}));
3330
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatFlowResponse({}));
2403
3331
  }
2404
3332
  /**
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.
3333
+ * List Flows
2411
3334
  *
2412
- * @param request - GetWhatsappHealthStatusRequest
2413
- * @returns GetWhatsappHealthStatusResponse
3335
+ * @param request - ListChatFlowRequest
3336
+ * @returns ListChatFlowResponse
2414
3337
  */
2415
- async getWhatsappHealthStatus(request) {
3338
+ async listChatFlow(request) {
2416
3339
  let runtime = new $dara.RuntimeOptions({});
2417
- return await this.getWhatsappHealthStatusWithOptions(request, runtime);
3340
+ return await this.listChatFlowWithOptions(request, runtime);
2418
3341
  }
2419
3342
  /**
2420
- * Obtains the application ID under the ISV account.
3343
+ * ChatFlow Template List
2421
3344
  *
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
3345
+ * @param request - ListChatFlowTemplateRequest
2426
3346
  * @param runtime - runtime options for this request RuntimeOptions
2427
- * @returns IsvGetAppIdResponse
3347
+ * @returns ListChatFlowTemplateResponse
2428
3348
  */
2429
- async isvGetAppIdWithOptions(request, runtime) {
3349
+ async listChatFlowTemplateWithOptions(request, runtime) {
2430
3350
  request.validate();
2431
- let body = {};
2432
- if (!$dara.isNull(request.permissions)) {
2433
- body["Permissions"] = request.permissions;
3351
+ let query = {};
3352
+ if (!$dara.isNull(request.bizCode)) {
3353
+ query["BizCode"] = request.bizCode;
2434
3354
  }
2435
- if (!$dara.isNull(request.type)) {
2436
- body["Type"] = request.type;
3355
+ if (!$dara.isNull(request.keyword)) {
3356
+ query["Keyword"] = request.keyword;
3357
+ }
3358
+ if (!$dara.isNull(request.ownerId)) {
3359
+ query["OwnerId"] = request.ownerId;
3360
+ }
3361
+ if (!$dara.isNull(request.pageNo)) {
3362
+ query["PageNo"] = request.pageNo;
3363
+ }
3364
+ if (!$dara.isNull(request.pageSize)) {
3365
+ query["PageSize"] = request.pageSize;
3366
+ }
3367
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3368
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3369
+ }
3370
+ if (!$dara.isNull(request.resourceOwnerId)) {
3371
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3372
+ }
3373
+ if (!$dara.isNull(request.triggerType)) {
3374
+ query["TriggerType"] = request.triggerType;
2437
3375
  }
2438
3376
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2439
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
3377
+ query: openapi_core_2.OpenApiUtil.query(query),
2440
3378
  });
2441
3379
  let params = new openapi_core_2.$OpenApiUtil.Params({
2442
- action: "IsvGetAppId",
3380
+ action: "ListChatFlowTemplate",
2443
3381
  version: "2020-06-06",
2444
3382
  protocol: "HTTPS",
2445
3383
  pathname: "/",
@@ -2449,20 +3387,17 @@ class Client extends openapi_core_1.default {
2449
3387
  reqBodyType: "formData",
2450
3388
  bodyType: "json",
2451
3389
  });
2452
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.IsvGetAppIdResponse({}));
3390
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatFlowTemplateResponse({}));
2453
3391
  }
2454
3392
  /**
2455
- * Obtains the application ID under the ISV account.
3393
+ * ChatFlow Template List
2456
3394
  *
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.
2459
- *
2460
- * @param request - IsvGetAppIdRequest
2461
- * @returns IsvGetAppIdResponse
3395
+ * @param request - ListChatFlowTemplateRequest
3396
+ * @returns ListChatFlowTemplateResponse
2462
3397
  */
2463
- async isvGetAppId(request) {
3398
+ async listChatFlowTemplate(request) {
2464
3399
  let runtime = new $dara.RuntimeOptions({});
2465
- return await this.isvGetAppIdWithOptions(request, runtime);
3400
+ return await this.listChatFlowTemplateWithOptions(request, runtime);
2466
3401
  }
2467
3402
  /**
2468
3403
  * ListChatGroup
@@ -2597,6 +3532,92 @@ class Client extends openapi_core_1.default {
2597
3532
  let runtime = new $dara.RuntimeOptions({});
2598
3533
  return await this.listChatGroupParticipantsWithOptions(request, runtime);
2599
3534
  }
3535
+ /**
3536
+ * 查询消息列表
3537
+ *
3538
+ * @param tmpReq - ListChatappMessageRequest
3539
+ * @param runtime - runtime options for this request RuntimeOptions
3540
+ * @returns ListChatappMessageResponse
3541
+ */
3542
+ async listChatappMessageWithOptions(tmpReq, runtime) {
3543
+ tmpReq.validate();
3544
+ let request = new $_model.ListChatappMessageShrinkRequest({});
3545
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3546
+ if (!$dara.isNull(tmpReq.page)) {
3547
+ request.pageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
3548
+ }
3549
+ let query = {};
3550
+ if (!$dara.isNull(request.businessNumber)) {
3551
+ query["BusinessNumber"] = request.businessNumber;
3552
+ }
3553
+ if (!$dara.isNull(request.channelType)) {
3554
+ query["ChannelType"] = request.channelType;
3555
+ }
3556
+ if (!$dara.isNull(request.clientAcceptStatus)) {
3557
+ query["ClientAcceptStatus"] = request.clientAcceptStatus;
3558
+ }
3559
+ if (!$dara.isNull(request.custSpaceId)) {
3560
+ query["CustSpaceId"] = request.custSpaceId;
3561
+ }
3562
+ if (!$dara.isNull(request.endTime)) {
3563
+ query["EndTime"] = request.endTime;
3564
+ }
3565
+ if (!$dara.isNull(request.eventAction)) {
3566
+ query["EventAction"] = request.eventAction;
3567
+ }
3568
+ if (!$dara.isNull(request.groupMessageId)) {
3569
+ query["GroupMessageId"] = request.groupMessageId;
3570
+ }
3571
+ if (!$dara.isNull(request.messageStatus)) {
3572
+ query["MessageStatus"] = request.messageStatus;
3573
+ }
3574
+ if (!$dara.isNull(request.ownerId)) {
3575
+ query["OwnerId"] = request.ownerId;
3576
+ }
3577
+ if (!$dara.isNull(request.pageShrink)) {
3578
+ query["Page"] = request.pageShrink;
3579
+ }
3580
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3581
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3582
+ }
3583
+ if (!$dara.isNull(request.resourceOwnerId)) {
3584
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3585
+ }
3586
+ if (!$dara.isNull(request.startTime)) {
3587
+ query["StartTime"] = request.startTime;
3588
+ }
3589
+ if (!$dara.isNull(request.templateCode)) {
3590
+ query["TemplateCode"] = request.templateCode;
3591
+ }
3592
+ if (!$dara.isNull(request.userNumber)) {
3593
+ query["UserNumber"] = request.userNumber;
3594
+ }
3595
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3596
+ query: openapi_core_2.OpenApiUtil.query(query),
3597
+ });
3598
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3599
+ action: "ListChatappMessage",
3600
+ version: "2020-06-06",
3601
+ protocol: "HTTPS",
3602
+ pathname: "/",
3603
+ method: "POST",
3604
+ authType: "AK",
3605
+ style: "RPC",
3606
+ reqBodyType: "formData",
3607
+ bodyType: "json",
3608
+ });
3609
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListChatappMessageResponse({}));
3610
+ }
3611
+ /**
3612
+ * 查询消息列表
3613
+ *
3614
+ * @param request - ListChatappMessageRequest
3615
+ * @returns ListChatappMessageResponse
3616
+ */
3617
+ async listChatappMessage(request) {
3618
+ let runtime = new $dara.RuntimeOptions({});
3619
+ return await this.listChatappMessageWithOptions(request, runtime);
3620
+ }
2600
3621
  /**
2601
3622
  * Queries message templates.
2602
3623
  *
@@ -2702,18 +3723,27 @@ class Client extends openapi_core_1.default {
2702
3723
  if (!$dara.isNull(tmpReq.page)) {
2703
3724
  request.pageShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.page, "Page", "json");
2704
3725
  }
2705
- let body = {};
3726
+ let query = {};
2706
3727
  if (!$dara.isNull(request.custSpaceId)) {
2707
- body["CustSpaceId"] = request.custSpaceId;
3728
+ query["CustSpaceId"] = request.custSpaceId;
2708
3729
  }
2709
3730
  if (!$dara.isNull(request.flowName)) {
2710
- body["FlowName"] = request.flowName;
3731
+ query["FlowName"] = request.flowName;
3732
+ }
3733
+ if (!$dara.isNull(request.ownerId)) {
3734
+ query["OwnerId"] = request.ownerId;
2711
3735
  }
2712
3736
  if (!$dara.isNull(request.pageShrink)) {
2713
- body["Page"] = request.pageShrink;
3737
+ query["Page"] = request.pageShrink;
3738
+ }
3739
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3740
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3741
+ }
3742
+ if (!$dara.isNull(request.resourceOwnerId)) {
3743
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2714
3744
  }
2715
3745
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2716
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
3746
+ query: openapi_core_2.OpenApiUtil.query(query),
2717
3747
  });
2718
3748
  let params = new openapi_core_2.$OpenApiUtil.Params({
2719
3749
  action: "ListFlow",
@@ -2741,6 +3771,134 @@ class Client extends openapi_core_1.default {
2741
3771
  let runtime = new $dara.RuntimeOptions({});
2742
3772
  return await this.listFlowWithOptions(request, runtime);
2743
3773
  }
3774
+ /**
3775
+ * ListFlowNodePrototypeV2
3776
+ *
3777
+ * @param request - ListFlowNodePrototypeV2Request
3778
+ * @param runtime - runtime options for this request RuntimeOptions
3779
+ * @returns ListFlowNodePrototypeV2Response
3780
+ */
3781
+ async listFlowNodePrototypeV2WithOptions(request, runtime) {
3782
+ request.validate();
3783
+ let query = {};
3784
+ if (!$dara.isNull(request.bizCode)) {
3785
+ query["BizCode"] = request.bizCode;
3786
+ }
3787
+ if (!$dara.isNull(request.groupCode)) {
3788
+ query["GroupCode"] = request.groupCode;
3789
+ }
3790
+ if (!$dara.isNull(request.keyword)) {
3791
+ query["Keyword"] = request.keyword;
3792
+ }
3793
+ if (!$dara.isNull(request.ownerId)) {
3794
+ query["OwnerId"] = request.ownerId;
3795
+ }
3796
+ if (!$dara.isNull(request.pageNo)) {
3797
+ query["PageNo"] = request.pageNo;
3798
+ }
3799
+ if (!$dara.isNull(request.pageSize)) {
3800
+ query["PageSize"] = request.pageSize;
3801
+ }
3802
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3803
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3804
+ }
3805
+ if (!$dara.isNull(request.resourceOwnerId)) {
3806
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3807
+ }
3808
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3809
+ query: openapi_core_2.OpenApiUtil.query(query),
3810
+ });
3811
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3812
+ action: "ListFlowNodePrototypeV2",
3813
+ version: "2020-06-06",
3814
+ protocol: "HTTPS",
3815
+ pathname: "/",
3816
+ method: "POST",
3817
+ authType: "AK",
3818
+ style: "RPC",
3819
+ reqBodyType: "formData",
3820
+ bodyType: "json",
3821
+ });
3822
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListFlowNodePrototypeV2Response({}));
3823
+ }
3824
+ /**
3825
+ * ListFlowNodePrototypeV2
3826
+ *
3827
+ * @param request - ListFlowNodePrototypeV2Request
3828
+ * @returns ListFlowNodePrototypeV2Response
3829
+ */
3830
+ async listFlowNodePrototypeV2(request) {
3831
+ let runtime = new $dara.RuntimeOptions({});
3832
+ return await this.listFlowNodePrototypeV2WithOptions(request, runtime);
3833
+ }
3834
+ /**
3835
+ * List Flow Versions
3836
+ *
3837
+ * @param tmpReq - ListFlowVersionRequest
3838
+ * @param runtime - runtime options for this request RuntimeOptions
3839
+ * @returns ListFlowVersionResponse
3840
+ */
3841
+ async listFlowVersionWithOptions(tmpReq, runtime) {
3842
+ tmpReq.validate();
3843
+ let request = new $_model.ListFlowVersionShrinkRequest({});
3844
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3845
+ if (!$dara.isNull(tmpReq.bizExtend)) {
3846
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
3847
+ }
3848
+ let query = {};
3849
+ if (!$dara.isNull(request.bizCode)) {
3850
+ query["BizCode"] = request.bizCode;
3851
+ }
3852
+ if (!$dara.isNull(request.bizExtendShrink)) {
3853
+ query["BizExtend"] = request.bizExtendShrink;
3854
+ }
3855
+ if (!$dara.isNull(request.flowCode)) {
3856
+ query["FlowCode"] = request.flowCode;
3857
+ }
3858
+ if (!$dara.isNull(request.ownerId)) {
3859
+ query["OwnerId"] = request.ownerId;
3860
+ }
3861
+ if (!$dara.isNull(request.pageNo)) {
3862
+ query["PageNo"] = request.pageNo;
3863
+ }
3864
+ if (!$dara.isNull(request.pageSize)) {
3865
+ query["PageSize"] = request.pageSize;
3866
+ }
3867
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3868
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3869
+ }
3870
+ if (!$dara.isNull(request.resourceOwnerId)) {
3871
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3872
+ }
3873
+ if (!$dara.isNull(request.status)) {
3874
+ query["Status"] = request.status;
3875
+ }
3876
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3877
+ query: openapi_core_2.OpenApiUtil.query(query),
3878
+ });
3879
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3880
+ action: "ListFlowVersion",
3881
+ version: "2020-06-06",
3882
+ protocol: "HTTPS",
3883
+ pathname: "/",
3884
+ method: "POST",
3885
+ authType: "AK",
3886
+ style: "RPC",
3887
+ reqBodyType: "formData",
3888
+ bodyType: "json",
3889
+ });
3890
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListFlowVersionResponse({}));
3891
+ }
3892
+ /**
3893
+ * List Flow Versions
3894
+ *
3895
+ * @param request - ListFlowVersionRequest
3896
+ * @returns ListFlowVersionResponse
3897
+ */
3898
+ async listFlowVersion(request) {
3899
+ let runtime = new $dara.RuntimeOptions({});
3900
+ return await this.listFlowVersionWithOptions(request, runtime);
3901
+ }
2744
3902
  /**
2745
3903
  * Queries the information about a list of quick-response (QR) codes that contain messages.
2746
3904
  *
@@ -2750,15 +3908,24 @@ class Client extends openapi_core_1.default {
2750
3908
  */
2751
3909
  async listPhoneMessageQrdlWithOptions(request, runtime) {
2752
3910
  request.validate();
2753
- let body = {};
3911
+ let query = {};
2754
3912
  if (!$dara.isNull(request.custSpaceId)) {
2755
- body["CustSpaceId"] = request.custSpaceId;
3913
+ query["CustSpaceId"] = request.custSpaceId;
3914
+ }
3915
+ if (!$dara.isNull(request.ownerId)) {
3916
+ query["OwnerId"] = request.ownerId;
2756
3917
  }
2757
3918
  if (!$dara.isNull(request.phoneNumber)) {
2758
- body["PhoneNumber"] = request.phoneNumber;
3919
+ query["PhoneNumber"] = request.phoneNumber;
3920
+ }
3921
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
3922
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3923
+ }
3924
+ if (!$dara.isNull(request.resourceOwnerId)) {
3925
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2759
3926
  }
2760
3927
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2761
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
3928
+ query: openapi_core_2.OpenApiUtil.query(query),
2762
3929
  });
2763
3930
  let params = new openapi_core_2.$OpenApiUtil.Params({
2764
3931
  action: "ListPhoneMessageQrdl",
@@ -3090,21 +4257,30 @@ class Client extends openapi_core_1.default {
3090
4257
  if (!$dara.isNull(tmpReq.categories)) {
3091
4258
  request.categoriesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.categories, "Categories", "json");
3092
4259
  }
3093
- let body = {};
4260
+ let query = {};
3094
4261
  if (!$dara.isNull(request.categoriesShrink)) {
3095
- body["Categories"] = request.categoriesShrink;
4262
+ query["Categories"] = request.categoriesShrink;
3096
4263
  }
3097
4264
  if (!$dara.isNull(request.custSpaceId)) {
3098
- body["CustSpaceId"] = request.custSpaceId;
4265
+ query["CustSpaceId"] = request.custSpaceId;
3099
4266
  }
3100
4267
  if (!$dara.isNull(request.flowId)) {
3101
- body["FlowId"] = request.flowId;
4268
+ query["FlowId"] = request.flowId;
3102
4269
  }
3103
4270
  if (!$dara.isNull(request.flowName)) {
3104
- body["FlowName"] = request.flowName;
4271
+ query["FlowName"] = request.flowName;
4272
+ }
4273
+ if (!$dara.isNull(request.ownerId)) {
4274
+ query["OwnerId"] = request.ownerId;
4275
+ }
4276
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4277
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4278
+ }
4279
+ if (!$dara.isNull(request.resourceOwnerId)) {
4280
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3105
4281
  }
3106
4282
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3107
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
4283
+ query: openapi_core_2.OpenApiUtil.query(query),
3108
4284
  });
3109
4285
  let params = new openapi_core_2.$OpenApiUtil.Params({
3110
4286
  action: "ModifyFlow",
@@ -3215,6 +4391,136 @@ class Client extends openapi_core_1.default {
3215
4391
  let runtime = new $dara.RuntimeOptions({});
3216
4392
  return await this.modifyPhoneBusinessProfileWithOptions(request, runtime);
3217
4393
  }
4394
+ /**
4395
+ * Offline Flow Version
4396
+ *
4397
+ * @param tmpReq - OfflineFlowVersionRequest
4398
+ * @param runtime - runtime options for this request RuntimeOptions
4399
+ * @returns OfflineFlowVersionResponse
4400
+ */
4401
+ async offlineFlowVersionWithOptions(tmpReq, runtime) {
4402
+ tmpReq.validate();
4403
+ let request = new $_model.OfflineFlowVersionShrinkRequest({});
4404
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4405
+ if (!$dara.isNull(tmpReq.bizExtend)) {
4406
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
4407
+ }
4408
+ let query = {};
4409
+ if (!$dara.isNull(request.bizCode)) {
4410
+ query["BizCode"] = request.bizCode;
4411
+ }
4412
+ if (!$dara.isNull(request.bizExtendShrink)) {
4413
+ query["BizExtend"] = request.bizExtendShrink;
4414
+ }
4415
+ if (!$dara.isNull(request.flowCode)) {
4416
+ query["FlowCode"] = request.flowCode;
4417
+ }
4418
+ if (!$dara.isNull(request.flowVersion)) {
4419
+ query["FlowVersion"] = request.flowVersion;
4420
+ }
4421
+ if (!$dara.isNull(request.ownerId)) {
4422
+ query["OwnerId"] = request.ownerId;
4423
+ }
4424
+ if (!$dara.isNull(request.remark)) {
4425
+ query["Remark"] = request.remark;
4426
+ }
4427
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4428
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4429
+ }
4430
+ if (!$dara.isNull(request.resourceOwnerId)) {
4431
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4432
+ }
4433
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4434
+ query: openapi_core_2.OpenApiUtil.query(query),
4435
+ });
4436
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4437
+ action: "OfflineFlowVersion",
4438
+ version: "2020-06-06",
4439
+ protocol: "HTTPS",
4440
+ pathname: "/",
4441
+ method: "POST",
4442
+ authType: "AK",
4443
+ style: "RPC",
4444
+ reqBodyType: "formData",
4445
+ bodyType: "json",
4446
+ });
4447
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.OfflineFlowVersionResponse({}));
4448
+ }
4449
+ /**
4450
+ * Offline Flow Version
4451
+ *
4452
+ * @param request - OfflineFlowVersionRequest
4453
+ * @returns OfflineFlowVersionResponse
4454
+ */
4455
+ async offlineFlowVersion(request) {
4456
+ let runtime = new $dara.RuntimeOptions({});
4457
+ return await this.offlineFlowVersionWithOptions(request, runtime);
4458
+ }
4459
+ /**
4460
+ * Online Flow Version
4461
+ *
4462
+ * @param tmpReq - OnlineFlowVersionRequest
4463
+ * @param runtime - runtime options for this request RuntimeOptions
4464
+ * @returns OnlineFlowVersionResponse
4465
+ */
4466
+ async onlineFlowVersionWithOptions(tmpReq, runtime) {
4467
+ tmpReq.validate();
4468
+ let request = new $_model.OnlineFlowVersionShrinkRequest({});
4469
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4470
+ if (!$dara.isNull(tmpReq.bizExtend)) {
4471
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
4472
+ }
4473
+ let query = {};
4474
+ if (!$dara.isNull(request.bizCode)) {
4475
+ query["BizCode"] = request.bizCode;
4476
+ }
4477
+ if (!$dara.isNull(request.bizExtendShrink)) {
4478
+ query["BizExtend"] = request.bizExtendShrink;
4479
+ }
4480
+ if (!$dara.isNull(request.flowCode)) {
4481
+ query["FlowCode"] = request.flowCode;
4482
+ }
4483
+ if (!$dara.isNull(request.flowVersion)) {
4484
+ query["FlowVersion"] = request.flowVersion;
4485
+ }
4486
+ if (!$dara.isNull(request.ownerId)) {
4487
+ query["OwnerId"] = request.ownerId;
4488
+ }
4489
+ if (!$dara.isNull(request.remark)) {
4490
+ query["Remark"] = request.remark;
4491
+ }
4492
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4493
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4494
+ }
4495
+ if (!$dara.isNull(request.resourceOwnerId)) {
4496
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4497
+ }
4498
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4499
+ query: openapi_core_2.OpenApiUtil.query(query),
4500
+ });
4501
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4502
+ action: "OnlineFlowVersion",
4503
+ version: "2020-06-06",
4504
+ protocol: "HTTPS",
4505
+ pathname: "/",
4506
+ method: "POST",
4507
+ authType: "AK",
4508
+ style: "RPC",
4509
+ reqBodyType: "formData",
4510
+ bodyType: "json",
4511
+ });
4512
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.OnlineFlowVersionResponse({}));
4513
+ }
4514
+ /**
4515
+ * Online Flow Version
4516
+ *
4517
+ * @param request - OnlineFlowVersionRequest
4518
+ * @returns OnlineFlowVersionResponse
4519
+ */
4520
+ async onlineFlowVersion(request) {
4521
+ let runtime = new $dara.RuntimeOptions({});
4522
+ return await this.onlineFlowVersionWithOptions(request, runtime);
4523
+ }
3218
4524
  /**
3219
4525
  * Publishes a Flow.
3220
4526
  *
@@ -3227,15 +4533,24 @@ class Client extends openapi_core_1.default {
3227
4533
  */
3228
4534
  async publishFlowWithOptions(request, runtime) {
3229
4535
  request.validate();
3230
- let body = {};
4536
+ let query = {};
3231
4537
  if (!$dara.isNull(request.custSpaceId)) {
3232
- body["CustSpaceId"] = request.custSpaceId;
4538
+ query["CustSpaceId"] = request.custSpaceId;
3233
4539
  }
3234
4540
  if (!$dara.isNull(request.flowId)) {
3235
- body["FlowId"] = request.flowId;
4541
+ query["FlowId"] = request.flowId;
4542
+ }
4543
+ if (!$dara.isNull(request.ownerId)) {
4544
+ query["OwnerId"] = request.ownerId;
4545
+ }
4546
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4547
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4548
+ }
4549
+ if (!$dara.isNull(request.resourceOwnerId)) {
4550
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3236
4551
  }
3237
4552
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3238
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
4553
+ query: openapi_core_2.OpenApiUtil.query(query),
3239
4554
  });
3240
4555
  let params = new openapi_core_2.$OpenApiUtil.Params({
3241
4556
  action: "PublishFlow",
@@ -3386,22 +4701,189 @@ class Client extends openapi_core_1.default {
3386
4701
  * @remarks
3387
4702
  * 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.
3388
4703
  *
3389
- * @param request - QueryPhoneBusinessProfileRequest
4704
+ * @param request - QueryPhoneBusinessProfileRequest
4705
+ * @param runtime - runtime options for this request RuntimeOptions
4706
+ * @returns QueryPhoneBusinessProfileResponse
4707
+ */
4708
+ async queryPhoneBusinessProfileWithOptions(request, runtime) {
4709
+ request.validate();
4710
+ let query = {};
4711
+ if (!$dara.isNull(request.custSpaceId)) {
4712
+ query["CustSpaceId"] = request.custSpaceId;
4713
+ }
4714
+ if (!$dara.isNull(request.ownerId)) {
4715
+ query["OwnerId"] = request.ownerId;
4716
+ }
4717
+ if (!$dara.isNull(request.phoneNumber)) {
4718
+ query["PhoneNumber"] = request.phoneNumber;
4719
+ }
4720
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4721
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4722
+ }
4723
+ if (!$dara.isNull(request.resourceOwnerId)) {
4724
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4725
+ }
4726
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4727
+ query: openapi_core_2.OpenApiUtil.query(query),
4728
+ });
4729
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4730
+ action: "QueryPhoneBusinessProfile",
4731
+ version: "2020-06-06",
4732
+ protocol: "HTTPS",
4733
+ pathname: "/",
4734
+ method: "POST",
4735
+ authType: "AK",
4736
+ style: "RPC",
4737
+ reqBodyType: "formData",
4738
+ bodyType: "json",
4739
+ });
4740
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryPhoneBusinessProfileResponse({}));
4741
+ }
4742
+ /**
4743
+ * Queries the business information of the account to which a specified phone number is bound.
4744
+ *
4745
+ * @remarks
4746
+ * 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.
4747
+ *
4748
+ * @param request - QueryPhoneBusinessProfileRequest
4749
+ * @returns QueryPhoneBusinessProfileResponse
4750
+ */
4751
+ async queryPhoneBusinessProfile(request) {
4752
+ let runtime = new $dara.RuntimeOptions({});
4753
+ return await this.queryPhoneBusinessProfileWithOptions(request, runtime);
4754
+ }
4755
+ /**
4756
+ * Queries the business information about the WhatsApp Business account (WABA).
4757
+ *
4758
+ * @remarks
4759
+ * 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.
4760
+ *
4761
+ * @param request - QueryWabaBusinessInfoRequest
4762
+ * @param runtime - runtime options for this request RuntimeOptions
4763
+ * @returns QueryWabaBusinessInfoResponse
4764
+ */
4765
+ async queryWabaBusinessInfoWithOptions(request, runtime) {
4766
+ request.validate();
4767
+ let query = {};
4768
+ if (!$dara.isNull(request.custSpaceId)) {
4769
+ query["CustSpaceId"] = request.custSpaceId;
4770
+ }
4771
+ if (!$dara.isNull(request.ownerId)) {
4772
+ query["OwnerId"] = request.ownerId;
4773
+ }
4774
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4775
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4776
+ }
4777
+ if (!$dara.isNull(request.resourceOwnerId)) {
4778
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4779
+ }
4780
+ if (!$dara.isNull(request.wabaId)) {
4781
+ query["WabaId"] = request.wabaId;
4782
+ }
4783
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4784
+ query: openapi_core_2.OpenApiUtil.query(query),
4785
+ });
4786
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4787
+ action: "QueryWabaBusinessInfo",
4788
+ version: "2020-06-06",
4789
+ protocol: "HTTPS",
4790
+ pathname: "/",
4791
+ method: "POST",
4792
+ authType: "AK",
4793
+ style: "RPC",
4794
+ reqBodyType: "formData",
4795
+ bodyType: "json",
4796
+ });
4797
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryWabaBusinessInfoResponse({}));
4798
+ }
4799
+ /**
4800
+ * Queries the business information about the WhatsApp Business account (WABA).
4801
+ *
4802
+ * @remarks
4803
+ * 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.
4804
+ *
4805
+ * @param request - QueryWabaBusinessInfoRequest
4806
+ * @returns QueryWabaBusinessInfoResponse
4807
+ */
4808
+ async queryWabaBusinessInfo(request) {
4809
+ let runtime = new $dara.RuntimeOptions({});
4810
+ return await this.queryWabaBusinessInfoWithOptions(request, runtime);
4811
+ }
4812
+ /**
4813
+ * Retrieve Flow
4814
+ *
4815
+ * @param tmpReq - ReadChatFlowRequest
4816
+ * @param runtime - runtime options for this request RuntimeOptions
4817
+ * @returns ReadChatFlowResponse
4818
+ */
4819
+ async readChatFlowWithOptions(tmpReq, runtime) {
4820
+ tmpReq.validate();
4821
+ let request = new $_model.ReadChatFlowShrinkRequest({});
4822
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4823
+ if (!$dara.isNull(tmpReq.bizExtend)) {
4824
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
4825
+ }
4826
+ let query = {};
4827
+ if (!$dara.isNull(request.bizCode)) {
4828
+ query["BizCode"] = request.bizCode;
4829
+ }
4830
+ if (!$dara.isNull(request.bizExtendShrink)) {
4831
+ query["BizExtend"] = request.bizExtendShrink;
4832
+ }
4833
+ if (!$dara.isNull(request.flowCode)) {
4834
+ query["FlowCode"] = request.flowCode;
4835
+ }
4836
+ if (!$dara.isNull(request.ownerId)) {
4837
+ query["OwnerId"] = request.ownerId;
4838
+ }
4839
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4840
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4841
+ }
4842
+ if (!$dara.isNull(request.resourceOwnerId)) {
4843
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4844
+ }
4845
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4846
+ query: openapi_core_2.OpenApiUtil.query(query),
4847
+ });
4848
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4849
+ action: "ReadChatFlow",
4850
+ version: "2020-06-06",
4851
+ protocol: "HTTPS",
4852
+ pathname: "/",
4853
+ method: "POST",
4854
+ authType: "AK",
4855
+ style: "RPC",
4856
+ reqBodyType: "formData",
4857
+ bodyType: "json",
4858
+ });
4859
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReadChatFlowResponse({}));
4860
+ }
4861
+ /**
4862
+ * Retrieve Flow
4863
+ *
4864
+ * @param request - ReadChatFlowRequest
4865
+ * @returns ReadChatFlowResponse
4866
+ */
4867
+ async readChatFlow(request) {
4868
+ let runtime = new $dara.RuntimeOptions({});
4869
+ return await this.readChatFlowWithOptions(request, runtime);
4870
+ }
4871
+ /**
4872
+ * View chatFlow log settings
4873
+ *
4874
+ * @param request - ReadChatFlowLogSettingRequest
3390
4875
  * @param runtime - runtime options for this request RuntimeOptions
3391
- * @returns QueryPhoneBusinessProfileResponse
4876
+ * @returns ReadChatFlowLogSettingResponse
3392
4877
  */
3393
- async queryPhoneBusinessProfileWithOptions(request, runtime) {
4878
+ async readChatFlowLogSettingWithOptions(request, runtime) {
3394
4879
  request.validate();
3395
4880
  let query = {};
3396
- if (!$dara.isNull(request.custSpaceId)) {
3397
- query["CustSpaceId"] = request.custSpaceId;
4881
+ if (!$dara.isNull(request.flowCode)) {
4882
+ query["FlowCode"] = request.flowCode;
3398
4883
  }
3399
4884
  if (!$dara.isNull(request.ownerId)) {
3400
4885
  query["OwnerId"] = request.ownerId;
3401
4886
  }
3402
- if (!$dara.isNull(request.phoneNumber)) {
3403
- query["PhoneNumber"] = request.phoneNumber;
3404
- }
3405
4887
  if (!$dara.isNull(request.resourceOwnerAccount)) {
3406
4888
  query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3407
4889
  }
@@ -3412,7 +4894,7 @@ class Client extends openapi_core_1.default {
3412
4894
  query: openapi_core_2.OpenApiUtil.query(query),
3413
4895
  });
3414
4896
  let params = new openapi_core_2.$OpenApiUtil.Params({
3415
- action: "QueryPhoneBusinessProfile",
4897
+ action: "ReadChatFlowLogSetting",
3416
4898
  version: "2020-06-06",
3417
4899
  protocol: "HTTPS",
3418
4900
  pathname: "/",
@@ -3422,36 +4904,44 @@ class Client extends openapi_core_1.default {
3422
4904
  reqBodyType: "formData",
3423
4905
  bodyType: "json",
3424
4906
  });
3425
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryPhoneBusinessProfileResponse({}));
4907
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReadChatFlowLogSettingResponse({}));
3426
4908
  }
3427
4909
  /**
3428
- * Queries the business information of the account to which a specified phone number is bound.
3429
- *
3430
- * @remarks
3431
- * 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.
4910
+ * View chatFlow log settings
3432
4911
  *
3433
- * @param request - QueryPhoneBusinessProfileRequest
3434
- * @returns QueryPhoneBusinessProfileResponse
4912
+ * @param request - ReadChatFlowLogSettingRequest
4913
+ * @returns ReadChatFlowLogSettingResponse
3435
4914
  */
3436
- async queryPhoneBusinessProfile(request) {
4915
+ async readChatFlowLogSetting(request) {
3437
4916
  let runtime = new $dara.RuntimeOptions({});
3438
- return await this.queryPhoneBusinessProfileWithOptions(request, runtime);
4917
+ return await this.readChatFlowLogSettingWithOptions(request, runtime);
3439
4918
  }
3440
4919
  /**
3441
- * Queries the business information about the WhatsApp Business account (WABA).
3442
- *
3443
- * @remarks
3444
- * 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.
4920
+ * Get Flow Version
3445
4921
  *
3446
- * @param request - QueryWabaBusinessInfoRequest
4922
+ * @param tmpReq - ReadFlowVersionRequest
3447
4923
  * @param runtime - runtime options for this request RuntimeOptions
3448
- * @returns QueryWabaBusinessInfoResponse
4924
+ * @returns ReadFlowVersionResponse
3449
4925
  */
3450
- async queryWabaBusinessInfoWithOptions(request, runtime) {
3451
- request.validate();
4926
+ async readFlowVersionWithOptions(tmpReq, runtime) {
4927
+ tmpReq.validate();
4928
+ let request = new $_model.ReadFlowVersionShrinkRequest({});
4929
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
4930
+ if (!$dara.isNull(tmpReq.bizExtend)) {
4931
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
4932
+ }
3452
4933
  let query = {};
3453
- if (!$dara.isNull(request.custSpaceId)) {
3454
- query["CustSpaceId"] = request.custSpaceId;
4934
+ if (!$dara.isNull(request.bizCode)) {
4935
+ query["BizCode"] = request.bizCode;
4936
+ }
4937
+ if (!$dara.isNull(request.bizExtendShrink)) {
4938
+ query["BizExtend"] = request.bizExtendShrink;
4939
+ }
4940
+ if (!$dara.isNull(request.flowCode)) {
4941
+ query["FlowCode"] = request.flowCode;
4942
+ }
4943
+ if (!$dara.isNull(request.flowVersion)) {
4944
+ query["FlowVersion"] = request.flowVersion;
3455
4945
  }
3456
4946
  if (!$dara.isNull(request.ownerId)) {
3457
4947
  query["OwnerId"] = request.ownerId;
@@ -3462,14 +4952,14 @@ class Client extends openapi_core_1.default {
3462
4952
  if (!$dara.isNull(request.resourceOwnerId)) {
3463
4953
  query["ResourceOwnerId"] = request.resourceOwnerId;
3464
4954
  }
3465
- if (!$dara.isNull(request.wabaId)) {
3466
- query["WabaId"] = request.wabaId;
4955
+ if (!$dara.isNull(request.status)) {
4956
+ query["Status"] = request.status;
3467
4957
  }
3468
4958
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3469
4959
  query: openapi_core_2.OpenApiUtil.query(query),
3470
4960
  });
3471
4961
  let params = new openapi_core_2.$OpenApiUtil.Params({
3472
- action: "QueryWabaBusinessInfo",
4962
+ action: "ReadFlowVersion",
3473
4963
  version: "2020-06-06",
3474
4964
  protocol: "HTTPS",
3475
4965
  pathname: "/",
@@ -3479,20 +4969,17 @@ class Client extends openapi_core_1.default {
3479
4969
  reqBodyType: "formData",
3480
4970
  bodyType: "json",
3481
4971
  });
3482
- return $dara.cast(await this.callApi(params, req, runtime), new $_model.QueryWabaBusinessInfoResponse({}));
4972
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ReadFlowVersionResponse({}));
3483
4973
  }
3484
4974
  /**
3485
- * Queries the business information about the WhatsApp Business account (WABA).
3486
- *
3487
- * @remarks
3488
- * 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.
4975
+ * Get Flow Version
3489
4976
  *
3490
- * @param request - QueryWabaBusinessInfoRequest
3491
- * @returns QueryWabaBusinessInfoResponse
4977
+ * @param request - ReadFlowVersionRequest
4978
+ * @returns ReadFlowVersionResponse
3492
4979
  */
3493
- async queryWabaBusinessInfo(request) {
4980
+ async readFlowVersion(request) {
3494
4981
  let runtime = new $dara.RuntimeOptions({});
3495
- return await this.queryWabaBusinessInfoWithOptions(request, runtime);
4982
+ return await this.readFlowVersionWithOptions(request, runtime);
3496
4983
  }
3497
4984
  /**
3498
4985
  * Sends a message to multiple phone numbers by using ChatAPP at a time.
@@ -3768,6 +5255,15 @@ class Client extends openapi_core_1.default {
3768
5255
  if (!$dara.isNull(request.officeAddress)) {
3769
5256
  query["OfficeAddress"] = request.officeAddress;
3770
5257
  }
5258
+ if (!$dara.isNull(request.ownerId)) {
5259
+ query["OwnerId"] = request.ownerId;
5260
+ }
5261
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5262
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5263
+ }
5264
+ if (!$dara.isNull(request.resourceOwnerId)) {
5265
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5266
+ }
3771
5267
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3772
5268
  query: openapi_core_2.OpenApiUtil.query(query),
3773
5269
  });
@@ -3891,9 +5387,18 @@ class Client extends openapi_core_1.default {
3891
5387
  if (!$dara.isNull(request.httpFlag)) {
3892
5388
  query["HttpFlag"] = request.httpFlag;
3893
5389
  }
5390
+ if (!$dara.isNull(request.ownerId)) {
5391
+ query["OwnerId"] = request.ownerId;
5392
+ }
3894
5393
  if (!$dara.isNull(request.queueFlag)) {
3895
5394
  query["QueueFlag"] = request.queueFlag;
3896
5395
  }
5396
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5397
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5398
+ }
5399
+ if (!$dara.isNull(request.resourceOwnerId)) {
5400
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5401
+ }
3897
5402
  if (!$dara.isNull(request.statusCallbackUrl)) {
3898
5403
  query["StatusCallbackUrl"] = request.statusCallbackUrl;
3899
5404
  }
@@ -3926,6 +5431,125 @@ class Client extends openapi_core_1.default {
3926
5431
  let runtime = new $dara.RuntimeOptions({});
3927
5432
  return await this.updateAccountWebhookWithOptions(request, runtime);
3928
5433
  }
5434
+ /**
5435
+ * Get Process
5436
+ *
5437
+ * @param tmpReq - UpdateChatFlowRequest
5438
+ * @param runtime - runtime options for this request RuntimeOptions
5439
+ * @returns UpdateChatFlowResponse
5440
+ */
5441
+ async updateChatFlowWithOptions(tmpReq, runtime) {
5442
+ tmpReq.validate();
5443
+ let request = new $_model.UpdateChatFlowShrinkRequest({});
5444
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5445
+ if (!$dara.isNull(tmpReq.bizExtend)) {
5446
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
5447
+ }
5448
+ let query = {};
5449
+ if (!$dara.isNull(request.bizCode)) {
5450
+ query["BizCode"] = request.bizCode;
5451
+ }
5452
+ if (!$dara.isNull(request.bizExtendShrink)) {
5453
+ query["BizExtend"] = request.bizExtendShrink;
5454
+ }
5455
+ if (!$dara.isNull(request.flowCode)) {
5456
+ query["FlowCode"] = request.flowCode;
5457
+ }
5458
+ if (!$dara.isNull(request.ownerId)) {
5459
+ query["OwnerId"] = request.ownerId;
5460
+ }
5461
+ if (!$dara.isNull(request.remark)) {
5462
+ query["Remark"] = request.remark;
5463
+ }
5464
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5465
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5466
+ }
5467
+ if (!$dara.isNull(request.resourceOwnerId)) {
5468
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5469
+ }
5470
+ if (!$dara.isNull(request.title)) {
5471
+ query["Title"] = request.title;
5472
+ }
5473
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5474
+ query: openapi_core_2.OpenApiUtil.query(query),
5475
+ });
5476
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5477
+ action: "UpdateChatFlow",
5478
+ version: "2020-06-06",
5479
+ protocol: "HTTPS",
5480
+ pathname: "/",
5481
+ method: "POST",
5482
+ authType: "AK",
5483
+ style: "RPC",
5484
+ reqBodyType: "formData",
5485
+ bodyType: "json",
5486
+ });
5487
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateChatFlowResponse({}));
5488
+ }
5489
+ /**
5490
+ * Get Process
5491
+ *
5492
+ * @param request - UpdateChatFlowRequest
5493
+ * @returns UpdateChatFlowResponse
5494
+ */
5495
+ async updateChatFlow(request) {
5496
+ let runtime = new $dara.RuntimeOptions({});
5497
+ return await this.updateChatFlowWithOptions(request, runtime);
5498
+ }
5499
+ /**
5500
+ * Modify chatFlow log settings
5501
+ *
5502
+ * @param request - UpdateChatFlowLogSettingRequest
5503
+ * @param runtime - runtime options for this request RuntimeOptions
5504
+ * @returns UpdateChatFlowLogSettingResponse
5505
+ */
5506
+ async updateChatFlowLogSettingWithOptions(request, runtime) {
5507
+ request.validate();
5508
+ let query = {};
5509
+ if (!$dara.isNull(request.flowCode)) {
5510
+ query["FlowCode"] = request.flowCode;
5511
+ }
5512
+ if (!$dara.isNull(request.id)) {
5513
+ query["Id"] = request.id;
5514
+ }
5515
+ if (!$dara.isNull(request.ownerId)) {
5516
+ query["OwnerId"] = request.ownerId;
5517
+ }
5518
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5519
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5520
+ }
5521
+ if (!$dara.isNull(request.resourceOwnerId)) {
5522
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5523
+ }
5524
+ if (!$dara.isNull(request.status)) {
5525
+ query["Status"] = request.status;
5526
+ }
5527
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5528
+ query: openapi_core_2.OpenApiUtil.query(query),
5529
+ });
5530
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5531
+ action: "UpdateChatFlowLogSetting",
5532
+ version: "2020-06-06",
5533
+ protocol: "HTTPS",
5534
+ pathname: "/",
5535
+ method: "POST",
5536
+ authType: "AK",
5537
+ style: "RPC",
5538
+ reqBodyType: "formData",
5539
+ bodyType: "json",
5540
+ });
5541
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateChatFlowLogSettingResponse({}));
5542
+ }
5543
+ /**
5544
+ * Modify chatFlow log settings
5545
+ *
5546
+ * @param request - UpdateChatFlowLogSettingRequest
5547
+ * @returns UpdateChatFlowLogSettingResponse
5548
+ */
5549
+ async updateChatFlowLogSetting(request) {
5550
+ let runtime = new $dara.RuntimeOptions({});
5551
+ return await this.updateChatFlowLogSettingWithOptions(request, runtime);
5552
+ }
3929
5553
  /**
3930
5554
  * UpdateChatGroup
3931
5555
  *
@@ -4142,18 +5766,27 @@ class Client extends openapi_core_1.default {
4142
5766
  */
4143
5767
  async updateFlowJSONAssetWithOptions(request, runtime) {
4144
5768
  request.validate();
4145
- let body = {};
5769
+ let query = {};
4146
5770
  if (!$dara.isNull(request.custSpaceId)) {
4147
- body["CustSpaceId"] = request.custSpaceId;
5771
+ query["CustSpaceId"] = request.custSpaceId;
4148
5772
  }
4149
5773
  if (!$dara.isNull(request.filePath)) {
4150
- body["FilePath"] = request.filePath;
5774
+ query["FilePath"] = request.filePath;
4151
5775
  }
4152
5776
  if (!$dara.isNull(request.flowId)) {
4153
- body["FlowId"] = request.flowId;
5777
+ query["FlowId"] = request.flowId;
5778
+ }
5779
+ if (!$dara.isNull(request.ownerId)) {
5780
+ query["OwnerId"] = request.ownerId;
5781
+ }
5782
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5783
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5784
+ }
5785
+ if (!$dara.isNull(request.resourceOwnerId)) {
5786
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4154
5787
  }
4155
5788
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4156
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
5789
+ query: openapi_core_2.OpenApiUtil.query(query),
4157
5790
  });
4158
5791
  let params = new openapi_core_2.$OpenApiUtil.Params({
4159
5792
  action: "UpdateFlowJSONAsset",
@@ -4178,6 +5811,74 @@ class Client extends openapi_core_1.default {
4178
5811
  let runtime = new $dara.RuntimeOptions({});
4179
5812
  return await this.updateFlowJSONAssetWithOptions(request, runtime);
4180
5813
  }
5814
+ /**
5815
+ * Update flow version, used for updating the flow DSL on the canvas
5816
+ *
5817
+ * @param tmpReq - UpdateFlowVersionRequest
5818
+ * @param runtime - runtime options for this request RuntimeOptions
5819
+ * @returns UpdateFlowVersionResponse
5820
+ */
5821
+ async updateFlowVersionWithOptions(tmpReq, runtime) {
5822
+ tmpReq.validate();
5823
+ let request = new $_model.UpdateFlowVersionShrinkRequest({});
5824
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
5825
+ if (!$dara.isNull(tmpReq.bizExtend)) {
5826
+ request.bizExtendShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.bizExtend, "BizExtend", "json");
5827
+ }
5828
+ let query = {};
5829
+ if (!$dara.isNull(request.bizCode)) {
5830
+ query["BizCode"] = request.bizCode;
5831
+ }
5832
+ if (!$dara.isNull(request.bizExtendShrink)) {
5833
+ query["BizExtend"] = request.bizExtendShrink;
5834
+ }
5835
+ if (!$dara.isNull(request.flowCode)) {
5836
+ query["FlowCode"] = request.flowCode;
5837
+ }
5838
+ if (!$dara.isNull(request.flowVersion)) {
5839
+ query["FlowVersion"] = request.flowVersion;
5840
+ }
5841
+ if (!$dara.isNull(request.flowViewModel)) {
5842
+ query["FlowViewModel"] = request.flowViewModel;
5843
+ }
5844
+ if (!$dara.isNull(request.ownerId)) {
5845
+ query["OwnerId"] = request.ownerId;
5846
+ }
5847
+ if (!$dara.isNull(request.remark)) {
5848
+ query["Remark"] = request.remark;
5849
+ }
5850
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5851
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5852
+ }
5853
+ if (!$dara.isNull(request.resourceOwnerId)) {
5854
+ query["ResourceOwnerId"] = request.resourceOwnerId;
5855
+ }
5856
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5857
+ query: openapi_core_2.OpenApiUtil.query(query),
5858
+ });
5859
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5860
+ action: "UpdateFlowVersion",
5861
+ version: "2020-06-06",
5862
+ protocol: "HTTPS",
5863
+ pathname: "/",
5864
+ method: "POST",
5865
+ authType: "AK",
5866
+ style: "RPC",
5867
+ reqBodyType: "formData",
5868
+ bodyType: "json",
5869
+ });
5870
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateFlowVersionResponse({}));
5871
+ }
5872
+ /**
5873
+ * Update flow version, used for updating the flow DSL on the canvas
5874
+ *
5875
+ * @param request - UpdateFlowVersionRequest
5876
+ * @returns UpdateFlowVersionResponse
5877
+ */
5878
+ async updateFlowVersion(request) {
5879
+ let runtime = new $dara.RuntimeOptions({});
5880
+ return await this.updateFlowVersionWithOptions(request, runtime);
5881
+ }
4181
5882
  /**
4182
5883
  * Updates the encryption public key of a phone number.
4183
5884
  *
@@ -4187,18 +5888,27 @@ class Client extends openapi_core_1.default {
4187
5888
  */
4188
5889
  async updatePhoneEncryptionPublicKeyWithOptions(request, runtime) {
4189
5890
  request.validate();
4190
- let body = {};
5891
+ let query = {};
4191
5892
  if (!$dara.isNull(request.custSpaceId)) {
4192
- body["CustSpaceId"] = request.custSpaceId;
5893
+ query["CustSpaceId"] = request.custSpaceId;
4193
5894
  }
4194
5895
  if (!$dara.isNull(request.encryptionPublicKey)) {
4195
- body["EncryptionPublicKey"] = request.encryptionPublicKey;
5896
+ query["EncryptionPublicKey"] = request.encryptionPublicKey;
5897
+ }
5898
+ if (!$dara.isNull(request.ownerId)) {
5899
+ query["OwnerId"] = request.ownerId;
4196
5900
  }
4197
5901
  if (!$dara.isNull(request.phoneNumber)) {
4198
- body["PhoneNumber"] = request.phoneNumber;
5902
+ query["PhoneNumber"] = request.phoneNumber;
5903
+ }
5904
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5905
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5906
+ }
5907
+ if (!$dara.isNull(request.resourceOwnerId)) {
5908
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4199
5909
  }
4200
5910
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4201
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
5911
+ query: openapi_core_2.OpenApiUtil.query(query),
4202
5912
  });
4203
5913
  let params = new openapi_core_2.$OpenApiUtil.Params({
4204
5914
  action: "UpdatePhoneEncryptionPublicKey",
@@ -4232,24 +5942,33 @@ class Client extends openapi_core_1.default {
4232
5942
  */
4233
5943
  async updatePhoneMessageQrdlWithOptions(request, runtime) {
4234
5944
  request.validate();
4235
- let body = {};
5945
+ let query = {};
4236
5946
  if (!$dara.isNull(request.custSpaceId)) {
4237
- body["CustSpaceId"] = request.custSpaceId;
5947
+ query["CustSpaceId"] = request.custSpaceId;
4238
5948
  }
4239
5949
  if (!$dara.isNull(request.generateQrImage)) {
4240
- body["GenerateQrImage"] = request.generateQrImage;
5950
+ query["GenerateQrImage"] = request.generateQrImage;
5951
+ }
5952
+ if (!$dara.isNull(request.ownerId)) {
5953
+ query["OwnerId"] = request.ownerId;
4241
5954
  }
4242
5955
  if (!$dara.isNull(request.phoneNumber)) {
4243
- body["PhoneNumber"] = request.phoneNumber;
5956
+ query["PhoneNumber"] = request.phoneNumber;
4244
5957
  }
4245
5958
  if (!$dara.isNull(request.prefilledMessage)) {
4246
- body["PrefilledMessage"] = request.prefilledMessage;
5959
+ query["PrefilledMessage"] = request.prefilledMessage;
4247
5960
  }
4248
5961
  if (!$dara.isNull(request.qrdlCode)) {
4249
- body["QrdlCode"] = request.qrdlCode;
5962
+ query["QrdlCode"] = request.qrdlCode;
5963
+ }
5964
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
5965
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
5966
+ }
5967
+ if (!$dara.isNull(request.resourceOwnerId)) {
5968
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4250
5969
  }
4251
5970
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4252
- body: openapi_core_2.OpenApiUtil.parseToMap(body),
5971
+ query: openapi_core_2.OpenApiUtil.query(query),
4253
5972
  });
4254
5973
  let params = new openapi_core_2.$OpenApiUtil.Params({
4255
5974
  action: "UpdatePhoneMessageQrdl",
@@ -4295,12 +6014,21 @@ class Client extends openapi_core_1.default {
4295
6014
  if (!$dara.isNull(request.httpFlag)) {
4296
6015
  query["HttpFlag"] = request.httpFlag;
4297
6016
  }
6017
+ if (!$dara.isNull(request.ownerId)) {
6018
+ query["OwnerId"] = request.ownerId;
6019
+ }
4298
6020
  if (!$dara.isNull(request.phoneNumber)) {
4299
6021
  query["PhoneNumber"] = request.phoneNumber;
4300
6022
  }
4301
6023
  if (!$dara.isNull(request.queueFlag)) {
4302
6024
  query["QueueFlag"] = request.queueFlag;
4303
6025
  }
6026
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
6027
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
6028
+ }
6029
+ if (!$dara.isNull(request.resourceOwnerId)) {
6030
+ query["ResourceOwnerId"] = request.resourceOwnerId;
6031
+ }
4304
6032
  if (!$dara.isNull(request.statusCallbackUrl)) {
4305
6033
  query["StatusCallbackUrl"] = request.statusCallbackUrl;
4306
6034
  }