@geminilight/mindos 0.6.73 → 0.6.74

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 (1029) hide show
  1. package/app/next-env.d.ts +1 -1
  2. package/app/package.json +1 -1
  3. package/package.json +1 -1
  4. package/_standalone/.antigravity/mcp_config.json +0 -14
  5. package/_standalone/.mindos-build-version +0 -1
  6. package/_standalone/.next/BUILD_ID +0 -1
  7. package/_standalone/.next/app-path-routes-manifest.json +0 -92
  8. package/_standalone/.next/build-manifest.json +0 -20
  9. package/_standalone/.next/cache/.previewinfo +0 -1
  10. package/_standalone/.next/cache/.rscinfo +0 -1
  11. package/_standalone/.next/cache/config.json +0 -7
  12. package/_standalone/.next/diagnostics/build-diagnostics.json +0 -6
  13. package/_standalone/.next/diagnostics/framework.json +0 -1
  14. package/_standalone/.next/lock +0 -0
  15. package/_standalone/.next/package.json +0 -1
  16. package/_standalone/.next/prerender-manifest.json +0 -65
  17. package/_standalone/.next/react-loadable-manifest.json +0 -179
  18. package/_standalone/.next/required-server-files.json +0 -339
  19. package/_standalone/.next/routes-manifest.json +0 -591
  20. package/_standalone/.next/server/app/.well-known/agent-card.json/route.js +0 -1
  21. package/_standalone/.next/server/app/.well-known/agent-card.json/route.js.nft.json +0 -1
  22. package/_standalone/.next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +0 -1
  23. package/_standalone/.next/server/app/_global-error/page.js +0 -3
  24. package/_standalone/.next/server/app/_global-error/page.js.nft.json +0 -1
  25. package/_standalone/.next/server/app/_global-error/page_client-reference-manifest.js +0 -1
  26. package/_standalone/.next/server/app/_global-error.html +0 -2
  27. package/_standalone/.next/server/app/_global-error.meta +0 -16
  28. package/_standalone/.next/server/app/_global-error.rsc +0 -18
  29. package/_standalone/.next/server/app/_global-error.segments/_full.segment.rsc +0 -18
  30. package/_standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +0 -5
  31. package/_standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +0 -4
  32. package/_standalone/.next/server/app/_global-error.segments/_head.segment.rsc +0 -5
  33. package/_standalone/.next/server/app/_global-error.segments/_index.segment.rsc +0 -10
  34. package/_standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +0 -1
  35. package/_standalone/.next/server/app/_not-found/page.js +0 -2
  36. package/_standalone/.next/server/app/_not-found/page.js.nft.json +0 -1
  37. package/_standalone/.next/server/app/_not-found/page_client-reference-manifest.js +0 -1
  38. package/_standalone/.next/server/app/agents/[agentKey]/page.js +0 -2
  39. package/_standalone/.next/server/app/agents/[agentKey]/page.js.nft.json +0 -1
  40. package/_standalone/.next/server/app/agents/[agentKey]/page_client-reference-manifest.js +0 -1
  41. package/_standalone/.next/server/app/agents/page.js +0 -2
  42. package/_standalone/.next/server/app/agents/page.js.nft.json +0 -1
  43. package/_standalone/.next/server/app/agents/page_client-reference-manifest.js +0 -1
  44. package/_standalone/.next/server/app/api/a2a/agents/route.js +0 -1
  45. package/_standalone/.next/server/app/api/a2a/agents/route.js.nft.json +0 -1
  46. package/_standalone/.next/server/app/api/a2a/agents/route_client-reference-manifest.js +0 -1
  47. package/_standalone/.next/server/app/api/a2a/delegations/route.js +0 -1
  48. package/_standalone/.next/server/app/api/a2a/delegations/route.js.nft.json +0 -1
  49. package/_standalone/.next/server/app/api/a2a/delegations/route_client-reference-manifest.js +0 -1
  50. package/_standalone/.next/server/app/api/a2a/discover/route.js +0 -1
  51. package/_standalone/.next/server/app/api/a2a/discover/route.js.nft.json +0 -1
  52. package/_standalone/.next/server/app/api/a2a/discover/route_client-reference-manifest.js +0 -1
  53. package/_standalone/.next/server/app/api/a2a/route.js +0 -1
  54. package/_standalone/.next/server/app/api/a2a/route.js.nft.json +0 -1
  55. package/_standalone/.next/server/app/api/a2a/route_client-reference-manifest.js +0 -1
  56. package/_standalone/.next/server/app/api/acp/config/route.js +0 -1
  57. package/_standalone/.next/server/app/api/acp/config/route.js.nft.json +0 -1
  58. package/_standalone/.next/server/app/api/acp/config/route_client-reference-manifest.js +0 -1
  59. package/_standalone/.next/server/app/api/acp/detect/route.js +0 -1
  60. package/_standalone/.next/server/app/api/acp/detect/route.js.nft.json +0 -1
  61. package/_standalone/.next/server/app/api/acp/detect/route_client-reference-manifest.js +0 -1
  62. package/_standalone/.next/server/app/api/acp/install/route.js +0 -1
  63. package/_standalone/.next/server/app/api/acp/install/route.js.nft.json +0 -1
  64. package/_standalone/.next/server/app/api/acp/install/route_client-reference-manifest.js +0 -1
  65. package/_standalone/.next/server/app/api/acp/registry/route.js +0 -1
  66. package/_standalone/.next/server/app/api/acp/registry/route.js.nft.json +0 -1
  67. package/_standalone/.next/server/app/api/acp/registry/route_client-reference-manifest.js +0 -1
  68. package/_standalone/.next/server/app/api/acp/session/route.js +0 -1
  69. package/_standalone/.next/server/app/api/acp/session/route.js.nft.json +0 -1
  70. package/_standalone/.next/server/app/api/acp/session/route_client-reference-manifest.js +0 -1
  71. package/_standalone/.next/server/app/api/agent-activity/route.js +0 -1
  72. package/_standalone/.next/server/app/api/agent-activity/route.js.nft.json +0 -1
  73. package/_standalone/.next/server/app/api/agent-activity/route_client-reference-manifest.js +0 -1
  74. package/_standalone/.next/server/app/api/agents/copy-skill/route.js +0 -1
  75. package/_standalone/.next/server/app/api/agents/copy-skill/route.js.nft.json +0 -1
  76. package/_standalone/.next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +0 -1
  77. package/_standalone/.next/server/app/api/agents/custom/detect/route.js +0 -1
  78. package/_standalone/.next/server/app/api/agents/custom/detect/route.js.nft.json +0 -1
  79. package/_standalone/.next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +0 -1
  80. package/_standalone/.next/server/app/api/agents/custom/route.js +0 -1
  81. package/_standalone/.next/server/app/api/agents/custom/route.js.nft.json +0 -1
  82. package/_standalone/.next/server/app/api/agents/custom/route_client-reference-manifest.js +0 -1
  83. package/_standalone/.next/server/app/api/ask/route.js +0 -130
  84. package/_standalone/.next/server/app/api/ask/route.js.nft.json +0 -1
  85. package/_standalone/.next/server/app/api/ask/route_client-reference-manifest.js +0 -1
  86. package/_standalone/.next/server/app/api/ask-sessions/route.js +0 -1
  87. package/_standalone/.next/server/app/api/ask-sessions/route.js.nft.json +0 -1
  88. package/_standalone/.next/server/app/api/ask-sessions/route_client-reference-manifest.js +0 -1
  89. package/_standalone/.next/server/app/api/auth/route.js +0 -1
  90. package/_standalone/.next/server/app/api/auth/route.js.nft.json +0 -1
  91. package/_standalone/.next/server/app/api/auth/route_client-reference-manifest.js +0 -1
  92. package/_standalone/.next/server/app/api/backlinks/route.js +0 -1
  93. package/_standalone/.next/server/app/api/backlinks/route.js.nft.json +0 -1
  94. package/_standalone/.next/server/app/api/backlinks/route_client-reference-manifest.js +0 -1
  95. package/_standalone/.next/server/app/api/bootstrap/route.js +0 -1
  96. package/_standalone/.next/server/app/api/bootstrap/route.js.nft.json +0 -1
  97. package/_standalone/.next/server/app/api/bootstrap/route_client-reference-manifest.js +0 -1
  98. package/_standalone/.next/server/app/api/changes/route.js +0 -1
  99. package/_standalone/.next/server/app/api/changes/route.js.nft.json +0 -1
  100. package/_standalone/.next/server/app/api/changes/route_client-reference-manifest.js +0 -1
  101. package/_standalone/.next/server/app/api/channels/verify/route.js +0 -1
  102. package/_standalone/.next/server/app/api/channels/verify/route.js.nft.json +0 -1
  103. package/_standalone/.next/server/app/api/channels/verify/route_client-reference-manifest.js +0 -1
  104. package/_standalone/.next/server/app/api/connect/route.js +0 -1
  105. package/_standalone/.next/server/app/api/connect/route.js.nft.json +0 -1
  106. package/_standalone/.next/server/app/api/connect/route_client-reference-manifest.js +0 -1
  107. package/_standalone/.next/server/app/api/embedding/route.js +0 -1
  108. package/_standalone/.next/server/app/api/embedding/route.js.nft.json +0 -1
  109. package/_standalone/.next/server/app/api/embedding/route_client-reference-manifest.js +0 -1
  110. package/_standalone/.next/server/app/api/export/route.js +0 -57
  111. package/_standalone/.next/server/app/api/export/route.js.nft.json +0 -1
  112. package/_standalone/.next/server/app/api/export/route_client-reference-manifest.js +0 -1
  113. package/_standalone/.next/server/app/api/extract-pdf/route.js +0 -3
  114. package/_standalone/.next/server/app/api/extract-pdf/route.js.nft.json +0 -1
  115. package/_standalone/.next/server/app/api/extract-pdf/route_client-reference-manifest.js +0 -1
  116. package/_standalone/.next/server/app/api/file/import/route.js +0 -4
  117. package/_standalone/.next/server/app/api/file/import/route.js.nft.json +0 -1
  118. package/_standalone/.next/server/app/api/file/import/route_client-reference-manifest.js +0 -1
  119. package/_standalone/.next/server/app/api/file/raw/route.js +0 -1
  120. package/_standalone/.next/server/app/api/file/raw/route.js.nft.json +0 -1
  121. package/_standalone/.next/server/app/api/file/raw/route_client-reference-manifest.js +0 -1
  122. package/_standalone/.next/server/app/api/file/route.js +0 -1
  123. package/_standalone/.next/server/app/api/file/route.js.nft.json +0 -1
  124. package/_standalone/.next/server/app/api/file/route_client-reference-manifest.js +0 -1
  125. package/_standalone/.next/server/app/api/files/route.js +0 -1
  126. package/_standalone/.next/server/app/api/files/route.js.nft.json +0 -1
  127. package/_standalone/.next/server/app/api/files/route_client-reference-manifest.js +0 -1
  128. package/_standalone/.next/server/app/api/git/route.js +0 -1
  129. package/_standalone/.next/server/app/api/git/route.js.nft.json +0 -1
  130. package/_standalone/.next/server/app/api/git/route_client-reference-manifest.js +0 -1
  131. package/_standalone/.next/server/app/api/graph/route.js +0 -1
  132. package/_standalone/.next/server/app/api/graph/route.js.nft.json +0 -1
  133. package/_standalone/.next/server/app/api/graph/route_client-reference-manifest.js +0 -1
  134. package/_standalone/.next/server/app/api/health/route.js +0 -1
  135. package/_standalone/.next/server/app/api/health/route.js.nft.json +0 -1
  136. package/_standalone/.next/server/app/api/health/route_client-reference-manifest.js +0 -1
  137. package/_standalone/.next/server/app/api/im/activity/route.js +0 -1
  138. package/_standalone/.next/server/app/api/im/activity/route.js.nft.json +0 -1
  139. package/_standalone/.next/server/app/api/im/activity/route_client-reference-manifest.js +0 -1
  140. package/_standalone/.next/server/app/api/im/config/route.js +0 -1
  141. package/_standalone/.next/server/app/api/im/config/route.js.nft.json +0 -1
  142. package/_standalone/.next/server/app/api/im/config/route_client-reference-manifest.js +0 -1
  143. package/_standalone/.next/server/app/api/im/status/route.js +0 -7
  144. package/_standalone/.next/server/app/api/im/status/route.js.nft.json +0 -1
  145. package/_standalone/.next/server/app/api/im/status/route_client-reference-manifest.js +0 -1
  146. package/_standalone/.next/server/app/api/im/test/route.js +0 -1
  147. package/_standalone/.next/server/app/api/im/test/route.js.nft.json +0 -1
  148. package/_standalone/.next/server/app/api/im/test/route_client-reference-manifest.js +0 -1
  149. package/_standalone/.next/server/app/api/im/webhook/feishu/route.js +0 -7
  150. package/_standalone/.next/server/app/api/im/webhook/feishu/route.js.nft.json +0 -1
  151. package/_standalone/.next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +0 -1
  152. package/_standalone/.next/server/app/api/im/webhook-status/route.js +0 -7
  153. package/_standalone/.next/server/app/api/im/webhook-status/route.js.nft.json +0 -1
  154. package/_standalone/.next/server/app/api/im/webhook-status/route_client-reference-manifest.js +0 -1
  155. package/_standalone/.next/server/app/api/inbox/clip/route.js +0 -8
  156. package/_standalone/.next/server/app/api/inbox/clip/route.js.nft.json +0 -1
  157. package/_standalone/.next/server/app/api/inbox/clip/route_client-reference-manifest.js +0 -1
  158. package/_standalone/.next/server/app/api/inbox/route.js +0 -1
  159. package/_standalone/.next/server/app/api/inbox/route.js.nft.json +0 -1
  160. package/_standalone/.next/server/app/api/inbox/route_client-reference-manifest.js +0 -1
  161. package/_standalone/.next/server/app/api/init/route.js +0 -1
  162. package/_standalone/.next/server/app/api/init/route.js.nft.json +0 -1
  163. package/_standalone/.next/server/app/api/init/route_client-reference-manifest.js +0 -1
  164. package/_standalone/.next/server/app/api/lint/route.js +0 -1
  165. package/_standalone/.next/server/app/api/lint/route.js.nft.json +0 -1
  166. package/_standalone/.next/server/app/api/lint/route_client-reference-manifest.js +0 -1
  167. package/_standalone/.next/server/app/api/mcp/agents/route.js +0 -1
  168. package/_standalone/.next/server/app/api/mcp/agents/route.js.nft.json +0 -1
  169. package/_standalone/.next/server/app/api/mcp/agents/route_client-reference-manifest.js +0 -1
  170. package/_standalone/.next/server/app/api/mcp/direct-tools/route.js +0 -1
  171. package/_standalone/.next/server/app/api/mcp/direct-tools/route.js.nft.json +0 -1
  172. package/_standalone/.next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +0 -1
  173. package/_standalone/.next/server/app/api/mcp/install/route.js +0 -1
  174. package/_standalone/.next/server/app/api/mcp/install/route.js.nft.json +0 -1
  175. package/_standalone/.next/server/app/api/mcp/install/route_client-reference-manifest.js +0 -1
  176. package/_standalone/.next/server/app/api/mcp/install-skill/route.js +0 -1
  177. package/_standalone/.next/server/app/api/mcp/install-skill/route.js.nft.json +0 -1
  178. package/_standalone/.next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +0 -1
  179. package/_standalone/.next/server/app/api/mcp/restart/route.js +0 -1
  180. package/_standalone/.next/server/app/api/mcp/restart/route.js.nft.json +0 -1
  181. package/_standalone/.next/server/app/api/mcp/restart/route_client-reference-manifest.js +0 -1
  182. package/_standalone/.next/server/app/api/mcp/status/route.js +0 -1
  183. package/_standalone/.next/server/app/api/mcp/status/route.js.nft.json +0 -1
  184. package/_standalone/.next/server/app/api/mcp/status/route_client-reference-manifest.js +0 -1
  185. package/_standalone/.next/server/app/api/mcp/tools/route.js +0 -1
  186. package/_standalone/.next/server/app/api/mcp/tools/route.js.nft.json +0 -1
  187. package/_standalone/.next/server/app/api/mcp/tools/route_client-reference-manifest.js +0 -1
  188. package/_standalone/.next/server/app/api/mcp/uninstall/route.js +0 -1
  189. package/_standalone/.next/server/app/api/mcp/uninstall/route.js.nft.json +0 -1
  190. package/_standalone/.next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +0 -1
  191. package/_standalone/.next/server/app/api/monitoring/route.js +0 -1
  192. package/_standalone/.next/server/app/api/monitoring/route.js.nft.json +0 -1
  193. package/_standalone/.next/server/app/api/monitoring/route_client-reference-manifest.js +0 -1
  194. package/_standalone/.next/server/app/api/recent-files/route.js +0 -1
  195. package/_standalone/.next/server/app/api/recent-files/route.js.nft.json +0 -1
  196. package/_standalone/.next/server/app/api/recent-files/route_client-reference-manifest.js +0 -1
  197. package/_standalone/.next/server/app/api/restart/route.js +0 -1
  198. package/_standalone/.next/server/app/api/restart/route.js.nft.json +0 -1
  199. package/_standalone/.next/server/app/api/restart/route_client-reference-manifest.js +0 -1
  200. package/_standalone/.next/server/app/api/search/route.js +0 -1
  201. package/_standalone/.next/server/app/api/search/route.js.nft.json +0 -1
  202. package/_standalone/.next/server/app/api/search/route_client-reference-manifest.js +0 -1
  203. package/_standalone/.next/server/app/api/settings/list-models/route.js +0 -1
  204. package/_standalone/.next/server/app/api/settings/list-models/route.js.nft.json +0 -1
  205. package/_standalone/.next/server/app/api/settings/list-models/route_client-reference-manifest.js +0 -1
  206. package/_standalone/.next/server/app/api/settings/reset-token/route.js +0 -1
  207. package/_standalone/.next/server/app/api/settings/reset-token/route.js.nft.json +0 -1
  208. package/_standalone/.next/server/app/api/settings/reset-token/route_client-reference-manifest.js +0 -1
  209. package/_standalone/.next/server/app/api/settings/route.js +0 -1
  210. package/_standalone/.next/server/app/api/settings/route.js.nft.json +0 -1
  211. package/_standalone/.next/server/app/api/settings/route_client-reference-manifest.js +0 -1
  212. package/_standalone/.next/server/app/api/settings/test-key/route.js +0 -1
  213. package/_standalone/.next/server/app/api/settings/test-key/route.js.nft.json +0 -1
  214. package/_standalone/.next/server/app/api/settings/test-key/route_client-reference-manifest.js +0 -1
  215. package/_standalone/.next/server/app/api/setup/check-path/route.js +0 -1
  216. package/_standalone/.next/server/app/api/setup/check-path/route.js.nft.json +0 -1
  217. package/_standalone/.next/server/app/api/setup/check-path/route_client-reference-manifest.js +0 -1
  218. package/_standalone/.next/server/app/api/setup/check-port/route.js +0 -1
  219. package/_standalone/.next/server/app/api/setup/check-port/route.js.nft.json +0 -1
  220. package/_standalone/.next/server/app/api/setup/check-port/route_client-reference-manifest.js +0 -1
  221. package/_standalone/.next/server/app/api/setup/generate-token/route.js +0 -1
  222. package/_standalone/.next/server/app/api/setup/generate-token/route.js.nft.json +0 -1
  223. package/_standalone/.next/server/app/api/setup/generate-token/route_client-reference-manifest.js +0 -1
  224. package/_standalone/.next/server/app/api/setup/ls/route.js +0 -1
  225. package/_standalone/.next/server/app/api/setup/ls/route.js.nft.json +0 -1
  226. package/_standalone/.next/server/app/api/setup/ls/route_client-reference-manifest.js +0 -1
  227. package/_standalone/.next/server/app/api/setup/route.js +0 -1
  228. package/_standalone/.next/server/app/api/setup/route.js.nft.json +0 -1
  229. package/_standalone/.next/server/app/api/setup/route_client-reference-manifest.js +0 -1
  230. package/_standalone/.next/server/app/api/skills/route.js +0 -6
  231. package/_standalone/.next/server/app/api/skills/route.js.nft.json +0 -1
  232. package/_standalone/.next/server/app/api/skills/route_client-reference-manifest.js +0 -1
  233. package/_standalone/.next/server/app/api/space-overview/route.js +0 -60
  234. package/_standalone/.next/server/app/api/space-overview/route.js.nft.json +0 -1
  235. package/_standalone/.next/server/app/api/space-overview/route_client-reference-manifest.js +0 -1
  236. package/_standalone/.next/server/app/api/sync/route.js +0 -1
  237. package/_standalone/.next/server/app/api/sync/route.js.nft.json +0 -1
  238. package/_standalone/.next/server/app/api/sync/route_client-reference-manifest.js +0 -1
  239. package/_standalone/.next/server/app/api/tree-version/route.js +0 -1
  240. package/_standalone/.next/server/app/api/tree-version/route.js.nft.json +0 -1
  241. package/_standalone/.next/server/app/api/tree-version/route_client-reference-manifest.js +0 -1
  242. package/_standalone/.next/server/app/api/uninstall/route.js +0 -4
  243. package/_standalone/.next/server/app/api/uninstall/route.js.nft.json +0 -1
  244. package/_standalone/.next/server/app/api/uninstall/route_client-reference-manifest.js +0 -1
  245. package/_standalone/.next/server/app/api/update/route.js +0 -1
  246. package/_standalone/.next/server/app/api/update/route.js.nft.json +0 -1
  247. package/_standalone/.next/server/app/api/update/route_client-reference-manifest.js +0 -1
  248. package/_standalone/.next/server/app/api/update-check/route.js +0 -1
  249. package/_standalone/.next/server/app/api/update-check/route.js.nft.json +0 -1
  250. package/_standalone/.next/server/app/api/update-check/route_client-reference-manifest.js +0 -1
  251. package/_standalone/.next/server/app/api/update-status/route.js +0 -1
  252. package/_standalone/.next/server/app/api/update-status/route.js.nft.json +0 -1
  253. package/_standalone/.next/server/app/api/update-status/route_client-reference-manifest.js +0 -1
  254. package/_standalone/.next/server/app/api/workflows/route.js +0 -9
  255. package/_standalone/.next/server/app/api/workflows/route.js.nft.json +0 -1
  256. package/_standalone/.next/server/app/api/workflows/route_client-reference-manifest.js +0 -1
  257. package/_standalone/.next/server/app/changelog/page.js +0 -2
  258. package/_standalone/.next/server/app/changelog/page.js.nft.json +0 -1
  259. package/_standalone/.next/server/app/changelog/page_client-reference-manifest.js +0 -1
  260. package/_standalone/.next/server/app/changes/page.js +0 -2
  261. package/_standalone/.next/server/app/changes/page.js.nft.json +0 -1
  262. package/_standalone/.next/server/app/changes/page_client-reference-manifest.js +0 -1
  263. package/_standalone/.next/server/app/echo/[segment]/page.js +0 -158
  264. package/_standalone/.next/server/app/echo/[segment]/page.js.nft.json +0 -1
  265. package/_standalone/.next/server/app/echo/[segment]/page_client-reference-manifest.js +0 -1
  266. package/_standalone/.next/server/app/echo/page.js +0 -2
  267. package/_standalone/.next/server/app/echo/page.js.nft.json +0 -1
  268. package/_standalone/.next/server/app/echo/page_client-reference-manifest.js +0 -1
  269. package/_standalone/.next/server/app/explore/page.js +0 -5
  270. package/_standalone/.next/server/app/explore/page.js.nft.json +0 -1
  271. package/_standalone/.next/server/app/explore/page_client-reference-manifest.js +0 -1
  272. package/_standalone/.next/server/app/help/page.js +0 -2
  273. package/_standalone/.next/server/app/help/page.js.nft.json +0 -1
  274. package/_standalone/.next/server/app/help/page_client-reference-manifest.js +0 -1
  275. package/_standalone/.next/server/app/icon.svg/route.js +0 -1
  276. package/_standalone/.next/server/app/icon.svg/route.js.nft.json +0 -1
  277. package/_standalone/.next/server/app/icon.svg.body +0 -37
  278. package/_standalone/.next/server/app/icon.svg.meta +0 -1
  279. package/_standalone/.next/server/app/inbox/history/page.js +0 -2
  280. package/_standalone/.next/server/app/inbox/history/page.js.nft.json +0 -1
  281. package/_standalone/.next/server/app/inbox/history/page_client-reference-manifest.js +0 -1
  282. package/_standalone/.next/server/app/login/page.js +0 -2
  283. package/_standalone/.next/server/app/login/page.js.nft.json +0 -1
  284. package/_standalone/.next/server/app/login/page_client-reference-manifest.js +0 -1
  285. package/_standalone/.next/server/app/page.js +0 -2
  286. package/_standalone/.next/server/app/page.js.nft.json +0 -1
  287. package/_standalone/.next/server/app/page_client-reference-manifest.js +0 -1
  288. package/_standalone/.next/server/app/setup/page.js +0 -2
  289. package/_standalone/.next/server/app/setup/page.js.nft.json +0 -1
  290. package/_standalone/.next/server/app/setup/page_client-reference-manifest.js +0 -1
  291. package/_standalone/.next/server/app/trash/page.js +0 -3
  292. package/_standalone/.next/server/app/trash/page.js.nft.json +0 -1
  293. package/_standalone/.next/server/app/trash/page_client-reference-manifest.js +0 -1
  294. package/_standalone/.next/server/app/view/[...path]/page.js +0 -13
  295. package/_standalone/.next/server/app/view/[...path]/page.js.nft.json +0 -1
  296. package/_standalone/.next/server/app/view/[...path]/page_client-reference-manifest.js +0 -1
  297. package/_standalone/.next/server/app-paths-manifest.json +0 -92
  298. package/_standalone/.next/server/chunks/1076.js +0 -1
  299. package/_standalone/.next/server/chunks/1104.js +0 -1
  300. package/_standalone/.next/server/chunks/1299.js +0 -133
  301. package/_standalone/.next/server/chunks/1546.js +0 -1
  302. package/_standalone/.next/server/chunks/1549.js +0 -1
  303. package/_standalone/.next/server/chunks/1550.js +0 -1
  304. package/_standalone/.next/server/chunks/206.js +0 -2
  305. package/_standalone/.next/server/chunks/2250.js +0 -38
  306. package/_standalone/.next/server/chunks/2449.js +0 -54
  307. package/_standalone/.next/server/chunks/3036.js +0 -1
  308. package/_standalone/.next/server/chunks/3123.js +0 -3
  309. package/_standalone/.next/server/chunks/3437.js +0 -60
  310. package/_standalone/.next/server/chunks/3445.js +0 -22
  311. package/_standalone/.next/server/chunks/3528.js +0 -1
  312. package/_standalone/.next/server/chunks/3800.js +0 -1
  313. package/_standalone/.next/server/chunks/3965.js +0 -11
  314. package/_standalone/.next/server/chunks/4241.js +0 -1
  315. package/_standalone/.next/server/chunks/5165.js +0 -1
  316. package/_standalone/.next/server/chunks/5299.js +0 -1
  317. package/_standalone/.next/server/chunks/5464.js +0 -9
  318. package/_standalone/.next/server/chunks/5576.js +0 -36
  319. package/_standalone/.next/server/chunks/5592.js +0 -1
  320. package/_standalone/.next/server/chunks/5945.js +0 -1
  321. package/_standalone/.next/server/chunks/6022.js +0 -193
  322. package/_standalone/.next/server/chunks/6117.js +0 -13
  323. package/_standalone/.next/server/chunks/6140.js +0 -1
  324. package/_standalone/.next/server/chunks/6539.js +0 -1
  325. package/_standalone/.next/server/chunks/6949.js +0 -1
  326. package/_standalone/.next/server/chunks/7032.js +0 -1
  327. package/_standalone/.next/server/chunks/7198.js +0 -23
  328. package/_standalone/.next/server/chunks/7712.js +0 -1
  329. package/_standalone/.next/server/chunks/791.js +0 -1
  330. package/_standalone/.next/server/chunks/7948.js +0 -2
  331. package/_standalone/.next/server/chunks/8326.js +0 -1
  332. package/_standalone/.next/server/chunks/8388.js +0 -17
  333. package/_standalone/.next/server/chunks/9503.js +0 -1
  334. package/_standalone/.next/server/chunks/953.js +0 -57
  335. package/_standalone/.next/server/chunks/9938.js +0 -24
  336. package/_standalone/.next/server/functions-config-manifest.json +0 -22
  337. package/_standalone/.next/server/instrumentation.js +0 -1
  338. package/_standalone/.next/server/middleware-build-manifest.js +0 -1
  339. package/_standalone/.next/server/middleware-manifest.json +0 -6
  340. package/_standalone/.next/server/middleware-react-loadable-manifest.js +0 -1
  341. package/_standalone/.next/server/middleware.js +0 -15
  342. package/_standalone/.next/server/next-font-manifest.js +0 -1
  343. package/_standalone/.next/server/next-font-manifest.json +0 -1
  344. package/_standalone/.next/server/pages/500.html +0 -2
  345. package/_standalone/.next/server/pages-manifest.json +0 -3
  346. package/_standalone/.next/server/server-reference-manifest.js +0 -1
  347. package/_standalone/.next/server/server-reference-manifest.json +0 -1
  348. package/_standalone/.next/server/webpack-runtime.js +0 -1
  349. package/_standalone/.next/static/Dn8EHqUedSzanCfrM8WWS/_buildManifest.js +0 -1
  350. package/_standalone/.next/static/Dn8EHqUedSzanCfrM8WWS/_ssgManifest.js +0 -1
  351. package/_standalone/.next/static/chunks/1239.10a0710c2772ab34.js +0 -1
  352. package/_standalone/.next/static/chunks/1477.33df3cce509578c2.js +0 -1
  353. package/_standalone/.next/static/chunks/1814.8a1fef15856dce84.js +0 -1
  354. package/_standalone/.next/static/chunks/1a258343-9803591e4aaee1f6.js +0 -2
  355. package/_standalone/.next/static/chunks/2631.dc56e83472bde281.js +0 -1
  356. package/_standalone/.next/static/chunks/2647.e0b67d0c432ad7e7.js +0 -18
  357. package/_standalone/.next/static/chunks/2872.045858d00bd8307f.js +0 -8
  358. package/_standalone/.next/static/chunks/2935.a7fdb3a7fb681d61.js +0 -1
  359. package/_standalone/.next/static/chunks/2968.f10ccee9e7e2324d.js +0 -2
  360. package/_standalone/.next/static/chunks/3013-3d4aa69636f4a7bd.js +0 -1
  361. package/_standalone/.next/static/chunks/3523-4e4bb442a2d2f4f5.js +0 -1
  362. package/_standalone/.next/static/chunks/3562-fadd7213646defa8.js +0 -1
  363. package/_standalone/.next/static/chunks/362.2bfa40005767b578.js +0 -2
  364. package/_standalone/.next/static/chunks/363642f4.1ab94f095d889c3a.js +0 -1
  365. package/_standalone/.next/static/chunks/3637.2b2697198968d83f.js +0 -1
  366. package/_standalone/.next/static/chunks/3794-c66343cd6a42366f.js +0 -2
  367. package/_standalone/.next/static/chunks/4033.6666700547b20141.js +0 -1
  368. package/_standalone/.next/static/chunks/4094.09364c01df411380.js +0 -1
  369. package/_standalone/.next/static/chunks/4237-ffc6e7c15d4007b6.js +0 -1
  370. package/_standalone/.next/static/chunks/4568-6791c1bc47a63f80.js +0 -1
  371. package/_standalone/.next/static/chunks/4925-6e9a5eb97c10d532.js +0 -1
  372. package/_standalone/.next/static/chunks/4bd1b696-10cb4c9d2844a506.js +0 -1
  373. package/_standalone/.next/static/chunks/516.24ee058b1d4b1fed.js +0 -8
  374. package/_standalone/.next/static/chunks/5331.c89084fd7f67887d.js +0 -48
  375. package/_standalone/.next/static/chunks/5358-15618fc9b20018ee.js +0 -28
  376. package/_standalone/.next/static/chunks/54a60aa6.7a74f547ec1bdd5a.js +0 -79
  377. package/_standalone/.next/static/chunks/5576.c468f41f1126e837.js +0 -9
  378. package/_standalone/.next/static/chunks/5581-c3be891101a3e511.js +0 -29
  379. package/_standalone/.next/static/chunks/5592-85f69f6161d7a028.js +0 -1
  380. package/_standalone/.next/static/chunks/5627.c4337d7289acb31f.js +0 -1
  381. package/_standalone/.next/static/chunks/5956.b445072b35915129.js +0 -1
  382. package/_standalone/.next/static/chunks/6087.e4ec392aa2239719.js +0 -1
  383. package/_standalone/.next/static/chunks/6636-1b6d7047cffa7dbc.js +0 -6
  384. package/_standalone/.next/static/chunks/6826.7b7d94dd0fd83812.js +0 -1
  385. package/_standalone/.next/static/chunks/6902-edc5c487c696bd0b.js +0 -3
  386. package/_standalone/.next/static/chunks/7025-9a4369e5f94b3915.js +0 -1
  387. package/_standalone/.next/static/chunks/70e0d97a.6903b8594c742784.js +0 -1
  388. package/_standalone/.next/static/chunks/7249-b0a9c77b9a84b11c.js +0 -11
  389. package/_standalone/.next/static/chunks/7540-811b466ff82538ac.js +0 -13
  390. package/_standalone/.next/static/chunks/7753.63831cfc54a55fbb.js +0 -1
  391. package/_standalone/.next/static/chunks/8252-888b87f30fde5786.js +0 -1
  392. package/_standalone/.next/static/chunks/8409-de5726a4a278d28f.js +0 -1
  393. package/_standalone/.next/static/chunks/862.9f526e964489e2e5.js +0 -1
  394. package/_standalone/.next/static/chunks/8719-becd06dd739825ea.js +0 -1
  395. package/_standalone/.next/static/chunks/9207-3b19c55a3c974a09.js +0 -1
  396. package/_standalone/.next/static/chunks/9300.118b8c840634383f.js +0 -28
  397. package/_standalone/.next/static/chunks/95247769.3b5caae1c1a76ce1.js +0 -4
  398. package/_standalone/.next/static/chunks/9688-85f7c423a1dce82c.js +0 -1
  399. package/_standalone/.next/static/chunks/9748-3e19c82c77c98c0a.js +0 -1
  400. package/_standalone/.next/static/chunks/app/.well-known/agent-card.json/route-2471b275cd82ff8d.js +0 -1
  401. package/_standalone/.next/static/chunks/app/_global-error/page-2471b275cd82ff8d.js +0 -1
  402. package/_standalone/.next/static/chunks/app/_not-found/page-a4fd983951533d8f.js +0 -1
  403. package/_standalone/.next/static/chunks/app/agents/[agentKey]/page-d4d8277433073461.js +0 -1
  404. package/_standalone/.next/static/chunks/app/agents/page-6f021b5bec8169d5.js +0 -1
  405. package/_standalone/.next/static/chunks/app/api/a2a/agents/route-2471b275cd82ff8d.js +0 -1
  406. package/_standalone/.next/static/chunks/app/api/a2a/delegations/route-2471b275cd82ff8d.js +0 -1
  407. package/_standalone/.next/static/chunks/app/api/a2a/discover/route-2471b275cd82ff8d.js +0 -1
  408. package/_standalone/.next/static/chunks/app/api/a2a/route-2471b275cd82ff8d.js +0 -1
  409. package/_standalone/.next/static/chunks/app/api/acp/config/route-2471b275cd82ff8d.js +0 -1
  410. package/_standalone/.next/static/chunks/app/api/acp/detect/route-2471b275cd82ff8d.js +0 -1
  411. package/_standalone/.next/static/chunks/app/api/acp/install/route-2471b275cd82ff8d.js +0 -1
  412. package/_standalone/.next/static/chunks/app/api/acp/registry/route-2471b275cd82ff8d.js +0 -1
  413. package/_standalone/.next/static/chunks/app/api/acp/session/route-2471b275cd82ff8d.js +0 -1
  414. package/_standalone/.next/static/chunks/app/api/agent-activity/route-2471b275cd82ff8d.js +0 -1
  415. package/_standalone/.next/static/chunks/app/api/agents/copy-skill/route-2471b275cd82ff8d.js +0 -1
  416. package/_standalone/.next/static/chunks/app/api/agents/custom/detect/route-2471b275cd82ff8d.js +0 -1
  417. package/_standalone/.next/static/chunks/app/api/agents/custom/route-2471b275cd82ff8d.js +0 -1
  418. package/_standalone/.next/static/chunks/app/api/ask/route-2471b275cd82ff8d.js +0 -1
  419. package/_standalone/.next/static/chunks/app/api/ask-sessions/route-2471b275cd82ff8d.js +0 -1
  420. package/_standalone/.next/static/chunks/app/api/auth/route-2471b275cd82ff8d.js +0 -1
  421. package/_standalone/.next/static/chunks/app/api/backlinks/route-2471b275cd82ff8d.js +0 -1
  422. package/_standalone/.next/static/chunks/app/api/bootstrap/route-2471b275cd82ff8d.js +0 -1
  423. package/_standalone/.next/static/chunks/app/api/changes/route-2471b275cd82ff8d.js +0 -1
  424. package/_standalone/.next/static/chunks/app/api/channels/verify/route-2471b275cd82ff8d.js +0 -1
  425. package/_standalone/.next/static/chunks/app/api/connect/route-2471b275cd82ff8d.js +0 -1
  426. package/_standalone/.next/static/chunks/app/api/embedding/route-2471b275cd82ff8d.js +0 -1
  427. package/_standalone/.next/static/chunks/app/api/export/route-2471b275cd82ff8d.js +0 -1
  428. package/_standalone/.next/static/chunks/app/api/extract-pdf/route-2471b275cd82ff8d.js +0 -1
  429. package/_standalone/.next/static/chunks/app/api/file/import/route-2471b275cd82ff8d.js +0 -1
  430. package/_standalone/.next/static/chunks/app/api/file/raw/route-2471b275cd82ff8d.js +0 -1
  431. package/_standalone/.next/static/chunks/app/api/file/route-2471b275cd82ff8d.js +0 -1
  432. package/_standalone/.next/static/chunks/app/api/files/route-2471b275cd82ff8d.js +0 -1
  433. package/_standalone/.next/static/chunks/app/api/git/route-2471b275cd82ff8d.js +0 -1
  434. package/_standalone/.next/static/chunks/app/api/graph/route-2471b275cd82ff8d.js +0 -1
  435. package/_standalone/.next/static/chunks/app/api/health/route-2471b275cd82ff8d.js +0 -1
  436. package/_standalone/.next/static/chunks/app/api/im/activity/route-2471b275cd82ff8d.js +0 -1
  437. package/_standalone/.next/static/chunks/app/api/im/config/route-2471b275cd82ff8d.js +0 -1
  438. package/_standalone/.next/static/chunks/app/api/im/status/route-2471b275cd82ff8d.js +0 -1
  439. package/_standalone/.next/static/chunks/app/api/im/test/route-2471b275cd82ff8d.js +0 -1
  440. package/_standalone/.next/static/chunks/app/api/im/webhook/feishu/route-2471b275cd82ff8d.js +0 -1
  441. package/_standalone/.next/static/chunks/app/api/im/webhook-status/route-2471b275cd82ff8d.js +0 -1
  442. package/_standalone/.next/static/chunks/app/api/inbox/clip/route-2471b275cd82ff8d.js +0 -1
  443. package/_standalone/.next/static/chunks/app/api/inbox/route-2471b275cd82ff8d.js +0 -1
  444. package/_standalone/.next/static/chunks/app/api/init/route-2471b275cd82ff8d.js +0 -1
  445. package/_standalone/.next/static/chunks/app/api/lint/route-2471b275cd82ff8d.js +0 -1
  446. package/_standalone/.next/static/chunks/app/api/mcp/agents/route-2471b275cd82ff8d.js +0 -1
  447. package/_standalone/.next/static/chunks/app/api/mcp/direct-tools/route-2471b275cd82ff8d.js +0 -1
  448. package/_standalone/.next/static/chunks/app/api/mcp/install/route-2471b275cd82ff8d.js +0 -1
  449. package/_standalone/.next/static/chunks/app/api/mcp/install-skill/route-2471b275cd82ff8d.js +0 -1
  450. package/_standalone/.next/static/chunks/app/api/mcp/restart/route-2471b275cd82ff8d.js +0 -1
  451. package/_standalone/.next/static/chunks/app/api/mcp/status/route-2471b275cd82ff8d.js +0 -1
  452. package/_standalone/.next/static/chunks/app/api/mcp/tools/route-2471b275cd82ff8d.js +0 -1
  453. package/_standalone/.next/static/chunks/app/api/mcp/uninstall/route-2471b275cd82ff8d.js +0 -1
  454. package/_standalone/.next/static/chunks/app/api/monitoring/route-2471b275cd82ff8d.js +0 -1
  455. package/_standalone/.next/static/chunks/app/api/recent-files/route-2471b275cd82ff8d.js +0 -1
  456. package/_standalone/.next/static/chunks/app/api/restart/route-2471b275cd82ff8d.js +0 -1
  457. package/_standalone/.next/static/chunks/app/api/search/route-2471b275cd82ff8d.js +0 -1
  458. package/_standalone/.next/static/chunks/app/api/settings/list-models/route-2471b275cd82ff8d.js +0 -1
  459. package/_standalone/.next/static/chunks/app/api/settings/reset-token/route-2471b275cd82ff8d.js +0 -1
  460. package/_standalone/.next/static/chunks/app/api/settings/route-2471b275cd82ff8d.js +0 -1
  461. package/_standalone/.next/static/chunks/app/api/settings/test-key/route-2471b275cd82ff8d.js +0 -1
  462. package/_standalone/.next/static/chunks/app/api/setup/check-path/route-2471b275cd82ff8d.js +0 -1
  463. package/_standalone/.next/static/chunks/app/api/setup/check-port/route-2471b275cd82ff8d.js +0 -1
  464. package/_standalone/.next/static/chunks/app/api/setup/generate-token/route-2471b275cd82ff8d.js +0 -1
  465. package/_standalone/.next/static/chunks/app/api/setup/ls/route-2471b275cd82ff8d.js +0 -1
  466. package/_standalone/.next/static/chunks/app/api/setup/route-2471b275cd82ff8d.js +0 -1
  467. package/_standalone/.next/static/chunks/app/api/skills/route-2471b275cd82ff8d.js +0 -1
  468. package/_standalone/.next/static/chunks/app/api/space-overview/route-2471b275cd82ff8d.js +0 -1
  469. package/_standalone/.next/static/chunks/app/api/sync/route-2471b275cd82ff8d.js +0 -1
  470. package/_standalone/.next/static/chunks/app/api/tree-version/route-2471b275cd82ff8d.js +0 -1
  471. package/_standalone/.next/static/chunks/app/api/uninstall/route-2471b275cd82ff8d.js +0 -1
  472. package/_standalone/.next/static/chunks/app/api/update/route-2471b275cd82ff8d.js +0 -1
  473. package/_standalone/.next/static/chunks/app/api/update-check/route-2471b275cd82ff8d.js +0 -1
  474. package/_standalone/.next/static/chunks/app/api/update-status/route-2471b275cd82ff8d.js +0 -1
  475. package/_standalone/.next/static/chunks/app/api/workflows/route-2471b275cd82ff8d.js +0 -1
  476. package/_standalone/.next/static/chunks/app/changelog/page-297e0af14471e935.js +0 -1
  477. package/_standalone/.next/static/chunks/app/changes/page-2471b275cd82ff8d.js +0 -1
  478. package/_standalone/.next/static/chunks/app/echo/[segment]/page-75a6330292613587.js +0 -157
  479. package/_standalone/.next/static/chunks/app/echo/page-2471b275cd82ff8d.js +0 -1
  480. package/_standalone/.next/static/chunks/app/error-fc1491d554a28327.js +0 -1
  481. package/_standalone/.next/static/chunks/app/explore/page-d9f58000bc445360.js +0 -4
  482. package/_standalone/.next/static/chunks/app/global-error-c37d50db6128ec01.js +0 -1
  483. package/_standalone/.next/static/chunks/app/help/page-f8cb806371b3175f.js +0 -1
  484. package/_standalone/.next/static/chunks/app/inbox/history/page-26e71fb6f716a4c4.js +0 -1
  485. package/_standalone/.next/static/chunks/app/layout-fcbde5bee626d21a.js +0 -133
  486. package/_standalone/.next/static/chunks/app/loading-2471b275cd82ff8d.js +0 -1
  487. package/_standalone/.next/static/chunks/app/login/page-686d7c84262f2e7c.js +0 -1
  488. package/_standalone/.next/static/chunks/app/page-174dadc481ca9c86.js +0 -1
  489. package/_standalone/.next/static/chunks/app/setup/page-e40f3c5704c3c857.js +0 -1
  490. package/_standalone/.next/static/chunks/app/trash/page-e623ff0ab35de002.js +0 -1
  491. package/_standalone/.next/static/chunks/app/view/[...path]/error-ec03f5d0a5b93073.js +0 -1
  492. package/_standalone/.next/static/chunks/app/view/[...path]/loading-2471b275cd82ff8d.js +0 -1
  493. package/_standalone/.next/static/chunks/app/view/[...path]/not-found-6e0c75ad26ce8572.js +0 -1
  494. package/_standalone/.next/static/chunks/app/view/[...path]/page-49c4eff6ffdb5168.js +0 -12
  495. package/_standalone/.next/static/chunks/e71f6c19-4df85185bf989b49.js +0 -1
  496. package/_standalone/.next/static/chunks/framework-a17258b880e6120c.js +0 -1
  497. package/_standalone/.next/static/chunks/main-app-85439cf6d0f88401.js +0 -1
  498. package/_standalone/.next/static/chunks/main-dbbd70b57dd91565.js +0 -5
  499. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/app-error-2471b275cd82ff8d.js +0 -1
  500. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/forbidden-2471b275cd82ff8d.js +0 -1
  501. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/not-found-2471b275cd82ff8d.js +0 -1
  502. package/_standalone/.next/static/chunks/next/dist/client/components/builtin/unauthorized-2471b275cd82ff8d.js +0 -1
  503. package/_standalone/.next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
  504. package/_standalone/.next/static/chunks/webpack-dc486b68118d1328.js +0 -1
  505. package/_standalone/.next/static/css/86153be34ee0f215.css +0 -1
  506. package/_standalone/.next/static/css/a4a2b71142b311af.css +0 -31
  507. package/_standalone/.next/static/media/0086f8992871c45b-s.woff2 +0 -0
  508. package/_standalone/.next/static/media/011e180705008d6f-s.woff2 +0 -0
  509. package/_standalone/.next/static/media/03b436aa846269de-s.woff2 +0 -0
  510. package/_standalone/.next/static/media/05a58683eb2ffca7-s.woff2 +0 -0
  511. package/_standalone/.next/static/media/08aedeceaf1dcd57-s.woff2 +0 -0
  512. package/_standalone/.next/static/media/110cbef534704ef8-s.p.woff2 +0 -0
  513. package/_standalone/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  514. package/_standalone/.next/static/media/20535187d867b7b9-s.woff2 +0 -0
  515. package/_standalone/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  516. package/_standalone/.next/static/media/26d4368bf94c0ec4-s.p.woff2 +0 -0
  517. package/_standalone/.next/static/media/2801417b65625cf5-s.woff2 +0 -0
  518. package/_standalone/.next/static/media/28793f5c5e3d822d-s.woff2 +0 -0
  519. package/_standalone/.next/static/media/36008747766f78c6-s.woff2 +0 -0
  520. package/_standalone/.next/static/media/4f19a67e08e18f3c-s.woff2 +0 -0
  521. package/_standalone/.next/static/media/5356a6a4f2c8c8d8-s.woff2 +0 -0
  522. package/_standalone/.next/static/media/58f386aa6b1a2a92-s.woff2 +0 -0
  523. package/_standalone/.next/static/media/5c0c2bcbaa4149ca-s.p.woff2 +0 -0
  524. package/_standalone/.next/static/media/6d38f9d4e0f4772b-s.woff2 +0 -0
  525. package/_standalone/.next/static/media/714ad00c3d008517-s.woff2 +0 -0
  526. package/_standalone/.next/static/media/73cb51aac9c97f90-s.woff2 +0 -0
  527. package/_standalone/.next/static/media/7b19b489dc6743ba-s.woff2 +0 -0
  528. package/_standalone/.next/static/media/7ba5fb2a8c88521c-s.woff2 +0 -0
  529. package/_standalone/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  530. package/_standalone/.next/static/media/92eeb95d069020cc-s.woff2 +0 -0
  531. package/_standalone/.next/static/media/99bbede094da1c3f-s.woff2 +0 -0
  532. package/_standalone/.next/static/media/ab00a911ac2adf48-s.woff2 +0 -0
  533. package/_standalone/.next/static/media/b3bf17a9041d9433-s.woff2 +0 -0
  534. package/_standalone/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  535. package/_standalone/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  536. package/_standalone/.next/static/media/c80eef6a0c97798e-s.woff2 +0 -0
  537. package/_standalone/.next/static/media/c9c3823090ec8b55-s.woff2 +0 -0
  538. package/_standalone/.next/static/media/d26bbd13d6b70f89-s.woff2 +0 -0
  539. package/_standalone/.next/static/media/d2f466e69dd54845-s.woff2 +0 -0
  540. package/_standalone/.next/static/media/d3ebbfd689654d3a-s.p.woff2 +0 -0
  541. package/_standalone/.next/static/media/db96af6b531dc71f-s.p.woff2 +0 -0
  542. package/_standalone/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  543. package/_standalone/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  544. package/_standalone/.next/trace +0 -72
  545. package/_standalone/.next/types/routes.d.ts +0 -158
  546. package/_standalone/.next/types/validator.ts +0 -844
  547. package/_standalone/__tests__/a2a/agent-card.test.ts +0 -60
  548. package/_standalone/__tests__/a2a/client.test.ts +0 -264
  549. package/_standalone/__tests__/a2a/delegation-history.test.ts +0 -133
  550. package/_standalone/__tests__/a2a/orchestrator.test.ts +0 -280
  551. package/_standalone/__tests__/a2a/task-handler.test.ts +0 -86
  552. package/_standalone/__tests__/acp/acp-types.test.ts +0 -273
  553. package/_standalone/__tests__/acp/agent-descriptors.test.ts +0 -284
  554. package/_standalone/__tests__/acp/bridge.test.ts +0 -188
  555. package/_standalone/__tests__/acp/registry.test.ts +0 -193
  556. package/_standalone/__tests__/acp/session.test.ts +0 -466
  557. package/_standalone/__tests__/agent/backend-retry.test.ts +0 -143
  558. package/_standalone/__tests__/agent/chat-mode.test.ts +0 -103
  559. package/_standalone/__tests__/agent/loop-detection.test.ts +0 -85
  560. package/_standalone/__tests__/agent/paragraph-extract.test.ts +0 -76
  561. package/_standalone/__tests__/agent/prompt.test.ts +0 -21
  562. package/_standalone/__tests__/agent/provider-endpoints.test.ts +0 -70
  563. package/_standalone/__tests__/agent/retry-reconnect.test.ts +0 -120
  564. package/_standalone/__tests__/agent/stream-consumer-status.test.ts +0 -103
  565. package/_standalone/__tests__/agent/token-estimation.test.ts +0 -54
  566. package/_standalone/__tests__/agents/agents-content-dashboard.test.tsx +0 -181
  567. package/_standalone/__tests__/agents/agents-content-model.test.ts +0 -209
  568. package/_standalone/__tests__/api/ask-attachments.test.ts +0 -194
  569. package/_standalone/__tests__/api/backlinks.test.ts +0 -55
  570. package/_standalone/__tests__/api/bootstrap.test.ts +0 -70
  571. package/_standalone/__tests__/api/changes.test.ts +0 -96
  572. package/_standalone/__tests__/api/channels-verify.test.ts +0 -75
  573. package/_standalone/__tests__/api/check-port.test.ts +0 -100
  574. package/_standalone/__tests__/api/extract-pdf.test.ts +0 -265
  575. package/_standalone/__tests__/api/file.test.ts +0 -423
  576. package/_standalone/__tests__/api/files.test.ts +0 -43
  577. package/_standalone/__tests__/api/git.test.ts +0 -80
  578. package/_standalone/__tests__/api/im-activity.test.ts +0 -36
  579. package/_standalone/__tests__/api/im-config-feishu-conversation.test.ts +0 -103
  580. package/_standalone/__tests__/api/im-webhook-feishu.test.ts +0 -88
  581. package/_standalone/__tests__/api/install-skill.test.ts +0 -283
  582. package/_standalone/__tests__/api/mcp-install.test.ts +0 -400
  583. package/_standalone/__tests__/api/recent-files.test.ts +0 -43
  584. package/_standalone/__tests__/api/retry.test.ts +0 -49
  585. package/_standalone/__tests__/api/search.test.ts +0 -48
  586. package/_standalone/__tests__/api/settings.test.ts +0 -56
  587. package/_standalone/__tests__/api/setup-paths.test.ts +0 -81
  588. package/_standalone/__tests__/api/setup.test.ts +0 -428
  589. package/_standalone/__tests__/api/skills.test.ts +0 -362
  590. package/_standalone/__tests__/api/space-overview.test.ts +0 -79
  591. package/_standalone/__tests__/api/test-key.test.ts +0 -187
  592. package/_standalone/__tests__/ask/ask-content-agent-selection.test.tsx +0 -266
  593. package/_standalone/__tests__/ask/ask-content-attach-menu.test.tsx +0 -205
  594. package/_standalone/__tests__/ask/ask-content-input-during-run.test.tsx +0 -248
  595. package/_standalone/__tests__/ask/auto-reconnect.test.ts +0 -142
  596. package/_standalone/__tests__/ask/message-list-agent-attribution.test.tsx +0 -71
  597. package/_standalone/__tests__/ask/mode-capsule.test.ts +0 -95
  598. package/_standalone/__tests__/ask/non-streaming-api.test.ts +0 -281
  599. package/_standalone/__tests__/ask/save-insight.test.ts +0 -84
  600. package/_standalone/__tests__/ask/save-session.test.ts +0 -73
  601. package/_standalone/__tests__/channel-cli-layers.test.ts +0 -108
  602. package/_standalone/__tests__/channel-cli-subprocess.test.ts +0 -73
  603. package/_standalone/__tests__/channel-command-env.test.ts +0 -82
  604. package/_standalone/__tests__/channel-mgmt.test.js +0 -75
  605. package/_standalone/__tests__/channel-prompts.test.ts +0 -48
  606. package/_standalone/__tests__/cli/agent-routing.test.ts +0 -232
  607. package/_standalone/__tests__/cli/file-subcommands.test.ts +0 -379
  608. package/_standalone/__tests__/compile/compile-incremental.test.ts +0 -103
  609. package/_standalone/__tests__/compile/compile-meta.test.ts +0 -74
  610. package/_standalone/__tests__/compile/compile.test.ts +0 -98
  611. package/_standalone/__tests__/components/UpdateToast.test.ts +0 -344
  612. package/_standalone/__tests__/components/breadcrumb-header-ux.test.ts +0 -14
  613. package/_standalone/__tests__/components/channel-detail-redesign.test.tsx +0 -222
  614. package/_standalone/__tests__/components/header-toc-vertical-alignment.test.ts +0 -23
  615. package/_standalone/__tests__/components/line-diff.test.ts +0 -37
  616. package/_standalone/__tests__/components/search-modal-drag-drop.test.tsx +0 -466
  617. package/_standalone/__tests__/components/table-of-contents-header-layout.test.ts +0 -15
  618. package/_standalone/__tests__/components/view-page-header-layout.test.ts +0 -13
  619. package/_standalone/__tests__/components/view-page-header-scroll-stability.test.ts +0 -34
  620. package/_standalone/__tests__/core/agent-audit-log.test.ts +0 -71
  621. package/_standalone/__tests__/core/api.test.ts +0 -135
  622. package/_standalone/__tests__/core/atomic-append.test.ts +0 -47
  623. package/_standalone/__tests__/core/backlinks.test.ts +0 -72
  624. package/_standalone/__tests__/core/bm25-search.test.ts +0 -78
  625. package/_standalone/__tests__/core/chinese-segmentation.test.ts +0 -69
  626. package/_standalone/__tests__/core/config.test.ts +0 -101
  627. package/_standalone/__tests__/core/content-changes.test.ts +0 -131
  628. package/_standalone/__tests__/core/context.test.ts +0 -50
  629. package/_standalone/__tests__/core/create-space.test.ts +0 -39
  630. package/_standalone/__tests__/core/csv.test.ts +0 -49
  631. package/_standalone/__tests__/core/detect-agents.test.ts +0 -139
  632. package/_standalone/__tests__/core/errors.test.ts +0 -119
  633. package/_standalone/__tests__/core/file-convert.test.ts +0 -148
  634. package/_standalone/__tests__/core/fs-ops.test.ts +0 -162
  635. package/_standalone/__tests__/core/helpers.ts +0 -35
  636. package/_standalone/__tests__/core/hybrid-search.test.ts +0 -109
  637. package/_standalone/__tests__/core/inbox-url-utils.test.ts +0 -37
  638. package/_standalone/__tests__/core/inbox.test.ts +0 -418
  639. package/_standalone/__tests__/core/jwt.test.ts +0 -62
  640. package/_standalone/__tests__/core/lines.test.ts +0 -148
  641. package/_standalone/__tests__/core/link-index.test.ts +0 -107
  642. package/_standalone/__tests__/core/list-spaces.test.ts +0 -45
  643. package/_standalone/__tests__/core/metrics.test.ts +0 -103
  644. package/_standalone/__tests__/core/organize.test.ts +0 -90
  645. package/_standalone/__tests__/core/request-scoped-tools.test.ts +0 -19
  646. package/_standalone/__tests__/core/resolve-script.test.ts +0 -115
  647. package/_standalone/__tests__/core/search-index.test.ts +0 -239
  648. package/_standalone/__tests__/core/search.test.ts +0 -68
  649. package/_standalone/__tests__/core/security.test.ts +0 -85
  650. package/_standalone/__tests__/core/skill-install-logic.test.ts +0 -230
  651. package/_standalone/__tests__/core/space-aware-tree.test.ts +0 -162
  652. package/_standalone/__tests__/core/space-scaffold.test.ts +0 -120
  653. package/_standalone/__tests__/core/sync-status.test.ts +0 -121
  654. package/_standalone/__tests__/core/sync.test.ts +0 -354
  655. package/_standalone/__tests__/core/tools.test.ts +0 -339
  656. package/_standalone/__tests__/core/tree-async.test.ts +0 -43
  657. package/_standalone/__tests__/core/tree.test.ts +0 -160
  658. package/_standalone/__tests__/core/web-clip.test.ts +0 -229
  659. package/_standalone/__tests__/hooks/useAiOrganize.test.ts +0 -633
  660. package/_standalone/__tests__/hooks/useMention.test.ts +0 -92
  661. package/_standalone/__tests__/hooks/useSlashCommand.test.ts +0 -152
  662. package/_standalone/__tests__/im/activity.test.ts +0 -74
  663. package/_standalone/__tests__/im/config.test.ts +0 -114
  664. package/_standalone/__tests__/im/dingtalk.test.ts +0 -23
  665. package/_standalone/__tests__/im/feishu-conversation-processing.test.ts +0 -96
  666. package/_standalone/__tests__/im/feishu-webhook.test.ts +0 -159
  667. package/_standalone/__tests__/im/format.test.ts +0 -134
  668. package/_standalone/__tests__/im/qq.test.ts +0 -23
  669. package/_standalone/__tests__/im/types.test.ts +0 -97
  670. package/_standalone/__tests__/im/wechat.test.ts +0 -23
  671. package/_standalone/__tests__/integration/drag-drop-format-verification.test.ts +0 -289
  672. package/_standalone/__tests__/integration/search-askcontent-drag-drop.test.tsx +0 -565
  673. package/_standalone/__tests__/lib/ask-agent.test.ts +0 -84
  674. package/_standalone/__tests__/lib/daily-echo-aggregation.test.ts +0 -225
  675. package/_standalone/__tests__/lib/daily-echo-config.test.ts +0 -254
  676. package/_standalone/__tests__/lib/daily-echo-prompts.test.ts +0 -236
  677. package/_standalone/__tests__/lib/daily-echo-snapshot.test.ts +0 -86
  678. package/_standalone/__tests__/lib/daily-echo-storage.test.ts +0 -392
  679. package/_standalone/__tests__/lib/echo-insight-prompt.test.ts +0 -57
  680. package/_standalone/__tests__/lib/echo-pages-visual-i18n.test.ts +0 -31
  681. package/_standalone/__tests__/lib/echo-segments.test.ts +0 -48
  682. package/_standalone/__tests__/lib/explore-use-cases.test.ts +0 -70
  683. package/_standalone/__tests__/lib/i18n-new-keys.test.ts +0 -153
  684. package/_standalone/__tests__/lib/mcp-snippets.test.ts +0 -163
  685. package/_standalone/__tests__/lib/mindos-copy-alignment.test.ts +0 -36
  686. package/_standalone/__tests__/lib/pi-extensions.test.ts +0 -42
  687. package/_standalone/__tests__/lib/pi-skills.test.ts +0 -117
  688. package/_standalone/__tests__/lib/session-store.test.ts +0 -58
  689. package/_standalone/__tests__/lib/settings-ai-client.test.ts +0 -93
  690. package/_standalone/__tests__/lib/walkthrough-steps.test.ts +0 -25
  691. package/_standalone/__tests__/lib/web-search.test.ts +0 -141
  692. package/_standalone/__tests__/lint/lint.test.ts +0 -257
  693. package/_standalone/__tests__/middleware.test.ts +0 -112
  694. package/_standalone/__tests__/obsidian-compat/command-registry.test.ts +0 -56
  695. package/_standalone/__tests__/obsidian-compat/component-plugin.test.ts +0 -130
  696. package/_standalone/__tests__/obsidian-compat/integration.test.ts +0 -160
  697. package/_standalone/__tests__/obsidian-compat/loader.test.ts +0 -130
  698. package/_standalone/__tests__/obsidian-compat/manifest.test.ts +0 -58
  699. package/_standalone/__tests__/obsidian-compat/plugin-manager.test.ts +0 -112
  700. package/_standalone/__tests__/obsidian-compat/ui.test.ts +0 -71
  701. package/_standalone/__tests__/obsidian-compat/vault.test.ts +0 -93
  702. package/_standalone/__tests__/panels/agents-panel-hub.test.tsx +0 -66
  703. package/_standalone/__tests__/panels/search-panel-drag-drop.test.tsx +0 -259
  704. package/_standalone/__tests__/renderers/csv-core-builtin.test.ts +0 -11
  705. package/_standalone/__tests__/renderers/plugin-renderers-filtering.test.ts +0 -49
  706. package/_standalone/__tests__/renderers/renderer-surface-classification.test.ts +0 -45
  707. package/_standalone/__tests__/renderers/workflow-yaml-execution.test.ts +0 -232
  708. package/_standalone/__tests__/renderers/workflow-yaml-parser.test.ts +0 -181
  709. package/_standalone/__tests__/renderers/workflow-yaml-serializer.test.ts +0 -64
  710. package/_standalone/__tests__/settings/activity-bar-rail-navigation.test.tsx +0 -178
  711. package/_standalone/__tests__/settings/activity-bar-update-badge.test.tsx +0 -91
  712. package/_standalone/__tests__/settings/settings-update-badge.test.tsx +0 -134
  713. package/_standalone/__tests__/settings/update-tab-availability-sync.test.tsx +0 -115
  714. package/_standalone/__tests__/settings/update-tab-browser.test.tsx +0 -159
  715. package/_standalone/__tests__/settings/update-tab-desktop.test.tsx +0 -169
  716. package/_standalone/__tests__/setup.ts +0 -100
  717. package/_standalone/__tests__/skills/mindos-skill-copy-alignment.test.ts +0 -27
  718. package/_standalone/app/globals.css +0 -534
  719. package/_standalone/app/icon.svg +0 -37
  720. package/_standalone/components/ActivityBar.tsx +0 -293
  721. package/_standalone/components/AskFab.tsx +0 -57
  722. package/_standalone/components/AskModal.tsx +0 -48
  723. package/_standalone/components/Backlinks.tsx +0 -75
  724. package/_standalone/components/Breadcrumb.tsx +0 -72
  725. package/_standalone/components/CreateSpaceModal.tsx +0 -235
  726. package/_standalone/components/CsvView.tsx +0 -346
  727. package/_standalone/components/CustomSelect.tsx +0 -256
  728. package/_standalone/components/DirPicker.tsx +0 -217
  729. package/_standalone/components/EchoSpotlight.tsx +0 -115
  730. package/_standalone/components/Editor.tsx +0 -242
  731. package/_standalone/components/EditorWrapper.tsx +0 -17
  732. package/_standalone/components/ExportModal.tsx +0 -223
  733. package/_standalone/components/FileTree.tsx +0 -619
  734. package/_standalone/components/FindInPage.tsx +0 -211
  735. package/_standalone/components/GuideCard.tsx +0 -358
  736. package/_standalone/components/ImportModal.tsx +0 -521
  737. package/_standalone/components/JsonView.tsx +0 -23
  738. package/_standalone/components/KeyboardShortcuts.tsx +0 -102
  739. package/_standalone/components/Logo.tsx +0 -39
  740. package/_standalone/components/MarkdownEditor.tsx +0 -94
  741. package/_standalone/components/MarkdownView.tsx +0 -192
  742. package/_standalone/components/OnboardingView.tsx +0 -164
  743. package/_standalone/components/OrganizeToast.tsx +0 -543
  744. package/_standalone/components/Panel.tsx +0 -385
  745. package/_standalone/components/QuickSuggestion.tsx +0 -69
  746. package/_standalone/components/RightAgentDetailPanel.tsx +0 -125
  747. package/_standalone/components/RightAskPanel.tsx +0 -174
  748. package/_standalone/components/SearchModal.tsx +0 -446
  749. package/_standalone/components/SettingsModal.tsx +0 -30
  750. package/_standalone/components/Sidebar.tsx +0 -190
  751. package/_standalone/components/SidebarLayout.tsx +0 -713
  752. package/_standalone/components/SpaceInitToast.tsx +0 -173
  753. package/_standalone/components/SyncStatusBar.tsx +0 -294
  754. package/_standalone/components/SystemPulse.tsx +0 -216
  755. package/_standalone/components/TableOfContents.tsx +0 -207
  756. package/_standalone/components/ThemeToggle.tsx +0 -36
  757. package/_standalone/components/WysiwygEditor.tsx +0 -165
  758. package/_standalone/components/agents/AcpRegistrySection.tsx +0 -457
  759. package/_standalone/components/agents/ActivitySection.tsx +0 -35
  760. package/_standalone/components/agents/AgentActivitySection.tsx +0 -225
  761. package/_standalone/components/agents/AgentsContentChannelDetail.tsx +0 -815
  762. package/_standalone/components/agents/AgentsContentChannels.tsx +0 -150
  763. package/_standalone/components/agents/AgentsMcpSection.tsx +0 -568
  764. package/_standalone/components/agents/AgentsOverviewSection.tsx +0 -488
  765. package/_standalone/components/agents/AgentsPanelA2aTab.tsx +0 -298
  766. package/_standalone/components/agents/AgentsPanelSessionsTab.tsx +0 -171
  767. package/_standalone/components/agents/AgentsPrimitives.tsx +0 -360
  768. package/_standalone/components/agents/AgentsSkillsByAgent.tsx +0 -231
  769. package/_standalone/components/agents/AgentsSkillsSection.tsx +0 -655
  770. package/_standalone/components/agents/CustomAgentModal.tsx +0 -691
  771. package/_standalone/components/agents/DiscoverAgentModal.tsx +0 -149
  772. package/_standalone/components/agents/EnvPermSection.tsx +0 -82
  773. package/_standalone/components/agents/KnowledgeInteractionSection.tsx +0 -241
  774. package/_standalone/components/agents/RecentActivityFeed.tsx +0 -137
  775. package/_standalone/components/agents/RuntimeDiagSection.tsx +0 -93
  776. package/_standalone/components/agents/SkillDetailPopover.tsx +0 -584
  777. package/_standalone/components/agents/agent-activity-shared.tsx +0 -110
  778. package/_standalone/components/agents/agent-detail-primitives.tsx +0 -43
  779. package/_standalone/components/ask/AgentSelectorCapsule.tsx +0 -218
  780. package/_standalone/components/ask/AskContent.tsx +0 -849
  781. package/_standalone/components/ask/AskHeader.tsx +0 -279
  782. package/_standalone/components/ask/FileChip.tsx +0 -181
  783. package/_standalone/components/ask/HighlightMatch.tsx +0 -14
  784. package/_standalone/components/ask/MentionPopover.tsx +0 -92
  785. package/_standalone/components/ask/MessageList.tsx +0 -371
  786. package/_standalone/components/ask/ModeCapsule.tsx +0 -180
  787. package/_standalone/components/ask/ProviderModelCapsule.tsx +0 -589
  788. package/_standalone/components/ask/SaveInsightInline.tsx +0 -286
  789. package/_standalone/components/ask/SaveSessionInline.tsx +0 -491
  790. package/_standalone/components/ask/SessionHistory.tsx +0 -164
  791. package/_standalone/components/ask/SessionHistoryPanel.tsx +0 -398
  792. package/_standalone/components/ask/SessionTabBar.tsx +0 -78
  793. package/_standalone/components/ask/SlashCommandPopover.tsx +0 -82
  794. package/_standalone/components/ask/ThinkingBlock.tsx +0 -56
  795. package/_standalone/components/ask/ToolCallBlock.tsx +0 -187
  796. package/_standalone/components/ask/save-insight-utils.ts +0 -101
  797. package/_standalone/components/changes/ChangesBanner.tsx +0 -145
  798. package/_standalone/components/changes/ChangesContentPage.tsx +0 -540
  799. package/_standalone/components/echo/DailyEcho/DailyEchoReportButton.tsx +0 -88
  800. package/_standalone/components/echo/DailyEcho/DailyEchoReportDrawer.tsx +0 -129
  801. package/_standalone/components/echo/DailyEcho/sections/DailyEchoAlignmentSection.tsx +0 -76
  802. package/_standalone/components/echo/DailyEcho/sections/DailyEchoReflectionSection.tsx +0 -37
  803. package/_standalone/components/echo/DailyEcho/sections/DailyEchoSnapshotSection.tsx +0 -39
  804. package/_standalone/components/echo/DailyEcho/sections/DailyEchoThemesSection.tsx +0 -44
  805. package/_standalone/components/echo/EchoHero.tsx +0 -35
  806. package/_standalone/components/echo/EchoInsightCollapsible.tsx +0 -197
  807. package/_standalone/components/echo/EchoPageSections.tsx +0 -51
  808. package/_standalone/components/echo/EchoSegmentNav.tsx +0 -57
  809. package/_standalone/components/explore/UseCaseCard.tsx +0 -56
  810. package/_standalone/components/explore/use-cases.generated.ts +0 -76
  811. package/_standalone/components/explore/use-cases.yaml +0 -185
  812. package/_standalone/components/file-tree/FileTreeContextMenus.tsx +0 -160
  813. package/_standalone/components/home/InboxSection.tsx +0 -707
  814. package/_standalone/components/panels/AgentsPanel.tsx +0 -203
  815. package/_standalone/components/panels/AgentsPanelAgentDetail.tsx +0 -191
  816. package/_standalone/components/panels/AgentsPanelAgentGroups.tsx +0 -113
  817. package/_standalone/components/panels/AgentsPanelAgentListRow.tsx +0 -133
  818. package/_standalone/components/panels/AgentsPanelHubNav.tsx +0 -76
  819. package/_standalone/components/panels/DiscoverPanel.tsx +0 -212
  820. package/_standalone/components/panels/EchoPanel.tsx +0 -49
  821. package/_standalone/components/panels/EchoSidebarStats.tsx +0 -136
  822. package/_standalone/components/panels/IMChannelsView.tsx +0 -114
  823. package/_standalone/components/panels/ImportHistoryPanel.tsx +0 -195
  824. package/_standalone/components/panels/PanelHeader.tsx +0 -35
  825. package/_standalone/components/panels/PanelNavRow.tsx +0 -77
  826. package/_standalone/components/panels/PluginsPanel.tsx +0 -168
  827. package/_standalone/components/panels/SearchPanel.tsx +0 -283
  828. package/_standalone/components/panels/SyncPopover.tsx +0 -105
  829. package/_standalone/components/panels/WorkflowsPanel.tsx +0 -206
  830. package/_standalone/components/panels/agents-panel-resolve-status.ts +0 -13
  831. package/_standalone/components/renderers/agent-inspector/AgentInspectorRenderer.tsx +0 -322
  832. package/_standalone/components/renderers/audio/AudioRenderer.tsx +0 -79
  833. package/_standalone/components/renderers/backlinks/BacklinksRenderer.tsx +0 -147
  834. package/_standalone/components/renderers/change-log/ChangeLogRenderer.tsx +0 -472
  835. package/_standalone/components/renderers/config/ConfigRenderer.tsx +0 -236
  836. package/_standalone/components/renderers/csv/BoardView.tsx +0 -146
  837. package/_standalone/components/renderers/csv/ConfigPanel.tsx +0 -119
  838. package/_standalone/components/renderers/csv/CsvRenderer.tsx +0 -70
  839. package/_standalone/components/renderers/csv/EditableCell.tsx +0 -43
  840. package/_standalone/components/renderers/csv/GalleryView.tsx +0 -40
  841. package/_standalone/components/renderers/csv/TableView.tsx +0 -163
  842. package/_standalone/components/renderers/csv/types.ts +0 -87
  843. package/_standalone/components/renderers/graph/GraphRenderer.tsx +0 -427
  844. package/_standalone/components/renderers/image/ImageRenderer.tsx +0 -203
  845. package/_standalone/components/renderers/pdf/PdfRenderer.tsx +0 -57
  846. package/_standalone/components/renderers/summary/SummaryRenderer.tsx +0 -226
  847. package/_standalone/components/renderers/timeline/TimelineRenderer.tsx +0 -213
  848. package/_standalone/components/renderers/todo/FilterBar.tsx +0 -106
  849. package/_standalone/components/renderers/todo/SectionCard.tsx +0 -354
  850. package/_standalone/components/renderers/todo/TodoRenderer.tsx +0 -137
  851. package/_standalone/components/renderers/video/VideoRenderer.tsx +0 -91
  852. package/_standalone/components/renderers/workflow-yaml/StepEditor.tsx +0 -164
  853. package/_standalone/components/renderers/workflow-yaml/WorkflowEditor.tsx +0 -201
  854. package/_standalone/components/renderers/workflow-yaml/WorkflowRunner.tsx +0 -282
  855. package/_standalone/components/renderers/workflow-yaml/WorkflowYamlRenderer.tsx +0 -126
  856. package/_standalone/components/renderers/workflow-yaml/execution.ts +0 -229
  857. package/_standalone/components/renderers/workflow-yaml/index.ts +0 -6
  858. package/_standalone/components/renderers/workflow-yaml/parser.ts +0 -172
  859. package/_standalone/components/renderers/workflow-yaml/selectors.tsx +0 -574
  860. package/_standalone/components/renderers/workflow-yaml/serializer.ts +0 -56
  861. package/_standalone/components/renderers/workflow-yaml/types.ts +0 -46
  862. package/_standalone/components/settings/AiTab.tsx +0 -610
  863. package/_standalone/components/settings/AppearanceTab.tsx +0 -268
  864. package/_standalone/components/settings/CustomProviderFields.tsx +0 -121
  865. package/_standalone/components/settings/CustomProvidersCard.tsx +0 -154
  866. package/_standalone/components/settings/DesktopUpdateCards.tsx +0 -517
  867. package/_standalone/components/settings/KnowledgeTab.tsx +0 -719
  868. package/_standalone/components/settings/McpAgentInstall.tsx +0 -280
  869. package/_standalone/components/settings/McpConnectGuides.tsx +0 -439
  870. package/_standalone/components/settings/McpExternalTools.tsx +0 -252
  871. package/_standalone/components/settings/McpPortSection.tsx +0 -207
  872. package/_standalone/components/settings/McpSkillCreateForm.tsx +0 -177
  873. package/_standalone/components/settings/McpSkillRow.tsx +0 -144
  874. package/_standalone/components/settings/McpSkillsSection.tsx +0 -460
  875. package/_standalone/components/settings/McpTab.tsx +0 -310
  876. package/_standalone/components/settings/MonitoringTab.tsx +0 -202
  877. package/_standalone/components/settings/PluginsTab.tsx +0 -75
  878. package/_standalone/components/settings/Primitives.tsx +0 -325
  879. package/_standalone/components/settings/ProviderModal.tsx +0 -87
  880. package/_standalone/components/settings/SettingsContent.tsx +0 -437
  881. package/_standalone/components/settings/ShortcutsTab.tsx +0 -20
  882. package/_standalone/components/settings/SyncEmptyState.tsx +0 -233
  883. package/_standalone/components/settings/SyncTab.tsx +0 -556
  884. package/_standalone/components/settings/TestButton.tsx +0 -65
  885. package/_standalone/components/settings/UninstallTab.tsx +0 -169
  886. package/_standalone/components/settings/UpdateTab.tsx +0 -362
  887. package/_standalone/components/settings/WebPortSection.tsx +0 -263
  888. package/_standalone/components/settings/types.ts +0 -210
  889. package/_standalone/components/settings/useCustomProviderForm.ts +0 -132
  890. package/_standalone/components/setup/StepAI.tsx +0 -217
  891. package/_standalone/components/setup/StepAgents.tsx +0 -324
  892. package/_standalone/components/setup/StepDots.tsx +0 -51
  893. package/_standalone/components/setup/StepKB.tsx +0 -263
  894. package/_standalone/components/setup/StepPorts.tsx +0 -121
  895. package/_standalone/components/setup/StepReview.tsx +0 -414
  896. package/_standalone/components/setup/StepSecurity.tsx +0 -77
  897. package/_standalone/components/setup/constants.tsx +0 -14
  898. package/_standalone/components/setup/types.ts +0 -61
  899. package/_standalone/components/shared/ModelInput.tsx +0 -220
  900. package/_standalone/components/shared/ProviderSelect.tsx +0 -224
  901. package/_standalone/components/ui/button.tsx +0 -60
  902. package/_standalone/components/ui/dialog.tsx +0 -157
  903. package/_standalone/components/ui/input.tsx +0 -20
  904. package/_standalone/components/ui/scroll-area.tsx +0 -55
  905. package/_standalone/components/ui/toggle.tsx +0 -44
  906. package/_standalone/components/walkthrough/WalkthroughOverlay.tsx +0 -266
  907. package/_standalone/components/walkthrough/WalkthroughTooltip.tsx +0 -131
  908. package/_standalone/components/walkthrough/index.ts +0 -3
  909. package/_standalone/components/walkthrough/steps.ts +0 -23
  910. package/_standalone/components.json +0 -25
  911. package/_standalone/eslint.config.mjs +0 -18
  912. package/_standalone/hooks/useA2aRegistry.ts +0 -58
  913. package/_standalone/hooks/useAcpConfig.ts +0 -96
  914. package/_standalone/hooks/useAcpDetection.ts +0 -126
  915. package/_standalone/hooks/useAcpRegistry.ts +0 -86
  916. package/_standalone/hooks/useAiOrganize.ts +0 -464
  917. package/_standalone/hooks/useAskChat.ts +0 -339
  918. package/_standalone/hooks/useAskModal.ts +0 -51
  919. package/_standalone/hooks/useAskPanel.ts +0 -164
  920. package/_standalone/hooks/useAskSession.ts +0 -310
  921. package/_standalone/hooks/useComposerVerticalResize.ts +0 -74
  922. package/_standalone/hooks/useDelegationHistory.ts +0 -49
  923. package/_standalone/hooks/useEditorImageUpload.ts +0 -113
  924. package/_standalone/hooks/useFileImport.ts +0 -233
  925. package/_standalone/hooks/useFileUpload.ts +0 -206
  926. package/_standalone/hooks/useImageUpload.ts +0 -153
  927. package/_standalone/hooks/useLeftPanel.ts +0 -81
  928. package/_standalone/hooks/useMention.ts +0 -108
  929. package/_standalone/hooks/useResizeDrag.ts +0 -84
  930. package/_standalone/hooks/useSettingsAiAvailable.ts +0 -35
  931. package/_standalone/hooks/useSlashCommand.ts +0 -128
  932. package/_standalone/instrumentation.ts +0 -60
  933. package/_standalone/lib/a2a/index.ts +0 -31
  934. package/_standalone/lib/acp/bridge.ts +0 -144
  935. package/_standalone/lib/acp/index.ts +0 -38
  936. package/_standalone/lib/acp/types.ts +0 -247
  937. package/_standalone/lib/agent/diff-worker.ts +0 -51
  938. package/_standalone/lib/agent/file-context.ts +0 -116
  939. package/_standalone/lib/agent/index.ts +0 -8
  940. package/_standalone/lib/agent/stream-consumer.ts +0 -231
  941. package/_standalone/lib/api/request-utils.ts +0 -57
  942. package/_standalone/lib/api.ts +0 -83
  943. package/_standalone/lib/ask-agent.ts +0 -46
  944. package/_standalone/lib/clipboard.ts +0 -29
  945. package/_standalone/lib/config/animation.ts +0 -76
  946. package/_standalone/lib/config/icon-scale.ts +0 -35
  947. package/_standalone/lib/config/panel-sizes.ts +0 -58
  948. package/_standalone/lib/core/types.ts +0 -53
  949. package/_standalone/lib/daily-echo/aggregator.ts +0 -149
  950. package/_standalone/lib/daily-echo/ask-llm.ts +0 -77
  951. package/_standalone/lib/daily-echo/config.ts +0 -72
  952. package/_standalone/lib/daily-echo/generator.ts +0 -192
  953. package/_standalone/lib/daily-echo/prompts.ts +0 -200
  954. package/_standalone/lib/daily-echo/snapshot.ts +0 -19
  955. package/_standalone/lib/daily-echo/types.ts +0 -340
  956. package/_standalone/lib/db/daily-echo-db.ts +0 -194
  957. package/_standalone/lib/echo-insight-prompt.ts +0 -38
  958. package/_standalone/lib/hooks/useDirectoryDragDrop.ts +0 -94
  959. package/_standalone/lib/hooks/useFocusTrap.ts +0 -65
  960. package/_standalone/lib/hooks/usePinnedFiles.ts +0 -95
  961. package/_standalone/lib/i18n/_core.ts +0 -22
  962. package/_standalone/lib/im/adapters/dingtalk.ts +0 -210
  963. package/_standalone/lib/im/adapters/discord.ts +0 -128
  964. package/_standalone/lib/im/adapters/feishu.ts +0 -248
  965. package/_standalone/lib/im/adapters/qq.ts +0 -176
  966. package/_standalone/lib/im/adapters/slack.ts +0 -150
  967. package/_standalone/lib/im/adapters/telegram.ts +0 -156
  968. package/_standalone/lib/im/adapters/wechat.ts +0 -127
  969. package/_standalone/lib/im/adapters/wecom.ts +0 -160
  970. package/_standalone/lib/im/index.ts +0 -122
  971. package/_standalone/lib/im/platforms.ts +0 -152
  972. package/_standalone/lib/image.ts +0 -47
  973. package/_standalone/lib/inbox-upload.ts +0 -260
  974. package/_standalone/lib/mcp-snippets.ts +0 -107
  975. package/_standalone/lib/obsidian-compat/command-registry.ts +0 -85
  976. package/_standalone/lib/obsidian-compat/component.ts +0 -84
  977. package/_standalone/lib/obsidian-compat/errors.ts +0 -27
  978. package/_standalone/lib/obsidian-compat/events.ts +0 -50
  979. package/_standalone/lib/obsidian-compat/index.ts +0 -18
  980. package/_standalone/lib/obsidian-compat/loader.ts +0 -225
  981. package/_standalone/lib/obsidian-compat/manifest.ts +0 -90
  982. package/_standalone/lib/obsidian-compat/plugin-manager.ts +0 -149
  983. package/_standalone/lib/obsidian-compat/shims/app.ts +0 -74
  984. package/_standalone/lib/obsidian-compat/shims/metadata-cache.ts +0 -125
  985. package/_standalone/lib/obsidian-compat/shims/obsidian.ts +0 -25
  986. package/_standalone/lib/obsidian-compat/shims/plugin.ts +0 -111
  987. package/_standalone/lib/obsidian-compat/shims/settings.ts +0 -173
  988. package/_standalone/lib/obsidian-compat/shims/ui.ts +0 -73
  989. package/_standalone/lib/obsidian-compat/shims/vault.ts +0 -247
  990. package/_standalone/lib/obsidian-compat/types.ts +0 -197
  991. package/_standalone/lib/organize-history.ts +0 -80
  992. package/_standalone/lib/parsing/parse-todos.ts +0 -325
  993. package/_standalone/lib/pdf-extract.ts +0 -37
  994. package/_standalone/lib/pi-integration/session-store.ts +0 -62
  995. package/_standalone/lib/renderers/useRendererState.ts +0 -114
  996. package/_standalone/lib/settings-ai-client.ts +0 -36
  997. package/_standalone/lib/space-ai-init.ts +0 -66
  998. package/_standalone/lib/stores/McpStoreInit.tsx +0 -18
  999. package/_standalone/lib/stores/WalkthroughInit.tsx +0 -20
  1000. package/_standalone/lib/stores/hidden-files.ts +0 -43
  1001. package/_standalone/lib/stores/locale-store.ts +0 -69
  1002. package/_standalone/lib/stores/mcp-store.ts +0 -166
  1003. package/_standalone/lib/stores/walkthrough-store.ts +0 -150
  1004. package/_standalone/lib/toast.ts +0 -85
  1005. package/_standalone/lib/utils.ts +0 -45
  1006. package/_standalone/next-env.d.ts +0 -6
  1007. package/_standalone/next.config.ts +0 -44
  1008. package/_standalone/package-lock.json +0 -18646
  1009. package/_standalone/package.json +0 -104
  1010. package/_standalone/postcss.config.mjs +0 -7
  1011. package/_standalone/proxy.ts +0 -88
  1012. package/_standalone/public/file.svg +0 -1
  1013. package/_standalone/public/globe.svg +0 -1
  1014. package/_standalone/public/icons/icon-192.png +0 -0
  1015. package/_standalone/public/icons/icon-512.png +0 -0
  1016. package/_standalone/public/logo-square.svg +0 -37
  1017. package/_standalone/public/logo.svg +0 -37
  1018. package/_standalone/public/manifest.json +0 -26
  1019. package/_standalone/public/next.svg +0 -1
  1020. package/_standalone/public/sw.js +0 -66
  1021. package/_standalone/public/vercel.svg +0 -1
  1022. package/_standalone/public/window.svg +0 -1
  1023. package/_standalone/scripts/extract-pdf.cjs +0 -163
  1024. package/_standalone/scripts/generate-explore.ts +0 -145
  1025. package/_standalone/server.js +0 -38
  1026. package/_standalone/tsconfig.json +0 -34
  1027. package/_standalone/tsconfig.tsbuildinfo +0 -1
  1028. package/_standalone/types/semver.d.ts +0 -8
  1029. package/_standalone/vitest.config.ts +0 -14
@@ -1,9 +0,0 @@
1
- exports.id=5464,exports.ids=[5464],exports.modules={6361:(a,b,c)=>{"use strict";let{EMPTY_BUFFER:d}=c(17165),e=Buffer[Symbol.species];function f(a,b,c,d,e){for(let f=0;f<e;f++)c[d+f]=a[f]^b[3&f]}function g(a,b){for(let c=0;c<a.length;c++)a[c]^=b[3&c]}function h(a){let b;return(h.readOnly=!0,Buffer.isBuffer(a))?a:(a instanceof ArrayBuffer?b=new e(a):ArrayBuffer.isView(a)?b=new e(a.buffer,a.byteOffset,a.byteLength):(b=Buffer.from(a),h.readOnly=!1),b)}if(a.exports={concat:function(a,b){if(0===a.length)return d;if(1===a.length)return a[0];let c=Buffer.allocUnsafe(b),f=0;for(let b=0;b<a.length;b++){let d=a[b];c.set(d,f),f+=d.length}return f<b?new e(c.buffer,c.byteOffset,f):c},mask:f,toArrayBuffer:function(a){return a.length===a.buffer.byteLength?a.buffer:a.buffer.slice(a.byteOffset,a.byteOffset+a.length)},toBuffer:h,unmask:g},!process.env.WS_NO_BUFFER_UTIL)try{let b=c(39727);a.exports.mask=function(a,c,d,e,g){g<48?f(a,c,d,e,g):b.mask(a,c,d,e,g)},a.exports.unmask=function(a,c){a.length<32?g(a,c):b.unmask(a,c)}}catch(a){}},7253:(a,b,c)=>{"use strict";a.exports=f;var d=c(28908);(f.prototype=Object.create(d.prototype)).constructor=f;var e=c(68627);function f(a){d.call(this,a)}f._configure=function(){e.Buffer&&(f.prototype._slice=e.Buffer.prototype.slice)},f.prototype.string=function(){var a=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+a,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+a,this.len))},f._configure()},11478:a=>{"use strict";var b=String.prototype.replace,c=/%20/g,d="RFC3986";a.exports={default:d,formatters:{RFC1738:function(a){return b.call(a,c,"+")},RFC3986:function(a){return String(a)}},RFC1738:"RFC1738",RFC3986:d}},13259:(a,b,c)=>{"use strict";let{Writable:d}=c(27910),e=c(88634),{BINARY_TYPES:f,EMPTY_BUFFER:g,kStatusCode:h,kWebSocket:i}=c(17165),{concat:j,toArrayBuffer:k,unmask:l}=c(6361),{isValidStatusCode:m,isValidUTF8:n}=c(97861),o=Buffer[Symbol.species],p=0,q=1,r=2,s=3,t=4,u=5,v=6;class w extends d{constructor(a={}){super(),this._allowSynchronousEvents=void 0===a.allowSynchronousEvents||a.allowSynchronousEvents,this._binaryType=a.binaryType||f[0],this._extensions=a.extensions||{},this._isServer=!!a.isServer,this._maxPayload=0|a.maxPayload,this._skipUTF8Validation=!!a.skipUTF8Validation,this[i]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=p}_write(a,b,c){if(8===this._opcode&&this._state==p)return c();this._bufferedBytes+=a.length,this._buffers.push(a),this.startLoop(c)}consume(a){if(this._bufferedBytes-=a,a===this._buffers[0].length)return this._buffers.shift();if(a<this._buffers[0].length){let b=this._buffers[0];return this._buffers[0]=new o(b.buffer,b.byteOffset+a,b.length-a),new o(b.buffer,b.byteOffset,a)}let b=Buffer.allocUnsafe(a);do{let c=this._buffers[0],d=b.length-a;a>=c.length?b.set(this._buffers.shift(),d):(b.set(new Uint8Array(c.buffer,c.byteOffset,a),d),this._buffers[0]=new o(c.buffer,c.byteOffset+a,c.length-a)),a-=c.length}while(a>0);return b}startLoop(a){this._loop=!0;do switch(this._state){case p:this.getInfo(a);break;case q:this.getPayloadLength16(a);break;case r:this.getPayloadLength64(a);break;case s:this.getMask();break;case t:this.getData(a);break;case u:case v:this._loop=!1;return}while(this._loop);this._errored||a()}getInfo(a){if(this._bufferedBytes<2){this._loop=!1;return}let b=this.consume(2);if((48&b[0])!=0)return void a(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"));let c=(64&b[0])==64;if(c&&!this._extensions[e.extensionName])return void a(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"));if(this._fin=(128&b[0])==128,this._opcode=15&b[0],this._payloadLength=127&b[1],0===this._opcode){if(c)return void a(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"));if(!this._fragmented)return void a(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"));this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented)return void a(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"));this._compressed=c}else{if(!(this._opcode>7)||!(this._opcode<11))return void a(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"));if(!this._fin)return void a(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"));if(c)return void a(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"));if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength)return void a(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=(128&b[1])==128,this._isServer){if(!this._masked)return void a(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}else if(this._masked)return void a(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"));126===this._payloadLength?this._state=q:127===this._payloadLength?this._state=r:this.haveLength(a)}getPayloadLength16(a){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(a)}getPayloadLength64(a){if(this._bufferedBytes<8){this._loop=!1;return}let b=this.consume(8),c=b.readUInt32BE(0);c>2097151?a(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")):(this._payloadLength=0x100000000*c+b.readUInt32BE(4),this.haveLength(a))}haveLength(a){this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)?a(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH")):this._masked?this._state=s:this._state=t}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=t}getData(a){let b=g;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}b=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!=0&&l(b,this._mask)}if(this._opcode>7)return void this.controlMessage(b,a);if(this._compressed){this._state=u,this.decompress(b,a);return}b.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(b)),this.dataMessage(a)}decompress(a,b){this._extensions[e.extensionName].decompress(a,this._fin,(a,c)=>{if(a)return b(a);if(c.length){if(this._messageLength+=c.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return void b(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));this._fragments.push(c)}this.dataMessage(b),this._state===p&&this.startLoop(b)})}dataMessage(a){if(!this._fin){this._state=p;return}let b=this._messageLength,c=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let d;d="nodebuffer"===this._binaryType?j(c,b):"arraybuffer"===this._binaryType?k(j(c,b)):"blob"===this._binaryType?new Blob(c):c,this._allowSynchronousEvents?(this.emit("message",d,!0),this._state=p):(this._state=v,setImmediate(()=>{this.emit("message",d,!0),this._state=p,this.startLoop(a)}))}else{let d=j(c,b);if(!this._skipUTF8Validation&&!n(d))return void a(this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8"));this._state===u||this._allowSynchronousEvents?(this.emit("message",d,!1),this._state=p):(this._state=v,setImmediate(()=>{this.emit("message",d,!1),this._state=p,this.startLoop(a)}))}}controlMessage(a,b){if(8===this._opcode){if(0===a.length)this._loop=!1,this.emit("conclude",1005,g),this.end();else{let c=a.readUInt16BE(0);if(!m(c))return void b(this.createError(RangeError,`invalid status code ${c}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE"));let d=new o(a.buffer,a.byteOffset+2,a.length-2);if(!this._skipUTF8Validation&&!n(d))return void b(this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8"));this._loop=!1,this.emit("conclude",c,d),this.end()}this._state=p;return}this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",a),this._state=p):(this._state=v,setImmediate(()=>{this.emit(9===this._opcode?"ping":"pong",a),this._state=p,this.startLoop(b)}))}createError(a,b,c,d,e){this._loop=!1,this._errored=!0;let f=new a(c?`Invalid WebSocket frame: ${b}`:b);return Error.captureStackTrace(f,this.createError),f.code=e,f[h]=d,f}}a.exports=w},14061:(a,b,c)=>{"use strict";a.exports=c(38237)},14196:(a,b)=>{"use strict";var c=b;c.length=function(a){for(var b=0,c=0,d=0;d<a.length;++d)(c=a.charCodeAt(d))<128?b+=1:c<2048?b+=2:(64512&c)==55296&&(64512&a.charCodeAt(d+1))==56320?(++d,b+=4):b+=3;return b},c.read=function(a,b,c){if(c-b<1)return"";for(var d,e=null,f=[],g=0;b<c;)(d=a[b++])<128?f[g++]=d:d>191&&d<224?f[g++]=(31&d)<<6|63&a[b++]:d>239&&d<365?(d=((7&d)<<18|(63&a[b++])<<12|(63&a[b++])<<6|63&a[b++])-65536,f[g++]=55296+(d>>10),f[g++]=56320+(1023&d)):f[g++]=(15&d)<<12|(63&a[b++])<<6|63&a[b++],g>8191&&((e||(e=[])).push(String.fromCharCode.apply(String,f)),g=0);return e?(g&&e.push(String.fromCharCode.apply(String,f.slice(0,g))),e.join("")):String.fromCharCode.apply(String,f.slice(0,g))},c.write=function(a,b,c){for(var d,e,f=c,g=0;g<a.length;++g)(d=a.charCodeAt(g))<128?b[c++]=d:(d<2048?b[c++]=d>>6|192:((64512&d)==55296&&(64512&(e=a.charCodeAt(g+1)))==56320?(d=65536+((1023&d)<<10)+(1023&e),++g,b[c++]=d>>18|240,b[c++]=d>>12&63|128):b[c++]=d>>12|224,b[c++]=d>>6&63|128),b[c++]=63&d|128);return c-f}},14684:a=>{"use strict";a.exports=function a(a,b){for(var c=Array(arguments.length-1),d=0,e=2,f=!0;e<arguments.length;)c[d++]=arguments[e++];return new Promise(function(e,g){c[d]=function(a){if(f)if(f=!1,a)g(a);else{for(var b=Array(arguments.length-1),c=0;c<b.length;)b[c++]=arguments[c];e.apply(null,b)}};try{a.apply(b||null,c)}catch(a){f&&(f=!1,g(a))}})}},16204:(a,b,c)=>{"use strict";b.Service=c(83056)},17165:a=>{"use strict";let b=["nodebuffer","arraybuffer","fragments"],c="u">typeof Blob;c&&b.push("blob"),a.exports={BINARY_TYPES:b,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:c,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},19531:(a,b,c)=>{a=c.nmd(a);var d=200,e="Expected a function",f="__lodash_hash_undefined__",g=1,h=2,i=1/0,j=0x1fffffffffffff,k="[object Arguments]",l="[object Array]",m="[object Boolean]",n="[object Date]",o="[object Error]",p="[object Function]",q="[object GeneratorFunction]",r="[object Map]",s="[object Number]",t="[object Object]",u="[object Promise]",v="[object RegExp]",w="[object Set]",x="[object String]",y="[object Symbol]",z="[object WeakMap]",A="[object ArrayBuffer]",B="[object DataView]",C="[object Float64Array]",D="[object Int8Array]",E="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",H="[object Uint8ClampedArray]",I="[object Uint16Array]",J="[object Uint32Array]",K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L=/^\w*$/,M=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/[\\^$.*+?()[\]{}|]/g,P=/\\(\\)?/g,Q=/^\[object .+?Constructor\]$/,R=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S[C]=S[D]=S[E]=S[F]=S[G]=S[H]=S[I]=S[J]=!0,S[k]=S[l]=S[A]=S[m]=S[B]=S[n]=S[o]=S[p]=S[r]=S[s]=S[t]=S[v]=S[w]=S[x]=S[z]=!1;var T="object"==typeof global&&global&&global.Object===Object&&global,U="object"==typeof self&&self&&self.Object===Object&&self,V=T||U||Function("return this")(),W=b&&!b.nodeType&&b,X=W&&a&&!a.nodeType&&a,Y=X&&X.exports===W&&T.process,Z=function(){try{return Y&&Y.binding("util")}catch(a){}}(),$=Z&&Z.isTypedArray;function _(a,b){for(var c=-1,d=b.length,e=a.length;++c<d;)a[e+c]=b[c];return a}function aa(a,b){for(var c=-1,d=a?a.length:0;++c<d;)if(b(a[c],c,a))return!0;return!1}function ab(a){return function(b){return null==b?void 0:b[a]}}function ac(a,b){for(var c=-1,d=Array(a);++c<a;)d[c]=b(c);return d}function ad(a){return function(b){return a(b)}}function ae(a,b){return null==a?void 0:a[b]}function af(a){var b=!1;if(null!=a&&"function"!=typeof a.toString)try{b=!!(a+"")}catch(a){}return b}function ag(a){var b=-1,c=Array(a.size);return a.forEach(function(a,d){c[++b]=[d,a]}),c}function ah(a,b){return function(c){return a(b(c))}}function ai(a){var b=-1,c=Array(a.size);return a.forEach(function(a){c[++b]=a}),c}var aj=Array.prototype,ak=Function.prototype,al=Object.prototype,am=V["__core-js_shared__"],an=function(){var a=/[^.]+$/.exec(am&&am.keys&&am.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),ao=ak.toString,ap=al.hasOwnProperty,aq=al.toString,ar=RegExp("^"+ao.call(ap).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),as=V.Symbol,at=V.Uint8Array,au=ah(Object.getPrototypeOf,Object),av=al.propertyIsEnumerable,aw=aj.splice,ax=Object.getOwnPropertySymbols,ay=ah(Object.keys,Object),az=bC(V,"DataView"),aA=bC(V,"Map"),aB=bC(V,"Promise"),aC=bC(V,"Set"),aD=bC(V,"WeakMap"),aE=bC(Object,"create"),aF=bR(az),aG=bR(aA),aH=bR(aB),aI=bR(aC),aJ=bR(aD),aK=as?as.prototype:void 0,aL=aK?aK.valueOf:void 0,aM=aK?aK.toString:void 0;function aN(a){var b=-1,c=a?a.length:0;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}function aO(){this.__data__=aE?aE(null):{}}function aP(a){return this.has(a)&&delete this.__data__[a]}function aQ(a){var b=this.__data__;if(aE){var c=b[a];return c===f?void 0:c}return ap.call(b,a)?b[a]:void 0}function aR(a){var b=this.__data__;return aE?void 0!==b[a]:ap.call(b,a)}function aS(a,b){return this.__data__[a]=aE&&void 0===b?f:b,this}function aT(a){var b=-1,c=a?a.length:0;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}function aU(){this.__data__=[]}function aV(a){var b=this.__data__,c=bd(b,a);return!(c<0)&&(c==b.length-1?b.pop():aw.call(b,c,1),!0)}function aW(a){var b=this.__data__,c=bd(b,a);return c<0?void 0:b[c][1]}function aX(a){return bd(this.__data__,a)>-1}function aY(a,b){var c=this.__data__,d=bd(c,a);return d<0?c.push([a,b]):c[d][1]=b,this}function aZ(a){var b=-1,c=a?a.length:0;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}function a$(){this.__data__={hash:new aN,map:new(aA||aT),string:new aN}}function a_(a){return bA(this,a).delete(a)}function a0(a){return bA(this,a).get(a)}function a1(a){return bA(this,a).has(a)}function a2(a,b){return bA(this,a).set(a,b),this}function a3(a){var b=-1,c=a?a.length:0;for(this.__data__=new aZ;++b<c;)this.add(a[b])}function a4(a){return this.__data__.set(a,f),this}function a5(a){return this.__data__.has(a)}function a6(a){this.__data__=new aT(a)}function a7(){this.__data__=new aT}function a8(a){return this.__data__.delete(a)}function a9(a){return this.__data__.get(a)}function ba(a){return this.__data__.has(a)}function bb(a,b){var c=this.__data__;if(c instanceof aT){var e=c.__data__;if(!aA||e.length<d-1)return e.push([a,b]),this;c=this.__data__=new aZ(e)}return c.set(a,b),this}function bc(a,b){var c=bV(a)||bU(a)?ac(a.length,String):[],d=c.length,e=!!d;for(var f in a)(b||ap.call(a,f))&&!(e&&("length"==f||bH(f,d)))&&c.push(f);return c}function bd(a,b){for(var c=a.length;c--;)if(bT(a[c][0],b))return c;return -1}function be(a,b){b=bI(b,a)?[b]:bv(b);for(var c=0,d=b.length;null!=a&&c<d;)a=a[bQ(b[c++])];return c&&c==d?a:void 0}function bf(a,b,c){var d=b(a);return bV(a)?d:_(d,c(a))}function bg(a){return aq.call(a)}function bh(a,b){return null!=a&&b in Object(a)}function bi(a,b,c,d,e){return a===b||(null!=a&&null!=b&&(b$(a)||b_(b))?bj(a,b,bi,c,d,e):a!=a&&b!=b)}function bj(a,b,c,d,e,f){var g=bV(a),i=bV(b),j=l,m=l;g||(j=(j=bF(a))==k?t:j),i||(m=(m=bF(b))==k?t:m);var n=j==t&&!af(a),o=m==t&&!af(b),p=j==m;if(p&&!n)return f||(f=new a6),g||b1(a)?bw(a,b,c,d,e,f):bx(a,b,j,c,d,e,f);if(!(e&h)){var q=n&&ap.call(a,"__wrapped__"),r=o&&ap.call(b,"__wrapped__");if(q||r){var s=q?a.value():a,u=r?b.value():b;return f||(f=new a6),c(s,u,d,e,f)}}return!!p&&(f||(f=new a6),by(a,b,c,d,e,f))}function bk(a,b,c,d){var e=c.length,f=e,i=!d;if(null==a)return!f;for(a=Object(a);e--;){var j=c[e];if(i&&j[2]?j[1]!==a[j[0]]:!(j[0]in a))return!1}for(;++e<f;){var k=(j=c[e])[0],l=a[k],m=j[1];if(i&&j[2]){if(void 0===l&&!(k in a))return!1}else{var n=new a6;if(d)var o=d(l,m,k,a,b,n);if(!(void 0===o?bi(m,l,d,g|h,n):o))return!1}}return!0}function bl(a){return!(!b$(a)||bK(a))&&(bY(a)||af(a)?ar:Q).test(bR(a))}function bm(a){return b_(a)&&bZ(a.length)&&!!S[aq.call(a)]}function bn(a){return"function"==typeof a?a:null==a?b8:"object"==typeof a?bV(a)?br(a[0],a[1]):bq(a):b9(a)}function bo(a){if(!bL(a))return ay(a);var b=[];for(var c in Object(a))ap.call(a,c)&&"constructor"!=c&&b.push(c);return b}function bp(a){if(!b$(a))return bO(a);var b=bL(a),c=[];for(var d in a)"constructor"==d&&(b||!ap.call(a,d))||c.push(d);return c}function bq(a){var b=bB(a);return 1==b.length&&b[0][2]?bN(b[0][0],b[0][1]):function(c){return c===a||bk(c,a,b)}}function br(a,b){return bI(a)&&bM(b)?bN(bQ(a),b):function(c){var d=b3(c,a);return void 0===d&&d===b?b4(c,a):bi(b,d,void 0,g|h)}}function bs(a,b,c){for(var d=-1,e=b.length,f={};++d<e;){var g=b[d],h=a[g];c(h,g)&&(f[g]=h)}return f}function bt(a){return function(b){return be(b,a)}}function bu(a){if("string"==typeof a)return a;if(b0(a))return aM?aM.call(a):"";var b=a+"";return"0"==b&&1/a==-i?"-0":b}function bv(a){return bV(a)?a:bP(a)}function bw(a,b,c,d,e,f){var i=e&h,j=a.length,k=b.length;if(j!=k&&!(i&&k>j))return!1;var l=f.get(a);if(l&&f.get(b))return l==b;var m=-1,n=!0,o=e&g?new a3:void 0;for(f.set(a,b),f.set(b,a);++m<j;){var p=a[m],q=b[m];if(d)var r=i?d(q,p,m,b,a,f):d(p,q,m,a,b,f);if(void 0!==r){if(r)continue;n=!1;break}if(o){if(!aa(b,function(a,b){if(!o.has(b)&&(p===a||c(p,a,d,e,f)))return o.add(b)})){n=!1;break}}else if(!(p===q||c(p,q,d,e,f))){n=!1;break}}return f.delete(a),f.delete(b),n}function bx(a,b,c,d,e,f,i){switch(c){case B:if(a.byteLength!=b.byteLength||a.byteOffset!=b.byteOffset)break;a=a.buffer,b=b.buffer;case A:if(a.byteLength!=b.byteLength||!d(new at(a),new at(b)))break;return!0;case m:case n:case s:return bT(+a,+b);case o:return a.name==b.name&&a.message==b.message;case v:case x:return a==b+"";case r:var j=ag;case w:var k=f&h;if(j||(j=ai),a.size!=b.size&&!k)break;var l=i.get(a);if(l)return l==b;f|=g,i.set(a,b);var p=bw(j(a),j(b),d,e,f,i);return i.delete(a),p;case y:if(aL)return aL.call(a)==aL.call(b)}return!1}function by(a,b,c,d,e,f){var g=e&h,i=b5(a),j=i.length;if(j!=b5(b).length&&!g)return!1;for(var k=j;k--;){var l=i[k];if(!(g?l in b:ap.call(b,l)))return!1}var m=f.get(a);if(m&&f.get(b))return m==b;var n=!0;f.set(a,b),f.set(b,a);for(var o=g;++k<j;){var p=a[l=i[k]],q=b[l];if(d)var r=g?d(q,p,l,b,a,f):d(p,q,l,a,b,f);if(!(void 0===r?p===q||c(p,q,d,e,f):r)){n=!1;break}o||(o="constructor"==l)}if(n&&!o){var s=a.constructor,t=b.constructor;s!=t&&"constructor"in a&&"constructor"in b&&!("function"==typeof s&&s instanceof s&&"function"==typeof t&&t instanceof t)&&(n=!1)}return f.delete(a),f.delete(b),n}function bz(a){return bf(a,b6,bE)}function bA(a,b){var c=a.__data__;return bJ(b)?c["string"==typeof b?"string":"hash"]:c.map}function bB(a){for(var b=b5(a),c=b.length;c--;){var d=b[c],e=a[d];b[c]=[d,e,bM(e)]}return b}function bC(a,b){var c=ae(a,b);return bl(c)?c:void 0}aN.prototype.clear=aO,aN.prototype.delete=aP,aN.prototype.get=aQ,aN.prototype.has=aR,aN.prototype.set=aS,aT.prototype.clear=aU,aT.prototype.delete=aV,aT.prototype.get=aW,aT.prototype.has=aX,aT.prototype.set=aY,aZ.prototype.clear=a$,aZ.prototype.delete=a_,aZ.prototype.get=a0,aZ.prototype.has=a1,aZ.prototype.set=a2,a3.prototype.add=a3.prototype.push=a4,a3.prototype.has=a5,a6.prototype.clear=a7,a6.prototype.delete=a8,a6.prototype.get=a9,a6.prototype.has=ba,a6.prototype.set=bb;var bD=ax?ah(ax,Object):ca,bE=ax?function(a){for(var b=[];a;)_(b,bD(a)),a=au(a);return b}:ca,bF=bg;function bG(a,b,c){b=bI(b,a)?[b]:bv(b);for(var d,e=-1,f=b.length;++e<f;){var g=bQ(b[e]);if(!(d=null!=a&&c(a,g)))break;a=a[g]}if(d)return d;var f=a?a.length:0;return!!f&&bZ(f)&&bH(g,f)&&(bV(a)||bU(a))}function bH(a,b){return!!(b=null==b?j:b)&&("number"==typeof a||R.test(a))&&a>-1&&a%1==0&&a<b}function bI(a,b){if(bV(a))return!1;var c=typeof a;return!!("number"==c||"symbol"==c||"boolean"==c||null==a||b0(a))||L.test(a)||!K.test(a)||null!=b&&a in Object(b)}function bJ(a){var b=typeof a;return"string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==a:null===a}function bK(a){return!!an&&an in a}function bL(a){var b=a&&a.constructor;return a===("function"==typeof b&&b.prototype||al)}function bM(a){return a==a&&!b$(a)}function bN(a,b){return function(c){return null!=c&&c[a]===b&&(void 0!==b||a in Object(c))}}function bO(a){var b=[];if(null!=a)for(var c in Object(a))b.push(c);return b}(az&&bF(new az(new ArrayBuffer(1)))!=B||aA&&bF(new aA)!=r||aB&&bF(aB.resolve())!=u||aC&&bF(new aC)!=w||aD&&bF(new aD)!=z)&&(bF=function(a){var b=aq.call(a),c=b==t?a.constructor:void 0,d=c?bR(c):void 0;if(d)switch(d){case aF:return B;case aG:return r;case aH:return u;case aI:return w;case aJ:return z}return b});var bP=bS(function(a){a=b2(a);var b=[];return M.test(a)&&b.push(""),a.replace(N,function(a,c,d,e){b.push(d?e.replace(P,"$1"):c||a)}),b});function bQ(a){if("string"==typeof a||b0(a))return a;var b=a+"";return"0"==b&&1/a==-i?"-0":b}function bR(a){if(null!=a){try{return ao.call(a)}catch(a){}try{return a+""}catch(a){}}return""}function bS(a,b){if("function"!=typeof a||b&&"function"!=typeof b)throw TypeError(e);var c=function(){var d=arguments,e=b?b.apply(this,d):d[0],f=c.cache;if(f.has(e))return f.get(e);var g=a.apply(this,d);return c.cache=f.set(e,g),g};return c.cache=new(bS.Cache||aZ),c}function bT(a,b){return a===b||a!=a&&b!=b}function bU(a){return bX(a)&&ap.call(a,"callee")&&(!av.call(a,"callee")||aq.call(a)==k)}bS.Cache=aZ;var bV=Array.isArray;function bW(a){return null!=a&&bZ(a.length)&&!bY(a)}function bX(a){return b_(a)&&bW(a)}function bY(a){var b=b$(a)?aq.call(a):"";return b==p||b==q}function bZ(a){return"number"==typeof a&&a>-1&&a%1==0&&a<=j}function b$(a){var b=typeof a;return!!a&&("object"==b||"function"==b)}function b_(a){return!!a&&"object"==typeof a}function b0(a){return"symbol"==typeof a||b_(a)&&aq.call(a)==y}var b1=$?ad($):bm;function b2(a){return null==a?"":bu(a)}function b3(a,b,c){var d=null==a?void 0:be(a,b);return void 0===d?c:d}function b4(a,b){return null!=a&&bG(a,b,bh)}function b5(a){return bW(a)?bc(a):bo(a)}function b6(a){return bW(a)?bc(a,!0):bp(a)}function b7(a,b){return null==a?{}:bs(a,bz(a),bn(b))}function b8(a){return a}function b9(a){return bI(a)?ab(bQ(a)):bt(a)}function ca(){return[]}a.exports=b7},23071:(a,b,c)=>{"use strict";var d=c(10616),e=c(35008),f=c(50266),g=c(29032),h=c(45816)||g||f;a.exports=function(){var a,b={assert:function(a){if(!b.has(a))throw new d("Side channel does not contain "+e(a))},delete:function(b){return!!a&&a.delete(b)},get:function(b){return a&&a.get(b)},has:function(b){return!!a&&a.has(b)},set:function(b,c){a||(a=h()),a.set(b,c)}};return b}},24509:(a,b,c)=>{"use strict";let{tokenChars:d}=c(97861);function e(a,b,c){void 0===a[b]?a[b]=[c]:a[b].push(c)}a.exports={format:function(a){return Object.keys(a).map(b=>{let c=a[b];return Array.isArray(c)||(c=[c]),c.map(a=>[b].concat(Object.keys(a).map(b=>{let c=a[b];return Array.isArray(c)||(c=[c]),c.map(a=>!0===a?b:`${b}=${a}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(a){let b,c,f=Object.create(null),g=Object.create(null),h=!1,i=!1,j=!1,k=-1,l=-1,m=-1,n=0;for(;n<a.length;n++)if(l=a.charCodeAt(n),void 0===b)if(-1===m&&1===d[l])-1===k&&(k=n);else if(0!==n&&(32===l||9===l))-1===m&&-1!==k&&(m=n);else if(59===l||44===l){if(-1===k)throw SyntaxError(`Unexpected character at index ${n}`);-1===m&&(m=n);let c=a.slice(k,m);44===l?(e(f,c,g),g=Object.create(null)):b=c,k=m=-1}else throw SyntaxError(`Unexpected character at index ${n}`);else if(void 0===c)if(-1===m&&1===d[l])-1===k&&(k=n);else if(32===l||9===l)-1===m&&-1!==k&&(m=n);else if(59===l||44===l){if(-1===k)throw SyntaxError(`Unexpected character at index ${n}`);-1===m&&(m=n),e(g,a.slice(k,m),!0),44===l&&(e(f,b,g),g=Object.create(null),b=void 0),k=m=-1}else if(61===l&&-1!==k&&-1===m)c=a.slice(k,n),k=m=-1;else throw SyntaxError(`Unexpected character at index ${n}`);else if(i){if(1!==d[l])throw SyntaxError(`Unexpected character at index ${n}`);-1===k?k=n:h||(h=!0),i=!1}else if(j)if(1===d[l])-1===k&&(k=n);else if(34===l&&-1!==k)j=!1,m=n;else if(92===l)i=!0;else throw SyntaxError(`Unexpected character at index ${n}`);else if(34===l&&61===a.charCodeAt(n-1))j=!0;else if(-1===m&&1===d[l])-1===k&&(k=n);else if(-1!==k&&(32===l||9===l))-1===m&&(m=n);else if(59===l||44===l){if(-1===k)throw SyntaxError(`Unexpected character at index ${n}`);-1===m&&(m=n);let d=a.slice(k,m);h&&(d=d.replace(/\\/g,""),h=!1),e(g,c,d),44===l&&(e(f,b,g),g=Object.create(null),b=void 0),c=void 0,k=m=-1}else throw SyntaxError(`Unexpected character at index ${n}`);if(-1===k||j||32===l||9===l)throw SyntaxError("Unexpected end of input");-1===m&&(m=n);let o=a.slice(k,m);return void 0===b?e(f,o,g):(void 0===c?e(g,o,!0):h?e(g,c,o.replace(/\\/g,"")):e(g,c,o),e(f,b,g)),f}}},24763:(a,b,c)=>{"use strict";var d=c(11478),e=c(23071),f=Object.prototype.hasOwnProperty,g=Array.isArray,h=e(),i=function(a,b){return h.set(a,b),a},j=function(a){return h.has(a)},k=function(a){return h.get(a)},l=function(a,b){h.set(a,b)},m=function(){for(var a=[],b=0;b<256;++b)a[a.length]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();return a}(),n=function(a){for(;a.length>1;){var b=a.pop(),c=b.obj[b.prop];if(g(c)){for(var d=[],e=0;e<c.length;++e)void 0!==c[e]&&(d[d.length]=c[e]);b.obj[b.prop]=d}}},o=function(a,b){for(var c=b&&b.plainObjects?{__proto__:null}:{},d=0;d<a.length;++d)void 0!==a[d]&&(c[d]=a[d]);return c},p=function a(b,c,d){if(!c)return b;if("object"!=typeof c&&"function"!=typeof c){if(g(b)){var e=b.length;if(d&&"number"==typeof d.arrayLimit&&e>d.arrayLimit)return i(o(b.concat(c),d),e);b[e]=c}else if(!b||"object"!=typeof b)return[b,c];else if(j(b)){var h=k(b)+1;b[h]=c,l(b,h)}else{if(d&&d.strictMerge)return[b,c];(d&&(d.plainObjects||d.allowPrototypes)||!f.call(Object.prototype,c))&&(b[c]=!0)}return b}if(!b||"object"!=typeof b){if(j(c)){for(var m=Object.keys(c),n=d&&d.plainObjects?{__proto__:null,0:b}:{0:b},p=0;p<m.length;p++)n[parseInt(m[p],10)+1]=c[m[p]];return i(n,k(c)+1)}var q=[b].concat(c);return d&&"number"==typeof d.arrayLimit&&q.length>d.arrayLimit?i(o(q,d),q.length-1):q}var r=b;return(g(b)&&!g(c)&&(r=o(b,d)),g(b)&&g(c))?(c.forEach(function(c,e){if(f.call(b,e)){var g=b[e];g&&"object"==typeof g&&c&&"object"==typeof c?b[e]=a(g,c,d):b[b.length]=c}else b[e]=c}),b):Object.keys(c).reduce(function(b,e){var g=c[e];if(f.call(b,e)?b[e]=a(b[e],g,d):b[e]=g,j(c)&&!j(b)&&i(b,k(c)),j(b)){var h=parseInt(e,10);String(h)===e&&h>=0&&h>k(b)&&l(b,h)}return b},r)},q=1024,r=function(a,b,c,d){if(j(a)){var e=k(a)+1;return a[e]=b,l(a,e),a}var f=[].concat(a,b);return f.length>c?i(o(f,{plainObjects:d}),f.length-1):f};a.exports={arrayToObject:o,assign:function(a,b){return Object.keys(b).reduce(function(a,c){return a[c]=b[c],a},a)},combine:r,compact:function(a){for(var b=[{obj:{o:a},prop:"o"}],c=[],d=0;d<b.length;++d)for(var e=b[d],f=e.obj[e.prop],g=Object.keys(f),h=0;h<g.length;++h){var i=g[h],j=f[i];"object"==typeof j&&null!==j&&-1===c.indexOf(j)&&(b[b.length]={obj:f,prop:i},c[c.length]=j)}return n(b),a},decode:function(a,b,c){var d=a.replace(/\+/g," ");if("iso-8859-1"===c)return d.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(d)}catch(a){return d}},encode:function(a,b,c,e,f){if(0===a.length)return a;var g=a;if("symbol"==typeof a?g=Symbol.prototype.toString.call(a):"string"!=typeof a&&(g=String(a)),"iso-8859-1"===c)return escape(g).replace(/%u[0-9a-f]{4}/gi,function(a){return"%26%23"+parseInt(a.slice(2),16)+"%3B"});for(var h="",i=0;i<g.length;i+=q){for(var j=g.length>=q?g.slice(i,i+q):g,k=[],l=0;l<j.length;++l){var n=j.charCodeAt(l);if(45===n||46===n||95===n||126===n||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||f===d.RFC1738&&(40===n||41===n)){k[k.length]=j.charAt(l);continue}if(n<128){k[k.length]=m[n];continue}if(n<2048){k[k.length]=m[192|n>>6]+m[128|63&n];continue}if(n<55296||n>=57344){k[k.length]=m[224|n>>12]+m[128|n>>6&63]+m[128|63&n];continue}l+=1,n=65536+((1023&n)<<10|1023&j.charCodeAt(l)),k[k.length]=m[240|n>>18]+m[128|n>>12&63]+m[128|n>>6&63]+m[128|63&n]}h+=k.join("")}return h},isBuffer:function(a){return!!a&&"object"==typeof a&&!!(a.constructor&&a.constructor.isBuffer&&a.constructor.isBuffer(a))},isOverflow:j,isRegExp:function(a){return"[object RegExp]"===Object.prototype.toString.call(a)},markOverflow:i,maybeMap:function(a,b){if(g(a)){for(var c=[],d=0;d<a.length;d+=1)c[c.length]=b(a[d]);return c}return b(a)},merge:p}},28908:(a,b,c)=>{"use strict";a.exports=i;var d,e=c(68627),f=e.LongBits,g=e.utf8;function h(a,b){return RangeError("index out of range: "+a.pos+" + "+(b||1)+" > "+a.len)}function i(a){this.buf=a,this.pos=0,this.len=a.length}var j="u">typeof Uint8Array?function(a){if(a instanceof Uint8Array||Array.isArray(a))return new i(a);throw Error("illegal buffer")}:function(a){if(Array.isArray(a))return new i(a);throw Error("illegal buffer")},k=function(){return e.Buffer?function(a){return(i.create=function(a){return e.Buffer.isBuffer(a)?new d(a):j(a)})(a)}:j};function l(){var a=new f(0,0),b=0;if(this.len-this.pos>4){for(;b<4;++b)if(a.lo=(a.lo|(127&this.buf[this.pos])<<7*b)>>>0,this.buf[this.pos++]<128)return a;if(a.lo=(a.lo|(127&this.buf[this.pos])<<28)>>>0,a.hi=(a.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return a;b=0}else{for(;b<3;++b){if(this.pos>=this.len)throw h(this);if(a.lo=(a.lo|(127&this.buf[this.pos])<<7*b)>>>0,this.buf[this.pos++]<128)return a}return a.lo=(a.lo|(127&this.buf[this.pos++])<<7*b)>>>0,a}if(this.len-this.pos>4){for(;b<5;++b)if(a.hi=(a.hi|(127&this.buf[this.pos])<<7*b+3)>>>0,this.buf[this.pos++]<128)return a}else for(;b<5;++b){if(this.pos>=this.len)throw h(this);if(a.hi=(a.hi|(127&this.buf[this.pos])<<7*b+3)>>>0,this.buf[this.pos++]<128)return a}throw Error("invalid varint encoding")}function m(a,b){return(a[b-4]|a[b-3]<<8|a[b-2]<<16|a[b-1]<<24)>>>0}function n(){if(this.pos+8>this.len)throw h(this,8);return new f(m(this.buf,this.pos+=4),m(this.buf,this.pos+=4))}i.create=k(),i.prototype._slice=e.Array.prototype.subarray||e.Array.prototype.slice,i.prototype.uint32=function(){var a=0xffffffff;return function(){if(a=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(a=(a|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(a=(a|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(a=(a|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(a=(a|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return a;if((this.pos+=5)>this.len)throw this.pos=this.len,h(this,10);return a}}(),i.prototype.int32=function(){return 0|this.uint32()},i.prototype.sint32=function(){var a=this.uint32();return a>>>1^-(1&a)},i.prototype.bool=function(){return 0!==this.uint32()},i.prototype.fixed32=function(){if(this.pos+4>this.len)throw h(this,4);return m(this.buf,this.pos+=4)},i.prototype.sfixed32=function(){if(this.pos+4>this.len)throw h(this,4);return 0|m(this.buf,this.pos+=4)},i.prototype.float=function(){if(this.pos+4>this.len)throw h(this,4);var a=e.float.readFloatLE(this.buf,this.pos);return this.pos+=4,a},i.prototype.double=function(){if(this.pos+8>this.len)throw h(this,4);var a=e.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,a},i.prototype.bytes=function(){var a=this.uint32(),b=this.pos,c=this.pos+a;if(c>this.len)throw h(this,a);if(this.pos+=a,Array.isArray(this.buf))return this.buf.slice(b,c);if(b===c){var d=e.Buffer;return d?d.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,b,c)},i.prototype.string=function(){var a=this.bytes();return g.read(a,0,a.length)},i.prototype.skip=function(a){if("number"==typeof a){if(this.pos+a>this.len)throw h(this,a);this.pos+=a}else do if(this.pos>=this.len)throw h(this);while(128&this.buf[this.pos++]);return this},i.prototype.skipType=function(a){switch(a){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(a=7&this.uint32());)this.skipType(a);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+a+" at offset "+this.pos)}return this},i._configure=function(a){d=a,i.create=k(),d._configure();var b=e.Long?"toLong":"toNumber";e.merge(i.prototype,{int64:function(){return l.call(this)[b](!1)},uint64:function(){return l.call(this)[b](!0)},sint64:function(){return l.call(this).zzDecode()[b](!1)},fixed64:function(){return n.call(this)[b](!0)},sfixed64:function(){return n.call(this)[b](!1)}})}},29032:(a,b,c)=>{"use strict";var d=c(53004),e=c(68439),f=c(35008),g=c(10616),h=d("%Map%",!0),i=e("Map.prototype.get",!0),j=e("Map.prototype.set",!0),k=e("Map.prototype.has",!0),l=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);a.exports=!!h&&function(){var a,b={assert:function(a){if(!b.has(a))throw new g("Side channel does not contain "+f(a))},delete:function(b){if(a){var c=l(a,b);return 0===m(a)&&(a=void 0),c}return!1},get:function(b){if(a)return i(a,b)},has:function(b){return!!a&&k(a,b)},set:function(b,c){a||(a=new h),j(a,b,c)}};return b}},31308:(a,b,c)=>{"use strict";a.exports=e;var d=c(68627);function e(a,b){this.lo=a>>>0,this.hi=b>>>0}var f=e.zero=new e(0,0);f.toNumber=function(){return 0},f.zzEncode=f.zzDecode=function(){return this},f.length=function(){return 1};var g=e.zeroHash="\0\0\0\0\0\0\0\0";e.fromNumber=function(a){if(0===a)return f;var b=a<0;b&&(a=-a);var c=a>>>0,d=(a-c)/0x100000000>>>0;return b&&(d=~d>>>0,c=~c>>>0,++c>0xffffffff&&(c=0,++d>0xffffffff&&(d=0))),new e(c,d)},e.from=function(a){if("number"==typeof a)return e.fromNumber(a);if(d.isString(a))if(!d.Long)return e.fromNumber(parseInt(a,10));else a=d.Long.fromString(a);return a.low||a.high?new e(a.low>>>0,a.high>>>0):f},e.prototype.toNumber=function(a){if(!a&&this.hi>>>31){var b=~this.lo+1>>>0,c=~this.hi>>>0;return b||(c=c+1>>>0),-(b+0x100000000*c)}return this.lo+0x100000000*this.hi},e.prototype.toLong=function(a){return d.Long?new d.Long(0|this.lo,0|this.hi,!!a):{low:0|this.lo,high:0|this.hi,unsigned:!!a}};var h=String.prototype.charCodeAt;e.fromHash=function(a){return a===g?f:new e((h.call(a,0)|h.call(a,1)<<8|h.call(a,2)<<16|h.call(a,3)<<24)>>>0,(h.call(a,4)|h.call(a,5)<<8|h.call(a,6)<<16|h.call(a,7)<<24)>>>0)},e.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},e.prototype.zzEncode=function(){var a=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^a)>>>0,this.lo=(this.lo<<1^a)>>>0,this},e.prototype.zzDecode=function(){var a=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^a)>>>0,this.hi=(this.hi>>>1^a)>>>0,this},e.prototype.length=function(){var a=this.lo,b=(this.lo>>>28|this.hi<<4)>>>0,c=this.hi>>>24;return 0===c?0===b?a<16384?a<128?1:2:a<2097152?3:4:b<16384?b<128?5:6:b<2097152?7:8:c<128?9:10}},35008:(a,b,c)=>{var d="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,f=d&&e&&"function"==typeof e.get?e.get:null,g=d&&Map.prototype.forEach,h="function"==typeof Set&&Set.prototype,i=Object.getOwnPropertyDescriptor&&h?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,j=h&&i&&"function"==typeof i.get?i.get:null,k=h&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,m="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,n="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,o=Boolean.prototype.valueOf,p=Object.prototype.toString,q=Function.prototype.toString,r=String.prototype.match,s=String.prototype.slice,t=String.prototype.replace,u=String.prototype.toUpperCase,v=String.prototype.toLowerCase,w=RegExp.prototype.test,x=Array.prototype.concat,y=Array.prototype.join,z=Array.prototype.slice,A=Math.floor,B="function"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,E="function"==typeof Symbol&&"object"==typeof Symbol.iterator,F="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===E?"object":"symbol")?Symbol.toStringTag:null,G=Object.prototype.propertyIsEnumerable,H=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(a){return a.__proto__}:null);function I(a,b){if(a===1/0||a===-1/0||a!=a||a&&a>-1e3&&a<1e3||w.call(/e/,b))return b;var c=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof a){var d=a<0?-A(-a):A(a);if(d!==a){var e=String(d),f=s.call(b,e.length+1);return t.call(e,c,"$&_")+"."+t.call(t.call(f,/([0-9]{3})/g,"$&_"),/_$/,"")}}return t.call(b,c,"$&_")}var J=c(38532),K=J.custom,L=Y(K)?K:null,M={__proto__:null,double:'"',single:"'"},N={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function O(a,b,c){var d=M[c.quoteStyle||b];return d+a+d}function P(a){return t.call(String(a),/"/g,"&quot;")}function Q(a){return!F||!("object"==typeof a&&(F in a||void 0!==a[F]))}function R(a){return"[object Array]"===aa(a)&&Q(a)}function S(a){return"[object Date]"===aa(a)&&Q(a)}function T(a){return"[object RegExp]"===aa(a)&&Q(a)}function U(a){return"[object Error]"===aa(a)&&Q(a)}function V(a){return"[object String]"===aa(a)&&Q(a)}function W(a){return"[object Number]"===aa(a)&&Q(a)}function X(a){return"[object Boolean]"===aa(a)&&Q(a)}function Y(a){if(E)return a&&"object"==typeof a&&a instanceof Symbol;if("symbol"==typeof a)return!0;if(!a||"object"!=typeof a||!D)return!1;try{return D.call(a),!0}catch(a){}return!1}function Z(a){if(!a||"object"!=typeof a||!B)return!1;try{return B.call(a),!0}catch(a){}return!1}a.exports=function a(b,c,d,e){var h=c||{};if(_(h,"quoteStyle")&&!_(M,h.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(_(h,"maxStringLength")&&("number"==typeof h.maxStringLength?h.maxStringLength<0&&h.maxStringLength!==1/0:null!==h.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!_(h,"customInspect")||h.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_(h,"indent")&&null!==h.indent&&" "!==h.indent&&!(parseInt(h.indent,10)===h.indent&&h.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_(h,"numericSeparator")&&"boolean"!=typeof h.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=h.numericSeparator;if(void 0===b)return"undefined";if(null===b)return"null";if("boolean"==typeof b)return b?"true":"false";if("string"==typeof b)return aj(b,h);if("number"==typeof b){if(0===b)return 1/0/b>0?"0":"-0";var m=String(b);return l?I(b,m):m}if("bigint"==typeof b){var n=String(b)+"n";return l?I(b,n):n}var p=void 0===h.depth?5:h.depth;if(void 0===d&&(d=0),d>=p&&p>0&&"object"==typeof b)return R(b)?"[Array]":"[Object]";var q=ap(h,d);if(void 0===e)e=[];else if(ac(e,b)>=0)return"[Circular]";function r(b,c,f){if(c&&(e=z.call(e)).push(c),f){var g={depth:h.depth};return _(h,"quoteStyle")&&(g.quoteStyle=h.quoteStyle),a(b,g,d+1,e)}return a(b,h,d+1,e)}if("function"==typeof b&&!T(b)){var u=ab(b),w=ar(b,r);return"[Function"+(u?": "+u:" (anonymous)")+"]"+(w.length>0?" { "+y.call(w,", ")+" }":"")}if(Y(b)){var A=E?t.call(String(b),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(b);return"object"!=typeof b||E?A:al(A)}if(ai(b)){for(var C="<"+v.call(String(b.nodeName)),K=b.attributes||[],N=0;N<K.length;N++)C+=" "+K[N].name+"="+O(P(K[N].value),"double",h);return C+=">",b.childNodes&&b.childNodes.length&&(C+="..."),C+="</"+v.call(String(b.nodeName))+">"}if(R(b)){if(0===b.length)return"[]";var Q=ar(b,r);return q&&!ao(Q)?"["+aq(Q,q)+"]":"[ "+y.call(Q,", ")+" ]"}if(U(b)){var $=ar(b,r);return"cause"in Error.prototype||!("cause"in b)||G.call(b,"cause")?0===$.length?"["+String(b)+"]":"{ ["+String(b)+"] "+y.call($,", ")+" }":"{ ["+String(b)+"] "+y.call(x.call("[cause]: "+r(b.cause),$),", ")+" }"}if("object"==typeof b&&i){if(L&&"function"==typeof b[L]&&J)return J(b,{depth:p-d});else if("symbol"!==i&&"function"==typeof b.inspect)return b.inspect()}if(ad(b)){var ak=[];return g&&g.call(b,function(a,c){ak.push(r(c,b,!0)+" => "+r(a,b))}),an("Map",f.call(b),ak,q)}if(ag(b)){var as=[];return k&&k.call(b,function(a){as.push(r(a,b))}),an("Set",j.call(b),as,q)}if(ae(b))return am("WeakMap");if(ah(b))return am("WeakSet");if(af(b))return am("WeakRef");if(W(b))return al(r(Number(b)));if(Z(b))return al(r(B.call(b)));if(X(b))return al(o.call(b));if(V(b))return al(r(String(b)));if("u">typeof window&&b===window)return"{ [object Window] }";if("u">typeof globalThis&&b===globalThis||"u">typeof global&&b===global)return"{ [object globalThis] }";if(!S(b)&&!T(b)){var at=ar(b,r),au=H?H(b)===Object.prototype:b instanceof Object||b.constructor===Object,av=b instanceof Object?"":"null prototype",aw=!au&&F&&Object(b)===b&&F in b?s.call(aa(b),8,-1):av?"Object":"",ax=(au||"function"!=typeof b.constructor?"":b.constructor.name?b.constructor.name+" ":"")+(aw||av?"["+y.call(x.call([],aw||[],av||[]),": ")+"] ":"");return 0===at.length?ax+"{}":q?ax+"{"+aq(at,q)+"}":ax+"{ "+y.call(at,", ")+" }"}return String(b)};var $=Object.prototype.hasOwnProperty||function(a){return a in this};function _(a,b){return $.call(a,b)}function aa(a){return p.call(a)}function ab(a){if(a.name)return a.name;var b=r.call(q.call(a),/^function\s*([\w$]+)/);return b?b[1]:null}function ac(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return -1}function ad(a){if(!f||!a||"object"!=typeof a)return!1;try{f.call(a);try{j.call(a)}catch(a){return!0}return a instanceof Map}catch(a){}return!1}function ae(a){if(!l||!a||"object"!=typeof a)return!1;try{l.call(a,l);try{m.call(a,m)}catch(a){return!0}return a instanceof WeakMap}catch(a){}return!1}function af(a){if(!n||!a||"object"!=typeof a)return!1;try{return n.call(a),!0}catch(a){}return!1}function ag(a){if(!j||!a||"object"!=typeof a)return!1;try{j.call(a);try{f.call(a)}catch(a){return!0}return a instanceof Set}catch(a){}return!1}function ah(a){if(!m||!a||"object"!=typeof a)return!1;try{m.call(a,m);try{l.call(a,l)}catch(a){return!0}return a instanceof WeakSet}catch(a){}return!1}function ai(a){return!!a&&"object"==typeof a&&(!!("u">typeof HTMLElement&&a instanceof HTMLElement)||"string"==typeof a.nodeName&&"function"==typeof a.getAttribute)}function aj(a,b){if(a.length>b.maxStringLength){var c=a.length-b.maxStringLength,d="... "+c+" more character"+(c>1?"s":"");return aj(s.call(a,0,b.maxStringLength),b)+d}var e=N[b.quoteStyle||"single"];return e.lastIndex=0,O(t.call(t.call(a,e,"\\$1"),/[\x00-\x1f]/g,ak),"single",b)}function ak(a){var b=a.charCodeAt(0),c={8:"b",9:"t",10:"n",12:"f",13:"r"}[b];return c?"\\"+c:"\\x"+(b<16?"0":"")+u.call(b.toString(16))}function al(a){return"Object("+a+")"}function am(a){return a+" { ? }"}function an(a,b,c,d){return a+" ("+b+") {"+(d?aq(c,d):y.call(c,", "))+"}"}function ao(a){for(var b=0;b<a.length;b++)if(ac(a[b],"\n")>=0)return!1;return!0}function ap(a,b){var c;if(" "===a.indent)c=" ";else{if("number"!=typeof a.indent||!(a.indent>0))return null;c=y.call(Array(a.indent+1)," ")}return{base:c,prev:y.call(Array(b+1),c)}}function aq(a,b){if(0===a.length)return"";var c="\n"+b.prev+b.base;return c+y.call(a,","+c)+"\n"+b.prev}function ar(a,b){var c,d=R(a),e=[];if(d){e.length=a.length;for(var f=0;f<a.length;f++)e[f]=_(a,f)?b(a[f],a):""}var g="function"==typeof C?C(a):[];if(E){c={};for(var h=0;h<g.length;h++)c["$"+g[h]]=g[h]}for(var i in a)if(_(a,i)&&(!d||String(Number(i))!==i||!(i<a.length)))if(E&&c["$"+i]instanceof Symbol)continue;else w.call(/[^\w$]/,i)?e.push(b(i,a)+": "+b(a[i],a)):e.push(i+": "+b(a[i],a));if("function"==typeof C)for(var j=0;j<g.length;j++)G.call(a,g[j])&&e.push("["+b(g[j])+"]: "+b(a[g[j]],a));return e}},36914:a=>{"use strict";a.exports={}},37385:(a,b,c)=>{"use strict";a.exports=f;var d=c(91520);(f.prototype=Object.create(d.prototype)).constructor=f;var e=c(68627);function f(){d.call(this)}function g(a,b,c){a.length<40?e.utf8.write(a,b,c):b.utf8Write?b.utf8Write(a,c):b.write(a,c)}f._configure=function(){f.alloc=e._Buffer_allocUnsafe,f.writeBytesBuffer=e.Buffer&&e.Buffer.prototype instanceof Uint8Array&&"set"===e.Buffer.prototype.set.name?function(a,b,c){b.set(a,c)}:function(a,b,c){if(a.copy)a.copy(b,c,0,a.length);else for(var d=0;d<a.length;)b[c++]=a[d++]}},f.prototype.bytes=function(a){e.isString(a)&&(a=e._Buffer_from(a,"base64"));var b=a.length>>>0;return this.uint32(b),b&&this._push(f.writeBytesBuffer,b,a),this},f.prototype.string=function(a){var b=e.Buffer.byteLength(a);return this.uint32(b),b&&this._push(g,b,a),this},f._configure()},38237:(a,b,c)=>{"use strict";var d=b;function e(){d.util._configure(),d.Writer._configure(d.BufferWriter),d.Reader._configure(d.BufferReader)}d.build="minimal",d.Writer=c(91520),d.BufferWriter=c(37385),d.Reader=c(28908),d.BufferReader=c(7253),d.util=c(68627),d.rpc=c(16204),d.roots=c(36914),d.configure=e,e()},38532:(a,b,c)=>{a.exports=c(28354).inspect},39727:()=>{},45816:(a,b,c)=>{"use strict";var d=c(53004),e=c(68439),f=c(35008),g=c(29032),h=c(10616),i=d("%WeakMap%",!0),j=e("WeakMap.prototype.get",!0),k=e("WeakMap.prototype.set",!0),l=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);a.exports=i?function(){var a,b,c={assert:function(a){if(!c.has(a))throw new h("Side channel does not contain "+f(a))},delete:function(c){if(i&&c&&("object"==typeof c||"function"==typeof c)){if(a)return m(a,c)}else if(g&&b)return b.delete(c);return!1},get:function(c){return i&&c&&("object"==typeof c||"function"==typeof c)&&a?j(a,c):b&&b.get(c)},has:function(c){return i&&c&&("object"==typeof c||"function"==typeof c)&&a?l(a,c):!!b&&b.has(c)},set:function(c,d){i&&c&&("object"==typeof c||"function"==typeof c)?(a||(a=new i),k(a,c,d)):g&&(b||(b=g()),b.set(c,d))}};return c}:g},46861:(a,b,c)=>{a=c.nmd(a);var d=200,e="__lodash_hash_undefined__",f=800,g=16,h=0x1fffffffffffff,i="[object Arguments]",j="[object Array]",k="[object AsyncFunction]",l="[object Boolean]",m="[object Date]",n="[object Error]",o="[object Function]",p="[object GeneratorFunction]",q="[object Map]",r="[object Number]",s="[object Null]",t="[object Object]",u="[object Proxy]",v="[object RegExp]",w="[object Set]",x="[object String]",y="[object Undefined]",z="[object WeakMap]",A="[object ArrayBuffer]",B="[object DataView]",C="[object Float64Array]",D="[object Int8Array]",E="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",H="[object Uint8ClampedArray]",I="[object Uint16Array]",J="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,L=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N[C]=N[D]=N[E]=N[F]=N[G]=N[H]=N[I]=N[J]=!0,N[i]=N[j]=N[A]=N[l]=N[B]=N[m]=N[n]=N[o]=N[q]=N[r]=N[t]=N[v]=N[w]=N[x]=N[z]=!1;var O="object"==typeof global&&global&&global.Object===Object&&global,P="object"==typeof self&&self&&self.Object===Object&&self,Q=O||P||Function("return this")(),R=b&&!b.nodeType&&b,S=R&&a&&!a.nodeType&&a,T=S&&S.exports===R,U=T&&O.process,V=function(){try{var a=S&&S.require&&S.require("util").types;if(a)return a;return U&&U.binding&&U.binding("util")}catch(a){}}(),W=V&&V.isTypedArray;function X(a,b,c){switch(c.length){case 0:return a.call(b);case 1:return a.call(b,c[0]);case 2:return a.call(b,c[0],c[1]);case 3:return a.call(b,c[0],c[1],c[2])}return a.apply(b,c)}function Y(a,b){for(var c=-1,d=Array(a);++c<a;)d[c]=b(c);return d}function Z(a){return function(b){return a(b)}}function $(a,b){return null==a?void 0:a[b]}function _(a,b){return function(c){return a(b(c))}}var aa=Array.prototype,ab=Function.prototype,ac=Object.prototype,ad=Q["__core-js_shared__"],ae=ab.toString,af=ac.hasOwnProperty,ag=function(){var a=/[^.]+$/.exec(ad&&ad.keys&&ad.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),ah=ac.toString,ai=ae.call(Object),aj=RegExp("^"+ae.call(af).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ak=T?Q.Buffer:void 0,al=Q.Symbol,am=Q.Uint8Array,an=ak?ak.allocUnsafe:void 0,ao=_(Object.getPrototypeOf,Object),ap=Object.create,aq=ac.propertyIsEnumerable,ar=aa.splice,as=al?al.toStringTag:void 0,at=function(){try{var a=bi(Object,"defineProperty");return a({},"",{}),a}catch(a){}}(),au=ak?ak.isBuffer:void 0,av=Math.max,aw=Date.now,ax=bi(Q,"Map"),ay=bi(Object,"create"),az=function(){function a(){}return function(b){if(!bF(b))return{};if(ap)return ap(b);a.prototype=b;var c=new a;return a.prototype=void 0,c}}();function aA(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}function aB(){this.__data__=ay?ay(null):{},this.size=0}function aC(a){var b=this.has(a)&&delete this.__data__[a];return this.size-=!!b,b}function aD(a){var b=this.__data__;if(ay){var c=b[a];return c===e?void 0:c}return af.call(b,a)?b[a]:void 0}function aE(a){var b=this.__data__;return ay?void 0!==b[a]:af.call(b,a)}function aF(a,b){var c=this.__data__;return this.size+=+!this.has(a),c[a]=ay&&void 0===b?e:b,this}function aG(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}function aH(){this.__data__=[],this.size=0}function aI(a){var b=this.__data__,c=a_(b,a);return!(c<0)&&(c==b.length-1?b.pop():ar.call(b,c,1),--this.size,!0)}function aJ(a){var b=this.__data__,c=a_(b,a);return c<0?void 0:b[c][1]}function aK(a){return a_(this.__data__,a)>-1}function aL(a,b){var c=this.__data__,d=a_(c,a);return d<0?(++this.size,c.push([a,b])):c[d][1]=b,this}function aM(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b<c;){var d=a[b];this.set(d[0],d[1])}}function aN(){this.size=0,this.__data__={hash:new aA,map:new(ax||aG),string:new aA}}function aO(a){var b=bh(this,a).delete(a);return this.size-=!!b,b}function aP(a){return bh(this,a).get(a)}function aQ(a){return bh(this,a).has(a)}function aR(a,b){var c=bh(this,a),d=c.size;return c.set(a,b),this.size+=+(c.size!=d),this}function aS(a){var b=this.__data__=new aG(a);this.size=b.size}function aT(){this.__data__=new aG,this.size=0}function aU(a){var b=this.__data__,c=b.delete(a);return this.size=b.size,c}function aV(a){return this.__data__.get(a)}function aW(a){return this.__data__.has(a)}function aX(a,b){var c=this.__data__;if(c instanceof aG){var e=c.__data__;if(!ax||e.length<d-1)return e.push([a,b]),this.size=++c.size,this;c=this.__data__=new aM(e)}return c.set(a,b),this.size=c.size,this}function aY(a,b){var c=bz(a),d=!c&&by(a),e=!c&&!d&&bC(a),f=!c&&!d&&!e&&bI(a),g=c||d||e||f,h=g?Y(a.length,String):[],i=h.length;for(var j in a)(b||af.call(a,j))&&!(g&&("length"==j||e&&("offset"==j||"parent"==j)||f&&("buffer"==j||"byteLength"==j||"byteOffset"==j)||bl(j,i)))&&h.push(j);return h}function aZ(a,b,c){(void 0===c||bx(a[b],c))&&(void 0!==c||b in a)||a0(a,b,c)}function a$(a,b,c){var d=a[b];af.call(a,b)&&bx(d,c)&&(void 0!==c||b in a)||a0(a,b,c)}function a_(a,b){for(var c=a.length;c--;)if(bx(a[c][0],b))return c;return -1}function a0(a,b,c){"__proto__"==b&&at?at(a,b,{configurable:!0,enumerable:!0,value:c,writable:!0}):a[b]=c}aA.prototype.clear=aB,aA.prototype.delete=aC,aA.prototype.get=aD,aA.prototype.has=aE,aA.prototype.set=aF,aG.prototype.clear=aH,aG.prototype.delete=aI,aG.prototype.get=aJ,aG.prototype.has=aK,aG.prototype.set=aL,aM.prototype.clear=aN,aM.prototype.delete=aO,aM.prototype.get=aP,aM.prototype.has=aQ,aM.prototype.set=aR,aS.prototype.clear=aT,aS.prototype.delete=aU,aS.prototype.get=aV,aS.prototype.has=aW,aS.prototype.set=aX;var a1=bg();function a2(a){return null==a?void 0===a?y:s:as&&as in Object(a)?bj(a):br(a)}function a3(a){return bG(a)&&a2(a)==i}function a4(a){return!(!bF(a)||bo(a))&&(bD(a)?aj:L).test(bw(a))}function a5(a){return bG(a)&&bE(a.length)&&!!N[a2(a)]}function a6(a){if(!bF(a))return bq(a);var b=bp(a),c=[];for(var d in a)"constructor"==d&&(b||!af.call(a,d))||c.push(d);return c}function a7(a,b,c,d,e){a!==b&&a1(b,function(f,g){if(e||(e=new aS),bF(f))a8(a,b,g,c,a7,d,e);else{var h=d?d(bt(a,g),f,g+"",a,b,e):void 0;void 0===h&&(h=f),aZ(a,g,h)}},bK)}function a8(a,b,c,d,e,f,g){var h=bt(a,c),i=bt(b,c),j=g.get(i);if(j)return void aZ(a,c,j);var k=f?f(h,i,c+"",a,b,g):void 0,l=void 0===k;if(l){var m=bz(i),n=!m&&bC(i),o=!m&&!n&&bI(i);k=i,m||n||o?bz(h)?k=h:bB(h)?k=bd(h):n?(l=!1,k=ba(i,!0)):o?(l=!1,k=bc(i,!0)):k=[]:bH(i)||by(i)?(k=h,by(h)?k=bJ(h):(!bF(h)||bD(h))&&(k=bk(i))):l=!1}l&&(g.set(i,k),e(k,i,d,f,g),g.delete(i)),aZ(a,c,k)}function a9(a,b){return bu(bs(a,b,bN),a+"")}function ba(a,b){if(b)return a.slice();var c=a.length,d=an?an(c):new a.constructor(c);return a.copy(d),d}function bb(a){var b=new a.constructor(a.byteLength);return new am(b).set(new am(a)),b}function bc(a,b){var c=b?bb(a.buffer):a.buffer;return new a.constructor(c,a.byteOffset,a.length)}function bd(a,b){var c=-1,d=a.length;for(b||(b=Array(d));++c<d;)b[c]=a[c];return b}function be(a,b,c,d){var e=!c;c||(c={});for(var f=-1,g=b.length;++f<g;){var h=b[f],i=d?d(c[h],a[h],h,c,a):void 0;void 0===i&&(i=a[h]),e?a0(c,h,i):a$(c,h,i)}return c}function bf(a){return a9(function(b,c){var d=-1,e=c.length,f=e>1?c[e-1]:void 0,g=e>2?c[2]:void 0;for(f=a.length>3&&"function"==typeof f?(e--,f):void 0,g&&bm(c[0],c[1],g)&&(f=e<3?void 0:f,e=1),b=Object(b);++d<e;){var h=c[d];h&&a(b,h,d,f)}return b})}function bg(a){return function(b,c,d){for(var e=-1,f=Object(b),g=d(b),h=g.length;h--;){var i=g[a?h:++e];if(!1===c(f[i],i,f))break}return b}}function bh(a,b){var c=a.__data__;return bn(b)?c["string"==typeof b?"string":"hash"]:c.map}function bi(a,b){var c=$(a,b);return a4(c)?c:void 0}function bj(a){var b=af.call(a,as),c=a[as];try{a[as]=void 0;var d=!0}catch(a){}var e=ah.call(a);return d&&(b?a[as]=c:delete a[as]),e}function bk(a){return"function"!=typeof a.constructor||bp(a)?{}:az(ao(a))}function bl(a,b){var c=typeof a;return!!(b=null==b?h:b)&&("number"==c||"symbol"!=c&&M.test(a))&&a>-1&&a%1==0&&a<b}function bm(a,b,c){if(!bF(c))return!1;var d=typeof b;return("number"==d?!!(bA(c)&&bl(b,c.length)):"string"==d&&b in c)&&bx(c[b],a)}function bn(a){var b=typeof a;return"string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==a:null===a}function bo(a){return!!ag&&ag in a}function bp(a){var b=a&&a.constructor;return a===("function"==typeof b&&b.prototype||ac)}function bq(a){var b=[];if(null!=a)for(var c in Object(a))b.push(c);return b}function br(a){return ah.call(a)}function bs(a,b,c){return b=av(void 0===b?a.length-1:b,0),function(){for(var d=arguments,e=-1,f=av(d.length-b,0),g=Array(f);++e<f;)g[e]=d[b+e];e=-1;for(var h=Array(b+1);++e<b;)h[e]=d[e];return h[b]=c(g),X(a,this,h)}}function bt(a,b){if(("constructor"!==b||"function"!=typeof a[b])&&"__proto__"!=b)return a[b]}var bu=bv(at?function(a,b){return at(a,"toString",{configurable:!0,enumerable:!1,value:bM(b),writable:!0})}:bN);function bv(a){var b=0,c=0;return function(){var d=aw(),e=g-(d-c);if(c=d,e>0){if(++b>=f)return arguments[0]}else b=0;return a.apply(void 0,arguments)}}function bw(a){if(null!=a){try{return ae.call(a)}catch(a){}try{return a+""}catch(a){}}return""}function bx(a,b){return a===b||a!=a&&b!=b}var by=a3(function(){return arguments}())?a3:function(a){return bG(a)&&af.call(a,"callee")&&!aq.call(a,"callee")},bz=Array.isArray;function bA(a){return null!=a&&bE(a.length)&&!bD(a)}function bB(a){return bG(a)&&bA(a)}var bC=au||bO;function bD(a){if(!bF(a))return!1;var b=a2(a);return b==o||b==p||b==k||b==u}function bE(a){return"number"==typeof a&&a>-1&&a%1==0&&a<=h}function bF(a){var b=typeof a;return null!=a&&("object"==b||"function"==b)}function bG(a){return null!=a&&"object"==typeof a}function bH(a){if(!bG(a)||a2(a)!=t)return!1;var b=ao(a);if(null===b)return!0;var c=af.call(b,"constructor")&&b.constructor;return"function"==typeof c&&c instanceof c&&ae.call(c)==ai}var bI=W?Z(W):a5;function bJ(a){return be(a,bK(a))}function bK(a){return bA(a)?aY(a,!0):a6(a)}var bL=bf(function(a,b,c){a7(a,b,c)});function bM(a){return function(){return a}}function bN(a){return a}function bO(){return!1}a.exports=bL},47990:()=>{},50266:(a,b,c)=>{"use strict";var d=c(35008),e=c(10616),f=function(a,b,c){for(var d,e=a;null!=(d=e.next);e=d)if(d.key===b)return e.next=d.next,c||(d.next=a.next,a.next=d),d},g=function(a,b){if(a){var c=f(a,b);return c&&c.value}},h=function(a,b,c){var d=f(a,b);d?d.value=c:a.next={key:b,next:a.next,value:c}},i=function(a,b){return!!a&&!!f(a,b)},j=function(a,b){if(a)return f(a,b,!0)};a.exports=function(){var a,b={assert:function(a){if(!b.has(a))throw new e("Side channel does not contain "+d(a))},delete:function(b){var c=a&&a.next,d=j(a,b);return d&&c&&c===d&&(a=void 0),!!d},get:function(b){return g(a,b)},has:function(b){return i(a,b)},set:function(b,c){a||(a={next:void 0}),h(a,b,c)}};return b}},53455:(a,b,c)=>{"use strict";let d,{Duplex:e}=c(27910),{randomFillSync:f}=c(55511),g=c(88634),{EMPTY_BUFFER:h,kWebSocket:i,NOOP:j}=c(17165),{isBlob:k,isValidStatusCode:l}=c(97861),{mask:m,toBuffer:n}=c(6361),o=Symbol("kByteLength"),p=Buffer.alloc(4),q=8192,r=8192,s=0,t=1,u=2;class v{constructor(a,b,c){this._extensions=b||{},c&&(this._generateMask=c,this._maskBuffer=Buffer.alloc(4)),this._socket=a,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=s,this.onerror=j,this[i]=void 0}static frame(a,b){let c,e,g=!1,h=2,i=!1;b.mask&&(c=b.maskBuffer||p,b.generateMask?b.generateMask(c):(r===q&&(void 0===d&&(d=Buffer.alloc(q)),f(d,0,q),r=0),c[0]=d[r++],c[1]=d[r++],c[2]=d[r++],c[3]=d[r++]),i=(c[0]|c[1]|c[2]|c[3])==0,h=6),"string"==typeof a?e=(!b.mask||i)&&void 0!==b[o]?b[o]:(a=Buffer.from(a)).length:(e=a.length,g=b.mask&&b.readOnly&&!i);let j=e;e>=65536?(h+=8,j=127):e>125&&(h+=2,j=126);let k=Buffer.allocUnsafe(g?e+h:h);return(k[0]=b.fin?128|b.opcode:b.opcode,b.rsv1&&(k[0]|=64),k[1]=j,126===j?k.writeUInt16BE(e,2):127===j&&(k[2]=k[3]=0,k.writeUIntBE(e,4,6)),b.mask)?(k[1]|=128,k[h-4]=c[0],k[h-3]=c[1],k[h-2]=c[2],k[h-1]=c[3],i)?[k,a]:g?(m(a,c,k,h,e),[k]):(m(a,c,a,0,e),[k,a]):[k,a]}close(a,b,c,d){let e;if(void 0===a)e=h;else if("number"==typeof a&&l(a))if(void 0!==b&&b.length){let c=Buffer.byteLength(b);if(c>123)throw RangeError("The message must not be greater than 123 bytes");(e=Buffer.allocUnsafe(2+c)).writeUInt16BE(a,0),"string"==typeof b?e.write(b,2):e.set(b,2)}else(e=Buffer.allocUnsafe(2)).writeUInt16BE(a,0);else throw TypeError("First argument must be a valid error code number");let f={[o]:e.length,fin:!0,generateMask:this._generateMask,mask:c,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==s?this.enqueue([this.dispatch,e,!1,f,d]):this.sendFrame(v.frame(e,f),d)}ping(a,b,c){let d,e;if("string"==typeof a?(d=Buffer.byteLength(a),e=!1):k(a)?(d=a.size,e=!1):(d=(a=n(a)).length,e=n.readOnly),d>125)throw RangeError("The data size must not be greater than 125 bytes");let f={[o]:d,fin:!0,generateMask:this._generateMask,mask:b,maskBuffer:this._maskBuffer,opcode:9,readOnly:e,rsv1:!1};k(a)?this._state!==s?this.enqueue([this.getBlobData,a,!1,f,c]):this.getBlobData(a,!1,f,c):this._state!==s?this.enqueue([this.dispatch,a,!1,f,c]):this.sendFrame(v.frame(a,f),c)}pong(a,b,c){let d,e;if("string"==typeof a?(d=Buffer.byteLength(a),e=!1):k(a)?(d=a.size,e=!1):(d=(a=n(a)).length,e=n.readOnly),d>125)throw RangeError("The data size must not be greater than 125 bytes");let f={[o]:d,fin:!0,generateMask:this._generateMask,mask:b,maskBuffer:this._maskBuffer,opcode:10,readOnly:e,rsv1:!1};k(a)?this._state!==s?this.enqueue([this.getBlobData,a,!1,f,c]):this.getBlobData(a,!1,f,c):this._state!==s?this.enqueue([this.dispatch,a,!1,f,c]):this.sendFrame(v.frame(a,f),c)}send(a,b,c){let d,e,f=this._extensions[g.extensionName],h=b.binary?2:1,i=b.compress;"string"==typeof a?(d=Buffer.byteLength(a),e=!1):k(a)?(d=a.size,e=!1):(d=(a=n(a)).length,e=n.readOnly),this._firstFragment?(this._firstFragment=!1,i&&f&&f.params[f._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(i=d>=f._threshold),this._compress=i):(i=!1,h=0),b.fin&&(this._firstFragment=!0);let j={[o]:d,fin:b.fin,generateMask:this._generateMask,mask:b.mask,maskBuffer:this._maskBuffer,opcode:h,readOnly:e,rsv1:i};k(a)?this._state!==s?this.enqueue([this.getBlobData,a,this._compress,j,c]):this.getBlobData(a,this._compress,j,c):this._state!==s?this.enqueue([this.dispatch,a,this._compress,j,c]):this.dispatch(a,this._compress,j,c)}getBlobData(a,b,c,d){this._bufferedBytes+=c[o],this._state=u,a.arrayBuffer().then(a=>{if(this._socket.destroyed){let a=Error("The socket was closed while the blob was being read");process.nextTick(w,this,a,d);return}this._bufferedBytes-=c[o];let e=n(a);b?this.dispatch(e,b,c,d):(this._state=s,this.sendFrame(v.frame(e,c),d),this.dequeue())}).catch(a=>{process.nextTick(x,this,a,d)})}dispatch(a,b,c,d){if(!b)return void this.sendFrame(v.frame(a,c),d);let e=this._extensions[g.extensionName];this._bufferedBytes+=c[o],this._state=t,e.compress(a,c.fin,(a,b)=>{this._socket.destroyed?w(this,Error("The socket was closed while data was being compressed"),d):(this._bufferedBytes-=c[o],this._state=s,c.readOnly=!1,this.sendFrame(v.frame(b,c),d),this.dequeue())})}dequeue(){for(;this._state===s&&this._queue.length;){let a=this._queue.shift();this._bufferedBytes-=a[3][o],Reflect.apply(a[0],this,a.slice(1))}}enqueue(a){this._bufferedBytes+=a[3][o],this._queue.push(a)}sendFrame(a,b){2===a.length?(this._socket.cork(),this._socket.write(a[0]),this._socket.write(a[1],b),this._socket.uncork()):this._socket.write(a[0],b)}}function w(a,b,c){"function"==typeof c&&c(b);for(let c=0;c<a._queue.length;c++){let d=a._queue[c],e=d[d.length-1];"function"==typeof e&&e(b)}}function x(a,b,c){w(a,b,c),a.onerror(b)}a.exports=v},54351:(a,b,c)=>{"use strict";let d=c(94735),e=c(81630),{Duplex:f}=c(27910),{createHash:g}=c(55511),h=c(24509),i=c(88634),j=c(72786),k=c(80123),{CLOSE_TIMEOUT:l,GUID:m,kWebSocket:n}=c(17165),o=/^[+/0-9A-Za-z]{22}==$/,p=0,q=1,r=2;class s extends d{constructor(a,b){if(super(),null==(a={allowSynchronousEvents:!0,autoPong:!0,maxPayload:0x6400000,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:l,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:k,...a}).port&&!a.server&&!a.noServer||null!=a.port&&(a.server||a.noServer)||a.server&&a.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=a.port?(this._server=e.createServer((a,b)=>{let c=e.STATUS_CODES[426];b.writeHead(426,{"Content-Length":c.length,"Content-Type":"text/plain"}),b.end(c)}),this._server.listen(a.port,a.host,a.backlog,b)):a.server&&(this._server=a.server),this._server){const a=this.emit.bind(this,"connection");this._removeListeners=t(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(b,c,d)=>{this.handleUpgrade(b,c,d,a)}})}!0===a.perMessageDeflate&&(a.perMessageDeflate={}),a.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=a,this._state=p}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(a){if(this._state===r){a&&this.once("close",()=>{a(Error("The server is not running"))}),process.nextTick(u,this);return}if(a&&this.once("close",a),this._state!==q)if(this._state=q,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(u,this);else{let a=this._server;this._removeListeners(),this._removeListeners=this._server=null,a.close(()=>{u(this)})}}shouldHandle(a){if(this.options.path){let b=a.url.indexOf("?");if((-1!==b?a.url.slice(0,b):a.url)!==this.options.path)return!1}return!0}handleUpgrade(a,b,c,d){b.on("error",v);let e=a.headers["sec-websocket-key"],f=a.headers.upgrade,g=+a.headers["sec-websocket-version"];if("GET"!==a.method)return void x(this,a,b,405,"Invalid HTTP method");if(void 0===f||"websocket"!==f.toLowerCase())return void x(this,a,b,400,"Invalid Upgrade header");if(void 0===e||!o.test(e))return void x(this,a,b,400,"Missing or invalid Sec-WebSocket-Key header");if(13!==g&&8!==g)return void x(this,a,b,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});if(!this.shouldHandle(a))return void w(b,400);let k=a.headers["sec-websocket-protocol"],l=new Set;if(void 0!==k)try{l=j.parse(k)}catch(c){x(this,a,b,400,"Invalid Sec-WebSocket-Protocol header");return}let m=a.headers["sec-websocket-extensions"],n={};if(this.options.perMessageDeflate&&void 0!==m){let c=new i(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let a=h.parse(m);a[i.extensionName]&&(c.accept(a[i.extensionName]),n[i.extensionName]=c)}catch(c){x(this,a,b,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:a.headers[`${8===g?"sec-websocket-origin":"origin"}`],secure:!!(a.socket.authorized||a.socket.encrypted),req:a};if(2===this.options.verifyClient.length)return void this.options.verifyClient(f,(f,g,h,i)=>{if(!f)return w(b,g||401,h,i);this.completeUpgrade(n,e,l,a,b,c,d)});if(!this.options.verifyClient(f))return w(b,401)}this.completeUpgrade(n,e,l,a,b,c,d)}completeUpgrade(a,b,c,d,e,f,j){if(!e.readable||!e.writable)return e.destroy();if(e[n])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>p)return w(e,503);let k=g("sha1").update(b+m).digest("base64"),l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${k}`],o=new this.options.WebSocket(null,void 0,this.options);if(c.size){let a=this.options.handleProtocols?this.options.handleProtocols(c,d):c.values().next().value;a&&(l.push(`Sec-WebSocket-Protocol: ${a}`),o._protocol=a)}if(a[i.extensionName]){let b=a[i.extensionName].params,c=h.format({[i.extensionName]:[b]});l.push(`Sec-WebSocket-Extensions: ${c}`),o._extensions=a}this.emit("headers",l,d),e.write(l.concat("\r\n").join("\r\n")),e.removeListener("error",v),o.setSocket(e,f,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(o),o.on("close",()=>{this.clients.delete(o),this._shouldEmitClose&&!this.clients.size&&process.nextTick(u,this)})),j(o,d)}}function t(a,b){for(let c of Object.keys(b))a.on(c,b[c]);return function(){for(let c of Object.keys(b))a.removeListener(c,b[c])}}function u(a){a._state=r,a.emit("close")}function v(){this.destroy()}function w(a,b,c,d){c=c||e.STATUS_CODES[b],d={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(c),...d},a.once("finish",a.destroy),a.end(`HTTP/1.1 ${b} ${e.STATUS_CODES[b]}\r
2
- `+Object.keys(d).map(a=>`${a}: ${d[a]}`).join("\r\n")+"\r\n\r\n"+c)}function x(a,b,c,d,e,f){if(a.listenerCount("wsClientError")){let d=Error(e);Error.captureStackTrace(d,x),a.emit("wsClientError",d,c,b)}else w(c,d,e,f)}a.exports=s},63287:a=>{"use strict";function b(a){return"u">typeof Float32Array?!function(){var b=new Float32Array([-0]),c=new Uint8Array(b.buffer),d=128===c[3];function e(a,d,e){b[0]=a,d[e]=c[0],d[e+1]=c[1],d[e+2]=c[2],d[e+3]=c[3]}function f(a,d,e){b[0]=a,d[e]=c[3],d[e+1]=c[2],d[e+2]=c[1],d[e+3]=c[0]}function g(a,d){return c[0]=a[d],c[1]=a[d+1],c[2]=a[d+2],c[3]=a[d+3],b[0]}function h(a,d){return c[3]=a[d],c[2]=a[d+1],c[1]=a[d+2],c[0]=a[d+3],b[0]}a.writeFloatLE=d?e:f,a.writeFloatBE=d?f:e,a.readFloatLE=d?g:h,a.readFloatBE=d?h:g}():!function(){function b(a,b,c,d){var e=+(b<0);if(e&&(b=-b),0===b)a(1/b>0?0:0x80000000,c,d);else if(isNaN(b))a(0x7fc00000,c,d);else if(b>34028234663852886e22)a((e<<31|0x7f800000)>>>0,c,d);else if(b<11754943508222875e-54)a((e<<31|Math.round(b/1401298464324817e-60))>>>0,c,d);else{var f=Math.floor(Math.log(b)/Math.LN2),g=8388607&Math.round(b*Math.pow(2,-f)*8388608);a((e<<31|f+127<<23|g)>>>0,c,d)}}function g(a,b,c){var d=a(b,c),e=(d>>31)*2+1,f=d>>>23&255,g=8388607&d;return 255===f?g?NaN:1/0*e:0===f?1401298464324817e-60*e*g:e*Math.pow(2,f-150)*(g+8388608)}a.writeFloatLE=b.bind(null,c),a.writeFloatBE=b.bind(null,d),a.readFloatLE=g.bind(null,e),a.readFloatBE=g.bind(null,f)}(),"u">typeof Float64Array?!function(){var b=new Float64Array([-0]),c=new Uint8Array(b.buffer),d=128===c[7];function e(a,d,e){b[0]=a,d[e]=c[0],d[e+1]=c[1],d[e+2]=c[2],d[e+3]=c[3],d[e+4]=c[4],d[e+5]=c[5],d[e+6]=c[6],d[e+7]=c[7]}function f(a,d,e){b[0]=a,d[e]=c[7],d[e+1]=c[6],d[e+2]=c[5],d[e+3]=c[4],d[e+4]=c[3],d[e+5]=c[2],d[e+6]=c[1],d[e+7]=c[0]}function g(a,d){return c[0]=a[d],c[1]=a[d+1],c[2]=a[d+2],c[3]=a[d+3],c[4]=a[d+4],c[5]=a[d+5],c[6]=a[d+6],c[7]=a[d+7],b[0]}function h(a,d){return c[7]=a[d],c[6]=a[d+1],c[5]=a[d+2],c[4]=a[d+3],c[3]=a[d+4],c[2]=a[d+5],c[1]=a[d+6],c[0]=a[d+7],b[0]}a.writeDoubleLE=d?e:f,a.writeDoubleBE=d?f:e,a.readDoubleLE=d?g:h,a.readDoubleBE=d?h:g}():!function(){function b(a,b,c,d,e,f){var g,h=+(d<0);if(h&&(d=-d),0===d)a(0,e,f+b),a(1/d>0?0:0x80000000,e,f+c);else if(isNaN(d))a(0,e,f+b),a(0x7ff80000,e,f+c);else if(d>17976931348623157e292)a(0,e,f+b),a((h<<31|0x7ff00000)>>>0,e,f+c);else if(d<22250738585072014e-324)a((g=d/5e-324)>>>0,e,f+b),a((h<<31|g/0x100000000)>>>0,e,f+c);else{var i=Math.floor(Math.log(d)/Math.LN2);1024===i&&(i=1023),a(0x10000000000000*(g=d*Math.pow(2,-i))>>>0,e,f+b),a((h<<31|i+1023<<20|1048576*g&1048575)>>>0,e,f+c)}}function g(a,b,c,d,e){var f=a(d,e+b),g=a(d,e+c),h=(g>>31)*2+1,i=g>>>20&2047,j=0x100000000*(1048575&g)+f;return 2047===i?j?NaN:1/0*h:0===i?5e-324*h*j:h*Math.pow(2,i-1075)*(j+0x10000000000000)}a.writeDoubleLE=b.bind(null,c,0,4),a.writeDoubleBE=b.bind(null,d,4,0),a.readDoubleLE=g.bind(null,e,0,4),a.readDoubleBE=g.bind(null,f,4,0)}(),a}function c(a,b,c){b[c]=255&a,b[c+1]=a>>>8&255,b[c+2]=a>>>16&255,b[c+3]=a>>>24}function d(a,b,c){b[c]=a>>>24,b[c+1]=a>>>16&255,b[c+2]=a>>>8&255,b[c+3]=255&a}function e(a,b){return(a[b]|a[b+1]<<8|a[b+2]<<16|a[b+3]<<24)>>>0}function f(a,b){return(a[b]<<24|a[b+1]<<16|a[b+2]<<8|a[b+3])>>>0}a.exports=b(b)},65464:(a,b,c)=>{"use strict";let d,e,f,g,h,i,j,k;c.r(b),c.d(b,{AESCipher:()=>dQ,Aily:()=>fz,AppType:()=>l,CAppTicket:()=>dH,CTenantAccessToken:()=>dI,CardActionHandler:()=>fg,Client:()=>e7,Domain:()=>m,EventDispatcher:()=>ff,LoggerLevel:()=>n,WSClient:()=>fx,adaptDefault:()=>fj,adaptExpress:()=>fk,adaptKoa:()=>fl,adaptKoaRouter:()=>fm,defaultHttpInstance:()=>dE,generateChallenge:()=>fi,messageCard:()=>fn,withAll:()=>e8,withHelpDeskCredential:()=>fa,withTenantKey:()=>e9,withTenantToken:()=>fb,withUserAccessToken:()=>fc});var l,m,n,o,p,q,r,s,t,u={};function v(a,b){return function(){return a.apply(b,arguments)}}c.r(u),c.d(u,{hasBrowserEnv:()=>a6,hasStandardBrowserEnv:()=>a8,hasStandardBrowserWebWorkerEnv:()=>a9,navigator:()=>a7,origin:()=>ba});let{toString:w}=Object.prototype,{getPrototypeOf:x}=Object,{iterator:y,toStringTag:z}=Symbol,A=(d=Object.create(null),a=>{let b=w.call(a);return d[b]||(d[b]=b.slice(8,-1).toLowerCase())}),B=a=>(a=a.toLowerCase(),b=>A(b)===a),C=a=>b=>typeof b===a,{isArray:D}=Array,E=C("undefined");function F(a){return null!==a&&!E(a)&&null!==a.constructor&&!E(a.constructor)&&J(a.constructor.isBuffer)&&a.constructor.isBuffer(a)}let G=B("ArrayBuffer");function H(a){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(a):a&&a.buffer&&G(a.buffer)}let I=C("string"),J=C("function"),K=C("number"),L=a=>null!==a&&"object"==typeof a,M=a=>!0===a||!1===a,N=a=>{if("object"!==A(a))return!1;let b=x(a);return(null===b||b===Object.prototype||null===Object.getPrototypeOf(b))&&!(z in a)&&!(y in a)},O=a=>{if(!L(a)||F(a))return!1;try{return 0===Object.keys(a).length&&Object.getPrototypeOf(a)===Object.prototype}catch(a){return!1}},P=B("Date"),Q=B("File"),R=a=>!!(a&&void 0!==a.uri),S=a=>a&&void 0!==a.getParts,T=B("Blob"),U=B("FileList"),V=a=>L(a)&&J(a.pipe),W=function(){return"u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{}}(),X=void 0!==W.FormData?W.FormData:void 0,Y=a=>{let b;return a&&(X&&a instanceof X||J(a.append)&&("formdata"===(b=A(a))||"object"===b&&J(a.toString)&&"[object FormData]"===a.toString()))},Z=B("URLSearchParams"),[$,_,aa,ab]=["ReadableStream","Request","Response","Headers"].map(B),ac=a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ad(a,b,{allOwnKeys:c=!1}={}){let d,e;if(null!=a)if("object"!=typeof a&&(a=[a]),D(a))for(d=0,e=a.length;d<e;d++)b.call(null,a[d],d,a);else{let e;if(F(a))return;let f=c?Object.getOwnPropertyNames(a):Object.keys(a),g=f.length;for(d=0;d<g;d++)e=f[d],b.call(null,a[e],e,a)}}function ae(a,b){let c;if(F(a))return null;b=b.toLowerCase();let d=Object.keys(a),e=d.length;for(;e-- >0;)if(b===(c=d[e]).toLowerCase())return c;return null}let af="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,ag=a=>!E(a)&&a!==af;function ah(){let{caseless:a,skipUndefined:b}=ag(this)&&this||{},c={},d=(d,e)=>{if("__proto__"===e||"constructor"===e||"prototype"===e)return;let f=a&&ae(c,e)||e;N(c[f])&&N(d)?c[f]=ah(c[f],d):N(d)?c[f]=ah({},d):D(d)?c[f]=d.slice():b&&E(d)||(c[f]=d)};for(let a=0,b=arguments.length;a<b;a++)arguments[a]&&ad(arguments[a],d);return c}let ai=(a,b,c,{allOwnKeys:d}={})=>(ad(b,(b,d)=>{c&&J(b)?Object.defineProperty(a,d,{value:v(b,c),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(a,d,{value:b,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:d}),a),aj=a=>(65279===a.charCodeAt(0)&&(a=a.slice(1)),a),ak=(a,b,c,d)=>{a.prototype=Object.create(b.prototype,d),Object.defineProperty(a.prototype,"constructor",{value:a,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(a,"super",{value:b.prototype}),c&&Object.assign(a.prototype,c)},al=(a,b,c,d)=>{let e,f,g,h={};if(b=b||{},null==a)return b;do{for(f=(e=Object.getOwnPropertyNames(a)).length;f-- >0;)g=e[f],(!d||d(g,a,b))&&!h[g]&&(b[g]=a[g],h[g]=!0);a=!1!==c&&x(a)}while(a&&(!c||c(a,b))&&a!==Object.prototype);return b},am=(a,b,c)=>{a=String(a),(void 0===c||c>a.length)&&(c=a.length),c-=b.length;let d=a.indexOf(b,c);return -1!==d&&d===c},an=a=>{if(!a)return null;if(D(a))return a;let b=a.length;if(!K(b))return null;let c=Array(b);for(;b-- >0;)c[b]=a[b];return c},ao=(e="u">typeof Uint8Array&&x(Uint8Array),a=>e&&a instanceof e),ap=(a,b)=>{let c,d=(a&&a[y]).call(a);for(;(c=d.next())&&!c.done;){let d=c.value;b.call(a,d[0],d[1])}},aq=(a,b)=>{let c,d=[];for(;null!==(c=a.exec(b));)d.push(c);return d},ar=B("HTMLFormElement"),as=a=>a.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,b,c){return b.toUpperCase()+c}),at=(({hasOwnProperty:a})=>(b,c)=>a.call(b,c))(Object.prototype),au=B("RegExp"),av=(a,b)=>{let c=Object.getOwnPropertyDescriptors(a),d={};ad(c,(c,e)=>{let f;!1!==(f=b(c,e,a))&&(d[e]=f||c)}),Object.defineProperties(a,d)},aw=a=>{av(a,(b,c)=>{if(J(a)&&-1!==["arguments","caller","callee"].indexOf(c))return!1;if(J(a[c])){if(b.enumerable=!1,"writable"in b){b.writable=!1;return}b.set||(b.set=()=>{throw Error("Can not rewrite read-only method '"+c+"'")})}})},ax=(a,b)=>{let c={};return(a=>{a.forEach(a=>{c[a]=!0})})(D(a)?a:String(a).split(b)),c},ay=()=>{},az=(a,b)=>null!=a&&Number.isFinite(a*=1)?a:b;function aA(a){return!!(a&&J(a.append)&&"FormData"===a[z]&&a[y])}let aB=a=>{let b=Array(10),c=(a,d)=>{if(L(a)){if(b.indexOf(a)>=0)return;if(F(a))return a;if(!("toJSON"in a)){b[d]=a;let e=D(a)?[]:{};return ad(a,(a,b)=>{let f=c(a,d+1);E(f)||(e[b]=f)}),b[d]=void 0,e}}return a};return c(a,0)},aC=B("AsyncFunction"),aD=a=>a&&(L(a)||J(a))&&J(a.then)&&J(a.catch),aE=(h="function"==typeof setImmediate,i=J(af.postMessage),h?setImmediate:i?(j=`axios@${Math.random()}`,k=[],af.addEventListener("message",({source:a,data:b})=>{a===af&&b===j&&k.length&&k.shift()()},!1),a=>{k.push(a),af.postMessage(j,"*")}):a=>setTimeout(a)),aF="u">typeof queueMicrotask?queueMicrotask.bind(af):"u">typeof process&&process.nextTick||aE,aG=a=>null!=a&&J(a[y]),aH={isArray:D,isArrayBuffer:G,isBuffer:F,isFormData:Y,isArrayBufferView:H,isString:I,isNumber:K,isBoolean:M,isObject:L,isPlainObject:N,isEmptyObject:O,isReadableStream:$,isRequest:_,isResponse:aa,isHeaders:ab,isUndefined:E,isDate:P,isFile:Q,isReactNativeBlob:R,isReactNative:S,isBlob:T,isRegExp:au,isFunction:J,isStream:V,isURLSearchParams:Z,isTypedArray:ao,isFileList:U,forEach:ad,merge:ah,extend:ai,trim:ac,stripBOM:aj,inherits:ak,toFlatObject:al,kindOf:A,kindOfTest:B,endsWith:am,toArray:an,forEachEntry:ap,matchAll:aq,isHTMLForm:ar,hasOwnProperty:at,hasOwnProp:at,reduceDescriptors:av,freezeMethods:aw,toObjectSet:ax,toCamelCase:as,noop:ay,toFiniteNumber:az,findKey:ae,global:af,isContextDefined:ag,isSpecCompliantForm:aA,toJSONObject:aB,isAsyncFn:aC,isThenable:aD,setImmediate:aE,asap:aF,isIterable:aG};class aI extends Error{static from(a,b,c,d,e,f){let g=new aI(a.message,b||a.code,c,d,e);return g.cause=a,g.name=a.name,null!=a.status&&null==g.status&&(g.status=a.status),f&&Object.assign(g,f),g}constructor(a,b,c,d,e){super(a),Object.defineProperty(this,"message",{value:a,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,b&&(this.code=b),c&&(this.config=c),d&&(this.request=d),e&&(this.response=e,this.status=e.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:aH.toJSONObject(this.config),code:this.code,status:this.status}}}aI.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",aI.ERR_BAD_OPTION="ERR_BAD_OPTION",aI.ECONNABORTED="ECONNABORTED",aI.ETIMEDOUT="ETIMEDOUT",aI.ERR_NETWORK="ERR_NETWORK",aI.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",aI.ERR_DEPRECATED="ERR_DEPRECATED",aI.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",aI.ERR_BAD_REQUEST="ERR_BAD_REQUEST",aI.ERR_CANCELED="ERR_CANCELED",aI.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",aI.ERR_INVALID_URL="ERR_INVALID_URL";let aJ=aI,aK=c(13924);function aL(a){return aH.isPlainObject(a)||aH.isArray(a)}function aM(a){return aH.endsWith(a,"[]")?a.slice(0,-2):a}function aN(a,b,c){return a?a.concat(b).map(function(a,b){return a=aM(a),!c&&b?"["+a+"]":a}).join(c?".":""):b}function aO(a){return aH.isArray(a)&&!a.some(aL)}let aP=aH.toFlatObject(aH,{},null,function(a){return/^is[A-Z]/.test(a)}),aQ=function(a,b,c){if(!aH.isObject(a))throw TypeError("target must be an object");b=b||new(aK||FormData);let d=(c=aH.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(a,b){return!aH.isUndefined(b[a])})).metaTokens,e=c.visitor||j,f=c.dots,g=c.indexes,h=(c.Blob||"u">typeof Blob&&Blob)&&aH.isSpecCompliantForm(b);if(!aH.isFunction(e))throw TypeError("visitor must be a function");function i(a){if(null===a)return"";if(aH.isDate(a))return a.toISOString();if(aH.isBoolean(a))return a.toString();if(!h&&aH.isBlob(a))throw new aJ("Blob is not supported. Use a Buffer instead.");return aH.isArrayBuffer(a)||aH.isTypedArray(a)?h&&"function"==typeof Blob?new Blob([a]):Buffer.from(a):a}function j(a,c,e){let h=a;if(aH.isReactNative(b)&&aH.isReactNativeBlob(a))return b.append(aN(e,c,f),i(a)),!1;if(a&&!e&&"object"==typeof a){if(aH.endsWith(c,"{}"))c=d?c:c.slice(0,-2),a=JSON.stringify(a);else if(aH.isArray(a)&&aO(a)||(aH.isFileList(a)||aH.endsWith(c,"[]"))&&(h=aH.toArray(a)))return c=aM(c),h.forEach(function(a,d){aH.isUndefined(a)||null===a||b.append(!0===g?aN([c],d,f):null===g?c:c+"[]",i(a))}),!1}return!!aL(a)||(b.append(aN(e,c,f),i(a)),!1)}let k=[],l=Object.assign(aP,{defaultVisitor:j,convertValue:i,isVisitable:aL});function m(a,c){if(!aH.isUndefined(a)){if(-1!==k.indexOf(a))throw Error("Circular reference detected in "+c.join("."));k.push(a),aH.forEach(a,function(a,d){!0===(!(aH.isUndefined(a)||null===a)&&e.call(b,a,aH.isString(d)?d.trim():d,c,l))&&m(a,c?c.concat(d):[d])}),k.pop()}}if(!aH.isObject(a))throw TypeError("data must be an object");return m(a),b};function aR(a){let b={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(a){return b[a]})}function aS(a,b){this._pairs=[],a&&aQ(a,this,b)}let aT=aS.prototype;aT.append=function(a,b){this._pairs.push([a,b])},aT.toString=function(a){let b=a?function(b){return a.call(this,b,aR)}:aR;return this._pairs.map(function(a){return b(a[0])+"="+b(a[1])},"").join("&")};let aU=aS;function aV(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function aW(a,b,c){let d;if(!b)return a;let e=c&&c.encode||aV,f=aH.isFunction(c)?{serialize:c}:c,g=f&&f.serialize;if(d=g?g(b,f):aH.isURLSearchParams(b)?b.toString():new aU(b,f).toString(e)){let b=a.indexOf("#");-1!==b&&(a=a.slice(0,b)),a+=(-1===a.indexOf("?")?"?":"&")+d}return a}class aX{constructor(){this.handlers=[]}use(a,b,c){return this.handlers.push({fulfilled:a,rejected:b,synchronous:!!c&&c.synchronous,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){aH.forEach(this.handlers,function(b){null!==b&&a(b)})}}let aY=aX,aZ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};var a$=c(55511),a_=c.n(a$);let a0=c(1932).URLSearchParams,a1="abcdefghijklmnopqrstuvwxyz",a2="0123456789",a3={DIGIT:a2,ALPHA:a1,ALPHA_DIGIT:a1+a1.toUpperCase()+a2},a4=(a=16,b=a3.ALPHA_DIGIT)=>{let c="",{length:d}=b,e=new Uint32Array(a);a$.randomFillSync(e);for(let f=0;f<a;f++)c+=b[e[f]%d];return c},a5={isNode:!0,classes:{URLSearchParams:a0,FormData:aK,Blob:"u">typeof Blob&&Blob||null},ALPHABET:a3,generateString:a4,protocols:["http","https","file","data"]},a6="u">typeof window&&"u">typeof document,a7="object"==typeof navigator&&navigator||void 0,a8=a6&&(!a7||0>["ReactNative","NativeScript","NS"].indexOf(a7.product)),a9="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ba=a6&&window.location.href||"http://localhost",bb={...u,...a5};function bc(a,b){return aQ(a,new bb.classes.URLSearchParams,{visitor:function(a,b,c,d){return bb.isNode&&aH.isBuffer(a)?(this.append(b,a.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)},...b})}function bd(a){return aH.matchAll(/\w+|\[(\w*)]/g,a).map(a=>"[]"===a[0]?"":a[1]||a[0])}function be(a){let b,c,d={},e=Object.keys(a),f=e.length;for(b=0;b<f;b++)d[c=e[b]]=a[c];return d}let bf=function(a){function b(a,c,d,e){let f=a[e++];if("__proto__"===f)return!0;let g=Number.isFinite(+f),h=e>=a.length;return(f=!f&&aH.isArray(d)?d.length:f,h)?aH.hasOwnProp(d,f)?d[f]=[d[f],c]:d[f]=c:(d[f]&&aH.isObject(d[f])||(d[f]=[]),b(a,c,d[f],e)&&aH.isArray(d[f])&&(d[f]=be(d[f]))),!g}if(aH.isFormData(a)&&aH.isFunction(a.entries)){let c={};return aH.forEachEntry(a,(a,d)=>{b(bd(a),d,c,0)}),c}return null};function bg(a,b,c){if(aH.isString(a))try{return(b||JSON.parse)(a),aH.trim(a)}catch(a){if("SyntaxError"!==a.name)throw a}return(c||JSON.stringify)(a)}let bh={transitional:aZ,adapter:["xhr","http","fetch"],transformRequest:[function(a,b){let c,d=b.getContentType()||"",e=d.indexOf("application/json")>-1,f=aH.isObject(a);if(f&&aH.isHTMLForm(a)&&(a=new FormData(a)),aH.isFormData(a))return e?JSON.stringify(bf(a)):a;if(aH.isArrayBuffer(a)||aH.isBuffer(a)||aH.isStream(a)||aH.isFile(a)||aH.isBlob(a)||aH.isReadableStream(a))return a;if(aH.isArrayBufferView(a))return a.buffer;if(aH.isURLSearchParams(a))return b.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();if(f){if(d.indexOf("application/x-www-form-urlencoded")>-1)return bc(a,this.formSerializer).toString();if((c=aH.isFileList(a))||d.indexOf("multipart/form-data")>-1){let b=this.env&&this.env.FormData;return aQ(c?{"files[]":a}:a,b&&new b,this.formSerializer)}}return f||e?(b.setContentType("application/json",!1),bg(a)):a}],transformResponse:[function(a){let b=this.transitional||bh.transitional,c=b&&b.forcedJSONParsing,d="json"===this.responseType;if(aH.isResponse(a)||aH.isReadableStream(a))return a;if(a&&aH.isString(a)&&(c&&!this.responseType||d)){let c=!(b&&b.silentJSONParsing)&&d;try{return JSON.parse(a,this.parseReviver)}catch(a){if(c){if("SyntaxError"===a.name)throw aJ.from(a,aJ.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bb.classes.FormData,Blob:bb.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};aH.forEach(["delete","get","head","post","put","patch"],a=>{bh.headers[a]={}});let bi=bh,bj=aH.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bk=a=>{let b,c,d,e={};return a&&a.split("\n").forEach(function(a){d=a.indexOf(":"),b=a.substring(0,d).trim().toLowerCase(),c=a.substring(d+1).trim(),!b||e[b]&&bj[b]||("set-cookie"===b?e[b]?e[b].push(c):e[b]=[c]:e[b]=e[b]?e[b]+", "+c:c)}),e},bl=Symbol("internals");function bm(a){return a&&String(a).trim().toLowerCase()}function bn(a){return!1===a||null==a?a:aH.isArray(a)?a.map(bn):String(a)}function bo(a){let b,c=Object.create(null),d=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;b=d.exec(a);)c[b[1]]=b[2];return c}let bp=a=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim());function bq(a,b,c,d,e){if(aH.isFunction(d))return d.call(this,b,c);if(e&&(b=c),aH.isString(b)){if(aH.isString(d))return -1!==b.indexOf(d);if(aH.isRegExp(d))return d.test(b)}}function br(a){return a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,b,c)=>b.toUpperCase()+c)}function bs(a,b){let c=aH.toCamelCase(" "+b);["get","set","has"].forEach(d=>{Object.defineProperty(a,d+c,{value:function(a,c,e){return this[d].call(this,b,a,c,e)},configurable:!0})})}class bt{constructor(a){a&&this.set(a)}set(a,b,c){let d=this;function e(a,b,c){let e=bm(b);if(!e)throw Error("header name must be a non-empty string");let f=aH.findKey(d,e);f&&void 0!==d[f]&&!0!==c&&(void 0!==c||!1===d[f])||(d[f||b]=bn(a))}let f=(a,b)=>aH.forEach(a,(a,c)=>e(a,c,b));if(aH.isPlainObject(a)||a instanceof this.constructor)f(a,b);else if(aH.isString(a)&&(a=a.trim())&&!bp(a))f(bk(a),b);else if(aH.isObject(a)&&aH.isIterable(a)){let c={},d,e;for(let b of a){if(!aH.isArray(b))throw TypeError("Object iterator must return a key-value pair");c[e=b[0]]=(d=c[e])?aH.isArray(d)?[...d,b[1]]:[d,b[1]]:b[1]}f(c,b)}else null!=a&&e(b,a,c);return this}get(a,b){if(a=bm(a)){let c=aH.findKey(this,a);if(c){let a=this[c];if(!b)return a;if(!0===b)return bo(a);if(aH.isFunction(b))return b.call(this,a,c);if(aH.isRegExp(b))return b.exec(a);throw TypeError("parser must be boolean|regexp|function")}}}has(a,b){if(a=bm(a)){let c=aH.findKey(this,a);return!!(c&&void 0!==this[c]&&(!b||bq(this,this[c],c,b)))}return!1}delete(a,b){let c=this,d=!1;function e(a){if(a=bm(a)){let e=aH.findKey(c,a);e&&(!b||bq(c,c[e],e,b))&&(delete c[e],d=!0)}}return aH.isArray(a)?a.forEach(e):e(a),d}clear(a){let b=Object.keys(this),c=b.length,d=!1;for(;c--;){let e=b[c];(!a||bq(this,this[e],e,a,!0))&&(delete this[e],d=!0)}return d}normalize(a){let b=this,c={};return aH.forEach(this,(d,e)=>{let f=aH.findKey(c,e);if(f){b[f]=bn(d),delete b[e];return}let g=a?br(e):String(e).trim();g!==e&&delete b[e],b[g]=bn(d),c[g]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){let b=Object.create(null);return aH.forEach(this,(c,d)=>{null!=c&&!1!==c&&(b[d]=a&&aH.isArray(c)?c.join(", "):c)}),b}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,b])=>a+": "+b).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...b){let c=new this(a);return b.forEach(a=>c.set(a)),c}static accessor(a){let b=(this[bl]=this[bl]={accessors:{}}).accessors,c=this.prototype;function d(a){let d=bm(a);b[d]||(bs(c,a),b[d]=!0)}return aH.isArray(a)?a.forEach(d):d(a),this}}bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),aH.reduceDescriptors(bt.prototype,({value:a},b)=>{let c=b[0].toUpperCase()+b.slice(1);return{get:()=>a,set(a){this[c]=a}}}),aH.freezeMethods(bt);let bu=bt;function bv(a,b){let c=this||bi,d=b||c,e=bu.from(d.headers),f=d.data;return aH.forEach(a,function(a){f=a.call(c,f,e.normalize(),b?b.status:void 0)}),e.normalize(),f}function bw(a){return!!(a&&a.__CANCEL__)}class bx extends aJ{constructor(a,b,c){super(null==a?"canceled":a,aJ.ERR_CANCELED,b,c),this.name="CanceledError",this.__CANCEL__=!0}}let by=bx;function bz(a,b,c){let d=c.config.validateStatus;!c.status||!d||d(c.status)?a(c):b(new aJ("Request failed with status code "+c.status,[aJ.ERR_BAD_REQUEST,aJ.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}function bA(a){return"string"==typeof a&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)}function bB(a,b){return b?a.replace(/\/?\/$/,"")+"/"+b.replace(/^\/+/,""):a}function bC(a,b,c){let d=!bA(b);return a&&(d||!1==c)?bB(a,b):b}var bD=c(45819),bE=c(81630),bF=c(55591),bG=c(73496),bH=c(28354),bI=c(43011),bJ=c(74075);let bK="1.13.6";function bL(a){let b=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return b&&b[1]||""}let bM=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function bN(a,b,c){let d=c&&c.Blob||bb.classes.Blob,e=bL(a);if(void 0===b&&d&&(b=!0),"data"===e){a=e.length?a.slice(e.length+1):a;let c=bM.exec(a);if(!c)throw new aJ("Invalid URL",aJ.ERR_INVALID_URL);let f=c[1],g=c[2],h=c[3],i=Buffer.from(decodeURIComponent(h),g?"base64":"utf8");if(b){if(!d)throw new aJ("Blob is not supported",aJ.ERR_NOT_SUPPORT);return new d([i],{type:f})}return i}throw new aJ("Unsupported protocol "+e,aJ.ERR_NOT_SUPPORT)}var bO=c(27910);let bP=Symbol("internals");class bQ extends bO.Transform{constructor(a){super({readableHighWaterMark:(a=aH.toFlatObject(a,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(a,b)=>!aH.isUndefined(b[a]))).chunkSize});const b=this[bP]={timeWindow:a.timeWindow,chunkSize:a.chunkSize,maxRate:a.maxRate,minChunkSize:a.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",a=>{"progress"!==a||b.isCaptured||(b.isCaptured=!0)})}_read(a){let b=this[bP];return b.onReadCallback&&b.onReadCallback(),super._read(a)}_transform(a,b,c){let d=this[bP],e=d.maxRate,f=this.readableHighWaterMark,g=d.timeWindow,h=e/(1e3/g),i=!1!==d.minChunkSize?Math.max(d.minChunkSize,.01*h):0,j=(a,b)=>{let c=Buffer.byteLength(a);d.bytesSeen+=c,d.bytes+=c,d.isCaptured&&this.emit("progress",d.bytesSeen),this.push(a)?process.nextTick(b):d.onReadCallback=()=>{d.onReadCallback=null,process.nextTick(b)}},k=(a,b)=>{let c,k=Buffer.byteLength(a),l=null,m=f,n=0;if(e){let a=Date.now();(!d.ts||(n=a-d.ts)>=g)&&(d.ts=a,c=h-d.bytes,d.bytes=c<0?-c:0,n=0),c=h-d.bytes}if(e){if(c<=0)return setTimeout(()=>{b(null,a)},g-n);c<m&&(m=c)}m&&k>m&&k-m>i&&(l=a.subarray(m),a=a.subarray(0,m)),j(a,l?()=>{process.nextTick(b,null,l)}:b)};k(a,function a(b,d){if(b)return c(b);d?k(d,a):c(null)})}}let bR=bQ;var bS=c(94735);let{asyncIterator:bT}=Symbol,bU=async function*(a){a.stream?yield*a.stream():a.arrayBuffer?yield await a.arrayBuffer():a[bT]?yield*a[bT]():yield a},bV=bb.ALPHABET.ALPHA_DIGIT+"-_",bW="function"==typeof TextEncoder?new TextEncoder:new bH.TextEncoder,bX="\r\n",bY=bW.encode(bX),bZ=2;class b${constructor(a,b){const{escapeName:c}=this.constructor,d=aH.isString(b);let e=`Content-Disposition: form-data; name="${c(a)}"${!d&&b.name?`; filename="${c(b.name)}"`:""}${bX}`;d?b=bW.encode(String(b).replace(/\r?\n|\r\n?/g,bX)):e+=`Content-Type: ${b.type||"application/octet-stream"}${bX}`,this.headers=bW.encode(e+bX),this.contentLength=d?b.byteLength:b.size,this.size=this.headers.byteLength+this.contentLength+bZ,this.name=a,this.value=b}async *encode(){yield this.headers;let{value:a}=this;aH.isTypedArray(a)?yield a:yield*bU(a),yield bY}static escapeName(a){return String(a).replace(/[\r\n"]/g,a=>({"\r":"%0D","\n":"%0A",'"':"%22"})[a])}}let b_=(a,b,c)=>{let{tag:d="form-data-boundary",size:e=25,boundary:f=d+"-"+bb.generateString(e,bV)}=c||{};if(!aH.isFormData(a))throw TypeError("FormData instance required");if(f.length<1||f.length>70)throw Error("boundary must be 10-70 characters long");let g=bW.encode("--"+f+bX),h=bW.encode("--"+f+"--"+bX),i=h.byteLength,j=Array.from(a.entries()).map(([a,b])=>{let c=new b$(a,b);return i+=c.size,c});i+=g.byteLength*j.length;let k={"Content-Type":`multipart/form-data; boundary=${f}`};return Number.isFinite(i=aH.toFiniteNumber(i))&&(k["Content-Length"]=i),b&&b(k),bO.Readable.from(async function*(){for(let a of j)yield g,yield*a.encode();yield h}())};class b0 extends bO.Transform{__transform(a,b,c){this.push(a),c()}_transform(a,b,c){if(0!==a.length&&(this._transform=this.__transform,120!==a[0])){let a=Buffer.alloc(2);a[0]=120,a[1]=156,this.push(a,b)}this.__transform(a,b,c)}}let b1=b0,b2=(a,b)=>aH.isAsyncFn(a)?function(...c){let d=c.pop();a.apply(this,c).then(a=>{try{b?d(null,...b(a)):d(null,a)}catch(a){d(a)}},d)}:a,b3=function(a,b){let c,d=Array(a=a||10),e=Array(a),f=0,g=0;return b=void 0!==b?b:1e3,function(h){let i=Date.now(),j=e[g];c||(c=i),d[f]=h,e[f]=i;let k=g,l=0;for(;k!==f;)l+=d[k++],k%=a;if((f=(f+1)%a)===g&&(g=(g+1)%a),i-c<b)return;let m=j&&i-j;return m?Math.round(1e3*l/m):void 0}},b4=function(a,b){let c,d,e=0,f=1e3/b,g=(b,f=Date.now())=>{e=f,c=null,d&&(clearTimeout(d),d=null),a(...b)};return[(...a)=>{let b=Date.now(),h=b-e;h>=f?g(a,b):(c=a,d||(d=setTimeout(()=>{d=null,g(c)},f-h)))},()=>c&&g(c)]},b5=(a,b,c=3)=>{let d=0,e=b3(50,250);return b4(c=>{let f=c.loaded,g=c.lengthComputable?c.total:void 0,h=f-d,i=e(h),j=f<=g;d=f,a({loaded:f,total:g,progress:g?f/g:void 0,bytes:h,rate:i||void 0,estimated:i&&g&&j?(g-f)/i:void 0,event:c,lengthComputable:null!=g,[b?"download":"upload"]:!0})},c)},b6=(a,b)=>{let c=null!=a;return[d=>b[0]({lengthComputable:c,total:a,loaded:d}),b[1]]},b7=a=>(...b)=>aH.asap(()=>a(...b));function b8(a){if(!a||"string"!=typeof a||!a.startsWith("data:"))return 0;let b=a.indexOf(",");if(b<0)return 0;let c=a.slice(5,b),d=a.slice(b+1);if(/;base64/i.test(c)){let a=d.length,b=d.length;for(let c=0;c<b;c++)if(37===d.charCodeAt(c)&&c+2<b){let b=d.charCodeAt(c+1),e=d.charCodeAt(c+2);(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102)&&(e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102)&&(a-=2,c+=2)}let c=0,e=b-1,f=a=>a>=2&&37===d.charCodeAt(a-2)&&51===d.charCodeAt(a-1)&&(68===d.charCodeAt(a)||100===d.charCodeAt(a));e>=0&&(61===d.charCodeAt(e)?(c++,e--):f(e)&&(c++,e-=3)),1===c&&e>=0&&(61===d.charCodeAt(e)?c++:f(e)&&c++);let g=3*Math.floor(a/4)-(c||0);return g>0?g:0}return Buffer.byteLength(d,"utf8")}let b9={flush:bJ.constants.Z_SYNC_FLUSH,finishFlush:bJ.constants.Z_SYNC_FLUSH},ca={flush:bJ.constants.BROTLI_OPERATION_FLUSH,finishFlush:bJ.constants.BROTLI_OPERATION_FLUSH},cb=aH.isFunction(bJ.createBrotliDecompress),{http:cc,https:cd}=bI,ce=/https:?/,cf=bb.protocols.map(a=>a+":"),cg=(a,[b,c])=>(a.on("end",c).on("error",c),b);class ch{constructor(){this.sessions=Object.create(null)}getSession(a,b){let c;b=Object.assign({sessionTimeout:1e3},b);let d=this.sessions[a];if(d){let a=d.length;for(let c=0;c<a;c++){let[a,e]=d[c];if(!a.destroyed&&!a.closed&&bH.isDeepStrictEqual(e,b))return a}}let e=bG.connect(a,b),f=()=>{if(c)return;c=!0;let b=d,f=b.length,g=f;for(;g--;)if(b[g][0]===e)return void(1===f?delete this.sessions[a]:b.splice(g,1))},g=e.request,{sessionTimeout:h}=b;if(null!=h){let a,b=0;e.request=function(){let c=g.apply(this,arguments);return b++,a&&(clearTimeout(a),a=null),c.once("close",()=>{--b||(a=setTimeout(()=>{a=null,f()},h))}),c}}e.once("close",f);let i=[e,b];return d?d.push(i):d=this.sessions[a]=[i],e}}let ci=new ch;function cj(a,b){a.beforeRedirects.proxy&&a.beforeRedirects.proxy(a),a.beforeRedirects.config&&a.beforeRedirects.config(a,b)}function ck(a,b,c){let d=b;if(!d&&!1!==d){let a=bD.getProxyForUrl(c);a&&(d=new URL(a))}if(d){if(d.username&&(d.auth=(d.username||"")+":"+(d.password||"")),d.auth){if(d.auth.username||d.auth.password)d.auth=(d.auth.username||"")+":"+(d.auth.password||"");else if("object"==typeof d.auth)throw new aJ("Invalid proxy authorization",aJ.ERR_BAD_OPTION,{proxy:d});let b=Buffer.from(d.auth,"utf8").toString("base64");a.headers["Proxy-Authorization"]="Basic "+b}a.headers.host=a.hostname+(a.port?":"+a.port:"");let b=d.hostname||d.host;a.hostname=b,a.host=b,a.port=d.port,a.path=c,d.protocol&&(a.protocol=d.protocol.includes(":")?d.protocol:`${d.protocol}:`)}a.beforeRedirects.proxy=function(a){ck(a,b,a.href)}}let cl="u">typeof process&&"process"===aH.kindOf(process),cm=a=>new Promise((b,c)=>{let d,e,f=(a,b)=>{!e&&(e=!0,d&&d(a,b))},g=a=>{f(a,!0),c(a)};a(a=>{f(a),b(a)},g,a=>d=a).catch(g)}),cn=({address:a,family:b})=>{if(!aH.isString(a))throw TypeError("address must be a string");return{address:a,family:b||(0>a.indexOf(".")?6:4)}},co=(a,b)=>cn(aH.isObject(a)?a:{address:a,family:b}),cp={request(a,b){let c=a.protocol+"//"+a.hostname+":"+(a.port||("https:"===a.protocol?443:80)),{http2Options:d,headers:e}=a,f=ci.getSession(c,d),{HTTP2_HEADER_SCHEME:g,HTTP2_HEADER_METHOD:h,HTTP2_HEADER_PATH:i,HTTP2_HEADER_STATUS:j}=bG.constants,k={[g]:a.protocol.replace(":",""),[h]:a.method,[i]:a.path};aH.forEach(e,(a,b)=>{":"!==b.charAt(0)&&(k[b]=a)});let l=f.request(k);return l.once("response",a=>{let c=l,d=(a=Object.assign({},a))[j];delete a[j],c.headers=a,c.statusCode=+d,b(c)}),l}},cq=cl&&function(a){return cm(async function(b,c,d){let e,f,g,h,i,j,k,{data:l,lookup:m,family:n,httpVersion:o=1,http2Options:p}=a,{responseType:q,responseEncoding:r}=a,s=a.method.toUpperCase(),t=!1;if(Number.isNaN(o*=1))throw TypeError(`Invalid protocol version: '${a.httpVersion}' is not a number`);if(1!==o&&2!==o)throw TypeError(`Unsupported protocol version '${o}'`);let u=2===o;if(m){let a=b2(m,a=>aH.isArray(a)?a:[a]);m=(b,c,d)=>{a(b,c,(a,b,e)=>{if(a)return d(a);let f=aH.isArray(b)?b.map(a=>co(a)):[co(b,e)];c.all?d(a,f):d(a,f[0].address,f[0].family)})}}let v=new bS.EventEmitter;function w(b){try{v.emit("abort",!b||b.type?new by(null,a,i):b)}catch(a){console.warn("emit error",a)}}v.once("abort",c);let x=()=>{a.cancelToken&&a.cancelToken.unsubscribe(w),a.signal&&a.signal.removeEventListener("abort",w),v.removeAllListeners()};(a.cancelToken||a.signal)&&(a.cancelToken&&a.cancelToken.subscribe(w),a.signal&&(a.signal.aborted?w():a.signal.addEventListener("abort",w))),d((a,b)=>{if(h=!0,b){t=!0,x();return}let{data:c}=a;if(c instanceof bO.Readable||c instanceof bO.Duplex){let a=bO.finished(c,()=>{a(),x()})}else x()});let y=bC(a.baseURL,a.url,a.allowAbsoluteUrls),z=new URL(y,bb.hasBrowserEnv?bb.origin:void 0),A=z.protocol||cf[0];if("data:"===A){let d;if(a.maxContentLength>-1&&b8(String(a.url||y||""))>a.maxContentLength)return c(new aJ("maxContentLength size of "+a.maxContentLength+" exceeded",aJ.ERR_BAD_RESPONSE,a));if("GET"!==s)return bz(b,c,{status:405,statusText:"method not allowed",headers:{},config:a});try{d=bN(a.url,"blob"===q,{Blob:a.env&&a.env.Blob})}catch(b){throw aJ.from(b,aJ.ERR_BAD_REQUEST,a)}return"text"===q?(d=d.toString(r),r&&"utf8"!==r||(d=aH.stripBOM(d))):"stream"===q&&(d=bO.Readable.from(d)),bz(b,c,{data:d,status:200,statusText:"OK",headers:new bu,config:a})}if(-1===cf.indexOf(A))return c(new aJ("Unsupported protocol "+A,aJ.ERR_BAD_REQUEST,a));let B=bu.from(a.headers).normalize();B.set("User-Agent","axios/"+bK,!1);let{onUploadProgress:C,onDownloadProgress:D}=a,E=a.maxRate;if(aH.isSpecCompliantForm(l)){let a=B.getContentType(/boundary=([-_\w\d]{10,70})/i);l=b_(l,a=>{B.set(a)},{tag:`axios-${bK}-boundary`,boundary:a&&a[1]||void 0})}else if(aH.isFormData(l)&&aH.isFunction(l.getHeaders)){if(B.set(l.getHeaders()),!B.hasContentLength())try{let a=await bH.promisify(l.getLength).call(l);Number.isFinite(a)&&a>=0&&B.setContentLength(a)}catch(a){}}else if(aH.isBlob(l)||aH.isFile(l))l.size&&B.setContentType(l.type||"application/octet-stream"),B.setContentLength(l.size||0),l=bO.Readable.from(bU(l));else if(l&&!aH.isStream(l)){if(Buffer.isBuffer(l));else if(aH.isArrayBuffer(l))l=Buffer.from(new Uint8Array(l));else{if(!aH.isString(l))return c(new aJ("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",aJ.ERR_BAD_REQUEST,a));l=Buffer.from(l,"utf-8")}if(B.setContentLength(l.length,!1),a.maxBodyLength>-1&&l.length>a.maxBodyLength)return c(new aJ("Request body larger than maxBodyLength limit",aJ.ERR_BAD_REQUEST,a))}let F=aH.toFiniteNumber(B.getContentLength());aH.isArray(E)?(e=E[0],f=E[1]):e=f=E,l&&(C||e)&&(aH.isStream(l)||(l=bO.Readable.from(l,{objectMode:!1})),l=bO.pipeline([l,new bR({maxRate:aH.toFiniteNumber(e)})],aH.noop),C&&l.on("progress",cg(l,b6(F,b5(b7(C),!1,3))))),a.auth&&(g=(a.auth.username||"")+":"+(a.auth.password||"")),!g&&z.username&&(g=z.username+":"+z.password),g&&B.delete("authorization");try{j=aW(z.pathname+z.search,a.params,a.paramsSerializer).replace(/^\?/,"")}catch(d){let b=Error(d.message);return b.config=a,b.url=a.url,b.exists=!0,c(b)}B.set("Accept-Encoding","gzip, compress, deflate"+(cb?", br":""),!1);let G={path:j,method:s,headers:B.toJSON(),agents:{http:a.httpAgent,https:a.httpsAgent},auth:g,protocol:A,family:n,beforeRedirect:cj,beforeRedirects:{},http2Options:p};aH.isUndefined(m)||(G.lookup=m),a.socketPath?G.socketPath=a.socketPath:(G.hostname=z.hostname.startsWith("[")?z.hostname.slice(1,-1):z.hostname,G.port=z.port,ck(G,a.proxy,A+"//"+z.hostname+(z.port?":"+z.port:"")+G.path));let H=ce.test(G.protocol);if(G.agent=H?a.httpsAgent:a.httpAgent,u?k=cp:a.transport?k=a.transport:0===a.maxRedirects?k=H?bF:bE:(a.maxRedirects&&(G.maxRedirects=a.maxRedirects),a.beforeRedirect&&(G.beforeRedirects.config=a.beforeRedirect),k=H?cd:cc),a.maxBodyLength>-1?G.maxBodyLength=a.maxBodyLength:G.maxBodyLength=1/0,a.insecureHTTPParser&&(G.insecureHTTPParser=a.insecureHTTPParser),i=k.request(G,function(d){if(i.destroyed)return;let e=[d],g=aH.toFiniteNumber(d.headers["content-length"]);if(D||f){let a=new bR({maxRate:aH.toFiniteNumber(f)});D&&a.on("progress",cg(a,b6(g,b5(b7(D),!0,3)))),e.push(a)}let h=d,j=d.req||i;if(!1!==a.decompress&&d.headers["content-encoding"])switch(("HEAD"===s||204===d.statusCode)&&delete d.headers["content-encoding"],(d.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":e.push(bJ.createUnzip(b9)),delete d.headers["content-encoding"];break;case"deflate":e.push(new b1),e.push(bJ.createUnzip(b9)),delete d.headers["content-encoding"];break;case"br":cb&&(e.push(bJ.createBrotliDecompress(ca)),delete d.headers["content-encoding"])}h=e.length>1?bO.pipeline(e,aH.noop):e[0];let k={status:d.statusCode,statusText:d.statusMessage,headers:new bu(d.headers),config:a,request:j};if("stream"===q)k.data=h,bz(b,c,k);else{let d=[],e=0;h.on("data",function(b){d.push(b),e+=b.length,a.maxContentLength>-1&&e>a.maxContentLength&&(t=!0,h.destroy(),w(new aJ("maxContentLength size of "+a.maxContentLength+" exceeded",aJ.ERR_BAD_RESPONSE,a,j)))}),h.on("aborted",function(){if(t)return;let b=new aJ("stream has been aborted",aJ.ERR_BAD_RESPONSE,a,j);h.destroy(b),c(b)}),h.on("error",function(b){i.destroyed||c(aJ.from(b,null,a,j))}),h.on("end",function(){try{let a=1===d.length?d[0]:Buffer.concat(d);"arraybuffer"!==q&&(a=a.toString(r),r&&"utf8"!==r||(a=aH.stripBOM(a))),k.data=a}catch(b){return c(aJ.from(b,null,a,k.request,k))}bz(b,c,k)})}v.once("abort",a=>{h.destroyed||(h.emit("error",a),h.destroy())})}),v.once("abort",a=>{i.close?i.close():i.destroy(a)}),i.on("error",function(b){c(aJ.from(b,null,a,i))}),i.on("socket",function(a){a.setKeepAlive(!0,6e4)}),a.timeout){let b=parseInt(a.timeout,10);if(Number.isNaN(b))return void w(new aJ("error trying to parse `config.timeout` to int",aJ.ERR_BAD_OPTION_VALUE,a,i));i.setTimeout(b,function(){if(h)return;let b=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",c=a.transitional||aZ;a.timeoutErrorMessage&&(b=a.timeoutErrorMessage),w(new aJ(b,c.clarifyTimeoutError?aJ.ETIMEDOUT:aJ.ECONNABORTED,a,i))})}else i.setTimeout(0);if(aH.isStream(l)){let b=!1,c=!1;l.on("end",()=>{b=!0}),l.once("error",a=>{c=!0,i.destroy(a)}),l.on("close",()=>{b||c||w(new by("Request stream has been aborted",a,i))}),l.pipe(i)}else l&&i.write(l),i.end()})},cr=bb.hasStandardBrowserEnv?(f=new URL(bb.origin),g=bb.navigator&&/(msie|trident)/i.test(bb.navigator.userAgent),a=>(a=new URL(a,bb.origin),f.protocol===a.protocol&&f.host===a.host&&(g||f.port===a.port))):()=>!0,cs=bb.hasStandardBrowserEnv?{write(a,b,c,d,e,f,g){if("u"<typeof document)return;let h=[`${a}=${encodeURIComponent(b)}`];aH.isNumber(c)&&h.push(`expires=${new Date(c).toUTCString()}`),aH.isString(d)&&h.push(`path=${d}`),aH.isString(e)&&h.push(`domain=${e}`),!0===f&&h.push("secure"),aH.isString(g)&&h.push(`SameSite=${g}`),document.cookie=h.join("; ")},read(a){if("u"<typeof document)return null;let b=document.cookie.match(RegExp("(?:^|; )"+a+"=([^;]*)"));return b?decodeURIComponent(b[1]):null},remove(a){this.write(a,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},ct=a=>a instanceof bu?{...a}:a;function cu(a,b){b=b||{};let c={};function d(a,b,c,d){return aH.isPlainObject(a)&&aH.isPlainObject(b)?aH.merge.call({caseless:d},a,b):aH.isPlainObject(b)?aH.merge({},b):aH.isArray(b)?b.slice():b}function e(a,b,c,e){return aH.isUndefined(b)?aH.isUndefined(a)?void 0:d(void 0,a,c,e):d(a,b,c,e)}function f(a,b){if(!aH.isUndefined(b))return d(void 0,b)}function g(a,b){return aH.isUndefined(b)?aH.isUndefined(a)?void 0:d(void 0,a):d(void 0,b)}function h(c,e,f){return f in b?d(c,e):f in a?d(void 0,c):void 0}let i={url:f,method:f,data:f,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:h,headers:(a,b,c)=>e(ct(a),ct(b),c,!0)};return aH.forEach(Object.keys({...a,...b}),function(d){if("__proto__"===d||"constructor"===d||"prototype"===d)return;let f=aH.hasOwnProp(i,d)?i[d]:e,g=f(a[d],b[d],d);aH.isUndefined(g)&&f!==h||(c[d]=g)}),c}let cv=a=>{let b=cu({},a),{data:c,withXSRFToken:d,xsrfHeaderName:e,xsrfCookieName:f,headers:g,auth:h}=b;if(b.headers=g=bu.from(g),b.url=aW(bC(b.baseURL,b.url,b.allowAbsoluteUrls),a.params,a.paramsSerializer),h&&g.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):""))),aH.isFormData(c)){if(bb.hasStandardBrowserEnv||bb.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if(aH.isFunction(c.getHeaders)){let a=c.getHeaders(),b=["content-type","content-length"];Object.entries(a).forEach(([a,c])=>{b.includes(a.toLowerCase())&&g.set(a,c)})}}if(bb.hasStandardBrowserEnv&&(d&&aH.isFunction(d)&&(d=d(b)),d||!1!==d&&cr(b.url))){let a=e&&f&&cs.read(f);a&&g.set(e,a)}return b},cw="u">typeof XMLHttpRequest&&function(a){return new Promise(function(b,c){let d,e,f,g,h,i=cv(a),j=i.data,k=bu.from(i.headers).normalize(),{responseType:l,onUploadProgress:m,onDownloadProgress:n}=i;function o(){g&&g(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let p=new XMLHttpRequest;function q(){if(!p)return;let d=bu.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());bz(function(a){b(a),o()},function(a){c(a),o()},{data:l&&"text"!==l&&"json"!==l?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:d,config:a,request:p}),p=null}p.open(i.method.toUpperCase(),i.url,!0),p.timeout=i.timeout,"onloadend"in p?p.onloadend=q:p.onreadystatechange=function(){!p||4!==p.readyState||(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(q)},p.onabort=function(){p&&(c(new aJ("Request aborted",aJ.ECONNABORTED,a,p)),p=null)},p.onerror=function(b){let d=new aJ(b&&b.message?b.message:"Network Error",aJ.ERR_NETWORK,a,p);d.event=b||null,c(d),p=null},p.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",d=i.transitional||aZ;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),c(new aJ(b,d.clarifyTimeoutError?aJ.ETIMEDOUT:aJ.ECONNABORTED,a,p)),p=null},void 0===j&&k.setContentType(null),"setRequestHeader"in p&&aH.forEach(k.toJSON(),function(a,b){p.setRequestHeader(b,a)}),aH.isUndefined(i.withCredentials)||(p.withCredentials=!!i.withCredentials),l&&"json"!==l&&(p.responseType=i.responseType),n&&([f,h]=b5(n,!0),p.addEventListener("progress",f)),m&&p.upload&&([e,g]=b5(m),p.upload.addEventListener("progress",e),p.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(d=b=>{p&&(c(!b||b.type?new by(null,a,p):b),p.abort(),p=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));let r=bL(i.url);r&&-1===bb.protocols.indexOf(r)?c(new aJ("Unsupported protocol "+r+":",aJ.ERR_BAD_REQUEST,a)):p.send(j||null)})},cx=(a,b)=>{let{length:c}=a=a?a.filter(Boolean):[];if(b||c){let c,d=new AbortController,e=function(a){if(!c){c=!0,g();let b=a instanceof Error?a:this.reason;d.abort(b instanceof aJ?b:new by(b instanceof Error?b.message:b))}},f=b&&setTimeout(()=>{f=null,e(new aJ(`timeout of ${b}ms exceeded`,aJ.ETIMEDOUT))},b),g=()=>{a&&(f&&clearTimeout(f),f=null,a.forEach(a=>{a.unsubscribe?a.unsubscribe(e):a.removeEventListener("abort",e)}),a=null)};a.forEach(a=>a.addEventListener("abort",e));let{signal:h}=d;return h.unsubscribe=()=>aH.asap(g),h}},cy=function*(a,b){let c,d=a.byteLength;if(!b||d<b)return void(yield a);let e=0;for(;e<d;)c=e+b,yield a.slice(e,c),e=c},cz=async function*(a,b){for await(let c of cA(a))yield*cy(c,b)},cA=async function*(a){if(a[Symbol.asyncIterator])return void(yield*a);let b=a.getReader();try{for(;;){let{done:a,value:c}=await b.read();if(a)break;yield c}}finally{await b.cancel()}},cB=(a,b,c,d)=>{let e,f=cz(a,b),g=0,h=a=>{!e&&(e=!0,d&&d(a))};return new ReadableStream({async pull(a){try{let{done:b,value:d}=await f.next();if(b){h(),a.close();return}let e=d.byteLength;if(c){let a=g+=e;c(a)}a.enqueue(new Uint8Array(d))}catch(a){throw h(a),a}},cancel:a=>(h(a),f.return())},{highWaterMark:2})},cC=65536,{isFunction:cD}=aH,cE=(({Request:a,Response:b})=>({Request:a,Response:b}))(aH.global),{ReadableStream:cF,TextEncoder:cG}=aH.global,cH=(a,...b)=>{try{return!!a(...b)}catch(a){return!1}},cI=a=>{let b,{fetch:c,Request:d,Response:e}=a=aH.merge.call({skipUndefined:!0},cE,a),f=c?cD(c):"function"==typeof fetch,g=cD(d),h=cD(e);if(!f)return!1;let i=f&&cD(cF),j=f&&("function"==typeof cG?(b=new cG,a=>b.encode(a)):async a=>new Uint8Array(await new d(a).arrayBuffer())),k=g&&i&&cH(()=>{let a=!1,b=new d(bb.origin,{body:new cF,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!b}),l=h&&i&&cH(()=>aH.isReadableStream(new e("").body)),m={stream:l&&(a=>a.body)};f&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{m[a]||(m[a]=(b,c)=>{let d=b&&b[a];if(d)return d.call(b);throw new aJ(`Response type '${a}' is not supported`,aJ.ERR_NOT_SUPPORT,c)})})})();let n=async a=>{if(null==a)return 0;if(aH.isBlob(a))return a.size;if(aH.isSpecCompliantForm(a)){let b=new d(bb.origin,{method:"POST",body:a});return(await b.arrayBuffer()).byteLength}return aH.isArrayBufferView(a)||aH.isArrayBuffer(a)?a.byteLength:(aH.isURLSearchParams(a)&&(a+=""),aH.isString(a))?(await j(a)).byteLength:void 0},o=async(a,b)=>{let c=aH.toFiniteNumber(a.getContentLength());return null==c?n(b):c};return async a=>{let b,{url:f,method:h,data:i,signal:j,cancelToken:n,timeout:p,onDownloadProgress:q,onUploadProgress:r,responseType:s,headers:t,withCredentials:u="same-origin",fetchOptions:v}=cv(a),w=c||fetch;s=s?(s+"").toLowerCase():"text";let x=cx([j,n&&n.toAbortSignal()],p),y=null,z=x&&x.unsubscribe&&(()=>{x.unsubscribe()});try{if(r&&k&&"get"!==h&&"head"!==h&&0!==(b=await o(t,i))){let a,c=new d(f,{method:"POST",body:i,duplex:"half"});if(aH.isFormData(i)&&(a=c.headers.get("content-type"))&&t.setContentType(a),c.body){let[a,d]=b6(b,b5(b7(r)));i=cB(c.body,cC,a,d)}}aH.isString(u)||(u=u?"include":"omit");let c=g&&"credentials"in d.prototype,j={...v,signal:x,method:h.toUpperCase(),headers:t.normalize().toJSON(),body:i,duplex:"half",credentials:c?u:void 0};y=g&&new d(f,j);let n=await (g?w(y,v):w(f,j)),p=l&&("stream"===s||"response"===s);if(l&&(q||p&&z)){let a={};["status","statusText","headers"].forEach(b=>{a[b]=n[b]});let b=aH.toFiniteNumber(n.headers.get("content-length")),[c,d]=q&&b6(b,b5(b7(q),!0))||[];n=new e(cB(n.body,cC,c,()=>{d&&d(),z&&z()}),a)}s=s||"text";let A=await m[aH.findKey(m,s)||"text"](n,a);return!p&&z&&z(),await new Promise((b,c)=>{bz(b,c,{data:A,headers:bu.from(n.headers),status:n.status,statusText:n.statusText,config:a,request:y})})}catch(b){if(z&&z(),b&&"TypeError"===b.name&&/Load failed|fetch/i.test(b.message))throw Object.assign(new aJ("Network Error",aJ.ERR_NETWORK,a,y,b&&b.response),{cause:b.cause||b});throw aJ.from(b,b&&b.code,a,y,b&&b.response)}}},cJ=new Map,cK=a=>{let b=a&&a.env||{},{fetch:c,Request:d,Response:e}=b,f=[d,e,c],g=f.length,h,i,j=cJ;for(;g--;)h=f[g],void 0===(i=j.get(h))&&j.set(h,i=g?new Map:cI(b)),j=i;return i};cK();let cL={http:cq,xhr:cw,fetch:{get:cK}};aH.forEach(cL,(a,b)=>{if(a){try{Object.defineProperty(a,"name",{value:b})}catch(a){}Object.defineProperty(a,"adapterName",{value:b})}});let cM=a=>`- ${a}`,cN=a=>aH.isFunction(a)||null===a||!1===a,cO=function(a,b){let c,d,{length:e}=a=aH.isArray(a)?a:[a],f={};for(let g=0;g<e;g++){let e;if(d=c=a[g],!cN(c)&&void 0===(d=cL[(e=String(c)).toLowerCase()]))throw new aJ(`Unknown adapter '${e}'`);if(d&&(aH.isFunction(d)||(d=d.get(b))))break;f[e||"#"+g]=d}if(!d){let a=Object.entries(f).map(([a,b])=>`adapter ${a} `+(!1===b?"is not supported by the environment":"is not available in the build"));throw new aJ("There is no suitable adapter to dispatch the request "+(e?a.length>1?"since :\n"+a.map(cM).join("\n"):" "+cM(a[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return d};function cP(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new by(null,a)}function cQ(a){return cP(a),a.headers=bu.from(a.headers),a.data=bv.call(a,a.transformRequest),-1!==["post","put","patch"].indexOf(a.method)&&a.headers.setContentType("application/x-www-form-urlencoded",!1),cO(a.adapter||bi.adapter,a)(a).then(function(b){return cP(a),b.data=bv.call(a,a.transformResponse,b),b.headers=bu.from(b.headers),b},function(b){return!bw(b)&&(cP(a),b&&b.response&&(b.response.data=bv.call(a,a.transformResponse,b.response),b.response.headers=bu.from(b.response.headers))),Promise.reject(b)})}let cR={};["object","boolean","number","function","string","symbol"].forEach((a,b)=>{cR[a]=function(c){return typeof c===a||"a"+(b<1?"n ":" ")+a}});let cS={};cR.transitional=function(a,b,c){function d(a,b){return"[Axios v"+bK+"] Transitional option '"+a+"'"+b+(c?". "+c:"")}return(c,e,f)=>{if(!1===a)throw new aJ(d(e," has been removed"+(b?" in "+b:"")),aJ.ERR_DEPRECATED);return b&&!cS[e]&&(cS[e]=!0,console.warn(d(e," has been deprecated since v"+b+" and will be removed in the near future"))),!a||a(c,e,f)}},cR.spelling=function(a){return(b,c)=>(console.warn(`${c} is likely a misspelling of ${a}`),!0)};let cT=function(a,b,c){if("object"!=typeof a)throw new aJ("options must be an object",aJ.ERR_BAD_OPTION_VALUE);let d=Object.keys(a),e=d.length;for(;e-- >0;){let f=d[e],g=b[f];if(g){let b=a[f],c=void 0===b||g(b,f,a);if(!0!==c)throw new aJ("option "+f+" must be "+c,aJ.ERR_BAD_OPTION_VALUE);continue}if(!0!==c)throw new aJ("Unknown option "+f,aJ.ERR_BAD_OPTION)}},cU=cR;class cV{constructor(a){this.defaults=a||{},this.interceptors={request:new aY,response:new aY}}async request(a,b){try{return await this._request(a,b)}catch(a){if(a instanceof Error){let b={};Error.captureStackTrace?Error.captureStackTrace(b):b=Error();let c=b.stack?b.stack.replace(/^.+\n/,""):"";try{a.stack?c&&!String(a.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(a.stack+="\n"+c):a.stack=c}catch(a){}}throw a}}_request(a,b){let c,d;"string"==typeof a?(b=b||{}).url=a:b=a||{};let{transitional:e,paramsSerializer:f,headers:g}=b=cu(this.defaults,b);void 0!==e&&cT(e,{silentJSONParsing:cU.transitional(cU.boolean),forcedJSONParsing:cU.transitional(cU.boolean),clarifyTimeoutError:cU.transitional(cU.boolean),legacyInterceptorReqResOrdering:cU.transitional(cU.boolean)},!1),null!=f&&(aH.isFunction(f)?b.paramsSerializer={serialize:f}:cT(f,{encode:cU.function,serialize:cU.function},!0)),void 0!==b.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?b.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:b.allowAbsoluteUrls=!0),cT(b,{baseUrl:cU.spelling("baseURL"),withXsrfToken:cU.spelling("withXSRFToken")},!0),b.method=(b.method||this.defaults.method||"get").toLowerCase();let h=g&&aH.merge(g.common,g[b.method]);g&&aH.forEach(["delete","get","head","post","put","patch","common"],a=>{delete g[a]}),b.headers=bu.concat(h,g);let i=[],j=!0;this.interceptors.request.forEach(function(a){if("function"==typeof a.runWhen&&!1===a.runWhen(b))return;j=j&&a.synchronous;let c=b.transitional||aZ;c&&c.legacyInterceptorReqResOrdering?i.unshift(a.fulfilled,a.rejected):i.push(a.fulfilled,a.rejected)});let k=[];this.interceptors.response.forEach(function(a){k.push(a.fulfilled,a.rejected)});let l=0;if(!j){let a=[cQ.bind(this),void 0];for(a.unshift(...i),a.push(...k),d=a.length,c=Promise.resolve(b);l<d;)c=c.then(a[l++],a[l++]);return c}d=i.length;let m=b;for(;l<d;){let a=i[l++],b=i[l++];try{m=a(m)}catch(a){b.call(this,a);break}}try{c=cQ.call(this,m)}catch(a){return Promise.reject(a)}for(l=0,d=k.length;l<d;)c=c.then(k[l++],k[l++]);return c}getUri(a){return aW(bC((a=cu(this.defaults,a)).baseURL,a.url,a.allowAbsoluteUrls),a.params,a.paramsSerializer)}}aH.forEach(["delete","get","head","options"],function(a){cV.prototype[a]=function(b,c){return this.request(cu(c||{},{method:a,url:b,data:(c||{}).data}))}}),aH.forEach(["post","put","patch"],function(a){function b(b){return function(c,d,e){return this.request(cu(e||{},{method:a,headers:b?{"Content-Type":"multipart/form-data"}:{},url:c,data:d}))}}cV.prototype[a]=b(),cV.prototype[a+"Form"]=b(!0)});let cW=cV;class cX{constructor(a){let b;if("function"!=typeof a)throw TypeError("executor must be a function.");this.promise=new Promise(function(a){b=a});const c=this;this.promise.then(a=>{if(!c._listeners)return;let b=c._listeners.length;for(;b-- >0;)c._listeners[b](a);c._listeners=null}),this.promise.then=a=>{let b,d=new Promise(a=>{c.subscribe(a),b=a}).then(a);return d.cancel=function(){c.unsubscribe(b)},d},a(function(a,d,e){c.reason||(c.reason=new by(a,d,e),b(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){this.reason?a(this.reason):this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;let b=this._listeners.indexOf(a);-1!==b&&this._listeners.splice(b,1)}toAbortSignal(){let a=new AbortController,b=b=>{a.abort(b)};return this.subscribe(b),a.signal.unsubscribe=()=>this.unsubscribe(b),a.signal}static source(){let a;return{token:new cX(function(b){a=b}),cancel:a}}}let cY=cX;function cZ(a){return function(b){return a.apply(null,b)}}function c$(a){return aH.isObject(a)&&!0===a.isAxiosError}let c_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(c_).forEach(([a,b])=>{c_[b]=a});let c0=c_;function c1(a){let b=new cW(a),c=v(cW.prototype.request,b);return aH.extend(c,cW.prototype,b,{allOwnKeys:!0}),aH.extend(c,b,null,{allOwnKeys:!0}),c.create=function(b){return c1(cu(a,b))},c}let c2=c1(bi);c2.Axios=cW,c2.CanceledError=by,c2.CancelToken=cY,c2.isCancel=bw,c2.VERSION=bK,c2.toFormData=aQ,c2.AxiosError=aJ,c2.Cancel=c2.CanceledError,c2.all=function(a){return Promise.all(a)},c2.spread=cZ,c2.isAxiosError=c$,c2.mergeConfig=cu,c2.AxiosHeaders=bu,c2.formToJSON=a=>bf(aH.isHTMLForm(a)?new FormData(a):a),c2.getAdapter=cO,c2.HttpStatusCode=c0,c2.default=c2;let c3=c2,{Axios:c4,AxiosError:c5,CanceledError:c6,isCancel:c7,CancelToken:c8,VERSION:c9,all:da,Cancel:db,isAxiosError:dc,spread:dd,toFormData:de,AxiosHeaders:df,HttpStatusCode:dg,formToJSON:dh,getAdapter:di,mergeConfig:dj}=c3;var dk=c(72962),dl=c(91225),dm=c.n(dl),dn=c(19531),dp=c.n(dn),dq=c(29021),dr=c.n(dq),ds=c(46861),dt=c.n(ds),du=c(11723),dv=c.n(du);c(82146),c(13259),c(53455);var dw=c(80123);c(54351);let dx=dw;function dy(a,b){var c={};for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&0>b.indexOf(d)&&(c[d]=a[d]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols)for(var e=0,d=Object.getOwnPropertySymbols(a);e<d.length;e++)0>b.indexOf(d[e])&&Object.prototype.propertyIsEnumerable.call(a,d[e])&&(c[d[e]]=a[d[e]]);return c}function dz(a,b,c,d){function e(a){return a instanceof c?a:new c(function(b){b(a)})}return new(c||(c=Promise))(function(c,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){a.done?c(a.value):e(a.value).then(g,h)}i((d=d.apply(a,b||[])).next())})}function dA(a){var b="function"==typeof Symbol&&Symbol.iterator,c=b&&a[b],d=0;if(c)return c.call(a);if(a&&"number"==typeof a.length)return{next:function(){return a&&d>=a.length&&(a=void 0),{value:a&&a[d++],done:!a}}};throw TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")}function dB(a){return this instanceof dB?(this.v=a,this):new dB(a)}function dC(a,b,c){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var d,e=c.apply(a,b||[]),f=[];return d={},g("next"),g("throw"),g("return"),d[Symbol.asyncIterator]=function(){return this},d;function g(a){e[a]&&(d[a]=function(b){return new Promise(function(c,d){f.push([a,b,c,d])>1||h(a,b)})})}function h(a,b){try{i(e[a](b))}catch(a){l(f[0][3],a)}}function i(a){a.value instanceof dB?Promise.resolve(a.value.v).then(j,k):l(f[0][2],a)}function j(a){h("next",a)}function k(a){h("throw",a)}function l(a,b){a(b),f.shift(),f.length&&h(f[0][0],f[0][1])}}function dD(a){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var b,c=a[Symbol.asyncIterator];return c?c.call(a):(a=dA(a),b={},d("next"),d("throw"),d("return"),b[Symbol.asyncIterator]=function(){return this},b);function d(c){b[c]=a[c]&&function(b){return new Promise(function(d,f){e(d,f,(b=a[c](b)).done,b.value)})}}function e(a,b,c,d){Promise.resolve(d).then(function(b){a({value:b,done:c})},b)}}"function"==typeof SuppressedError&&SuppressedError;let dE=c3.create();dE.interceptors.request.use(a=>(a.headers&&(a.headers["User-Agent"]="oapi-node-sdk/1.0.0"),a),void 0,{synchronous:!0}),dE.interceptors.response.use(a=>a.config.$return_headers?{data:a.data,headers:a.headers}:a.data),function(a){a[a.SelfBuild=0]="SelfBuild",a[a.ISV=1]="ISV"}(l||(l={})),function(a){a[a.Feishu=0]="Feishu",a[a.Lark=1]="Lark"}(m||(m={})),function(a){a[a.fatal=0]="fatal",a[a.error=1]="error",a[a.warn=2]="warn",a[a.info=3]="info",a[a.debug=4]="debug",a[a.trace=5]="trace"}(n||(n={}));let dF=Symbol("event-type"),dG=Symbol("tenant-key"),dH=Symbol("app-ticket"),dI=Symbol("tenant-access-token"),dJ=Symbol("with-helpdesk-authorization"),dK=Symbol("with-user-access-token"),dL=Symbol("user-access-token"),dM=Symbol("aily-session-record"),dN=a=>Buffer.from(a).toString("base64");class dO{constructor(){this.values=new Map}getCacheKey(a,b){return b?`${b}/${a.toString()}`:a}get(a,b){return dz(this,void 0,void 0,function*(){let c=this.getCacheKey(a,null==b?void 0:b.namespace),d=this.values.get(c);if(d){let{value:a,expiredTime:b}=d;if(!b||b-new Date().getTime()>0)return a}})}set(a,b,c,d){return dz(this,void 0,void 0,function*(){let e=this.getCacheKey(a,null==d?void 0:d.namespace);return this.values.set(e,{value:b,expiredTime:c}),!0})}}let dP=new dO;class dQ{constructor(a){const b=a_().createHash("sha256");b.update(a),this.key=b.digest()}decrypt(a){let b=Buffer.from(a,"base64"),c=a_().createDecipheriv("aes-256-cbc",this.key,b.slice(0,16)),d=c.update(b.slice(16).toString("hex"),"hex","utf8");return d+c.final("utf8")}}let dR=a=>{switch(a){case m.Feishu:return"https://open.feishu.cn";case m.Lark:return"https://open.larksuite.com";default:return a}},dS=(a,b={})=>a.replace(/:([^/]+)/g,(a,c)=>{if(void 0!==b[c])return b[c];throw Error(`request miss ${c} path argument`)}),dT=(a,b)=>dz(void 0,void 0,void 0,function*(){("function"==typeof a?a():a)&&(yield b())}),dU=a=>a?a.replace(/^\//,""):"",dV=(a,b=[])=>{let c={};return a&&b.forEach(b=>{Object.prototype.hasOwnProperty.call(a,b)&&(c[b]=a[b])}),c},dW=a=>{var b;if(a instanceof c5){let{message:c,response:d,request:e,config:f}=dV(a,["message","response","request","config"]),g=[{message:c,config:dV(f,["data","url","params","method"]),request:dV(e,["protocol","host","path","method"]),response:dV(d,["data","status","statusText"])}],h=null==(b=null==a?void 0:a.response)?void 0:b.data;return h&&g.push(Object.assign(Object.assign({},h),h.error?h.error:{})),g}return[a]};class dX{constructor(){this.acs={accessRecordAccessPhoto:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/access_records/:access_record_id/access_photo`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},accessRecord:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/access_records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/access_records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},device:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/devices`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ruleExternal:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/rule_external`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/rule_external`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deviceBind:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/rule_external`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userFace:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,f),method:"PUT",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},user:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users/:user_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users/:user_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},visitor:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/visitors`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{accessRecordAccessPhoto:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/access_records/:access_record_id/access_photo`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},accessRecord:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/access_records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/access_records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},device:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/devices`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ruleExternal:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/rule_external`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/rule_external`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deviceBind:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/rule_external`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userFace:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,f),method:"PUT",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},user:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users/:user_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/users/:user_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},visitor:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/visitors`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class dY extends dX{constructor(){super(...arguments),this.admin={adminDeptStat:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/admin_dept_stats`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},adminUserStat:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/admin_user_stats`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},auditInfo:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/audit_infos`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/audit_infos`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},badge:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},badgeGrant:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},badgeImage:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badge_images`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},password:{reset:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/password/reset`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{adminDeptStat:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/admin_dept_stats`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},adminUserStat:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/admin_user_stats`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},auditInfo:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/audit_infos`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/audit_infos`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},badge:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},badgeGrant:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},badgeImage:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/badge_images`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},password:{reset:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/admin/v1/password/reset`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class dZ extends dY{constructor(){super(...arguments),this.aily={v1:{ailySessionAilyMessage:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages/:aily_message_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ailySession:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ailySessionRun:{cancel:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id/cancel`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appDataAsset:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets/:data_asset_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets/:data_asset_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uploadFile:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets/upload_file`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},appDataAssetTag:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_asset_tags`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_asset_tags`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appKnowledge:{ask:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/knowledges/ask`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appSkill:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills/:skill_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),start:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills/:skill_id/start`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d$ extends dZ{constructor(){super(...arguments),this.apaas={v1:{app:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/apps`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/apps`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationAuditLog:{auditLogList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/audit_log/audit_log_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),dataChangeLogDetail:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/audit_log/data_change_log_detail`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),dataChangeLogsList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/audit_log/data_change_logs_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/audit_log`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationEnvironmentVariable:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/environment_variables/:environment_variable_api_name`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/environment_variables/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationFlow:{execute:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/flows/:flow_id/execute`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationFunction:{invoke:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/functions/:function_api_name/invoke`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationObject:{oqlQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/oql_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationObjectRecord:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/:id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/:id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/:id/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationRecordPermissionMember:{batchCreateAuthorization:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/record_permissions/:record_permission_api_name/member/batch_create_authorization`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchRemoveAuthorization:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/record_permissions/:record_permission_api_name/member/batch_remove_authorization`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationRoleMember:{batchCreateAuthorization:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/roles/:role_api_name/member/batch_create_authorization`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchRemoveAuthorization:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/roles/:role_api_name/member/batch_remove_authorization`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/applications/:namespace/roles/:role_api_name/member`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},approvalInstance:{cancel:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/approval_instances/:approval_instance_id/cancel`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},approvalTask:{addAssignee:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/approval_tasks/:approval_task_id/add_assignee`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),agree:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/approval_tasks/:approval_task_id/agree`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reject:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/approval_tasks/:approval_task_id/reject`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transfer:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/approval_tasks/:approval_task_id/transfer`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},seatActivity:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/seat_activities`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/seat_activities`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},seatAssignment:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/seat_assignments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/seat_assignments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userTask:{cc:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/cc`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),chatGroup:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/chat_group`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),expediting:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/expediting`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/user_task/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),rollback:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/rollback`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),rollbackPoints:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/rollback_points`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workspace:{sqlCommands:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/sql_commands`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workspaceTable:{recordsBatchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records_batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),recordsDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),recordsGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),recordsPatch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),recordsPost:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workspaceView:{viewsGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/views/:view_name/records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d_ extends d${constructor(){super(...arguments),this.application={appBadge:{set:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/app_badge/set`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appRecommendRule:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/app_recommend_rules`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/app_recommend_rules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationAppUsage:{departmentOverview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),messagePushOverview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/message_push_overview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),overview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationAppVersion:{contactsRangeSuggest:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id/contacts_range_suggest`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationCollaborators:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationContactsRange:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},application:{contactsRangeConfiguration:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range_configuration`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),underauditlistWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/underauditlist`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),underauditlist:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/underauditlist`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationFeedback:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks/:feedback_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationManagement:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/management`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationOwner:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/owner`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationVisibility:{checkWhiteBlackList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility/check_white_black_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},scope:{apply:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/scopes/apply`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/scopes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v6:{appBadge:{set:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/app_badge/set`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appRecommendRule:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/app_recommend_rules`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/app_recommend_rules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationAppUsage:{departmentOverview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),messagePushOverview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/message_push_overview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),overview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationAppVersion:{contactsRangeSuggest:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id/contacts_range_suggest`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationCollaborators:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationContactsRange:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},application:{contactsRangeConfiguration:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range_configuration`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),underauditlistWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/underauditlist`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),underauditlist:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/underauditlist`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationFeedback:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks/:feedback_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationManagement:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/management`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationOwner:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/owner`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationVisibility:{checkWhiteBlackList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility/check_white_black_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},scope:{apply:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/scopes/apply`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/application/v6/scopes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d0 extends d_{constructor(){super(...arguments),this.approval={approval:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/approvals`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/approvals/:approval_code`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/unsubscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalApproval:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_approvals`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalInstance:{check:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_instances/check`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_instances`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalTask:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},instance:{addSign:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/add_sign`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),cancel:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/cancel`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),cc:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/cc`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),preview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/preview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchCc:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/search_cc`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),specifiedRollback:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/specified_rollback`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},instanceComment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/:comment_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),remove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},task:{approve:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/approve`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/query`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reject:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/reject`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),resubmit:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/resubmit`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transfer:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/transfer`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v4:{approval:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/approvals`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/approvals/:approval_code`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/unsubscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalApproval:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_approvals`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalInstance:{check:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_instances/check`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_instances`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalTask:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/external_tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},instance:{addSign:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/add_sign`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),cancel:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/cancel`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),cc:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/cc`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),preview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/preview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchCc:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/search_cc`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),specifiedRollback:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/specified_rollback`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},instanceComment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/:comment_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),remove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},task:{approve:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/approve`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/query`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reject:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/reject`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),resubmit:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/resubmit`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transfer:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/approval/v4/tasks/transfer`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d1 extends d0{constructor(){super(...arguments),this.attendance={approvalInfo:{process:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/approval_infos/process`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},archiveRule:{delReport:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule/del_report`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uploadReport:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule/upload_report`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),userStatsFieldsQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule/user_stats_fields_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/files/:file_id/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/files/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},group:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listUser:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},leaveAccrualRecord:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/leave_accrual_record/:leave_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},leaveEmployExpireRecord:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/leave_employ_expire_records/:leave_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},shift:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userApproval:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_approvals`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_approvals/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userDailyShift:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchCreateTemp:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userFlow:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_flows/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDel:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_flows/batch_del`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_flows/:user_flow_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_flows/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userSetting:{modify:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_settings/modify`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_settings/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userStatsData:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_stats_datas/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userStatsField:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_stats_fields/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userStatsView:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_stats_views/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_stats_views/:user_stats_view_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userTask:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_tasks/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userTaskRemedy:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_task_remedys`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryUserAllowedRemedys:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query_user_allowed_remedys`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{approvalInfo:{process:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/approval_infos/process`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},archiveRule:{delReport:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule/del_report`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uploadReport:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule/upload_report`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),userStatsFieldsQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/archive_rule/user_stats_fields_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/files/:file_id/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/files/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},group:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listUser:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/groups/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},leaveAccrualRecord:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/leave_accrual_record/:leave_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},leaveEmployExpireRecord:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/leave_employ_expire_records/:leave_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},shift:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/shifts/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userApproval:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_approvals`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_approvals/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userDailyShift:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchCreateTemp:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userFlow:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_flows/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDel:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_flows/batch_del`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_flows/:user_flow_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_flows/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userSetting:{modify:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_settings/modify`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_settings/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userStatsData:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_stats_datas/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userStatsField:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_stats_fields/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userStatsView:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_stats_views/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_stats_views/:user_stats_view_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userTask:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_tasks/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userTaskRemedy:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_task_remedys`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryUserAllowedRemedys:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query_user_allowed_remedys`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d2 extends d1{constructor(){super(...arguments),this.auth={appAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/app_access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),internal:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/app_access_token/internal`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTicket:{resend:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/app_ticket/resend`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},tenantAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/tenant_access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),internal:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/tenant_access_token/internal`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v3:{appAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/app_access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),internal:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/app_access_token/internal`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTicket:{resend:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/app_ticket/resend`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},tenantAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/tenant_access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),internal:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/auth/v3/tenant_access_token/internal`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d3 extends d2{constructor(){super(...arguments),this.authen={accessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},oidcAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/oidc/access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},oidcRefreshAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/oidc/refresh_access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},refreshAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/refresh_access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userInfo:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/user_info`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{accessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},oidcAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/oidc/access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},oidcRefreshAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/oidc/refresh_access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},refreshAccessToken:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/refresh_access_token`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userInfo:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/authen/v1/user_info`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d4 extends d3{constructor(){super(...arguments),this.aweme_ecosystem={}}}class d5 extends d4{constructor(){super(...arguments),this.baike={classification:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/classifications`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/classifications`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},draft:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/drafts`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/drafts/:draft_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},entity:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),extract:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/extract`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),highlight:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/highlight`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),match:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/match`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/files/:file_token/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/files/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},v1:{classification:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/classifications`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/classifications`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},draft:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/drafts`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/drafts/:draft_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},entity:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),extract:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/extract`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),highlight:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/highlight`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),match:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/match`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/files/:file_token/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/baike/v1/files/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})}}}}}class d6 extends d5{constructor(){super(...arguments),this.base={v2:{appRole:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/base/v2/apps/:app_token/roles`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/base/v2/apps/:app_token/roles`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/base/v2/apps/:app_token/roles`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/base/v2/apps/:app_token/roles/:role_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d7 extends d6{constructor(){super(...arguments),this.bitable={app:{copy:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/copy`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appDashboard:{copy:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards/:block_id/copy`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appRole:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appRoleMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTable:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableField:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableFormField:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableForm:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableRecord:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableView:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appWorkflow:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{app:{copy:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/copy`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appDashboard:{copy:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards/:block_id/copy`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appRole:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appRoleMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTable:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableField:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableFormField:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableForm:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableRecord:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appTableView:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appWorkflow:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d8 extends d7{constructor(){super(...arguments),this.block={entity:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/block/v2/entities`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/block/v2/entities/:block_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},message:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/block/v2/message`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v2:{entity:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/block/v2/entities`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/block/v2/entities/:block_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},message:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/block/v2/message`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class d9 extends d8{constructor(){super(...arguments),this.board={v1:{whiteboard:{downloadAsImage:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/download_as_image`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),theme:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/theme`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateTheme:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/update_theme`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},whiteboardNode:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/nodes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createPlantuml:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/nodes/plantuml`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/nodes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ea extends d9{constructor(){super(...arguments),this.calendar={calendarAcl:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/:acl_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/subscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/unsubscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendar:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mget:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/mget`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),primary:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/primary`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),primarys:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/primarys`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/subscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/unsubscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/unsubscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEventAttendee:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEventAttendeeChatMember:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEvent:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),instanceView:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),instances:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reply:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/subscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/unsubscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEventMeetingChat:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEventMeetingMinute:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_minute`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},exchangeBinding:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/exchange_bindings`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},freebusy:{batch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/freebusy/batch`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/freebusy/list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},setting:{generateCaldavConf:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/settings/generate_caldav_conf`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},timeoffEvent:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/timeoff_events`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/timeoff_events/:timeoff_event_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v4:{calendarAcl:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/:acl_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/subscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/unsubscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendar:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mget:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/mget`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),primary:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/primary`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),primarys:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/primarys`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/subscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/unsubscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/unsubscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEventAttendee:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEventAttendeeChatMember:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEvent:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),instanceView:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),instances:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reply:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/subscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/unsubscription`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEventMeetingChat:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},calendarEventMeetingMinute:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_minute`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},exchangeBinding:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/exchange_bindings`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},freebusy:{batch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/freebusy/batch`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/freebusy/list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},setting:{generateCaldavConf:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/settings/generate_caldav_conf`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},timeoffEvent:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/timeoff_events`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/calendar/v4/timeoff_events/:timeoff_event_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eb extends ea{constructor(){super(...arguments),this.cardkit={v1:{card:{batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/batch_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),idConvert:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards/id_convert`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),settings:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/settings`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards/:card_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},cardElement:{content:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id/content`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ec extends eb{constructor(){super(...arguments),this.comment_sdk={}}}class ed extends ec{constructor(){super(...arguments),this.compensation={v1:{archive:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/archives`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/archives/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},changeReason:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/change_reasons`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/change_reasons`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},indicator:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/indicators`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/indicators`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},item:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/items`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/items`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},itemCategory:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/item_categories`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/item_categories`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},lumpSumPayment:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchRemove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryDetailWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryDetail:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},plan:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/plans`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/plans`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},recurringPayment:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/recurring_payment/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchRemove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/recurring_payment/batch_remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/recurring_payment/batch_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/recurring_payment/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/recurring_payment/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},socialArchive:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/social_archive/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},socialArchiveAdjustRecord:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/social_archive_adjust_record/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},socialInsurance:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/social_insurances`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},socialPlan:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/social_plans`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/social_plans`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/compensation/v1/social_plans/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ee extends ed{constructor(){super(...arguments),this.contact={customAttr:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/custom_attrs`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/custom_attrs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},department:{batch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/batch`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),childrenWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),children:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),parentWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/parent`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),parent:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/parent`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unbindDepartmentChat:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/unbind_department_chat`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateDepartmentId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id/update_department_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employeeTypeEnum:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},functionalRole:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},functionalRoleMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_delete`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/:member_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),scopes:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/scopes`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},group:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),memberBelong:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/member_belong`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),simplelistWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/simplelist`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),simplelist:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/simplelist`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},groupMember:{add:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/add`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchAdd:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_add`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchRemove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),remove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),simplelist:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/simplelist`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobFamily:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobLevel:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobTitle:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_titles`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_titles`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},scope:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/scopes`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/scopes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},unit:{bindDepartment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/bind_department`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listDepartment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/list_department`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unbindDepartment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/unbind_department`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},user:{batch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/batch`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchGetId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/batch_get_id`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),findByDepartmentWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/find_by_department`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),findByDepartment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/find_by_department`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),resurrect:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id/resurrect`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateUserId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workCity:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/work_cities`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/work_cities`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v3:{customAttr:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/custom_attrs`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/custom_attrs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},department:{batch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/batch`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),childrenWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),children:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),parentWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/parent`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),parent:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/parent`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unbindDepartmentChat:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/unbind_department_chat`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateDepartmentId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/departments/:department_id/update_department_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employeeTypeEnum:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},functionalRole:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},functionalRoleMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_delete`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/:member_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),scopes:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/scopes`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},group:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),memberBelong:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/member_belong`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),simplelistWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/simplelist`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),simplelist:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/simplelist`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},groupMember:{add:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/add`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchAdd:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_add`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchRemove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),remove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),simplelist:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/group/:group_id/member/simplelist`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobFamily:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobLevel:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobTitle:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_titles`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/job_titles`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},scope:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/scopes`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/scopes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},unit:{bindDepartment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/bind_department`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listDepartment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/list_department`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unbindDepartment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/unit/unbind_department`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},user:{batch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/batch`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchGetId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/batch_get_id`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),findByDepartmentWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/find_by_department`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),findByDepartment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/find_by_department`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),resurrect:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id/resurrect`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateUserId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workCity:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/work_cities`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/contact/v3/work_cities`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ef extends ee{constructor(){super(...arguments),this.content_check={}}}class eg extends ef{constructor(){super(...arguments),this.contract={}}}class eh extends eg{constructor(){super(...arguments),this.corehr={assignedUser:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/assigned_users/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},authorization:{addRoleAssign:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/add_role_assign`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getByParam:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeRoleAssign:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/remove_role_assign`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateRoleAssign:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/update_role_assign`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},commonDataId:{convert:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},commonDataMetaData:{addEnumOption:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/add_enum_option`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),editEnumOption:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/edit_enum_option`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},company:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},compensationStandard:{match:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/compensation_standards/match`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},contract:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},countryRegion:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/country_regions/:country_region_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/country_regions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},currency:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/currencies/:currency_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/currencies`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},customField:{getByParam:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/custom_fields/get_by_param`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listObjectApiName:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/custom_fields/list_object_api_name`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/custom_fields/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},department:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employeeType:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/files/:id`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},job:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobChange:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_changes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobData:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobFamily:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobLevel:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},leave:{calendarByScope:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),leaveBalances:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/leave_balances`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),leaveRequestHistory:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),leaveTypes:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/leave_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),workCalendar:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),workCalendarDate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar_date`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},leaveGrantingRecord:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leave_granting_records`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leave_granting_records/:leave_granting_record_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},location:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/locations`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/locations`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},nationalIdType:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offboarding:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/offboardings/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/offboardings/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/offboardings/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),submit:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/offboardings/submit`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},person:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},preHire:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/pre_hires`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},processFormVariableData:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/processes/:process_id/form_variable_data`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},securityGroup:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/security_groups`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/security_groups/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},subdivision:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/subdivisions/:subdivision_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/subdivisions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},subregion:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/subregions/:subregion_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/subregions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},transferReason:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/transfer_reasons/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},transferType:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/transfer_types/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workingHoursType:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{assignedUser:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/assigned_users/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},authorization:{addRoleAssign:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/add_role_assign`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getByParam:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeRoleAssign:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/remove_role_assign`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateRoleAssign:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/authorizations/update_role_assign`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},commonDataId:{convert:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},commonDataMetaData:{addEnumOption:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/add_enum_option`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),editEnumOption:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/edit_enum_option`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},company:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},compensationStandard:{match:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/compensation_standards/match`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},contract:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},countryRegion:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/country_regions/:country_region_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/country_regions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},currency:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/currencies/:currency_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/currencies`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},customField:{getByParam:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/custom_fields/get_by_param`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listObjectApiName:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/custom_fields/list_object_api_name`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/custom_fields/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},department:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employeeType:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/files/:id`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},job:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobChange:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_changes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobData:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobFamily:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobLevel:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},leave:{calendarByScope:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),leaveBalances:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/leave_balances`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),leaveRequestHistory:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),leaveTypes:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/leave_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),workCalendar:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),workCalendarDate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar_date`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},leaveGrantingRecord:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leave_granting_records`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/leave_granting_records/:leave_granting_record_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},location:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/locations`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/locations`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},nationalIdType:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offboarding:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/offboardings/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/offboardings/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/offboardings/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),submit:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/offboardings/submit`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},person:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/persons/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},preHire:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/pre_hires`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},processFormVariableData:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/processes/:process_id/form_variable_data`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},securityGroup:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/security_groups`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/security_groups/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},subdivision:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/subdivisions/:subdivision_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/subdivisions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},subregion:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/subregions/:subregion_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/subregions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},transferReason:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/transfer_reasons/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},transferType:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/transfer_types/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workingHoursType:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}},v2:{approvalGroups:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/approval_groups/:process_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),openQueryDepartmentChangeListByIds:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_department_change_list_by_ids`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),openQueryJobChangeListByIds:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_job_change_list_by_ids`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),openQueryPositionChangeListByIds:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_position_change_list_by_ids`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},approver:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/approvers`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/approvers`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoBank:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoBankBranch:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoCity:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoCountryRegion:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoCountryRegionSubdivision:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoCurrency:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoDistrict:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoLanguage:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/languages/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/languages/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoNationality:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},basicInfoTimeZone:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/time_zones/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/basic_info/time_zones/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},bp:{getByDepartment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/bps/get_by_department`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/bps`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/bps`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},company:{active:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/companies/active`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/companies/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/companies/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/companies/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},contract:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/contracts/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/contracts/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},costAllocation:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_allocations/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createVersion:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_allocations/create_version`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeVersion:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_allocations/remove_version`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateVersion:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_allocations/update_version`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},costCenter:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_centers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_centers/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},costCenterVersion:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},customOrg:{active:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/custom_orgs/active`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/custom_orgs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deleteOrg:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/custom_orgs/delete_org`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/custom_orgs/:org_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/custom_orgs/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/custom_orgs/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/custom_orgs/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateRule:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/custom_orgs/update_rule`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},defaultCostCenter:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/default_cost_centers/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createVersion:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/default_cost_centers/create_version`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeVersion:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/default_cost_centers/remove_version`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateVersion:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/default_cost_centers/update_version`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},department:{batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/:department_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),parents:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/parents`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/:department_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryMultiTimeline:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/query_multi_timeline`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryOperationLogsWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryOperationLogs:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryTimeline:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/query_timeline`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),tree:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/departments/tree`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},draft:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/drafts/:draft_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employee:{batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employeesAdditionalJob:{batchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs/batch`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),batch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs/batch`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs/:additional_job_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs/:additional_job_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employeesBp:{batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/bps/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employeesInternationalAssignment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/international_assignments/:international_assignment_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/international_assignments/:international_assignment_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employeesJobData:{batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/job_datas/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/employees/job_datas/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},enum:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/enums/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},job:{batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/jobs/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/jobs/:job_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/jobs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryMultiTimeline:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/jobs/query_multi_timeline`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/jobs/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/jobs/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobChange:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_changes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),revoke:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_changes/:job_change_id/revoke`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_changes/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_changes/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobFamily:{batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_families/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryMultiTimeline:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_families/query_multi_timeline`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobGrade:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_grades`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_grades/:job_grade_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_grades/:job_grade_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_grades/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobLevel:{batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_levels/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},location:{active:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/locations/active`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/locations/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/locations/:location_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},locationAddress:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/locations/:location_id/addresses`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/locations/:location_id/addresses/:address_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/locations/:location_id/addresses/:address_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offboarding:{edit:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/offboardings/edit`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),revoke:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/offboardings/revoke`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),submitV2:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/offboardings/submit_v2`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},pathway:{active:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pathways/active`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pathways/batch_get`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pathways`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},person:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/persons`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/persons/:person_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},position:{active:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/positions/active`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/positions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delPosition:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/positions/del_position`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/positions/:position_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/positions/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryRecentChangeWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/positions/query_recent_change`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),queryRecentChange:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/positions/query_recent_change`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},preHire:{complete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id/complete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),restoreFlowInstance:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/restore_flow_instance`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transformOnboardingTask:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/transform_onboarding_task`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transitTask:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id/transit_task`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),withdrawOnboarding:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/pre_hires/withdraw_onboarding`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},probationAssessment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/probation/assessments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},probation:{enableDisableAssessment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/probation/enable_disable_assessment`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/probation/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/probation/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),submit:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/probation/submit`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),withdraw:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/probation/withdraw`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},processApprover:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/processes/:process_id/approvers/:approver_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},processExtra:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/processes/:process_id/extra`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},process:{flowVariableData:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/processes/:process_id/flow_variable_data`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/processes/:process_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/processes`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/processes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},processFormVariableData:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/processes/:process_id/form_variable_data`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},processTransfer:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/processes/:process_id/transfer`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},processRevoke:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/process_revoke/:process_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},processWithdraw:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/process_withdraw/:process_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reportDetailRow:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchDelete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchSave:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchSave`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},signatureFile:{download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_files/:signature_file_id/download`,f),method:"POST",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_files`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_files`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listByBizId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_files/list_by_biz_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_files/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_files/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),terminate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_files/terminate`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},signatureNode:{listByFileId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_nodes/list_by_file_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},signatureTemplate:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_templates/search`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},signatureTemplateInfoWithThumbnail:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_template_info_with_thumbnails`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/signature_template_info_with_thumbnails`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workforcePlan:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/workforce_plans`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/workforce_plans`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workforcePlanDetail:{batch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/workforce_plan_details/batch`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchV2:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/workforce_plan_details/batch_v2`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workforcePlanDetailRow:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchDelete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchSave:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchSave`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ei extends eh{constructor(){super(...arguments),this.directory={v1:{collaborationRule:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/collaboration_rules`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/collaboration_rules/:collaboration_rule_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/collaboration_rules`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/collaboration_rules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/collaboration_rules/:collaboration_rule_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},collaborationTenant:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/collaboration_tenants`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/collaboration_tenants`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},collborationShareEntity:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/share_entities`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/share_entities`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},department:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/departments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/departments/:department_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),filter:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/departments/filter`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),idconvert:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/departments/idconvert`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mget:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/departments/mget`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/departments/:department_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/departments/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employee:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees/:employee_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),filter:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees/filter`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),idconvert:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees/idconvert`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mget:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees/mget`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees/:employee_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),regular:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees/:employee_id/regular`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),resurrect:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees/:employee_id/resurrect`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),toBeResigned:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/directory/v1/employees/:employee_id/to_be_resigned`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ej extends ei{constructor(){super(...arguments),this.docs_tool={}}}class ek extends ej{constructor(){super(...arguments),this.docs={v1:{content:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docs/v1/content`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class el extends ek{constructor(){super(...arguments),this.document_ai={v1:{bankCard:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/bank_card/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},businessCard:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/business_card/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},businessLicense:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/business_license/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},chinesePassport:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/chinese_passport/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},contract:{fieldExtraction:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/contract/field_extraction`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},drivingLicense:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/driving_license/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},foodManageLicense:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/food_manage_license/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},foodProduceLicense:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/food_produce_license/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},healthCertificate:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/health_certificate/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},hkmMainlandTravelPermit:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/hkm_mainland_travel_permit/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},idCard:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/id_card/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},resume:{parse:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/resume/parse`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},taxiInvoice:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/taxi_invoice/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},trainInvoice:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/train_invoice/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},twMainlandTravelPermit:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/tw_mainland_travel_permit/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},vatInvoice:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/vat_invoice/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},vehicleInvoice:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/vehicle_invoice/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},vehicleLicense:{recognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/document_ai/v1/vehicle_license/recognize`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})}}}}}class em extends el{constructor(){super(...arguments),this.docx={chatAnnouncementBlock:{batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatAnnouncementBlockChildren:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatAnnouncement:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},documentBlock:{batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},documentBlockChildren:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},documentBlockDescendant:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/descendant`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},document:{convert:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/blocks/convert`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),rawContent:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/raw_content`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{chatAnnouncementBlock:{batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatAnnouncementBlockChildren:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatAnnouncement:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},documentBlock:{batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},documentBlockChildren:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},documentBlockDescendant:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/descendant`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},document:{convert:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/blocks/convert`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),rawContent:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/docx/v1/documents/:document_id/raw_content`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class en extends em{constructor(){super(...arguments),this.drive={exportTask:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/export_tasks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/export_tasks/file/:file_token/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/export_tasks/:ticket`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileComment:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileCommentReply:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{copy:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/copy`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createFolder:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/create_folder`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createShortcut:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/create_shortcut`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deleteSubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),getSubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),move:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/move`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),taskCheck:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/task_check`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uploadAll:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/upload_all`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),uploadFinish:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/upload_finish`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uploadPart:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/upload_part`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),uploadPrepare:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/upload_prepare`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileStatistics:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/statistics`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileSubscription:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileVersion:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileViewRecord:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},importTask:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/import_tasks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/import_tasks/:ticket`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},media:{batchGetTmpDownloadUrl:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/batch_get_tmp_download_url`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/:file_token/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),uploadAll:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/upload_all`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),uploadFinish:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/upload_finish`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uploadPart:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/upload_part`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),uploadPrepare:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/upload_prepare`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},meta:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/metas/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},permissionMember:{auth:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/auth`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transferOwner:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/transfer_owner`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},permissionPublic:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},permissionPublicPassword:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{exportTask:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/export_tasks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/export_tasks/file/:file_token/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/export_tasks/:ticket`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileComment:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileCommentReply:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{copy:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/copy`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createFolder:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/create_folder`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createShortcut:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/create_shortcut`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deleteSubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),getSubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),move:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/move`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),taskCheck:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/task_check`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uploadAll:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/upload_all`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),uploadFinish:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/upload_finish`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uploadPart:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/upload_part`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),uploadPrepare:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/upload_prepare`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileStatistics:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/statistics`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileSubscription:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileVersion:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},fileViewRecord:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},importTask:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/import_tasks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/import_tasks/:ticket`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},media:{batchGetTmpDownloadUrl:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/batch_get_tmp_download_url`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/:file_token/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),uploadAll:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/upload_all`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),uploadFinish:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/upload_finish`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uploadPart:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/upload_part`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),uploadPrepare:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/medias/upload_prepare`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},meta:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/metas/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},permissionMember:{auth:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/auth`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transferOwner:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/transfer_owner`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},permissionPublic:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},permissionPublicPassword:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}},v2:{fileLike:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},permissionPublic:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v2/permissions/:token/public`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/drive/v2/permissions/:token/public`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eo extends en{constructor(){super(...arguments),this.edu={}}}class ep extends eo{constructor(){super(...arguments),this.ehr={attachment:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/ehr/v1/attachments/:token`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},employee:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/ehr/v1/employees`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/ehr/v1/employees`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{attachment:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/ehr/v1/attachments/:token`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},employee:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/ehr/v1/employees`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/ehr/v1/employees`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eq extends ep{constructor(){super(...arguments),this.elearning={}}}class er extends eq{constructor(){super(...arguments),this.event={outboundIp:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/event/v1/outbound_ip`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/event/v1/outbound_ip`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{outboundIp:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/event/v1/outbound_ip`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/event/v1/outbound_ip`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class es extends er{constructor(){super(...arguments),this.exam={}}}class et extends es{constructor(){super(...arguments),this.face_detection={}}}class eu extends et{constructor(){super(...arguments),this.feelgood={}}}class ev extends eu{constructor(){super(...arguments),this.helpdesk={agent:{agentEmail:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_emails`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agentSchedules:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agentSchedule:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agentSkill:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agentSkillRule:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skill_rules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},botMessage:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/message`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},category:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},event:{subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/events/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/events/unsubscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},faq:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),faqImage:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/:id/image/:image_key`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},notification:{cancelApprove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_approve`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),cancelSend:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_send`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),executeSend:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/execute_send`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),preview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/preview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),submitApprove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/submit_approve`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ticket:{answerUserQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/answer_user_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),customizedFields:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/customized_fields`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),startService:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/start_service`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),ticketImage:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_images`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ticketMessage:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ticketCustomizedField:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{agent:{agentEmail:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_emails`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agentSchedules:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agentSchedule:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agentSkill:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agentSkillRule:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/agent_skill_rules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},botMessage:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/message`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},category:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},event:{subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/events/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/events/unsubscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},faq:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),faqImage:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/:id/image/:image_key`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},notification:{cancelApprove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_approve`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),cancelSend:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_send`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),executeSend:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/execute_send`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),preview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/preview`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),submitApprove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/submit_approve`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ticket:{answerUserQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/answer_user_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),customizedFields:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/customized_fields`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),startService:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/start_service`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),ticketImage:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_images`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ticketMessage:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ticketCustomizedField:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ew extends ev{constructor(){super(...arguments),this.hire={advertisement:{publish:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/advertisements/:advertisement_id/publish`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agency:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/:agency_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getAgencyAccount:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),operateAgencyAccount:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),protect:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/protect`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),protectSearch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/protection_period/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},application:{cancelOnboard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/cancel_onboard`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getDetail:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),offer:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/offer`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),recover:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/recover`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),terminate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/terminate`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transferOnboard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_onboard`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transferStage:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_stage`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationInterview:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},attachment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/attachments`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),preview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id/preview`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},backgroundCheckOrder:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/background_check_orders/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/background_check_orders`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},diversityInclusion:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/diversity_inclusions/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoAccountCustomField:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoBackgroundCheck:{cancel:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_checks/cancel`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateProgress:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_progress`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateResult:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_result`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoBackgroundCheckCustomField:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoBackgroundCheckPackage:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_packages`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoExam:{loginInfo:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/login_info`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateResult:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/update_result`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoExamPaper:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exam_papers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ehrImportTask:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/ehr_import_tasks/:ehr_import_task_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employee:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getByApplication:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/employees/get_by_application`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},evaluation:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/evaluations`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/evaluations`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},evaluationTask:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},exam:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/exams`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},examMarkingTask:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalApplication:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalBackgroundCheck:{batchQueryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalInterview:{batchQueryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalInterviewAssessment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interview_assessments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalOffer:{batchQueryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalReferralReward:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_referral_rewards`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interview:{getByTalent:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviews`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewFeedbackForm:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewRecordAttachment:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_records/attachments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewRecord:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewRegistrationSchema:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewRoundType:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_round_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewTask:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewer:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviewers`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviewers`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},job:{close:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/close`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),combinedCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/combined_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),combinedUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/combined_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),config:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getDetail:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),open:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/open`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),recruiter:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateConfig:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobManager:{batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/batch_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/:manager_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobFunction:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_functions`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_functions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobProcess:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_processes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobPublishRecord:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_publish_records/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobRequirement:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listById:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobRequirementSchema:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirement_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobSchema:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobType:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_types`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},location:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/locations`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/locations`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/locations/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},minutes:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/minutes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},note:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes/:note_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes/:note_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes/:note_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offer:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),internOfferStatus:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers/:offer_id/intern_offer_status`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),offerStatus:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers/:offer_id/offer_status`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offerApplicationForm:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_application_forms/:offer_application_form_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_application_forms`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offerApprovalTemplate:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_approval_templates`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offerCustomField:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_custom_fields/:offer_custom_field_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offerSchema:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_schemas/:offer_schema_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},portalApplySchema:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},questionnaire:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/questionnaires`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},referral:{getByApplication:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referrals/get_by_application`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referrals/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},referralAccount:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deactivate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/deactivate`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),enable:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/enable`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getAccountAssets:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reconciliation:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/reconciliation`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),withdraw:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/withdraw`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},referralWebsiteJobPost:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},registrationSchema:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/registration_schemas`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/registration_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},resumeSource:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/resume_sources`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/resume_sources`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},role:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/roles/:role_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/roles`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/roles`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},subject:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/subjects`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talent:{addToFolder:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/add_to_folder`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchGetId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/batch_get_id`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),combinedCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/combined_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),combinedUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/combined_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),onboardStatus:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id/onboard_status`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeToFolder:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),tag:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id/tag`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentExternalInfo:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentBlocklist:{changeTalentBlock:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentFolder:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_folders`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_folders`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentObject:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_objects/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentOperationLog:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_operation_logs/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentPool:{batchChangeTalentPool:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),moveTalent:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/talent_relationship`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_pools/`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_pools/`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentTag:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_tags`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_tags`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},terminationReason:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/termination_reasons`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/termination_reasons`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},test:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tests/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tests/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},todo:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/todos`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/todos`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},tripartiteAgreement:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userRole:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/user_roles`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/user_roles`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteChannel:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteDelivery:{createByAttachment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_attachment`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createByResume:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_resume`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteDeliveryTask:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/delivery_tasks/:delivery_task_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteJobPost:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/:job_post_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},website:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteSiteUser:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/site_users`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{advertisement:{publish:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/advertisements/:advertisement_id/publish`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},agency:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/:agency_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getAgencyAccount:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),operateAgencyAccount:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),protect:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/protect`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),protectSearch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/protection_period/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/agencies/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},application:{cancelOnboard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/cancel_onboard`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getDetail:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),offer:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/offer`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),recover:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/recover`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),terminate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/terminate`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transferOnboard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_onboard`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),transferStage:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_stage`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},applicationInterview:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},attachment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/attachments`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),preview:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id/preview`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},backgroundCheckOrder:{batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/background_check_orders/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/background_check_orders`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},diversityInclusion:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/applications/diversity_inclusions/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoAccountCustomField:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoBackgroundCheck:{cancel:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_checks/cancel`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateProgress:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_progress`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateResult:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_result`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoBackgroundCheckCustomField:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoBackgroundCheckPackage:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_background_check_packages`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoExam:{loginInfo:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/login_info`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateResult:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/update_result`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ecoExamPaper:{batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_update`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/eco_exam_papers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ehrImportTask:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/ehr_import_tasks/:ehr_import_task_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},employee:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getByApplication:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/employees/get_by_application`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},evaluation:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/evaluations`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/evaluations`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},evaluationTask:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},exam:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/exams`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},examMarkingTask:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalApplication:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalBackgroundCheck:{batchQueryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalInterview:{batchQueryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalInterviewAssessment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interview_assessments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalOffer:{batchQueryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),batchQuery:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},externalReferralReward:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_referral_rewards`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interview:{getByTalent:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviews`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewFeedbackForm:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewRecordAttachment:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_records/attachments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewRecord:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewRegistrationSchema:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewRoundType:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_round_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewTask:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interview_tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},interviewer:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviewers`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviewers`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},job:{close:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/close`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),combinedCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/combined_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),combinedUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/combined_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),config:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getDetail:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),open:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/open`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),recruiter:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateConfig:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobManager:{batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/batch_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/:manager_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobFunction:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_functions`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_functions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobProcess:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_processes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobPublishRecord:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_publish_records/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobRequirement:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listById:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobRequirementSchema:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_requirement_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobSchema:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},jobType:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_types`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/job_types`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},location:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/locations`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/locations`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/locations/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},minutes:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/minutes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},note:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes/:note_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes/:note_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/notes/:note_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offer:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),internOfferStatus:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers/:offer_id/intern_offer_status`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),offerStatus:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers/:offer_id/offer_status`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offerApplicationForm:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_application_forms/:offer_application_form_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_application_forms`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offerApprovalTemplate:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_approval_templates`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offerCustomField:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_custom_fields/:offer_custom_field_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},offerSchema:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/offer_schemas/:offer_schema_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},portalApplySchema:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},questionnaire:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/questionnaires`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},referral:{getByApplication:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referrals/get_by_application`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referrals/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},referralAccount:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deactivate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/deactivate`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),enable:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/enable`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getAccountAssets:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reconciliation:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/reconciliation`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),withdraw:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/withdraw`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},referralWebsiteJobPost:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},registrationSchema:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/registration_schemas`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/registration_schemas`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},resumeSource:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/resume_sources`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/resume_sources`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},role:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/roles/:role_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/roles`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/roles`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},subject:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/subjects`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talent:{addToFolder:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/add_to_folder`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchGetId:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/batch_get_id`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),combinedCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/combined_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),combinedUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/combined_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),onboardStatus:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id/onboard_status`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeToFolder:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),tag:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id/tag`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentExternalInfo:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentBlocklist:{changeTalentBlock:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentFolder:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_folders`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_folders`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentObject:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_objects/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentOperationLog:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_operation_logs/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentPool:{batchChangeTalentPool:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),moveTalent:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/talent_relationship`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_pools/`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_pools/`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talentTag:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_tags`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/talent_tags`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},terminationReason:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/termination_reasons`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/termination_reasons`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},test:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tests/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tests/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},todo:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/todos`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/todos`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},tripartiteAgreement:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userRole:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/user_roles`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/user_roles`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteChannel:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteDelivery:{createByAttachment:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_attachment`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createByResume:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_resume`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteDeliveryTask:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/delivery_tasks/:delivery_task_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteJobPost:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/:job_post_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},website:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},websiteSiteUser:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v1/websites/:website_id/site_users`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}},v2:{interviewRecord:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v2/interview_records/:interview_record_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v2/interview_records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v2/interview_records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},talent:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/hire/v2/talents/:talent_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ex extends ew{constructor(){super(...arguments),this.human_authentication={identity:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/human_authentication/v1/identities`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{identity:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/human_authentication/v1/identities`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ey extends ex{constructor(){super(...arguments),this.im={batchMessage:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getProgress:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/get_progress`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),readUser:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/read_user`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatAnnouncement:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chat:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),link:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/link`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/search`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/search`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatManagers:{addManagers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/add_managers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deleteManagers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/delete_managers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatMembers:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),isInChat:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/is_in_chat`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),meJoin:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/me_join`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatMenuItem:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_items/:menu_item_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatMenuTree:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),sort:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree/sort`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatModeration:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatTab:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deleteTabs:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/delete_tabs`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listTabs:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/list_tabs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),sortTabs:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/sort_tabs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateTabs:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/update_tabs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatTopNotice:{deleteTopNotice:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/delete_top_notice`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),putTopNotice:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/put_top_notice`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/files`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/files/:file_key`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},image:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/images`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/images/:image_key`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},message:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),forward:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/forward`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mergeForward:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/merge_forward`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),pushFollowUp:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/push_follow_up`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),readUsers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/read_users`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reply:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),urgentApp:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_app`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),urgentPhone:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_phone`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),urgentSms:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_sms`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createByCard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),{template_id:g,template_variable:h}=e,i=dy(e,["template_id","template_variable"]),j=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:g,template_variable:h}})},i);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages`,f),method:"POST",data:j,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),replyByCard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),{template_id:g,template_variable:h}=e,i=dy(e,["template_id","template_variable"]),j=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:g,template_variable:h}})},i);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,f),method:"POST",data:j,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateByCard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),{template_id:g,template_variable:h}=e,i=dy(e,["template_id","template_variable"]),j=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:g,template_variable:h}})},i);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"PUT",data:j,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},messageReaction:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions/:reaction_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},messageResource:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},pin:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/pins`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/pins/:message_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/pins`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/pins`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},thread:{forward:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{batchMessage:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getProgress:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/get_progress`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),readUser:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/read_user`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatAnnouncement:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chat:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),link:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/link`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/search`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/search`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatManagers:{addManagers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/add_managers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deleteManagers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/delete_managers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatMembers:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),isInChat:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/is_in_chat`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),meJoin:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/me_join`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatMenuItem:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_items/:menu_item_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatMenuTree:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),sort:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree/sort`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatModeration:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatTab:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),deleteTabs:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/delete_tabs`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listTabs:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/list_tabs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),sortTabs:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/sort_tabs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateTabs:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/update_tabs`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatTopNotice:{deleteTopNotice:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/delete_top_notice`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),putTopNotice:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/put_top_notice`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/files`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/files/:file_key`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},image:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/images`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/images/:image_key`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},message:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),forward:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/forward`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mergeForward:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/merge_forward`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),pushFollowUp:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/push_follow_up`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),readUsers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/read_users`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reply:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),urgentApp:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_app`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),urgentPhone:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_phone`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),urgentSms:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_sms`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),createByCard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),{template_id:g,template_variable:h}=e,i=dy(e,["template_id","template_variable"]),j=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:g,template_variable:h}})},i);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages`,f),method:"POST",data:j,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),replyByCard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),{template_id:g,template_variable:h}=e,i=dy(e,["template_id","template_variable"]),j=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:g,template_variable:h}})},i);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,f),method:"POST",data:j,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateByCard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),{template_id:g,template_variable:h}=e,i=dy(e,["template_id","template_variable"]),j=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:g,template_variable:h}})},i);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id`,f),method:"PUT",data:j,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},messageReaction:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions/:reaction_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},messageResource:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})},pin:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/pins`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/pins/:message_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/pins`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/pins`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},thread:{forward:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}},v2:{appFeedCardBatch:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/app_feed_card/batch`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/app_feed_card/batch`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},appFeedCard:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/app_feed_card`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},bizEntityTagRelation:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},chatButton:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/chat_button`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},feedCard:{botTimeSentive:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/feed_cards/bot_time_sentive`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/feed_cards/:feed_card_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},tag:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/tags`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/tags/:tag_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},urlPreview:{batchUpdate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/im/v2/url_previews/batch_update`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class ez extends ey{constructor(){super(...arguments),this.lingo={v1:{classification:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/classifications`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/classifications`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},draft:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/drafts`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/drafts/:draft_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},entity:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),highlight:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities/highlight`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),match:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities/match`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},file:{download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/files/:file_token/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/files/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},repo:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/lingo/v1/repos`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eA extends ez{constructor(){super(...arguments),this.mail={mailgroupAlias:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases/:alias_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},mailgroup:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},mailgroupManager:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},mailgroupMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},mailgroupPermissionMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},publicMailboxAlias:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases/:alias_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},publicMailbox:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeToRecycleBin:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/remove_to_recycle_bin`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},publicMailboxMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),clear:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/clear`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},user:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/users/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxAlias:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases/:alias_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailbox:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxEvent:{subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/subscription`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/unsubscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxFolder:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxMailContact:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts/:mail_contact_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts/:mail_contact_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxMessageAttachment:{downloadUrl:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id/attachments/download_url`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxMessage:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getByCard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/get_by_card`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),send:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxRule:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/:rule_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reorder:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/reorder`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/:rule_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{mailgroupAlias:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases/:alias_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},mailgroup:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},mailgroupManager:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},mailgroupMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},mailgroupPermissionMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},publicMailboxAlias:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases/:alias_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},publicMailbox:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeToRecycleBin:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/remove_to_recycle_bin`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},publicMailboxMember:{batchCreate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_create`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDelete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_delete`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),clear:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/clear`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},user:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/users/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxAlias:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases/:alias_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailbox:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxEvent:{subscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/subscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),subscription:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/subscription`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unsubscribe:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/unsubscribe`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxFolder:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxMailContact:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts/:mail_contact_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts/:mail_contact_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxMessageAttachment:{downloadUrl:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id/attachments/download_url`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxMessage:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getByCard:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/get_by_card`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),send:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userMailboxRule:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/:rule_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reorder:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/reorder`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/:rule_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eB extends eA{constructor(){super(...arguments),this.mdm={userAuthDataRelation:{bind:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unbind:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{userAuthDataRelation:{bind:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),unbind:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}},v3:{batchCountryRegion:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mdm/v3/batch_country_region`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},countryRegion:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/mdm/v3/country_regions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eC extends eB{constructor(){super(...arguments),this.meeting_room={}}}class eD extends eC{constructor(){super(...arguments),this.minutes={v1:{minute:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/minutes/v1/minutes/:minute_token`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},minuteMedia:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/minutes/v1/minutes/:minute_token/media`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},minuteStatistics:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/minutes/v1/minutes/:minute_token/statistics`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},minuteTranscript:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/minutes/v1/minutes/:minute_token/transcript`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}})}}}}}class eE extends eD{constructor(){super(...arguments),this.moments={post:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/moments/v1/posts/:post_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{post:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/moments/v1/posts/:post_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eF extends eE{constructor(){super(...arguments),this.okr={image:{upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/images/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},okr:{batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/okrs/batch_get`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},period:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/periods`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/periods`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/periods/:period_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},periodRule:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/period_rules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},progressRecord:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/progress_records`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},review:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/reviews/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userOkr:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/users/:user_id/okrs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{image:{upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/images/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},okr:{batchGet:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/okrs/batch_get`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},period:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/periods`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/periods`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/periods/:period_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},periodRule:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/period_rules`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},progressRecord:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/progress_records`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},review:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/reviews/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userOkr:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/okr/v1/users/:user_id/okrs`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eG extends eF{constructor(){super(...arguments),this.optical_char_recognition={image:{basicRecognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/optical_char_recognition/v1/image/basic_recognize`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{image:{basicRecognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/optical_char_recognition/v1/image/basic_recognize`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eH extends eG{constructor(){super(...arguments),this.passport={session:{logout:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/passport/v1/sessions/logout`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/passport/v1/sessions/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{session:{logout:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/passport/v1/sessions/logout`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/passport/v1/sessions/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eI extends eH{constructor(){super(...arguments),this.payroll={v1:{acctItem:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/acct_items`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/acct_items`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},costAllocationDetail:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/cost_allocation_details`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/cost_allocation_details`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},costAllocationPlan:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/cost_allocation_plans`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/cost_allocation_plans`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},costAllocationReport:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/cost_allocation_reports`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/cost_allocation_reports`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},datasource:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/datasources`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/datasources`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},datasourceRecord:{queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/datasource_records/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/datasource_records/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),save:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/datasource_records/save`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},paygroup:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/paygroups`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/paygroups`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},paymentActivity:{archive:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/payment_activitys/archive`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/payment_activitys`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/payment_activitys`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},paymentActivityDetail:{list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/payment_activity_details`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},paymentDetail:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/payroll/v1/payment_detail/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eJ extends eI{constructor(){super(...arguments),this.people_admin={}}}class eK extends eJ{constructor(){super(...arguments),this.people_bytedance={}}}class eL extends eK{constructor(){super(...arguments),this.performance={v2:{activity:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/activity/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},additionalInformation:{import:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/additional_informations/import`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/additional_informations/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/additional_informations/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},additionalInformationsBatch:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/additional_informations/batch`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},indicator:{queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/indicators/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/indicators/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},metricDetail:{import:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/metric_details/import`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/metric_details/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},metricField:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/metric_fields/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},metricLib:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/metric_libs/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},metricTag:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/metric_tags`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/metric_tags`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},metricTemplate:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/metric_templates/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},question:{queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/questions/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/questions/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reviewData:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/review_datas/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reviewTemplate:{queryWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/review_templates/query`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/review_templates/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reviewee:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/reviewees/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},userGroupUserRel:{write:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/performance/v2/user_group_user_rels/write`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eM extends eL{constructor(){super(...arguments),this.personal_settings={systemStatus:{batchClose:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_close`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchOpen:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_open`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{systemStatus:{batchClose:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_close`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchOpen:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_open`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eN extends eM{constructor(){super(...arguments),this.report={rule:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/report/v1/rules/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ruleView:{remove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},task:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/report/v1/tasks/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{rule:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/report/v1/rules/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},ruleView:{remove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},task:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/report/v1/tasks/query`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eO extends eN{constructor(){super(...arguments),this.search_in_app={}}}class eP extends eO{constructor(){super(...arguments),this.search={app:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/app`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},dataSource:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},dataSourceItem:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},message:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/message`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},schema:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/schemas`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v2:{app:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/app`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},dataSource:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},dataSourceItem:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},message:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/message`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},schema:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/schemas`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eQ extends eP{constructor(){super(...arguments),this.security_and_compliance={openapiLog:{listData:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v1/openapi_logs/list_data`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{openapiLog:{listData:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v1/openapi_logs/list_data`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}},v2:{deviceApplyRecord:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v2/device_apply_records/:device_apply_record_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},deviceRecord:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v2/device_records`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v2/device_records/:device_record_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v2/device_records/:device_record_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v2/device_records`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v2/device_records`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mine:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v2/device_records/mine`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/security_and_compliance/v2/device_records/:device_record_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eR extends eQ{constructor(){super(...arguments),this.sheets={spreadsheet:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheetFilter:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheetFilterViewCondition:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheetFilterView:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheet:{find:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/find`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),moveDimension:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/move_dimension`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),replace:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/replace`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheetFloatImage:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v3:{spreadsheet:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheetFilter:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheetFilterViewCondition:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheetFilterView:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheet:{find:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/find`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),moveDimension:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/move_dimension`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),replace:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/replace`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spreadsheetSheetFloatImage:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eS extends eR{constructor(){super(...arguments),this.speech_to_text={speech:{fileRecognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/speech_to_text/v1/speech/file_recognize`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),streamRecognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/speech_to_text/v1/speech/stream_recognize`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{speech:{fileRecognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/speech_to_text/v1/speech/file_recognize`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),streamRecognize:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/speech_to_text/v1/speech/stream_recognize`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eT extends eS{constructor(){super(...arguments),this.spend={}}}class eU extends eT{constructor(){super(...arguments),this.sup_project={}}}class eV extends eU{constructor(){super(...arguments),this.task={task:{batchDeleteCollaborator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_collaborator`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDeleteFollower:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_follower`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),complete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/complete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uncomplete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/uncomplete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},taskCollaborator:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators/:collaborator_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},taskComment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},taskFollower:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers/:follower_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},taskReminder:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders/:reminder_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{task:{batchDeleteCollaborator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_collaborator`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),batchDeleteFollower:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_follower`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),complete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/complete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),uncomplete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/uncomplete`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},taskCollaborator:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators/:collaborator_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},taskComment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},taskFollower:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers/:follower_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},taskReminder:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders/:reminder_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}},v2:{attachment:{delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/attachments/:attachment_guid`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/attachments/:attachment_guid`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/attachments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/attachments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),upload:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/attachments/upload`,f),method:"POST",data:e,params:d,headers:Object.assign(Object.assign({},c),{"Content-Type":"multipart/form-data"}),paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a});return(null==g?void 0:g.data)||null})},comment:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/comments`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/comments/:comment_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/comments/:comment_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/comments`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/comments`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/comments/:comment_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},customField:{add:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/add`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/custom_fields`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/custom_fields`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/custom_fields`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),remove:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/remove`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},customFieldOption:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/options`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/options/:option_guid`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},section:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/sections`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/sections/:section_guid`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/sections/:section_guid`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/sections`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/sections`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/sections/:section_guid`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),tasksWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/sections/:section_guid/tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),tasks:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/sections/:section_guid/tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},task:{addDependencies:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_dependencies`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),addMembers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),addReminders:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_reminders`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),addTasklist:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_tasklist`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeDependencies:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_dependencies`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeMembers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeReminders:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_reminders`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeTasklist:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_tasklist`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),tasklists:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/tasklists`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},taskSubtask:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/subtasks`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/subtasks`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasks/:task_guid/subtasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},tasklistActivitySubscription:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions/:activity_subscription_guid`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions/:activity_subscription_guid`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions/:activity_subscription_guid`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},tasklist:{addMembers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/add_members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),removeMembers:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/remove_members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),tasks:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/tasks`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eW extends eV{constructor(){super(...arguments),this.tenant={tenantProductAssignInfo:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/tenant/v2/tenant/assign_info_list/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},tenant:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/tenant/v2/tenant/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v2:{tenantProductAssignInfo:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/tenant/v2/tenant/assign_info_list/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},tenant:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/tenant/v2/tenant/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eX extends eW{constructor(){super(...arguments),this.translation={text:{detect:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/translation/v1/text/detect`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),translate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/translation/v1/text/translate`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{text:{detect:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/translation/v1/text/detect`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),translate:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/translation/v1/text/translate`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class eY extends eX{constructor(){super(...arguments),this.unified_kms_log={}}}class eZ extends eY{constructor(){super(...arguments),this.vc={alert:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/alerts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/alerts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},export:{download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/:task_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),meetingList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/meeting_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),participantList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/participant_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),participantQualityList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/participant_quality_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),resourceReservationList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},meeting:{end:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/end`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),invite:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/invite`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),kickout:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/kickout`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listByNoWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),listByNo:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),setHost:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/set_host`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},meetingRecording:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),setPermission:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/set_permission`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),start:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/start`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),stop:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/stop`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},meetingList:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meeting_list`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meeting_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},participantList:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/participant_list`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/participant_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},participantQualityList:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/participant_quality_list`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/participant_quality_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},report:{getDaily:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reports/get_daily`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getTopUser:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reports/get_top_user`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserve:{apply:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/apply`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getActiveMeeting:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id/get_active_meeting`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserveConfigAdmin:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserveConfigDisableInform:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserveConfigForm:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserveConfig:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reserveScope:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/reserve_scope`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},resourceReservationList:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},room:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mget:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/mget`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},roomConfig:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_configs/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),set:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_configs/set`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),setCheckboardAccessCode:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),setRoomAccessCode:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},roomLevel:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),del:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/del`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mget:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/mget`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/search`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},scopeConfig:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/scope_config`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/scope_config`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{alert:{listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/alerts`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/alerts`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},export:{download:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/download`,f),method:"GET",headers:c,data:e,params:d,responseType:"stream",paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"}),$return_headers:!0}).catch(a=>{throw this.logger.error(dW(a)),a}),h=()=>{let a="The stream has already been consumed";if(!g.data.readable)throw this.logger.error(a),Error(a)};return{writeFile:a=>dz(this,void 0,void 0,function*(){return h(),new Promise((b,c)=>{let d=dr().createWriteStream(a);d.on("finish",()=>{b(a)}),d.on("error",a=>{c(a)}),g.data.pipe(d)})}),getReadableStream:()=>(h(),g.data),headers:g.headers}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/:task_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),meetingList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/meeting_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),participantList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/participant_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),participantQualityList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/participant_quality_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),resourceReservationList:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},meeting:{end:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/end`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),invite:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/invite`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),kickout:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/kickout`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listByNoWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),listByNo:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),setHost:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/set_host`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},meetingRecording:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),setPermission:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/set_permission`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),start:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/start`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),stop:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/stop`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},meetingList:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meeting_list`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/meeting_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},participantList:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/participant_list`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/participant_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},participantQualityList:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/participant_quality_list`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/participant_quality_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},report:{getDaily:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reports/get_daily`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getTopUser:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reports/get_top_user`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserve:{apply:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/apply`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getActiveMeeting:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id/get_active_meeting`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserveConfigAdmin:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserveConfigDisableInform:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserveConfigForm:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},reserveConfig:{patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),reserveScope:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/reserve_configs/reserve_scope`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},resourceReservationList:{getWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},room:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mget:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/mget`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/rooms/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},roomConfig:{query:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_configs/query`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),set:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_configs/set`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),setCheckboardAccessCode:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),setRoomAccessCode:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},roomLevel:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),del:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/del`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),mget:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/mget`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),patch:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,f),method:"PATCH",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/room_levels/search`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},scopeConfig:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/scope_config`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/vc/v1/scope_config`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class e$ extends eZ{constructor(){super(...arguments),this.verification={v1:{verification:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/verification/v1/verification`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class e_ extends e${constructor(){super(...arguments),this.wiki={space:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getNode:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/get_node`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spaceMember:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spaceNode:{copy:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/copy`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),move:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/move`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),moveDocsToWiki:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/move_docs_to_wiki`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateTitle:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/update_title`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spaceSetting:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/setting`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},task:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/tasks/:task_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{node:{searchWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v1/nodes/search`,f),method:"POST",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v1/nodes/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}},v2:{space:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),getNode:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/get_node`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spaceMember:{create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),delete:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members/:member_id`,f),method:"DELETE",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spaceNode:{copy:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/copy`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),create:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),listWithIterator:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b),g=a=>dz(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,f),method:"GET",headers:dp()(a.headers,dm()),params:dp()(a.params,dm()),data:e,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{this.logger.error(dW(a))})});return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){let a,b=!0;for(;b;)try{let f=yield dB(g({headers:c,params:Object.assign(Object.assign({},d),{page_token:a}),data:e})),h=(null==f?void 0:f.data)||{},{has_more:i,page_token:j,next_page_token:k}=h,l=dy(h,["has_more","page_token","next_page_token"]);yield yield dB(l),b=!!i,a=j||k}catch(a){yield yield dB(null);break}})}}}),list:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),move:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/move`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),moveDocsToWiki:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/move_docs_to_wiki`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})}),updateTitle:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/update_title`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},spaceSetting:{update:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/setting`,f),method:"PUT",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},task:{get:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/wiki/v2/tasks/:task_id`,f),method:"GET",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}class e0 extends e_{constructor(){super(...arguments),this.workplace={customWorkplaceAccessData:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workplaceAccessData:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workplaceBlockAccessData:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},v1:{customWorkplaceAccessData:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workplaceAccessData:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})},workplaceBlockAccessData:{search:(a,b)=>dz(this,void 0,void 0,function*(){let{headers:c,params:d,data:e,path:f}=yield this.formatPayload(a,b);return this.httpInstance.request({url:dS(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`,f),method:"POST",data:e,params:d,headers:c,paramsSerializer:a=>(0,dk.stringify)(a,{arrayFormat:"repeat"})}).catch(a=>{throw this.logger.error(dW(a)),a})})}}}}}let e1={error:(...a)=>{console.log("[error]:",...a)},warn:(...a)=>{console.warn("[warn]:",...a)},info:(...a)=>{console.info("[info]:",...a)},debug:(...a)=>{console.debug("[debug]:",...a)},trace:(...a)=>{console.trace("[trace]:",...a)}};class e2{constructor(a,b){this.level=a,this.logger=b}error(...a){this.level>=n.error&&this.logger.error(a)}warn(...a){this.level>=n.warn&&this.logger.warn(a)}info(...a){this.level>=n.info&&this.logger.info(a)}debug(...a){this.level>=n.debug&&this.logger.debug(a)}trace(...a){this.level>=n.trace&&this.logger.trace(a)}}class e3{constructor(a){this.appId=a.appId,this.appSecret=a.appSecret,this.cache=a.cache,this.domain=a.domain,this.logger=a.logger,this.appType=a.appType,this.httpInstance=a.httpInstance,this.logger.debug("app ticket manager is ready"),this.checkAppTicket()}checkAppTicket(){var a;return dz(this,void 0,void 0,function*(){this.appType===l.ISV&&((yield null==(a=this.cache)?void 0:a.get(dH,{namespace:this.appId}))||this.requestAppTicket())})}requestAppTicket(){return dz(this,void 0,void 0,function*(){this.logger.debug("request app ticket"),yield this.httpInstance.post(`${this.domain}/open-apis/auth/v3/app_ticket/resend`,{app_id:this.appId,app_secret:this.appSecret}).catch(a=>{this.logger.error(a)})})}getAppTicket(){var a;return dz(this,void 0,void 0,function*(){let b=yield null==(a=this.cache)?void 0:a.get(dH,{namespace:this.appId});if(b)return this.logger.debug("use cache app ticket"),b;yield this.requestAppTicket()})}}class e4{constructor(a){this.appId=a.appId,this.appSecret=a.appSecret,this.cache=a.cache,this.domain=a.domain,this.logger=a.logger,this.appType=a.appType,this.httpInstance=a.httpInstance,this.appTicketManager=new e3({appId:this.appId,appSecret:this.appSecret,cache:this.cache,domain:this.domain,logger:this.logger,appType:this.appType,httpInstance:this.httpInstance}),this.logger.debug("token manager is ready")}getCustomTenantAccessToken(){var a,b;return dz(this,void 0,void 0,function*(){let c=yield null==(a=this.cache)?void 0:a.get(dI,{namespace:this.appId});if(c)return this.logger.debug("use cache token"),c;this.logger.debug("request token");let{tenant_access_token:d,expire:e}=yield this.httpInstance.post(`${this.domain}/open-apis/auth/v3/tenant_access_token/internal`,{app_id:this.appId,app_secret:this.appSecret}).catch(a=>{this.logger.error(a)});return yield null==(b=this.cache)?void 0:b.set(dI,d,new Date().getTime()+1e3*e-18e4,{namespace:this.appId}),d})}getMarketTenantAccessToken(a){var b;return dz(this,void 0,void 0,function*(){if(!a)return void this.logger.error("market app request need tenant key");let c=yield null==(b=this.cache)?void 0:b.get(`larkMarketAccessToken${a}`,{namespace:this.appId});if(c)return this.logger.debug("use cache token"),c;this.logger.debug("get app ticket");let d=yield this.appTicketManager.getAppTicket();if(!d)return void this.logger.warn("no app ticket");this.logger.debug("get app access token");let{app_access_token:e}=yield this.httpInstance.post(`${this.domain}/open-apis/auth/v3/app_access_token`,{app_id:this.appId,app_secret:this.appSecret,app_ticket:d}).catch(a=>{this.logger.error(a)});this.logger.debug("get tenant access token");let{tenant_access_token:f,expire:g}=yield this.httpInstance.post(`${this.domain}/open-apis/auth/v3/tenant_access_token`,{app_access_token:e,tenant_key:a}).catch(a=>{this.logger.error(a)});return yield this.cache.set(`larkMarketAccessToken${a}`,f,new Date().getTime()+1e3*g-18e4,{namespace:this.appId}),f})}getTenantAccessToken(a){return dz(this,void 0,void 0,function*(){return dT(this.appType===l.SelfBuild,()=>dz(this,void 0,void 0,function*(){this.logger.debug("get custom app token")})),dT(this.appType===l.ISV,()=>dz(this,void 0,void 0,function*(){this.logger.debug("get market app token ")})),this.appType===l.SelfBuild?yield this.getCustomTenantAccessToken():yield this.getMarketTenantAccessToken(null==a?void 0:a[dG])})}}let e5=(a,b)=>{let c=Object.assign({},a);for(let[a,d]of Object.entries(b))void 0!==d&&(c[a]=d);return c};class e6{constructor(a){this.client=a.client}getCacheKey(a,b){let c=(null==b?void 0:b.namespace)||this.client.appId;return`${c}/${dL.toString()}/${a}`}calibrateTime(a){return new Date().getTime()+1e3*(a||0)-18e4}initWithCode(a,b){return dz(this,void 0,void 0,function*(){let c={};for(let[b,d]of Object.entries(a)){let a=yield this.client.authen.oidcAccessToken.create({data:{grant_type:"authorization_code",code:d}});if(0!==a.code){this.client.logger.error("init user access token error",b,a.msg||a.message);continue}if(!a.data){this.client.logger.error("user access code expired",b,d);continue}c[b]={code:d,token:a.data.access_token,refreshToken:a.data.refresh_token,expiredTime:this.calibrateTime(a.data.expires_in)}}return yield this.update(c,{namespace:null==b?void 0:b.namespace}),c})}update(a,b){return dz(this,void 0,void 0,function*(){for(let[c,d]of Object.entries(a)){let a=this.getCacheKey(c,{namespace:null==b?void 0:b.namespace}),e=(yield this.client.cache.get(a))||{},{code:f,token:g,refreshToken:h,expiredTime:i}=d,j=e5(e,{code:f,token:g,refreshToken:h,expiredTime:i});yield this.client.cache.set(a,j,1/0)}})}get(a,b){return dz(this,void 0,void 0,function*(){let c=this.getCacheKey(a,{namespace:null==b?void 0:b.namespace}),d=yield this.client.cache.get(c);if(!d)return void this.client.logger.error("user access token needs to be initialized or updated first");let{token:e,code:f,refreshToken:g,expiredTime:h}=d;if(e&&h&&h-new Date().getTime()>0)return e;if(g){let b=yield this.client.authen.oidcRefreshAccessToken.create({data:{grant_type:"refresh_token",refresh_token:g}});return 0===b.code&&b.data?(yield this.update({[a]:{token:b.data.access_token,refreshToken:b.data.refresh_token,expiredTime:this.calibrateTime(b.data.expires_in)}}),b.data.access_token):void this.client.logger.error("get user access token by refresh token failed.",b.msg)}if(f){let b=yield this.client.authen.oidcAccessToken.create({data:{grant_type:"authorization_code",code:f}});0===b.code&&b.data?yield this.update({[a]:{token:b.data.access_token,refreshToken:b.data.refresh_token,expiredTime:this.calibrateTime(b.data.expires_in)}}):this.client.logger.error("get user access token by code failed.",b.msg)}})}}class e7 extends e0{constructor(a){super(),this.appId="",this.appSecret="",this.helpDeskId="",this.helpDeskToken="",this.appType=l.SelfBuild,this.logger=new e2(a.loggerLevel||n.info,a.logger||e1),this.appId=a.appId,this.appSecret=a.appSecret,this.disableTokenCache=a.disableTokenCache,dT(!this.appId,()=>this.logger.error("appId is needed")),dT(!this.appSecret,()=>this.logger.error("appSecret is needed")),this.helpDeskId=a.helpDeskId,this.helpDeskToken=a.helpDeskToken,this.appType=(null==a?void 0:a.appType)||l.SelfBuild,this.domain=dR(a.domain||m.Feishu),this.logger.debug(`use domain url: ${this.domain}`),this.cache=a.cache||dP,this.httpInstance=a.httpInstance||dE,this.tokenManager=new e4({appId:this.appId,appSecret:this.appSecret,cache:this.cache,domain:this.domain,logger:this.logger,appType:this.appType,httpInstance:this.httpInstance}),this.userAccessToken=new e6({client:this}),this.logger.info("client ready")}formatPayload(a,b){var c,d,e;return dz(this,void 0,void 0,function*(){let f=["lark","params","data","headers","path"].reduce((a,c)=>(a[c]=(null==b?void 0:b[c])||{},a),{}),g=null==(c=null==f?void 0:f.lark)?void 0:c[dK];if(g)this.logger.debug("use passed token"),f.headers.Authorization=`Bearer ${g}`;else if(!this.disableTokenCache){let a=yield this.tokenManager.getTenantAccessToken({[dG]:null==(d=null==f?void 0:f.lark)?void 0:d[dG]});a?f.headers.Authorization=`Bearer ${a}`:this.logger.warn("failed to obtain token")}if(null==(e=null==f?void 0:f.lark)?void 0:e[dJ]){this.logger.debug("generate help desk credential");let a=dN(`${this.helpDeskId}:${this.helpDeskToken}`);f.headers["X-Lark-Helpdesk-Authorization"]=`Bearer ${a}`}return{params:Object.assign(Object.assign({},(null==a?void 0:a.params)||{}),f.params),headers:Object.assign(Object.assign({"User-Agent":"oapi-node-sdk/1.0.0"},(null==a?void 0:a.headers)||{}),f.headers),data:Object.assign(Object.assign({},(null==a?void 0:a.data)||{}),f.data),path:Object.assign(Object.assign({},(null==a?void 0:a.path)||{}),f.path)}})}request(a,b){var c;return dz(this,void 0,void 0,function*(){let{data:d,params:e,headers:f,url:g}=a,h=dy(a,["data","params","headers","url"]),i=yield this.formatPayload({data:d,params:e,headers:f},b),j=(null==(c=a.method)?void 0:c.toLowerCase())==="get"&&0===Object.keys(i.data).length?void 0:i.data;return this.logger.trace(`send request [${a.method}]: ${a.url}`),yield this.httpInstance.request(Object.assign(Object.assign({},h),{url:/^http/.test(g)?g:`${this.domain}/${dU(g)}`,headers:i.headers,data:j,params:i.params})).catch(a=>{throw this.logger.error(a),a})})}}let e8=a=>a.reduce((a,b)=>dt()(a,b),{}),e9=a=>({lark:{[dG]:a}}),fa=()=>({lark:{[dJ]:!0}}),fb=a=>({headers:{Authorization:`Bearer ${a}`}}),fc=a=>({lark:{[dK]:a}});class fd{constructor(a){const{encryptKey:b,verificationToken:c,logger:d}=a;this.verificationToken=c,this.encryptKey=b,this.logger=d,b&&(this.aesCipher=new dQ(b))}parse(a){var b,c;let d=(()=>{var b;let c=a||{},{encrypt:d}=c,e=dy(c,["encrypt"]);if(d)try{return Object.assign(Object.assign({},JSON.parse(null==(b=this.aesCipher)?void 0:b.decrypt(d))),e)}catch(a){return this.logger.error("parse encrypt data failed"),{}}return e})();if("schema"in d){let{header:a,event:c}=d,e=dy(d,["header","event"]);return Object.assign(Object.assign(Object.assign({[dF]:null==(b=null==d?void 0:d.header)?void 0:b.event_type},e),a),c)}let{event:e}=d,f=dy(d,["event"]);return Object.assign(Object.assign({[dF]:null==(c=null==d?void 0:d.event)?void 0:c.type},e),f)}checkIsCardEventValidated(a){if("encrypt"in a||"schema"in a)return this.checkIsEventValidated(a);let{"x-lark-request-timestamp":b,"x-lark-request-nonce":c,"x-lark-signature":d}=a.headers;return!this.verificationToken||a_().createHash("sha1").update(b+c+this.verificationToken+JSON.stringify(a)).digest("hex")===d}checkIsEventValidated(a){if(!this.encryptKey)return!0;let{"x-lark-request-timestamp":b,"x-lark-request-nonce":c,"x-lark-signature":d}=a.headers,e=b+c+this.encryptKey+JSON.stringify(a);return a_().createHash("sha256").update(e).digest("hex")===d}}let fe="app_ticket";class ff{constructor(a){this.verificationToken="",this.encryptKey="",this.handles=new Map;const{encryptKey:b,verificationToken:c}=a;this.encryptKey=b||"",this.verificationToken=c||"",this.logger=new e2(a.loggerLevel||n.info,a.logger||e1),this.requestHandle=new fd({encryptKey:b,verificationToken:c,logger:this.logger}),this.cache=a.cache||dP,this.registerAppTicketHandle(),this.logger.info("event-dispatch is ready")}registerAppTicketHandle(){this.register({app_ticket:a=>dz(this,void 0,void 0,function*(){let{app_ticket:b,app_id:c}=a;b?(yield this.cache.set(dH,b,void 0,{namespace:c}),this.logger.debug("set app ticket")):this.logger.warn("response not include app ticket")})})}register(a){return Object.keys(a).forEach(b=>{this.handles.has(b)&&b!==fe&&this.logger.error(`this ${b} handle is registered`),this.handles.set(b,a[b]),this.logger.debug(`register ${b} handle`)}),this}invoke(a,b){var c,d;return dz(this,void 0,void 0,function*(){if((null==b?void 0:b.needCheck)!==!1&&!(null==(c=this.requestHandle)?void 0:c.checkIsEventValidated(a)))return void this.logger.warn("verification failed event");let e=null==(d=this.requestHandle)?void 0:d.parse(a),f=e[dF];if(this.handles.has(f)){let a=yield this.handles.get(f)(e);return this.logger.debug(`execute ${f} handle`),a}return this.logger.warn(`no ${f} handle`),`no ${f} event handle`})}}class fg{constructor(a,b){this.verificationToken="",this.encryptKey="",this.handles=new Map;const{verificationToken:c,encryptKey:d}=a;this.encryptKey=d||"",this.verificationToken=c||"",this.cardHandler=b,this.logger=new e2(a.loggerLevel||n.info,a.logger||e1),this.requestHandle=new fd({encryptKey:d,verificationToken:c,logger:this.logger}),this.cache=a.cache||dP,this.registerAppTicketHandle(),this.logger.info("card-action-handle is ready")}registerAppTicketHandle(){this.register({app_ticket:a=>dz(this,void 0,void 0,function*(){let{app_ticket:b,app_id:c}=a;b?(yield this.cache.set(dH,b,void 0,{namespace:c}),this.logger.debug("set app ticket")):this.logger.warn("response not include app ticket")})})}register(a){return Object.keys(a).forEach(b=>{this.handles.set(b,a[b]),this.logger.debug(`register ${b} handle`)}),this}invoke(a){var b,c;return dz(this,void 0,void 0,function*(){if(!(null==(b=this.requestHandle)?void 0:b.checkIsCardEventValidated(a)))return void this.logger.warn("verification failed event");let d=null==(c=this.requestHandle)?void 0:c.parse(a),e=d[dF];if(this.handles.has(e))try{return yield this.handles.get(e)(d)}catch(a){this.logger.error(a);return}try{let a=yield this.cardHandler(d);return this.logger.debug("execute card handle"),a}catch(a){this.logger.error(a)}})}}let fh=a=>new Promise(b=>{let c="";a.on("data",a=>{c+=a}),a.on("end",()=>{try{let a=JSON.parse(c);b(a)}catch(a){b("")}})}),fi=(a,b)=>{if("encrypt"in a&&!b.encryptKey)throw Error("auto-challenge need encryptKey, please check for missing in dispatcher");let c="encrypt"in a?JSON.parse(new dQ(b.encryptKey).decrypt(a.encrypt)):a;return{isChallenge:"url_verification"===c.type,challenge:{challenge:c.challenge}}},fj=(a,b,c)=>(d,e)=>dz(void 0,void 0,void 0,function*(){if(d.url!==a)return;let f=Object.assign(Object.create({headers:d.headers}),(yield fh(d)));if(null==c?void 0:c.autoChallenge){let{isChallenge:a,challenge:c}=fi(f,{encryptKey:b.encryptKey});if(a)return void e.end(JSON.stringify(c))}let g=yield b.invoke(f);e.end(JSON.stringify(g))}),fk=(a,b)=>(c,d)=>dz(void 0,void 0,void 0,function*(){let e=yield dz(void 0,void 0,void 0,function*(){return c.body?c.body:c.complete?(((null==b?void 0:b.logger)||e1).error("unable to obtain request body, if parsed it in other middleware, please manually set in ctx.request.body"),null):yield fh(c)}),f=Object.assign(Object.create({headers:c.headers}),e);if(null==b?void 0:b.autoChallenge){let{isChallenge:b,challenge:c}=fi(f,{encryptKey:a.encryptKey});if(b)return void d.json(c)}let g=yield a.invoke(f);d.json(g)}),fl=(a,b,c)=>(d,e)=>dz(void 0,void 0,void 0,function*(){let{originalUrl:f,req:g,request:h}=d;if(f===a){let a=yield dz(void 0,void 0,void 0,function*(){return h.body?h.body:g.complete?(((null==c?void 0:c.logger)||e1).error("unable to obtain request body, if parsed it in other middleware, please manually set in ctx.request.body"),null):yield fh(g)}),f=Object.assign(Object.create({headers:g.headers}),a);if(null==c?void 0:c.autoChallenge){let{isChallenge:a,challenge:c}=fi(f,{encryptKey:b.encryptKey});if(a){d.body=c,yield e();return}}d.body=JSON.stringify((yield b.invoke(f)))}yield e()}),fm=(a,b)=>(c,d)=>dz(void 0,void 0,void 0,function*(){let{req:e,request:f}=c,g=yield dz(void 0,void 0,void 0,function*(){return f.body?f.body:e.complete?(((null==b?void 0:b.logger)||e1).error("unable to obtain request body, if parsed it in other middleware, please manually set in ctx.request.body"),null):yield fh(e)}),h=Object.assign(Object.create({headers:e.headers}),g);if(null==b?void 0:b.autoChallenge){let{isChallenge:b,challenge:e}=fi(h,{encryptKey:a.encryptKey});if(b){c.body=e,yield d();return}}c.body=JSON.stringify((yield a.invoke(h))),yield d()});var fn=Object.freeze({__proto__:null,defaultCard:a=>{let{title:b,content:c}=a;return JSON.stringify({config:{wide_screen_mode:!0},elements:[{tag:"markdown",content:c}],header:{template:"blue",title:{content:b,tag:"plain_text"}}})}});let fo=c(14061);fo.util.Long=void 0,fo.configure();let fp=fo.Reader,fq=fo.Writer,fr=fo.util,fs=fo.roots.default||(fo.roots.default={}),ft=fs.pbbp2=(()=>{let a={};return a.Header=function(){function a(a){if(a)for(let b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}return a.prototype.key="",a.prototype.value="",a.create=function(b){return new a(b)},a.encode=function(a,b){return b||(b=fq.create()),b.uint32(10).string(a.key),b.uint32(18).string(a.value),b},a.encodeDelimited=function(a,b){return this.encode(a,b).ldelim()},a.decode=function(a,b){a instanceof fp||(a=fp.create(a));let c=void 0===b?a.len:a.pos+b,d=new fs.pbbp2.Header;for(;a.pos<c;){let b=a.uint32();switch(b>>>3){case 1:d.key=a.string();break;case 2:d.value=a.string();break;default:a.skipType(7&b)}}if(!d.hasOwnProperty("key"))throw fr.ProtocolError("missing required 'key'",{instance:d});if(!d.hasOwnProperty("value"))throw fr.ProtocolError("missing required 'value'",{instance:d});return d},a.decodeDelimited=function(a){return a instanceof fp||(a=new fp(a)),this.decode(a,a.uint32())},a.verify=function(a){return"object"!=typeof a||null===a?"object expected":fr.isString(a.key)?fr.isString(a.value)?null:"value: string expected":"key: string expected"},a.fromObject=function(a){if(a instanceof fs.pbbp2.Header)return a;let b=new fs.pbbp2.Header;return null!=a.key&&(b.key=String(a.key)),null!=a.value&&(b.value=String(a.value)),b},a.toObject=function(a,b){b||(b={});let c={};return b.defaults&&(c.key="",c.value=""),null!=a.key&&a.hasOwnProperty("key")&&(c.key=a.key),null!=a.value&&a.hasOwnProperty("value")&&(c.value=a.value),c},a.prototype.toJSON=function(){return this.constructor.toObject(this,fo.util.toJSONOptions)},a.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/pbbp2.Header"},a}(),a.Frame=function(){function a(a){if(this.headers=[],a)for(let b=Object.keys(a),c=0;c<b.length;++c)null!=a[b[c]]&&(this[b[c]]=a[b[c]])}return a.prototype.SeqID=fr.Long?fr.Long.fromBits(0,0,!0):0,a.prototype.LogID=fr.Long?fr.Long.fromBits(0,0,!0):0,a.prototype.service=0,a.prototype.method=0,a.prototype.headers=fr.emptyArray,a.prototype.payloadEncoding="",a.prototype.payloadType="",a.prototype.payload=fr.newBuffer([]),a.prototype.LogIDNew="",a.create=function(b){return new a(b)},a.encode=function(a,b){if(b||(b=fq.create()),b.uint32(8).uint64(a.SeqID),b.uint32(16).uint64(a.LogID),b.uint32(24).int32(a.service),b.uint32(32).int32(a.method),null!=a.headers&&a.headers.length)for(let c=0;c<a.headers.length;++c)fs.pbbp2.Header.encode(a.headers[c],b.uint32(42).fork()).ldelim();return null!=a.payloadEncoding&&Object.hasOwnProperty.call(a,"payloadEncoding")&&b.uint32(50).string(a.payloadEncoding),null!=a.payloadType&&Object.hasOwnProperty.call(a,"payloadType")&&b.uint32(58).string(a.payloadType),null!=a.payload&&Object.hasOwnProperty.call(a,"payload")&&b.uint32(66).bytes(a.payload),null!=a.LogIDNew&&Object.hasOwnProperty.call(a,"LogIDNew")&&b.uint32(74).string(a.LogIDNew),b},a.encodeDelimited=function(a,b){return this.encode(a,b).ldelim()},a.decode=function(a,b){a instanceof fp||(a=fp.create(a));let c=void 0===b?a.len:a.pos+b,d=new fs.pbbp2.Frame;for(;a.pos<c;){let b=a.uint32();switch(b>>>3){case 1:d.SeqID=a.uint64();break;case 2:d.LogID=a.uint64();break;case 3:d.service=a.int32();break;case 4:d.method=a.int32();break;case 5:d.headers&&d.headers.length||(d.headers=[]),d.headers.push(fs.pbbp2.Header.decode(a,a.uint32()));break;case 6:d.payloadEncoding=a.string();break;case 7:d.payloadType=a.string();break;case 8:d.payload=a.bytes();break;case 9:d.LogIDNew=a.string();break;default:a.skipType(7&b)}}if(!d.hasOwnProperty("SeqID"))throw fr.ProtocolError("missing required 'SeqID'",{instance:d});if(!d.hasOwnProperty("LogID"))throw fr.ProtocolError("missing required 'LogID'",{instance:d});if(!d.hasOwnProperty("service"))throw fr.ProtocolError("missing required 'service'",{instance:d});if(!d.hasOwnProperty("method"))throw fr.ProtocolError("missing required 'method'",{instance:d});return d},a.decodeDelimited=function(a){return a instanceof fp||(a=new fp(a)),this.decode(a,a.uint32())},a.verify=function(a){if("object"!=typeof a||null===a)return"object expected";if(!fr.isInteger(a.SeqID)&&!(a.SeqID&&fr.isInteger(a.SeqID.low)&&fr.isInteger(a.SeqID.high)))return"SeqID: integer|Long expected";if(!fr.isInteger(a.LogID)&&!(a.LogID&&fr.isInteger(a.LogID.low)&&fr.isInteger(a.LogID.high)))return"LogID: integer|Long expected";if(!fr.isInteger(a.service))return"service: integer expected";if(!fr.isInteger(a.method))return"method: integer expected";if(null!=a.headers&&a.hasOwnProperty("headers")){if(!Array.isArray(a.headers))return"headers: array expected";for(let b=0;b<a.headers.length;++b){let c=fs.pbbp2.Header.verify(a.headers[b]);if(c)return"headers."+c}}return null!=a.payloadEncoding&&a.hasOwnProperty("payloadEncoding")&&!fr.isString(a.payloadEncoding)?"payloadEncoding: string expected":null!=a.payloadType&&a.hasOwnProperty("payloadType")&&!fr.isString(a.payloadType)?"payloadType: string expected":null!=a.payload&&a.hasOwnProperty("payload")&&!(a.payload&&"number"==typeof a.payload.length||fr.isString(a.payload))?"payload: buffer expected":null!=a.LogIDNew&&a.hasOwnProperty("LogIDNew")&&!fr.isString(a.LogIDNew)?"LogIDNew: string expected":null},a.fromObject=function(a){if(a instanceof fs.pbbp2.Frame)return a;let b=new fs.pbbp2.Frame;if(null!=a.SeqID&&(fr.Long?(b.SeqID=fr.Long.fromValue(a.SeqID)).unsigned=!0:"string"==typeof a.SeqID?b.SeqID=parseInt(a.SeqID,10):"number"==typeof a.SeqID?b.SeqID=a.SeqID:"object"==typeof a.SeqID&&(b.SeqID=new fr.LongBits(a.SeqID.low>>>0,a.SeqID.high>>>0).toNumber(!0))),null!=a.LogID&&(fr.Long?(b.LogID=fr.Long.fromValue(a.LogID)).unsigned=!0:"string"==typeof a.LogID?b.LogID=parseInt(a.LogID,10):"number"==typeof a.LogID?b.LogID=a.LogID:"object"==typeof a.LogID&&(b.LogID=new fr.LongBits(a.LogID.low>>>0,a.LogID.high>>>0).toNumber(!0))),null!=a.service&&(b.service=0|a.service),null!=a.method&&(b.method=0|a.method),a.headers){if(!Array.isArray(a.headers))throw TypeError(".pbbp2.Frame.headers: array expected");b.headers=[];for(let c=0;c<a.headers.length;++c){if("object"!=typeof a.headers[c])throw TypeError(".pbbp2.Frame.headers: object expected");b.headers[c]=fs.pbbp2.Header.fromObject(a.headers[c])}}return null!=a.payloadEncoding&&(b.payloadEncoding=String(a.payloadEncoding)),null!=a.payloadType&&(b.payloadType=String(a.payloadType)),null!=a.payload&&("string"==typeof a.payload?fr.base64.decode(a.payload,b.payload=fr.newBuffer(fr.base64.length(a.payload)),0):a.payload.length>=0&&(b.payload=a.payload)),null!=a.LogIDNew&&(b.LogIDNew=String(a.LogIDNew)),b},a.toObject=function(a,b){b||(b={});let c={};if((b.arrays||b.defaults)&&(c.headers=[]),b.defaults){if(fr.Long){let a=new fr.Long(0,0,!0);c.SeqID=b.longs===String?a.toString():b.longs===Number?a.toNumber():a}else c.SeqID=b.longs===String?"0":0;if(fr.Long){let a=new fr.Long(0,0,!0);c.LogID=b.longs===String?a.toString():b.longs===Number?a.toNumber():a}else c.LogID=b.longs===String?"0":0;c.service=0,c.method=0,c.payloadEncoding="",c.payloadType="",b.bytes===String?c.payload="":(c.payload=[],b.bytes!==Array&&(c.payload=fr.newBuffer(c.payload))),c.LogIDNew=""}if(null!=a.SeqID&&a.hasOwnProperty("SeqID")&&("number"==typeof a.SeqID?c.SeqID=b.longs===String?String(a.SeqID):a.SeqID:c.SeqID=b.longs===String?fr.Long.prototype.toString.call(a.SeqID):b.longs===Number?new fr.LongBits(a.SeqID.low>>>0,a.SeqID.high>>>0).toNumber(!0):a.SeqID),null!=a.LogID&&a.hasOwnProperty("LogID")&&("number"==typeof a.LogID?c.LogID=b.longs===String?String(a.LogID):a.LogID:c.LogID=b.longs===String?fr.Long.prototype.toString.call(a.LogID):b.longs===Number?new fr.LongBits(a.LogID.low>>>0,a.LogID.high>>>0).toNumber(!0):a.LogID),null!=a.service&&a.hasOwnProperty("service")&&(c.service=a.service),null!=a.method&&a.hasOwnProperty("method")&&(c.method=a.method),a.headers&&a.headers.length){c.headers=[];for(let d=0;d<a.headers.length;++d)c.headers[d]=fs.pbbp2.Header.toObject(a.headers[d],b)}return null!=a.payloadEncoding&&a.hasOwnProperty("payloadEncoding")&&(c.payloadEncoding=a.payloadEncoding),null!=a.payloadType&&a.hasOwnProperty("payloadType")&&(c.payloadType=a.payloadType),null!=a.payload&&a.hasOwnProperty("payload")&&(c.payload=b.bytes===String?fr.base64.encode(a.payload,0,a.payload.length):b.bytes===Array?Array.prototype.slice.call(a.payload):a.payload),null!=a.LogIDNew&&a.hasOwnProperty("LogIDNew")&&(c.LogIDNew=a.LogIDNew),c},a.prototype.toJSON=function(){return this.constructor.toObject(this,fo.util.toJSONOptions)},a.getTypeUrl=function(a){return void 0===a&&(a="type.googleapis.com"),a+"/pbbp2.Frame"},a}(),a})(),fu=a=>ft.Frame.decode(a);class fv{constructor(){this.client={appId:"",appSecret:"",domain:m.Feishu},this.ws={connectUrl:"",pingInterval:12e4,reconnectCount:-1,reconnectInterval:12e4,reconnectNonce:3e4,deviceId:"",serviceId:"",autoReconnect:!0},this.wsInstance=null}updateClient(a){Object.assign(this.client,a)}updateWs(a){Object.assign(this.ws,a)}getClient(a){return void 0===a?this.client:this.client[a]}getWS(a){return void 0===a?this.ws:this.ws[a]}get wsConfigUrl(){return`${this.getClient("domain")}/callback/ws/endpoint`}setWSInstance(a){this.wsInstance=a}getWSInstance(){return this.wsInstance}}class fw{constructor(a){this.cache=new Map,this.logger=a.logger,this.clearAtInterval()}mergeData(a){let{message_id:b,sum:c,seq:d,trace_id:e,data:f}=a,g=this.cache.get(b);if(g)g.buffer[d]=f;else{let a=Array(c).fill(void 0);a[d]=f,this.cache.set(b,{buffer:a,trace_id:e,message_id:b,create_time:Date.now()})}let h=this.cache.get(b);if(null==h?void 0:h.buffer.every(a=>!!a)){let a=h.buffer.reduce((a,b)=>{let c=new Uint8Array(a.byteLength+b.byteLength);return c.set(a,0),c.set(b,a.length),c},new Uint8Array([])),c=JSON.parse(new TextDecoder("utf-8").decode(a));return this.deleteCache(b),c}return null}deleteCache(a){this.cache.delete(a)}clearAtInterval(){let a=1e4;setInterval(()=>{let b=Date.now();this.cache.forEach((c,d)=>{var e;let{create_time:f,trace_id:g,message_id:h}=c;b-f>a&&(null==(e=this.logger)||e.debug(`${h} event data is deleted as expired, trace_id: ${g}`),this.deleteCache(d))})},1e4)}}!function(a){a[a.ok=0]="ok",a[a.system_busy=1]="system_busy",a[a.forbidden=403]="forbidden",a[a.auth_failed=514]="auth_failed",a[a.internal_error=0x3b9b6797]="internal_error",a[a.exceed_conn_limit=0x3b9b679e]="exceed_conn_limit"}(o||(o={})),function(a){a[a.control=0]="control",a[a.data=1]="data"}(p||(p={})),function(a){a.type="type",a.message_id="message_id",a.sum="sum",a.seq="seq",a.trace_id="trace_id",a.biz_rt="biz_rt",a.handshake_status="handshake-status",a.handshake_msg="handshake-msg",a.handshake_autherrcode="handshake-autherrcode"}(q||(q={})),function(a){a.event="event",a.card="card",a.ping="ping",a.pong="pong"}(r||(r={})),function(a){a[a.ok=200]="ok",a[a.internal_server_error=500]="internal_server_error"}(s||(s={}));class fx{constructor(a){this.wsConfig=new fv,this.reconnectGeneration=0,this.isConnecting=!1,this.reconnectInfo={lastConnectTime:0,nextConnectTime:0};const{appId:b,appSecret:c,agent:d,domain:e=m.Feishu,httpInstance:f=dE,loggerLevel:g=n.info,logger:h=e1,autoReconnect:i=!0}=a;this.logger=new e2(g,h),dT(!b,()=>this.logger.error("appId is needed")),dT(!c,()=>this.logger.error("appSecret is needed")),this.agent=d,this.dataCache=new fw({logger:this.logger}),this.httpInstance=f,this.wsConfig.updateClient({appId:b,appSecret:c,domain:dR(e)}),this.wsConfig.updateWs({autoReconnect:i})}pullConnectConfig(){return dz(this,void 0,void 0,function*(){let{appId:a,appSecret:b}=this.wsConfig.getClient();try{let{code:c,data:{URL:d,ClientConfig:e},msg:f}=yield this.httpInstance.request({method:"post",url:this.wsConfig.wsConfigUrl,data:{AppID:a,AppSecret:b},headers:{locale:"zh"},timeout:15e3});if(c!==o.ok&&(this.logger.error("[ws]",`code: ${c}, ${c===o.system_busy?f:"system busy"}`),c===o.system_busy||c===o.internal_error))return!1;let{device_id:g,service_id:h}=dv().parse(d);return this.wsConfig.updateWs({connectUrl:d,deviceId:g,serviceId:h,pingInterval:1e3*e.PingInterval,reconnectCount:e.ReconnectCount,reconnectInterval:1e3*e.ReconnectInterval,reconnectNonce:1e3*e.ReconnectNonce}),this.logger.debug("[ws]",`get connect config success, ws url: ${d}`),!0}catch(a){return this.logger.error("[ws]",(null==a?void 0:a.message)||"system busy"),!1}})}connect(){let a,b=this.wsConfig.getWS("connectUrl");try{let{agent:c}=this;a=new dx(b,{agent:c})}catch(a){this.logger.error("[ws]","new WebSocket error")}return a?new Promise(b=>{a.on("open",()=>{this.logger.debug("[ws]","ws connect success"),this.wsConfig.setWSInstance(a),this.pingLoop(),b(!0)}),a.on("error",()=>{this.logger.error("[ws]","ws connect failed"),b(!1)})}):Promise.resolve(!1)}reConnect(a=!1){return dz(this,void 0,void 0,function*(){if(this.isConnecting&&!a)return void this.logger.debug("[ws]","repeat connection");this.isConnecting=!0;let b=++this.reconnectGeneration,c=()=>(this.reconnectInfo.lastConnectTime=Date.now(),this.pullConnectConfig().then(a=>a?this.connect():Promise.resolve(!1)).then(a=>a?(this.communicate(),Promise.resolve(!0)):Promise.resolve(!1)));this.pingInterval&&clearTimeout(this.pingInterval),this.reconnectInterval&&clearTimeout(this.reconnectInterval);let d=this.wsConfig.getWSInstance();if(a){d&&(null==d||d.terminate());let a=!1;try{a=yield c()}finally{this.isConnecting=!1}a||(this.logger.error("[ws]","connect failed"),yield this.reConnect()),this.logger.info("[ws]","ws client ready");return}let{autoReconnect:e,reconnectNonce:f,reconnectCount:g,reconnectInterval:h}=this.wsConfig.getWS();if(!e)return;this.logger.info("[ws]","reconnect"),d&&(null==d||d.terminate()),this.wsConfig.setWSInstance(null);let i=f?f*Math.random():0;this.reconnectInterval=setTimeout(()=>dz(this,void 0,void 0,function*(){(function a(d){return dz(this,void 0,void 0,function*(){if(b!==this.reconnectGeneration)return;d++;let e=yield c();if(b===this.reconnectGeneration){if(e){this.logger.debug("[ws]","reconnect success"),this.isConnecting=!1;return}if(this.logger.info("ws",`unable to connect to the server after trying ${d} times")`),g>=0&&d>=g){this.isConnecting=!1;return}this.reconnectInterval=setTimeout(()=>{a.bind(this)(d)},h),this.reconnectInfo.nextConnectTime=Date.now()+h}})}).bind(this)(0)}),i),this.reconnectInfo.nextConnectTime=Date.now()+i})}pingLoop(){let{serviceId:a,pingInterval:b}=this.wsConfig.getWS(),c=this.wsConfig.getWSInstance();if((null==c?void 0:c.readyState)===dx.OPEN){let b={headers:[{key:q.type,value:r.ping}],service:Number(a),method:p.control,SeqID:0,LogID:0};this.sendMessage(b),this.logger.trace("[ws]","ping success")}this.pingInterval=setTimeout(this.pingLoop.bind(this),b)}communicate(){let a=this.wsConfig.getWSInstance();null==a||a.on("message",a=>dz(this,void 0,void 0,function*(){let b=fu(a),{method:c}=b;c===p.control&&(yield this.handleControlData(b)),c===p.data&&(yield this.handleEventData(b))})),null==a||a.on("error",a=>{this.logger.error("[ws]","ws error")}),null==a||a.on("close",()=>{this.logger.debug("[ws]","client closed"),this.reConnect()})}handleControlData(a){var b;return dz(this,void 0,void 0,function*(){let c=null==(b=a.headers.find(a=>a.key===q.type))?void 0:b.value,d=a.payload;if(c!==r.ping&&c===r.pong&&d){this.logger.trace("[ws]","receive pong");let{PingInterval:a,ReconnectCount:b,ReconnectInterval:c,ReconnectNonce:e}=JSON.parse(new TextDecoder("utf-8").decode(d));this.wsConfig.updateWs({pingInterval:1e3*a,reconnectCount:b,reconnectInterval:1e3*c,reconnectNonce:1e3*e}),this.logger.trace("[ws]","update wsConfig with pong data")}})}handleEventData(a){var b;return dz(this,void 0,void 0,function*(){let{message_id:c,sum:d,seq:e,type:f,trace_id:g}=a.headers.reduce((a,b)=>(a[b.key]=b.value,a),{}),h=a.payload;if(f!==r.event)return;let i=this.dataCache.mergeData({message_id:c,sum:Number(d),seq:Number(e),trace_id:g,data:h});if(!i)return;this.logger.debug("[ws]",`receive message, message_type: ${f}; message_id: ${c}; trace_id: ${g}; data: ${i.data}`);let j={code:s.ok},k=Date.now();try{let a=yield null==(b=this.eventDispatcher)?void 0:b.invoke(i,{needCheck:!1});a&&(j.data=Buffer.from(JSON.stringify(a)).toString("base64"))}catch(a){j.code=s.internal_server_error,this.logger.error("[ws]",`invoke event failed, message_type: ${f}; message_id: ${c}; trace_id: ${g}; error: ${a}`)}let l=Date.now();this.sendMessage(Object.assign(Object.assign({},a),{headers:[...a.headers,{key:q.biz_rt,value:String(k-l)}],payload:new TextEncoder().encode(JSON.stringify(j))}))})}sendMessage(a){var b;let c=this.wsConfig.getWSInstance();if((null==c?void 0:c.readyState)===dx.OPEN){let c=ft.Frame.encode(a).finish();null==(b=this.wsConfig.getWSInstance())||b.send(c,a=>{a&&this.logger.error("[ws]","send data failed")})}}getReconnectInfo(){return this.reconnectInfo}close(a={}){let{force:b=!1}=a;this.reconnectGeneration++,this.pingInterval&&(clearTimeout(this.pingInterval),this.pingInterval=void 0),this.reconnectInterval&&(clearTimeout(this.reconnectInterval),this.reconnectInterval=void 0),this.isConnecting=!1;let c=this.wsConfig.getWSInstance();c&&(c.removeAllListeners(),b?c.terminate():c.close(),this.wsConfig.setWSInstance(null)),this.logger.info("[ws]",`ws client closed manually${b?" (force)":""}`)}start(a){return dz(this,void 0,void 0,function*(){this.logger.info("[ws]",`receive events or callbacks through persistent connection only available in self-build & Feishu app, Configured in:
3
- Developer Console(开发者后台)
4
- ->
5
- Events and Callbacks(事件与回调)
6
- ->
7
- Mode of event/callback subscription(订阅方式)
8
- ->
9
- Receive events/callbacks through persistent connection(使用 长连接 接收事件/回调)`);let{eventDispatcher:b}=a;b?(this.eventDispatcher=b,this.reConnect(!0)):this.logger.warn("[ws]","client need to start with a eventDispatcher")})}}class fy{constructor(){this.sessions=new Map}set(a,b){return dz(this,void 0,void 0,function*(){let c=e5(this.sessions.get(a.toString())||{},b);return this.sessions.set(a.toString(),c),!0})}get(a){return dz(this,void 0,void 0,function*(){return this.sessions.get(a.toString())})}}!function(a){a[a.ERROR=-1]="ERROR",a[a.SUCCESS=0]="SUCCESS",a[a.EXPIRED=1]="EXPIRED",a[a.CANCELLED=2]="CANCELLED",a[a.FAILED=3]="FAILED",a[a.OTHER=4]="OTHER"}(t||(t={}));class fz{constructor(a){this.completions={create:this.create.bind(this),createWithStream:this.createWithStream.bind(this),sessionRecords:{get:this.getRecords.bind(this),update:this.updateRecords.bind(this)}},this.client=a.client,this.logger=a.client.logger,this.cache=a.cache||new fy}getSessionId(a){var b;return dz(this,void 0,void 0,function*(){let{sessionId:c,payload:d,options:e}=a,f=yield this.getRecords();if(c&&c in f)return f[c];let g=yield this.client.aily.v1.ailySession.create({data:d},e);if(0!==g.code||!g.data)return void this.logger.error("get aily session id error",g.msg);{let a=null==(b=g.data.session)?void 0:b.id;return c&&(yield this.updateRecords({[c]:a})),a}})}waitReply(a,b){var c,d;return dz(this,void 0,void 0,function*(){let{sessionId:e,ailyAppId:f,message:g,sessionInfo:h,messageInfo:i,runInfo:j,skillId:k}=a,l=yield this.getSessionId({sessionId:e,payload:h,options:b});if(!l)throw t.ERROR;let m=yield this.client.aily.v1.ailySessionAilyMessage.create({path:{aily_session_id:l},data:Object.assign(Object.assign({},i),{content:g,idempotent_id:`${Date.now()}`,content_type:"MDX"})},b);if(!(0===m.code&&m.data))throw this.logger.error("create aily message error",m.msg),t.ERROR;let n=null==(c=m.data.message)?void 0:c.id,o=yield this.client.aily.v1.ailySessionRun.create({path:{aily_session_id:l},data:Object.assign({app_id:f,skill_id:k},j)},b);if(!(0===o.code&&o.data))throw this.logger.error("create aily session run error",o.msg),t.ERROR;let p=null==(d=o.data.run)?void 0:d.id;if(!p)throw this.logger.error("run id is empty"),t.ERROR;let q=()=>dz(this,void 0,void 0,function*(){return new Promise(a=>{setTimeout(()=>dz(this,void 0,void 0,function*(){var c,d;let e=yield this.client.aily.v1.ailySessionRun.get({path:{aily_session_id:l,run_id:p}},b);if(!(0===e.code&&e.data))return void a(3);switch(null==(d=null==(c=e.data)?void 0:c.run)?void 0:d.status){case"QUEUED":case"IN_PROGRESS":yield dz(this,void 0,void 0,function*(){a((yield q()))});case"COMPLETED":a(t.SUCCESS);case"EXPIRED":a(t.EXPIRED);case"CANCELLED":a(t.CANCELLED);case"FAILED":a(t.FAILED);default:a(t.OTHER)}}),500)})}),r=yield q();if(r!==t.SUCCESS)throw this.logger.error("aily run error"),r;return{ailySessionId:l,runId:p,messageId:n}})}create(a,b){var c,d,e,f,g;return dz(this,void 0,void 0,function*(){let h,{ailySessionId:i,runId:j}=yield this.waitReply(a,b);try{for(var k,l=!0,m=dD((yield this.client.aily.v1.ailySessionAilyMessage.listWithIterator({path:{aily_session_id:i},params:{run_id:j,with_partial_message:!1}},b)));!(c=(k=yield m.next()).done);){f=k.value,l=!1;try{let a=f;if(!a)continue;null==(g=null==a?void 0:a.messages)||g.forEach(a=>{var b;(null==(b=a.sender)?void 0:b.sender_type)==="ASSISTANT"&&(h=a)})}finally{l=!0}}}catch(a){d={error:a}}finally{try{!l&&!c&&(e=m.return)&&(yield e.call(m))}finally{if(d)throw d.error}}if(!h)throw this.logger.error("no aily reply"),t.ERROR;return h})}createWithStream(a,b){return dz(this,void 0,void 0,function*(){let{ailySessionId:c,runId:d,messageId:e}=yield this.waitReply(a,b),f=()=>this.client.aily.v1.ailySessionAilyMessage.listWithIterator({path:{aily_session_id:c},params:{run_id:d,with_partial_message:!0}},b),g=!1;return{[Symbol.asyncIterator](){return dC(this,arguments,function*(){var a,b,c,d;try{for(var h,i=!0,j=dD((yield dB(f())));!(a=(h=yield dB(j.next())).done);){d=h.value,i=!1;try{let a=d;if(!a)continue;for(let b of a.messages||[])if(g){if(yield yield dB(b),"COMPLETED"===b.status)return yield dB(void 0)}else b.id===e&&"COMPLETED"===b.status&&(g=!0)}finally{i=!0}}}catch(a){b={error:a}}finally{try{!i&&!a&&(c=j.return)&&(yield dB(c.call(j)))}finally{if(b)throw b.error}}})}}})}getRecords(){return dz(this,void 0,void 0,function*(){return(yield this.cache.get(dM))||{}})}updateRecords(a){return dz(this,void 0,void 0,function*(){yield this.cache.set(dM,a)})}}},67089:a=>{"use strict";function b(){this._listeners={}}a.exports=b,b.prototype.on=function(a,b,c){return(this._listeners[a]||(this._listeners[a]=[])).push({fn:b,ctx:c||this}),this},b.prototype.off=function(a,b){if(void 0===a)this._listeners={};else if(void 0===b)this._listeners[a]=[];else for(var c=this._listeners[a],d=0;d<c.length;)c[d].fn===b?c.splice(d,1):++d;return this},b.prototype.emit=function(a){var b=this._listeners[a];if(b){for(var c=[],d=1;d<arguments.length;)c.push(arguments[d++]);for(d=0;d<b.length;)b[d].fn.apply(b[d++].ctx,c)}return this}},68439:(a,b,c)=>{"use strict";var d=c(53004),e=c(48399),f=e([d("%String.prototype.indexOf%")]);a.exports=function(a,b){var c=d(a,!!b);return"function"==typeof c&&f(a,".prototype.")>-1?e([c]):c}},68627:function(a,b,c){"use strict";var d=b;function e(a,b,c){for(var d=Object.keys(b),e=0;e<d.length;++e)void 0!==a[d[e]]&&c||(a[d[e]]=b[d[e]]);return a}function f(a){function b(a,c){if(!(this instanceof b))return new b(a,c);Object.defineProperty(this,"message",{get:function(){return a}}),Error.captureStackTrace?Error.captureStackTrace(this,b):Object.defineProperty(this,"stack",{value:Error().stack||""}),c&&e(this,c)}return b.prototype=Object.create(Error.prototype,{constructor:{value:b,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return a},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),b}d.asPromise=c(14684),d.base64=c(92092),d.EventEmitter=c(67089),d.float=c(63287),d.inquire=c(69124),d.utf8=c(14196),d.pool=c(78513),d.LongBits=c(31308),d.isNode=!!("u">typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),d.global=d.isNode&&global||"u">typeof window&&window||"u">typeof self&&self||this,d.emptyArray=Object.freeze?Object.freeze([]):[],d.emptyObject=Object.freeze?Object.freeze({}):{},d.isInteger=Number.isInteger||function(a){return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a},d.isString=function(a){return"string"==typeof a||a instanceof String},d.isObject=function(a){return a&&"object"==typeof a},d.isset=d.isSet=function(a,b){var c=a[b];return!!(null!=c&&a.hasOwnProperty(b))&&("object"!=typeof c||(Array.isArray(c)?c.length:Object.keys(c).length)>0)},d.Buffer=function(){try{var a=d.inquire("buffer").Buffer;return a.prototype.utf8Write?a:null}catch(a){return null}}(),d._Buffer_from=null,d._Buffer_allocUnsafe=null,d.newBuffer=function(a){return"number"==typeof a?d.Buffer?d._Buffer_allocUnsafe(a):new d.Array(a):d.Buffer?d._Buffer_from(a):"u"<typeof Uint8Array?a:new Uint8Array(a)},d.Array="u">typeof Uint8Array?Uint8Array:Array,d.Long=d.global.dcodeIO&&d.global.dcodeIO.Long||d.global.Long||d.inquire("long"),d.key2Re=/^true|false|0|1$/,d.key32Re=/^-?(?:0|[1-9][0-9]*)$/,d.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,d.longToHash=function(a){return a?d.LongBits.from(a).toHash():d.LongBits.zeroHash},d.longFromHash=function(a,b){var c=d.LongBits.fromHash(a);return d.Long?d.Long.fromBits(c.lo,c.hi,b):c.toNumber(!!b)},d.merge=e,d.lcFirst=function(a){return a.charAt(0).toLowerCase()+a.substring(1)},d.newError=f,d.ProtocolError=f("ProtocolError"),d.oneOfGetter=function(a){for(var b={},c=0;c<a.length;++c)b[a[c]]=1;return function(){for(var a=Object.keys(this),c=a.length-1;c>-1;--c)if(1===b[a[c]]&&void 0!==this[a[c]]&&null!==this[a[c]])return a[c]}},d.oneOfSetter=function(a){return function(b){for(var c=0;c<a.length;++c)a[c]!==b&&delete this[a[c]]}},d.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},d._configure=function(){var a=d.Buffer;if(!a){d._Buffer_from=d._Buffer_allocUnsafe=null;return}d._Buffer_from=a.from!==Uint8Array.from&&a.from||function(b,c){return new a(b,c)},d._Buffer_allocUnsafe=a.allocUnsafe||function(b){return new a(b)}}},69124:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},72786:(a,b,c)=>{"use strict";let{tokenChars:d}=c(97861);a.exports={parse:function(a){let b=new Set,c=-1,e=-1,f=0;for(;f<a.length;f++){let g=a.charCodeAt(f);if(-1===e&&1===d[g])-1===c&&(c=f);else if(0!==f&&(32===g||9===g))-1===e&&-1!==c&&(e=f);else if(44===g){if(-1===c)throw SyntaxError(`Unexpected character at index ${f}`);-1===e&&(e=f);let d=a.slice(c,e);if(b.has(d))throw SyntaxError(`The "${d}" subprotocol is duplicated`);b.add(d),c=e=-1}else throw SyntaxError(`Unexpected character at index ${f}`)}if(-1===c||-1!==e)throw SyntaxError("Unexpected end of input");let g=a.slice(c,f);if(b.has(g))throw SyntaxError(`The "${g}" subprotocol is duplicated`);return b.add(g),b}}},72962:(a,b,c)=>{"use strict";var d=c(89735),e=c(92725);a.exports={formats:c(11478),parse:e,stringify:d}},78513:a=>{"use strict";a.exports=function a(a,b,c){var d=c||8192,e=d>>>1,f=null,g=d;return function(c){if(c<1||c>e)return a(c);g+c>d&&(f=a(d),g=0);var h=b.call(f,g,g+=c);return 7&g&&(g=(7|g)+1),h}}},78900:(a,b,c)=>{"use strict";let{kForOnEventAttribute:d,kListener:e}=c(17165),f=Symbol("kCode"),g=Symbol("kData"),h=Symbol("kError"),i=Symbol("kMessage"),j=Symbol("kReason"),k=Symbol("kTarget"),l=Symbol("kType"),m=Symbol("kWasClean");class n{constructor(a){this[k]=null,this[l]=a}get target(){return this[k]}get type(){return this[l]}}Object.defineProperty(n.prototype,"target",{enumerable:!0}),Object.defineProperty(n.prototype,"type",{enumerable:!0});class o extends n{constructor(a,b={}){super(a),this[f]=void 0===b.code?0:b.code,this[j]=void 0===b.reason?"":b.reason,this[m]=void 0!==b.wasClean&&b.wasClean}get code(){return this[f]}get reason(){return this[j]}get wasClean(){return this[m]}}Object.defineProperty(o.prototype,"code",{enumerable:!0}),Object.defineProperty(o.prototype,"reason",{enumerable:!0}),Object.defineProperty(o.prototype,"wasClean",{enumerable:!0});class p extends n{constructor(a,b={}){super(a),this[h]=void 0===b.error?null:b.error,this[i]=void 0===b.message?"":b.message}get error(){return this[h]}get message(){return this[i]}}Object.defineProperty(p.prototype,"error",{enumerable:!0}),Object.defineProperty(p.prototype,"message",{enumerable:!0});class q extends n{constructor(a,b={}){super(a),this[g]=void 0===b.data?null:b.data}get data(){return this[g]}}Object.defineProperty(q.prototype,"data",{enumerable:!0});let r={addEventListener(a,b,c={}){let f;for(let f of this.listeners(a))if(!c[d]&&f[e]===b&&!f[d])return;if("message"===a)f=function(a,c){let d=new q("message",{data:c?a:a.toString()});d[k]=this,s(b,this,d)};else if("close"===a)f=function(a,c){let d=new o("close",{code:a,reason:c.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});d[k]=this,s(b,this,d)};else if("error"===a)f=function(a){let c=new p("error",{error:a,message:a.message});c[k]=this,s(b,this,c)};else{if("open"!==a)return;f=function(){let a=new n("open");a[k]=this,s(b,this,a)}}f[d]=!!c[d],f[e]=b,c.once?this.once(a,f):this.on(a,f)},removeEventListener(a,b){for(let c of this.listeners(a))if(c[e]===b&&!c[d]){this.removeListener(a,c);break}}};function s(a,b,c){"object"==typeof a&&a.handleEvent?a.handleEvent.call(a,c):a.call(b,c)}a.exports={CloseEvent:o,ErrorEvent:p,Event:n,EventTarget:r,MessageEvent:q}},80123:(a,b,c)=>{"use strict";let d=c(94735),e=c(55591),f=c(81630),g=c(91645),h=c(34631),{randomBytes:i,createHash:j}=c(55511),{Duplex:k,Readable:l}=c(27910),{URL:m}=c(1932),n=c(88634),o=c(13259),p=c(53455),{isBlob:q}=c(97861),{BINARY_TYPES:r,CLOSE_TIMEOUT:s,EMPTY_BUFFER:t,GUID:u,kForOnEventAttribute:v,kListener:w,kStatusCode:x,kWebSocket:y,NOOP:z}=c(17165),{EventTarget:{addEventListener:A,removeEventListener:B}}=c(78900),{format:C,parse:D}=c(24509),{toBuffer:E}=c(6361),F=Symbol("kAborted"),G=[8,13],H=["CONNECTING","OPEN","CLOSING","CLOSED"],I=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class J extends d{constructor(a,b,c){super(),this._binaryType=r[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=t,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=J.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==a?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===b?b=[]:Array.isArray(b)||("object"==typeof b&&null!==b?(c=b,b=[]):b=[b]),K(this,a,b,c)):(this._autoPong=c.autoPong,this._closeTimeout=c.closeTimeout,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(a){r.includes(a)&&(this._binaryType=a,this._receiver&&(this._receiver._binaryType=a))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(a,b,c){let d=new o({allowSynchronousEvents:c.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:c.maxPayload,skipUTF8Validation:c.skipUTF8Validation}),e=new p(a,this._extensions,c.generateMask);this._receiver=d,this._sender=e,this._socket=a,d[y]=this,e[y]=this,a[y]=this,d.on("conclude",Q),d.on("drain",R),d.on("error",S),d.on("message",U),d.on("ping",V),d.on("pong",W),e.onerror=Y,a.setTimeout&&a.setTimeout(0),a.setNoDelay&&a.setNoDelay(),b.length>0&&a.unshift(b),a.on("close",$),a.on("data",_),a.on("end",aa),a.on("error",ab),this._readyState=J.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=J.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[n.extensionName]&&this._extensions[n.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=J.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(a,b){if(this.readyState!==J.CLOSED){if(this.readyState===J.CONNECTING){let a="WebSocket was closed before the connection was established";O(this,this._req,a);return}if(this.readyState===J.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=J.CLOSING,this._sender.close(a,b,!this._isServer,a=>{!a&&(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),Z(this)}}pause(){this.readyState!==J.CONNECTING&&this.readyState!==J.CLOSED&&(this._paused=!0,this._socket.pause())}ping(a,b,c){if(this.readyState===J.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");("function"==typeof a?(c=a,a=b=void 0):"function"==typeof b&&(c=b,b=void 0),"number"==typeof a&&(a=a.toString()),this.readyState!==J.OPEN)?P(this,a,c):(void 0===b&&(b=!this._isServer),this._sender.ping(a||t,b,c))}pong(a,b,c){if(this.readyState===J.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");("function"==typeof a?(c=a,a=b=void 0):"function"==typeof b&&(c=b,b=void 0),"number"==typeof a&&(a=a.toString()),this.readyState!==J.OPEN)?P(this,a,c):(void 0===b&&(b=!this._isServer),this._sender.pong(a||t,b,c))}resume(){this.readyState!==J.CONNECTING&&this.readyState!==J.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(a,b,c){if(this.readyState===J.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof b&&(c=b,b={}),"number"==typeof a&&(a=a.toString()),this.readyState!==J.OPEN)return void P(this,a,c);let d={binary:"string"!=typeof a,mask:!this._isServer,compress:!0,fin:!0,...b};this._extensions[n.extensionName]||(d.compress=!1),this._sender.send(a||t,d,c)}terminate(){if(this.readyState!==J.CLOSED){if(this.readyState===J.CONNECTING){let a="WebSocket was closed before the connection was established";O(this,this._req,a);return}this._socket&&(this._readyState=J.CLOSING,this._socket.destroy())}}}function K(a,b,c,d){let g,h,k,l,o={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:s,protocolVersion:G[1],maxPayload:0x6400000,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...d,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(a._autoPong=o.autoPong,a._closeTimeout=o.closeTimeout,!G.includes(o.protocolVersion))throw RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${G.join(", ")})`);if(b instanceof m)g=b;else try{g=new m(b)}catch(a){throw SyntaxError(`Invalid URL: ${b}`)}"http:"===g.protocol?g.protocol="ws:":"https:"===g.protocol&&(g.protocol="wss:"),a._url=g.href;let p="wss:"===g.protocol,q="ws+unix:"===g.protocol;if("ws:"===g.protocol||p||q?q&&!g.pathname?h="The URL's pathname is empty":g.hash&&(h="The URL contains a fragment identifier"):h='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',h){let b=SyntaxError(h);if(0!==a._redirects)return void L(a,b);throw b}let r=p?443:80,t=i(16).toString("base64"),v=p?e.request:f.request,w=new Set;if(o.createConnection=o.createConnection||(p?N:M),o.defaultPort=o.defaultPort||r,o.port=g.port||r,o.host=g.hostname.startsWith("[")?g.hostname.slice(1,-1):g.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":t,Connection:"Upgrade",Upgrade:"websocket"},o.path=g.pathname+g.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(k=new n(!0!==o.perMessageDeflate?o.perMessageDeflate:{},!1,o.maxPayload),o.headers["Sec-WebSocket-Extensions"]=C({[n.extensionName]:k.offer()})),c.length){for(let a of c){if("string"!=typeof a||!I.test(a)||w.has(a))throw SyntaxError("An invalid or duplicated subprotocol was specified");w.add(a)}o.headers["Sec-WebSocket-Protocol"]=c.join(",")}if(o.origin&&(o.protocolVersion<13?o.headers["Sec-WebSocket-Origin"]=o.origin:o.headers.Origin=o.origin),(g.username||g.password)&&(o.auth=`${g.username}:${g.password}`),q){let a=o.path.split(":");o.socketPath=a[0],o.path=a[1]}if(o.followRedirects){if(0===a._redirects){a._originalIpc=q,a._originalSecure=p,a._originalHostOrSocketPath=q?o.socketPath:g.host;let b=d&&d.headers;if(d={...d,headers:{}},b)for(let[a,c]of Object.entries(b))d.headers[a.toLowerCase()]=c}else if(0===a.listenerCount("redirect")){let b=q?!!a._originalIpc&&o.socketPath===a._originalHostOrSocketPath:!a._originalIpc&&g.host===a._originalHostOrSocketPath;b&&(!a._originalSecure||p)||(delete o.headers.authorization,delete o.headers.cookie,b||delete o.headers.host,o.auth=void 0)}o.auth&&!d.headers.authorization&&(d.headers.authorization="Basic "+Buffer.from(o.auth).toString("base64")),l=a._req=v(o),a._redirects&&a.emit("redirect",a.url,l)}else l=a._req=v(o);o.timeout&&l.on("timeout",()=>{O(a,l,"Opening handshake has timed out")}),l.on("error",b=>{null===l||l[F]||(l=a._req=null,L(a,b))}),l.on("response",e=>{let f=e.headers.location,g=e.statusCode;if(f&&o.followRedirects&&g>=300&&g<400){let e;if(++a._redirects>o.maxRedirects)return void O(a,l,"Maximum redirects exceeded");l.abort();try{e=new m(f,b)}catch(b){L(a,SyntaxError(`Invalid URL: ${f}`));return}K(a,e,c,d)}else a.emit("unexpected-response",l,e)||O(a,l,`Unexpected server response: ${e.statusCode}`)}),l.on("upgrade",(b,c,d)=>{let e;if(a.emit("upgrade",b),a.readyState!==J.CONNECTING)return;l=a._req=null;let f=b.headers.upgrade;if(void 0===f||"websocket"!==f.toLowerCase())return void O(a,c,"Invalid Upgrade header");let g=j("sha1").update(t+u).digest("base64");if(b.headers["sec-websocket-accept"]!==g)return void O(a,c,"Invalid Sec-WebSocket-Accept header");let h=b.headers["sec-websocket-protocol"];if(void 0!==h?w.size?w.has(h)||(e="Server sent an invalid subprotocol"):e="Server sent a subprotocol but none was requested":w.size&&(e="Server sent no subprotocol"),e)return void O(a,c,e);h&&(a._protocol=h);let i=b.headers["sec-websocket-extensions"];if(void 0!==i){let b;if(!k)return void O(a,c,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");try{b=D(i)}catch(b){O(a,c,"Invalid Sec-WebSocket-Extensions header");return}let d=Object.keys(b);if(1!==d.length||d[0]!==n.extensionName)return void O(a,c,"Server indicated an extension that was not requested");try{k.accept(b[n.extensionName])}catch(b){O(a,c,"Invalid Sec-WebSocket-Extensions header");return}a._extensions[n.extensionName]=k}a.setSocket(c,d,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(l,a):l.end()}function L(a,b){a._readyState=J.CLOSING,a._errorEmitted=!0,a.emit("error",b),a.emitClose()}function M(a){return a.path=a.socketPath,g.connect(a)}function N(a){return a.path=void 0,a.servername||""===a.servername||(a.servername=g.isIP(a.host)?"":a.host),h.connect(a)}function O(a,b,c){a._readyState=J.CLOSING;let d=Error(c);Error.captureStackTrace(d,O),b.setHeader?(b[F]=!0,b.abort(),b.socket&&!b.socket.destroyed&&b.socket.destroy(),process.nextTick(L,a,d)):(b.destroy(d),b.once("error",a.emit.bind(a,"error")),b.once("close",a.emitClose.bind(a)))}function P(a,b,c){if(b){let c=q(b)?b.size:E(b).length;a._socket?a._sender._bufferedBytes+=c:a._bufferedAmount+=c}if(c){let b=Error(`WebSocket is not open: readyState ${a.readyState} (${H[a.readyState]})`);process.nextTick(c,b)}}function Q(a,b){let c=this[y];c._closeFrameReceived=!0,c._closeMessage=b,c._closeCode=a,void 0!==c._socket[y]&&(c._socket.removeListener("data",_),process.nextTick(X,c._socket),1005===a?c.close():c.close(a,b))}function R(){let a=this[y];a.isPaused||a._socket.resume()}function S(a){let b=this[y];void 0!==b._socket[y]&&(b._socket.removeListener("data",_),process.nextTick(X,b._socket),b.close(a[x])),b._errorEmitted||(b._errorEmitted=!0,b.emit("error",a))}function T(){this[y].emitClose()}function U(a,b){this[y].emit("message",a,b)}function V(a){let b=this[y];b._autoPong&&b.pong(a,!this._isServer,z),b.emit("ping",a)}function W(a){this[y].emit("pong",a)}function X(a){a.resume()}function Y(a){let b=this[y];b.readyState!==J.CLOSED&&(b.readyState===J.OPEN&&(b._readyState=J.CLOSING,Z(b)),this._socket.end(),b._errorEmitted||(b._errorEmitted=!0,b.emit("error",a)))}function Z(a){a._closeTimer=setTimeout(a._socket.destroy.bind(a._socket),a._closeTimeout)}function $(){let a=this[y];if(this.removeListener("close",$),this.removeListener("data",_),this.removeListener("end",aa),a._readyState=J.CLOSING,!this._readableState.endEmitted&&!a._closeFrameReceived&&!a._receiver._writableState.errorEmitted&&0!==this._readableState.length){let b=this.read(this._readableState.length);a._receiver.write(b)}a._receiver.end(),this[y]=void 0,clearTimeout(a._closeTimer),a._receiver._writableState.finished||a._receiver._writableState.errorEmitted?a.emitClose():(a._receiver.on("error",T),a._receiver.on("finish",T))}function _(a){this[y]._receiver.write(a)||this.pause()}function aa(){let a=this[y];a._readyState=J.CLOSING,a._receiver.end(),this.end()}function ab(){let a=this[y];this.removeListener("error",ab),this.on("error",z),a&&(a._readyState=J.CLOSING,this.destroy())}Object.defineProperty(J,"CONNECTING",{enumerable:!0,value:H.indexOf("CONNECTING")}),Object.defineProperty(J.prototype,"CONNECTING",{enumerable:!0,value:H.indexOf("CONNECTING")}),Object.defineProperty(J,"OPEN",{enumerable:!0,value:H.indexOf("OPEN")}),Object.defineProperty(J.prototype,"OPEN",{enumerable:!0,value:H.indexOf("OPEN")}),Object.defineProperty(J,"CLOSING",{enumerable:!0,value:H.indexOf("CLOSING")}),Object.defineProperty(J.prototype,"CLOSING",{enumerable:!0,value:H.indexOf("CLOSING")}),Object.defineProperty(J,"CLOSED",{enumerable:!0,value:H.indexOf("CLOSED")}),Object.defineProperty(J.prototype,"CLOSED",{enumerable:!0,value:H.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(a=>{Object.defineProperty(J.prototype,a,{enumerable:!0})}),["open","error","close","message"].forEach(a=>{Object.defineProperty(J.prototype,`on${a}`,{enumerable:!0,get(){for(let b of this.listeners(a))if(b[v])return b[w];return null},set(b){for(let b of this.listeners(a))if(b[v]){this.removeListener(a,b);break}"function"==typeof b&&this.addEventListener(a,b,{[v]:!0})}})}),J.prototype.addEventListener=A,J.prototype.removeEventListener=B,a.exports=J},82146:(a,b,c)=>{"use strict";c(80123);let{Duplex:d}=c(27910);function e(a){a.emit("close")}function f(){!this.destroyed&&this._writableState.finished&&this.destroy()}function g(a){this.removeListener("error",g),this.destroy(),0===this.listenerCount("error")&&this.emit("error",a)}a.exports=function(a,b){let c=!0,h=new d({...b,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return a.on("message",function(b,c){let d=!c&&h._readableState.objectMode?b.toString():b;h.push(d)||a.pause()}),a.once("error",function(a){h.destroyed||(c=!1,h.destroy(a))}),a.once("close",function(){h.destroyed||h.push(null)}),h._destroy=function(b,d){if(a.readyState===a.CLOSED){d(b),process.nextTick(e,h);return}let f=!1;a.once("error",function(a){f=!0,d(a)}),a.once("close",function(){f||d(b),process.nextTick(e,h)}),c&&a.terminate()},h._final=function(b){a.readyState===a.CONNECTING?a.once("open",function(){h._final(b)}):null!==a._socket&&(a._socket._writableState.finished?(b(),h._readableState.endEmitted&&h.destroy()):(a._socket.once("finish",function(){b()}),a.close()))},h._read=function(){a.isPaused&&a.resume()},h._write=function(b,c,d){a.readyState===a.CONNECTING?a.once("open",function(){h._write(b,c,d)}):a.send(b,d)},h.on("end",f),h.on("error",g),h}},83056:(a,b,c)=>{"use strict";a.exports=e;var d=c(68627);function e(a,b,c){if("function"!=typeof a)throw TypeError("rpcImpl must be a function");d.EventEmitter.call(this),this.rpcImpl=a,this.requestDelimited=!!b,this.responseDelimited=!!c}(e.prototype=Object.create(d.EventEmitter.prototype)).constructor=e,e.prototype.rpcCall=function a(b,c,e,f,g){if(!f)throw TypeError("request must be specified");var h=this;if(!g)return d.asPromise(a,h,b,c,e,f);if(!h.rpcImpl)return void setTimeout(function(){g(Error("already ended"))},0);try{return h.rpcImpl(b,c[h.requestDelimited?"encodeDelimited":"encode"](f).finish(),function(a,c){if(a)return h.emit("error",a,b),g(a);if(null===c)return void h.end(!0);if(!(c instanceof e))try{c=e[h.responseDelimited?"decodeDelimited":"decode"](c)}catch(a){return h.emit("error",a,b),g(a)}return h.emit("data",c,b),g(null,c)})}catch(a){h.emit("error",a,b),setTimeout(function(){g(a)},0);return}},e.prototype.end=function(a){return this.rpcImpl&&(a||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},88634:(a,b,c)=>{"use strict";let d,e=c(74075),f=c(6361),g=c(89672),{kStatusCode:h}=c(17165),i=Buffer[Symbol.species],j=Buffer.from([0,0,255,255]),k=Symbol("permessage-deflate"),l=Symbol("total-length"),m=Symbol("callback"),n=Symbol("buffers"),o=Symbol("error");class p{constructor(a,b,c){this._maxPayload=0|c,this._options=a||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!b,this._deflate=null,this._inflate=null,this.params=null,d||(d=new g(void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10))}static get extensionName(){return"permessage-deflate"}offer(){let a={};return this._options.serverNoContextTakeover&&(a.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(a.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(a.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?a.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(a.client_max_window_bits=!0),a}accept(a){return a=this.normalizeParams(a),this.params=this._isServer?this.acceptAsServer(a):this.acceptAsClient(a),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let a=this._deflate[m];this._deflate.close(),this._deflate=null,a&&a(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(a){let b=this._options,c=a.find(a=>(!1!==b.serverNoContextTakeover||!a.server_no_context_takeover)&&(!a.server_max_window_bits||!1!==b.serverMaxWindowBits&&("number"!=typeof b.serverMaxWindowBits||!(b.serverMaxWindowBits>a.server_max_window_bits)))&&("number"!=typeof b.clientMaxWindowBits||!!a.client_max_window_bits));if(!c)throw Error("None of the extension offers can be accepted");return b.serverNoContextTakeover&&(c.server_no_context_takeover=!0),b.clientNoContextTakeover&&(c.client_no_context_takeover=!0),"number"==typeof b.serverMaxWindowBits&&(c.server_max_window_bits=b.serverMaxWindowBits),"number"==typeof b.clientMaxWindowBits?c.client_max_window_bits=b.clientMaxWindowBits:(!0===c.client_max_window_bits||!1===b.clientMaxWindowBits)&&delete c.client_max_window_bits,c}acceptAsClient(a){let b=a[0];if(!1===this._options.clientNoContextTakeover&&b.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(b.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&b.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(b.client_max_window_bits=this._options.clientMaxWindowBits);return b}normalizeParams(a){return a.forEach(a=>{Object.keys(a).forEach(b=>{let c=a[b];if(c.length>1)throw Error(`Parameter "${b}" must have only a single value`);if(c=c[0],"client_max_window_bits"===b){if(!0!==c){let a=+c;if(!Number.isInteger(a)||a<8||a>15)throw TypeError(`Invalid value for parameter "${b}": ${c}`);c=a}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${b}": ${c}`)}else if("server_max_window_bits"===b){let a=+c;if(!Number.isInteger(a)||a<8||a>15)throw TypeError(`Invalid value for parameter "${b}": ${c}`);c=a}else if("client_no_context_takeover"===b||"server_no_context_takeover"===b){if(!0!==c)throw TypeError(`Invalid value for parameter "${b}": ${c}`)}else throw Error(`Unknown parameter "${b}"`);a[b]=c})}),a}decompress(a,b,c){d.add(d=>{this._decompress(a,b,(a,b)=>{d(),c(a,b)})})}compress(a,b,c){d.add(d=>{this._compress(a,b,(a,b)=>{d(),c(a,b)})})}_decompress(a,b,c){let d=this._isServer?"client":"server";if(!this._inflate){let a=`${d}_max_window_bits`,b="number"!=typeof this.params[a]?e.Z_DEFAULT_WINDOWBITS:this.params[a];this._inflate=e.createInflateRaw({...this._options.zlibInflateOptions,windowBits:b}),this._inflate[k]=this,this._inflate[l]=0,this._inflate[n]=[],this._inflate.on("error",s),this._inflate.on("data",r)}this._inflate[m]=c,this._inflate.write(a),b&&this._inflate.write(j),this._inflate.flush(()=>{let a=this._inflate[o];if(a){this._inflate.close(),this._inflate=null,c(a);return}let e=f.concat(this._inflate[n],this._inflate[l]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[l]=0,this._inflate[n]=[],b&&this.params[`${d}_no_context_takeover`]&&this._inflate.reset()),c(null,e)})}_compress(a,b,c){let d=this._isServer?"server":"client";if(!this._deflate){let a=`${d}_max_window_bits`,b="number"!=typeof this.params[a]?e.Z_DEFAULT_WINDOWBITS:this.params[a];this._deflate=e.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:b}),this._deflate[l]=0,this._deflate[n]=[],this._deflate.on("data",q)}this._deflate[m]=c,this._deflate.write(a),this._deflate.flush(e.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let a=f.concat(this._deflate[n],this._deflate[l]);b&&(a=new i(a.buffer,a.byteOffset,a.length-4)),this._deflate[m]=null,this._deflate[l]=0,this._deflate[n]=[],b&&this.params[`${d}_no_context_takeover`]&&this._deflate.reset(),c(null,a)})}}function q(a){this[n].push(a),this[l]+=a.length}function r(a){(this[l]+=a.length,this[k]._maxPayload<1||this[l]<=this[k]._maxPayload)?this[n].push(a):(this[o]=RangeError("Max payload size exceeded"),this[o].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[o][h]=1009,this.removeListener("data",r),this.reset())}function s(a){(this[k]._inflate=null,this[o])?this[m](this[o]):(a[h]=1007,this[m](a))}a.exports=p},89672:a=>{"use strict";let b=Symbol("kDone"),c=Symbol("kRun");class d{constructor(a){this[b]=()=>{this.pending--,this[c]()},this.concurrency=a||1/0,this.jobs=[],this.pending=0}add(a){this.jobs.push(a),this[c]()}[c](){if(this.pending!==this.concurrency&&this.jobs.length){let a=this.jobs.shift();this.pending++,a(this[b])}}}a.exports=d},89735:(a,b,c)=>{"use strict";var d=c(23071),e=c(24763),f=c(11478),g=Object.prototype.hasOwnProperty,h={brackets:function(a){return a+"[]"},comma:"comma",indices:function(a,b){return a+"["+b+"]"},repeat:function(a){return a}},i=Array.isArray,j=Array.prototype.push,k=function(a,b){j.apply(a,i(b)?b:[b])},l=Date.prototype.toISOString,m=f.default,n={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:m,formatter:f.formatters[m],indices:!1,serializeDate:function(a){return l.call(a)},skipNulls:!1,strictNullHandling:!1},o=function(a){return"string"==typeof a||"number"==typeof a||"boolean"==typeof a||"symbol"==typeof a||"bigint"==typeof a},p={},q=function a(b,c,f,g,h,j,l,m,q,r,s,t,u,v,w,x,y,z){for(var A,B=b,C=z,D=0,E=!1;void 0!==(C=C.get(p))&&!E;){var F=C.get(b);if(D+=1,void 0!==F)if(F===D)throw RangeError("Cyclic object value");else E=!0;void 0===C.get(p)&&(D=0)}if("function"==typeof r?B=r(c,B):B instanceof Date?B=u(B):"comma"===f&&i(B)&&(B=e.maybeMap(B,function(a){return a instanceof Date?u(a):a})),null===B){if(j)return q&&!x?q(c,n.encoder,y,"key",v):c;B=""}if(o(B)||e.isBuffer(B))return q?[w(x?c:q(c,n.encoder,y,"key",v))+"="+w(q(B,n.encoder,y,"value",v))]:[w(c)+"="+w(String(B))];var G=[];if(void 0===B)return G;if("comma"===f&&i(B))x&&q&&(B=e.maybeMap(B,q)),A=[{value:B.length>0?B.join(",")||null:void 0}];else if(i(r))A=r;else{var H=Object.keys(B);A=s?H.sort(s):H}var I=m?String(c).replace(/\./g,"%2E"):String(c),J=g&&i(B)&&1===B.length?I+"[]":I;if(h&&i(B)&&0===B.length)return J+"[]";for(var K=0;K<A.length;++K){var L=A[K],M="object"==typeof L&&L&&void 0!==L.value?L.value:B[L];if(!l||null!==M){var N=t&&m?String(L).replace(/\./g,"%2E"):String(L),O=i(B)?"function"==typeof f?f(J,N):J:J+(t?"."+N:"["+N+"]");z.set(b,D);var P=d();P.set(p,z),k(G,a(M,O,f,g,h,j,l,m,"comma"===f&&x&&i(B)?null:q,r,s,t,u,v,w,x,y,P))}}return G},r=function(a){if(!a)return n;if(void 0!==a.allowEmptyArrays&&"boolean"!=typeof a.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==a.encodeDotInKeys&&"boolean"!=typeof a.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw TypeError("Encoder has to be a function.");var b,c=a.charset||n.charset;if(void 0!==a.charset&&"utf-8"!==a.charset&&"iso-8859-1"!==a.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var d=f.default;if(void 0!==a.format){if(!g.call(f.formatters,a.format))throw TypeError("Unknown format option provided.");d=a.format}var e=f.formatters[d],j=n.filter;if(("function"==typeof a.filter||i(a.filter))&&(j=a.filter),b=a.arrayFormat in h?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":n.arrayFormat,"commaRoundTrip"in a&&"boolean"!=typeof a.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var k=void 0===a.allowDots?!0===a.encodeDotInKeys||n.allowDots:!!a.allowDots;return{addQueryPrefix:"boolean"==typeof a.addQueryPrefix?a.addQueryPrefix:n.addQueryPrefix,allowDots:k,allowEmptyArrays:"boolean"==typeof a.allowEmptyArrays?!!a.allowEmptyArrays:n.allowEmptyArrays,arrayFormat:b,charset:c,charsetSentinel:"boolean"==typeof a.charsetSentinel?a.charsetSentinel:n.charsetSentinel,commaRoundTrip:!!a.commaRoundTrip,delimiter:void 0===a.delimiter?n.delimiter:a.delimiter,encode:"boolean"==typeof a.encode?a.encode:n.encode,encodeDotInKeys:"boolean"==typeof a.encodeDotInKeys?a.encodeDotInKeys:n.encodeDotInKeys,encoder:"function"==typeof a.encoder?a.encoder:n.encoder,encodeValuesOnly:"boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:n.encodeValuesOnly,filter:j,format:d,formatter:e,serializeDate:"function"==typeof a.serializeDate?a.serializeDate:n.serializeDate,skipNulls:"boolean"==typeof a.skipNulls?a.skipNulls:n.skipNulls,sort:"function"==typeof a.sort?a.sort:null,strictNullHandling:"boolean"==typeof a.strictNullHandling?a.strictNullHandling:n.strictNullHandling}};a.exports=function(a,b){var c,e,f=a,g=r(b);"function"==typeof g.filter?f=(e=g.filter)("",f):i(g.filter)&&(c=e=g.filter);var j=[];if("object"!=typeof f||null===f)return"";var l=h[g.arrayFormat],m="comma"===l&&g.commaRoundTrip;c||(c=Object.keys(f)),g.sort&&c.sort(g.sort);for(var n=d(),o=0;o<c.length;++o){var p=c[o],s=f[p];g.skipNulls&&null===s||k(j,q(s,p,l,m,g.allowEmptyArrays,g.strictNullHandling,g.skipNulls,g.encodeDotInKeys,g.encode?g.encoder:null,g.filter,g.sort,g.allowDots,g.serializeDate,g.format,g.formatter,g.encodeValuesOnly,g.charset,n))}var t=j.join(g.delimiter),u=!0===g.addQueryPrefix?"?":"";return g.charsetSentinel&&("iso-8859-1"===g.charset?u+="utf8=%26%2310003%3B&":u+="utf8=%E2%9C%93&"),t.length>0?u+t:""}},91225:a=>{a.exports=function(a){return a}},91520:(a,b,c)=>{"use strict";a.exports=l;var d,e=c(68627),f=e.LongBits,g=e.base64,h=e.utf8;function i(a,b,c){this.fn=a,this.len=b,this.next=void 0,this.val=c}function j(){}function k(a){this.head=a.head,this.tail=a.tail,this.len=a.len,this.next=a.states}function l(){this.len=0,this.head=new i(j,0,0),this.tail=this.head,this.states=null}var m=function(){return e.Buffer?function(){return(l.create=function(){return new d})()}:function(){return new l}};function n(a,b,c){b[c]=255&a}function o(a,b,c){for(;a>127;)b[c++]=127&a|128,a>>>=7;b[c]=a}function p(a,b){this.len=a,this.next=void 0,this.val=b}function q(a,b,c){for(;a.hi;)b[c++]=127&a.lo|128,a.lo=(a.lo>>>7|a.hi<<25)>>>0,a.hi>>>=7;for(;a.lo>127;)b[c++]=127&a.lo|128,a.lo=a.lo>>>7;b[c++]=a.lo}function r(a,b,c){b[c]=255&a,b[c+1]=a>>>8&255,b[c+2]=a>>>16&255,b[c+3]=a>>>24}l.create=m(),l.alloc=function(a){return new e.Array(a)},e.Array!==Array&&(l.alloc=e.pool(l.alloc,e.Array.prototype.subarray)),l.prototype._push=function(a,b,c){return this.tail=this.tail.next=new i(a,b,c),this.len+=b,this},p.prototype=Object.create(i.prototype),p.prototype.fn=o,l.prototype.uint32=function(a){return this.len+=(this.tail=this.tail.next=new p((a>>>=0)<128?1:a<16384?2:a<2097152?3:a<0x10000000?4:5,a)).len,this},l.prototype.int32=function(a){return a<0?this._push(q,10,f.fromNumber(a)):this.uint32(a)},l.prototype.sint32=function(a){return this.uint32((a<<1^a>>31)>>>0)},l.prototype.uint64=function(a){var b=f.from(a);return this._push(q,b.length(),b)},l.prototype.int64=l.prototype.uint64,l.prototype.sint64=function(a){var b=f.from(a).zzEncode();return this._push(q,b.length(),b)},l.prototype.bool=function(a){return this._push(n,1,+!!a)},l.prototype.fixed32=function(a){return this._push(r,4,a>>>0)},l.prototype.sfixed32=l.prototype.fixed32,l.prototype.fixed64=function(a){var b=f.from(a);return this._push(r,4,b.lo)._push(r,4,b.hi)},l.prototype.sfixed64=l.prototype.fixed64,l.prototype.float=function(a){return this._push(e.float.writeFloatLE,4,a)},l.prototype.double=function(a){return this._push(e.float.writeDoubleLE,8,a)};var s=e.Array.prototype.set?function(a,b,c){b.set(a,c)}:function(a,b,c){for(var d=0;d<a.length;++d)b[c+d]=a[d]};l.prototype.bytes=function(a){var b=a.length>>>0;if(!b)return this._push(n,1,0);if(e.isString(a)){var c=l.alloc(b=g.length(a));g.decode(a,c,0),a=c}return this.uint32(b)._push(s,b,a)},l.prototype.string=function(a){var b=h.length(a);return b?this.uint32(b)._push(h.write,b,a):this._push(n,1,0)},l.prototype.fork=function(){return this.states=new k(this),this.head=this.tail=new i(j,0,0),this.len=0,this},l.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new i(j,0,0),this.len=0),this},l.prototype.ldelim=function(){var a=this.head,b=this.tail,c=this.len;return this.reset().uint32(c),c&&(this.tail.next=a.next,this.tail=b,this.len+=c),this},l.prototype.finish=function(){for(var a=this.head.next,b=this.constructor.alloc(this.len),c=0;a;)a.fn(a.val,b,c),c+=a.len,a=a.next;return b},l._configure=function(a){d=a,l.create=m(),d._configure()}},92092:(a,b)=>{"use strict";var c=b;c.length=function(a){var b=a.length;if(!b)return 0;for(var c=0;--b%4>1&&"="===a.charAt(b);)++c;return Math.ceil(3*a.length)/4-c};for(var d=Array(64),e=Array(123),f=0;f<64;)e[d[f]=f<26?f+65:f<52?f+71:f<62?f-4:f-59|43]=f++;c.encode=function(a,b,c){for(var e,f=null,g=[],h=0,i=0;b<c;){var j=a[b++];switch(i){case 0:g[h++]=d[j>>2],e=(3&j)<<4,i=1;break;case 1:g[h++]=d[e|j>>4],e=(15&j)<<2,i=2;break;case 2:g[h++]=d[e|j>>6],g[h++]=d[63&j],i=0}h>8191&&((f||(f=[])).push(String.fromCharCode.apply(String,g)),h=0)}return(i&&(g[h++]=d[e],g[h++]=61,1===i&&(g[h++]=61)),f)?(h&&f.push(String.fromCharCode.apply(String,g.slice(0,h))),f.join("")):String.fromCharCode.apply(String,g.slice(0,h))};var g="invalid encoding";c.decode=function(a,b,c){for(var d,f=c,h=0,i=0;i<a.length;){var j=a.charCodeAt(i++);if(61===j&&h>1)break;if(void 0===(j=e[j]))throw Error(g);switch(h){case 0:d=j,h=1;break;case 1:b[c++]=d<<2|(48&j)>>4,d=j,h=2;break;case 2:b[c++]=(15&d)<<4|(60&j)>>2,d=j,h=3;break;case 3:b[c++]=(3&d)<<6|j,h=0}}if(1===h)throw Error(g);return c-f},c.test=function(a){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a)}},92725:(a,b,c)=>{"use strict";var d=c(24763),e=Object.prototype.hasOwnProperty,f=Array.isArray,g={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:d.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},h=function(a){return a.replace(/&#(\d+);/g,function(a,b){return String.fromCharCode(parseInt(b,10))})},i=function(a,b,c){if(a&&"string"==typeof a&&b.comma&&a.indexOf(",")>-1)return a.split(",");if(b.throwOnLimitExceeded&&c>=b.arrayLimit)throw RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(1===b.arrayLimit?"":"s")+" allowed in an array.");return a},j="utf8=%26%2310003%3B",k="utf8=%E2%9C%93",l=function(a,b){var c={__proto__:null},l=b.ignoreQueryPrefix?a.replace(/^\?/,""):a;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var m=b.parameterLimit===1/0?void 0:b.parameterLimit,n=l.split(b.delimiter,b.throwOnLimitExceeded?m+1:m);if(b.throwOnLimitExceeded&&n.length>m)throw RangeError("Parameter limit exceeded. Only "+m+" parameter"+(1===m?"":"s")+" allowed.");var o=-1,p=b.charset;if(b.charsetSentinel)for(q=0;q<n.length;++q)0===n[q].indexOf("utf8=")&&(n[q]===k?p="utf-8":n[q]===j&&(p="iso-8859-1"),o=q,q=n.length);for(q=0;q<n.length;++q)if(q!==o){var q,r,s,t=n[q],u=t.indexOf("]="),v=-1===u?t.indexOf("="):u+1;if(-1===v?(r=b.decoder(t,g.decoder,p,"key"),s=b.strictNullHandling?null:""):null!==(r=b.decoder(t.slice(0,v),g.decoder,p,"key"))&&(s=d.maybeMap(i(t.slice(v+1),b,f(c[r])?c[r].length:0),function(a){return b.decoder(a,g.decoder,p,"value")})),s&&b.interpretNumericEntities&&"iso-8859-1"===p&&(s=h(String(s))),t.indexOf("[]=")>-1&&(s=f(s)?[s]:s),b.comma&&f(s)&&s.length>b.arrayLimit){if(b.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(1===b.arrayLimit?"":"s")+" allowed in an array.");s=d.combine([],s,b.arrayLimit,b.plainObjects)}if(null!==r){var w=e.call(c,r);w&&("combine"===b.duplicates||t.indexOf("[]=")>-1)?c[r]=d.combine(c[r],s,b.arrayLimit,b.plainObjects):w&&"last"!==b.duplicates||(c[r]=s)}}return c},m=function(a,b,c,e){var f=0;if(a.length>0&&"[]"===a[a.length-1]){var g=a.slice(0,-1).join("");f=Array.isArray(b)&&b[g]?b[g].length:0}for(var h=e?b:i(b,c,f),j=a.length-1;j>=0;--j){var k,l=a[j];if("[]"===l&&c.parseArrays)k=d.isOverflow(h)?h:c.allowEmptyArrays&&(""===h||c.strictNullHandling&&null===h)?[]:d.combine([],h,c.arrayLimit,c.plainObjects);else{k=c.plainObjects?{__proto__:null}:{};var m="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,n=c.decodeDotInKeys?m.replace(/%2E/g,"."):m,o=parseInt(n,10),p=!isNaN(o)&&l!==n&&String(o)===n&&o>=0&&c.parseArrays;if(c.parseArrays||""!==n)if(p&&o<c.arrayLimit)(k=[])[o]=h;else if(p&&c.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+c.arrayLimit+" element"+(1===c.arrayLimit?"":"s")+" allowed in an array.");else p?(k[o]=h,d.markOverflow(k,o)):"__proto__"!==n&&(k[n]=h);else k={0:h}}h=k}return h},n=function(a,b){var c=b.allowDots?a.replace(/\.([^.[]+)/g,"[$1]"):a;if(b.depth<=0){if(!b.plainObjects&&e.call(Object.prototype,c)&&!b.allowPrototypes)return;return[c]}var d=/(\[[^[\]]*])/g,f=/(\[[^[\]]*])/.exec(c),g=f?c.slice(0,f.index):c,h=[];if(g){if(!b.plainObjects&&e.call(Object.prototype,g)&&!b.allowPrototypes)return;h[h.length]=g}for(var i=0;null!==(f=d.exec(c))&&i<b.depth;){i+=1;var j=f[1].slice(1,-1);if(!b.plainObjects&&e.call(Object.prototype,j)&&!b.allowPrototypes)return;h[h.length]=f[1]}if(f){if(!0===b.strictDepth)throw RangeError("Input depth exceeded depth option of "+b.depth+" and strictDepth is true");h[h.length]="["+c.slice(f.index)+"]"}return h},o=function(a,b,c,d){if(a){var e=n(a,c);if(e)return m(e,b,c,d)}},p=function(a){if(!a)return g;if(void 0!==a.allowEmptyArrays&&"boolean"!=typeof a.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==a.decodeDotInKeys&&"boolean"!=typeof a.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==a.decoder&&void 0!==a.decoder&&"function"!=typeof a.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==a.charset&&"utf-8"!==a.charset&&"iso-8859-1"!==a.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==a.throwOnLimitExceeded&&"boolean"!=typeof a.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var b=void 0===a.charset?g.charset:a.charset,c=void 0===a.duplicates?g.duplicates:a.duplicates;if("combine"!==c&&"first"!==c&&"last"!==c)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===a.allowDots?!0===a.decodeDotInKeys||g.allowDots:!!a.allowDots,allowEmptyArrays:"boolean"==typeof a.allowEmptyArrays?!!a.allowEmptyArrays:g.allowEmptyArrays,allowPrototypes:"boolean"==typeof a.allowPrototypes?a.allowPrototypes:g.allowPrototypes,allowSparse:"boolean"==typeof a.allowSparse?a.allowSparse:g.allowSparse,arrayLimit:"number"==typeof a.arrayLimit?a.arrayLimit:g.arrayLimit,charset:b,charsetSentinel:"boolean"==typeof a.charsetSentinel?a.charsetSentinel:g.charsetSentinel,comma:"boolean"==typeof a.comma?a.comma:g.comma,decodeDotInKeys:"boolean"==typeof a.decodeDotInKeys?a.decodeDotInKeys:g.decodeDotInKeys,decoder:"function"==typeof a.decoder?a.decoder:g.decoder,delimiter:"string"==typeof a.delimiter||d.isRegExp(a.delimiter)?a.delimiter:g.delimiter,depth:"number"==typeof a.depth||!1===a.depth?+a.depth:g.depth,duplicates:c,ignoreQueryPrefix:!0===a.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof a.interpretNumericEntities?a.interpretNumericEntities:g.interpretNumericEntities,parameterLimit:"number"==typeof a.parameterLimit?a.parameterLimit:g.parameterLimit,parseArrays:!1!==a.parseArrays,plainObjects:"boolean"==typeof a.plainObjects?a.plainObjects:g.plainObjects,strictDepth:"boolean"==typeof a.strictDepth?!!a.strictDepth:g.strictDepth,strictMerge:"boolean"==typeof a.strictMerge?!!a.strictMerge:g.strictMerge,strictNullHandling:"boolean"==typeof a.strictNullHandling?a.strictNullHandling:g.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof a.throwOnLimitExceeded&&a.throwOnLimitExceeded}};a.exports=function(a,b){var c=p(b);if(""===a||null==a)return c.plainObjects?{__proto__:null}:{};for(var e="string"==typeof a?l(a,c):a,f=c.plainObjects?{__proto__:null}:{},g=Object.keys(e),h=0;h<g.length;++h){var i=g[h],j=o(i,e[i],c,"string"==typeof a);f=d.merge(f,j,c)}return!0===c.allowSparse?f:d.compact(f)}},97861:(a,b,c)=>{"use strict";let{isUtf8:d}=c(79428),{hasBlob:e}=c(17165);function f(a){let b=a.length,c=0;for(;c<b;)if((128&a[c])==0)c++;else if((224&a[c])==192){if(c+1===b||(192&a[c+1])!=128||(254&a[c])==192)return!1;c+=2}else if((240&a[c])==224){if(c+2>=b||(192&a[c+1])!=128||(192&a[c+2])!=128||224===a[c]&&(224&a[c+1])==128||237===a[c]&&(224&a[c+1])==160)return!1;c+=3}else{if((248&a[c])!=240||c+3>=b||(192&a[c+1])!=128||(192&a[c+2])!=128||(192&a[c+3])!=128||240===a[c]&&(240&a[c+1])==128||244===a[c]&&a[c+1]>143||a[c]>244)return!1;c+=4}return!0}if(a.exports={isBlob:function(a){return e&&"object"==typeof a&&"function"==typeof a.arrayBuffer&&"string"==typeof a.type&&"function"==typeof a.stream&&("Blob"===a[Symbol.toStringTag]||"File"===a[Symbol.toStringTag])},isValidStatusCode:function(a){return a>=1e3&&a<=1014&&1004!==a&&1005!==a&&1006!==a||a>=3e3&&a<=4999},isValidUTF8:f,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},d)a.exports.isValidUTF8=function(a){return a.length<24?f(a):d(a)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let b=c(47990);a.exports.isValidUTF8=function(a){return a.length<32?f(a):b(a)}}catch(a){}}};