@geminilight/mindos 0.6.73 → 0.6.75

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 (257) hide show
  1. package/_standalone/.mindos-build-version +1 -1
  2. package/_standalone/.next/BUILD_ID +1 -1
  3. package/_standalone/.next/app-path-routes-manifest.json +30 -30
  4. package/_standalone/.next/build-manifest.json +3 -3
  5. package/_standalone/.next/cache/.previewinfo +1 -1
  6. package/_standalone/.next/cache/.rscinfo +1 -1
  7. package/_standalone/.next/cache/config.json +3 -3
  8. package/_standalone/.next/prerender-manifest.json +3 -3
  9. package/_standalone/.next/react-loadable-manifest.json +5 -5
  10. package/_standalone/.next/required-server-files.json +14 -1
  11. package/_standalone/.next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
  12. package/_standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  13. package/_standalone/.next/server/app/_global-error.html +2 -2
  14. package/_standalone/.next/server/app/_global-error.rsc +1 -1
  15. package/_standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  16. package/_standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  17. package/_standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  18. package/_standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  19. package/_standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  20. package/_standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  21. package/_standalone/.next/server/app/_not-found/page.js +1 -1
  22. package/_standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  23. package/_standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  24. package/_standalone/.next/server/app/agents/[agentKey]/page.js +1 -1
  25. package/_standalone/.next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
  26. package/_standalone/.next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
  27. package/_standalone/.next/server/app/agents/page.js +1 -1
  28. package/_standalone/.next/server/app/agents/page.js.nft.json +1 -1
  29. package/_standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
  30. package/_standalone/.next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
  31. package/_standalone/.next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
  32. package/_standalone/.next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
  33. package/_standalone/.next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
  34. package/_standalone/.next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
  35. package/_standalone/.next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
  36. package/_standalone/.next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
  37. package/_standalone/.next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
  38. package/_standalone/.next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
  39. package/_standalone/.next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
  40. package/_standalone/.next/server/app/api/agents/copy-skill/route.js.nft.json +1 -1
  41. package/_standalone/.next/server/app/api/agents/copy-skill/route_client-reference-manifest.js +1 -1
  42. package/_standalone/.next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
  43. package/_standalone/.next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
  44. package/_standalone/.next/server/app/api/ask/route.js +1 -1
  45. package/_standalone/.next/server/app/api/ask/route.js.nft.json +1 -1
  46. package/_standalone/.next/server/app/api/ask/route_client-reference-manifest.js +1 -1
  47. package/_standalone/.next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
  48. package/_standalone/.next/server/app/api/auth/route_client-reference-manifest.js +1 -1
  49. package/_standalone/.next/server/app/api/backlinks/route.js.nft.json +1 -1
  50. package/_standalone/.next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
  51. package/_standalone/.next/server/app/api/bootstrap/route.js.nft.json +1 -1
  52. package/_standalone/.next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
  53. package/_standalone/.next/server/app/api/changes/route.js.nft.json +1 -1
  54. package/_standalone/.next/server/app/api/changes/route_client-reference-manifest.js +1 -1
  55. package/_standalone/.next/server/app/api/channels/verify/route.js.nft.json +1 -1
  56. package/_standalone/.next/server/app/api/channels/verify/route_client-reference-manifest.js +1 -1
  57. package/_standalone/.next/server/app/api/connect/route_client-reference-manifest.js +1 -1
  58. package/_standalone/.next/server/app/api/embedding/route.js.nft.json +1 -1
  59. package/_standalone/.next/server/app/api/embedding/route_client-reference-manifest.js +1 -1
  60. package/_standalone/.next/server/app/api/export/route.js.nft.json +1 -1
  61. package/_standalone/.next/server/app/api/export/route_client-reference-manifest.js +1 -1
  62. package/_standalone/.next/server/app/api/extract-pdf/route.js.nft.json +1 -1
  63. package/_standalone/.next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
  64. package/_standalone/.next/server/app/api/file/import/route.js.nft.json +1 -1
  65. package/_standalone/.next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
  66. package/_standalone/.next/server/app/api/file/raw/route.js.nft.json +1 -1
  67. package/_standalone/.next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
  68. package/_standalone/.next/server/app/api/file/route.js.nft.json +1 -1
  69. package/_standalone/.next/server/app/api/file/route_client-reference-manifest.js +1 -1
  70. package/_standalone/.next/server/app/api/files/route.js.nft.json +1 -1
  71. package/_standalone/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
  72. package/_standalone/.next/server/app/api/git/route.js.nft.json +1 -1
  73. package/_standalone/.next/server/app/api/git/route_client-reference-manifest.js +1 -1
  74. package/_standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
  75. package/_standalone/.next/server/app/api/graph/route_client-reference-manifest.js +1 -1
  76. package/_standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  77. package/_standalone/.next/server/app/api/im/activity/route_client-reference-manifest.js +1 -1
  78. package/_standalone/.next/server/app/api/im/config/route.js +1 -1
  79. package/_standalone/.next/server/app/api/im/config/route_client-reference-manifest.js +1 -1
  80. package/_standalone/.next/server/app/api/im/status/route.js +1 -7
  81. package/_standalone/.next/server/app/api/im/status/route.js.nft.json +1 -1
  82. package/_standalone/.next/server/app/api/im/status/route_client-reference-manifest.js +1 -1
  83. package/_standalone/.next/server/app/api/im/test/route.js.nft.json +1 -1
  84. package/_standalone/.next/server/app/api/im/test/route_client-reference-manifest.js +1 -1
  85. package/_standalone/.next/server/app/api/im/webhook/feishu/route.js +1 -7
  86. package/_standalone/.next/server/app/api/im/webhook/feishu/route.js.nft.json +1 -1
  87. package/_standalone/.next/server/app/api/im/webhook/feishu/route_client-reference-manifest.js +1 -1
  88. package/_standalone/.next/server/app/api/im/webhook-status/route.js +1 -7
  89. package/_standalone/.next/server/app/api/im/webhook-status/route.js.nft.json +1 -1
  90. package/_standalone/.next/server/app/api/im/webhook-status/route_client-reference-manifest.js +1 -1
  91. package/_standalone/.next/server/app/api/inbox/clip/route.js.nft.json +1 -1
  92. package/_standalone/.next/server/app/api/inbox/clip/route_client-reference-manifest.js +1 -1
  93. package/_standalone/.next/server/app/api/inbox/route.js.nft.json +1 -1
  94. package/_standalone/.next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
  95. package/_standalone/.next/server/app/api/init/route.js.nft.json +1 -1
  96. package/_standalone/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  97. package/_standalone/.next/server/app/api/lint/route.js.nft.json +1 -1
  98. package/_standalone/.next/server/app/api/lint/route_client-reference-manifest.js +1 -1
  99. package/_standalone/.next/server/app/api/mcp/agents/route.js.nft.json +1 -1
  100. package/_standalone/.next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
  101. package/_standalone/.next/server/app/api/mcp/direct-tools/route_client-reference-manifest.js +1 -1
  102. package/_standalone/.next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
  103. package/_standalone/.next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
  104. package/_standalone/.next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
  105. package/_standalone/.next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
  106. package/_standalone/.next/server/app/api/mcp/tools/route_client-reference-manifest.js +1 -1
  107. package/_standalone/.next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
  108. package/_standalone/.next/server/app/api/monitoring/route.js.nft.json +1 -1
  109. package/_standalone/.next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
  110. package/_standalone/.next/server/app/api/recent-files/route.js.nft.json +1 -1
  111. package/_standalone/.next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
  112. package/_standalone/.next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  113. package/_standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  114. package/_standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  115. package/_standalone/.next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
  116. package/_standalone/.next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
  117. package/_standalone/.next/server/app/api/settings/route.js.nft.json +1 -1
  118. package/_standalone/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  119. package/_standalone/.next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
  120. package/_standalone/.next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
  121. package/_standalone/.next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
  122. package/_standalone/.next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
  123. package/_standalone/.next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
  124. package/_standalone/.next/server/app/api/setup/route_client-reference-manifest.js +1 -1
  125. package/_standalone/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  126. package/_standalone/.next/server/app/api/space-overview/route.js.nft.json +1 -1
  127. package/_standalone/.next/server/app/api/space-overview/route_client-reference-manifest.js +1 -1
  128. package/_standalone/.next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  129. package/_standalone/.next/server/app/api/tree-version/route.js.nft.json +1 -1
  130. package/_standalone/.next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
  131. package/_standalone/.next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
  132. package/_standalone/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
  133. package/_standalone/.next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
  134. package/_standalone/.next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
  135. package/_standalone/.next/server/app/api/workflows/route.js.nft.json +1 -1
  136. package/_standalone/.next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
  137. package/_standalone/.next/server/app/changelog/page.js +1 -1
  138. package/_standalone/.next/server/app/changelog/page.js.nft.json +1 -1
  139. package/_standalone/.next/server/app/changelog/page_client-reference-manifest.js +1 -1
  140. package/_standalone/.next/server/app/changes/page.js +1 -1
  141. package/_standalone/.next/server/app/changes/page.js.nft.json +1 -1
  142. package/_standalone/.next/server/app/changes/page_client-reference-manifest.js +1 -1
  143. package/_standalone/.next/server/app/echo/[segment]/page.js +1 -1
  144. package/_standalone/.next/server/app/echo/[segment]/page.js.nft.json +1 -1
  145. package/_standalone/.next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
  146. package/_standalone/.next/server/app/echo/page.js +1 -1
  147. package/_standalone/.next/server/app/echo/page.js.nft.json +1 -1
  148. package/_standalone/.next/server/app/echo/page_client-reference-manifest.js +1 -1
  149. package/_standalone/.next/server/app/explore/page.js +1 -1
  150. package/_standalone/.next/server/app/explore/page.js.nft.json +1 -1
  151. package/_standalone/.next/server/app/explore/page_client-reference-manifest.js +1 -1
  152. package/_standalone/.next/server/app/help/page.js +1 -1
  153. package/_standalone/.next/server/app/help/page.js.nft.json +1 -1
  154. package/_standalone/.next/server/app/help/page_client-reference-manifest.js +1 -1
  155. package/_standalone/.next/server/app/inbox/history/page.js +1 -1
  156. package/_standalone/.next/server/app/inbox/history/page.js.nft.json +1 -1
  157. package/_standalone/.next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
  158. package/_standalone/.next/server/app/login/page.js +1 -1
  159. package/_standalone/.next/server/app/login/page.js.nft.json +1 -1
  160. package/_standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  161. package/_standalone/.next/server/app/page.js +1 -1
  162. package/_standalone/.next/server/app/page.js.nft.json +1 -1
  163. package/_standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  164. package/_standalone/.next/server/app/setup/page.js +2 -2
  165. package/_standalone/.next/server/app/setup/page.js.nft.json +1 -1
  166. package/_standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  167. package/_standalone/.next/server/app/trash/page.js +3 -3
  168. package/_standalone/.next/server/app/trash/page.js.nft.json +1 -1
  169. package/_standalone/.next/server/app/trash/page_client-reference-manifest.js +1 -1
  170. package/_standalone/.next/server/app/view/[...path]/page.js +3 -3
  171. package/_standalone/.next/server/app/view/[...path]/page.js.nft.json +1 -1
  172. package/_standalone/.next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
  173. package/_standalone/.next/server/app-paths-manifest.json +30 -30
  174. package/_standalone/.next/server/chunks/1076.js +1 -1
  175. package/_standalone/.next/server/chunks/{2449.js → 2424.js} +2 -2
  176. package/_standalone/.next/server/chunks/2792.js +1 -0
  177. package/_standalone/.next/server/chunks/2885.js +7 -0
  178. package/_standalone/.next/server/chunks/3800.js +1 -1
  179. package/_standalone/.next/server/chunks/5299.js +1 -1
  180. package/_standalone/.next/server/chunks/5464.js +1 -1
  181. package/_standalone/.next/server/chunks/6022.js +28 -28
  182. package/_standalone/.next/server/chunks/6539.js +1 -1
  183. package/_standalone/.next/server/chunks/8388.js +2 -2
  184. package/_standalone/.next/server/middleware-build-manifest.js +1 -1
  185. package/_standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
  186. package/_standalone/.next/server/pages/500.html +2 -2
  187. package/_standalone/.next/server/server-reference-manifest.js +1 -1
  188. package/_standalone/.next/server/server-reference-manifest.json +1 -1
  189. package/_standalone/.next/static/chunks/{5331.c89084fd7f67887d.js → 4342.ccc18d7a45f204a4.js} +5 -5
  190. package/_standalone/.next/static/chunks/{4094.09364c01df411380.js → 4496.f77a677ac2034e48.js} +1 -1
  191. package/_standalone/.next/static/chunks/{5358-15618fc9b20018ee.js → 5358-15ceeb8c1cd9889d.js} +6 -6
  192. package/_standalone/.next/static/chunks/{6902-edc5c487c696bd0b.js → 6902-53a31f849968ddf8.js} +1 -1
  193. package/_standalone/.next/static/chunks/9207-456dc6941d557f33.js +1 -0
  194. package/_standalone/.next/static/chunks/app/{layout-fcbde5bee626d21a.js → layout-09f08f52e3cbfc47.js} +66 -66
  195. package/_standalone/.next/static/chunks/app/setup/{page-e40f3c5704c3c857.js → page-64d7fa097ef3f367.js} +1 -1
  196. package/_standalone/.next/static/chunks/app/trash/page-8e0ea3ba71702757.js +1 -0
  197. package/_standalone/.next/static/chunks/app/view/[...path]/page-04f43178679a8bfb.js +12 -0
  198. package/_standalone/.next/static/chunks/{webpack-dc486b68118d1328.js → webpack-ec9c6076012b75f3.js} +1 -1
  199. package/_standalone/.next/trace +72 -72
  200. package/_standalone/__tests__/agent/provider-presets.test.ts +32 -0
  201. package/_standalone/__tests__/api/im-config-feishu-conversation.test.ts +39 -0
  202. package/_standalone/__tests__/api/im-webhook-feishu.test.ts +21 -12
  203. package/_standalone/__tests__/api/pi-subagents.test.ts +81 -0
  204. package/_standalone/__tests__/ask/file-chip-variants.test.tsx +18 -0
  205. package/_standalone/__tests__/ask/message-list-agent-attribution.test.tsx +2 -0
  206. package/_standalone/__tests__/im/feishu-dispatcher.test.ts +151 -0
  207. package/_standalone/__tests__/im/feishu-webhook.test.ts +85 -57
  208. package/_standalone/__tests__/im/feishu-ws-client.test.ts +91 -0
  209. package/_standalone/__tests__/settings/custom-provider-form.test.ts +30 -0
  210. package/_standalone/components/ask/FileChip.tsx +1 -1
  211. package/_standalone/components/ask/MessageList.tsx +2 -2
  212. package/_standalone/components/settings/CustomProviderFields.tsx +1 -1
  213. package/_standalone/components/settings/CustomProvidersCard.tsx +3 -0
  214. package/_standalone/components/settings/useCustomProviderForm.ts +78 -24
  215. package/_standalone/components/shared/ProviderSelect.tsx +6 -5
  216. package/_standalone/next.config.ts +28 -4
  217. package/_standalone/package-lock.json +20 -2
  218. package/_standalone/package.json +3 -1
  219. package/_standalone/scripts/feishu-long-connection.ts +32 -0
  220. package/_standalone/server.js +1 -1
  221. package/_standalone/tsconfig.tsbuildinfo +1 -1
  222. package/app/__tests__/agent/provider-presets.test.ts +32 -0
  223. package/app/__tests__/api/im-config-feishu-conversation.test.ts +39 -0
  224. package/app/__tests__/api/im-webhook-feishu.test.ts +21 -12
  225. package/app/__tests__/api/pi-subagents.test.ts +81 -0
  226. package/app/__tests__/ask/file-chip-variants.test.tsx +18 -0
  227. package/app/__tests__/ask/message-list-agent-attribution.test.tsx +2 -0
  228. package/app/__tests__/im/feishu-dispatcher.test.ts +151 -0
  229. package/app/__tests__/im/feishu-webhook.test.ts +85 -57
  230. package/app/__tests__/im/feishu-ws-client.test.ts +91 -0
  231. package/app/__tests__/settings/custom-provider-form.test.ts +30 -0
  232. package/app/app/api/ask/route.ts +2 -0
  233. package/app/app/api/im/config/route.ts +2 -0
  234. package/app/app/api/im/webhook/feishu/route.ts +4 -2
  235. package/app/components/ask/FileChip.tsx +1 -1
  236. package/app/components/ask/MessageList.tsx +2 -2
  237. package/app/components/settings/CustomProviderFields.tsx +1 -1
  238. package/app/components/settings/CustomProvidersCard.tsx +3 -0
  239. package/app/components/settings/useCustomProviderForm.ts +78 -24
  240. package/app/components/shared/ProviderSelect.tsx +6 -5
  241. package/app/lib/agent/providers.ts +44 -6
  242. package/app/lib/im/feishu-dispatcher.ts +111 -0
  243. package/app/lib/im/feishu-ws-client.ts +72 -0
  244. package/app/lib/im/types.ts +14 -0
  245. package/app/lib/im/webhook/feishu.ts +44 -55
  246. package/app/next.config.ts +28 -4
  247. package/app/package.json +3 -1
  248. package/app/scripts/feishu-long-connection.ts +32 -0
  249. package/bin/cli.js +3 -1
  250. package/bin/commands/feishu-ws.js +39 -0
  251. package/package.json +1 -1
  252. package/scripts/build-runtime-archive.sh +36 -2
  253. package/_standalone/.next/static/chunks/9207-3b19c55a3c974a09.js +0 -1
  254. package/_standalone/.next/static/chunks/app/trash/page-e623ff0ab35de002.js +0 -1
  255. package/_standalone/.next/static/chunks/app/view/[...path]/page-49c4eff6ffdb5168.js +0 -12
  256. /package/_standalone/.next/static/{Dn8EHqUedSzanCfrM8WWS → dZDCx13MSM8QVQk2QNRs8}/_buildManifest.js +0 -0
  257. /package/_standalone/.next/static/{Dn8EHqUedSzanCfrM8WWS → dZDCx13MSM8QVQk2QNRs8}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
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
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},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},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
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
3
  Developer Console(开发者后台)
4
4
  ->