@cortex-agent/server 2026.10.28 → 2026.12.5
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.
- package/LICENSE +255 -21
- package/README.md +36 -7
- package/THIRD_PARTY_NOTICES.txt +1990 -593
- package/defaults/hooks/cortex-hook-api.mjs +2 -1
- package/defaults/hooks/quota-stop.mjs +37 -0
- package/defaults/plugins/cortex-system/skills/client-manage/SKILL.md +23 -15
- package/defaults/prompts/clean-workspace.md +5 -0
- package/dist/agent-adapter/claude/remote-mcp-proxy.js +1 -1
- package/dist/chunks/agent-runner-LVZVKBZX.js +4 -0
- package/dist/chunks/anthropic-messages-TT6454AA.js +8 -0
- package/dist/chunks/azure-openai-responses-52LR2XZD.js +4 -0
- package/dist/chunks/bedrock-converse-stream-EOZGYUNY.js +60 -0
- package/dist/chunks/bowser-MLGGLXTZ.js +20 -0
- package/dist/chunks/child-runner-SMG2VOU5.js +4 -0
- package/dist/chunks/chunk-24DH4IR5.js +4 -0
- package/dist/chunks/chunk-25XKBRDT.js +70 -0
- package/dist/chunks/chunk-2ABET62E.js +23 -0
- package/dist/chunks/chunk-2BVUA256.js +4 -0
- package/dist/chunks/{chunk-LEUENXI2.js → chunk-2WFL62UO.js} +1 -1
- package/dist/chunks/{chunk-OZGBWAT2.js → chunk-2YTYYG4K.js} +1 -1
- package/dist/chunks/chunk-335SSANX.js +4 -0
- package/dist/chunks/chunk-377OPTXX.js +17 -0
- package/dist/chunks/chunk-3EZNVLBF.js +129 -0
- package/dist/chunks/chunk-3O6ZG5HA.js +7 -0
- package/dist/chunks/{chunk-6AKUD3CF.js → chunk-3XLHL5YT.js} +1 -1
- package/dist/chunks/chunk-4HRI75GU.js +4 -0
- package/dist/chunks/chunk-4JBYLRPM.js +57 -0
- package/dist/chunks/chunk-4KKV7VKE.js +4 -0
- package/dist/chunks/chunk-4KQHDDC5.js +4 -0
- package/dist/chunks/chunk-4SWD4JMP.js +33 -0
- package/dist/chunks/chunk-52VCLZS5.js +4 -0
- package/dist/chunks/chunk-54P7TSY3.js +10 -0
- package/dist/chunks/chunk-5DVSAXOI.js +7 -0
- package/dist/chunks/chunk-5F3A62YS.js +4 -0
- package/dist/chunks/{chunk-XNSSUVT6.js → chunk-5FHETFZM.js} +1 -1
- package/dist/chunks/{chunk-A34TDMIC.js → chunk-5LBLRAHS.js} +1 -1
- package/dist/chunks/chunk-5UYVNA3W.js +4 -0
- package/dist/chunks/chunk-6G3OYMCV.js +21 -0
- package/dist/chunks/chunk-7GGPYU5E.js +30 -0
- package/dist/chunks/chunk-7TYSMLUV.js +4 -0
- package/dist/chunks/chunk-7W7VYUTK.js +5 -0
- package/dist/chunks/chunk-AXYAZTTN.js +6 -0
- package/dist/chunks/{chunk-BGVHA2D4.js → chunk-B3NB243Z.js} +1 -1
- package/dist/chunks/chunk-BKYP6AGM.js +8 -0
- package/dist/chunks/chunk-BVEDNESB.js +4 -0
- package/dist/chunks/chunk-BWDJS6A4.js +12 -0
- package/dist/chunks/chunk-C6YVF7EI.js +4 -0
- package/dist/chunks/chunk-CEJIYYVE.js +15 -0
- package/dist/chunks/chunk-CI2RHH74.js +50 -0
- package/dist/chunks/chunk-CMSOOLJB.js +4 -0
- package/dist/chunks/chunk-CSVTYYLP.js +4 -0
- package/dist/chunks/chunk-DE5EGVKG.js +6 -0
- package/dist/chunks/{chunk-E6BYRULL.js → chunk-DK3RPZOQ.js} +1 -1
- package/dist/chunks/{chunk-YPK2CAIZ.js → chunk-DK4UCK7L.js} +1 -1
- package/dist/chunks/chunk-DYLBVUAU.js +4 -0
- package/dist/chunks/chunk-FDC2GRBK.js +27 -0
- package/dist/chunks/chunk-FE7HH5JS.js +18 -0
- package/dist/chunks/chunk-FYD57YRO.js +436 -0
- package/dist/chunks/chunk-G264APQN.js +5 -0
- package/dist/chunks/chunk-G4JYZFEO.js +11 -0
- package/dist/chunks/chunk-GFFM56U2.js +4 -0
- package/dist/chunks/chunk-GOS3P7KS.js +132 -0
- package/dist/chunks/chunk-HVN37UXD.js +4 -0
- package/dist/chunks/chunk-IA6IODY3.js +4 -0
- package/dist/chunks/{chunk-HU6UIDEJ.js → chunk-IGZWZP7Z.js} +1 -1
- package/dist/chunks/{chunk-NR6U3WIZ.js → chunk-IJ7XFQMI.js} +1 -1
- package/dist/chunks/chunk-IMMGYDAB.js +6 -0
- package/dist/chunks/chunk-IOWBF7UK.js +10 -0
- package/dist/chunks/{chunk-HALUQ7ZF.js → chunk-ITGCWQFK.js} +1 -1
- package/dist/chunks/chunk-IVZ7QUEG.js +4 -0
- package/dist/chunks/{chunk-YAEVYJAR.js → chunk-IWY2HIFK.js} +1 -1
- package/dist/chunks/{chunk-KGJZAYQD.js → chunk-J7OBATRN.js} +1 -1
- package/dist/chunks/{chunk-QWAQHHRS.js → chunk-JGUEIW2W.js} +1 -1
- package/dist/chunks/chunk-JKL3AK5D.js +106 -0
- package/dist/chunks/chunk-JZ7U7RUK.js +351 -0
- package/dist/chunks/chunk-KJUQCCB5.js +4 -0
- package/dist/chunks/chunk-KST6OY76.js +10 -0
- package/dist/chunks/chunk-KZSAFVSY.js +129 -0
- package/dist/chunks/chunk-LD2ZSH3M.js +903 -0
- package/dist/chunks/chunk-LE6QPXN6.js +7 -0
- package/dist/chunks/chunk-LEAV3FFG.js +4 -0
- package/dist/chunks/chunk-LIIZI3HY.js +5 -0
- package/dist/chunks/chunk-LP72AF56.js +45 -0
- package/dist/chunks/{chunk-FXDIR3SQ.js → chunk-MJQ2D2OP.js} +1 -1
- package/dist/chunks/{chunk-6LZK4DDH.js → chunk-NHHR4DCF.js} +1 -1
- package/dist/chunks/chunk-NW4GW47L.js +4 -0
- package/dist/chunks/chunk-OALEJ6FG.js +60 -0
- package/dist/chunks/chunk-OIV4DIMB.js +4 -0
- package/dist/chunks/chunk-OJ37ZWBG.js +4 -0
- package/dist/chunks/chunk-OZXMPBUX.js +4 -0
- package/dist/chunks/{chunk-3THJYAEF.js → chunk-PG7452XE.js} +1 -1
- package/dist/chunks/chunk-PJCUB7YJ.js +4 -0
- package/dist/chunks/chunk-PTS3J4DQ.js +6 -0
- package/dist/chunks/{chunk-PXS5SHOV.js → chunk-PVVEEBUU.js} +1 -1
- package/dist/chunks/chunk-Q7BZLPBU.js +8 -0
- package/dist/chunks/{chunk-FOJQXLL2.js → chunk-QC66ZXPP.js} +1 -1
- package/dist/chunks/chunk-QXFWIL4C.js +4 -0
- package/dist/chunks/{chunk-PFMEUFJ7.js → chunk-R2CCD4OF.js} +1 -1
- package/dist/chunks/chunk-R6CGBSTC.js +22 -0
- package/dist/chunks/chunk-RG5GP4RB.js +5 -0
- package/dist/chunks/{chunk-D3NXKK2L.js → chunk-RW2F2QNP.js} +1 -1
- package/dist/chunks/{models-L5VF4I5O-XXNJYQMQ.js → chunk-RWPO3NZ3.js} +1 -1
- package/dist/chunks/chunk-SAJD4EKE.js +10 -0
- package/dist/chunks/chunk-SDUS2H3E.js +4 -0
- package/dist/chunks/chunk-SIHGKM4E.js +4 -0
- package/dist/chunks/chunk-SKHFU5DI.js +4 -0
- package/dist/chunks/{chunk-STUHNKQS.js → chunk-SM45TH22.js} +1 -1
- package/dist/chunks/chunk-T54CZKNJ.js +6 -0
- package/dist/chunks/chunk-TKFFQNAP.js +19 -0
- package/dist/chunks/chunk-TMV2ZDOI.js +18 -0
- package/dist/chunks/chunk-TRXLIL7V.js +4 -0
- package/dist/chunks/{chunk-SUFW24P4.js → chunk-UEEW2R4E.js} +1 -1
- package/dist/chunks/chunk-UHXPRU6G.js +10 -0
- package/dist/chunks/chunk-UPQVWHZ3.js +4 -0
- package/dist/chunks/{chunk-JERCOLY3.js → chunk-V35MFAUQ.js} +4 -6
- package/dist/chunks/chunk-V7K3KNDM.js +4 -0
- package/dist/chunks/chunk-VHX2GHBF.js +4 -0
- package/dist/chunks/chunk-VOAKRJ4R.js +4 -0
- package/dist/chunks/{chunk-X2GYYRVM.js → chunk-VW7TLY3P.js} +1 -1
- package/dist/chunks/chunk-W34AK4SK.js +65 -0
- package/dist/chunks/{chunk-REBNWCKI.js → chunk-WU7RNAZD.js} +1 -1
- package/dist/chunks/chunk-WZC4TDDM.js +6 -0
- package/dist/chunks/chunk-WZYS2HAK.js +4 -0
- package/dist/chunks/chunk-X2TKJ7KR.js +11 -0
- package/dist/chunks/{chunk-H2FP6DG4.js → chunk-X5ND4H4P.js} +1 -1
- package/dist/chunks/{chunk-4U7XXM4W.js → chunk-Y3AOGNDT.js} +1 -1
- package/dist/chunks/chunk-Y6DGVTKM.js +6 -0
- package/dist/chunks/{chunk-KENCMLRE.js → chunk-YAEHSSR4.js} +1 -1
- package/dist/chunks/chunk-YWPBE5LP.js +4 -0
- package/dist/chunks/chunk-ZAVX7G2M.js +15 -0
- package/dist/chunks/chunk-ZD2M73XA.js +19 -0
- package/dist/chunks/chunk-ZD4O6NPV.js +4 -0
- package/dist/chunks/chunk-ZNAMETPQ.js +4 -0
- package/dist/chunks/chunk-ZY6N5LVQ.js +4 -0
- package/dist/chunks/chunk-ZYQ4TDTT.js +81 -0
- package/dist/chunks/cli-VB2N7HEK.js +55 -0
- package/dist/chunks/cloudflare-workers-ai-system-one-YKU742EC.js +4 -0
- package/dist/chunks/context-CI2FKEQE.js +4 -0
- package/dist/chunks/cost-CZRRSIUF.js +5 -0
- package/dist/chunks/dist-QCNQN6DY.js +4 -0
- package/dist/chunks/easter-egg-3d-XR5S2O3T.js +4 -0
- package/dist/chunks/{event-streams-3JSFPOTZ.js → event-streams-AVE4MSS6.js} +1 -1
- package/dist/chunks/{execution-repo-ZLJTBWFC.js → execution-repo-5TLV2NM4.js} +1 -1
- package/dist/chunks/{executions-6ARGR3IO.js → executions-I3UUIGSL.js} +1 -1
- package/dist/chunks/file-Y5G56IUT.js +4 -0
- package/dist/chunks/github-copilot-BRU2SRRZ.js +4 -0
- package/dist/chunks/google-generative-ai-ZF5QEUZV.js +4 -0
- package/dist/chunks/google-vertex-4PJZZI3Y.js +4 -0
- package/dist/chunks/init-A6GY656J.js +4 -0
- package/dist/chunks/{install-cli-4IZCSDFZ.js → install-cli-FALWKQYO.js} +1 -1
- package/dist/chunks/{interaction-ask-G5T3H3CG.js → interaction-ask-O5HGF6CH.js} +1 -1
- package/dist/chunks/{interaction-plan-E5V42MUP.js → interaction-plan-JTVDN3BC.js} +1 -1
- package/dist/chunks/kimi-coding-ZCIBMDZ6.js +4 -0
- package/dist/chunks/{llama-cpp-classify-OTXZWCMW.js → llama-cpp-classify-NRUXAIGQ.js} +3 -3
- package/dist/chunks/local-client-stop-RS4AHNF4.js +4 -0
- package/dist/chunks/{memory-cli-PYOILNN5.js → memory-cli-DIT4DQF3.js} +1 -1
- package/dist/chunks/meta-JQH66YU7.js +4 -0
- package/dist/chunks/mistral-conversations-CXHOECUV.js +7 -0
- package/dist/chunks/model-resolver-GIBPYRKP.js +4 -0
- package/dist/chunks/monitor-Z2HKNY5E.js +4 -0
- package/dist/chunks/{node-PTK2HCDV.js → node-DAO3SX7O.js} +1 -1
- package/dist/chunks/{openai-codex-2REL6UQU.js → openai-codex-JULCKICT.js} +1 -1
- package/dist/chunks/openai-codex-responses-U6DGMGDK.js +12 -0
- package/dist/chunks/openai-completions-PP4XLLOM.js +9 -0
- package/dist/chunks/{openai-decisions-2N6ZRPZC.js → openai-decisions-JU6QQKEM.js} +1 -1
- package/dist/chunks/openai-responses-2SG757TL.js +6 -0
- package/dist/chunks/openrouter-images-32M7YZWC.js +4 -0
- package/dist/chunks/pi-messages-VSINMXN4.js +10 -0
- package/dist/chunks/radius-THYKWV4E.js +4 -0
- package/dist/chunks/remote-ops-2WBEFQ3E.js +14 -0
- package/dist/chunks/runner-5MKMRTIN.js +4 -0
- package/dist/chunks/runtime-DST3H5JP.js +4 -0
- package/dist/chunks/schedule-cli-V7Y2BBVY.js +4 -0
- package/dist/chunks/slack-R7SEJYMY.js +4 -0
- package/dist/chunks/start-ui-http-7K5JOLPU.js +43 -0
- package/dist/chunks/subagent-Z5IQ4L54.js +4 -0
- package/dist/chunks/{time-KEHDQT6K.js → time-P6PE52WL.js} +1 -1
- package/dist/chunks/tool-shims-YCXZWTST.js +4 -0
- package/dist/chunks/typesafe-system-one-M2DABJSZ.js +4 -0
- package/dist/chunks/ui-board-HQIE4RZG.js +5 -0
- package/dist/chunks/ui-decision-YBZDS4YW.js +4 -0
- package/dist/chunks/{ui-file-GVH53O3X.js → ui-file-SRD4ILBS.js} +1 -1
- package/dist/chunks/ui-view-Z25MTZT7.js +4 -0
- package/dist/chunks/virtual-modules-H4DXPJZB.js +4 -0
- package/dist/chunks/waitpoint-M6JZBSLT.js +5 -0
- package/dist/chunks/workers-SQ2R32TK.js +4 -0
- package/dist/client-bundle/client.mjs +273 -93
- package/dist/client-bundle/manifest.json +2 -2
- package/dist/core/pi-sdk.js +1 -1
- package/dist/domain/auth/cc-auth-cli.js +1 -1
- package/dist/domain/mcp/bundled-server.js +1 -1
- package/dist/domain/mcp/feishu/client.js +4 -0
- package/dist/entry/app.js +151 -559
- package/dist/entry/browser-cli.js +10 -10
- package/dist/entry/cli.js +1 -1
- package/dist/entry/cortex-cli.js +1 -1
- package/dist/entry/daemon.js +4 -4
- package/dist/entry/hook-cli.js +2 -2
- package/dist/entry/production-app-bootstrap.js +1 -1
- package/dist/entry/production-evidence-export-cli.js +1 -1
- package/dist/entry/signal-cli.js +2 -2
- package/dist/tui/index.js +41 -41
- package/package.json +3 -3
- package/vendor/pi/CHANGELOG.md +330 -0
- package/vendor/pi/dist/codemode-worker.js +2 -0
- package/vendor/pi/dist/core/export-html/ansi-to-html.js +57 -20
- package/vendor/pi/dist/core/export-html/template.css +9 -0
- package/vendor/pi/dist/core/export-html/template.js +166 -46
- package/vendor/pi/dist/core/export-html/tool-renderer.js +5 -3
- package/vendor/pi/dist/core/extensions/loader.js +1 -1
- package/vendor/pi/dist/extensions/codemode/execute.js +15 -13
- package/vendor/pi/dist/modes/interactive/theme/theme.js +36 -23
- package/vendor/pi/dist/utils/image-resize-worker.js +1 -1
- package/vendor/pi/dist/utils/image-resize.js +1 -1
- package/vendor/pi/docs/cli.md +35 -12
- package/vendor/pi/docs/custom-provider.md +2 -0
- package/vendor/pi/docs/environment-variables.md +2 -0
- package/vendor/pi/docs/extensions.md +3192 -225
- package/vendor/pi/docs/keybindings.md +2 -2
- package/vendor/pi/docs/llama-cpp.md +27 -19
- package/vendor/pi/docs/mcp.md +6 -4
- package/vendor/pi/docs/message-types.md +1 -1
- package/vendor/pi/docs/models-configuration.md +9 -3
- package/vendor/pi/docs/models.md +2 -1
- package/vendor/pi/docs/nvidia-rtx-llama-cpp.md +5 -5
- package/vendor/pi/docs/packages.md +24 -0
- package/vendor/pi/docs/prompt-templates.md +1 -1
- package/vendor/pi/docs/providers.md +4 -2
- package/vendor/pi/docs/quickstart.md +7 -3
- package/vendor/pi/docs/rpc-commands.md +1 -1
- package/vendor/pi/docs/rpc.md +4 -2
- package/vendor/pi/docs/sessions.md +17 -3
- package/vendor/pi/docs/settings.md +6 -5
- package/vendor/pi/docs/slash-commands.md +3 -2
- package/vendor/pi/docs/terminal-setup.md +3 -1
- package/vendor/pi/docs/tmux.md +6 -0
- package/vendor/pi/docs/tui.md +4 -0
- package/vendor/pi/docs/windows.md +27 -0
- package/vendor/pi/examples/extensions/README.md +2 -1
- package/vendor/pi/examples/extensions/custom-provider-anthropic/index.ts +27 -31
- package/vendor/pi/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/vendor/pi/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/vendor/pi/examples/extensions/debug-provider.ts +2 -2
- package/vendor/pi/examples/extensions/gondolin/index.ts +4 -7
- package/vendor/pi/examples/extensions/gondolin/package-lock.json +19 -29
- package/vendor/pi/examples/extensions/gondolin/package.json +2 -2
- package/vendor/pi/examples/extensions/plan-mode/index.ts +23 -13
- package/vendor/pi/examples/extensions/plan-mode/utils.ts +42 -16
- package/vendor/pi/examples/extensions/preset.ts +2 -0
- package/vendor/pi/examples/extensions/reload-runtime.ts +17 -5
- package/vendor/pi/examples/extensions/subagent/README.md +14 -11
- package/vendor/pi/examples/extensions/subagent/index.ts +392 -171
- package/vendor/pi/examples/extensions/todo.ts +7 -0
- package/vendor/pi/examples/extensions/tools.ts +2 -0
- package/vendor/pi/examples/extensions/with-deps/package-lock.json +2 -2
- package/vendor/pi/examples/extensions/with-deps/package.json +1 -1
- package/vendor/pi/examples/tsconfig.json +208 -0
- package/vendor/pi/package.json +15 -16
- package/vendor/pi/schemas/models.schema.json +66 -37
- package/vendor/pi/schemas/settings.schema.json +18 -1
- package/vendor/pi-ai/bedrock.js +1 -1
- package/vendor/pi-ai/oauth-load.js +1 -1
- package/web/dist/assets/{board-math-css-BPXakv_3.js → board-math-css-DKX6FcUS.js} +1 -1
- package/web/dist/assets/index-D11wi0uG.js +540 -0
- package/web/dist/assets/index-JedYumhY.css +1 -0
- package/web/dist/assets/{index-WCm6wwmM.js → index-jl30Gy8P.js} +1 -1
- package/web/dist/assets/pdf-worker-DdZgk2mV.js +57 -0
- package/web/dist/assets/pdf.worker.min-Bz_KHX45.js +55 -0
- package/web/dist/index.html +2 -2
- package/web/dist/theme.css +22 -0
- package/dist/chunks/anthropic-messages-M3SMXACA.js +0 -8
- package/dist/chunks/api-GM53PHIL-GFHEXXE6.js +0 -4
- package/dist/chunks/azure-openai-responses-76YWXHSB.js +0 -4
- package/dist/chunks/bedrock-converse-stream-5UPX4NTQ.js +0 -58
- package/dist/chunks/child-runner-3GHOWGZP.js +0 -4
- package/dist/chunks/chunk-2ZNLUY2U.js +0 -128
- package/dist/chunks/chunk-3F6WW7HR.js +0 -13
- package/dist/chunks/chunk-3OKHUVEM.js +0 -7
- package/dist/chunks/chunk-3YHOCPQU.js +0 -10
- package/dist/chunks/chunk-4EX2JJWB.js +0 -4
- package/dist/chunks/chunk-4LLH5OWM.js +0 -10
- package/dist/chunks/chunk-52T37Y47.js +0 -8
- package/dist/chunks/chunk-7MU2AKNM.js +0 -4
- package/dist/chunks/chunk-AAA3UBIS.js +0 -4
- package/dist/chunks/chunk-ASYQHJVQ.js +0 -9
- package/dist/chunks/chunk-BKHDWCRT.js +0 -79
- package/dist/chunks/chunk-CQLH4UVX.js +0 -4
- package/dist/chunks/chunk-CVC66CFV.js +0 -33
- package/dist/chunks/chunk-D6UA4BZC.js +0 -19
- package/dist/chunks/chunk-DGMNI4AO.js +0 -4
- package/dist/chunks/chunk-DHSA5ACV.js +0 -125
- package/dist/chunks/chunk-DPQPXBTP.js +0 -68
- package/dist/chunks/chunk-DXBSQXJL.js +0 -18
- package/dist/chunks/chunk-E7ZMYIY6.js +0 -30
- package/dist/chunks/chunk-EQITBTJC.js +0 -10
- package/dist/chunks/chunk-EXJA5RIX.js +0 -357
- package/dist/chunks/chunk-FF7UELTU.js +0 -4
- package/dist/chunks/chunk-FH74NME3.js +0 -115
- package/dist/chunks/chunk-FOQ7VLIL.js +0 -17
- package/dist/chunks/chunk-FX6MOGLR.js +0 -11
- package/dist/chunks/chunk-G2V65UBA.js +0 -4
- package/dist/chunks/chunk-HGPBHTVD.js +0 -6
- package/dist/chunks/chunk-J5DVLUKY.js +0 -6
- package/dist/chunks/chunk-JW2HFMTF.js +0 -4
- package/dist/chunks/chunk-KDYEGGMW.js +0 -4
- package/dist/chunks/chunk-KIGMAATV.js +0 -23
- package/dist/chunks/chunk-KIU5FAPY.js +0 -5
- package/dist/chunks/chunk-KIWMQPH7.js +0 -739
- package/dist/chunks/chunk-L6VCIGWS.js +0 -11
- package/dist/chunks/chunk-LACGULCN.js +0 -10
- package/dist/chunks/chunk-LMSQZ6TQ.js +0 -4
- package/dist/chunks/chunk-MEPASGPP.js +0 -6
- package/dist/chunks/chunk-MFAEUHMV.js +0 -28
- package/dist/chunks/chunk-NAA7GF6Q.js +0 -5
- package/dist/chunks/chunk-NKDMKRSB.js +0 -68
- package/dist/chunks/chunk-NKXV32S6.js +0 -4
- package/dist/chunks/chunk-NVX5IPRN.js +0 -4
- package/dist/chunks/chunk-O3JW2F7D.js +0 -8
- package/dist/chunks/chunk-OE4KH3NJ.js +0 -4
- package/dist/chunks/chunk-OISO5JXB.js +0 -4
- package/dist/chunks/chunk-OPYXNSMY.js +0 -4
- package/dist/chunks/chunk-OSEIQ7SS.js +0 -4
- package/dist/chunks/chunk-P52RMIYX.js +0 -6
- package/dist/chunks/chunk-PBJ5MPPX.js +0 -60
- package/dist/chunks/chunk-PZMGBKUR.js +0 -13
- package/dist/chunks/chunk-PZMXHA6X.js +0 -9
- package/dist/chunks/chunk-Q7CE3UIE.js +0 -133
- package/dist/chunks/chunk-QBKCAIJG.js +0 -4
- package/dist/chunks/chunk-QEOFEETJ.js +0 -4
- package/dist/chunks/chunk-QUUEQRIT.js +0 -4
- package/dist/chunks/chunk-RA6HKFBV.js +0 -4
- package/dist/chunks/chunk-REPYBMQS.js +0 -4
- package/dist/chunks/chunk-SKHLZ6XY.js +0 -9
- package/dist/chunks/chunk-TAWLERZA.js +0 -4
- package/dist/chunks/chunk-TWAEABGG.js +0 -52
- package/dist/chunks/chunk-TZFLHVOQ.js +0 -7
- package/dist/chunks/chunk-UD3NMUHR.js +0 -12
- package/dist/chunks/chunk-UNVEZI57.js +0 -4
- package/dist/chunks/chunk-VQUPKMDR.js +0 -4
- package/dist/chunks/chunk-W25TB3PU.js +0 -4
- package/dist/chunks/chunk-W5LGYSPZ.js +0 -4
- package/dist/chunks/chunk-WEZWKMYU.js +0 -4
- package/dist/chunks/chunk-XAJLZR7C.js +0 -28
- package/dist/chunks/chunk-XH6FMP3N.js +0 -71
- package/dist/chunks/chunk-XSRZHN63.js +0 -4
- package/dist/chunks/chunk-Y3GFB5XM.js +0 -8
- package/dist/chunks/chunk-YG7OEPR2.js +0 -6
- package/dist/chunks/chunk-YHIWOGVL.js +0 -4
- package/dist/chunks/chunk-YKKEI5GI.js +0 -4
- package/dist/chunks/chunk-YZSHTWNM.js +0 -92
- package/dist/chunks/chunk-Z4H3VDHI.js +0 -4
- package/dist/chunks/cli-5DBTRMHU.js +0 -53
- package/dist/chunks/client-XOGYH5UR.js +0 -4
- package/dist/chunks/cloudflare-workers-ai-system-one-32JCFHI3.js +0 -4
- package/dist/chunks/config-DJSQI77S-335IXHSM.js +0 -4
- package/dist/chunks/context-VCQH5OB6.js +0 -4
- package/dist/chunks/cost-PGGFI7QJ.js +0 -5
- package/dist/chunks/dist-PUKMZ7GW.js +0 -4
- package/dist/chunks/easter-egg-3d-MO4MOEVF.js +0 -4
- package/dist/chunks/es5-VNTQPCKX.js +0 -4
- package/dist/chunks/file-7BN7RCAY.js +0 -4
- package/dist/chunks/gateway-UCRPMR75.js +0 -36
- package/dist/chunks/github-copilot-HAI2DA62.js +0 -4
- package/dist/chunks/google-generative-ai-2VXWLHWI.js +0 -4
- package/dist/chunks/google-vertex-UA36QP2U.js +0 -4
- package/dist/chunks/init-HA7FAQ73.js +0 -4
- package/dist/chunks/kimi-coding-HMJRKCPA.js +0 -4
- package/dist/chunks/local-client-stop-SQRU7ZZM.js +0 -4
- package/dist/chunks/meta-KY3LNFV2.js +0 -4
- package/dist/chunks/mistral-conversations-34F66L3O.js +0 -7
- package/dist/chunks/model-resolver-N3DTAQ2S.js +0 -4
- package/dist/chunks/openai-codex-responses-ZBVHREB3.js +0 -12
- package/dist/chunks/openai-completions-VVIB26SH.js +0 -9
- package/dist/chunks/openai-responses-735XA2ZX.js +0 -6
- package/dist/chunks/openrouter-images-3IKETHAC.js +0 -4
- package/dist/chunks/pi-messages-I3E4ZFHA.js +0 -10
- package/dist/chunks/radius-HXRZVBDB.js +0 -4
- package/dist/chunks/remote-ops-BALZYKH6.js +0 -14
- package/dist/chunks/runner-PLVZDGHB.js +0 -4
- package/dist/chunks/runtime-6YLTA2ZD.js +0 -4
- package/dist/chunks/schedule-cli-OLASBBYJ.js +0 -4
- package/dist/chunks/slack-WAGSPZUX.js +0 -4
- package/dist/chunks/start-ui-http-QALT7C3P.js +0 -43
- package/dist/chunks/subagent-E3UC7ZHC.js +0 -4
- package/dist/chunks/tool-shims-Q6P6UXVC.js +0 -4
- package/dist/chunks/typesafe-system-one-6ULACYD4.js +0 -4
- package/dist/chunks/ui-board-4GYW6KKW.js +0 -5
- package/dist/chunks/ui-decision-U2FXSEC2.js +0 -4
- package/dist/chunks/ui-view-O7PLANT7.js +0 -4
- package/dist/chunks/virtual-modules-IDC5YKZJ.js +0 -4
- package/dist/chunks/waitpoint-2FGQBIAC.js +0 -5
- package/dist/chunks/workers-XN4PSTH6.js +0 -4
- package/vendor/aistatus/gateway-cli.js +0 -21
- package/vendor/pi/examples/extensions/sandbox/index.ts +0 -321
- package/vendor/pi/examples/extensions/sandbox/package-lock.json +0 -92
- package/vendor/pi/examples/extensions/sandbox/package.json +0 -19
- package/web/dist/assets/index-BHZpFXhc.js +0 -525
- package/web/dist/assets/index-DqWMdMkh.css +0 -1
- package/web/dist/assets/pdf-worker-Hp15W1QJ.js +0 -57
- package/web/dist/assets/pdf.worker.min-DnhTvCwe.js +0 -55
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { createRequire as __cortexCreateRequire } from 'node:module';
|
|
2
|
-
const require = __cortexCreateRequire(import.meta.url);
|
|
3
|
-
const __cortexPackageRoot = new URL("../../", import.meta.url);
|
|
4
|
-
import{a as za,b as dp,c as lp,d as Kr,e as cp,f as pp}from"./chunk-KIGMAATV.js";import{a as mp,b as up,c as yp,d as fp,e as gp,f as vp,g as _p,h as bp}from"./chunk-4LLH5OWM.js";import{a as lt,c as K}from"./chunk-WHC7AYZD.js";var In=K(Sn=>{"use strict";var Sp=lt("url").parse,Ip={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},wp=String.prototype.endsWith||function(p){return p.length<=this.length&&this.indexOf(p,this.length-p.length)!==-1};function Pp(p){var e=typeof p=="string"?Sp(p):p||{},a=e.protocol,r=e.host,i=e.port;if(typeof r!="string"||!r||typeof a!="string"||(a=a.split(":",1)[0],r=r.replace(/:\d*$/,""),i=parseInt(i)||Ip[a]||0,!kp(r,i)))return"";var s=Ie("npm_config_"+a+"_proxy")||Ie(a+"_proxy")||Ie("npm_config_proxy")||Ie("all_proxy");return s&&s.indexOf("://")===-1&&(s=a+"://"+s),s}function kp(p,e){var a=(Ie("npm_config_no_proxy")||Ie("no_proxy")).toLowerCase();return a?a==="*"?!1:a.split(/[,\s]/).every(function(r){if(!r)return!0;var i=r.match(/^(.+):(\d+)$/),s=i?i[1]:r,o=i?parseInt(i[2]):0;return o&&o!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!wp.call(p,s)):p!==s}):!0}function Ie(p){return process.env[p.toLowerCase()]||process.env[p.toUpperCase()]||""}Sn.getProxyForUrl=Pp});var gh=K((LS,fh)=>{"use strict";var Tp=cp(),qp=lt("crypto"),Fp=lt("url"),$p=In(),zp=lt("http"),Ep=lt("https"),Op=lt("http2"),xp=lt("util"),Gp=pp(),jp=lt("zlib"),Hn=lt("stream"),Rp=lt("events");function $t(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var Kn=$t(Tp),Ap=$t(qp),Cp=$t(Fp),Dp=$t($p),Bp=$t(zp),Lp=$t(Ep),Vn=$t(Op),ci=$t(xp),Mp=$t(Gp),Qt=$t(jp),jt=$t(Hn);function Jn(p,e){return function(){return p.apply(e,arguments)}}var{toString:Wp}=Object.prototype,{getPrototypeOf:pi}=Object,{iterator:Da,toStringTag:Qn}=Symbol,Ba=(p=>e=>{let a=Wp.call(e);return p[a]||(p[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),zt=p=>(p=p.toLowerCase(),e=>Ba(e)===p),La=p=>e=>typeof e===p,{isArray:Fe}=Array,Pe=La("undefined");function He(p){return p!==null&&!Pe(p)&&p.constructor!==null&&!Pe(p.constructor)&&bt(p.constructor.isBuffer)&&p.constructor.isBuffer(p)}var Xn=zt("ArrayBuffer");function Up(p){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(p):e=p&&p.buffer&&Xn(p.buffer),e}var Np=La("string"),bt=La("function"),Zn=La("number"),Ke=p=>p!==null&&typeof p=="object",Hp=p=>p===!0||p===!1,Oa=p=>{if(Ba(p)!=="object")return!1;let e=pi(p);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Qn in p)&&!(Da in p)},Kp=p=>{if(!Ke(p)||He(p))return!1;try{return Object.keys(p).length===0&&Object.getPrototypeOf(p)===Object.prototype}catch{return!1}},Vp=zt("Date"),Jp=zt("File"),Qp=p=>!!(p&&typeof p.uri<"u"),Xp=p=>p&&typeof p.getParts<"u",Zp=zt("Blob"),Yp=zt("FileList"),tm=p=>Ke(p)&&bt(p.pipe);function em(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var wn=em(),Pn=typeof wn.FormData<"u"?wn.FormData:void 0,am=p=>{let e;return p&&(Pn&&p instanceof Pn||bt(p.append)&&((e=Ba(p))==="formdata"||e==="object"&&bt(p.toString)&&p.toString()==="[object FormData]"))},rm=zt("URLSearchParams"),[im,sm,om,nm]=["ReadableStream","Request","Response","Headers"].map(zt),hm=p=>p.trim?p.trim():p.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ve(p,e,{allOwnKeys:a=!1}={}){if(p===null||typeof p>"u")return;let r,i;if(typeof p!="object"&&(p=[p]),Fe(p))for(r=0,i=p.length;r<i;r++)e.call(null,p[r],r,p);else{if(He(p))return;let s=a?Object.getOwnPropertyNames(p):Object.keys(p),o=s.length,t;for(r=0;r<o;r++)t=s[r],e.call(null,p[t],t,p)}}function Yn(p,e){if(He(p))return null;e=e.toLowerCase();let a=Object.keys(p),r=a.length,i;for(;r-- >0;)if(i=a[r],e===i.toLowerCase())return i;return null}var ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,th=p=>!Pe(p)&&p!==ne;function ti(){let{caseless:p,skipUndefined:e}=th(this)&&this||{},a={},r=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let o=p&&Yn(a,s)||s;Oa(a[o])&&Oa(i)?a[o]=ti(a[o],i):Oa(i)?a[o]=ti({},i):Fe(i)?a[o]=i.slice():(!e||!Pe(i))&&(a[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Ve(arguments[i],r);return a}var dm=(p,e,a,{allOwnKeys:r}={})=>(Ve(e,(i,s)=>{a&&bt(i)?Object.defineProperty(p,s,{value:Jn(i,a),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(p,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),p),lm=p=>(p.charCodeAt(0)===65279&&(p=p.slice(1)),p),cm=(p,e,a,r)=>{p.prototype=Object.create(e.prototype,r),Object.defineProperty(p.prototype,"constructor",{value:p,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(p,"super",{value:e.prototype}),a&&Object.assign(p.prototype,a)},pm=(p,e,a,r)=>{let i,s,o,t={};if(e=e||{},p==null)return e;do{for(i=Object.getOwnPropertyNames(p),s=i.length;s-- >0;)o=i[s],(!r||r(o,p,e))&&!t[o]&&(e[o]=p[o],t[o]=!0);p=a!==!1&&pi(p)}while(p&&(!a||a(p,e))&&p!==Object.prototype);return e},mm=(p,e,a)=>{p=String(p),(a===void 0||a>p.length)&&(a=p.length),a-=e.length;let r=p.indexOf(e,a);return r!==-1&&r===a},um=p=>{if(!p)return null;if(Fe(p))return p;let e=p.length;if(!Zn(e))return null;let a=new Array(e);for(;e-- >0;)a[e]=p[e];return a},ym=(p=>e=>p&&e instanceof p)(typeof Uint8Array<"u"&&pi(Uint8Array)),fm=(p,e)=>{let r=(p&&p[Da]).call(p),i;for(;(i=r.next())&&!i.done;){let s=i.value;e.call(p,s[0],s[1])}},gm=(p,e)=>{let a,r=[];for(;(a=p.exec(e))!==null;)r.push(a);return r},vm=zt("HTMLFormElement"),_m=p=>p.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,i){return r.toUpperCase()+i}),kn=(({hasOwnProperty:p})=>(e,a)=>p.call(e,a))(Object.prototype),bm=zt("RegExp"),eh=(p,e)=>{let a=Object.getOwnPropertyDescriptors(p),r={};Ve(a,(i,s)=>{let o;(o=e(i,s,p))!==!1&&(r[s]=o||i)}),Object.defineProperties(p,r)},Sm=p=>{eh(p,(e,a)=>{if(bt(p)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;let r=p[a];if(bt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},Im=(p,e)=>{let a={},r=i=>{i.forEach(s=>{a[s]=!0})};return Fe(p)?r(p):r(String(p).split(e)),a},wm=()=>{},Pm=(p,e)=>p!=null&&Number.isFinite(p=+p)?p:e;function km(p){return!!(p&&bt(p.append)&&p[Qn]==="FormData"&&p[Da])}var Tm=p=>{let e=new Array(10),a=(r,i)=>{if(Ke(r)){if(e.indexOf(r)>=0)return;if(He(r))return r;if(!("toJSON"in r)){e[i]=r;let s=Fe(r)?[]:{};return Ve(r,(o,t)=>{let g=a(o,i+1);!Pe(g)&&(s[t]=g)}),e[i]=void 0,s}}return r};return a(p,0)},qm=zt("AsyncFunction"),Fm=p=>p&&(Ke(p)||bt(p))&&bt(p.then)&&bt(p.catch),ah=((p,e)=>p?setImmediate:e?((a,r)=>(ne.addEventListener("message",({source:i,data:s})=>{i===ne&&s===a&&r.length&&r.shift()()},!1),i=>{r.push(i),ne.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",bt(ne.postMessage)),$m=typeof queueMicrotask<"u"?queueMicrotask.bind(ne):typeof process<"u"&&process.nextTick||ah,zm=p=>p!=null&&bt(p[Da]),F={isArray:Fe,isArrayBuffer:Xn,isBuffer:He,isFormData:am,isArrayBufferView:Up,isString:Np,isNumber:Zn,isBoolean:Hp,isObject:Ke,isPlainObject:Oa,isEmptyObject:Kp,isReadableStream:im,isRequest:sm,isResponse:om,isHeaders:nm,isUndefined:Pe,isDate:Vp,isFile:Jp,isReactNativeBlob:Qp,isReactNative:Xp,isBlob:Zp,isRegExp:bm,isFunction:bt,isStream:tm,isURLSearchParams:rm,isTypedArray:ym,isFileList:Yp,forEach:Ve,merge:ti,extend:dm,trim:hm,stripBOM:lm,inherits:cm,toFlatObject:pm,kindOf:Ba,kindOfTest:zt,endsWith:mm,toArray:um,forEachEntry:fm,matchAll:gm,isHTMLForm:vm,hasOwnProperty:kn,hasOwnProp:kn,reduceDescriptors:eh,freezeMethods:Sm,toObjectSet:Im,toCamelCase:_m,noop:wm,toFiniteNumber:Pm,findKey:Yn,global:ne,isContextDefined:th,isSpecCompliantForm:km,toJSONObject:Tm,isAsyncFn:qm,isThenable:Fm,setImmediate:ah,asap:$m,isIterable:zm},_t=class p extends Error{static from(e,a,r,i,s,o){let t=new p(e.message,a||e.code,r,i,s);return t.cause=e,t.name=e.name,e.status!=null&&t.status==null&&(t.status=e.status),o&&Object.assign(t,o),t}constructor(e,a,r,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,a&&(this.code=a),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.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:F.toJSONObject(this.config),code:this.code,status:this.status}}};_t.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";_t.ERR_BAD_OPTION="ERR_BAD_OPTION";_t.ECONNABORTED="ECONNABORTED";_t.ETIMEDOUT="ETIMEDOUT";_t.ERR_NETWORK="ERR_NETWORK";_t.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";_t.ERR_DEPRECATED="ERR_DEPRECATED";_t.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";_t.ERR_BAD_REQUEST="ERR_BAD_REQUEST";_t.ERR_CANCELED="ERR_CANCELED";_t.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";_t.ERR_INVALID_URL="ERR_INVALID_URL";var A=_t;function ei(p){return F.isPlainObject(p)||F.isArray(p)}function rh(p){return F.endsWith(p,"[]")?p.slice(0,-2):p}function Vr(p,e,a){return p?p.concat(e).map(function(i,s){return i=rh(i),!a&&s?"["+i+"]":i}).join(a?".":""):e}function Em(p){return F.isArray(p)&&!p.some(ei)}var Om=F.toFlatObject(F,{},null,function(e){return/^is[A-Z]/.test(e)});function Ma(p,e,a){if(!F.isObject(p))throw new TypeError("target must be an object");e=e||new(Kn.default||FormData),a=F.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,b){return!F.isUndefined(b[S])});let r=a.metaTokens,i=a.visitor||y,s=a.dots,o=a.indexes,g=(a.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(e);if(!F.isFunction(i))throw new TypeError("visitor must be a function");function m(_){if(_===null)return"";if(F.isDate(_))return _.toISOString();if(F.isBoolean(_))return _.toString();if(!g&&F.isBlob(_))throw new A("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(_)||F.isTypedArray(_)?g&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function y(_,S,b){let I=_;if(F.isReactNative(e)&&F.isReactNativeBlob(_))return e.append(Vr(b,S,s),m(_)),!1;if(_&&!b&&typeof _=="object"){if(F.endsWith(S,"{}"))S=r?S:S.slice(0,-2),_=JSON.stringify(_);else if(F.isArray(_)&&Em(_)||(F.isFileList(_)||F.endsWith(S,"[]"))&&(I=F.toArray(_)))return S=rh(S),I.forEach(function(z,B){!(F.isUndefined(z)||z===null)&&e.append(o===!0?Vr([S],B,s):o===null?S:S+"[]",m(z))}),!1}return ei(_)?!0:(e.append(Vr(b,S,s),m(_)),!1)}let c=[],u=Object.assign(Om,{defaultVisitor:y,convertValue:m,isVisitable:ei});function f(_,S){if(!F.isUndefined(_)){if(c.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));c.push(_),F.forEach(_,function(I,x){(!(F.isUndefined(I)||I===null)&&i.call(e,I,F.isString(x)?x.trim():x,S,u))===!0&&f(I,S?S.concat(x):[x])}),c.pop()}}if(!F.isObject(p))throw new TypeError("data must be an object");return f(p),e}function Tn(p){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(p).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function ih(p,e){this._pairs=[],p&&Ma(p,this,e)}var sh=ih.prototype;sh.append=function(e,a){this._pairs.push([e,a])};sh.toString=function(e){let a=e?function(r){return e.call(this,r,Tn)}:Tn;return this._pairs.map(function(i){return a(i[0])+"="+a(i[1])},"").join("&")};function xm(p){return encodeURIComponent(p).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mi(p,e,a){if(!e)return p;let r=a&&a.encode||xm,i=F.isFunction(a)?{serialize:a}:a,s=i&&i.serialize,o;if(s?o=s(e,i):o=F.isURLSearchParams(e)?e.toString():new ih(e,i).toString(r),o){let t=p.indexOf("#");t!==-1&&(p=p.slice(0,t)),p+=(p.indexOf("?")===-1?"?":"&")+o}return p}var ai=class{constructor(){this.handlers=[]}use(e,a,r){return this.handlers.push({fulfilled:e,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){F.forEach(this.handlers,function(r){r!==null&&e(r)})}},qn=ai,Wa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Gm=Cp.default.URLSearchParams,Jr="abcdefghijklmnopqrstuvwxyz",Fn="0123456789",oh={DIGIT:Fn,ALPHA:Jr,ALPHA_DIGIT:Jr+Jr.toUpperCase()+Fn},jm=(p=16,e=oh.ALPHA_DIGIT)=>{let a="",{length:r}=e,i=new Uint32Array(p);Ap.default.randomFillSync(i);for(let s=0;s<p;s++)a+=e[i[s]%r];return a},Rm={isNode:!0,classes:{URLSearchParams:Gm,FormData:Kn.default,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:oh,generateString:jm,protocols:["http","https","file","data"]},ui=typeof window<"u"&&typeof document<"u",ri=typeof navigator=="object"&&navigator||void 0,Am=ui&&(!ri||["ReactNative","NativeScript","NS"].indexOf(ri.product)<0),Cm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Dm=ui&&window.location.href||"http://localhost",Bm=Object.freeze({__proto__:null,hasBrowserEnv:ui,hasStandardBrowserWebWorkerEnv:Cm,hasStandardBrowserEnv:Am,navigator:ri,origin:Dm}),dt={...Bm,...Rm};function Lm(p,e){return Ma(p,new dt.classes.URLSearchParams,{visitor:function(a,r,i,s){return dt.isNode&&F.isBuffer(a)?(this.append(r,a.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function Mm(p){return F.matchAll(/\w+|\[(\w*)]/g,p).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Wm(p){let e={},a=Object.keys(p),r,i=a.length,s;for(r=0;r<i;r++)s=a[r],e[s]=p[s];return e}function nh(p){function e(a,r,i,s){let o=a[s++];if(o==="__proto__")return!0;let t=Number.isFinite(+o),g=s>=a.length;return o=!o&&F.isArray(i)?i.length:o,g?(F.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!t):((!i[o]||!F.isObject(i[o]))&&(i[o]=[]),e(a,r,i[o],s)&&F.isArray(i[o])&&(i[o]=Wm(i[o])),!t)}if(F.isFormData(p)&&F.isFunction(p.entries)){let a={};return F.forEachEntry(p,(r,i)=>{e(Mm(r),i,a,0)}),a}return null}function Um(p,e,a){if(F.isString(p))try{return(e||JSON.parse)(p),F.trim(p)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(p)}var yi={transitional:Wa,adapter:["xhr","http","fetch"],transformRequest:[function(e,a){let r=a.getContentType()||"",i=r.indexOf("application/json")>-1,s=F.isObject(e);if(s&&F.isHTMLForm(e)&&(e=new FormData(e)),F.isFormData(e))return i?JSON.stringify(nh(e)):e;if(F.isArrayBuffer(e)||F.isBuffer(e)||F.isStream(e)||F.isFile(e)||F.isBlob(e)||F.isReadableStream(e))return e;if(F.isArrayBufferView(e))return e.buffer;if(F.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let t;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lm(e,this.formSerializer).toString();if((t=F.isFileList(e))||r.indexOf("multipart/form-data")>-1){let g=this.env&&this.env.FormData;return Ma(t?{"files[]":e}:e,g&&new g,this.formSerializer)}}return s||i?(a.setContentType("application/json",!1),Um(e)):e}],transformResponse:[function(e){let a=this.transitional||yi.transitional,r=a&&a.forcedJSONParsing,i=this.responseType==="json";if(F.isResponse(e)||F.isReadableStream(e))return e;if(e&&F.isString(e)&&(r&&!this.responseType||i)){let o=!(a&&a.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(t){if(o)throw t.name==="SyntaxError"?A.from(t,A.ERR_BAD_RESPONSE,this,null,this.response):t}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],p=>{yi.headers[p]={}});var fi=yi,Nm=F.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"]),Hm=p=>{let e={},a,r,i;return p&&p.split(`
|
|
5
|
-
`).forEach(function(o){i=o.indexOf(":"),a=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!a||e[a]&&Nm[a])&&(a==="set-cookie"?e[a]?e[a].push(r):e[a]=[r]:e[a]=e[a]?e[a]+", "+r:r)}),e},$n=Symbol("internals");function Ue(p){return p&&String(p).trim().toLowerCase()}function xa(p){return p===!1||p==null?p:F.isArray(p)?p.map(xa):String(p)}function Km(p){let e=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=a.exec(p);)e[r[1]]=r[2];return e}var Vm=p=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(p.trim());function Qr(p,e,a,r,i){if(F.isFunction(r))return r.call(this,e,a);if(i&&(e=a),!!F.isString(e)){if(F.isString(r))return e.indexOf(r)!==-1;if(F.isRegExp(r))return r.test(e)}}function Jm(p){return p.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,a,r)=>a.toUpperCase()+r)}function Qm(p,e){let a=F.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(p,r+a,{value:function(i,s,o){return this[r].call(this,e,i,s,o)},configurable:!0})})}var ke=class{constructor(e){e&&this.set(e)}set(e,a,r){let i=this;function s(t,g,m){let y=Ue(g);if(!y)throw new Error("header name must be a non-empty string");let c=F.findKey(i,y);(!c||i[c]===void 0||m===!0||m===void 0&&i[c]!==!1)&&(i[c||g]=xa(t))}let o=(t,g)=>F.forEach(t,(m,y)=>s(m,y,g));if(F.isPlainObject(e)||e instanceof this.constructor)o(e,a);else if(F.isString(e)&&(e=e.trim())&&!Vm(e))o(Hm(e),a);else if(F.isObject(e)&&F.isIterable(e)){let t={},g,m;for(let y of e){if(!F.isArray(y))throw TypeError("Object iterator must return a key-value pair");t[m=y[0]]=(g=t[m])?F.isArray(g)?[...g,y[1]]:[g,y[1]]:y[1]}o(t,a)}else e!=null&&s(a,e,r);return this}get(e,a){if(e=Ue(e),e){let r=F.findKey(this,e);if(r){let i=this[r];if(!a)return i;if(a===!0)return Km(i);if(F.isFunction(a))return a.call(this,i,r);if(F.isRegExp(a))return a.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,a){if(e=Ue(e),e){let r=F.findKey(this,e);return!!(r&&this[r]!==void 0&&(!a||Qr(this,this[r],r,a)))}return!1}delete(e,a){let r=this,i=!1;function s(o){if(o=Ue(o),o){let t=F.findKey(r,o);t&&(!a||Qr(r,r[t],t,a))&&(delete r[t],i=!0)}}return F.isArray(e)?e.forEach(s):s(e),i}clear(e){let a=Object.keys(this),r=a.length,i=!1;for(;r--;){let s=a[r];(!e||Qr(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let a=this,r={};return F.forEach(this,(i,s)=>{let o=F.findKey(r,s);if(o){a[o]=xa(i),delete a[s];return}let t=e?Jm(s):String(s).trim();t!==s&&delete a[s],a[t]=xa(i),r[t]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let a=Object.create(null);return F.forEach(this,(r,i)=>{r!=null&&r!==!1&&(a[i]=e&&F.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,a])=>e+": "+a).join(`
|
|
6
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...a){let r=new this(e);return a.forEach(i=>r.set(i)),r}static accessor(e){let r=(this[$n]=this[$n]={accessors:{}}).accessors,i=this.prototype;function s(o){let t=Ue(o);r[t]||(Qm(i,o),r[t]=!0)}return F.isArray(e)?e.forEach(s):s(e),this}};ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.reduceDescriptors(ke.prototype,({value:p},e)=>{let a=e[0].toUpperCase()+e.slice(1);return{get:()=>p,set(r){this[a]=r}}});F.freezeMethods(ke);var St=ke;function Xr(p,e){let a=this||fi,r=e||a,i=St.from(r.headers),s=r.data;return F.forEach(p,function(t){s=t.call(a,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function hh(p){return!!(p&&p.__CANCEL__)}var ii=class extends A{constructor(e,a,r){super(e??"canceled",A.ERR_CANCELED,a,r),this.name="CanceledError",this.__CANCEL__=!0}},de=ii;function we(p,e,a){let r=a.config.validateStatus;!a.status||!r||r(a.status)?p(a):e(new A("Request failed with status code "+a.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Xm(p){return typeof p!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(p)}function Zm(p,e){return e?p.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):p}function gi(p,e,a){let r=!Xm(e);return p&&(r||a==!1)?Zm(p,e):e}var Ra="1.13.6";function dh(p){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(p);return e&&e[1]||""}var Ym=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function tu(p,e,a){let r=a&&a.Blob||dt.classes.Blob,i=dh(p);if(e===void 0&&r&&(e=!0),i==="data"){p=i.length?p.slice(i.length+1):p;let s=Ym.exec(p);if(!s)throw new A("Invalid URL",A.ERR_INVALID_URL);let o=s[1],t=s[2],g=s[3],m=Buffer.from(decodeURIComponent(g),t?"base64":"utf8");if(e){if(!r)throw new A("Blob is not supported",A.ERR_NOT_SUPPORT);return new r([m],{type:o})}return m}throw new A("Unsupported protocol "+i,A.ERR_NOT_SUPPORT)}var Zr=Symbol("internals"),si=class extends jt.default.Transform{constructor(e){e=F.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(r,i)=>!F.isUndefined(i[r])),super({readableHighWaterMark:e.chunkSize});let a=this[Zr]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",r=>{r==="progress"&&(a.isCaptured||(a.isCaptured=!0))})}_read(e){let a=this[Zr];return a.onReadCallback&&a.onReadCallback(),super._read(e)}_transform(e,a,r){let i=this[Zr],s=i.maxRate,o=this.readableHighWaterMark,t=i.timeWindow,g=1e3/t,m=s/g,y=i.minChunkSize!==!1?Math.max(i.minChunkSize,m*.01):0,c=(f,_)=>{let S=Buffer.byteLength(f);i.bytesSeen+=S,i.bytes+=S,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(f)?process.nextTick(_):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(_)}},u=(f,_)=>{let S=Buffer.byteLength(f),b=null,I=o,x,z=0;if(s){let B=Date.now();(!i.ts||(z=B-i.ts)>=t)&&(i.ts=B,x=m-i.bytes,i.bytes=x<0?-x:0,z=0),x=m-i.bytes}if(s){if(x<=0)return setTimeout(()=>{_(null,f)},t-z);x<I&&(I=x)}I&&S>I&&S-I>y&&(b=f.subarray(I),f=f.subarray(0,I)),c(f,b?()=>{process.nextTick(_,null,b)}:_)};u(e,function f(_,S){if(_)return r(_);S?u(S,f):r(null)})}},zn=si,{asyncIterator:En}=Symbol,eu=async function*(p){p.stream?yield*p.stream():p.arrayBuffer?yield await p.arrayBuffer():p[En]?yield*p[En]():yield p},lh=eu,au=dt.ALPHABET.ALPHA_DIGIT+"-_",Ne=typeof TextEncoder=="function"?new TextEncoder:new ci.default.TextEncoder,he=`\r
|
|
7
|
-
`,ru=Ne.encode(he),iu=2,oi=class{constructor(e,a){let{escapeName:r}=this.constructor,i=F.isString(a),s=`Content-Disposition: form-data; name="${r(e)}"${!i&&a.name?`; filename="${r(a.name)}"`:""}${he}`;i?a=Ne.encode(String(a).replace(/\r?\n|\r\n?/g,he)):s+=`Content-Type: ${a.type||"application/octet-stream"}${he}`,this.headers=Ne.encode(s+he),this.contentLength=i?a.byteLength:a.size,this.size=this.headers.byteLength+this.contentLength+iu,this.name=e,this.value=a}async*encode(){yield this.headers;let{value:e}=this;F.isTypedArray(e)?yield e:yield*lh(e),yield ru}static escapeName(e){return String(e).replace(/[\r\n"]/g,a=>({"\r":"%0D","\n":"%0A",'"':"%22"})[a])}},su=(p,e,a)=>{let{tag:r="form-data-boundary",size:i=25,boundary:s=r+"-"+dt.generateString(i,au)}=a||{};if(!F.isFormData(p))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let o=Ne.encode("--"+s+he),t=Ne.encode("--"+s+"--"+he),g=t.byteLength,m=Array.from(p.entries()).map(([c,u])=>{let f=new oi(c,u);return g+=f.size,f});g+=o.byteLength*m.length,g=F.toFiniteNumber(g);let y={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(g)&&(y["Content-Length"]=g),e&&e(y),Hn.Readable.from((async function*(){for(let c of m)yield o,yield*c.encode();yield t})())},ou=su,ni=class extends jt.default.Transform{__transform(e,a,r){this.push(e),r()}_transform(e,a,r){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,a)}this.__transform(e,a,r)}},nu=ni,hu=(p,e)=>F.isAsyncFn(p)?function(...a){let r=a.pop();p.apply(this,a).then(i=>{try{e?r(null,...e(i)):r(null,i)}catch(s){r(s)}},r)}:p,du=hu;function lu(p,e){p=p||10;let a=new Array(p),r=new Array(p),i=0,s=0,o;return e=e!==void 0?e:1e3,function(g){let m=Date.now(),y=r[s];o||(o=m),a[i]=g,r[i]=m;let c=s,u=0;for(;c!==i;)u+=a[c++],c=c%p;if(i=(i+1)%p,i===s&&(s=(s+1)%p),m-o<e)return;let f=y&&m-y;return f?Math.round(u*1e3/f):void 0}}function cu(p,e){let a=0,r=1e3/e,i,s,o=(m,y=Date.now())=>{a=y,i=null,s&&(clearTimeout(s),s=null),p(...m)};return[(...m)=>{let y=Date.now(),c=y-a;c>=r?o(m,y):(i=m,s||(s=setTimeout(()=>{s=null,o(i)},r-c)))},()=>i&&o(i)]}var Te=(p,e,a=3)=>{let r=0,i=lu(50,250);return cu(s=>{let o=s.loaded,t=s.lengthComputable?s.total:void 0,g=o-r,m=i(g),y=o<=t;r=o;let c={loaded:o,total:t,progress:t?o/t:void 0,bytes:g,rate:m||void 0,estimated:m&&t&&y?(t-o)/m:void 0,event:s,lengthComputable:t!=null,[e?"download":"upload"]:!0};p(c)},a)},Aa=(p,e)=>{let a=p!=null;return[r=>e[0]({lengthComputable:a,total:p,loaded:r}),e[1]]},Ca=p=>(...e)=>F.asap(()=>p(...e));function pu(p){if(!p||typeof p!="string"||!p.startsWith("data:"))return 0;let e=p.indexOf(",");if(e<0)return 0;let a=p.slice(5,e),r=p.slice(e+1);if(/;base64/i.test(a)){let s=r.length,o=r.length;for(let u=0;u<o;u++)if(r.charCodeAt(u)===37&&u+2<o){let f=r.charCodeAt(u+1),_=r.charCodeAt(u+2);(f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102)&&(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102)&&(s-=2,u+=2)}let t=0,g=o-1,m=u=>u>=2&&r.charCodeAt(u-2)===37&&r.charCodeAt(u-1)===51&&(r.charCodeAt(u)===68||r.charCodeAt(u)===100);g>=0&&(r.charCodeAt(g)===61?(t++,g--):m(g)&&(t++,g-=3)),t===1&&g>=0&&(r.charCodeAt(g)===61||m(g))&&t++;let c=Math.floor(s/4)*3-(t||0);return c>0?c:0}return Buffer.byteLength(r,"utf8")}var On={flush:Qt.default.constants.Z_SYNC_FLUSH,finishFlush:Qt.default.constants.Z_SYNC_FLUSH},mu={flush:Qt.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Qt.default.constants.BROTLI_OPERATION_FLUSH},xn=F.isFunction(Qt.default.createBrotliDecompress),{http:uu,https:yu}=Mp.default,fu=/https:?/,Gn=dt.protocols.map(p=>p+":"),jn=(p,[e,a])=>(p.on("end",a).on("error",a),e),hi=class{constructor(){this.sessions=Object.create(null)}getSession(e,a){a=Object.assign({sessionTimeout:1e3},a);let r=this.sessions[e];if(r){let y=r.length;for(let c=0;c<y;c++){let[u,f]=r[c];if(!u.destroyed&&!u.closed&&ci.default.isDeepStrictEqual(f,a))return u}}let i=Vn.default.connect(e,a),s,o=()=>{if(s)return;s=!0;let y=r,c=y.length,u=c;for(;u--;)if(y[u][0]===i){c===1?delete this.sessions[e]:y.splice(u,1);return}},t=i.request,{sessionTimeout:g}=a;if(g!=null){let y,c=0;i.request=function(){let u=t.apply(this,arguments);return c++,y&&(clearTimeout(y),y=null),u.once("close",()=>{--c||(y=setTimeout(()=>{y=null,o()},g))}),u}}i.once("close",o);let m=[i,a];return r?r.push(m):r=this.sessions[e]=[m],i}},gu=new hi;function vu(p,e){p.beforeRedirects.proxy&&p.beforeRedirects.proxy(p),p.beforeRedirects.config&&p.beforeRedirects.config(p,e)}function ch(p,e,a){let r=e;if(!r&&r!==!1){let i=Dp.default.getProxyForUrl(a);i&&(r=new URL(i))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){if(!!(r.auth.username||r.auth.password))r.auth=(r.auth.username||"")+":"+(r.auth.password||"");else if(typeof r.auth=="object")throw new A("Invalid proxy authorization",A.ERR_BAD_OPTION,{proxy:r});let o=Buffer.from(r.auth,"utf8").toString("base64");p.headers["Proxy-Authorization"]="Basic "+o}p.headers.host=p.hostname+(p.port?":"+p.port:"");let i=r.hostname||r.host;p.hostname=i,p.host=i,p.port=r.port,p.path=a,r.protocol&&(p.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}p.beforeRedirects.proxy=function(s){ch(s,e,s.href)}}var _u=typeof process<"u"&&F.kindOf(process)==="process",bu=p=>new Promise((e,a)=>{let r,i,s=(g,m)=>{i||(i=!0,r&&r(g,m))},o=g=>{s(g),e(g)},t=g=>{s(g,!0),a(g)};p(o,t,g=>r=g).catch(t)}),Su=({address:p,family:e})=>{if(!F.isString(p))throw TypeError("address must be a string");return{address:p,family:e||(p.indexOf(".")<0?6:4)}},Rn=(p,e)=>Su(F.isObject(p)?p:{address:p,family:e}),Iu={request(p,e){let a=p.protocol+"//"+p.hostname+":"+(p.port||(p.protocol==="https:"?443:80)),{http2Options:r,headers:i}=p,s=gu.getSession(a,r),{HTTP2_HEADER_SCHEME:o,HTTP2_HEADER_METHOD:t,HTTP2_HEADER_PATH:g,HTTP2_HEADER_STATUS:m}=Vn.default.constants,y={[o]:p.protocol.replace(":",""),[t]:p.method,[g]:p.path};F.forEach(i,(u,f)=>{f.charAt(0)!==":"&&(y[f]=u)});let c=s.request(y);return c.once("response",u=>{let f=c;u=Object.assign({},u);let _=u[m];delete u[m],f.headers=u,f.statusCode=+_,e(f)}),c}},wu=_u&&function(e){return bu(async function(r,i,s){let{data:o,lookup:t,family:g,httpVersion:m=1,http2Options:y}=e,{responseType:c,responseEncoding:u}=e,f=e.method.toUpperCase(),_,S=!1,b;if(m=+m,Number.isNaN(m))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(m!==1&&m!==2)throw TypeError(`Unsupported protocol version '${m}'`);let I=m===2;if(t){let R=du(t,G=>F.isArray(G)?G:[G]);t=(G,M,J)=>{R(G,M,(Q,tt,ht)=>{if(Q)return J(Q);let mt=F.isArray(tt)?tt.map($a=>Rn($a)):[Rn(tt,ht)];M.all?J(Q,mt):J(Q,mt[0].address,mt[0].family)})}}let x=new Rp.EventEmitter;function z(R){try{x.emit("abort",!R||R.type?new de(null,e,b):R)}catch(G){console.warn("emit error",G)}}x.once("abort",i);let B=()=>{e.cancelToken&&e.cancelToken.unsubscribe(z),e.signal&&e.signal.removeEventListener("abort",z),x.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(z),e.signal&&(e.signal.aborted?z():e.signal.addEventListener("abort",z))),s((R,G)=>{if(_=!0,G){S=!0,B();return}let{data:M}=R;if(M instanceof jt.default.Readable||M instanceof jt.default.Duplex){let J=jt.default.finished(M,()=>{J(),B()})}else B()});let N=gi(e.baseURL,e.url,e.allowAbsoluteUrls),V=new URL(N,dt.hasBrowserEnv?dt.origin:void 0),X=V.protocol||Gn[0];if(X==="data:"){if(e.maxContentLength>-1){let G=String(e.url||N||"");if(pu(G)>e.maxContentLength)return i(new A("maxContentLength size of "+e.maxContentLength+" exceeded",A.ERR_BAD_RESPONSE,e))}let R;if(f!=="GET")return we(r,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{R=tu(e.url,c==="blob",{Blob:e.env&&e.env.Blob})}catch(G){throw A.from(G,A.ERR_BAD_REQUEST,e)}return c==="text"?(R=R.toString(u),(!u||u==="utf8")&&(R=F.stripBOM(R))):c==="stream"&&(R=jt.default.Readable.from(R)),we(r,i,{data:R,status:200,statusText:"OK",headers:new St,config:e})}if(Gn.indexOf(X)===-1)return i(new A("Unsupported protocol "+X,A.ERR_BAD_REQUEST,e));let at=St.from(e.headers).normalize();at.set("User-Agent","axios/"+Ra,!1);let{onUploadProgress:pt,onDownloadProgress:Y}=e,E=e.maxRate,gt,$;if(F.isSpecCompliantForm(o)){let R=at.getContentType(/boundary=([-_\w\d]{10,70})/i);o=ou(o,G=>{at.set(G)},{tag:`axios-${Ra}-boundary`,boundary:R&&R[1]||void 0})}else if(F.isFormData(o)&&F.isFunction(o.getHeaders)){if(at.set(o.getHeaders()),!at.hasContentLength())try{let R=await ci.default.promisify(o.getLength).call(o);Number.isFinite(R)&&R>=0&&at.setContentLength(R)}catch{}}else if(F.isBlob(o)||F.isFile(o))o.size&&at.setContentType(o.type||"application/octet-stream"),at.setContentLength(o.size||0),o=jt.default.Readable.from(lh(o));else if(o&&!F.isStream(o)){if(!Buffer.isBuffer(o))if(F.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(F.isString(o))o=Buffer.from(o,"utf-8");else return i(new A("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",A.ERR_BAD_REQUEST,e));if(at.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return i(new A("Request body larger than maxBodyLength limit",A.ERR_BAD_REQUEST,e))}let q=F.toFiniteNumber(at.getContentLength());F.isArray(E)?(gt=E[0],$=E[1]):gt=$=E,o&&(pt||gt)&&(F.isStream(o)||(o=jt.default.Readable.from(o,{objectMode:!1})),o=jt.default.pipeline([o,new zn({maxRate:F.toFiniteNumber(gt)})],F.noop),pt&&o.on("progress",jn(o,Aa(q,Te(Ca(pt),!1,3)))));let O;if(e.auth){let R=e.auth.username||"",G=e.auth.password||"";O=R+":"+G}if(!O&&V.username){let R=V.username,G=V.password;O=R+":"+G}O&&at.delete("authorization");let D;try{D=mi(V.pathname+V.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(R){let G=new Error(R.message);return G.config=e,G.url=e.url,G.exists=!0,i(G)}at.set("Accept-Encoding","gzip, compress, deflate"+(xn?", br":""),!1);let L={path:D,method:f,headers:at.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:X,family:g,beforeRedirect:vu,beforeRedirects:{},http2Options:y};!F.isUndefined(t)&&(L.lookup=t),e.socketPath?L.socketPath=e.socketPath:(L.hostname=V.hostname.startsWith("[")?V.hostname.slice(1,-1):V.hostname,L.port=V.port,ch(L,e.proxy,X+"//"+V.hostname+(V.port?":"+V.port:"")+L.path));let U,et=fu.test(L.protocol);if(L.agent=et?e.httpsAgent:e.httpAgent,I?U=Iu:e.transport?U=e.transport:e.maxRedirects===0?U=et?Lp.default:Bp.default:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),U=et?yu:uu),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),b=U.request(L,function(G){if(b.destroyed)return;let M=[G],J=F.toFiniteNumber(G.headers["content-length"]);if(Y||$){let mt=new zn({maxRate:F.toFiniteNumber($)});Y&&mt.on("progress",jn(mt,Aa(J,Te(Ca(Y),!0,3)))),M.push(mt)}let Q=G,tt=G.req||b;if(e.decompress!==!1&&G.headers["content-encoding"])switch((f==="HEAD"||G.statusCode===204)&&delete G.headers["content-encoding"],(G.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":M.push(Qt.default.createUnzip(On)),delete G.headers["content-encoding"];break;case"deflate":M.push(new nu),M.push(Qt.default.createUnzip(On)),delete G.headers["content-encoding"];break;case"br":xn&&(M.push(Qt.default.createBrotliDecompress(mu)),delete G.headers["content-encoding"])}Q=M.length>1?jt.default.pipeline(M,F.noop):M[0];let ht={status:G.statusCode,statusText:G.statusMessage,headers:new St(G.headers),config:e,request:tt};if(c==="stream")ht.data=Q,we(r,i,ht);else{let mt=[],$a=0;Q.on("data",function(vt){mt.push(vt),$a+=vt.length,e.maxContentLength>-1&&$a>e.maxContentLength&&(S=!0,Q.destroy(),z(new A("maxContentLength size of "+e.maxContentLength+" exceeded",A.ERR_BAD_RESPONSE,e,tt)))}),Q.on("aborted",function(){if(S)return;let vt=new A("stream has been aborted",A.ERR_BAD_RESPONSE,e,tt);Q.destroy(vt),i(vt)}),Q.on("error",function(vt){b.destroyed||i(A.from(vt,null,e,tt))}),Q.on("end",function(){try{let vt=mt.length===1?mt[0]:Buffer.concat(mt);c!=="arraybuffer"&&(vt=vt.toString(u),(!u||u==="utf8")&&(vt=F.stripBOM(vt))),ht.data=vt}catch(vt){return i(A.from(vt,null,e,ht.request,ht))}we(r,i,ht)})}x.once("abort",mt=>{Q.destroyed||(Q.emit("error",mt),Q.destroy())})}),x.once("abort",R=>{b.close?b.close():b.destroy(R)}),b.on("error",function(G){i(A.from(G,null,e,b))}),b.on("socket",function(G){G.setKeepAlive(!0,1e3*60)}),e.timeout){let R=parseInt(e.timeout,10);if(Number.isNaN(R)){z(new A("error trying to parse `config.timeout` to int",A.ERR_BAD_OPTION_VALUE,e,b));return}b.setTimeout(R,function(){if(_)return;let M=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",J=e.transitional||Wa;e.timeoutErrorMessage&&(M=e.timeoutErrorMessage),z(new A(M,J.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,b))})}else b.setTimeout(0);if(F.isStream(o)){let R=!1,G=!1;o.on("end",()=>{R=!0}),o.once("error",M=>{G=!0,b.destroy(M)}),o.on("close",()=>{!R&&!G&&z(new de("Request stream has been aborted",e,b))}),o.pipe(b)}else o&&b.write(o),b.end()})},Pu=dt.hasStandardBrowserEnv?((p,e)=>a=>(a=new URL(a,dt.origin),p.protocol===a.protocol&&p.host===a.host&&(e||p.port===a.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,ku=dt.hasStandardBrowserEnv?{write(p,e,a,r,i,s,o){if(typeof document>"u")return;let t=[`${p}=${encodeURIComponent(e)}`];F.isNumber(a)&&t.push(`expires=${new Date(a).toUTCString()}`),F.isString(r)&&t.push(`path=${r}`),F.isString(i)&&t.push(`domain=${i}`),s===!0&&t.push("secure"),F.isString(o)&&t.push(`SameSite=${o}`),document.cookie=t.join("; ")},read(p){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+p+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(p){this.write(p,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}},An=p=>p instanceof St?{...p}:p;function le(p,e){e=e||{};let a={};function r(m,y,c,u){return F.isPlainObject(m)&&F.isPlainObject(y)?F.merge.call({caseless:u},m,y):F.isPlainObject(y)?F.merge({},y):F.isArray(y)?y.slice():y}function i(m,y,c,u){if(F.isUndefined(y)){if(!F.isUndefined(m))return r(void 0,m,c,u)}else return r(m,y,c,u)}function s(m,y){if(!F.isUndefined(y))return r(void 0,y)}function o(m,y){if(F.isUndefined(y)){if(!F.isUndefined(m))return r(void 0,m)}else return r(void 0,y)}function t(m,y,c){if(c in e)return r(m,y);if(c in p)return r(void 0,m)}let g={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:t,headers:(m,y,c)=>i(An(m),An(y),c,!0)};return F.forEach(Object.keys({...p,...e}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;let c=F.hasOwnProp(g,y)?g[y]:i,u=c(p[y],e[y],y);F.isUndefined(u)&&c!==t||(a[y]=u)}),a}var ph=p=>{let e=le({},p),{data:a,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:t}=e;if(e.headers=o=St.from(o),e.url=mi(gi(e.baseURL,e.url,e.allowAbsoluteUrls),p.params,p.paramsSerializer),t&&o.set("Authorization","Basic "+btoa((t.username||"")+":"+(t.password?unescape(encodeURIComponent(t.password)):""))),F.isFormData(a)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(F.isFunction(a.getHeaders)){let g=a.getHeaders(),m=["content-type","content-length"];Object.entries(g).forEach(([y,c])=>{m.includes(y.toLowerCase())&&o.set(y,c)})}}if(dt.hasStandardBrowserEnv&&(r&&F.isFunction(r)&&(r=r(e)),r||r!==!1&&Pu(e.url))){let g=i&&s&&ku.read(s);g&&o.set(i,g)}return e},Tu=typeof XMLHttpRequest<"u",qu=Tu&&function(p){return new Promise(function(a,r){let i=ph(p),s=i.data,o=St.from(i.headers).normalize(),{responseType:t,onUploadProgress:g,onDownloadProgress:m}=i,y,c,u,f,_;function S(){f&&f(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(y),i.signal&&i.signal.removeEventListener("abort",y)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function I(){if(!b)return;let z=St.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),N={data:!t||t==="text"||t==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:z,config:p,request:b};we(function(X){a(X),S()},function(X){r(X),S()},N),b=null}"onloadend"in b?b.onloadend=I:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(I)},b.onabort=function(){b&&(r(new A("Request aborted",A.ECONNABORTED,p,b)),b=null)},b.onerror=function(B){let N=B&&B.message?B.message:"Network Error",V=new A(N,A.ERR_NETWORK,p,b);V.event=B||null,r(V),b=null},b.ontimeout=function(){let B=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",N=i.transitional||Wa;i.timeoutErrorMessage&&(B=i.timeoutErrorMessage),r(new A(B,N.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,p,b)),b=null},s===void 0&&o.setContentType(null),"setRequestHeader"in b&&F.forEach(o.toJSON(),function(B,N){b.setRequestHeader(N,B)}),F.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),t&&t!=="json"&&(b.responseType=i.responseType),m&&([u,_]=Te(m,!0),b.addEventListener("progress",u)),g&&b.upload&&([c,f]=Te(g),b.upload.addEventListener("progress",c),b.upload.addEventListener("loadend",f)),(i.cancelToken||i.signal)&&(y=z=>{b&&(r(!z||z.type?new de(null,p,b):z),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(y),i.signal&&(i.signal.aborted?y():i.signal.addEventListener("abort",y)));let x=dh(i.url);if(x&&dt.protocols.indexOf(x)===-1){r(new A("Unsupported protocol "+x+":",A.ERR_BAD_REQUEST,p));return}b.send(s||null)})},Fu=(p,e)=>{let{length:a}=p=p?p.filter(Boolean):[];if(e||a){let r=new AbortController,i,s=function(m){if(!i){i=!0,t();let y=m instanceof Error?m:this.reason;r.abort(y instanceof A?y:new de(y instanceof Error?y.message:y))}},o=e&&setTimeout(()=>{o=null,s(new A(`timeout of ${e}ms exceeded`,A.ETIMEDOUT))},e),t=()=>{p&&(o&&clearTimeout(o),o=null,p.forEach(m=>{m.unsubscribe?m.unsubscribe(s):m.removeEventListener("abort",s)}),p=null)};p.forEach(m=>m.addEventListener("abort",s));let{signal:g}=r;return g.unsubscribe=()=>F.asap(t),g}},$u=Fu,zu=function*(p,e){let a=p.byteLength;if(!e||a<e){yield p;return}let r=0,i;for(;r<a;)i=r+e,yield p.slice(r,i),r=i},Eu=async function*(p,e){for await(let a of Ou(p))yield*zu(a,e)},Ou=async function*(p){if(p[Symbol.asyncIterator]){yield*p;return}let e=p.getReader();try{for(;;){let{done:a,value:r}=await e.read();if(a)break;yield r}}finally{await e.cancel()}},Cn=(p,e,a,r)=>{let i=Eu(p,e),s=0,o,t=g=>{o||(o=!0,r&&r(g))};return new ReadableStream({async pull(g){try{let{done:m,value:y}=await i.next();if(m){t(),g.close();return}let c=y.byteLength;if(a){let u=s+=c;a(u)}g.enqueue(new Uint8Array(y))}catch(m){throw t(m),m}},cancel(g){return t(g),i.return()}},{highWaterMark:2})},Dn=64*1024,{isFunction:Ea}=F,xu=(({Request:p,Response:e})=>({Request:p,Response:e}))(F.global),{ReadableStream:Bn,TextEncoder:Ln}=F.global,Mn=(p,...e)=>{try{return!!p(...e)}catch{return!1}},Gu=p=>{p=F.merge.call({skipUndefined:!0},xu,p);let{fetch:e,Request:a,Response:r}=p,i=e?Ea(e):typeof fetch=="function",s=Ea(a),o=Ea(r);if(!i)return!1;let t=i&&Ea(Bn),g=i&&(typeof Ln=="function"?(_=>S=>_.encode(S))(new Ln):async _=>new Uint8Array(await new a(_).arrayBuffer())),m=s&&t&&Mn(()=>{let _=!1,S=new a(dt.origin,{body:new Bn,method:"POST",get duplex(){return _=!0,"half"}}).headers.has("Content-Type");return _&&!S}),y=o&&t&&Mn(()=>F.isReadableStream(new r("").body)),c={stream:y&&(_=>_.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!c[_]&&(c[_]=(S,b)=>{let I=S&&S[_];if(I)return I.call(S);throw new A(`Response type '${_}' is not supported`,A.ERR_NOT_SUPPORT,b)})});let u=async _=>{if(_==null)return 0;if(F.isBlob(_))return _.size;if(F.isSpecCompliantForm(_))return(await new a(dt.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(F.isArrayBufferView(_)||F.isArrayBuffer(_))return _.byteLength;if(F.isURLSearchParams(_)&&(_=_+""),F.isString(_))return(await g(_)).byteLength},f=async(_,S)=>{let b=F.toFiniteNumber(_.getContentLength());return b??u(S)};return async _=>{let{url:S,method:b,data:I,signal:x,cancelToken:z,timeout:B,onDownloadProgress:N,onUploadProgress:V,responseType:X,headers:at,withCredentials:pt="same-origin",fetchOptions:Y}=ph(_),E=e||fetch;X=X?(X+"").toLowerCase():"text";let gt=$u([x,z&&z.toAbortSignal()],B),$=null,q=gt&>.unsubscribe&&(()=>{gt.unsubscribe()}),O;try{if(V&&m&&b!=="get"&&b!=="head"&&(O=await f(at,I))!==0){let G=new a(S,{method:"POST",body:I,duplex:"half"}),M;if(F.isFormData(I)&&(M=G.headers.get("content-type"))&&at.setContentType(M),G.body){let[J,Q]=Aa(O,Te(Ca(V)));I=Cn(G.body,Dn,J,Q)}}F.isString(pt)||(pt=pt?"include":"omit");let D=s&&"credentials"in a.prototype,L={...Y,signal:gt,method:b.toUpperCase(),headers:at.normalize().toJSON(),body:I,duplex:"half",credentials:D?pt:void 0};$=s&&new a(S,L);let U=await(s?E($,Y):E(S,L)),et=y&&(X==="stream"||X==="response");if(y&&(N||et&&q)){let G={};["status","statusText","headers"].forEach(tt=>{G[tt]=U[tt]});let M=F.toFiniteNumber(U.headers.get("content-length")),[J,Q]=N&&Aa(M,Te(Ca(N),!0))||[];U=new r(Cn(U.body,Dn,J,()=>{Q&&Q(),q&&q()}),G)}X=X||"text";let R=await c[F.findKey(c,X)||"text"](U,_);return!et&&q&&q(),await new Promise((G,M)=>{we(G,M,{data:R,headers:St.from(U.headers),status:U.status,statusText:U.statusText,config:_,request:$})})}catch(D){throw q&&q(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new A("Network Error",A.ERR_NETWORK,_,$,D&&D.response),{cause:D.cause||D}):A.from(D,D&&D.code,_,$,D&&D.response)}}},ju=new Map,mh=p=>{let e=p&&p.env||{},{fetch:a,Request:r,Response:i}=e,s=[r,i,a],o=s.length,t=o,g,m,y=ju;for(;t--;)g=s[t],m=y.get(g),m===void 0&&y.set(g,m=t?new Map:Gu(e)),y=m;return m};mh();var vi={http:wu,xhr:qu,fetch:{get:mh}};F.forEach(vi,(p,e)=>{if(p){try{Object.defineProperty(p,"name",{value:e})}catch{}Object.defineProperty(p,"adapterName",{value:e})}});var Wn=p=>`- ${p}`,Ru=p=>F.isFunction(p)||p===null||p===!1;function Au(p,e){p=F.isArray(p)?p:[p];let{length:a}=p,r,i,s={};for(let o=0;o<a;o++){r=p[o];let t;if(i=r,!Ru(r)&&(i=vi[(t=String(r)).toLowerCase()],i===void 0))throw new A(`Unknown adapter '${t}'`);if(i&&(F.isFunction(i)||(i=i.get(e))))break;s[t||"#"+o]=i}if(!i){let o=Object.entries(s).map(([g,m])=>`adapter ${g} `+(m===!1?"is not supported by the environment":"is not available in the build")),t=a?o.length>1?`since :
|
|
8
|
-
`+o.map(Wn).join(`
|
|
9
|
-
`):" "+Wn(o[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i}var uh={getAdapter:Au,adapters:vi};function Yr(p){if(p.cancelToken&&p.cancelToken.throwIfRequested(),p.signal&&p.signal.aborted)throw new de(null,p)}function Un(p){return Yr(p),p.headers=St.from(p.headers),p.data=Xr.call(p,p.transformRequest),["post","put","patch"].indexOf(p.method)!==-1&&p.headers.setContentType("application/x-www-form-urlencoded",!1),uh.getAdapter(p.adapter||fi.adapter,p)(p).then(function(r){return Yr(p),r.data=Xr.call(p,p.transformResponse,r),r.headers=St.from(r.headers),r},function(r){return hh(r)||(Yr(p),r&&r.response&&(r.response.data=Xr.call(p,p.transformResponse,r.response),r.response.headers=St.from(r.response.headers))),Promise.reject(r)})}var Ua={};["object","boolean","number","function","string","symbol"].forEach((p,e)=>{Ua[p]=function(r){return typeof r===p||"a"+(e<1?"n ":" ")+p}});var Nn={};Ua.transitional=function(e,a,r){function i(s,o){return"[Axios v"+Ra+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,t)=>{if(e===!1)throw new A(i(o," has been removed"+(a?" in "+a:"")),A.ERR_DEPRECATED);return a&&!Nn[o]&&(Nn[o]=!0,console.warn(i(o," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,o,t):!0}};Ua.spelling=function(e){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Cu(p,e,a){if(typeof p!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);let r=Object.keys(p),i=r.length;for(;i-- >0;){let s=r[i],o=e[s];if(o){let t=p[s],g=t===void 0||o(t,s,p);if(g!==!0)throw new A("option "+s+" must be "+g,A.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new A("Unknown option "+s,A.ERR_BAD_OPTION)}}var Ga={assertOptions:Cu,validators:Ua},kt=Ga.validators,qe=class{constructor(e){this.defaults=e||{},this.interceptors={request:new qn,response:new qn}}async request(e,a){try{return await this._request(e,a)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;let s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
10
|
-
`+s):r.stack=s}catch{}}throw r}}_request(e,a){typeof e=="string"?(a=a||{},a.url=e):a=e||{},a=le(this.defaults,a);let{transitional:r,paramsSerializer:i,headers:s}=a;r!==void 0&&Ga.assertOptions(r,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean),legacyInterceptorReqResOrdering:kt.transitional(kt.boolean)},!1),i!=null&&(F.isFunction(i)?a.paramsSerializer={serialize:i}:Ga.assertOptions(i,{encode:kt.function,serialize:kt.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Ga.assertOptions(a,{baseUrl:kt.spelling("baseURL"),withXsrfToken:kt.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let o=s&&F.merge(s.common,s[a.method]);s&&F.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),a.headers=St.concat(o,s);let t=[],g=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(a)===!1)return;g=g&&S.synchronous;let b=a.transitional||Wa;b&&b.legacyInterceptorReqResOrdering?t.unshift(S.fulfilled,S.rejected):t.push(S.fulfilled,S.rejected)});let m=[];this.interceptors.response.forEach(function(S){m.push(S.fulfilled,S.rejected)});let y,c=0,u;if(!g){let _=[Un.bind(this),void 0];for(_.unshift(...t),_.push(...m),u=_.length,y=Promise.resolve(a);c<u;)y=y.then(_[c++],_[c++]);return y}u=t.length;let f=a;for(;c<u;){let _=t[c++],S=t[c++];try{f=_(f)}catch(b){S.call(this,b);break}}try{y=Un.call(this,f)}catch(_){return Promise.reject(_)}for(c=0,u=m.length;c<u;)y=y.then(m[c++],m[c++]);return y}getUri(e){e=le(this.defaults,e);let a=gi(e.baseURL,e.url,e.allowAbsoluteUrls);return mi(a,e.params,e.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(e){qe.prototype[e]=function(a,r){return this.request(le(r||{},{method:e,url:a,data:(r||{}).data}))}});F.forEach(["post","put","patch"],function(e){function a(r){return function(s,o,t){return this.request(le(t||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}qe.prototype[e]=a(),qe.prototype[e+"Form"]=a(!0)});var ja=qe,di=class p{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});let r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s,o=new Promise(t=>{r.subscribe(t),s=t}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},e(function(s,o,t){r.reason||(r.reason=new de(s,o,t),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let a=this._listeners.indexOf(e);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){let e=new AbortController,a=r=>{e.abort(r)};return this.subscribe(a),e.signal.unsubscribe=()=>this.unsubscribe(a),e.signal}static source(){let e;return{token:new p(function(i){e=i}),cancel:e}}},Du=di;function Bu(p){return function(a){return p.apply(null,a)}}function Lu(p){return F.isObject(p)&&p.isAxiosError===!0}var li={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(li).forEach(([p,e])=>{li[e]=p});var Mu=li;function yh(p){let e=new ja(p),a=Jn(ja.prototype.request,e);return F.extend(a,ja.prototype,e,{allOwnKeys:!0}),F.extend(a,e,null,{allOwnKeys:!0}),a.create=function(i){return yh(le(p,i))},a}var ct=yh(fi);ct.Axios=ja;ct.CanceledError=de;ct.CancelToken=Du;ct.isCancel=hh;ct.VERSION=Ra;ct.toFormData=Ma;ct.AxiosError=A;ct.Cancel=ct.CanceledError;ct.all=function(e){return Promise.all(e)};ct.spread=Bu;ct.isAxiosError=Lu;ct.mergeConfig=le;ct.AxiosHeaders=St;ct.formToJSON=p=>nh(F.isHTMLForm(p)?new FormData(p):p);ct.getAdapter=uh.getAdapter;ct.HttpStatusCode=Mu;ct.default=ct;fh.exports=ct});var _h=K((MS,vh)=>{vh.exports=lt("util").inspect});var Ye=K((WS,Dh)=>{var Fi=typeof Map=="function"&&Map.prototype,_i=Object.getOwnPropertyDescriptor&&Fi?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ha=Fi&&_i&&typeof _i.get=="function"?_i.get:null,bh=Fi&&Map.prototype.forEach,$i=typeof Set=="function"&&Set.prototype,bi=Object.getOwnPropertyDescriptor&&$i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ka=$i&&bi&&typeof bi.get=="function"?bi.get:null,Sh=$i&&Set.prototype.forEach,Wu=typeof WeakMap=="function"&&WeakMap.prototype,Qe=Wu?WeakMap.prototype.has:null,Uu=typeof WeakSet=="function"&&WeakSet.prototype,Xe=Uu?WeakSet.prototype.has:null,Nu=typeof WeakRef=="function"&&WeakRef.prototype,Ih=Nu?WeakRef.prototype.deref:null,Hu=Boolean.prototype.valueOf,Ku=Object.prototype.toString,Vu=Function.prototype.toString,Ju=String.prototype.match,zi=String.prototype.slice,Xt=String.prototype.replace,Qu=String.prototype.toUpperCase,wh=String.prototype.toLowerCase,Oh=RegExp.prototype.test,Ph=Array.prototype.concat,Rt=Array.prototype.join,Xu=Array.prototype.slice,kh=Math.floor,wi=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Si=Object.getOwnPropertySymbols,Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,$e=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ze=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===$e||!0)?Symbol.toStringTag:null,xh=Object.prototype.propertyIsEnumerable,Th=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(p){return p.__proto__}:null);function qh(p,e){if(p===1/0||p===-1/0||p!==p||p&&p>-1e3&&p<1e3||Oh.call(/e/,e))return e;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof p=="number"){var r=p<0?-kh(-p):kh(p);if(r!==p){var i=String(r),s=zi.call(e,i.length+1);return Xt.call(i,a,"$&_")+"."+Xt.call(Xt.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Xt.call(e,a,"$&_")}var ki=_h(),Fh=ki.custom,$h=Rh(Fh)?Fh:null,Gh={__proto__:null,double:'"',single:"'"},Zu={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Dh.exports=function p(e,a,r,i){var s=a||{};if(Mt(s,"quoteStyle")&&!Mt(Gh,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Mt(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=Mt(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Mt(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Mt(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var t=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ch(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var g=String(e);return t?qh(e,g):g}if(typeof e=="bigint"){var m=String(e)+"n";return t?qh(e,m):m}var y=typeof s.depth>"u"?5:s.depth;if(typeof r>"u"&&(r=0),r>=y&&y>0&&typeof e=="object")return Ti(e)?"[Array]":"[Object]";var c=fy(s,r);if(typeof i>"u")i=[];else if(Ah(i,e)>=0)return"[Circular]";function u($,q,O){if(q&&(i=Xu.call(i),i.push(q)),O){var D={depth:s.depth};return Mt(s,"quoteStyle")&&(D.quoteStyle=s.quoteStyle),p($,D,r+1,i)}return p($,s,r+1,i)}if(typeof e=="function"&&!zh(e)){var f=ny(e),_=Na(e,u);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(_.length>0?" { "+Rt.call(_,", ")+" }":"")}if(Rh(e)){var S=$e?Xt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pi.call(e);return typeof e=="object"&&!$e?Je(S):S}if(my(e)){for(var b="<"+wh.call(String(e.nodeName)),I=e.attributes||[],x=0;x<I.length;x++)b+=" "+I[x].name+"="+jh(Yu(I[x].value),"double",s);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+="</"+wh.call(String(e.nodeName))+">",b}if(Ti(e)){if(e.length===0)return"[]";var z=Na(e,u);return c&&!yy(z)?"["+qi(z,c)+"]":"[ "+Rt.call(z,", ")+" ]"}if(ey(e)){var B=Na(e,u);return!("cause"in Error.prototype)&&"cause"in e&&!xh.call(e,"cause")?"{ ["+String(e)+"] "+Rt.call(Ph.call("[cause]: "+u(e.cause),B),", ")+" }":B.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Rt.call(B,", ")+" }"}if(typeof e=="object"&&o){if($h&&typeof e[$h]=="function"&&ki)return ki(e,{depth:y-r});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(hy(e)){var N=[];return bh&&bh.call(e,function($,q){N.push(u(q,e,!0)+" => "+u($,e))}),Eh("Map",Ha.call(e),N,c)}if(cy(e)){var V=[];return Sh&&Sh.call(e,function($){V.push(u($,e))}),Eh("Set",Ka.call(e),V,c)}if(dy(e))return Ii("WeakMap");if(py(e))return Ii("WeakSet");if(ly(e))return Ii("WeakRef");if(ry(e))return Je(u(Number(e)));if(sy(e))return Je(u(wi.call(e)));if(iy(e))return Je(Hu.call(e));if(ay(e))return Je(u(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!ty(e)&&!zh(e)){var X=Na(e,u),at=Th?Th(e)===Object.prototype:e instanceof Object||e.constructor===Object,pt=e instanceof Object?"":"null prototype",Y=!at&&Ze&&Object(e)===e&&Ze in e?zi.call(Zt(e),8,-1):pt?"Object":"",E=at||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",gt=E+(Y||pt?"["+Rt.call(Ph.call([],Y||[],pt||[]),": ")+"] ":"");return X.length===0?gt+"{}":c?gt+"{"+qi(X,c)+"}":gt+"{ "+Rt.call(X,", ")+" }"}return String(e)};function jh(p,e,a){var r=a.quoteStyle||e,i=Gh[r];return i+p+i}function Yu(p){return Xt.call(String(p),/"/g,""")}function ce(p){return!Ze||!(typeof p=="object"&&(Ze in p||typeof p[Ze]<"u"))}function Ti(p){return Zt(p)==="[object Array]"&&ce(p)}function ty(p){return Zt(p)==="[object Date]"&&ce(p)}function zh(p){return Zt(p)==="[object RegExp]"&&ce(p)}function ey(p){return Zt(p)==="[object Error]"&&ce(p)}function ay(p){return Zt(p)==="[object String]"&&ce(p)}function ry(p){return Zt(p)==="[object Number]"&&ce(p)}function iy(p){return Zt(p)==="[object Boolean]"&&ce(p)}function Rh(p){if($e)return p&&typeof p=="object"&&p instanceof Symbol;if(typeof p=="symbol")return!0;if(!p||typeof p!="object"||!Pi)return!1;try{return Pi.call(p),!0}catch{}return!1}function sy(p){if(!p||typeof p!="object"||!wi)return!1;try{return wi.call(p),!0}catch{}return!1}var oy=Object.prototype.hasOwnProperty||function(p){return p in this};function Mt(p,e){return oy.call(p,e)}function Zt(p){return Ku.call(p)}function ny(p){if(p.name)return p.name;var e=Ju.call(Vu.call(p),/^function\s*([\w$]+)/);return e?e[1]:null}function Ah(p,e){if(p.indexOf)return p.indexOf(e);for(var a=0,r=p.length;a<r;a++)if(p[a]===e)return a;return-1}function hy(p){if(!Ha||!p||typeof p!="object")return!1;try{Ha.call(p);try{Ka.call(p)}catch{return!0}return p instanceof Map}catch{}return!1}function dy(p){if(!Qe||!p||typeof p!="object")return!1;try{Qe.call(p,Qe);try{Xe.call(p,Xe)}catch{return!0}return p instanceof WeakMap}catch{}return!1}function ly(p){if(!Ih||!p||typeof p!="object")return!1;try{return Ih.call(p),!0}catch{}return!1}function cy(p){if(!Ka||!p||typeof p!="object")return!1;try{Ka.call(p);try{Ha.call(p)}catch{return!0}return p instanceof Set}catch{}return!1}function py(p){if(!Xe||!p||typeof p!="object")return!1;try{Xe.call(p,Xe);try{Qe.call(p,Qe)}catch{return!0}return p instanceof WeakSet}catch{}return!1}function my(p){return!p||typeof p!="object"?!1:typeof HTMLElement<"u"&&p instanceof HTMLElement?!0:typeof p.nodeName=="string"&&typeof p.getAttribute=="function"}function Ch(p,e){if(p.length>e.maxStringLength){var a=p.length-e.maxStringLength,r="... "+a+" more character"+(a>1?"s":"");return Ch(zi.call(p,0,e.maxStringLength),e)+r}var i=Zu[e.quoteStyle||"single"];i.lastIndex=0;var s=Xt.call(Xt.call(p,i,"\\$1"),/[\x00-\x1f]/g,uy);return jh(s,"single",e)}function uy(p){var e=p.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return a?"\\"+a:"\\x"+(e<16?"0":"")+Qu.call(e.toString(16))}function Je(p){return"Object("+p+")"}function Ii(p){return p+" { ? }"}function Eh(p,e,a,r){var i=r?qi(a,r):Rt.call(a,", ");return p+" ("+e+") {"+i+"}"}function yy(p){for(var e=0;e<p.length;e++)if(Ah(p[e],`
|
|
11
|
-
`)>=0)return!1;return!0}function fy(p,e){var a;if(p.indent===" ")a=" ";else if(typeof p.indent=="number"&&p.indent>0)a=Rt.call(Array(p.indent+1)," ");else return null;return{base:a,prev:Rt.call(Array(e+1),a)}}function qi(p,e){if(p.length===0)return"";var a=`
|
|
12
|
-
`+e.prev+e.base;return a+Rt.call(p,","+a)+`
|
|
13
|
-
`+e.prev}function Na(p,e){var a=Ti(p),r=[];if(a){r.length=p.length;for(var i=0;i<p.length;i++)r[i]=Mt(p,i)?e(p[i],p):""}var s=typeof Si=="function"?Si(p):[],o;if($e){o={};for(var t=0;t<s.length;t++)o["$"+s[t]]=s[t]}for(var g in p)Mt(p,g)&&(a&&String(Number(g))===g&&g<p.length||$e&&o["$"+g]instanceof Symbol||(Oh.call(/[^\w$]/,g)?r.push(e(g,p)+": "+e(p[g],p)):r.push(g+": "+e(p[g],p))));if(typeof Si=="function")for(var m=0;m<s.length;m++)xh.call(p,s[m])&&r.push("["+e(s[m])+"]: "+e(p[s[m]],p));return r}});var Lh=K((US,Bh)=>{"use strict";var gy=Ye(),vy=za(),Va=function(p,e,a){for(var r=p,i;(i=r.next)!=null;r=i)if(i.key===e)return r.next=i.next,a||(i.next=p.next,p.next=i),i},_y=function(p,e){if(p){var a=Va(p,e);return a&&a.value}},by=function(p,e,a){var r=Va(p,e);r?r.value=a:p.next={key:e,next:p.next,value:a}},Sy=function(p,e){return p?!!Va(p,e):!1},Iy=function(p,e){if(p)return Va(p,e,!0)};Bh.exports=function(){var e,a={assert:function(r){if(!a.has(r))throw new vy("Side channel does not contain "+gy(r))},delete:function(r){var i=Iy(e,r);return i&&e&&!e.next&&(e=void 0),!!i},get:function(r){return _y(e,r)},has:function(r){return Sy(e,r)},set:function(r,i){e||(e={next:void 0}),by(e,r,i)}};return a}});var Ei=K((NS,Uh)=>{"use strict";var Mh=Kr(),Wh=lp(),wy=Wh([Mh("%String.prototype.indexOf%")]);Uh.exports=function(e,a){var r=Mh(e,!!a);return typeof r=="function"&&wy(e,".prototype.")>-1?Wh([r]):r}});var Oi=K((HS,Hh)=>{"use strict";var Py=Kr(),ta=Ei(),ky=Ye(),Ty=za(),Nh=Py("%Map%",!0),qy=ta("Map.prototype.get",!0),Fy=ta("Map.prototype.set",!0),$y=ta("Map.prototype.has",!0),zy=ta("Map.prototype.delete",!0),Ey=ta("Map.prototype.size",!0);Hh.exports=!!Nh&&function(){var e,a={assert:function(r){if(!a.has(r))throw new Ty("Side channel does not contain "+ky(r))},delete:function(r){if(e){var i=zy(e,r);return Ey(e)===0&&(e=void 0),i}return!1},get:function(r){if(e)return qy(e,r)},has:function(r){return e?$y(e,r):!1},set:function(r,i){e||(e=new Nh),Fy(e,r,i)}};return a}});var Vh=K((KS,Kh)=>{"use strict";var Oy=Kr(),Qa=Ei(),xy=Ye(),Ja=Oi(),Gy=za(),ze=Oy("%WeakMap%",!0),jy=Qa("WeakMap.prototype.get",!0),Ry=Qa("WeakMap.prototype.set",!0),Ay=Qa("WeakMap.prototype.has",!0),Cy=Qa("WeakMap.prototype.delete",!0);Kh.exports=ze?function(){var e,a,r={assert:function(i){if(!r.has(i))throw new Gy("Side channel does not contain "+xy(i))},delete:function(i){if(ze&&i&&(typeof i=="object"||typeof i=="function")){if(e)return Cy(e,i)}else if(Ja&&a)return a.delete(i);return!1},get:function(i){return ze&&i&&(typeof i=="object"||typeof i=="function")&&e?jy(e,i):a&&a.get(i)},has:function(i){return ze&&i&&(typeof i=="object"||typeof i=="function")&&e?Ay(e,i):!!a&&a.has(i)},set:function(i,s){ze&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new ze),Ry(e,i,s)):Ja&&(a||(a=Ja()),a.set(i,s))}};return r}:Ja});var xi=K((VS,Jh)=>{"use strict";var Dy=za(),By=Ye(),Ly=Lh(),My=Oi(),Wy=Vh(),Uy=Wy||My||Ly;Jh.exports=function(){var e,a={assert:function(r){if(!a.has(r)){var i=r&&Object(r)===r?"the given object key":By(r);throw new Dy("Side channel does not contain "+i)}},delete:function(r){return!!e&&e.delete(r)},get:function(r){return e&&e.get(r)},has:function(r){return!!e&&e.has(r)},set:function(r,i){e||(e=Uy()),e.set(r,i)}};return a}});var Xa=K((JS,Qh)=>{"use strict";var Ny=String.prototype.replace,Hy=/%20/g,Gi={RFC1738:"RFC1738",RFC3986:"RFC3986"};Qh.exports={default:Gi.RFC3986,formatters:{RFC1738:function(p){return Ny.call(p,Hy,"+")},RFC3986:function(p){return String(p)}},RFC1738:Gi.RFC1738,RFC3986:Gi.RFC3986}});var Ci=K((QS,Yh)=>{"use strict";var Ky=Xa(),Zh=xi(),Xh=dp(),ji=Object.prototype.hasOwnProperty,pe=Array.isArray,Ya=Zh(),me=function(e,a){return Ya.set(e,a),e},ue=function(e){return Ya.has(e)},ea=function(e){return Ya.get(e)},Ri=function(e,a){Ya.set(e,a)},At=(function(){for(var p=[],e=0;e<256;++e)p[p.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return p})(),Vy=function(e){for(;e.length>1;){var a=e.pop(),r=a.obj[a.prop];if(pe(r)){for(var i=[],s=0;s<r.length;++s)typeof r[s]<"u"&&(i[i.length]=r[s]);a.obj[a.prop]=i}}},Ee=function(e,a){for(var r=a&&a.plainObjects?{__proto__:null}:{},i=0;i<e.length;++i)typeof e[i]<"u"&&(r[i]=e[i]);return r},Ai=function(e,a,r){a==="__proto__"&&Xh?Xh(e,a,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[a]=r},Jy=function p(e,a,r){if(!a)return e;if(typeof a!="object"&&typeof a!="function"){if(pe(e)){var i=e.length;if(r&&typeof r.arrayLimit=="number"&&i>=r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");return me(Ee(e.concat(a),r),i)}e[i]=a}else if(e&&typeof e=="object")if(ue(e)){var s=ea(e)+1;e[s]=a,Ri(e,s)}else{if(r&&r.strictMerge)return[e,a];(r&&(r.plainObjects||r.allowPrototypes)||!ji.call(Object.prototype,a))&&(e[a]=!0)}else return[e,a];return e}if(!e||typeof e!="object"){if(ue(a)){for(var o=Object.keys(a),t=r&&r.plainObjects?{__proto__:null,0:e}:{0:e},g=0;g<o.length;g++){var m=parseInt(o[g],10);t[m+1]=a[o[g]]}return me(t,ea(a)+1)}var y=[e].concat(a);if(r&&typeof r.arrayLimit=="number"&&y.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");return me(Ee(y,r),y.length-1)}return y}var c=e;if(pe(e)&&!pe(a)&&(c=Ee(e,r)),pe(e)&&pe(a)){if(a.forEach(function(u,f){if(ji.call(e,f)){var _=e[f];_&&typeof _=="object"&&u&&typeof u=="object"?e[f]=p(_,u,r):e[e.length]=u}else e[f]=u}),r&&typeof r.arrayLimit=="number"&&e.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");return me(Ee(e,r),e.length-1)}return e}return Object.keys(a).reduce(function(u,f){var _=a[f];if(ji.call(u,f)?Ai(u,f,p(u[f],_,r)):Ai(u,f,_),ue(a)&&!ue(u)&&me(u,ea(a)),ue(u)){var S=parseInt(f,10);String(S)===f&&S>=0&&S>ea(u)&&Ri(u,S)}return u},c)},Qy=function(e,a){return Object.keys(a).reduce(function(r,i){return Ai(r,i,a[i]),r},e)},Xy=function(p,e,a){var r=p.replace(/\+/g," ");if(a==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Za=1024,Zy=function(e,a,r,i,s){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),r==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(_){return"%26%23"+parseInt(_.slice(2),16)+"%3B"});for(var t="",g=0;g<o.length;g+=Za){var m=o.length>=Za?o.slice(g,g+Za):o;if(g+Za<o.length){var y=m.charCodeAt(m.length-1);y>=55296&&y<=56319&&(m=m.slice(0,-1),g-=1)}for(var c=[],u=0;u<m.length;++u){var f=m.charCodeAt(u);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||s===Ky.RFC1738&&(f===40||f===41)){c[c.length]=m.charAt(u);continue}if(f<128){c[c.length]=At[f];continue}if(f<2048){c[c.length]=At[192|f>>6]+At[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=At[224|f>>12]+At[128|f>>6&63]+At[128|f&63];continue}u+=1,f=65536+((f&1023)<<10|m.charCodeAt(u)&1023),c[c.length]=At[240|f>>18]+At[128|f>>12&63]+At[128|f>>6&63]+At[128|f&63]}t+=c.join("")}return t},Yy=function(e){for(var a=[{obj:{o:e},prop:"o"}],r=Zh(),i=0;i<a.length;++i)for(var s=a[i],o=s.obj[s.prop],t=Object.keys(o),g=0;g<t.length;++g){var m=t[g],y=o[m];typeof y=="object"&&y!==null&&!r.has(y)&&(a[a.length]={obj:o,prop:m},r.set(y,!0))}return Vy(a),e},tf=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ef=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},af=function(e,a,r,i,s){if(ue(e)){if(s)throw new RangeError("Array limit exceeded. Only "+r+" element"+(r===1?"":"s")+" allowed in an array.");var o=ea(e)+1;return e[o]=a,Ri(e,o),e}var t=[].concat(e,a);if(t.length>r){if(s)throw new RangeError("Array limit exceeded. Only "+r+" element"+(r===1?"":"s")+" allowed in an array.");return me(Ee(t,{plainObjects:i}),t.length-1)}return t},rf=function(e,a){if(pe(e)){for(var r=[],i=0;i<e.length;i+=1)r[r.length]=a(e[i]);return r}return a(e)};Yh.exports={arrayToObject:Ee,assign:Qy,combine:af,compact:Yy,decode:Xy,encode:Zy,isBuffer:ef,isOverflow:ue,isRegExp:tf,markOverflow:me,maybeMap:rf,merge:Jy}});var sd=K((XS,id)=>{"use strict";var ed=xi(),tr=Ci(),aa=Xa(),sf=Object.prototype.hasOwnProperty,ad={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,a){return e+"["+a+"]"},repeat:function(e){return e}},Ct=Array.isArray,of=Array.prototype.push,rd=function(p,e){of.apply(p,Ct(e)?e:[e])},nf=Date.prototype.toISOString,td=aa.default,ut={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:tr.encode,encodeValuesOnly:!1,filter:void 0,format:td,formatter:aa.formatters[td],indices:!1,serializeDate:function(e){return nf.call(e)},skipNulls:!1,strictNullHandling:!1},hf=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Di={},df=function p(e,a,r,i,s,o,t,g,m,y,c,u,f,_,S,b,I,x){for(var z=e,B=x,N=0,V=!1;(B=B.get(Di))!==void 0&&!V;){var X=B.get(e);if(N+=1,typeof X<"u"){if(X===N)throw new RangeError("Cyclic object value");V=!0}typeof B.get(Di)>"u"&&(N=0)}if(typeof y=="function"?z=y(a,z):z instanceof Date?z=f(z):r==="comma"&&Ct(z)&&(z=tr.maybeMap(z,function(R){return R instanceof Date?f(R):R})),z===null){if(o)return S(m&&!b?m(a,ut.encoder,I,"key",_):a);z=""}if(hf(z)||tr.isBuffer(z)){if(m){var at=b?a:m(a,ut.encoder,I,"key",_);return[S(at)+"="+S(m(z,ut.encoder,I,"value",_))]}return[S(a)+"="+S(String(z))]}var pt=[];if(typeof z>"u")return pt;var Y;if(r==="comma"&&Ct(z))b&&m&&(z=tr.maybeMap(z,function(R){return R==null?R:m(R)})),Y=[{value:z.length>0?z.join(",")||null:void 0}];else if(Ct(y))Y=y;else{var E=Object.keys(z);Y=c?E.sort(c):E}var gt=g?String(a).replace(/\./g,"%2E"):String(a),$=i&&Ct(z)&&z.length===1?gt+"[]":gt;if(s&&Ct(z)&&z.length===0)return $+"[]";for(var q=0;q<Y.length;++q){var O=Y[q],D=typeof O=="object"&&O&&typeof O.value<"u"?O.value:z[O];if(!(t&&D===null)){var L=u&&g?String(O).replace(/\./g,"%2E"):String(O),U=Ct(z)?typeof r=="function"?r($,L):$:$+(u?"."+L:"["+L+"]");x.set(e,N);var et=ed();et.set(Di,x),rd(pt,p(D,U,r,i,s,o,t,g,r==="comma"&&b&&Ct(z)?null:m,y,c,u,f,_,S,b,I,et))}}return pt},lf=function(e){if(!e)return ut;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var a=e.charset||ut.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=aa.default;if(typeof e.format<"u"){if(!sf.call(aa.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var i=aa.formatters[r],s=ut.filter;(typeof e.filter=="function"||Ct(e.filter))&&(s=e.filter);var o;if(e.arrayFormat in ad?o=e.arrayFormat:"indices"in e?o=e.indices?"indices":"repeat":o=ut.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var t=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:ut.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:ut.addQueryPrefix,allowDots:t,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ut.allowEmptyArrays,arrayFormat:o,charset:a,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ut.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?ut.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:ut.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:ut.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:ut.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:ut.encodeValuesOnly,filter:s,format:r,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:ut.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:ut.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ut.strictNullHandling}};id.exports=function(p,e){var a=p,r=lf(e),i,s;typeof r.filter=="function"?(s=r.filter,a=s("",a)):Ct(r.filter)&&(s=r.filter,i=s);var o=[];if(typeof a!="object"||a===null)return"";var t=ad[r.arrayFormat],g=t==="comma"&&r.commaRoundTrip;i||(i=Object.keys(a)),r.sort&&i.sort(r.sort);for(var m=ed(),y=0;y<i.length;++y){var c=i[y];if(!(typeof c>"u"||c===null)){var u=a[c];r.skipNulls&&u===null||rd(o,df(u,c,t,g,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,m))}}var f=o.join(r.delimiter),_=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?_+="utf8=%26%2310003%3B"+r.delimiter:_+="utf8=%E2%9C%93"+r.delimiter),f.length>0?_+f:""}});var hd=K((ZS,nd)=>{"use strict";var Dt=Ci(),er=Object.prototype.hasOwnProperty,Bi=Array.isArray,ot={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Dt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},cf=function(p){return p.replace(/&#(\d+);/g,function(e,a){return String.fromCharCode(parseInt(a,10))})},od=function(p,e,a,r){if(p&&typeof p=="string"&&e.comma&&p.indexOf(",")>-1){if(r&&e.throwOnLimitExceeded)for(var i=0,s=p.indexOf(",");s>-1;){if(i+=1,i>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");s=p.indexOf(",",s+1)}return p.split(",")}if(e.throwOnLimitExceeded&&a>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return p},pf="utf8=%26%2310003%3B",mf="utf8=%E2%9C%93",uf=function(e,a){var r={__proto__:null},i=a.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=a.parameterLimit===1/0?void 0:a.parameterLimit,o=i.split(a.delimiter,a.throwOnLimitExceeded&&typeof s<"u"?s+1:s);if(a.throwOnLimitExceeded&&typeof s<"u"&&o.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(s===1?"":"s")+" allowed.");var t=-1,g,m=a.charset;if(a.charsetSentinel)for(g=0;g<o.length;++g)o[g].indexOf("utf8=")===0&&(o[g]===mf?m="utf-8":o[g]===pf&&(m="iso-8859-1"),t=g,g=o.length);for(g=0;g<o.length;++g)if(g!==t){var y=o[g],c=y.indexOf("]="),u=c===-1?y.indexOf("="):c+1,f,_;if(u===-1?(f=a.decoder(y,ot.decoder,m,"key"),_=a.strictNullHandling?null:""):(f=a.decoder(y.slice(0,u),ot.decoder,m,"key"),f!==null&&(_=Dt.maybeMap(od(y.slice(u+1),a,Bi(r[f])?r[f].length:0,y.indexOf("[]=")===-1),function(b){return a.decoder(b,ot.decoder,m,"value")}))),_&&a.interpretNumericEntities&&m==="iso-8859-1"&&(_=cf(String(_))),y.indexOf("[]=")>-1&&(_=Bi(_)?[_]:_),a.comma&&Bi(_)&&_.length>a.arrayLimit&&(_=Dt.combine([],_,a.arrayLimit,a.plainObjects,a.throwOnLimitExceeded)),f!==null){var S=er.call(r,f);S&&(a.duplicates==="combine"||y.indexOf("[]=")>-1)?r[f]=Dt.combine(r[f],_,a.arrayLimit,a.plainObjects,a.throwOnLimitExceeded):(!S||a.duplicates==="last")&&(r[f]=_)}}return r},yf=function(p,e,a,r){var i=0;if(p.length>0&&p[p.length-1]==="[]"){var s=p.slice(0,-1).join("");i=Array.isArray(e)&&e[s]?e[s].length:0}for(var o=r?e:od(e,a,i),t=p.length-1;t>=0;--t){var g,m=p[t];if(m==="[]"&&a.parseArrays)Dt.isOverflow(o)?g=o:g=a.allowEmptyArrays&&(o===""||a.strictNullHandling&&o===null)?[]:Dt.combine([],o,a.arrayLimit,a.plainObjects,a.throwOnLimitExceeded);else{g=a.plainObjects?{__proto__:null}:{};var y=m.charAt(0)==="["&&m.charAt(m.length-1)==="]"?m.slice(1,-1):m,c=a.decodeDotInKeys?y.replace(/%2E/g,"."):y,u=parseInt(c,10),f=!isNaN(u)&&m!==c&&String(u)===c&&u>=0&&a.parseArrays;if(!a.parseArrays&&c==="")g={0:o};else if(f&&u<a.arrayLimit)g=[],g[u]=o;else{if(f&&a.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+a.arrayLimit+" element"+(a.arrayLimit===1?"":"s")+" allowed in an array.");f?(g[u]=o,Dt.markOverflow(g,u)):c!=="__proto__"&&(g[c]=o)}}o=g}return o},ff=function(e,a){var r=a.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(a.depth<=0)return!a.plainObjects&&er.call(Object.prototype,r)&&!a.allowPrototypes?void 0:[r];var i=[],s=r.indexOf("["),o=s>=0?r.slice(0,s):r;if(o){if(!a.plainObjects&&er.call(Object.prototype,o)&&!a.allowPrototypes)return;i[i.length]=o}for(var t=r.length,g=s,m=0;g>=0&&m<a.depth;){for(var y=1,c=g+1,u=-1;c<t&&u<0;){var f=r.charCodeAt(c);f===91?y+=1:f===93&&(y-=1,y===0&&(u=c)),c+=1}if(u<0)return i[i.length]="["+r.slice(g)+"]",i;var _=r.slice(g,u+1),S=_.slice(1,-1);if(!a.plainObjects&&er.call(Object.prototype,S)&&!a.allowPrototypes)return;i[i.length]=_,m+=1,g=r.indexOf("[",u+1)}if(g>=0){if(a.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+a.depth+" and strictDepth is true");i[i.length]="["+r.slice(g)+"]"}return i},gf=function(e,a,r,i){if(e){var s=ff(e,r);if(s)return yf(s,a,r,i)}},vf=function(e){if(!e)return ot;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var a=typeof e.charset>"u"?ot.charset:e.charset,r=typeof e.duplicates>"u"?ot.duplicates:e.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ot.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ot.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ot.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ot.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ot.arrayLimit,charset:a,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ot.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ot.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ot.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ot.decoder,delimiter:typeof e.delimiter=="string"||Dt.isRegExp(e.delimiter)?e.delimiter:ot.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ot.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ot.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ot.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ot.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:ot.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:ot.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ot.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};nd.exports=function(p,e){var a=vf(e);if(p===""||p===null||typeof p>"u")return a.plainObjects?{__proto__:null}:{};for(var r=typeof p=="string"?uf(p,a):p,i=a.plainObjects?{__proto__:null}:{},s=Object.keys(r),o=0;o<s.length;++o){var t=s[o],g=gf(t,r[t],a,typeof p=="string");i=Dt.merge(i,g,a)}return a.allowSparse===!0?i:Dt.compact(i)}});var ld=K((YS,dd)=>{"use strict";var _f=sd(),bf=hd(),Sf=Xa();dd.exports={formats:Sf,parse:bf,stringify:_f}});var pd=K((tI,cd)=>{function If(p){return p}cd.exports=If});var Jd=K((ra,xe)=>{var wf=200,Pf="Expected a function",Zi="__lodash_hash_undefined__",hr=1,Ge=2,Id=1/0,wd=9007199254740991,ar="[object Arguments]",Wi="[object Array]",Pd="[object Boolean]",kd="[object Date]",Td="[object Error]",qd="[object Function]",kf="[object GeneratorFunction]",rr="[object Map]",Fd="[object Number]",Oe="[object Object]",md="[object Promise]",$d="[object RegExp]",ir="[object Set]",zd="[object String]",Ed="[object Symbol]",Ui="[object WeakMap]",Od="[object ArrayBuffer]",sr="[object DataView]",Tf="[object Float32Array]",qf="[object Float64Array]",Ff="[object Int8Array]",$f="[object Int16Array]",zf="[object Int32Array]",Ef="[object Uint8Array]",Of="[object Uint8ClampedArray]",xf="[object Uint16Array]",Gf="[object Uint32Array]",jf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rf=/^\w*$/,Af=/^\./,Cf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Df=/[\\^$.*+?()[\]{}|]/g,Bf=/\\(\\)?/g,Lf=/^\[object .+?Constructor\]$/,Mf=/^(?:0|[1-9]\d*)$/,it={};it[Tf]=it[qf]=it[Ff]=it[$f]=it[zf]=it[Ef]=it[Of]=it[xf]=it[Gf]=!0;it[ar]=it[Wi]=it[Od]=it[Pd]=it[sr]=it[kd]=it[Td]=it[qd]=it[rr]=it[Fd]=it[Oe]=it[$d]=it[ir]=it[zd]=it[Ui]=!1;var xd=typeof global=="object"&&global&&global.Object===Object&&global,Wf=typeof self=="object"&&self&&self.Object===Object&&self,ee=xd||Wf||Function("return this")(),Gd=typeof ra=="object"&&ra&&!ra.nodeType&&ra,ud=Gd&&typeof xe=="object"&&xe&&!xe.nodeType&&xe,Uf=ud&&ud.exports===Gd,yd=Uf&&xd.process,fd=(function(){try{return yd&&yd.binding("util")}catch{}})(),gd=fd&&fd.isTypedArray;function jd(p,e){for(var a=-1,r=e.length,i=p.length;++a<r;)p[i+a]=e[a];return p}function Nf(p,e){for(var a=-1,r=p?p.length:0;++a<r;)if(e(p[a],a,p))return!0;return!1}function Hf(p){return function(e){return e?.[p]}}function Kf(p,e){for(var a=-1,r=Array(p);++a<p;)r[a]=e(a);return r}function Vf(p){return function(e){return p(e)}}function Jf(p,e){return p?.[e]}function Ni(p){var e=!1;if(p!=null&&typeof p.toString!="function")try{e=!!(p+"")}catch{}return e}function Qf(p){var e=-1,a=Array(p.size);return p.forEach(function(r,i){a[++e]=[i,r]}),a}function Yi(p,e){return function(a){return p(e(a))}}function Xf(p){var e=-1,a=Array(p.size);return p.forEach(function(r){a[++e]=r}),a}var Zf=Array.prototype,Yf=Function.prototype,dr=Object.prototype,Li=ee["__core-js_shared__"],vd=(function(){var p=/[^.]+$/.exec(Li&&Li.keys&&Li.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""})(),Rd=Yf.toString,Bt=dr.hasOwnProperty,je=dr.toString,tg=RegExp("^"+Rd.call(Bt).replace(Df,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_d=ee.Symbol,bd=ee.Uint8Array,eg=Yi(Object.getPrototypeOf,Object),ag=dr.propertyIsEnumerable,rg=Zf.splice,Hi=Object.getOwnPropertySymbols,ig=Yi(Object.keys,Object),Ki=Re(ee,"DataView"),ia=Re(ee,"Map"),Vi=Re(ee,"Promise"),Ji=Re(ee,"Set"),Qi=Re(ee,"WeakMap"),sa=Re(Object,"create"),sg=fe(Ki),og=fe(ia),ng=fe(Vi),hg=fe(Ji),dg=fe(Qi),or=_d?_d.prototype:void 0,Mi=or?or.valueOf:void 0,Sd=or?or.toString:void 0;function ye(p){var e=-1,a=p?p.length:0;for(this.clear();++e<a;){var r=p[e];this.set(r[0],r[1])}}function lg(){this.__data__=sa?sa(null):{}}function cg(p){return this.has(p)&&delete this.__data__[p]}function pg(p){var e=this.__data__;if(sa){var a=e[p];return a===Zi?void 0:a}return Bt.call(e,p)?e[p]:void 0}function mg(p){var e=this.__data__;return sa?e[p]!==void 0:Bt.call(e,p)}function ug(p,e){var a=this.__data__;return a[p]=sa&&e===void 0?Zi:e,this}ye.prototype.clear=lg;ye.prototype.delete=cg;ye.prototype.get=pg;ye.prototype.has=mg;ye.prototype.set=ug;function Ut(p){var e=-1,a=p?p.length:0;for(this.clear();++e<a;){var r=p[e];this.set(r[0],r[1])}}function yg(){this.__data__=[]}function fg(p){var e=this.__data__,a=lr(e,p);if(a<0)return!1;var r=e.length-1;return a==r?e.pop():rg.call(e,a,1),!0}function gg(p){var e=this.__data__,a=lr(e,p);return a<0?void 0:e[a][1]}function vg(p){return lr(this.__data__,p)>-1}function _g(p,e){var a=this.__data__,r=lr(a,p);return r<0?a.push([p,e]):a[r][1]=e,this}Ut.prototype.clear=yg;Ut.prototype.delete=fg;Ut.prototype.get=gg;Ut.prototype.has=vg;Ut.prototype.set=_g;function Nt(p){var e=-1,a=p?p.length:0;for(this.clear();++e<a;){var r=p[e];this.set(r[0],r[1])}}function bg(){this.__data__={hash:new ye,map:new(ia||Ut),string:new ye}}function Sg(p){return cr(this,p).delete(p)}function Ig(p){return cr(this,p).get(p)}function wg(p){return cr(this,p).has(p)}function Pg(p,e){return cr(this,p).set(p,e),this}Nt.prototype.clear=bg;Nt.prototype.delete=Sg;Nt.prototype.get=Ig;Nt.prototype.has=wg;Nt.prototype.set=Pg;function nr(p){var e=-1,a=p?p.length:0;for(this.__data__=new Nt;++e<a;)this.add(p[e])}function kg(p){return this.__data__.set(p,Zi),this}function Tg(p){return this.__data__.has(p)}nr.prototype.add=nr.prototype.push=kg;nr.prototype.has=Tg;function Wt(p){this.__data__=new Ut(p)}function qg(){this.__data__=new Ut}function Fg(p){return this.__data__.delete(p)}function $g(p){return this.__data__.get(p)}function zg(p){return this.__data__.has(p)}function Eg(p,e){var a=this.__data__;if(a instanceof Ut){var r=a.__data__;if(!ia||r.length<wf-1)return r.push([p,e]),this;a=this.__data__=new Nt(r)}return a.set(p,e),this}Wt.prototype.clear=qg;Wt.prototype.delete=Fg;Wt.prototype.get=$g;Wt.prototype.has=zg;Wt.prototype.set=Eg;function Ad(p,e){var a=te(p)||Hd(p)?Kf(p.length,String):[],r=a.length,i=!!r;for(var s in p)(e||Bt.call(p,s))&&!(i&&(s=="length"||Ld(s,r)))&&a.push(s);return a}function lr(p,e){for(var a=p.length;a--;)if(Nd(p[a][0],e))return a;return-1}function Cd(p,e){e=pr(e,p)?[e]:Dd(e);for(var a=0,r=e.length;p!=null&&a<r;)p=p[mr(e[a++])];return a&&a==r?p:void 0}function Og(p,e,a){var r=e(p);return te(p)?r:jd(r,a(p))}function xg(p){return je.call(p)}function Gg(p,e){return p!=null&&e in Object(p)}function ts(p,e,a,r,i){return p===e?!0:p==null||e==null||!oa(p)&&!ur(e)?p!==p&&e!==e:jg(p,e,ts,a,r,i)}function jg(p,e,a,r,i,s){var o=te(p),t=te(e),g=Wi,m=Wi;o||(g=Yt(p),g=g==ar?Oe:g),t||(m=Yt(e),m=m==ar?Oe:m);var y=g==Oe&&!Ni(p),c=m==Oe&&!Ni(e),u=g==m;if(u&&!y)return s||(s=new Wt),o||sv(p)?Bd(p,e,a,r,i,s):Kg(p,e,g,a,r,i,s);if(!(i&Ge)){var f=y&&Bt.call(p,"__wrapped__"),_=c&&Bt.call(e,"__wrapped__");if(f||_){var S=f?p.value():p,b=_?e.value():e;return s||(s=new Wt),a(S,b,r,i,s)}}return u?(s||(s=new Wt),Vg(p,e,a,r,i,s)):!1}function Rg(p,e,a,r){var i=a.length,s=i,o=!r;if(p==null)return!s;for(p=Object(p);i--;){var t=a[i];if(o&&t[2]?t[1]!==p[t[0]]:!(t[0]in p))return!1}for(;++i<s;){t=a[i];var g=t[0],m=p[g],y=t[1];if(o&&t[2]){if(m===void 0&&!(g in p))return!1}else{var c=new Wt;if(r)var u=r(m,y,g,p,e,c);if(!(u===void 0?ts(y,m,r,hr|Ge,c):u))return!1}}return!0}function Ag(p){if(!oa(p)||ev(p))return!1;var e=Kd(p)||Ni(p)?tg:Lf;return e.test(fe(p))}function Cg(p){return ur(p)&&rs(p.length)&&!!it[je.call(p)]}function Dg(p){return typeof p=="function"?p:p==null?cv:typeof p=="object"?te(p)?Wg(p[0],p[1]):Mg(p):pv(p)}function Bg(p){if(!Md(p))return ig(p);var e=[];for(var a in Object(p))Bt.call(p,a)&&a!="constructor"&&e.push(a);return e}function Lg(p){if(!oa(p))return av(p);var e=Md(p),a=[];for(var r in p)r=="constructor"&&(e||!Bt.call(p,r))||a.push(r);return a}function Mg(p){var e=Qg(p);return e.length==1&&e[0][2]?Ud(e[0][0],e[0][1]):function(a){return a===p||Rg(a,p,e)}}function Wg(p,e){return pr(p)&&Wd(e)?Ud(mr(p),e):function(a){var r=nv(a,p);return r===void 0&&r===e?hv(a,p):ts(e,r,void 0,hr|Ge)}}function Ug(p,e,a){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],t=p[o];a(t,o)&&(s[o]=t)}return s}function Ng(p){return function(e){return Cd(e,p)}}function Hg(p){if(typeof p=="string")return p;if(is(p))return Sd?Sd.call(p):"";var e=p+"";return e=="0"&&1/p==-Id?"-0":e}function Dd(p){return te(p)?p:rv(p)}function Bd(p,e,a,r,i,s){var o=i&Ge,t=p.length,g=e.length;if(t!=g&&!(o&&g>t))return!1;var m=s.get(p);if(m&&s.get(e))return m==e;var y=-1,c=!0,u=i&hr?new nr:void 0;for(s.set(p,e),s.set(e,p);++y<t;){var f=p[y],_=e[y];if(r)var S=o?r(_,f,y,e,p,s):r(f,_,y,p,e,s);if(S!==void 0){if(S)continue;c=!1;break}if(u){if(!Nf(e,function(b,I){if(!u.has(I)&&(f===b||a(f,b,r,i,s)))return u.add(I)})){c=!1;break}}else if(!(f===_||a(f,_,r,i,s))){c=!1;break}}return s.delete(p),s.delete(e),c}function Kg(p,e,a,r,i,s,o){switch(a){case sr:if(p.byteLength!=e.byteLength||p.byteOffset!=e.byteOffset)return!1;p=p.buffer,e=e.buffer;case Od:return!(p.byteLength!=e.byteLength||!r(new bd(p),new bd(e)));case Pd:case kd:case Fd:return Nd(+p,+e);case Td:return p.name==e.name&&p.message==e.message;case $d:case zd:return p==e+"";case rr:var t=Qf;case ir:var g=s&Ge;if(t||(t=Xf),p.size!=e.size&&!g)return!1;var m=o.get(p);if(m)return m==e;s|=hr,o.set(p,e);var y=Bd(t(p),t(e),r,i,s,o);return o.delete(p),y;case Ed:if(Mi)return Mi.call(p)==Mi.call(e)}return!1}function Vg(p,e,a,r,i,s){var o=i&Ge,t=Xi(p),g=t.length,m=Xi(e),y=m.length;if(g!=y&&!o)return!1;for(var c=g;c--;){var u=t[c];if(!(o?u in e:Bt.call(e,u)))return!1}var f=s.get(p);if(f&&s.get(e))return f==e;var _=!0;s.set(p,e),s.set(e,p);for(var S=o;++c<g;){u=t[c];var b=p[u],I=e[u];if(r)var x=o?r(I,b,u,e,p,s):r(b,I,u,p,e,s);if(!(x===void 0?b===I||a(b,I,r,i,s):x)){_=!1;break}S||(S=u=="constructor")}if(_&&!S){var z=p.constructor,B=e.constructor;z!=B&&"constructor"in p&&"constructor"in e&&!(typeof z=="function"&&z instanceof z&&typeof B=="function"&&B instanceof B)&&(_=!1)}return s.delete(p),s.delete(e),_}function Jg(p){return Og(p,dv,Zg)}function cr(p,e){var a=p.__data__;return tv(e)?a[typeof e=="string"?"string":"hash"]:a.map}function Qg(p){for(var e=Xi(p),a=e.length;a--;){var r=e[a],i=p[r];e[a]=[r,i,Wd(i)]}return e}function Re(p,e){var a=Jf(p,e);return Ag(a)?a:void 0}var Xg=Hi?Yi(Hi,Object):Vd,Zg=Hi?function(p){for(var e=[];p;)jd(e,Xg(p)),p=eg(p);return e}:Vd,Yt=xg;(Ki&&Yt(new Ki(new ArrayBuffer(1)))!=sr||ia&&Yt(new ia)!=rr||Vi&&Yt(Vi.resolve())!=md||Ji&&Yt(new Ji)!=ir||Qi&&Yt(new Qi)!=Ui)&&(Yt=function(p){var e=je.call(p),a=e==Oe?p.constructor:void 0,r=a?fe(a):void 0;if(r)switch(r){case sg:return sr;case og:return rr;case ng:return md;case hg:return ir;case dg:return Ui}return e});function Yg(p,e,a){e=pr(e,p)?[e]:Dd(e);for(var r,i=-1,o=e.length;++i<o;){var s=mr(e[i]);if(!(r=p!=null&&a(p,s)))break;p=p[s]}if(r)return r;var o=p?p.length:0;return!!o&&rs(o)&&Ld(s,o)&&(te(p)||Hd(p))}function Ld(p,e){return e=e??wd,!!e&&(typeof p=="number"||Mf.test(p))&&p>-1&&p%1==0&&p<e}function pr(p,e){if(te(p))return!1;var a=typeof p;return a=="number"||a=="symbol"||a=="boolean"||p==null||is(p)?!0:Rf.test(p)||!jf.test(p)||e!=null&&p in Object(e)}function tv(p){var e=typeof p;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?p!=="__proto__":p===null}function ev(p){return!!vd&&vd in p}function Md(p){var e=p&&p.constructor,a=typeof e=="function"&&e.prototype||dr;return p===a}function Wd(p){return p===p&&!oa(p)}function Ud(p,e){return function(a){return a==null?!1:a[p]===e&&(e!==void 0||p in Object(a))}}function av(p){var e=[];if(p!=null)for(var a in Object(p))e.push(a);return e}var rv=es(function(p){p=ov(p);var e=[];return Af.test(p)&&e.push(""),p.replace(Cf,function(a,r,i,s){e.push(i?s.replace(Bf,"$1"):r||a)}),e});function mr(p){if(typeof p=="string"||is(p))return p;var e=p+"";return e=="0"&&1/p==-Id?"-0":e}function fe(p){if(p!=null){try{return Rd.call(p)}catch{}try{return p+""}catch{}}return""}function es(p,e){if(typeof p!="function"||e&&typeof e!="function")throw new TypeError(Pf);var a=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=a.cache;if(s.has(i))return s.get(i);var o=p.apply(this,r);return a.cache=s.set(i,o),o};return a.cache=new(es.Cache||Nt),a}es.Cache=Nt;function Nd(p,e){return p===e||p!==p&&e!==e}function Hd(p){return iv(p)&&Bt.call(p,"callee")&&(!ag.call(p,"callee")||je.call(p)==ar)}var te=Array.isArray;function as(p){return p!=null&&rs(p.length)&&!Kd(p)}function iv(p){return ur(p)&&as(p)}function Kd(p){var e=oa(p)?je.call(p):"";return e==qd||e==kf}function rs(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=wd}function oa(p){var e=typeof p;return!!p&&(e=="object"||e=="function")}function ur(p){return!!p&&typeof p=="object"}function is(p){return typeof p=="symbol"||ur(p)&&je.call(p)==Ed}var sv=gd?Vf(gd):Cg;function ov(p){return p==null?"":Hg(p)}function nv(p,e,a){var r=p==null?void 0:Cd(p,e);return r===void 0?a:r}function hv(p,e){return p!=null&&Yg(p,e,Gg)}function Xi(p){return as(p)?Ad(p):Bg(p)}function dv(p){return as(p)?Ad(p,!0):Lg(p)}function lv(p,e){return p==null?{}:Ug(p,Jg(p),Dg(e))}function cv(p){return p}function pv(p){return pr(p)?Hf(mr(p)):Ng(p)}function Vd(){return[]}xe.exports=lv});var Pl=K((na,Ae)=>{var mv=200,sl="__lodash_hash_undefined__",uv=800,yv=16,ol=9007199254740991,nl="[object Arguments]",fv="[object Array]",gv="[object AsyncFunction]",vv="[object Boolean]",_v="[object Date]",bv="[object Error]",hl="[object Function]",Sv="[object GeneratorFunction]",Iv="[object Map]",wv="[object Number]",Pv="[object Null]",dl="[object Object]",kv="[object Proxy]",Tv="[object RegExp]",qv="[object Set]",Fv="[object String]",$v="[object Undefined]",zv="[object WeakMap]",Ev="[object ArrayBuffer]",Ov="[object DataView]",xv="[object Float32Array]",Gv="[object Float64Array]",jv="[object Int8Array]",Rv="[object Int16Array]",Av="[object Int32Array]",Cv="[object Uint8Array]",Dv="[object Uint8ClampedArray]",Bv="[object Uint16Array]",Lv="[object Uint32Array]",Mv=/[\\^$.*+?()[\]{}|]/g,Wv=/^\[object .+?Constructor\]$/,Uv=/^(?:0|[1-9]\d*)$/,st={};st[xv]=st[Gv]=st[jv]=st[Rv]=st[Av]=st[Cv]=st[Dv]=st[Bv]=st[Lv]=!0;st[nl]=st[fv]=st[Ev]=st[vv]=st[Ov]=st[_v]=st[bv]=st[hl]=st[Iv]=st[wv]=st[dl]=st[Tv]=st[qv]=st[Fv]=st[zv]=!1;var ll=typeof global=="object"&&global&&global.Object===Object&&global,Nv=typeof self=="object"&&self&&self.Object===Object&&self,la=ll||Nv||Function("return this")(),cl=typeof na=="object"&&na&&!na.nodeType&&na,ha=cl&&typeof Ae=="object"&&Ae&&!Ae.nodeType&&Ae,pl=ha&&ha.exports===cl,ss=pl&&ll.process,Qd=(function(){try{var p=ha&&ha.require&&ha.require("util").types;return p||ss&&ss.binding&&ss.binding("util")}catch{}})(),Xd=Qd&&Qd.isTypedArray;function Hv(p,e,a){switch(a.length){case 0:return p.call(e);case 1:return p.call(e,a[0]);case 2:return p.call(e,a[0],a[1]);case 3:return p.call(e,a[0],a[1],a[2])}return p.apply(e,a)}function Kv(p,e){for(var a=-1,r=Array(p);++a<p;)r[a]=e(a);return r}function Vv(p){return function(e){return p(e)}}function Jv(p,e){return p?.[e]}function Qv(p,e){return function(a){return p(e(a))}}var Xv=Array.prototype,Zv=Function.prototype,gr=Object.prototype,os=la["__core-js_shared__"],vr=Zv.toString,Ht=gr.hasOwnProperty,Zd=(function(){var p=/[^.]+$/.exec(os&&os.keys&&os.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""})(),ml=gr.toString,Yv=vr.call(Object),t_=RegExp("^"+vr.call(Ht).replace(Mv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yr=pl?la.Buffer:void 0,Yd=la.Symbol,tl=la.Uint8Array,el=yr?yr.allocUnsafe:void 0,ul=Qv(Object.getPrototypeOf,Object),al=Object.create,e_=gr.propertyIsEnumerable,a_=Xv.splice,ge=Yd?Yd.toStringTag:void 0,fr=(function(){try{var p=ps(Object,"defineProperty");return p({},"",{}),p}catch{}})(),r_=yr?yr.isBuffer:void 0,rl=Math.max,i_=Date.now,yl=ps(la,"Map"),da=ps(Object,"create"),s_=(function(){function p(){}return function(e){if(!_e(e))return{};if(al)return al(e);p.prototype=e;var a=new p;return p.prototype=void 0,a}})();function ve(p){var e=-1,a=p==null?0:p.length;for(this.clear();++e<a;){var r=p[e];this.set(r[0],r[1])}}function o_(){this.__data__=da?da(null):{},this.size=0}function n_(p){var e=this.has(p)&&delete this.__data__[p];return this.size-=e?1:0,e}function h_(p){var e=this.__data__;if(da){var a=e[p];return a===sl?void 0:a}return Ht.call(e,p)?e[p]:void 0}function d_(p){var e=this.__data__;return da?e[p]!==void 0:Ht.call(e,p)}function l_(p,e){var a=this.__data__;return this.size+=this.has(p)?0:1,a[p]=da&&e===void 0?sl:e,this}ve.prototype.clear=o_;ve.prototype.delete=n_;ve.prototype.get=h_;ve.prototype.has=d_;ve.prototype.set=l_;function Kt(p){var e=-1,a=p==null?0:p.length;for(this.clear();++e<a;){var r=p[e];this.set(r[0],r[1])}}function c_(){this.__data__=[],this.size=0}function p_(p){var e=this.__data__,a=_r(e,p);if(a<0)return!1;var r=e.length-1;return a==r?e.pop():a_.call(e,a,1),--this.size,!0}function m_(p){var e=this.__data__,a=_r(e,p);return a<0?void 0:e[a][1]}function u_(p){return _r(this.__data__,p)>-1}function y_(p,e){var a=this.__data__,r=_r(a,p);return r<0?(++this.size,a.push([p,e])):a[r][1]=e,this}Kt.prototype.clear=c_;Kt.prototype.delete=p_;Kt.prototype.get=m_;Kt.prototype.has=u_;Kt.prototype.set=y_;function Ce(p){var e=-1,a=p==null?0:p.length;for(this.clear();++e<a;){var r=p[e];this.set(r[0],r[1])}}function f_(){this.size=0,this.__data__={hash:new ve,map:new(yl||Kt),string:new ve}}function g_(p){var e=Sr(this,p).delete(p);return this.size-=e?1:0,e}function v_(p){return Sr(this,p).get(p)}function __(p){return Sr(this,p).has(p)}function b_(p,e){var a=Sr(this,p),r=a.size;return a.set(p,e),this.size+=a.size==r?0:1,this}Ce.prototype.clear=f_;Ce.prototype.delete=g_;Ce.prototype.get=v_;Ce.prototype.has=__;Ce.prototype.set=b_;function De(p){var e=this.__data__=new Kt(p);this.size=e.size}function S_(){this.__data__=new Kt,this.size=0}function I_(p){var e=this.__data__,a=e.delete(p);return this.size=e.size,a}function w_(p){return this.__data__.get(p)}function P_(p){return this.__data__.has(p)}function k_(p,e){var a=this.__data__;if(a instanceof Kt){var r=a.__data__;if(!yl||r.length<mv-1)return r.push([p,e]),this.size=++a.size,this;a=this.__data__=new Ce(r)}return a.set(p,e),this.size=a.size,this}De.prototype.clear=S_;De.prototype.delete=I_;De.prototype.get=w_;De.prototype.has=P_;De.prototype.set=k_;function T_(p,e){var a=ls(p),r=!a&&ds(p),i=!a&&!r&&_l(p),s=!a&&!r&&!i&&Sl(p),o=a||r||i||s,t=o?Kv(p.length,String):[],g=t.length;for(var m in p)(e||Ht.call(p,m))&&!(o&&(m=="length"||i&&(m=="offset"||m=="parent")||s&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||gl(m,g)))&&t.push(m);return t}function ns(p,e,a){(a!==void 0&&!Ir(p[e],a)||a===void 0&&!(e in p))&&cs(p,e,a)}function q_(p,e,a){var r=p[e];(!(Ht.call(p,e)&&Ir(r,a))||a===void 0&&!(e in p))&&cs(p,e,a)}function _r(p,e){for(var a=p.length;a--;)if(Ir(p[a][0],e))return a;return-1}function cs(p,e,a){e=="__proto__"&&fr?fr(p,e,{configurable:!0,enumerable:!0,value:a,writable:!0}):p[e]=a}var F_=L_();function br(p){return p==null?p===void 0?$v:Pv:ge&&ge in Object(p)?M_(p):V_(p)}function il(p){return ca(p)&&br(p)==nl}function $_(p){if(!_e(p)||H_(p))return!1;var e=us(p)?t_:Wv;return e.test(Z_(p))}function z_(p){return ca(p)&&bl(p.length)&&!!st[br(p)]}function E_(p){if(!_e(p))return K_(p);var e=vl(p),a=[];for(var r in p)r=="constructor"&&(e||!Ht.call(p,r))||a.push(r);return a}function fl(p,e,a,r,i){p!==e&&F_(e,function(s,o){if(i||(i=new De),_e(s))O_(p,e,o,a,fl,r,i);else{var t=r?r(hs(p,o),s,o+"",p,e,i):void 0;t===void 0&&(t=s),ns(p,o,t)}},Il)}function O_(p,e,a,r,i,s,o){var t=hs(p,a),g=hs(e,a),m=o.get(g);if(m){ns(p,a,m);return}var y=s?s(t,g,a+"",p,e,o):void 0,c=y===void 0;if(c){var u=ls(g),f=!u&&_l(g),_=!u&&!f&&Sl(g);y=g,u||f||_?ls(t)?y=t:Y_(t)?y=C_(t):f?(c=!1,y=j_(g,!0)):_?(c=!1,y=A_(g,!0)):y=[]:t0(g)||ds(g)?(y=t,ds(t)?y=e0(t):(!_e(t)||us(t))&&(y=W_(g))):c=!1}c&&(o.set(g,y),i(y,g,r,s,o),o.delete(g)),ns(p,a,y)}function x_(p,e){return Q_(J_(p,e,wl),p+"")}var G_=fr?function(p,e){return fr(p,"toString",{configurable:!0,enumerable:!1,value:r0(e),writable:!0})}:wl;function j_(p,e){if(e)return p.slice();var a=p.length,r=el?el(a):new p.constructor(a);return p.copy(r),r}function R_(p){var e=new p.constructor(p.byteLength);return new tl(e).set(new tl(p)),e}function A_(p,e){var a=e?R_(p.buffer):p.buffer;return new p.constructor(a,p.byteOffset,p.length)}function C_(p,e){var a=-1,r=p.length;for(e||(e=Array(r));++a<r;)e[a]=p[a];return e}function D_(p,e,a,r){var i=!a;a||(a={});for(var s=-1,o=e.length;++s<o;){var t=e[s],g=r?r(a[t],p[t],t,a,p):void 0;g===void 0&&(g=p[t]),i?cs(a,t,g):q_(a,t,g)}return a}function B_(p){return x_(function(e,a){var r=-1,i=a.length,s=i>1?a[i-1]:void 0,o=i>2?a[2]:void 0;for(s=p.length>3&&typeof s=="function"?(i--,s):void 0,o&&U_(a[0],a[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var t=a[r];t&&p(e,t,r,s)}return e})}function L_(p){return function(e,a,r){for(var i=-1,s=Object(e),o=r(e),t=o.length;t--;){var g=o[p?t:++i];if(a(s[g],g,s)===!1)break}return e}}function Sr(p,e){var a=p.__data__;return N_(e)?a[typeof e=="string"?"string":"hash"]:a.map}function ps(p,e){var a=Jv(p,e);return $_(a)?a:void 0}function M_(p){var e=Ht.call(p,ge),a=p[ge];try{p[ge]=void 0;var r=!0}catch{}var i=ml.call(p);return r&&(e?p[ge]=a:delete p[ge]),i}function W_(p){return typeof p.constructor=="function"&&!vl(p)?s_(ul(p)):{}}function gl(p,e){var a=typeof p;return e=e??ol,!!e&&(a=="number"||a!="symbol"&&Uv.test(p))&&p>-1&&p%1==0&&p<e}function U_(p,e,a){if(!_e(a))return!1;var r=typeof e;return(r=="number"?ms(a)&&gl(e,a.length):r=="string"&&e in a)?Ir(a[e],p):!1}function N_(p){var e=typeof p;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?p!=="__proto__":p===null}function H_(p){return!!Zd&&Zd in p}function vl(p){var e=p&&p.constructor,a=typeof e=="function"&&e.prototype||gr;return p===a}function K_(p){var e=[];if(p!=null)for(var a in Object(p))e.push(a);return e}function V_(p){return ml.call(p)}function J_(p,e,a){return e=rl(e===void 0?p.length-1:e,0),function(){for(var r=arguments,i=-1,s=rl(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var t=Array(e+1);++i<e;)t[i]=r[i];return t[e]=a(o),Hv(p,this,t)}}function hs(p,e){if(!(e==="constructor"&&typeof p[e]=="function")&&e!="__proto__")return p[e]}var Q_=X_(G_);function X_(p){var e=0,a=0;return function(){var r=i_(),i=yv-(r-a);if(a=r,i>0){if(++e>=uv)return arguments[0]}else e=0;return p.apply(void 0,arguments)}}function Z_(p){if(p!=null){try{return vr.call(p)}catch{}try{return p+""}catch{}}return""}function Ir(p,e){return p===e||p!==p&&e!==e}var ds=il((function(){return arguments})())?il:function(p){return ca(p)&&Ht.call(p,"callee")&&!e_.call(p,"callee")},ls=Array.isArray;function ms(p){return p!=null&&bl(p.length)&&!us(p)}function Y_(p){return ca(p)&&ms(p)}var _l=r_||i0;function us(p){if(!_e(p))return!1;var e=br(p);return e==hl||e==Sv||e==gv||e==kv}function bl(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=ol}function _e(p){var e=typeof p;return p!=null&&(e=="object"||e=="function")}function ca(p){return p!=null&&typeof p=="object"}function t0(p){if(!ca(p)||br(p)!=dl)return!1;var e=ul(p);if(e===null)return!0;var a=Ht.call(e,"constructor")&&e.constructor;return typeof a=="function"&&a instanceof a&&vr.call(a)==Yv}var Sl=Xd?Vv(Xd):z_;function e0(p){return D_(p,Il(p))}function Il(p){return ms(p)?T_(p,!0):E_(p)}var a0=B_(function(p,e,a){fl(p,e,a)});function r0(p){return function(){return p}}function wl(p){return p}function i0(){return!1}Ae.exports=a0});var ql=K((eI,Tl)=>{"use strict";var s0=vp(),o0=fp(),n0=mp(),h0=up(),d0=yp(),l0=_p(),Et=gp(),kl=bp();Et.createWebSocketStream=s0;Et.extension=o0;Et.PerMessageDeflate=n0;Et.Receiver=h0;Et.Sender=d0;Et.Server=kl;Et.subprotocol=l0;Et.WebSocket=Et;Et.WebSocketServer=kl;Tl.exports=Et});var $l=K((aI,Fl)=>{"use strict";Fl.exports=c0;function c0(p,e){for(var a=new Array(arguments.length-1),r=0,i=2,s=!0;i<arguments.length;)a[r++]=arguments[i++];return new Promise(function(t,g){a[r]=function(y){if(s)if(s=!1,y)g(y);else{for(var c=new Array(arguments.length-1),u=0;u<c.length;)c[u++]=arguments[u];t.apply(null,c)}};try{p.apply(e||null,a)}catch(m){s&&(s=!1,g(m))}})}});var xl=K(Ol=>{"use strict";var wr=Ol;wr.length=function(e){var a=e.length;if(!a)return 0;for(var r=0;--a%4>1&&e.charAt(a)==="=";)++r;return Math.ceil(e.length*3)/4-r};var Be=new Array(64),El=new Array(123);for(Ot=0;Ot<64;)El[Be[Ot]=Ot<26?Ot+65:Ot<52?Ot+71:Ot<62?Ot-4:Ot-59|43]=Ot++;var Ot;wr.encode=function(e,a,r){for(var i=null,s=[],o=0,t=0,g;a<r;){var m=e[a++];switch(t){case 0:s[o++]=Be[m>>2],g=(m&3)<<4,t=1;break;case 1:s[o++]=Be[g|m>>4],g=(m&15)<<2,t=2;break;case 2:s[o++]=Be[g|m>>6],s[o++]=Be[m&63],t=0;break}o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0)}return t&&(s[o++]=Be[g],s[o++]=61,t===1&&(s[o++]=61)),i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))};var zl="invalid encoding";wr.decode=function(e,a,r){for(var i=r,s=0,o,t=0;t<e.length;){var g=e.charCodeAt(t++);if(g===61&&s>1)break;if((g=El[g])===void 0)throw Error(zl);switch(s){case 0:o=g,s=1;break;case 1:a[r++]=o<<2|(g&48)>>4,o=g,s=2;break;case 2:a[r++]=(o&15)<<4|(g&60)>>2,o=g,s=3;break;case 3:a[r++]=(o&3)<<6|g,s=0;break}}if(s===1)throw Error(zl);return r-i};wr.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var jl=K((iI,Gl)=>{"use strict";Gl.exports=Pr;function Pr(){this._listeners=Object.create(null)}Pr.prototype.on=function(e,a,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:a,ctx:r||this}),this};Pr.prototype.off=function(e,a){if(e===void 0)this._listeners=Object.create(null);else if(a===void 0)this._listeners[e]=[];else{var r=this._listeners[e];if(!r)return this;for(var i=0;i<r.length;)r[i].fn===a?r.splice(i,1):++i}return this};Pr.prototype.emit=function(e){var a=this._listeners[e];if(a){for(var r=[],i=1;i<arguments.length;)r.push(arguments[i++]);for(i=0;i<a.length;)a[i].fn.apply(a[i++].ctx,r)}return this}});var Ml=K((sI,Ll)=>{"use strict";Ll.exports=Rl(Rl);function Rl(p){return typeof Float32Array<"u"?(function(){var e=new Float32Array([-0]),a=new Uint8Array(e.buffer),r=a[3]===128;function i(g,m,y){e[0]=g,m[y]=a[0],m[y+1]=a[1],m[y+2]=a[2],m[y+3]=a[3]}function s(g,m,y){e[0]=g,m[y]=a[3],m[y+1]=a[2],m[y+2]=a[1],m[y+3]=a[0]}p.writeFloatLE=r?i:s,p.writeFloatBE=r?s:i;function o(g,m){return a[0]=g[m],a[1]=g[m+1],a[2]=g[m+2],a[3]=g[m+3],e[0]}function t(g,m){return a[3]=g[m],a[2]=g[m+1],a[1]=g[m+2],a[0]=g[m+3],e[0]}p.readFloatLE=r?o:t,p.readFloatBE=r?t:o})():(function(){function e(r,i,s,o){var t=i<0?1:0;if(t&&(i=-i),i===0)r(1/i>0?0:2147483648,s,o);else if(isNaN(i))r(2143289344,s,o);else if(i>34028234663852886e22)r((t<<31|2139095040)>>>0,s,o);else if(i<11754943508222875e-54)r((t<<31|Math.round(i/1401298464324817e-60))>>>0,s,o);else{var g=Math.floor(Math.log(i)/Math.LN2),m=Math.round(i*Math.pow(2,-g)*8388608)&8388607;r((t<<31|g+127<<23|m)>>>0,s,o)}}p.writeFloatLE=e.bind(null,Al),p.writeFloatBE=e.bind(null,Cl);function a(r,i,s){var o=r(i,s),t=(o>>31)*2+1,g=o>>>23&255,m=o&8388607;return g===255?m?NaN:t*(1/0):g===0?t*1401298464324817e-60*m:t*Math.pow(2,g-150)*(m+8388608)}p.readFloatLE=a.bind(null,Dl),p.readFloatBE=a.bind(null,Bl)})(),typeof Float64Array<"u"?(function(){var e=new Float64Array([-0]),a=new Uint8Array(e.buffer),r=a[7]===128;function i(g,m,y){e[0]=g,m[y]=a[0],m[y+1]=a[1],m[y+2]=a[2],m[y+3]=a[3],m[y+4]=a[4],m[y+5]=a[5],m[y+6]=a[6],m[y+7]=a[7]}function s(g,m,y){e[0]=g,m[y]=a[7],m[y+1]=a[6],m[y+2]=a[5],m[y+3]=a[4],m[y+4]=a[3],m[y+5]=a[2],m[y+6]=a[1],m[y+7]=a[0]}p.writeDoubleLE=r?i:s,p.writeDoubleBE=r?s:i;function o(g,m){return a[0]=g[m],a[1]=g[m+1],a[2]=g[m+2],a[3]=g[m+3],a[4]=g[m+4],a[5]=g[m+5],a[6]=g[m+6],a[7]=g[m+7],e[0]}function t(g,m){return a[7]=g[m],a[6]=g[m+1],a[5]=g[m+2],a[4]=g[m+3],a[3]=g[m+4],a[2]=g[m+5],a[1]=g[m+6],a[0]=g[m+7],e[0]}p.readDoubleLE=r?o:t,p.readDoubleBE=r?t:o})():(function(){function e(r,i,s,o,t,g){var m=o<0?1:0;if(m&&(o=-o),o===0)r(0,t,g+i),r(1/o>0?0:2147483648,t,g+s);else if(isNaN(o))r(0,t,g+i),r(2146959360,t,g+s);else if(o>17976931348623157e292)r(0,t,g+i),r((m<<31|2146435072)>>>0,t,g+s);else{var y;if(o<22250738585072014e-324)y=o/5e-324,r(y>>>0,t,g+i),r((m<<31|y/4294967296)>>>0,t,g+s);else{var c=Math.floor(Math.log(o)/Math.LN2);c===1024&&(c=1023),y=o*Math.pow(2,-c),r(y*4503599627370496>>>0,t,g+i),r((m<<31|c+1023<<20|y*1048576&1048575)>>>0,t,g+s)}}}p.writeDoubleLE=e.bind(null,Al,0,4),p.writeDoubleBE=e.bind(null,Cl,4,0);function a(r,i,s,o,t){var g=r(o,t+i),m=r(o,t+s),y=(m>>31)*2+1,c=m>>>20&2047,u=4294967296*(m&1048575)+g;return c===2047?u?NaN:y*(1/0):c===0?y*5e-324*u:y*Math.pow(2,c-1075)*(u+4503599627370496)}p.readDoubleLE=a.bind(null,Dl,0,4),p.readDoubleBE=a.bind(null,Bl,4,0)})(),p}function Al(p,e,a){e[a]=p&255,e[a+1]=p>>>8&255,e[a+2]=p>>>16&255,e[a+3]=p>>>24}function Cl(p,e,a){e[a]=p>>>24,e[a+1]=p>>>16&255,e[a+2]=p>>>8&255,e[a+3]=p&255}function Dl(p,e){return(p[e]|p[e+1]<<8|p[e+2]<<16|p[e+3]<<24)>>>0}function Bl(p,e){return(p[e]<<24|p[e+1]<<16|p[e+2]<<8|p[e+3])>>>0}});var Ul=K(Wl=>{"use strict";var fs=Wl,ys=65533;fs.length=function(e){for(var a=0,r=0,i=0;i<e.length;++i)r=e.charCodeAt(i),r<128?a+=1:r<2048?a+=2:(r&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320?(++i,a+=4):a+=3;return a};fs.read=function(e,a,r){if(r-a<1)return"";for(var i=null,s=[],o=0,t,g,m,y;a<r;)t=e[a++],t<=127?s[o++]=t:t>=192&&t<224?(m=(t&31)<<6|e[a++]&63,s[o++]=m>=128?m:ys):t>=224&&t<240?(y=(t&15)<<12|(e[a++]&63)<<6|e[a++]&63,s[o++]=y>=2048?y:ys):t>=240&&(g=(t&7)<<18|(e[a++]&63)<<12|(e[a++]&63)<<6|e[a++]&63,g<65536||g>1114111?s[o++]=ys:(g-=65536,s[o++]=55296+(g>>10),s[o++]=56320+(g&1023))),o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s.slice(0,o))),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))};fs.write=function(e,a,r){for(var i=r,s,o,t=0;t<e.length;++t)s=e.charCodeAt(t),s<128?a[r++]=s:s<2048?(a[r++]=s>>6|192,a[r++]=s&63|128):(s&64512)===55296&&((o=e.charCodeAt(t+1))&64512)===56320?(s=65536+((s&1023)<<10)+(o&1023),++t,a[r++]=s>>18|240,a[r++]=s>>12&63|128,a[r++]=s>>6&63|128,a[r++]=s&63|128):(a[r++]=s>>12|224,a[r++]=s>>6&63|128,a[r++]=s&63|128);return r-i}});var Hl=K((nI,Nl)=>{"use strict";Nl.exports=p0;function p0(p,e,a){var r=a||8192,i=r>>>1,s=null,o=r;return function(g){if(g<1||g>i)return p(g);o+g>r&&(s=p(r),o=0);var m=e.call(s,o,o+=g);return o&7&&(o=(o|7)+1),m}}});var Vl=K((hI,Kl)=>{"use strict";Kl.exports=ft;var pa=re();function ft(p,e){this.lo=p>>>0,this.hi=e>>>0}var be=ft.zero=new ft(0,0);be.toNumber=function(){return 0};be.zzEncode=be.zzDecode=function(){return this};be.length=function(){return 1};var m0=ft.zeroHash="\0\0\0\0\0\0\0\0";ft.fromNumber=function(e){if(e===0)return be;var a=e<0;a&&(e=-e);var r=e>>>0,i=(e-r)/4294967296>>>0;return a&&(i=~i>>>0,r=~r>>>0,++r>4294967295&&(r=0,++i>4294967295&&(i=0))),new ft(r,i)};ft.from=function(e){if(typeof e=="number")return ft.fromNumber(e);if(pa.isString(e))if(pa.Long)e=pa.Long.fromString(e);else return ft.fromNumber(parseInt(e,10));return e.low||e.high?new ft(e.low>>>0,e.high>>>0):be};ft.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var a=~this.lo+1>>>0,r=~this.hi>>>0;return a||(r=r+1>>>0),-(a+r*4294967296)}return this.lo+this.hi*4294967296};ft.prototype.toLong=function(e){return pa.Long?new pa.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var ae=String.prototype.charCodeAt;ft.fromHash=function(e){return e===m0?be:new ft((ae.call(e,0)|ae.call(e,1)<<8|ae.call(e,2)<<16|ae.call(e,3)<<24)>>>0,(ae.call(e,4)|ae.call(e,5)<<8|ae.call(e,6)<<16|ae.call(e,7)<<24)>>>0)};ft.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};ft.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};ft.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};ft.prototype.length=function(){var e=this.lo,a=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return r===0?a===0?e<16384?e<128?1:2:e<2097152?3:4:a<16384?a<128?5:6:a<2097152?7:8:r<128?9:10}});var Jl=K((ma,gs)=>{(function(p,e){function a(r){return r.default||r}typeof define=="function"&&define.amd?define([],function(){var r={};return e(r),a(r)}):typeof ma=="object"?(e(ma),typeof gs=="object"&&(gs.exports=a(ma))):(function(){var r={};e(r),p.Long=a(r)})()})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:ma,function(p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;var e=null;try{e=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function a($,q,O){this.low=$|0,this.high=q|0,this.unsigned=!!O}a.prototype.__isLong__,Object.defineProperty(a.prototype,"__isLong__",{value:!0});function r($){return($&&$.__isLong__)===!0}function i($){var q=Math.clz32($&-$);return $?31-q:q}a.isLong=r;var s={},o={};function t($,q){var O,D,L;return q?($>>>=0,(L=0<=$&&$<256)&&(D=o[$],D)?D:(O=m($,0,!0),L&&(o[$]=O),O)):($|=0,(L=-128<=$&&$<128)&&(D=s[$],D)?D:(O=m($,$<0?-1:0,!1),L&&(s[$]=O),O))}a.fromInt=t;function g($,q){if(isNaN($))return q?B:z;if(q){if($<0)return B;if($>=b)return pt}else{if($<=-I)return Y;if($+1>=I)return at}return $<0?g(-$,q).neg():m($%S|0,$/S|0,q)}a.fromNumber=g;function m($,q,O){return new a($,q,O)}a.fromBits=m;var y=Math.pow;function c($,q,O){if($.length===0)throw Error("empty string");if(typeof q=="number"?(O=q,q=!1):q=!!q,$==="NaN"||$==="Infinity"||$==="+Infinity"||$==="-Infinity")return q?B:z;if(O=O||10,O<2||36<O)throw RangeError("radix");var D;if((D=$.indexOf("-"))>0)throw Error("interior hyphen");if(D===0)return c($.substring(1),q,O).neg();for(var L=g(y(O,8)),U=z,et=0;et<$.length;et+=8){var R=Math.min(8,$.length-et),G=parseInt($.substring(et,et+R),O);if(R<8){var M=g(y(O,R));U=U.mul(M).add(g(G))}else U=U.mul(L),U=U.add(g(G))}return U.unsigned=q,U}a.fromString=c;function u($,q){return typeof $=="number"?g($,q):typeof $=="string"?c($,q):m($.low,$.high,typeof q=="boolean"?q:$.unsigned)}a.fromValue=u;var f=65536,_=1<<24,S=f*f,b=S*S,I=b/2,x=t(_),z=t(0);a.ZERO=z;var B=t(0,!0);a.UZERO=B;var N=t(1);a.ONE=N;var V=t(1,!0);a.UONE=V;var X=t(-1);a.NEG_ONE=X;var at=m(-1,2147483647,!1);a.MAX_VALUE=at;var pt=m(-1,-1,!0);a.MAX_UNSIGNED_VALUE=pt;var Y=m(0,-2147483648,!1);a.MIN_VALUE=Y;var E=a.prototype;E.toInt=function(){return this.unsigned?this.low>>>0:this.low},E.toNumber=function(){return this.unsigned?(this.high>>>0)*S+(this.low>>>0):this.high*S+(this.low>>>0)},E.toString=function(q){if(q=q||10,q<2||36<q)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(Y)){var O=g(q),D=this.div(O),L=D.mul(O).sub(this);return D.toString(q)+L.toInt().toString(q)}else return"-"+this.neg().toString(q);for(var U=g(y(q,6),this.unsigned),et=this,R="";;){var G=et.div(U),M=et.sub(G.mul(U)).toInt()>>>0,J=M.toString(q);if(et=G,et.isZero())return J+R;for(;J.length<6;)J="0"+J;R=""+J+R}},E.getHighBits=function(){return this.high},E.getHighBitsUnsigned=function(){return this.high>>>0},E.getLowBits=function(){return this.low},E.getLowBitsUnsigned=function(){return this.low>>>0},E.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Y)?64:this.neg().getNumBitsAbs();for(var q=this.high!=0?this.high:this.low,O=31;O>0&&(q&1<<O)==0;O--);return this.high!=0?O+33:O+1},E.isSafeInteger=function(){var q=this.high>>21;return q?this.unsigned?!1:q===-1&&!(this.low===0&&this.high===-2097152):!0},E.isZero=function(){return this.high===0&&this.low===0},E.eqz=E.isZero,E.isNegative=function(){return!this.unsigned&&this.high<0},E.isPositive=function(){return this.unsigned||this.high>=0},E.isOdd=function(){return(this.low&1)===1},E.isEven=function(){return(this.low&1)===0},E.equals=function(q){return r(q)||(q=u(q)),this.unsigned!==q.unsigned&&this.high>>>31===1&&q.high>>>31===1?!1:this.high===q.high&&this.low===q.low},E.eq=E.equals,E.notEquals=function(q){return!this.eq(q)},E.neq=E.notEquals,E.ne=E.notEquals,E.lessThan=function(q){return this.comp(q)<0},E.lt=E.lessThan,E.lessThanOrEqual=function(q){return this.comp(q)<=0},E.lte=E.lessThanOrEqual,E.le=E.lessThanOrEqual,E.greaterThan=function(q){return this.comp(q)>0},E.gt=E.greaterThan,E.greaterThanOrEqual=function(q){return this.comp(q)>=0},E.gte=E.greaterThanOrEqual,E.ge=E.greaterThanOrEqual,E.compare=function(q){if(r(q)||(q=u(q)),this.eq(q))return 0;var O=this.isNegative(),D=q.isNegative();return O&&!D?-1:!O&&D?1:this.unsigned?q.high>>>0>this.high>>>0||q.high===this.high&&q.low>>>0>this.low>>>0?-1:1:this.sub(q).isNegative()?-1:1},E.comp=E.compare,E.negate=function(){return!this.unsigned&&this.eq(Y)?Y:this.not().add(N)},E.neg=E.negate,E.add=function(q){r(q)||(q=u(q));var O=this.high>>>16,D=this.high&65535,L=this.low>>>16,U=this.low&65535,et=q.high>>>16,R=q.high&65535,G=q.low>>>16,M=q.low&65535,J=0,Q=0,tt=0,ht=0;return ht+=U+M,tt+=ht>>>16,ht&=65535,tt+=L+G,Q+=tt>>>16,tt&=65535,Q+=D+R,J+=Q>>>16,Q&=65535,J+=O+et,J&=65535,m(tt<<16|ht,J<<16|Q,this.unsigned)},E.subtract=function(q){return r(q)||(q=u(q)),this.add(q.neg())},E.sub=E.subtract,E.multiply=function(q){if(this.isZero())return this;if(r(q)||(q=u(q)),e){var O=e.mul(this.low,this.high,q.low,q.high);return m(O,e.get_high(),this.unsigned)}if(q.isZero())return this.unsigned?B:z;if(this.eq(Y))return q.isOdd()?Y:z;if(q.eq(Y))return this.isOdd()?Y:z;if(this.isNegative())return q.isNegative()?this.neg().mul(q.neg()):this.neg().mul(q).neg();if(q.isNegative())return this.mul(q.neg()).neg();if(this.lt(x)&&q.lt(x))return g(this.toNumber()*q.toNumber(),this.unsigned);var D=this.high>>>16,L=this.high&65535,U=this.low>>>16,et=this.low&65535,R=q.high>>>16,G=q.high&65535,M=q.low>>>16,J=q.low&65535,Q=0,tt=0,ht=0,mt=0;return mt+=et*J,ht+=mt>>>16,mt&=65535,ht+=U*J,tt+=ht>>>16,ht&=65535,ht+=et*M,tt+=ht>>>16,ht&=65535,tt+=L*J,Q+=tt>>>16,tt&=65535,tt+=U*M,Q+=tt>>>16,tt&=65535,tt+=et*G,Q+=tt>>>16,tt&=65535,Q+=D*J+L*M+U*G+et*R,Q&=65535,m(ht<<16|mt,Q<<16|tt,this.unsigned)},E.mul=E.multiply,E.divide=function(q){if(r(q)||(q=u(q)),q.isZero())throw Error("division by zero");if(e){if(!this.unsigned&&this.high===-2147483648&&q.low===-1&&q.high===-1)return this;var O=(this.unsigned?e.div_u:e.div_s)(this.low,this.high,q.low,q.high);return m(O,e.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?B:z;var D,L,U;if(this.unsigned){if(q.unsigned||(q=q.toUnsigned()),q.gt(this))return B;if(q.gt(this.shru(1)))return V;U=B}else{if(this.eq(Y)){if(q.eq(N)||q.eq(X))return Y;if(q.eq(Y))return N;var et=this.shr(1);return D=et.div(q).shl(1),D.eq(z)?q.isNegative()?N:X:(L=this.sub(q.mul(D)),U=D.add(L.div(q)),U)}else if(q.eq(Y))return this.unsigned?B:z;if(this.isNegative())return q.isNegative()?this.neg().div(q.neg()):this.neg().div(q).neg();if(q.isNegative())return this.div(q.neg()).neg();U=z}for(L=this;L.gte(q);){D=Math.max(1,Math.floor(L.toNumber()/q.toNumber()));for(var R=Math.ceil(Math.log(D)/Math.LN2),G=R<=48?1:y(2,R-48),M=g(D),J=M.mul(q);J.isNegative()||J.gt(L);)D-=G,M=g(D,this.unsigned),J=M.mul(q);M.isZero()&&(M=N),U=U.add(M),L=L.sub(J)}return U},E.div=E.divide,E.modulo=function(q){if(r(q)||(q=u(q)),e){var O=(this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,q.low,q.high);return m(O,e.get_high(),this.unsigned)}return this.sub(this.div(q).mul(q))},E.mod=E.modulo,E.rem=E.modulo,E.not=function(){return m(~this.low,~this.high,this.unsigned)},E.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},E.clz=E.countLeadingZeros,E.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},E.ctz=E.countTrailingZeros,E.and=function(q){return r(q)||(q=u(q)),m(this.low&q.low,this.high&q.high,this.unsigned)},E.or=function(q){return r(q)||(q=u(q)),m(this.low|q.low,this.high|q.high,this.unsigned)},E.xor=function(q){return r(q)||(q=u(q)),m(this.low^q.low,this.high^q.high,this.unsigned)},E.shiftLeft=function(q){return r(q)&&(q=q.toInt()),(q&=63)===0?this:q<32?m(this.low<<q,this.high<<q|this.low>>>32-q,this.unsigned):m(0,this.low<<q-32,this.unsigned)},E.shl=E.shiftLeft,E.shiftRight=function(q){return r(q)&&(q=q.toInt()),(q&=63)===0?this:q<32?m(this.low>>>q|this.high<<32-q,this.high>>q,this.unsigned):m(this.high>>q-32,this.high>=0?0:-1,this.unsigned)},E.shr=E.shiftRight,E.shiftRightUnsigned=function(q){return r(q)&&(q=q.toInt()),(q&=63)===0?this:q<32?m(this.low>>>q|this.high<<32-q,this.high>>>q,this.unsigned):q===32?m(this.high,0,this.unsigned):m(this.high>>>q-32,0,this.unsigned)},E.shru=E.shiftRightUnsigned,E.shr_u=E.shiftRightUnsigned,E.rotateLeft=function(q){var O;return r(q)&&(q=q.toInt()),(q&=63)===0?this:q===32?m(this.high,this.low,this.unsigned):q<32?(O=32-q,m(this.low<<q|this.high>>>O,this.high<<q|this.low>>>O,this.unsigned)):(q-=32,O=32-q,m(this.high<<q|this.low>>>O,this.low<<q|this.high>>>O,this.unsigned))},E.rotl=E.rotateLeft,E.rotateRight=function(q){var O;return r(q)&&(q=q.toInt()),(q&=63)===0?this:q===32?m(this.high,this.low,this.unsigned):q<32?(O=32-q,m(this.high<<O|this.low>>>q,this.low<<O|this.high>>>q,this.unsigned)):(q-=32,O=32-q,m(this.low<<O|this.high>>>q,this.high<<O|this.low>>>q,this.unsigned))},E.rotr=E.rotateRight,E.toSigned=function(){return this.unsigned?m(this.low,this.high,!1):this},E.toUnsigned=function(){return this.unsigned?this:m(this.low,this.high,!0)},E.toBytes=function(q){return q?this.toBytesLE():this.toBytesBE()},E.toBytesLE=function(){var q=this.high,O=this.low;return[O&255,O>>>8&255,O>>>16&255,O>>>24,q&255,q>>>8&255,q>>>16&255,q>>>24]},E.toBytesBE=function(){var q=this.high,O=this.low;return[q>>>24,q>>>16&255,q>>>8&255,q&255,O>>>24,O>>>16&255,O>>>8&255,O&255]},a.fromBytes=function(q,O,D){return D?a.fromBytesLE(q,O):a.fromBytesBE(q,O)},a.fromBytesLE=function(q,O){return new a(q[0]|q[1]<<8|q[2]<<16|q[3]<<24,q[4]|q[5]<<8|q[6]<<16|q[7]<<24,O)},a.fromBytesBE=function(q,O){return new a(q[4]<<24|q[5]<<16|q[6]<<8|q[7],q[0]<<24|q[1]<<16|q[2]<<8|q[3],O)},typeof BigInt=="function"&&(a.fromBigInt=function(q,O){var D=Number(BigInt.asIntN(32,q)),L=Number(BigInt.asIntN(32,q>>BigInt(32)));return m(D,L,O)},a.fromValue=function(q,O){return typeof q=="bigint"?a.fromBigInt(q,O):u(q,O)},E.toBigInt=function(){var q=BigInt(this.low>>>0),O=BigInt(this.unsigned?this.high>>>0:this.high);return O<<BigInt(32)|q});var gt=p.default=a})});var re=K(vs=>{"use strict";var C=vs;C.asPromise=$l();C.base64=xl();C.EventEmitter=jl();C.float=Ml();C.utf8=Ul();C.pool=Hl();C.LongBits=Vl();function Ql(p){return p==="__proto__"||p==="prototype"||p==="constructor"}C.isUnsafeProperty=Ql;C.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);C.global=C.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||vs;C.emptyArray=Object.freeze?Object.freeze([]):[];C.emptyObject=Object.freeze?Object.freeze({}):{};C.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};C.isString=function(e){return typeof e=="string"||e instanceof String};C.isObject=function(e){return e&&typeof e=="object"};C.isset=C.isSet=function(e,a){var r=e[a];return r!=null&&Object.hasOwnProperty.call(e,a)?typeof r!="object"||(Array.isArray(r)?r.length:Object.keys(r).length)>0:!1};C.Buffer=(function(){try{var p=C.global.Buffer;return p.prototype.utf8Write?p:null}catch{return null}})();C._Buffer_from=null;C._Buffer_allocUnsafe=null;C.newBuffer=function(e){return typeof e=="number"?C.Buffer?C._Buffer_allocUnsafe(e):new C.Array(e):C.Buffer?C._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};C.Array=typeof Uint8Array<"u"?Uint8Array:Array;C.Long=C.global.dcodeIO&&C.global.dcodeIO.Long||C.global.Long||(function(){try{var p=Jl();return p&&p.isLong?p:null}catch{return null}})();C.key2Re=/^true|false|0|1$/;C.key32Re=/^-?(?:0|[1-9][0-9]*)$/;C.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;C.longToHash=function(e){return e?C.LongBits.from(e).toHash():C.LongBits.zeroHash};C.longFromHash=function(e,a){var r=C.LongBits.fromHash(e);return C.Long?C.Long.fromBits(r.lo,r.hi,a):r.toNumber(!!a)};function Xl(p){var e=typeof arguments[arguments.length-1]=="boolean",a=e?arguments.length-1:arguments.length;e=e&&arguments[arguments.length-1];for(var r=1;r<a;++r){var i=arguments[r];if(i)for(var s=Object.keys(i),o=0;o<s.length;++o)!Ql(s[o])&&(p[s[o]]===void 0||!e)&&(p[s[o]]=i[s[o]])}return p}C.merge=Xl;C.nestingLimit=32;C.recursionLimit=100;C.makeProp=function(e,a){Object.defineProperty(e,a,{enumerable:!0,configurable:!0,writable:!0})};C.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function Zl(p){function e(a,r){if(!(this instanceof e))return new e(a,r);Object.defineProperty(this,"message",{get:function(){return a}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:new Error().stack||""}),r&&Xl(this,r)}return e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return p},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),e}C.newError=Zl;C.ProtocolError=Zl("ProtocolError");C.oneOfGetter=function(e){for(var a={},r=0;r<e.length;++r)a[e[r]]=1;return function(){for(var i=Object.keys(this),s=i.length-1;s>-1;--s)if(a[i[s]]===1&&this[i[s]]!==void 0&&this[i[s]]!==null)return i[s]}};C.oneOfSetter=function(e){return function(a){for(var r=0;r<e.length;++r)e[r]!==a&&delete this[e[r]]}};C.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};C._configure=function(){var p=C.Buffer;if(!p){C._Buffer_from=C._Buffer_allocUnsafe=null;return}C._Buffer_from=p.from!==Uint8Array.from&&p.from||function(a,r){return new p(a,r)},C._Buffer_allocUnsafe=p.allocUnsafe||function(a){return new p(a)}}});var ks=K((lI,ac)=>{"use strict";ac.exports=Z;var Tt=re(),_s,kr=Tt.LongBits,Yl=Tt.base64,tc=Tt.utf8;function ua(p,e,a){this.fn=p,this.len=e,this.next=void 0,this.val=a}function Ss(){}function u0(p){this.head=p.head,this.tail=p.tail,this.len=p.len,this.next=p.states}function Z(){this.len=0,this.head=new ua(Ss,0,0),this.tail=this.head,this.states=null}var ec=function(){return Tt.Buffer?function(){return(Z.create=function(){return new _s})()}:function(){return new Z}};Z.create=ec();Z.alloc=function(e){return new Tt.Array(e)};Tt.Array!==Array&&(Z.alloc=Tt.pool(Z.alloc,Tt.Array.prototype.subarray));Z.prototype._push=function(e,a,r){return this.tail=this.tail.next=new ua(e,a,r),this.len+=a,this};function Is(p,e,a){e[a]=p&255}function y0(p,e,a){for(;p>127;)e[a++]=p&127|128,p>>>=7;e[a]=p}function ws(p,e){this.len=p,this.next=void 0,this.val=e}ws.prototype=Object.create(ua.prototype);ws.prototype.fn=y0;Z.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new ws((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};Z.prototype.int32=function(e){return(e|=0)<0?this._push(Ps,10,kr.fromNumber(e)):this.uint32(e)};Z.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function Ps(p,e,a){for(var r=p.lo,i=p.hi;i;)e[a++]=r&127|128,r=(r>>>7|i<<25)>>>0,i>>>=7;for(;r>127;)e[a++]=r&127|128,r=r>>>7;e[a++]=r}Z.prototype.uint64=function(e){var a=kr.from(e);return this._push(Ps,a.length(),a)};Z.prototype.int64=Z.prototype.uint64;Z.prototype.sint64=function(e){var a=kr.from(e).zzEncode();return this._push(Ps,a.length(),a)};Z.prototype.bool=function(e){return this._push(Is,1,e?1:0)};function bs(p,e,a){e[a]=p&255,e[a+1]=p>>>8&255,e[a+2]=p>>>16&255,e[a+3]=p>>>24}Z.prototype.fixed32=function(e){return this._push(bs,4,e>>>0)};Z.prototype.sfixed32=Z.prototype.fixed32;Z.prototype.fixed64=function(e){var a=kr.from(e);return this._push(bs,4,a.lo)._push(bs,4,a.hi)};Z.prototype.sfixed64=Z.prototype.fixed64;Z.prototype.float=function(e){return this._push(Tt.float.writeFloatLE,4,e)};Z.prototype.double=function(e){return this._push(Tt.float.writeDoubleLE,8,e)};var f0=Tt.Array.prototype.set?function(e,a,r){a.set(e,r)}:function(e,a,r){for(var i=0;i<e.length;++i)a[r+i]=e[i]};Z.prototype.bytes=function(e){var a=e.length>>>0;if(!a)return this._push(Is,1,0);if(Tt.isString(e)){var r=Z.alloc(a=Yl.length(e));Yl.decode(e,r,0),e=r}return this.uint32(a)._push(f0,a,e)};Z.prototype.string=function(e){var a=tc.length(e);return a?this.uint32(a)._push(tc.write,a,e):this._push(Is,1,0)};Z.prototype.fork=function(){return this.states=new u0(this),this.head=this.tail=new ua(Ss,0,0),this.len=0,this};Z.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new ua(Ss,0,0),this.len=0),this};Z.prototype.ldelim=function(){var e=this.head,a=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=a,this.len+=r),this};Z.prototype.finish=function(){for(var e=this.head.next,a=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,a,r),r+=e.len,e=e.next;return a};Z._configure=function(p){_s=p,Z.create=ec(),_s._configure()}});var sc=K((cI,ic)=>{"use strict";ic.exports=Lt;var rc=ks();(Lt.prototype=Object.create(rc.prototype)).constructor=Lt;var ie=re();function Lt(){rc.call(this)}Lt._configure=function(){Lt.alloc=ie._Buffer_allocUnsafe,Lt.writeBytesBuffer=ie.Buffer&&ie.Buffer.prototype instanceof Uint8Array&&ie.Buffer.prototype.set.name==="set"?function(e,a,r){a.set(e,r)}:function(e,a,r){if(e.copy)e.copy(a,r,0,e.length);else for(var i=0;i<e.length;)a[r++]=e[i++]}};Lt.prototype.bytes=function(e){ie.isString(e)&&(e=ie._Buffer_from(e,"base64"));var a=e.length>>>0;return this.uint32(a),a&&this._push(Lt.writeBytesBuffer,a,e),this};function g0(p,e,a){p.length<40?ie.utf8.write(p,e,a):e.utf8Write?e.utf8Write(p,a):e.write(p,a)}Lt.prototype.string=function(e){var a=ie.Buffer.byteLength(e);return this.uint32(a),a&&this._push(g0,a,e),this};Lt._configure()});var Fs=K((pI,lc)=>{"use strict";lc.exports=nt;var qt=re(),qs,hc=qt.LongBits,v0=qt.utf8;function xt(p,e){return RangeError("index out of range: "+p.pos+" + "+(e||1)+" > "+p.len)}function nt(p){this.buf=p,this.pos=0,this.len=p.length}var oc=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new nt(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new nt(e);throw Error("illegal buffer")},dc=function(){return qt.Buffer?function(a){return(nt.create=function(i){return qt.Buffer.isBuffer(i)?new qs(i):oc(i)})(a)}:oc};nt.create=dc();nt.prototype._slice=qt.Array.prototype.subarray||qt.Array.prototype.slice;nt.prototype.uint32=(function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,xt(this,10);return e}})();nt.prototype.int32=function(){return this.uint32()|0};nt.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function Ts(){var p=new hc(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(p.lo=(p.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return p;if(p.lo=(p.lo|(this.buf[this.pos]&127)<<28)>>>0,p.hi=(p.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return p;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw xt(this);if(p.lo=(p.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return p}return p.lo=(p.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,p}if(this.len-this.pos>4){for(;e<5;++e)if(p.hi=(p.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return p}else for(;e<5;++e){if(this.pos>=this.len)throw xt(this);if(p.hi=(p.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return p}throw Error("invalid varint encoding")}nt.prototype.bool=function(){return this.uint32()!==0};function Tr(p,e){return(p[e-4]|p[e-3]<<8|p[e-2]<<16|p[e-1]<<24)>>>0}nt.prototype.fixed32=function(){if(this.pos+4>this.len)throw xt(this,4);return Tr(this.buf,this.pos+=4)};nt.prototype.sfixed32=function(){if(this.pos+4>this.len)throw xt(this,4);return Tr(this.buf,this.pos+=4)|0};function nc(){if(this.pos+8>this.len)throw xt(this,8);return new hc(Tr(this.buf,this.pos+=4),Tr(this.buf,this.pos+=4))}nt.prototype.float=function(){if(this.pos+4>this.len)throw xt(this,4);var e=qt.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};nt.prototype.double=function(){if(this.pos+8>this.len)throw xt(this,4);var e=qt.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};nt.prototype.bytes=function(){var e=this.uint32(),a=this.pos,r=this.pos+e;if(r>this.len)throw xt(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(a,r);if(a===r){var i=qt.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,a,r)};nt.prototype.string=function(){var e=this.bytes();return v0.read(e,0,e.length)};nt.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw xt(this,e);this.pos+=e}else do if(this.pos>=this.len)throw xt(this);while(this.buf[this.pos++]&128);return this};nt.recursionLimit=qt.recursionLimit;nt.prototype.skipType=function(p,e){if(e===void 0&&(e=0),e>nt.recursionLimit)throw Error("maximum nesting depth exceeded");switch(p){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(p=this.uint32()&7)!==4;)this.skipType(p,e+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+p+" at offset "+this.pos)}return this};nt._configure=function(p){qs=p,nt.create=dc(),qs._configure();var e=qt.Long?"toLong":"toNumber";qt.merge(nt.prototype,{int64:function(){return Ts.call(this)[e](!1)},uint64:function(){return Ts.call(this)[e](!0)},sint64:function(){return Ts.call(this).zzDecode()[e](!1)},fixed64:function(){return nc.call(this)[e](!0)},sfixed64:function(){return nc.call(this)[e](!1)}})}});var uc=K((mI,mc)=>{"use strict";mc.exports=Se;var pc=Fs();(Se.prototype=Object.create(pc.prototype)).constructor=Se;var cc=re();function Se(p){pc.call(this,p)}Se._configure=function(){cc.Buffer&&(Se.prototype._slice=cc.Buffer.prototype.slice)};Se.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};Se._configure()});var fc=K((uI,yc)=>{"use strict";yc.exports=ya;var $s=re();(ya.prototype=Object.create($s.EventEmitter.prototype)).constructor=ya;function ya(p,e,a){if(typeof p!="function")throw TypeError("rpcImpl must be a function");$s.EventEmitter.call(this),this.rpcImpl=p,this.requestDelimited=!!e,this.responseDelimited=!!a}ya.prototype.rpcCall=function p(e,a,r,i,s){if(!i)throw TypeError("request must be specified");var o=this;if(!s)return $s.asPromise(p,o,e,a,r,i);if(!o.rpcImpl){setTimeout(function(){s(Error("already ended"))},0);return}try{return o.rpcImpl(e,a[o.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(g,m){if(g)return o.emit("error",g,e),s(g);if(m===null){o.end(!0);return}if(!(m instanceof r))try{m=r[o.responseDelimited?"decodeDelimited":"decode"](m)}catch(y){return o.emit("error",y,e),s(y)}return o.emit("data",m,e),s(null,m)})}catch(t){o.emit("error",t,e),setTimeout(function(){s(t)},0);return}};ya.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var vc=K(gc=>{"use strict";var _0=gc;_0.Service=fc()});var bc=K((fI,_c)=>{"use strict";_c.exports=Object.create(null)});var wc=K(Ic=>{"use strict";var It=Ic;It.build="minimal";It.Writer=ks();It.BufferWriter=sc();It.Reader=Fs();It.BufferReader=uc();It.util=re();It.rpc=vc();It.roots=bc();It.configure=Sc;function Sc(){It.util._configure(),It.Writer._configure(It.BufferWriter),It.Reader._configure(It.BufferReader)}Sc()});var kc=K((vI,Pc)=>{"use strict";Pc.exports=wc()});var DS=K(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});var gn=gh(),b0=lt("fs"),S0=lt("path"),I0=lt("crypto"),h=ld(),w0=pd(),P0=Jd(),k0=Pl(),T0=lt("querystring"),q0=ql(),F0=lt("zlib"),$0=lt("http"),z0=lt("https"),E0=lt("dns"),Hc=lt("net");function Gt(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var O0=Gt(gn),H=Gt(b0),ba=Gt(S0),Or=Gt(I0),w=Gt(w0),P=Gt(P0),x0=Gt(k0),G0=Gt(T0),qr=Gt(q0),j0=Gt($0),R0=Gt(z0);function k(p,e){var a={};for(var r in p)Object.prototype.hasOwnProperty.call(p,r)&&e.indexOf(r)<0&&(a[r]=p[r]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(p);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(p,r[i])&&(a[r[i]]=p[r[i]]);return a}function n(p,e,a,r){function i(s){return s instanceof a?s:new a(function(o){o(s)})}return new(a||(a=Promise))(function(s,o){function t(y){try{m(r.next(y))}catch(c){o(c)}}function g(y){try{m(r.throw(y))}catch(c){o(c)}}function m(y){y.done?s(y.value):i(y.value).then(t,g)}m((r=r.apply(p,e||[])).next())})}function Tc(p){var e=typeof Symbol=="function"&&Symbol.iterator,a=e&&p[e],r=0;if(a)return a.call(p);if(p&&typeof p.length=="number")return{next:function(){return p&&r>=p.length&&(p=void 0),{value:p&&p[r++],done:!p}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(p){return this instanceof v?(this.v=p,this):new v(p)}function T(p,e,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=a.apply(p,e||[]),i,s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(u){r[u]&&(i[u]=function(f){return new Promise(function(_,S){s.push([u,f,_,S])>1||t(u,f)})})}function t(u,f){try{g(r[u](f))}catch(_){c(s[0][3],_)}}function g(u){u.value instanceof v?Promise.resolve(u.value.v).then(m,y):c(s[0][2],u)}function m(u){t("next",u)}function y(u){t("throw",u)}function c(u,f){u(f),s.shift(),s.length&&t(s[0][0],s[0][1])}}function qc(p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=p[Symbol.asyncIterator],a;return e?e.call(p):(p=typeof Tc=="function"?Tc(p):p[Symbol.iterator](),a={},r("next"),r("throw"),r("return"),a[Symbol.asyncIterator]=function(){return this},a);function r(s){a[s]=p[s]&&function(o){return new Promise(function(t,g){o=p[s](o),i(t,g,o.done,o.value)})}}function i(s,o,t,g){Promise.resolve(g).then(function(m){s({value:m,done:t})},o)}}var Fr;function A0(){if(Fr!==void 0)return Fr;let p=[ba.default.resolve(__dirname,"..","package.json"),ba.default.resolve(__dirname,"..","..","package.json")];for(let e of p)try{let a=JSON.parse(H.default.readFileSync(e,"utf-8"));if(a.name==="@larksuiteoapi/node-sdk"&&typeof a.version=="string")return Fr=a.version,a.version}catch{}return Fr="unknown","unknown"}function Fc(p){return p.replace(/[^a-zA-Z0-9._-]/g,"_").slice(0,64)}function vn(p,e){let a=`oapi-node-sdk/${A0()}`;if(p){let r=Fc(p);r&&(a+=` source/${r}`)}if(e?.extraTags)for(let r of e.extraTags){let i=Fc(r);i&&(a+=` ${i}`)}return a}var We=O0.default.create(),C0=vn();We.interceptors.request.use(p=>(p.headers&&!p.headers["User-Agent"]&&(p.headers["User-Agent"]=C0),p),void 0,{synchronous:!0});We.interceptors.response.use(p=>p.config.$return_headers?{data:p.data,headers:p.headers}:p.data);j.AppType=void 0;(function(p){p[p.SelfBuild=0]="SelfBuild",p[p.ISV=1]="ISV"})(j.AppType||(j.AppType={}));j.Domain=void 0;(function(p){p[p.Feishu=0]="Feishu",p[p.Lark=1]="Lark"})(j.Domain||(j.Domain={}));j.LoggerLevel=void 0;(function(p){p[p.fatal=0]="fatal",p[p.error=1]="error",p[p.warn=2]="warn",p[p.info=3]="info",p[p.debug=4]="debug",p[p.trace=5]="trace"})(j.LoggerLevel||(j.LoggerLevel={}));var xr=Symbol("event-type"),Gr=Symbol("tenant-key"),Pa=Symbol("app-ticket"),Es=Symbol("tenant-access-token"),Kc=Symbol("with-helpdesk-authorization"),Vc=Symbol("with-user-access-token"),D0=Symbol("user-access-token"),$c=Symbol("aily-session-record"),B0=p=>Buffer.from(p).toString("base64"),jr=class{constructor(){this.values=new Map}getCacheKey(e,a){return a?`${a}/${e.toString()}`:e}get(e,a){return n(this,void 0,void 0,function*(){let r=this.getCacheKey(e,a?.namespace),i=this.values.get(r);if(i){let{value:s,expiredTime:o}=i;if(!o||o-new Date().getTime()>0)return s}})}set(e,a,r,i){return n(this,void 0,void 0,function*(){let s=this.getCacheKey(e,i?.namespace);return this.values.set(s,{value:a,expiredTime:r}),!0})}},Ta=new jr,ka=class{constructor(e){let a=Or.default.createHash("sha256");a.update(e),this.key=a.digest()}decrypt(e){let a=Buffer.from(e,"base64"),r=Or.default.createDecipheriv("aes-256-cbc",this.key,a.slice(0,16)),i=r.update(a.slice(16).toString("hex"),"hex","utf8");return i+=r.final("utf8"),i}},Jc=p=>{switch(p){case j.Domain.Feishu:return"https://open.feishu.cn";case j.Domain.Lark:return"https://open.larksuite.com";default:return p}},d=(p,e={})=>p.replace(/:([^/]+)/g,(a,r)=>{if(e[r]!==void 0)return e[r];throw new Error(`request miss ${r} path argument`)}),Me=(p,e)=>n(void 0,void 0,void 0,function*(){(typeof p=="function"?p():p)&&(yield e())}),L0=p=>p?p.replace(/^\//,""):"",$r=(p,e=[])=>{let a={};return p&&e.forEach(r=>{Object.prototype.hasOwnProperty.call(p,r)&&(a[r]=p[r])}),a},l=p=>{var e;if(p instanceof gn.AxiosError){let{message:a,response:r,request:i,config:s}=$r(p,["message","response","request","config"]),t=[{message:a,config:$r(s,["data","url","params","method"]),request:$r(i,["protocol","host","path","method"]),response:$r(r,["data","status","statusText"])}],g=(e=p?.response)===null||e===void 0?void 0:e.data;return g&&t.push(Object.assign(Object.assign({},g),g.error?g.error:{})),t}return[p]},Os=class{constructor(){this.acs={accessRecordAccessPhoto:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/access_records/:access_record_id/access_photo`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},accessRecord:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/access_records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/access_records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},device:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/devices`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ruleExternal:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/rule_external`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/rule_external`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deviceBind:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/rule_external`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userFace:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,o),method:"PUT",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},user:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users/:user_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users/:user_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},visitor:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/visitors`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{accessRecordAccessPhoto:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/access_records/:access_record_id/access_photo`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},accessRecord:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/access_records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/access_records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},device:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/devices`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ruleExternal:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/rule_external`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/rule_external`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deviceBind:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/rule_external/device_bind`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/rule_external`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userFace:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users/:user_id/face`,o),method:"PUT",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},user:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users/:user_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/users/:user_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},visitor:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/visitors`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/acs/v1/visitors/:visitor_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},xs=class extends Os{constructor(){super(...arguments),this.admin={adminDeptStat:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/admin_dept_stats`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},adminUserStat:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/admin_user_stats`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},auditInfo:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/audit_infos`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/audit_infos`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},badge:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},badgeGrant:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},badgeImage:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badge_images`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},password:{reset:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/password/reset`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{adminDeptStat:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/admin_dept_stats`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},adminUserStat:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/admin_user_stats`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},auditInfo:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/audit_infos`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/audit_infos`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},badge:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},badgeGrant:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badges/:badge_id/grants/:grant_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},badgeImage:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/badge_images`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},password:{reset:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/admin/v1/password/reset`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Gs=class extends xs{constructor(){super(...arguments),this.aily={v1:{ailySessionAilyMessage:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages/:aily_message_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/messages`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ailySession:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ailySessionRun:{cancel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id/cancel`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs/:run_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/sessions/:aily_session_id/runs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appDataAsset:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets/:data_asset_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets/:data_asset_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uploadFile:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_assets/upload_file`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},appDataAssetTag:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_asset_tags`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/data_asset_tags`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appKnowledge:{ask:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/knowledges/ask`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appSkill:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills/:skill_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),start:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/aily/v1/apps/:app_id/skills/:skill_id/start`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},js=class extends Gs{constructor(){super(...arguments),this.apaas={v1:{app:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/apps`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/apps`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationAuditLog:{auditLogList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/audit_log/audit_log_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),dataChangeLogDetail:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/audit_log/data_change_log_detail`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),dataChangeLogsList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/audit_log/data_change_logs_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/audit_log`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationEnvironmentVariable:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/environment_variables/:environment_variable_api_name`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/environment_variables/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationFlow:{execute:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/flows/:flow_id/execute`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationFunction:{invoke:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/functions/:function_api_name/invoke`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationObject:{oqlQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/oql_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationObjectRecord:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/:id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/:id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/objects/:object_api_name/records/:id/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationRecordPermissionMember:{batchCreateAuthorization:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/record_permissions/:record_permission_api_name/member/batch_create_authorization`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchRemoveAuthorization:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/record_permissions/:record_permission_api_name/member/batch_remove_authorization`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationRoleMember:{batchCreateAuthorization:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/roles/:role_api_name/member/batch_create_authorization`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchRemoveAuthorization:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/roles/:role_api_name/member/batch_remove_authorization`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/applications/:namespace/roles/:role_api_name/member`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},approvalInstance:{cancel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/approval_instances/:approval_instance_id/cancel`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},approvalTask:{addAssignee:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/approval_tasks/:approval_task_id/add_assignee`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),agree:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/approval_tasks/:approval_task_id/agree`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reject:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/approval_tasks/:approval_task_id/reject`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transfer:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/approval_tasks/:approval_task_id/transfer`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},seatActivity:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/seat_activities`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/seat_activities`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},seatAssignment:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/seat_assignments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/seat_assignments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userTask:{cc:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/cc`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),chatGroup:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/chat_group`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),expediting:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/expediting`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/user_task/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),rollback:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/rollback`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),rollbackPoints:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/user_tasks/:task_id/rollback_points`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workspaceEnum:{enumGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/enums/:enum_name`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/enums`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workspace:{sqlCommands:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/sql_commands`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workspaceTable:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),recordsBatchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records_batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),recordsDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),recordsGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),recordsPatch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),recordsPost:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name/records`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),tableGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/tables/:table_name`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workspaceView:{viewsGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/apaas/v1/workspaces/:workspace_id/views/:view_name/records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Rs=class extends js{constructor(){super(...arguments),this.application={appBadge:{set:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/app_badge/set`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appRecommendRule:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/app_recommend_rules`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/app_recommend_rules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationAppUsage:{departmentOverview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),messagePushOverview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/message_push_overview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),overview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationAppVersion:{contactsRangeSuggest:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id/contacts_range_suggest`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationCollaborators:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationContactsRange:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},application:{contactsRangeConfiguration:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range_configuration`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),underauditlistWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/underauditlist`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),underauditlist:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/underauditlist`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationFeedback:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks/:feedback_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationManagement:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/management`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationOwner:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/owner`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationVisibility:{checkWhiteBlackList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility/check_white_black_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},scope:{apply:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/scopes/apply`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/scopes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v6:{appBadge:{set:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/app_badge/set`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appRecommendRule:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/app_recommend_rules`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/app_recommend_rules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationAppUsage:{departmentOverview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/department_overview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),messagePushOverview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/message_push_overview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),overview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_usage/overview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationAppVersion:{contactsRangeSuggest:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id/contacts_range_suggest`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/app_versions/:version_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationCollaborators:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/collaborators`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationContactsRange:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},application:{contactsRangeConfiguration:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/contacts_range_configuration`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),underauditlistWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/underauditlist`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),underauditlist:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/underauditlist`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationFeedback:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/feedbacks/:feedback_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationManagement:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/management`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationOwner:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/owner`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationVisibility:{checkWhiteBlackList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility/check_white_black_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/applications/:app_id/visibility`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},scope:{apply:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/scopes/apply`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/application/v6/scopes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},As=class extends Rs{constructor(){super(...arguments),this.approval={approval:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/approvals`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/approvals/:approval_code`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/unsubscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},district:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/districts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/districts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/districts/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/districts/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalApproval:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_approvals`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalInstance:{check:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_instances/check`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_instances`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalTask:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},instance:{addSign:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/add_sign`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),cancel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/cancel`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),cc:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/cc`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),preview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/preview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchCc:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/search_cc`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),specifiedRollback:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/specified_rollback`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},instanceComment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/:comment_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),remove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},task:{approve:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/approve`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/query`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reject:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/reject`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),resubmit:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/resubmit`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transfer:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/transfer`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v4:{approval:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/approvals`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/approvals/:approval_code`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/approvals/:approval_code/unsubscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},district:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/districts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/districts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/districts/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/districts/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalApproval:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_approvals`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_approvals/:approval_code`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalInstance:{check:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_instances/check`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_instances`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalTask:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/external_tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},instance:{addSign:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/add_sign`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),cancel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/cancel`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),cc:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/cc`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),preview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/preview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchCc:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/search_cc`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),specifiedRollback:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/specified_rollback`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},instanceComment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/:comment_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),remove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/instances/:instance_id/comments/remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},task:{approve:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/approve`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/query`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reject:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/reject`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),resubmit:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/resubmit`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transfer:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/approval/v4/tasks/transfer`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Cs=class extends As{constructor(){super(...arguments),this.attendance={approvalInfo:{process:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/approval_infos/process`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},archiveRule:{delReport:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule/del_report`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uploadReport:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule/upload_report`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),userStatsFieldsQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule/user_stats_fields_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/files/:file_id/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/files/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},group:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listUser:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},leaveAccrualRecord:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/leave_accrual_record/:leave_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},leaveEmployExpireRecord:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/leave_employ_expire_records/:leave_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},shift:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userApproval:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_approvals`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_approvals/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userDailyShift:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchCreateTemp:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userFlow:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_flows/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_flows/batch_del`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_flows/:user_flow_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_flows/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userSetting:{modify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_settings/modify`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_settings/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userStatsData:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_stats_datas/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userStatsField:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_stats_fields/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userStatsView:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_stats_views/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_stats_views/:user_stats_view_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userTask:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_tasks/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userTaskRemedy:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_task_remedys`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryUserAllowedRemedys:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query_user_allowed_remedys`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{approvalInfo:{process:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/approval_infos/process`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},archiveRule:{delReport:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule/del_report`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uploadReport:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule/upload_report`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),userStatsFieldsQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/archive_rule/user_stats_fields_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/files/:file_id/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/files/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},group:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups/:group_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listUser:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups/:group_id/list_user`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/groups/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},leaveAccrualRecord:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/leave_accrual_record/:leave_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},leaveEmployExpireRecord:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/leave_employ_expire_records/:leave_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},shift:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts/:shift_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/shifts/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userApproval:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_approvals`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_approvals/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userDailyShift:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchCreateTemp:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/batch_create_temp`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_daily_shifts/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userFlow:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_flows/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_flows/batch_del`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_flows/:user_flow_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_flows/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userSetting:{modify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_settings/modify`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_settings/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userStatsData:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_stats_datas/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userStatsField:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_stats_fields/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userStatsView:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_stats_views/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_stats_views/:user_stats_view_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userTask:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_tasks/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userTaskRemedy:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_task_remedys`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryUserAllowedRemedys:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/attendance/v1/user_task_remedys/query_user_allowed_remedys`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Ds=class extends Cs{constructor(){super(...arguments),this.auth={appAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/app_access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),internal:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/app_access_token/internal`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTicket:{resend:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/app_ticket/resend`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},tenantAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/tenant_access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),internal:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/tenant_access_token/internal`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v3:{appAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/app_access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),internal:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/app_access_token/internal`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTicket:{resend:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/app_ticket/resend`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},tenantAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/tenant_access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),internal:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/auth/v3/tenant_access_token/internal`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Bs=class extends Ds{constructor(){super(...arguments),this.authen={accessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},oidcAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/oidc/access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},oidcRefreshAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/oidc/refresh_access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},refreshAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/refresh_access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userInfo:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/user_info`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{accessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},oidcAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/oidc/access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},oidcRefreshAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/oidc/refresh_access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},refreshAccessToken:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/refresh_access_token`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userInfo:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/authen/v1/user_info`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Ls=class extends Bs{constructor(){super(...arguments),this.aweme_ecosystem={}}},Ms=class extends Ls{constructor(){super(...arguments),this.baike={classification:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/classifications`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/classifications`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},draft:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/drafts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/drafts/:draft_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},entity:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),extract:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/extract`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),highlight:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/highlight`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),match:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/match`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/files/:file_token/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/files/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},v1:{classification:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/classifications`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/classifications`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},draft:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/drafts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/drafts/:draft_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},entity:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),extract:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/extract`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),highlight:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/highlight`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),match:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/match`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/entities/:entity_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/files/:file_token/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/baike/v1/files/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})}}}}},Ws=class extends Ms{constructor(){super(...arguments),this.base={v2:{appRole:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/base/v2/apps/:app_token/roles`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/base/v2/apps/:app_token/roles`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/base/v2/apps/:app_token/roles`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/base/v2/apps/:app_token/roles/:role_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Us=class extends Ws{constructor(){super(...arguments),this.bitable={app:{copy:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/copy`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appDashboard:{copy:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards/:block_id/copy`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appRole:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appRoleMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTable:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableField:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableFormField:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableForm:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableRecord:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableView:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appWorkflow:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{app:{copy:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/copy`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appDashboard:{copy:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards/:block_id/copy`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/dashboards`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appRole:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appRoleMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/roles/:role_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTable:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableField:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/fields/:field_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableFormField:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id/fields/:field_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableForm:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/forms/:form_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableRecord:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/batch_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/records/:record_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appTableView:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/tables/:table_id/views/:view_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appWorkflow:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/bitable/v1/apps/:app_token/workflows/:workflow_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Ns=class extends Us{constructor(){super(...arguments),this.block={entity:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/block/v2/entities`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/block/v2/entities/:block_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},message:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/block/v2/message`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v2:{entity:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/block/v2/entities`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/block/v2/entities/:block_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},message:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/block/v2/message`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Hs=class extends Ns{constructor(){super(...arguments),this.board={v1:{whiteboard:{downloadAsImage:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/download_as_image`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),theme:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/theme`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateTheme:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/update_theme`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},whiteboardNode:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/nodes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createPlantuml:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/nodes/plantuml`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/board/v1/whiteboards/:whiteboard_id/nodes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Ks=class extends Hs{constructor(){super(...arguments),this.calendar={calendarAcl:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/:acl_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/subscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/unsubscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendar:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mget:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/mget`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),primary:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/primary`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),primarys:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/primarys`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/subscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/unsubscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/unsubscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEventAttendee:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEventAttendeeChatMember:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEvent:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),instanceView:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),instances:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reply:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/subscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/unsubscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEventMeetingChat:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEventMeetingMinute:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_minute`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},exchangeBinding:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/exchange_bindings`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},freebusy:{batch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/freebusy/batch`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/freebusy/list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},setting:{generateCaldavConf:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/settings/generate_caldav_conf`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},timeoffEvent:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/timeoff_events`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/timeoff_events/:timeoff_event_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v4:{calendarAcl:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/:acl_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/subscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/acls/unsubscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendar:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mget:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/mget`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),primary:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/primary`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),primarys:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/primarys`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/subscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/unsubscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/unsubscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEventAttendee:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEventAttendeeChatMember:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/attendees/:attendee_id/chat_members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEvent:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),instanceView:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/instance_view`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),instances:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/instances`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reply:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/reply`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/subscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/unsubscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEventMeetingChat:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_chat`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},calendarEventMeetingMinute:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/calendars/:calendar_id/events/:event_id/meeting_minute`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},exchangeBinding:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/exchange_bindings`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/exchange_bindings/:exchange_binding_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},freebusy:{batch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/freebusy/batch`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/freebusy/list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},setting:{generateCaldavConf:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/settings/generate_caldav_conf`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},timeoffEvent:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/timeoff_events`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/calendar/v4/timeoff_events/:timeoff_event_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Vs=class extends Ks{constructor(){super(...arguments),this.cardkit={v1:{card:{batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/batch_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),idConvert:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards/id_convert`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),settings:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/settings`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards/:card_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},cardElement:{content:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id/content`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/cardkit/v1/cards/:card_id/elements/:element_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Js=class extends Vs{constructor(){super(...arguments),this.comment_sdk={}}},Qs=class extends Js{constructor(){super(...arguments),this.compensation={v1:{archive:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/archives`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/archives/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},changeReason:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/change_reasons`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/change_reasons`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},indicator:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/indicators`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/indicators`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},item:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/items`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/items`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},itemCategory:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/item_categories`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/item_categories`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},lumpSumPayment:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchRemove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/batch_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryDetailWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryDetail:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/lump_sum_payment/query_detail`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},plan:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/plans`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/plans`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},recurringPayment:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/recurring_payment/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchRemove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/recurring_payment/batch_remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/recurring_payment/batch_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/recurring_payment/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/recurring_payment/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},socialArchive:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/social_archive/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},socialArchiveAdjustRecord:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/social_archive_adjust_record/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},socialInsurance:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/social_insurances`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},socialPlan:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/social_plans`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/social_plans`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/compensation/v1/social_plans/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Xs=class extends Qs{constructor(){super(...arguments),this.contact={customAttr:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/custom_attrs`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/custom_attrs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},department:{batch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/batch`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),childrenWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),children:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),parentWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/parent`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),parent:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/parent`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unbindDepartmentChat:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/unbind_department_chat`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateDepartmentId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id/update_department_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employeeTypeEnum:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},functionalRole:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},functionalRoleMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_delete`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/:member_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),scopes:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/scopes`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},group:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),memberBelong:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/member_belong`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),simplelistWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/simplelist`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),simplelist:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/simplelist`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},groupMember:{add:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/add`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchAdd:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_add`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchRemove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),remove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),simplelist:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/simplelist`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobFamily:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobLevel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobTitle:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_titles`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_titles`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},scope:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/scopes`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/scopes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},unit:{bindDepartment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/bind_department`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listDepartment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/list_department`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unbindDepartment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/unbind_department`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},user:{basicBatch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/basic_batch`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/batch`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchGetId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/batch_get_id`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),findByDepartmentWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/find_by_department`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),findByDepartment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/find_by_department`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),resurrect:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id/resurrect`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateUserId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workCity:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/work_cities`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/work_cities`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v3:{customAttr:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/custom_attrs`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/custom_attrs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},department:{batch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/batch`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),childrenWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),children:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id/children`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),parentWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/parent`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),parent:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/parent`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unbindDepartmentChat:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/unbind_department_chat`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateDepartmentId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/departments/:department_id/update_department_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employeeTypeEnum:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/employee_type_enums/:enum_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},functionalRole:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},functionalRoleMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/batch_delete`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/:member_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),scopes:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/functional_roles/:role_id/members/scopes`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},group:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),memberBelong:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/member_belong`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),simplelistWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/simplelist`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),simplelist:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/simplelist`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},groupMember:{add:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/add`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchAdd:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_add`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchRemove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/batch_remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),remove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),simplelist:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/group/:group_id/member/simplelist`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobFamily:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_families/:job_family_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobLevel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_levels/:job_level_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobTitle:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_titles/:job_title_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_titles`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/job_titles`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},scope:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/scopes`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/scopes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},unit:{bindDepartment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/bind_department`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listDepartment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/list_department`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/:unit_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unbindDepartment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/unit/unbind_department`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},user:{basicBatch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/basic_batch`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/batch`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchGetId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/batch_get_id`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),findByDepartmentWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/find_by_department`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),findByDepartment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/find_by_department`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),resurrect:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id/resurrect`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateUserId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/users/:user_id/update_user_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workCity:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/work_cities/:work_city_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/work_cities`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/contact/v3/work_cities`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Zs=class extends Xs{constructor(){super(...arguments),this.content_check={}}},Ys=class extends Zs{constructor(){super(...arguments),this.contract={}}},to=class extends Ys{constructor(){super(...arguments),this.corehr={assignedUser:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/assigned_users/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},authorization:{addRoleAssign:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/add_role_assign`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getByParam:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeRoleAssign:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/remove_role_assign`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateRoleAssign:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/update_role_assign`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},commonDataId:{convert:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},commonDataMetaData:{addEnumOption:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/add_enum_option`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),editEnumOption:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/edit_enum_option`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},company:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},compensationStandard:{match:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/compensation_standards/match`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},contract:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},countryRegion:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/country_regions/:country_region_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/country_regions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},currency:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/currencies/:currency_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/currencies`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},customField:{getByParam:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/custom_fields/get_by_param`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listObjectApiName:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/custom_fields/list_object_api_name`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/custom_fields/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},department:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employeeType:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/files/:id`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},job:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobChange:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_changes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobData:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobFamily:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobLevel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},leave:{calendarByScope:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),leaveBalances:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/leave_balances`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),leaveRequestHistory:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),leaveTypes:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/leave_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),workCalendar:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),workCalendarDate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar_date`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},leaveGrantingRecord:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leave_granting_records`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leave_granting_records/:leave_granting_record_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},location:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/locations`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/locations`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},nationalIdType:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offboarding:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/offboardings/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/offboardings/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/offboardings/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),submit:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/offboardings/submit`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},person:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},preHire:{delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/pre_hires`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processFormVariableData:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/processes/:process_id/form_variable_data`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},securityGroup:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/security_groups`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/security_groups/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},subdivision:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/subdivisions/:subdivision_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/subdivisions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},subregion:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/subregions/:subregion_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/subregions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},transferReason:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/transfer_reasons/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},transferType:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/transfer_types/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workingHoursType:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{assignedUser:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/assigned_users/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},authorization:{addRoleAssign:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/add_role_assign`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getByParam:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/get_by_param`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeRoleAssign:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/remove_role_assign`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateRoleAssign:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/authorizations/update_role_assign`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},commonDataId:{convert:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/common_data/id/convert`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},commonDataMetaData:{addEnumOption:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/add_enum_option`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),editEnumOption:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/common_data/meta_data/edit_enum_option`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},company:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/companies/:company_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},compensationStandard:{match:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/compensation_standards/match`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},contract:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/contracts/:contract_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},countryRegion:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/country_regions/:country_region_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/country_regions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},currency:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/currencies/:currency_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/currencies`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},customField:{getByParam:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/custom_fields/get_by_param`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listObjectApiName:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/custom_fields/list_object_api_name`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/custom_fields/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},department:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/departments/:department_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employeeType:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employee_types/:employee_type_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/employments/:employment_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/files/:id`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},job:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/jobs/:job_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobChange:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_changes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobData:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_datas/:job_data_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobFamily:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_families/:job_family_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobLevel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/job_levels/:job_level_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},leave:{calendarByScope:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/calendar_by_scope`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),leaveBalances:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/leave_balances`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),leaveRequestHistory:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/leave_request_history`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),leaveTypes:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/leave_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),workCalendar:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),workCalendarDate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leaves/work_calendar_date`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},leaveGrantingRecord:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leave_granting_records`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/leave_granting_records/:leave_granting_record_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},location:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/locations`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/locations/:location_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/locations`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},nationalIdType:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/national_id_types/:national_id_type_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offboarding:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/offboardings/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/offboardings/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/offboardings/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),submit:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/offboardings/submit`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},person:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons/:person_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/persons/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},preHire:{delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/pre_hires`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/pre_hires/:pre_hire_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processFormVariableData:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/processes/:process_id/form_variable_data`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},securityGroup:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/security_groups`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/security_groups/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},subdivision:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/subdivisions/:subdivision_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/subdivisions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},subregion:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/subregions/:subregion_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/subregions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},transferReason:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/transfer_reasons/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},transferType:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/transfer_types/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workingHoursType:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v1/working_hours_types/:working_hours_type_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}},v2:{approvalGroups:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/approval_groups/:process_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),openQueryDepartmentChangeListByIds:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_department_change_list_by_ids`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),openQueryJobChangeListByIds:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_job_change_list_by_ids`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),openQueryPositionChangeListByIds:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/approval_groups/open_query_position_change_list_by_ids`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},approver:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/approvers`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/approvers`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoBank:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/banks/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoBankBranch:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/bank_branchs/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoCity:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/cities/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoCountryRegion:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/country_regions/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoCountryRegionSubdivision:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/country_region_subdivisions/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoCurrency:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/currencies/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoDistrict:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/districts/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoLanguage:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/languages/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/languages/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoNationality:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/nationalities/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},basicInfoTimeZone:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/time_zones/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/basic_info/time_zones/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},bp:{getByDepartment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/bps/get_by_department`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/bps`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/bps`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},company:{active:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/companies/active`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/companies/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryMultiTimeline:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/companies/query_multi_timeline`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/companies/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/companies/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},contract:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/contracts/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/contracts/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},costAllocation:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_allocations/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createVersion:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_allocations/create_version`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeVersion:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_allocations/remove_version`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateVersion:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_allocations/update_version`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},costCenter:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryMultiTimeline:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/query_multi_timeline`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),tree:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/tree`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},costCenterVersion:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/cost_centers/:cost_center_id/versions/:version_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},customOrg:{active:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_orgs/active`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_orgs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deleteOrg:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_orgs/delete_org`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_orgs/:org_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_orgs/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_orgs/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_orgs/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateRule:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_orgs/update_rule`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},defaultCostCenter:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/default_cost_centers/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createVersion:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/default_cost_centers/create_version`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeVersion:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/default_cost_centers/remove_version`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateVersion:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/default_cost_centers/update_version`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},department:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/:department_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),parents:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/parents`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/:department_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryMultiTimeline:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/query_multi_timeline`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryOperationLogsWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryOperationLogs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/query_operation_logs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryTimeline:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/query_timeline`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),tree:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/departments/tree`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},draft:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/drafts/:draft_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employee:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employeeCustomOrg:{createEmpCustomOrg:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_org/create_emp_custom_org`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),del:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_org/del`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),editEmpCustomOrg:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_org/edit_emp_custom_org`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),employmentCustomOrgRecord:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_org/employment_custom_org_record`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),querybyid:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/custom_org/querybyid`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employeesAdditionalJob:{batchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs/batch`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),batch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs/batch`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs/:additional_job_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/additional_jobs/:additional_job_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employeesBp:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/bps/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employeesInternationalAssignment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/international_assignments/:international_assignment_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/international_assignments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/international_assignments/:international_assignment_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employeesJobData:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/job_datas/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/employees/job_datas/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},enum:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/enums/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},job:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/jobs/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/jobs/:job_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/jobs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryMultiTimeline:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/jobs/query_multi_timeline`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/jobs/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/jobs/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobChange:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_changes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),revoke:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_changes/:job_change_id/revoke`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_changes/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_changes/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobFamily:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_families/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryMultiTimeline:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_families/query_multi_timeline`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_families/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobGrade:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_grades`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_grades/:job_grade_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_grades/:job_grade_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_grades/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_grades/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobLevel:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_levels/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/job_levels/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},location:{active:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/locations/active`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/locations/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/locations/:location_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryMultiTimeline:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/locations/query_multi_timeline`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/locations/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},locationAddress:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/locations/:location_id/addresses`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/locations/:location_id/addresses/:address_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/locations/:location_id/addresses/:address_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offboarding:{edit:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/offboardings/edit`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),revoke:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/offboardings/revoke`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),submitV2:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/offboardings/submit_v2`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},pathway:{active:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pathways/active`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pathways/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pathways`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pathways/:pathway_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},person:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/persons`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/persons/:person_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},position:{active:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/positions/active`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/positions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delPosition:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/positions/del_position`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/positions/:position_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/positions/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryRecentChangeWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/positions/query_recent_change`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),queryRecentChange:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/positions/query_recent_change`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},preHire:{complete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id/complete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),restoreFlowInstance:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/restore_flow_instance`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transformOnboardingTask:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/transform_onboarding_task`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transitTask:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/:pre_hire_id/transit_task`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),withdrawOnboarding:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/pre_hires/withdraw_onboarding`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},probationAssessment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/probation/assessments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/probation/assessments/:assessment_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},probation:{edit:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/probation/edit`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),enableDisableAssessment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/probation/enable_disable_assessment`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/probation/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/probation/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),submit:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/probation/submit`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),withdraw:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/probation/withdraw`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processApprover:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/processes/:process_id/approvers/:approver_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processExtra:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/processes/:process_id/extra`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},process:{flowVariableData:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/processes/:process_id/flow_variable_data`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/processes/:process_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/processes`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/processes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processFormVariableData:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/processes/:process_id/form_variable_data`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processQueryFlowDataTemplate:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/query_flow_data_template`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processTransfer:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/processes/:process_id/transfer`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processRevoke:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/process_revoke/:process_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processStart:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/process_start`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},processWithdraw:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/process_withdraw/:process_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reportDetailRow:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchDelete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchSave:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/report_detail_row/batchSave`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},signatureFile:{download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_files/:signature_file_id/download`,o),method:"POST",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_files`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_files`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listByBizId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_files/list_by_biz_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_files/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_files/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),terminate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_files/terminate`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},signatureNode:{listByFileId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_nodes/list_by_file_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},signatureTemplate:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_templates/search`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},signatureTemplateInfoWithThumbnail:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_template_info_with_thumbnails`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/signature_template_info_with_thumbnails`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workforcePlan:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/workforce_plans`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/workforce_plans`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workforcePlanDetail:{batch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/workforce_plan_details/batch`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchV2:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/workforce_plan_details/batch_v2`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workforcePlanDetailRow:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchDelete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchSave:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/corehr/v2/workforce_plan_detail_row/batchSave`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},eo=class extends to{constructor(){super(...arguments),this.directory={v1:{collaborationRule:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/collaboration_rules`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/collaboration_rules/:collaboration_rule_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/collaboration_rules`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/collaboration_rules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/collaboration_rules/:collaboration_rule_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},collaborationTenant:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/collaboration_tenants`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/collaboration_tenants`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},collborationShareEntity:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/share_entities`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/share_entities`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},department:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/departments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/departments/:department_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),filter:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/departments/filter`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mget:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/departments/mget`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/departments/:department_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/departments/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employee:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/employees`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/employees/:employee_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),filter:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/employees/filter`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mget:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/employees/mget`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/employees/:employee_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),regular:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/employees/:employee_id/regular`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),resurrect:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/employees/:employee_id/resurrect`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/employees/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),toBeResigned:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/directory/v1/employees/:employee_id/to_be_resigned`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},ao=class extends eo{constructor(){super(...arguments),this.docs_tool={}}},ro=class extends ao{constructor(){super(...arguments),this.docs={v1:{content:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docs/v1/content`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},io=class extends ro{constructor(){super(...arguments),this.document_ai={v1:{bankCard:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/bank_card/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},businessCard:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/business_card/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},businessLicense:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/business_license/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},chinesePassport:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/chinese_passport/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},contract:{fieldExtraction:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/contract/field_extraction`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},drivingLicense:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/driving_license/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},foodManageLicense:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/food_manage_license/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},foodProduceLicense:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/food_produce_license/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},healthCertificate:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/health_certificate/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},hkmMainlandTravelPermit:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/hkm_mainland_travel_permit/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},idCard:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/id_card/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},resume:{parse:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/resume/parse`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},taxiInvoice:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/taxi_invoice/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},trainInvoice:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/train_invoice/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},twMainlandTravelPermit:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/tw_mainland_travel_permit/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},vatInvoice:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/vat_invoice/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},vehicleInvoice:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/vehicle_invoice/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},vehicleLicense:{recognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/document_ai/v1/vehicle_license/recognize`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})}}}}},so=class extends io{constructor(){super(...arguments),this.docx={chatAnnouncementBlock:{batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatAnnouncementBlockChildren:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatAnnouncement:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},documentBlock:{batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},documentBlockChildren:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},documentBlockDescendant:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/descendant`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},document:{convert:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/blocks/convert`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),rawContent:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/raw_content`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{chatAnnouncementBlock:{batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatAnnouncementBlockChildren:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement/blocks/:block_id/children`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatAnnouncement:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/chats/:chat_id/announcement`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},documentBlock:{batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},documentBlockChildren:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/children`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},documentBlockDescendant:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/blocks/:block_id/descendant`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},document:{convert:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/blocks/convert`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),rawContent:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/docx/v1/documents/:document_id/raw_content`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},oo=class extends so{constructor(){super(...arguments),this.drive={exportTask:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/export_tasks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/export_tasks/file/:file_token/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/export_tasks/:ticket`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileComment:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileCommentReply:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{copy:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/copy`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createFolder:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/create_folder`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createShortcut:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/create_shortcut`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deleteSubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),getSubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),move:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/move`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),taskCheck:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/task_check`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uploadAll:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/upload_all`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),uploadFinish:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/upload_finish`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uploadPart:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/upload_part`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),uploadPrepare:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/upload_prepare`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileStatistics:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/statistics`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileSubscription:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileVersion:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileViewRecord:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},importTask:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/import_tasks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/import_tasks/:ticket`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},media:{batchGetTmpDownloadUrl:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/batch_get_tmp_download_url`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/:file_token/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),uploadAll:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/upload_all`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),uploadFinish:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/upload_finish`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uploadPart:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/upload_part`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),uploadPrepare:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/upload_prepare`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},meta:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/metas/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},permissionMember:{auth:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/auth`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transferOwner:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/transfer_owner`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},permissionPublic:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},permissionPublicPassword:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},user:{removeSubscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/user/remove_subscription`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/user/subscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscriptionStatus:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/user/subscription_status`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{exportTask:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/export_tasks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/export_tasks/file/:file_token/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/export_tasks/:ticket`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileComment:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileCommentReply:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/comments/:comment_id/replies/:reply_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{copy:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/copy`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createFolder:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/create_folder`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createShortcut:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/create_shortcut`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deleteSubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/delete_subscribe`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),getSubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/get_subscribe`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),move:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/move`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),taskCheck:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/task_check`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uploadAll:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/upload_all`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),uploadFinish:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/upload_finish`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uploadPart:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/upload_part`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),uploadPrepare:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/upload_prepare`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileStatistics:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/statistics`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileSubscription:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/subscriptions/:subscription_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileVersion:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions/:version_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/versions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileViewRecord:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/files/:file_token/view_records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},importTask:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/import_tasks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/import_tasks/:ticket`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},media:{batchGetTmpDownloadUrl:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/batch_get_tmp_download_url`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/:file_token/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),uploadAll:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/upload_all`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),uploadFinish:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/upload_finish`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uploadPart:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/upload_part`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),uploadPrepare:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/medias/upload_prepare`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},meta:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/metas/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},permissionMember:{auth:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/auth`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transferOwner:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/transfer_owner`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/members/:member_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},permissionPublic:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},permissionPublicPassword:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/permissions/:token/public/password`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},user:{removeSubscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/user/remove_subscription`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/user/subscription`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscriptionStatus:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v1/user/subscription_status`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}},v2:{commentReaction:{updateReaction:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v2/files/:file_token/comments/reaction`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},fileLike:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v2/files/:file_token/likes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},permissionPublic:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v2/permissions/:token/public`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/drive/v2/permissions/:token/public`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},no=class extends oo{constructor(){super(...arguments),this.edu={}}},ho=class extends no{constructor(){super(...arguments),this.ehr={attachment:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/ehr/v1/attachments/:token`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},employee:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/ehr/v1/employees`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/ehr/v1/employees`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{attachment:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/ehr/v1/attachments/:token`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},employee:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/ehr/v1/employees`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/ehr/v1/employees`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},lo=class extends ho{constructor(){super(...arguments),this.elearning={}}},co=class extends lo{constructor(){super(...arguments),this.event={outboundIp:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/event/v1/outbound_ip`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/event/v1/outbound_ip`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{outboundIp:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/event/v1/outbound_ip`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/event/v1/outbound_ip`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},po=class extends co{constructor(){super(...arguments),this.exam={}}},mo=class extends po{constructor(){super(...arguments),this.face_detection={}}},uo=class extends mo{constructor(){super(...arguments),this.feelgood={}}},yo=class extends uo{constructor(){super(...arguments),this.helpdesk={agent:{agentEmail:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_emails`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agentSchedules:{delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agentSchedule:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agentSkill:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agentSkillRule:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skill_rules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},botMessage:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/message`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},category:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},event:{subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/events/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/events/unsubscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},faq:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),faqImage:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/:id/image/:image_key`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},notification:{cancelApprove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_approve`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),cancelSend:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_send`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),executeSend:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/execute_send`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),preview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/preview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),submitApprove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/submit_approve`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ticket:{answerUserQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/answer_user_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),customizedFields:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/customized_fields`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),startService:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/start_service`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),ticketImage:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_images`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ticketMessage:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ticketCustomizedField:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{agent:{agentEmail:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_emails`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agentSchedules:{delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agents/:agent_id/schedules`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agentSchedule:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_schedules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agentSkill:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skills/:agent_skill_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agentSkillRule:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/agent_skill_rules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},botMessage:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/message`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},category:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/categories/:id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},event:{subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/events/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/events/unsubscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},faq:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),faqImage:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/:id/image/:image_key`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/:id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/faqs/search`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},notification:{cancelApprove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_approve`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),cancelSend:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/cancel_send`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),executeSend:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/execute_send`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),preview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/preview`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),submitApprove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/notifications/:notification_id/submit_approve`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ticket:{answerUserQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/answer_user_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),customizedFields:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/customized_fields`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),startService:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/start_service`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),ticketImage:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_images`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ticketMessage:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/tickets/:ticket_id/messages`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ticketCustomizedField:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/helpdesk/v1/ticket_customized_fields/:ticket_customized_field_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},fo=class extends yo{constructor(){super(...arguments),this.hire={advertisement:{publish:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/advertisements/:advertisement_id/publish`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agency:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/:agency_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getAgencyAccount:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),operateAgencyAccount:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),protect:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/protect`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),protectSearch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/protection_period/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},application:{cancelOnboard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/cancel_onboard`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getDetail:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),offer:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/offer`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),recover:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/recover`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),terminate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/terminate`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transferOnboard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_onboard`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transferStage:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_stage`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationInterview:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},attachment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/attachments`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),preview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id/preview`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},backgroundCheckOrder:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/background_check_orders/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/background_check_orders`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},diversityInclusion:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/diversity_inclusions/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoAccountCustomField:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoBackgroundCheck:{cancel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_checks/cancel`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateProgress:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_progress`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateResult:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_result`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoBackgroundCheckCustomField:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoBackgroundCheckPackage:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_packages`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoExam:{loginInfo:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/login_info`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateResult:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/update_result`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoExamPaper:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exam_papers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ehrImportTask:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/ehr_import_tasks/:ehr_import_task_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employee:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getByApplication:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/employees/get_by_application`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},evaluation:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/evaluations`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/evaluations`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},evaluationTask:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},exam:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/exams`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},examMarkingTask:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalApplication:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalBackgroundCheck:{batchQueryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalInterview:{batchQueryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalInterviewAssessment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interview_assessments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalOffer:{batchQueryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalReferralReward:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_referral_rewards`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interview:{getByTalent:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviews`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewFeedbackForm:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewRecordAttachment:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_records/attachments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewRecord:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewRegistrationSchema:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewRoundType:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_round_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewTask:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewer:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviewers`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviewers`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},job:{close:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/close`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),combinedCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/combined_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),combinedUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/combined_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),config:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getDetail:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),open:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/open`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),recruiter:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateConfig:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobManager:{batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/batch_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/:manager_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobFunction:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_functions`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_functions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobProcess:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_processes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobPublishRecord:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_publish_records/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobRequirement:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listById:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobRequirementSchema:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirement_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobSchema:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobType:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_types`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},location:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/locations`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/locations`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/locations/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},minutes:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/minutes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},note:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes/:note_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes/:note_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes/:note_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offer:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),internOfferStatus:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers/:offer_id/intern_offer_status`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),offerStatus:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers/:offer_id/offer_status`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offerApplicationForm:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_application_forms/:offer_application_form_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_application_forms`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offerApprovalTemplate:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_approval_templates`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offerCustomField:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_custom_fields/:offer_custom_field_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offerSchema:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_schemas/:offer_schema_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},portalApplySchema:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},questionnaire:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/questionnaires`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},referral:{getByApplication:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referrals/get_by_application`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referrals/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},referralAccount:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deactivate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/deactivate`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),enable:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/enable`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getAccountAssets:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reconciliation:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/reconciliation`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),withdraw:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/withdraw`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},referralWebsiteJobPost:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},registrationSchema:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/registration_schemas`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/registration_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},resumeSource:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/resume_sources`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/resume_sources`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},role:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/roles/:role_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/roles`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/roles`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},subject:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/subjects`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talent:{addToFolder:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/add_to_folder`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchGetId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/batch_get_id`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),combinedCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/combined_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),combinedUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/combined_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),onboardStatus:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id/onboard_status`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeToFolder:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),tag:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id/tag`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentExternalInfo:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentBlocklist:{changeTalentBlock:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentFolder:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_folders`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_folders`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentObject:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_objects/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentOperationLog:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_operation_logs/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentPool:{batchChangeTalentPool:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),moveTalent:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/talent_relationship`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_pools/`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_pools/`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentTag:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_tags`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_tags`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},terminationReason:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/termination_reasons`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/termination_reasons`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},test:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tests/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tests/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},todo:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/todos`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/todos`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},tripartiteAgreement:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userRole:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/user_roles`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/user_roles`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteChannel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteDelivery:{createByAttachment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_attachment`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createByResume:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_resume`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteDeliveryTask:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/delivery_tasks/:delivery_task_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteJobPost:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/:job_post_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},website:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteSiteUser:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/site_users`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{advertisement:{publish:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/advertisements/:advertisement_id/publish`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},agency:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/:agency_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getAgencyAccount:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/get_agency_account`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),operateAgencyAccount:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/operate_agency_account`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),protect:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/protect`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),protectSearch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/protection_period/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/agencies/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},application:{cancelOnboard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/cancel_onboard`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getDetail:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/get_detail`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),offer:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/offer`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),recover:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/recover`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),terminate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/terminate`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transferOnboard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_onboard`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),transferStage:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/transfer_stage`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},applicationInterview:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/:application_id/interviews`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},attachment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/attachments`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),preview:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/attachments/:attachment_id/preview`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},backgroundCheckOrder:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/background_check_orders/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/background_check_orders`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},diversityInclusion:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/applications/diversity_inclusions/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoAccountCustomField:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_account_custom_fields`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoBackgroundCheck:{cancel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_checks/cancel`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateProgress:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_progress`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateResult:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_checks/update_result`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoBackgroundCheckCustomField:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_custom_fields`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoBackgroundCheckPackage:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_packages/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_background_check_packages`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoExam:{loginInfo:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/login_info`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateResult:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exams/:exam_id/update_result`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ecoExamPaper:{batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exam_papers/batch_update`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/eco_exam_papers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ehrImportTask:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/ehr_import_tasks/:ehr_import_task_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},employee:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getByApplication:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/employees/get_by_application`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/employees/:employee_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},evaluation:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/evaluations`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/evaluations`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},evaluationTask:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/evaluation_tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},exam:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/exams`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},examMarkingTask:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/exam_marking_tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalApplication:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_applications/:external_application_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalBackgroundCheck:{batchQueryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_background_checks/:external_background_check_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalInterview:{batchQueryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interviews/:external_interview_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalInterviewAssessment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interview_assessments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_interview_assessments/:external_interview_assessment_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalOffer:{batchQueryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_offers/:external_offer_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},externalReferralReward:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_referral_rewards`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/external_referral_rewards/:external_referral_reward_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interview:{getByTalent:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviews/get_by_talent`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviews`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewFeedbackForm:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_feedback_forms`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewRecordAttachment:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_records/attachments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewRecord:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_records/:interview_record_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewRegistrationSchema:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_registration_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewRoundType:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_round_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewTask:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interview_tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},interviewer:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviewers`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviewers`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/interviewers/:interviewer_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},job:{close:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/close`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),combinedCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/combined_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),combinedUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/combined_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),config:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/config`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getDetail:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/get_detail`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),open:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/open`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),recruiter:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/recruiter`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateConfig:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/update_config`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobManager:{batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/batch_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/jobs/:job_id/managers/:manager_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobFunction:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_functions`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_functions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobProcess:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_processes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobPublishRecord:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_publish_records/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobRequirement:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listById:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirements/:job_requirement_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobRequirementSchema:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_requirement_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobSchema:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},jobType:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_types`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/job_types`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},location:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/locations`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/locations`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/locations/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},minutes:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/minutes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},note:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes/:note_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes/:note_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/notes/:note_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offer:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),internOfferStatus:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers/:offer_id/intern_offer_status`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),offerStatus:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers/:offer_id/offer_status`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offers/:offer_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offerApplicationForm:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_application_forms/:offer_application_form_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_application_forms`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offerApprovalTemplate:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_approval_templates`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offerCustomField:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_custom_fields/:offer_custom_field_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},offerSchema:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/offer_schemas/:offer_schema_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},portalApplySchema:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/portal_apply_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},questionnaire:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/questionnaires`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},referral:{getByApplication:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referrals/get_by_application`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referrals/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},referralAccount:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deactivate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/deactivate`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),enable:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/enable`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getAccountAssets:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/get_account_assets`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reconciliation:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/reconciliation`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),withdraw:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_account/:referral_account_id/withdraw`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},referralWebsiteJobPost:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts/:job_post_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/referral_websites/job_posts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},registrationSchema:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/registration_schemas`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/registration_schemas`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},resumeSource:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/resume_sources`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/resume_sources`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},role:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/roles/:role_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/roles`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/roles`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},subject:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/subjects`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talent:{addToFolder:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/add_to_folder`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchGetId:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/batch_get_id`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),combinedCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/combined_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),combinedUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/combined_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),onboardStatus:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id/onboard_status`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeToFolder:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/remove_to_folder`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),tag:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id/tag`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentExternalInfo:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talents/:talent_id/external_info`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentBlocklist:{changeTalentBlock:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_blocklist/change_talent_block`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentFolder:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_folders`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_folders`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentObject:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_objects/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentOperationLog:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_operation_logs/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentPool:{batchChangeTalentPool:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/batch_change_talent_pool`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),moveTalent:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_pools/:talent_pool_id/talent_relationship`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_pools/`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_pools/`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talentTag:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_tags`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/talent_tags`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},terminationReason:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/termination_reasons`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/termination_reasons`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},test:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tests/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tests/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},todo:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/todos`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/todos`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},tripartiteAgreement:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/tripartite_agreements/:tripartite_agreement_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userRole:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/user_roles`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/user_roles`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteChannel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/channels/:channel_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteDelivery:{createByAttachment:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_attachment`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createByResume:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/deliveries/create_by_resume`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteDeliveryTask:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/delivery_tasks/:delivery_task_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteJobPost:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/:job_post_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/job_posts/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},website:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},websiteSiteUser:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v1/websites/:website_id/site_users`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}},v2:{interviewRecord:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v2/interview_records/:interview_record_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v2/interview_records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v2/interview_records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},talent:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/hire/v2/talents/:talent_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},go=class extends fo{constructor(){super(...arguments),this.human_authentication={identity:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/human_authentication/v1/identities`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{identity:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/human_authentication/v1/identities`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},vo=class extends go{constructor(){super(...arguments),this.im={batchMessage:{delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getProgress:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/get_progress`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),readUser:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/read_user`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatAnnouncement:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chat:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),link:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/link`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/search`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/search`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatManagers:{addManagers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/add_managers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deleteManagers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/delete_managers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatMembers:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),isInChat:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/is_in_chat`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),meJoin:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/me_join`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatMenuItem:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_items/:menu_item_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatMenuTree:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),sort:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree/sort`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatModeration:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatTab:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deleteTabs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/delete_tabs`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listTabs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/list_tabs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),sortTabs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/sort_tabs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateTabs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/update_tabs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatTopNotice:{deleteTopNotice:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/delete_top_notice`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),putTopNotice:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/put_top_notice`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/files`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/files/:file_key`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},image:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/images`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/images/:image_key`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},message:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),forward:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/forward`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mergeForward:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/merge_forward`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),pushFollowUp:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/push_follow_up`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),readUsers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/read_users`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reply:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),urgentApp:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_app`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),urgentPhone:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_phone`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),urgentSms:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_sms`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createByCard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),{template_id:t,template_variable:g}=s,m=k(s,["template_id","template_variable"]),y=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:t,template_variable:g}})},m);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages`,o),method:"POST",data:y,params:i,headers:r,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{throw this.logger.error(l(c)),c})}),replyByCard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),{template_id:t,template_variable:g}=s,m=k(s,["template_id","template_variable"]),y=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:t,template_variable:g}})},m);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,o),method:"POST",data:y,params:i,headers:r,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{throw this.logger.error(l(c)),c})}),updateByCard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),{template_id:t,template_variable:g}=s,m=k(s,["template_id","template_variable"]),y=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:t,template_variable:g}})},m);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"PUT",data:y,params:i,headers:r,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{throw this.logger.error(l(c)),c})})},messageReaction:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/reactions/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions/:reaction_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},messageResource:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},pin:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/pins`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/pins/:message_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/pins`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/pins`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},thread:{forward:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{batchMessage:{delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getProgress:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/get_progress`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),readUser:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/batch_messages/:batch_message_id/read_user`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatAnnouncement:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/announcement`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chat:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),link:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/link`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/search`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/search`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatManagers:{addManagers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/add_managers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deleteManagers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/managers/delete_managers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatMembers:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),isInChat:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/is_in_chat`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),meJoin:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/members/me_join`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatMenuItem:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_items/:menu_item_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatMenuTree:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),sort:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/menu_tree/sort`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatModeration:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/moderation`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatTab:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),deleteTabs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/delete_tabs`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listTabs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/list_tabs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),sortTabs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/sort_tabs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateTabs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/chat_tabs/update_tabs`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatTopNotice:{deleteTopNotice:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/delete_top_notice`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),putTopNotice:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/chats/:chat_id/top_notice/put_top_notice`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/files`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/files/:file_key`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},image:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/images`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/images/:image_key`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},message:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),forward:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/forward`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mergeForward:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/merge_forward`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),pushFollowUp:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/push_follow_up`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),readUsers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/read_users`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reply:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),urgentApp:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_app`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),urgentPhone:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_phone`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),urgentSms:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/urgent_sms`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),createByCard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),{template_id:t,template_variable:g}=s,m=k(s,["template_id","template_variable"]),y=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:t,template_variable:g}})},m);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages`,o),method:"POST",data:y,params:i,headers:r,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{throw this.logger.error(l(c)),c})}),replyByCard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),{template_id:t,template_variable:g}=s,m=k(s,["template_id","template_variable"]),y=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:t,template_variable:g}})},m);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reply`,o),method:"POST",data:y,params:i,headers:r,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{throw this.logger.error(l(c)),c})}),updateByCard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),{template_id:t,template_variable:g}=s,m=k(s,["template_id","template_variable"]),y=Object.assign({msg_type:"interactive",content:JSON.stringify({type:"template",data:{template_id:t,template_variable:g}})},m);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id`,o),method:"PUT",data:y,params:i,headers:r,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{throw this.logger.error(l(c)),c})})},messageReaction:{batchQuery:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/reactions/batch_query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions/:reaction_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/reactions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},messageResource:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/messages/:message_id/resources/:file_key`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})},pin:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/pins`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/pins/:message_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/pins`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/pins`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},thread:{forward:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v1/threads/:thread_id/forward`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}},v2:{appFeedCardBatch:{delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/app_feed_card/batch`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/app_feed_card/batch`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},appFeedCard:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/app_feed_card`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},bizEntityTagRelation:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/biz_entity_tag_relation`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},chatButton:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/chat_button`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},feedCard:{botTimeSentive:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/feed_cards/bot_time_sentive`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/feed_cards/:feed_card_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},tag:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/tags`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/tags/:tag_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},urlPreview:{batchUpdate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/im/v2/url_previews/batch_update`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},_o=class extends vo{constructor(){super(...arguments),this.lingo={v1:{classification:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/classifications`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/classifications`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},draft:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/drafts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/drafts/:draft_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},entity:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),highlight:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities/highlight`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),match:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities/match`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/entities/:entity_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},file:{download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/files/:file_token/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/files/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},repo:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/lingo/v1/repos`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},bo=class extends _o{constructor(){super(...arguments),this.mail={mailgroupAlias:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases/:alias_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},mailgroup:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},mailgroupManager:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},mailgroupMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},mailgroupPermissionMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},publicMailboxAlias:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases/:alias_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},publicMailbox:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeToRecycleBin:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/remove_to_recycle_bin`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},publicMailboxMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),clear:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/clear`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},user:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/users/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailbox:{accessibleMailboxes:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/accessible_mailboxes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxAlias:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases/:alias_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxDraft:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts/:draft_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts/:draft_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),send:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts/:draft_id/send`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts/:draft_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxEvent:{subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/subscription`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/unsubscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxFolder:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxLabel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels/:label_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels/:label_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels/:label_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxMailContact:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts/:mail_contact_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts/:mail_contact_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxMessageAttachment:{downloadUrl:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id/attachments/download_url`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxMessage:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchModify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/batch_modify`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchTrash:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/batch_trash`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getByCard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/get_by_card`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listThreadMessage:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/:thread_id/messages`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),modify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id/modify`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),send:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),trash:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id/trash`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxRule:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/:rule_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reorder:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/reorder`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/:rule_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxSetting:{sendAs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/settings/send_as`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxTemplateAttachment:{downloadUrl:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates/:template_id/attachments/download_url`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxTemplate:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates/:template_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates/:template_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates/:template_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxThread:{batchModify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/batch_modify`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchTrash:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/batch_trash`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/:thread_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),modify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/:thread_id/modify`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),trash:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/:thread_id/trash`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{mailgroupAlias:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases/:alias_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/aliases`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},mailgroup:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},mailgroupManager:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers/batch_delete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/managers`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},mailgroupMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members/:member_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},mailgroupPermissionMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members/:permission_member_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/mailgroups/:mailgroup_id/permission_members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},publicMailboxAlias:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases/:alias_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/aliases`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},publicMailbox:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeToRecycleBin:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/remove_to_recycle_bin`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},publicMailboxMember:{batchCreate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_create`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDelete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/batch_delete`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),clear:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/clear`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members/:member_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/public_mailboxes/:public_mailbox_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},user:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/users/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailbox:{accessibleMailboxes:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/accessible_mailboxes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxAlias:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases/:alias_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/aliases`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxDraft:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts/:draft_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts/:draft_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),send:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts/:draft_id/send`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/drafts/:draft_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxEvent:{subscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/subscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),subscription:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/subscription`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unsubscribe:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/event/unsubscribe`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxFolder:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/folders/:folder_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxLabel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels/:label_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels/:label_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/labels/:label_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxMailContact:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts/:mail_contact_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/mail_contacts/:mail_contact_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxMessageAttachment:{downloadUrl:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id/attachments/download_url`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxMessage:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/batch_get`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchModify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/batch_modify`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchTrash:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/batch_trash`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getByCard:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/get_by_card`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listThreadMessage:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/:thread_id/messages`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),modify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id/modify`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),send:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/send`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),trash:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/messages/:message_id/trash`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxRule:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/:rule_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reorder:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/reorder`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/rules/:rule_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxSetting:{sendAs:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/settings/send_as`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxTemplateAttachment:{downloadUrl:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates/:template_id/attachments/download_url`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxTemplate:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates/:template_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates/:template_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/templates/:template_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMailboxThread:{batchModify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/batch_modify`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchTrash:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/batch_trash`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/:thread_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),modify:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/:thread_id/modify`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),trash:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mail/v1/user_mailboxes/:user_mailbox_id/threads/:thread_id/trash`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},So=class extends bo{constructor(){super(...arguments),this.mdm={userAuthDataRelation:{bind:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unbind:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{userAuthDataRelation:{bind:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/bind`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),unbind:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mdm/v1/user_auth_data_relations/unbind`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}},v3:{batchCountryRegion:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mdm/v3/batch_country_region`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},countryRegion:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/mdm/v3/country_regions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Io=class extends So{constructor(){super(...arguments),this.meeting_room={}}},wo=class extends Io{constructor(){super(...arguments),this.minutes={v1:{minute:{artifacts:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/minutes/v1/minutes/:minute_token/artifacts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/minutes/v1/minutes/:minute_token`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/minutes/v1/minutes/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/minutes/v1/minutes/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},minuteMedia:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/minutes/v1/minutes/:minute_token/media`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},minuteStatistics:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/minutes/v1/minutes/:minute_token/statistics`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},minuteTranscript:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/minutes/v1/minutes/:minute_token/transcript`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}})}}}}},Po=class extends wo{constructor(){super(...arguments),this.moments={post:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/moments/v1/posts/:post_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{post:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/moments/v1/posts/:post_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},ko=class extends Po{constructor(){super(...arguments),this.okr={image:{upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/images/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},okr:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/okrs/batch_get`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},period:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/periods`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/periods`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/periods/:period_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},periodRule:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/period_rules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},progressRecord:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/progress_records`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},review:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/reviews/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userOkr:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/users/:user_id/okrs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{image:{upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/images/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},okr:{batchGet:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/okrs/batch_get`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},period:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/periods`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/periods`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/periods/:period_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},periodRule:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/period_rules`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},progressRecord:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/progress_records`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/progress_records/:progress_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},review:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/reviews/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userOkr:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/okr/v1/users/:user_id/okrs`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},To=class extends ko{constructor(){super(...arguments),this.optical_char_recognition={image:{basicRecognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/optical_char_recognition/v1/image/basic_recognize`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{image:{basicRecognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/optical_char_recognition/v1/image/basic_recognize`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},qo=class extends To{constructor(){super(...arguments),this.passport={session:{logout:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/passport/v1/sessions/logout`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/passport/v1/sessions/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{session:{logout:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/passport/v1/sessions/logout`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/passport/v1/sessions/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Fo=class extends qo{constructor(){super(...arguments),this.payroll={v1:{acctItem:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/acct_items`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/acct_items`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},costAllocationDetail:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/cost_allocation_details`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/cost_allocation_details`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},costAllocationPlan:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/cost_allocation_plans`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/cost_allocation_plans`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},costAllocationReport:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/cost_allocation_reports`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/cost_allocation_reports`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},datasource:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/datasources`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/datasources`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},datasourceRecord:{queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/datasource_records/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/datasource_records/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),save:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/datasource_records/save`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},paygroup:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/paygroups`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/paygroups`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},paymentActivity:{archive:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/payment_activitys/archive`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/payment_activitys`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/payment_activitys`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},paymentActivityDetail:{list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/payment_activity_details`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},paymentDetail:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/payroll/v1/payment_detail/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},$o=class extends Fo{constructor(){super(...arguments),this.people_admin={}}},zo=class extends $o{constructor(){super(...arguments),this.people_bytedance={}}},Eo=class extends zo{constructor(){super(...arguments),this.performance={v2:{activity:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/activity/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},additionalInformation:{import:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/additional_informations/import`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/additional_informations/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/additional_informations/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},additionalInformationsBatch:{delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/additional_informations/batch`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},indicator:{queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/indicators/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/indicators/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},metricDetail:{import:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/metric_details/import`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/metric_details/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},metricField:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/metric_fields/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},metricLib:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/metric_libs/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},metricTag:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/metric_tags`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/metric_tags`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},metricTemplate:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/metric_templates/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},question:{queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/questions/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/questions/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reviewData:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/review_datas/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reviewTemplate:{queryWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/review_templates/query`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/review_templates/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reviewee:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/reviewees/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userGroupUserRel:{write:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/user_group_user_rels/write`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userInfo:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/performance/v2/user_info/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Oo=class extends Eo{constructor(){super(...arguments),this.personal_settings={systemStatus:{batchClose:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_close`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchOpen:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_open`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{systemStatus:{batchClose:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_close`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchOpen:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id/batch_open`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/personal_settings/v1/system_statuses/:system_status_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},xo=class extends Oo{constructor(){super(...arguments),this.report={rule:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/report/v1/rules/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ruleView:{remove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},task:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/report/v1/tasks/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{rule:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/report/v1/rules/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},ruleView:{remove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/report/v1/rules/:rule_id/views/remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},task:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/report/v1/tasks/query`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Go=class extends xo{constructor(){super(...arguments),this.search_in_app={}}},jo=class extends Go{constructor(){super(...arguments),this.search={app:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/app`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},dataSource:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},dataSourceItem:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},docWiki:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/doc_wiki/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/doc_wiki/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},message:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/message`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},schema:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/schemas`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v2:{app:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/app`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},dataSource:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},dataSourceItem:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/data_sources/:data_source_id/items/:item_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},docWiki:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/doc_wiki/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/doc_wiki/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},message:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/message`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},schema:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/schemas`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/search/v2/schemas/:schema_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Ro=class extends jo{constructor(){super(...arguments),this.security_and_compliance={multiGeoEntityTenant:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/multi_geo_entity/tenant`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},openapiLog:{listData:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/openapi_logs/list_data`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMigration:{cancel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/user_migrations/cancel`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/user_migrations`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/user_migrations/:user_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/user_migrations/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{multiGeoEntityTenant:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/multi_geo_entity/tenant`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},openapiLog:{listData:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/openapi_logs/list_data`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},userMigration:{cancel:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/user_migrations/cancel`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/user_migrations`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/user_migrations/:user_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v1/user_migrations/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}},v2:{deviceApplyRecord:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v2/device_apply_records/:device_apply_record_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},deviceRecord:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v2/device_records`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v2/device_records/:device_record_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v2/device_records/:device_record_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v2/device_records`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v2/device_records`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mine:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v2/device_records/mine`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/security_and_compliance/v2/device_records/:device_record_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Ao=class extends Ro{constructor(){super(...arguments),this.sheets={spreadsheet:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheetFilter:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheetFilterViewCondition:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheetFilterView:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheet:{find:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/find`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),moveDimension:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/move_dimension`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),replace:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/replace`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheetFloatImage:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v3:{spreadsheet:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheetFilter:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheetFilterViewCondition:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id/conditions/:condition_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheetFilterView:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/:filter_view_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/filter_views/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheet:{find:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/find`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),moveDimension:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/move_dimension`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),replace:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/replace`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spreadsheetSheetFloatImage:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/:float_image_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/sheets/v3/spreadsheets/:spreadsheet_token/sheets/:sheet_id/float_images/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Co=class extends Ao{constructor(){super(...arguments),this.speech_to_text={speech:{fileRecognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/speech_to_text/v1/speech/file_recognize`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),streamRecognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/speech_to_text/v1/speech/stream_recognize`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{speech:{fileRecognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/speech_to_text/v1/speech/file_recognize`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),streamRecognize:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/speech_to_text/v1/speech/stream_recognize`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Do=class extends Co{constructor(){super(...arguments),this.spend={}}},Bo=class extends Do{constructor(){super(...arguments),this.sup_project={}}},Lo=class extends Bo{constructor(){super(...arguments),this.task={task:{batchDeleteCollaborator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_collaborator`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDeleteFollower:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_follower`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),complete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/complete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uncomplete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/uncomplete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},taskCollaborator:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators/:collaborator_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},taskComment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},taskFollower:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers/:follower_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},taskReminder:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders/:reminder_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{task:{batchDeleteCollaborator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_collaborator`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),batchDeleteFollower:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/batch_delete_follower`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),complete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/complete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),uncomplete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/uncomplete`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},taskCollaborator:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators/:collaborator_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/collaborators`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},taskComment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/comments/:comment_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},taskFollower:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers/:follower_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/followers`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},taskReminder:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders/:reminder_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v1/tasks/:task_id/reminders`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}},v2:{attachment:{delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/attachments/:attachment_guid`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/attachments/:attachment_guid`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/attachments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/attachments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),upload:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/attachments/upload`,o),method:"POST",data:s,params:i,headers:Object.assign(Object.assign({},r),{"Content-Type":"multipart/form-data"}),paramsSerializer:g=>h.stringify(g,{arrayFormat:"repeat"})}).catch(g=>{throw this.logger.error(l(g)),g});return t?.data||null})},comment:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/comments`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/comments/:comment_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/comments/:comment_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/comments`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/comments`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/comments/:comment_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},customField:{add:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/add`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/custom_fields`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/custom_fields`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/custom_fields`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),remove:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/remove`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},customFieldOption:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/options`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/custom_fields/:custom_field_guid/options/:option_guid`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},section:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/sections`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/sections/:section_guid`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/sections/:section_guid`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/sections`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/sections`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/sections/:section_guid`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),tasksWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/sections/:section_guid/tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),tasks:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/sections/:section_guid/tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},task:{addDependencies:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_dependencies`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),addMembers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),addReminders:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_reminders`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),addTasklist:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/add_tasklist`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeDependencies:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_dependencies`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeMembers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeReminders:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_reminders`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeTasklist:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/remove_tasklist`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),tasklists:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/tasklists`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},taskSubtask:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/subtasks`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/subtasks`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasks/:task_guid/subtasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},tasklistActivitySubscription:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions/:activity_subscription_guid`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions/:activity_subscription_guid`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/activity_subscriptions/:activity_subscription_guid`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},tasklist:{addMembers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/add_members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),removeMembers:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/remove_members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),tasks:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/task/v2/tasklists/:tasklist_guid/tasks`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Mo=class extends Lo{constructor(){super(...arguments),this.tenant={tenantProductAssignInfo:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/tenant/v2/tenant/assign_info_list/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},tenant:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/tenant/v2/tenant/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v2:{tenantProductAssignInfo:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/tenant/v2/tenant/assign_info_list/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},tenant:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/tenant/v2/tenant/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Wo=class extends Mo{constructor(){super(...arguments),this.translation={text:{detect:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/translation/v1/text/detect`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),translate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/translation/v1/text/translate`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{text:{detect:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/translation/v1/text/detect`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),translate:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/translation/v1/text/translate`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Uo=class extends Wo{constructor(){super(...arguments),this.unified_kms_log={}}},No=class extends Uo{constructor(){super(...arguments),this.vc={alert:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/alerts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/alerts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},export:{download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/:task_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),meetingList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/meeting_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),participantList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/participant_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),participantQualityList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/participant_quality_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),resourceReservationList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},meeting:{end:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/end`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),invite:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/invite`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),kickout:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/kickout`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listByNoWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),listByNo:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),setHost:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/set_host`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},meetingRecording:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),setPermission:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/set_permission`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),start:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/start`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),stop:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/stop`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},meetingList:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meeting_list`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meeting_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},note:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/notes/:note_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},participantList:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/participant_list`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/participant_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},participantQualityList:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/participant_quality_list`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/participant_quality_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},report:{getDaily:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reports/get_daily`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getTopUser:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reports/get_top_user`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserve:{apply:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/apply`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getActiveMeeting:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id/get_active_meeting`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserveConfigAdmin:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserveConfigDisableInform:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserveConfigForm:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserveConfig:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reserveScope:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/reserve_scope`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},resourceReservationList:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},room:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mget:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/mget`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},roomConfig:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_configs/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),set:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_configs/set`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),setCheckboardAccessCode:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),setRoomAccessCode:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},roomLevel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),del:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/del`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mget:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/mget`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/search`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},scopeConfig:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/scope_config`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/scope_config`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{alert:{listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/alerts`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/alerts`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},export:{download:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/download`,o),method:"GET",headers:r,data:s,params:i,responseType:"stream",paramsSerializer:m=>h.stringify(m,{arrayFormat:"repeat"}),$return_headers:!0}).catch(m=>{throw this.logger.error(l(m)),m}),g=()=>{let m="The stream has already been consumed";if(!t.data.readable)throw this.logger.error(m),new Error(m)};return{writeFile:m=>n(this,void 0,void 0,function*(){return g(),new Promise((y,c)=>{let u=H.default.createWriteStream(m);u.on("finish",()=>{y(m)}),u.on("error",f=>{c(f)}),t.data.pipe(u)})}),getReadableStream:()=>(g(),t.data),headers:t.headers}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/:task_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),meetingList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/meeting_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),participantList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/participant_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),participantQualityList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/participant_quality_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),resourceReservationList:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/exports/resource_reservation_list`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},meeting:{end:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/end`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),invite:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/invite`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),kickout:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/kickout`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listByNoWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),listByNo:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/list_by_no`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),setHost:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/set_host`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},meetingRecording:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),setPermission:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/set_permission`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),start:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/start`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),stop:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meetings/:meeting_id/recording/stop`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},meetingList:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meeting_list`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/meeting_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},note:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/notes/:note_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},participantList:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/participant_list`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/participant_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},participantQualityList:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/participant_quality_list`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/participant_quality_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},report:{getDaily:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reports/get_daily`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getTopUser:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reports/get_top_user`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserve:{apply:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/apply`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getActiveMeeting:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id/get_active_meeting`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserves/:reserve_id`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserveConfigAdmin:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/admin`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserveConfigDisableInform:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/disable_inform`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserveConfigForm:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id/form`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},reserveConfig:{patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/:reserve_config_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),reserveScope:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/reserve_configs/reserve_scope`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},resourceReservationList:{getWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/resource_reservation_list`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},room:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mget:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/mget`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/:room_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/rooms/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},roomConfig:{query:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_configs/query`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),set:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_configs/set`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),setCheckboardAccessCode:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_configs/set_checkboard_access_code`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),setRoomAccessCode:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_configs/set_room_access_code`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},roomLevel:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),del:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/del`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),mget:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/mget`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),patch:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/:room_level_id`,o),method:"PATCH",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/room_levels/search`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},scopeConfig:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/scope_config`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/vc/v1/scope_config`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Ho=class extends No{constructor(){super(...arguments),this.verification={v1:{verification:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/verification/v1/verification`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Ko=class extends Ho{constructor(){super(...arguments),this.wiki={space:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getNode:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/get_node`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spaceMember:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spaceNode:{copy:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/copy`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),move:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/move`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),moveDocsToWiki:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/move_docs_to_wiki`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateTitle:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/update_title`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spaceSetting:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/setting`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},task:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/tasks/:task_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{node:{searchWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v1/nodes/search`,o),method:"POST",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v1/nodes/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}},v2:{space:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),getNode:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/get_node`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spaceMember:{create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),delete:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members/:member_id`,o),method:"DELETE",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/members`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spaceNode:{copy:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/copy`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),create:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),listWithIterator:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a),t=m=>n(this,void 0,void 0,function*(){return yield this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,o),method:"GET",headers:P.default(m.headers,w.default),params:P.default(m.params,w.default),data:s,paramsSerializer:c=>h.stringify(c,{arrayFormat:"repeat"})}).catch(c=>{this.logger.error(l(c))})});return{[Symbol.asyncIterator](){return T(this,arguments,function*(){let y=!0,c;for(;y;)try{let u=yield v(t({headers:r,params:Object.assign(Object.assign({},i),{page_token:c}),data:s})),f=u?.data||{},{has_more:_,page_token:S,next_page_token:b}=f,I=k(f,["has_more","page_token","next_page_token"]);yield yield v(I),y=!!_,c=S||b}catch{yield yield v(null);break}})}}}),list:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),move:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/move`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),moveDocsToWiki:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/move_docs_to_wiki`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})}),updateTitle:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/update_title`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},spaceSetting:{update:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/spaces/:space_id/setting`,o),method:"PUT",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},task:{get:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/wiki/v2/tasks/:task_id`,o),method:"GET",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Vo=class extends Ko{constructor(){super(...arguments),this.workplace={customWorkplaceAccessData:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workplaceAccessData:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workplaceBlockAccessData:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},v1:{customWorkplaceAccessData:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/workplace/v1/custom_workplace_access_data/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workplaceAccessData:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/workplace/v1/workplace_access_data/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})},workplaceBlockAccessData:{search:(e,a)=>n(this,void 0,void 0,function*(){let{headers:r,params:i,data:s,path:o}=yield this.formatPayload(e,a);return this.httpInstance.request({url:d(`${this.domain}/open-apis/workplace/v1/workplace_block_access_data/search`,o),method:"POST",data:s,params:i,headers:r,paramsSerializer:t=>h.stringify(t,{arrayFormat:"repeat"})}).catch(t=>{throw this.logger.error(l(t)),t})})}}}}},Jt={error:(...p)=>{console.log("[error]:",...p)},warn:(...p)=>{console.warn("[warn]:",...p)},info:(...p)=>{console.info("[info]:",...p)},debug:(...p)=>{console.debug("[debug]:",...p)},trace:(...p)=>{console.trace("[trace]:",...p)}},oe=class{constructor(e,a){this.level=e,this.logger=a}error(...e){this.level>=j.LoggerLevel.error&&this.logger.error(e)}warn(...e){this.level>=j.LoggerLevel.warn&&this.logger.warn(e)}info(...e){this.level>=j.LoggerLevel.info&&this.logger.info(e)}debug(...e){this.level>=j.LoggerLevel.debug&&this.logger.debug(e)}trace(...e){this.level>=j.LoggerLevel.trace&&this.logger.trace(e)}},Jo=class{constructor(e){this.appId=e.appId,this.appSecret=e.appSecret,this.cache=e.cache,this.domain=e.domain,this.logger=e.logger,this.appType=e.appType,this.httpInstance=e.httpInstance,this.logger.debug("app ticket manager is ready"),this.checkAppTicket()}checkAppTicket(){var e;return n(this,void 0,void 0,function*(){this.appType===j.AppType.ISV&&((yield(e=this.cache)===null||e===void 0?void 0:e.get(Pa,{namespace:this.appId}))||this.requestAppTicket())})}requestAppTicket(){return n(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(e=>{this.logger.error(e)})})}getAppTicket(){var e;return n(this,void 0,void 0,function*(){let a=yield(e=this.cache)===null||e===void 0?void 0:e.get(Pa,{namespace:this.appId});if(a)return this.logger.debug("use cache app ticket"),a;yield this.requestAppTicket()})}};function M0(p,e){var a,r;let i=(a=e?.code)!==null&&a!==void 0?a:"unknown",s=(r=e?.msg)!==null&&r!==void 0?r:"no message";return`failed to get ${p}, code: ${i}, msg: ${s}`}var Qo=class{constructor(e){this.appId=e.appId,this.appSecret=e.appSecret,this.cache=e.cache,this.domain=e.domain,this.logger=e.logger,this.appType=e.appType,this.httpInstance=e.httpInstance,this.appTicketManager=new Jo({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")}requestToken(e,a,r){return n(this,void 0,void 0,function*(){let i=yield this.httpInstance.post(e,a).catch(s=>{throw this.logger.error(s),s});if(!i||!i[r])throw new Error(M0(r,i));return i})}getCustomTenantAccessToken(){var e,a;return n(this,void 0,void 0,function*(){let r=yield(e=this.cache)===null||e===void 0?void 0:e.get(Es,{namespace:this.appId});if(r)return this.logger.debug("use cache token"),r;this.logger.debug("request token");let{tenant_access_token:i,expire:s}=yield this.requestToken(`${this.domain}/open-apis/auth/v3/tenant_access_token/internal`,{app_id:this.appId,app_secret:this.appSecret},"tenant_access_token");return yield(a=this.cache)===null||a===void 0?void 0:a.set(Es,i,new Date().getTime()+s*1e3-180*1e3,{namespace:this.appId}),i})}getMarketTenantAccessToken(e){var a;return n(this,void 0,void 0,function*(){if(!e){this.logger.error("market app request need tenant key");return}let r=yield(a=this.cache)===null||a===void 0?void 0:a.get(`larkMarketAccessToken${e}`,{namespace:this.appId});if(r)return this.logger.debug("use cache token"),r;this.logger.debug("get app ticket");let i=yield this.appTicketManager.getAppTicket();if(!i){this.logger.warn("no app ticket");return}this.logger.debug("get app access token");let{app_access_token:s}=yield this.requestToken(`${this.domain}/open-apis/auth/v3/app_access_token`,{app_id:this.appId,app_secret:this.appSecret,app_ticket:i},"app_access_token");this.logger.debug("get tenant access token");let{tenant_access_token:o,expire:t}=yield this.requestToken(`${this.domain}/open-apis/auth/v3/tenant_access_token`,{app_access_token:s,tenant_key:e},"tenant_access_token");return yield this.cache.set(`larkMarketAccessToken${e}`,o,new Date().getTime()+t*1e3-180*1e3,{namespace:this.appId}),o})}getTenantAccessToken(e){return n(this,void 0,void 0,function*(){return Me(this.appType===j.AppType.SelfBuild,()=>n(this,void 0,void 0,function*(){this.logger.debug("get custom app token")})),Me(this.appType===j.AppType.ISV,()=>n(this,void 0,void 0,function*(){this.logger.debug("get market app token ")})),this.appType===j.AppType.SelfBuild?yield this.getCustomTenantAccessToken():yield this.getMarketTenantAccessToken(e?.[Gr])})}},Qc=(p,e)=>{let a=Object.assign({},p);for(let[r,i]of Object.entries(e))i!==void 0&&(a[r]=i);return a},Xo=class{constructor(e){this.client=e.client}getCacheKey(e,a){return`${a?.namespace||this.client.appId}/${D0.toString()}/${e}`}calibrateTime(e){return new Date().getTime()+(e||0)*1e3-180*1e3}initWithCode(e,a){return n(this,void 0,void 0,function*(){let r={};for(let[i,s]of Object.entries(e)){let o=yield this.client.authen.oidcAccessToken.create({data:{grant_type:"authorization_code",code:s}});if(o.code!==0){this.client.logger.error("init user access token error",i,o.msg||o.message);continue}if(!o.data){this.client.logger.error("user access code expired",i,s);continue}r[i]={code:s,token:o.data.access_token,refreshToken:o.data.refresh_token,expiredTime:this.calibrateTime(o.data.expires_in)}}return yield this.update(r,{namespace:a?.namespace}),r})}update(e,a){return n(this,void 0,void 0,function*(){for(let[r,i]of Object.entries(e)){let s=this.getCacheKey(r,{namespace:a?.namespace}),o=(yield this.client.cache.get(s))||{},{code:t,token:g,refreshToken:m,expiredTime:y}=i,c=Qc(o,{code:t,token:g,refreshToken:m,expiredTime:y});yield this.client.cache.set(s,c,1/0)}})}get(e,a){return n(this,void 0,void 0,function*(){let r=this.getCacheKey(e,{namespace:a?.namespace}),i=yield this.client.cache.get(r);if(!i){this.client.logger.error("user access token needs to be initialized or updated first");return}let{token:s,code:o,refreshToken:t,expiredTime:g}=i;if(s&&g&&g-new Date().getTime()>0)return s;if(t){let m=yield this.client.authen.oidcRefreshAccessToken.create({data:{grant_type:"refresh_token",refresh_token:t}});if(m.code===0&&m.data)return yield this.update({[e]:{token:m.data.access_token,refreshToken:m.data.refresh_token,expiredTime:this.calibrateTime(m.data.expires_in)}}),m.data.access_token;this.client.logger.error("get user access token by refresh token failed.",m.msg);return}if(o){let m=yield this.client.authen.oidcAccessToken.create({data:{grant_type:"authorization_code",code:o}});m.code===0&&m.data?yield this.update({[e]:{token:m.data.access_token,refreshToken:m.data.refresh_token,expiredTime:this.calibrateTime(m.data.expires_in)}}):this.client.logger.error("get user access token by code failed.",m.msg)}})}},Rr=class extends Vo{constructor(e){super(),this.appId="",this.appSecret="",this.helpDeskId="",this.helpDeskToken="",this.appType=j.AppType.SelfBuild,this.logger=new oe(e.loggerLevel||j.LoggerLevel.info,e.logger||Jt),this.appId=e.appId,this.appSecret=e.appSecret,this.disableTokenCache=e.disableTokenCache,this.userAgent=vn(e.source,{extraTags:e.extraUaTags}),Me(!this.appId,()=>this.logger.error("appId is needed")),Me(!this.appSecret,()=>this.logger.error("appSecret is needed")),this.helpDeskId=e.helpDeskId,this.helpDeskToken=e.helpDeskToken,this.appType=e?.appType||j.AppType.SelfBuild,this.domain=Jc(e.domain||j.Domain.Feishu),this.logger.debug(`use domain url: ${this.domain}`),this.cache=e.cache||Ta,this.httpInstance=e.httpInstance||We,this.tokenManager=new Qo({appId:this.appId,appSecret:this.appSecret,cache:this.cache,domain:this.domain,logger:this.logger,appType:this.appType,httpInstance:this.httpInstance}),this.userAccessToken=new Xo({client:this}),this.logger.info("client ready")}formatPayload(e,a){var r,i,s;return n(this,void 0,void 0,function*(){let o=["lark","params","data","headers","path"].reduce((m,y)=>(m[y]=a?.[y]||{},m),{}),t=(r=o?.lark)===null||r===void 0?void 0:r[Vc];if(t)this.logger.debug("use passed token"),o.headers.Authorization=`Bearer ${t}`;else if(!this.disableTokenCache){let m=yield this.tokenManager.getTenantAccessToken({[Gr]:(i=o?.lark)===null||i===void 0?void 0:i[Gr]});m?o.headers.Authorization=`Bearer ${m}`:this.logger.warn("failed to obtain token")}if((s=o?.lark)===null||s===void 0?void 0:s[Kc]){this.logger.debug("generate help desk credential");let m=B0(`${this.helpDeskId}:${this.helpDeskToken}`);o.headers["X-Lark-Helpdesk-Authorization"]=`Bearer ${m}`}return{params:Object.assign(Object.assign({},e?.params||{}),o.params),headers:Object.assign(Object.assign({"User-Agent":this.userAgent},e?.headers||{}),o.headers),data:Object.assign(Object.assign({},e?.data||{}),o.data),path:Object.assign(Object.assign({},e?.path||{}),o.path)}})}request(e,a){var r;return n(this,void 0,void 0,function*(){let{data:i,params:s,headers:o,url:t}=e,g=k(e,["data","params","headers","url"]),m=yield this.formatPayload({data:i,params:s,headers:o},a),y=((r=e.method)===null||r===void 0?void 0:r.toLowerCase())==="get"&&Object.keys(m.data).length===0?void 0:m.data;return this.logger.trace(`send request [${e.method}]: ${e.url}`),yield this.httpInstance.request(Object.assign(Object.assign({},g),{url:/^http/.test(t)?t:`${this.domain}/${L0(t)}`,headers:m.headers,data:y,params:m.params})).catch(u=>{throw this.logger.error(u),u})})}},W0=p=>p.reduce((e,a)=>x0.default(e,a),{}),U0=p=>({lark:{[Gr]:p}}),N0=()=>({lark:{[Kc]:!0}}),H0=p=>({headers:{Authorization:`Bearer ${p}`}}),K0=p=>({lark:{[Vc]:p}}),Ar=class{constructor(e){let{encryptKey:a,verificationToken:r,logger:i}=e;this.verificationToken=r,this.encryptKey=a,this.logger=i,a&&(this.aesCipher=new ka(a))}parse(e){var a,r;let i=(()=>{var t;let g=e||{},{encrypt:m}=g,y=k(g,["encrypt"]);if(m)try{return Object.assign(Object.assign({},JSON.parse((t=this.aesCipher)===null||t===void 0?void 0:t.decrypt(m))),y)}catch{return this.logger.error("parse encrypt data failed"),{}}return y})();if("schema"in i){let{header:t,event:g}=i,m=k(i,["header","event"]);return Object.assign(Object.assign(Object.assign({[xr]:(a=i?.header)===null||a===void 0?void 0:a.event_type},m),t),g)}let{event:s}=i,o=k(i,["event"]);return Object.assign(Object.assign({[xr]:(r=i?.event)===null||r===void 0?void 0:r.type},s),o)}checkIsCardEventValidated(e){if("encrypt"in e||"schema"in e)return this.checkIsEventValidated(e);let{"x-lark-request-timestamp":a,"x-lark-request-nonce":r,"x-lark-signature":i}=e.headers;return this.verificationToken?Or.default.createHash("sha1").update(a+r+this.verificationToken+JSON.stringify(e)).digest("hex")===i:!0}checkIsEventValidated(e){if(!this.encryptKey)return!0;let{"x-lark-request-timestamp":a,"x-lark-request-nonce":r,"x-lark-signature":i}=e.headers,s=a+r+this.encryptKey+JSON.stringify(e);return Or.default.createHash("sha256").update(s).digest("hex")===i}},V0="app_ticket",Cr=class{constructor(e){this.verificationToken="",this.encryptKey="",this.handles=new Map;let{encryptKey:a,verificationToken:r}=e;this.encryptKey=a||"",this.verificationToken=r||"",this.logger=new oe(e.loggerLevel||j.LoggerLevel.info,e.logger||Jt),this.requestHandle=new Ar({encryptKey:a,verificationToken:r,logger:this.logger}),this.cache=e.cache||Ta,this.registerAppTicketHandle(),this.logger.info("event-dispatch is ready")}registerAppTicketHandle(){this.register({app_ticket:e=>n(this,void 0,void 0,function*(){let{app_ticket:a,app_id:r}=e;a?(yield this.cache.set(Pa,a,void 0,{namespace:r}),this.logger.debug("set app ticket")):this.logger.warn("response not include app ticket")})})}register(e){return Object.keys(e).forEach(a=>{this.handles.has(a)&&a!==V0&&this.logger.error(`this ${a} handle is registered`),this.handles.set(a,e[a]),this.logger.debug(`register ${a} handle`)}),this}invoke(e,a){var r,i;return n(this,void 0,void 0,function*(){if(a?.needCheck!==!1&&!(!((r=this.requestHandle)===null||r===void 0)&&r.checkIsEventValidated(e))){this.logger.warn("verification failed event");return}let o=(i=this.requestHandle)===null||i===void 0?void 0:i.parse(e),t=o[xr];if(this.handles.has(t)){let g=yield this.handles.get(t)(o);return this.logger.debug(`execute ${t} handle`),g}return this.logger.warn(`no ${t} handle`),`no ${t} event handle`})}},Zo=class{constructor(e,a){this.verificationToken="",this.encryptKey="",this.handles=new Map;let{verificationToken:r,encryptKey:i}=e;this.encryptKey=i||"",this.verificationToken=r||"",this.cardHandler=a,this.logger=new oe(e.loggerLevel||j.LoggerLevel.info,e.logger||Jt),this.requestHandle=new Ar({encryptKey:i,verificationToken:r,logger:this.logger}),this.cache=e.cache||Ta,this.registerAppTicketHandle(),this.logger.info("card-action-handle is ready")}registerAppTicketHandle(){this.register({app_ticket:e=>n(this,void 0,void 0,function*(){let{app_ticket:a,app_id:r}=e;a?(yield this.cache.set(Pa,a,void 0,{namespace:r}),this.logger.debug("set app ticket")):this.logger.warn("response not include app ticket")})})}register(e){return Object.keys(e).forEach(a=>{this.handles.set(a,e[a]),this.logger.debug(`register ${a} handle`)}),this}invoke(e){var a,r;return n(this,void 0,void 0,function*(){if(!(!((a=this.requestHandle)===null||a===void 0)&&a.checkIsCardEventValidated(e))){this.logger.warn("verification failed event");return}let i=(r=this.requestHandle)===null||r===void 0?void 0:r.parse(e),s=i[xr];if(this.handles.has(s))try{return yield this.handles.get(s)(i)}catch(o){this.logger.error(o);return}try{let o=yield this.cardHandler(i);return this.logger.debug("execute card handle"),o}catch(o){this.logger.error(o)}})}},Nr=p=>new Promise(e=>{let a="";p.on("data",r=>{a+=r}),p.on("end",()=>{try{let r=JSON.parse(a);e(r)}catch{e("")}})}),qa=(p,e)=>{if("encrypt"in p&&!e.encryptKey)throw new Error("auto-challenge need encryptKey, please check for missing in dispatcher");let a="encrypt"in p?JSON.parse(new ka(e.encryptKey).decrypt(p.encrypt)):p;return{isChallenge:a.type==="url_verification",challenge:{challenge:a.challenge}}},J0=(p,e,a)=>(r,i)=>n(void 0,void 0,void 0,function*(){if(r.url!==p)return;let s=Object.assign(Object.create({headers:r.headers}),yield Nr(r));if(a?.autoChallenge||!1){let{isChallenge:g,challenge:m}=qa(s,{encryptKey:e.encryptKey});if(g){i.end(JSON.stringify(m));return}}let t=yield e.invoke(s);i.end(JSON.stringify(t))}),Q0=(p,e)=>(a,r)=>n(void 0,void 0,void 0,function*(){let i=yield n(void 0,void 0,void 0,function*(){return a.body?a.body:a.complete?((e?.logger||Jt).error("unable to obtain request body, if parsed it in other middleware, please manually set in ctx.request.body"),null):yield Nr(a)}),s=Object.assign(Object.create({headers:a.headers}),i);if(e?.autoChallenge||!1){let{isChallenge:g,challenge:m}=qa(s,{encryptKey:p.encryptKey});if(g){r.json(m);return}}let t=yield p.invoke(s);r.json(t)}),X0=(p,e,a)=>(r,i)=>n(void 0,void 0,void 0,function*(){let{originalUrl:s,req:o,request:t}=r;if(s===p){let g=yield n(void 0,void 0,void 0,function*(){return t.body?t.body:o.complete?((a?.logger||Jt).error("unable to obtain request body, if parsed it in other middleware, please manually set in ctx.request.body"),null):yield Nr(o)}),m=Object.assign(Object.create({headers:o.headers}),g);if(a?.autoChallenge||!1){let{isChallenge:u,challenge:f}=qa(m,{encryptKey:e.encryptKey});if(u){r.body=f,yield i();return}}let c=yield e.invoke(m);r.body=JSON.stringify(c)}yield i()}),Z0=(p,e)=>(a,r)=>n(void 0,void 0,void 0,function*(){let{req:i,request:s}=a,o=yield n(void 0,void 0,void 0,function*(){return s.body?s.body:i.complete?((e?.logger||Jt).error("unable to obtain request body, if parsed it in other middleware, please manually set in ctx.request.body"),null):yield Nr(i)}),t=Object.assign(Object.create({headers:i.headers}),o);if(e?.autoChallenge||!1){let{isChallenge:y,challenge:c}=qa(t,{encryptKey:p.encryptKey});if(y){a.body=c,yield r();return}}let m=yield p.invoke(t);a.body=JSON.stringify(m),yield r()}),Y0=p=>{let{title:e,content:a}=p;return JSON.stringify({config:{wide_screen_mode:!0},elements:[{tag:"markdown",content:a}],header:{template:"blue",title:{content:e,tag:"plain_text"}}})},tb=Object.freeze({__proto__:null,defaultCard:Y0}),Vt=kc();Vt.util.Long=void 0;Vt.configure();var se=Vt.Reader,zc=Vt.Writer,W=Vt.util,Ft=Vt.roots.default||(Vt.roots.default={}),Xc=Ft.pbbp2=(()=>{let p={};return p.Header=(function(){function e(a){if(a)for(let r=Object.keys(a),i=0;i<r.length;++i)a[r[i]]!=null&&(this[r[i]]=a[r[i]])}return e.prototype.key="",e.prototype.value="",e.create=function(r){return new e(r)},e.encode=function(r,i){return i||(i=zc.create()),i.uint32(10).string(r.key),i.uint32(18).string(r.value),i},e.encodeDelimited=function(r,i){return this.encode(r,i).ldelim()},e.decode=function(r,i){r instanceof se||(r=se.create(r));let s=i===void 0?r.len:r.pos+i,o=new Ft.pbbp2.Header;for(;r.pos<s;){let t=r.uint32();switch(t>>>3){case 1:{o.key=r.string();break}case 2:{o.value=r.string();break}default:r.skipType(t&7);break}}if(!o.hasOwnProperty("key"))throw W.ProtocolError("missing required 'key'",{instance:o});if(!o.hasOwnProperty("value"))throw W.ProtocolError("missing required 'value'",{instance:o});return o},e.decodeDelimited=function(r){return r instanceof se||(r=new se(r)),this.decode(r,r.uint32())},e.verify=function(r){return typeof r!="object"||r===null?"object expected":W.isString(r.key)?W.isString(r.value)?null:"value: string expected":"key: string expected"},e.fromObject=function(r){if(r instanceof Ft.pbbp2.Header)return r;let i=new Ft.pbbp2.Header;return r.key!=null&&(i.key=String(r.key)),r.value!=null&&(i.value=String(r.value)),i},e.toObject=function(r,i){i||(i={});let s={};return i.defaults&&(s.key="",s.value=""),r.key!=null&&r.hasOwnProperty("key")&&(s.key=r.key),r.value!=null&&r.hasOwnProperty("value")&&(s.value=r.value),s},e.prototype.toJSON=function(){return this.constructor.toObject(this,Vt.util.toJSONOptions)},e.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/pbbp2.Header"},e})(),p.Frame=(function(){function e(a){if(this.headers=[],a)for(let r=Object.keys(a),i=0;i<r.length;++i)a[r[i]]!=null&&(this[r[i]]=a[r[i]])}return e.prototype.SeqID=W.Long?W.Long.fromBits(0,0,!0):0,e.prototype.LogID=W.Long?W.Long.fromBits(0,0,!0):0,e.prototype.service=0,e.prototype.method=0,e.prototype.headers=W.emptyArray,e.prototype.payloadEncoding="",e.prototype.payloadType="",e.prototype.payload=W.newBuffer([]),e.prototype.LogIDNew="",e.create=function(r){return new e(r)},e.encode=function(r,i){if(i||(i=zc.create()),i.uint32(8).uint64(r.SeqID),i.uint32(16).uint64(r.LogID),i.uint32(24).int32(r.service),i.uint32(32).int32(r.method),r.headers!=null&&r.headers.length)for(let s=0;s<r.headers.length;++s)Ft.pbbp2.Header.encode(r.headers[s],i.uint32(42).fork()).ldelim();return r.payloadEncoding!=null&&Object.hasOwnProperty.call(r,"payloadEncoding")&&i.uint32(50).string(r.payloadEncoding),r.payloadType!=null&&Object.hasOwnProperty.call(r,"payloadType")&&i.uint32(58).string(r.payloadType),r.payload!=null&&Object.hasOwnProperty.call(r,"payload")&&i.uint32(66).bytes(r.payload),r.LogIDNew!=null&&Object.hasOwnProperty.call(r,"LogIDNew")&&i.uint32(74).string(r.LogIDNew),i},e.encodeDelimited=function(r,i){return this.encode(r,i).ldelim()},e.decode=function(r,i){r instanceof se||(r=se.create(r));let s=i===void 0?r.len:r.pos+i,o=new Ft.pbbp2.Frame;for(;r.pos<s;){let t=r.uint32();switch(t>>>3){case 1:{o.SeqID=r.uint64();break}case 2:{o.LogID=r.uint64();break}case 3:{o.service=r.int32();break}case 4:{o.method=r.int32();break}case 5:{o.headers&&o.headers.length||(o.headers=[]),o.headers.push(Ft.pbbp2.Header.decode(r,r.uint32()));break}case 6:{o.payloadEncoding=r.string();break}case 7:{o.payloadType=r.string();break}case 8:{o.payload=r.bytes();break}case 9:{o.LogIDNew=r.string();break}default:r.skipType(t&7);break}}if(!o.hasOwnProperty("SeqID"))throw W.ProtocolError("missing required 'SeqID'",{instance:o});if(!o.hasOwnProperty("LogID"))throw W.ProtocolError("missing required 'LogID'",{instance:o});if(!o.hasOwnProperty("service"))throw W.ProtocolError("missing required 'service'",{instance:o});if(!o.hasOwnProperty("method"))throw W.ProtocolError("missing required 'method'",{instance:o});return o},e.decodeDelimited=function(r){return r instanceof se||(r=new se(r)),this.decode(r,r.uint32())},e.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(!W.isInteger(r.SeqID)&&!(r.SeqID&&W.isInteger(r.SeqID.low)&&W.isInteger(r.SeqID.high)))return"SeqID: integer|Long expected";if(!W.isInteger(r.LogID)&&!(r.LogID&&W.isInteger(r.LogID.low)&&W.isInteger(r.LogID.high)))return"LogID: integer|Long expected";if(!W.isInteger(r.service))return"service: integer expected";if(!W.isInteger(r.method))return"method: integer expected";if(r.headers!=null&&r.hasOwnProperty("headers")){if(!Array.isArray(r.headers))return"headers: array expected";for(let i=0;i<r.headers.length;++i){let s=Ft.pbbp2.Header.verify(r.headers[i]);if(s)return"headers."+s}}return r.payloadEncoding!=null&&r.hasOwnProperty("payloadEncoding")&&!W.isString(r.payloadEncoding)?"payloadEncoding: string expected":r.payloadType!=null&&r.hasOwnProperty("payloadType")&&!W.isString(r.payloadType)?"payloadType: string expected":r.payload!=null&&r.hasOwnProperty("payload")&&!(r.payload&&typeof r.payload.length=="number"||W.isString(r.payload))?"payload: buffer expected":r.LogIDNew!=null&&r.hasOwnProperty("LogIDNew")&&!W.isString(r.LogIDNew)?"LogIDNew: string expected":null},e.fromObject=function(r){if(r instanceof Ft.pbbp2.Frame)return r;let i=new Ft.pbbp2.Frame;if(r.SeqID!=null&&(W.Long?(i.SeqID=W.Long.fromValue(r.SeqID)).unsigned=!0:typeof r.SeqID=="string"?i.SeqID=parseInt(r.SeqID,10):typeof r.SeqID=="number"?i.SeqID=r.SeqID:typeof r.SeqID=="object"&&(i.SeqID=new W.LongBits(r.SeqID.low>>>0,r.SeqID.high>>>0).toNumber(!0))),r.LogID!=null&&(W.Long?(i.LogID=W.Long.fromValue(r.LogID)).unsigned=!0:typeof r.LogID=="string"?i.LogID=parseInt(r.LogID,10):typeof r.LogID=="number"?i.LogID=r.LogID:typeof r.LogID=="object"&&(i.LogID=new W.LongBits(r.LogID.low>>>0,r.LogID.high>>>0).toNumber(!0))),r.service!=null&&(i.service=r.service|0),r.method!=null&&(i.method=r.method|0),r.headers){if(!Array.isArray(r.headers))throw TypeError(".pbbp2.Frame.headers: array expected");i.headers=[];for(let s=0;s<r.headers.length;++s){if(typeof r.headers[s]!="object")throw TypeError(".pbbp2.Frame.headers: object expected");i.headers[s]=Ft.pbbp2.Header.fromObject(r.headers[s])}}return r.payloadEncoding!=null&&(i.payloadEncoding=String(r.payloadEncoding)),r.payloadType!=null&&(i.payloadType=String(r.payloadType)),r.payload!=null&&(typeof r.payload=="string"?W.base64.decode(r.payload,i.payload=W.newBuffer(W.base64.length(r.payload)),0):r.payload.length>=0&&(i.payload=r.payload)),r.LogIDNew!=null&&(i.LogIDNew=String(r.LogIDNew)),i},e.toObject=function(r,i){i||(i={});let s={};if((i.arrays||i.defaults)&&(s.headers=[]),i.defaults){if(W.Long){let o=new W.Long(0,0,!0);s.SeqID=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else s.SeqID=i.longs===String?"0":0;if(W.Long){let o=new W.Long(0,0,!0);s.LogID=i.longs===String?o.toString():i.longs===Number?o.toNumber():o}else s.LogID=i.longs===String?"0":0;s.service=0,s.method=0,s.payloadEncoding="",s.payloadType="",i.bytes===String?s.payload="":(s.payload=[],i.bytes!==Array&&(s.payload=W.newBuffer(s.payload))),s.LogIDNew=""}if(r.SeqID!=null&&r.hasOwnProperty("SeqID")&&(typeof r.SeqID=="number"?s.SeqID=i.longs===String?String(r.SeqID):r.SeqID:s.SeqID=i.longs===String?W.Long.prototype.toString.call(r.SeqID):i.longs===Number?new W.LongBits(r.SeqID.low>>>0,r.SeqID.high>>>0).toNumber(!0):r.SeqID),r.LogID!=null&&r.hasOwnProperty("LogID")&&(typeof r.LogID=="number"?s.LogID=i.longs===String?String(r.LogID):r.LogID:s.LogID=i.longs===String?W.Long.prototype.toString.call(r.LogID):i.longs===Number?new W.LongBits(r.LogID.low>>>0,r.LogID.high>>>0).toNumber(!0):r.LogID),r.service!=null&&r.hasOwnProperty("service")&&(s.service=r.service),r.method!=null&&r.hasOwnProperty("method")&&(s.method=r.method),r.headers&&r.headers.length){s.headers=[];for(let o=0;o<r.headers.length;++o)s.headers[o]=Ft.pbbp2.Header.toObject(r.headers[o],i)}return r.payloadEncoding!=null&&r.hasOwnProperty("payloadEncoding")&&(s.payloadEncoding=r.payloadEncoding),r.payloadType!=null&&r.hasOwnProperty("payloadType")&&(s.payloadType=r.payloadType),r.payload!=null&&r.hasOwnProperty("payload")&&(s.payload=i.bytes===String?W.base64.encode(r.payload,0,r.payload.length):i.bytes===Array?Array.prototype.slice.call(r.payload):r.payload),r.LogIDNew!=null&&r.hasOwnProperty("LogIDNew")&&(s.LogIDNew=r.LogIDNew),s},e.prototype.toJSON=function(){return this.constructor.toObject(this,Vt.util.toJSONOptions)},e.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/pbbp2.Frame"},e})(),p})(),eb=p=>Xc.Frame.decode(p),Yo=class{constructor(){this.client={appId:"",appSecret:"",domain:j.Domain.Feishu},this.ws={connectUrl:"",pingInterval:120*1e3,reconnectCount:-1,reconnectInterval:120*1e3,reconnectNonce:30*1e3,deviceId:"",serviceId:"",autoReconnect:!0},this.wsInstance=null}updateClient(e){Object.assign(this.client,e)}updateWs(e){Object.assign(this.ws,e)}getClient(e){return e===void 0?this.client:this.client[e]}getWS(e){return e===void 0?this.ws:this.ws[e]}get wsConfigUrl(){return`${this.getClient("domain")}/callback/ws/endpoint`}setWSInstance(e){this.wsInstance=e}getWSInstance(){return this.wsInstance}},tn=class{constructor(e){this.cache=new Map,this.logger=e.logger,this.clearAtInterval()}mergeData(e){let{message_id:a,sum:r,seq:i,trace_id:s,data:o}=e,t=this.cache.get(a);if(t)t.buffer[i]=o;else{let m=new Array(r).fill(void 0);m[i]=o,this.cache.set(a,{buffer:m,trace_id:s,message_id:a,create_time:Date.now()})}let g=this.cache.get(a);if(g?.buffer.every(m=>!!m)){let m=g.buffer.reduce((u,f)=>{let _=new Uint8Array(u.byteLength+f.byteLength);return _.set(u,0),_.set(f,u.length),_},new Uint8Array([])),y=new TextDecoder("utf-8").decode(m),c=JSON.parse(y);return this.deleteCache(a),c}return null}deleteCache(e){this.cache.delete(e)}clearAtInterval(){if(this.timer)return;let e=1e4;this.timer=setInterval(()=>{let a=Date.now();this.cache.forEach((r,i)=>{var s;let{create_time:o,trace_id:t,message_id:g}=r;a-o>e&&((s=this.logger)===null||s===void 0||s.debug(`${g} event data is deleted as expired, trace_id: ${t}`),this.deleteCache(i))})},e),typeof this.timer.unref=="function"&&this.timer.unref()}destroy(){this.timer&&(clearInterval(this.timer),this.timer=void 0),this.cache.clear()}},Sa;(function(p){p[p.ok=0]="ok",p[p.system_busy=1]="system_busy",p[p.forbidden=403]="forbidden",p[p.auth_failed=514]="auth_failed",p[p.internal_error=1000040343]="internal_error",p[p.exceed_conn_limit=1000040350]="exceed_conn_limit"})(Sa||(Sa={}));var Ia;(function(p){p[p.control=0]="control",p[p.data=1]="data"})(Ia||(Ia={}));var wa;(function(p){p.type="type",p.message_id="message_id",p.sum="sum",p.seq="seq",p.trace_id="trace_id",p.biz_rt="biz_rt",p.handshake_status="handshake-status",p.handshake_msg="handshake-msg",p.handshake_autherrcode="handshake-autherrcode"})(wa||(wa={}));var Le;(function(p){p.event="event",p.card="card",p.ping="ping",p.pong="pong"})(Le||(Le={}));var Dr;(function(p){p[p.ok=200]="ok",p[p.internal_server_error=500]="internal_server_error"})(Dr||(Dr={}));var Br=class{constructor(e){var a;this.wsConfig=new Yo,this.reconnectGeneration=0,this.isConnecting=!1,this.reconnectInfo={lastConnectTime:0,nextConnectTime:0},this.hasEverConnected=!1,this.terminalError=!1,this.currentReconnectAttempts=0;let{appId:r,appSecret:i,agent:s,domain:o=j.Domain.Feishu,httpInstance:t=We,loggerLevel:g=j.LoggerLevel.info,logger:m=Jt,autoReconnect:y=!0,source:c,extraUaTags:u,onReady:f,onError:_,onReconnecting:S,onReconnected:b,handshakeTimeoutMs:I,wsConfig:x}=e;this.userAgent=vn(c,{extraTags:u}),this.logger=new oe(g,m),Me(!r,()=>this.logger.error("appId is needed")),Me(!i,()=>this.logger.error("appSecret is needed")),this.agent=s,this.dataCache=new tn({logger:this.logger}),this.httpInstance=t,this.wsConfig.updateClient({appId:r,appSecret:i,domain:Jc(o)}),this.wsConfig.updateWs({autoReconnect:y}),this.onReady=f,this.onError=_,this.onReconnecting=S,this.onReconnected=b,this.handshakeTimeoutMs=I,this.pingTimeoutSec=(a=x?.pingTimeout)!==null&&a!==void 0?a:0}armLiveness(){this.pingTimeoutSec&&(this.livenessTimer&&clearTimeout(this.livenessTimer),this.livenessTimer=setTimeout(()=>{var e;this.livenessTimer=void 0,this.logger.warn("[ws]",`no pong/inbound within ${this.pingTimeoutSec}s of last ping, terminating to trigger reconnect`);try{(e=this.wsConfig.getWSInstance())===null||e===void 0||e.terminate()}catch{}},this.pingTimeoutSec*1e3))}clearLiveness(){this.livenessTimer&&(clearTimeout(this.livenessTimer),this.livenessTimer=void 0)}safeInvoke(e,a,...r){if(a)try{a(...r)}catch(i){this.logger.error(`[ws] ${e} callback threw`,i)}}pullConnectConfig(){return n(this,void 0,void 0,function*(){let{appId:e,appSecret:a}=this.wsConfig.getClient();try{let{code:r,data:{URL:i,ClientConfig:s},msg:o}=yield this.httpInstance.request({method:"post",url:this.wsConfig.wsConfigUrl,data:{AppID:e,AppSecret:a},headers:{locale:"zh","User-Agent":this.userAgent},timeout:15e3});if(r!==Sa.ok){let m=r===Sa.system_busy?"system busy":o;return this.logger.error("[ws]",`code: ${r}, ${m}`),r===Sa.internal_error?{ok:!1,retryable:!0}:{ok:!1,retryable:!1,error:`pullConnectConfig failed: code=${r}, msg=${m}`}}let{device_id:t,service_id:g}=G0.default.parse(i);return this.wsConfig.updateWs({connectUrl:i,deviceId:t,serviceId:g,pingInterval:s.PingInterval*1e3,reconnectCount:s.ReconnectCount,reconnectInterval:s.ReconnectInterval*1e3,reconnectNonce:s.ReconnectNonce*1e3}),this.logger.debug("[ws]",`get connect config success, ws url: ${i}`),{ok:!0}}catch(r){return this.logger.error("[ws]",r?.message||"system busy"),{ok:!1,retryable:!0}}})}connect(){let e=this.wsConfig.getWS("connectUrl"),a;try{let{agent:r}=this;a=new qr.default(e,{agent:r})}catch{this.logger.error("[ws]","new WebSocket error")}return a?new Promise(r=>{let i=!1,s,o=t=>{i||(i=!0,s&&clearTimeout(s),r(t))};this.handshakeTimeoutMs&&this.handshakeTimeoutMs>0&&(s=setTimeout(()=>{this.logger.error("[ws]",`handshake timeout after ${this.handshakeTimeoutMs}ms`),a.removeAllListeners();try{a.terminate()}catch{}o(!1)},this.handshakeTimeoutMs)),a.on("open",()=>{this.logger.debug("[ws]","ws connect success"),this.wsConfig.setWSInstance(a),this.pingLoop(),o(!0)}),a.on("error",()=>{this.logger.error("[ws]","ws connect failed"),o(!1)})}):Promise.resolve(!1)}reConnect(e=!1){return n(this,void 0,void 0,function*(){if(this.isConnecting&&!e){this.logger.debug("[ws]","repeat connection");return}this.isConnecting=!0;let a=++this.reconnectGeneration,r=()=>n(this,void 0,void 0,function*(){this.reconnectInfo.lastConnectTime=Date.now();let y=yield this.pullConnectConfig();return y.ok?(yield this.connect())?(this.communicate(),{ok:!0}):{ok:!1,retryable:!0}:y});this.pingInterval&&clearTimeout(this.pingInterval),this.reconnectInterval&&clearTimeout(this.reconnectInterval);let i=this.wsConfig.getWSInstance();if(e){i&&i?.terminate();let y={ok:!1,retryable:!0};try{y=yield r()}finally{this.isConnecting=!1}if(y.ok)this.hasEverConnected=!0,this.safeInvoke("onReady",this.onReady);else if(y.retryable)this.logger.error("[ws]","connect failed"),yield this.reConnect();else{this.hasEverConnected=!1,this.terminalError=!0,this.safeInvoke("onError",this.onError,new Error(y.error));return}this.logger.info("[ws]","ws client ready");return}let{autoReconnect:s,reconnectNonce:o,reconnectCount:t,reconnectInterval:g}=this.wsConfig.getWS();if(!s){this.hasEverConnected||(this.terminalError=!0,this.safeInvoke("onError",this.onError,new Error("WebSocket connect failed and autoReconnect is disabled")));return}this.logger.info("[ws]","reconnect"),this.hasEverConnected&&this.safeInvoke("onReconnecting",this.onReconnecting),i&&i?.terminate(),this.wsConfig.setWSInstance(null);let m=o?o*Math.random():0;this.reconnectInterval=setTimeout(()=>n(this,void 0,void 0,function*(){(function y(c){return n(this,void 0,void 0,function*(){if(a!==this.reconnectGeneration)return;c++,this.currentReconnectAttempts=c;let u=yield r();if(a===this.reconnectGeneration){if(u.ok){this.logger.debug("[ws]","reconnect success"),this.currentReconnectAttempts=0,this.hasEverConnected?this.safeInvoke("onReconnected",this.onReconnected):(this.hasEverConnected=!0,this.safeInvoke("onReady",this.onReady)),this.isConnecting=!1;return}if(!u.retryable){this.isConnecting=!1,this.hasEverConnected=!1,this.terminalError=!0,this.safeInvoke("onError",this.onError,new Error(u.error));return}if(this.logger.info("ws",`unable to connect to the server after trying ${c} times")`),t>=0&&c>=t){this.isConnecting=!1,this.terminalError=!0,this.safeInvoke("onError",this.onError,new Error(`WebSocket reconnect exhausted after ${c} attempts`));return}this.reconnectInterval=setTimeout(()=>{y.bind(this)(c)},g),this.reconnectInfo.nextConnectTime=Date.now()+g}})}).bind(this)(0)}),m),this.reconnectInfo.nextConnectTime=Date.now()+m})}pingLoop(){let{serviceId:e,pingInterval:a}=this.wsConfig.getWS(),r=this.wsConfig.getWSInstance();if(r?.readyState===qr.default.OPEN){let i={headers:[{key:wa.type,value:Le.ping}],service:Number(e),method:Ia.control,SeqID:0,LogID:0};this.sendMessage(i),this.armLiveness(),this.logger.trace("[ws]","ping success")}this.pingInterval=setTimeout(this.pingLoop.bind(this),a)}communicate(){let e=this.wsConfig.getWSInstance();e?.on("message",a=>n(this,void 0,void 0,function*(){this.clearLiveness();let r=eb(a),{method:i}=r;i===Ia.control&&(yield this.handleControlData(r)),i===Ia.data&&(yield this.handleEventData(r))})),e?.on("error",a=>{this.logger.error("[ws]","ws error")}),e?.on("close",()=>{this.logger.debug("[ws]","client closed"),this.clearLiveness(),this.reConnect()})}handleControlData(e){var a;return n(this,void 0,void 0,function*(){let r=(a=e.headers.find(s=>s.key===wa.type))===null||a===void 0?void 0:a.value,i=e.payload;if(r!==Le.ping&&r===Le.pong&&i){this.logger.trace("[ws]","receive pong");let s=new TextDecoder("utf-8").decode(i),{PingInterval:o,ReconnectCount:t,ReconnectInterval:g,ReconnectNonce:m}=JSON.parse(s);this.wsConfig.updateWs({pingInterval:o*1e3,reconnectCount:t,reconnectInterval:g*1e3,reconnectNonce:m*1e3}),this.logger.trace("[ws]","update wsConfig with pong data")}})}handleEventData(e){var a;return n(this,void 0,void 0,function*(){let r=e.headers.reduce((_,S)=>(_[S.key]=S.value,_),{}),{message_id:i,sum:s,seq:o,type:t,trace_id:g}=r,m=e.payload;if(t!==Le.event)return;let y=this.dataCache.mergeData({message_id:i,sum:Number(s),seq:Number(o),trace_id:g,data:m});if(!y)return;this.logger.debug("[ws]",`receive message, message_type: ${t}; message_id: ${i}; trace_id: ${g}; data: ${y.data}`);let c={code:Dr.ok},u=Date.now();try{let _=yield(a=this.eventDispatcher)===null||a===void 0?void 0:a.invoke(y,{needCheck:!1});_&&(c.data=Buffer.from(JSON.stringify(_)).toString("base64"))}catch(_){c.code=Dr.internal_server_error,this.logger.error("[ws]",`invoke event failed, message_type: ${t}; message_id: ${i}; trace_id: ${g}; error: ${_}`)}let f=Date.now();this.sendMessage(Object.assign(Object.assign({},e),{headers:[...e.headers,{key:wa.biz_rt,value:String(u-f)}],payload:new TextEncoder().encode(JSON.stringify(c))}))})}sendMessage(e){var a;let r=this.wsConfig.getWSInstance();if(r?.readyState===qr.default.OPEN){let i=Xc.Frame.encode(e).finish();(a=this.wsConfig.getWSInstance())===null||a===void 0||a.send(i,s=>{s&&this.logger.error("[ws]","send data failed")})}}getReconnectInfo(){return this.reconnectInfo}getConnectionStatus(){return{state:this.computeState(),lastConnectTime:this.reconnectInfo.lastConnectTime||void 0,nextConnectTime:this.reconnectInfo.nextConnectTime||void 0,reconnectAttempts:this.currentReconnectAttempts}}computeState(){var e;return this.terminalError?"failed":this.isConnecting&&!this.hasEverConnected?"connecting":this.isConnecting&&this.hasEverConnected?"reconnecting":((e=this.wsConfig.getWSInstance())===null||e===void 0?void 0:e.readyState)===qr.default.OPEN?"connected":"idle"}close(e={}){let{force:a=!1}=e;this.reconnectGeneration++,this.pingInterval&&(clearTimeout(this.pingInterval),this.pingInterval=void 0),this.reconnectInterval&&(clearTimeout(this.reconnectInterval),this.reconnectInterval=void 0),this.clearLiveness(),this.dataCache.destroy(),this.isConnecting=!1,this.currentReconnectAttempts=0;let r=this.wsConfig.getWSInstance();r&&(r.removeAllListeners(),a?r.terminate():r.close(),this.wsConfig.setWSInstance(null)),this.logger.info("[ws]",`ws client closed manually${a?" (force)":""}`)}start(e){return n(this,void 0,void 0,function*(){let{appId:a}=this.wsConfig.getClient();if(!/^cli_[0-9a-fA-F]{16}$/.test(a)){this.logger.error("[ws]",`invalid appId: ${a}`);return}let{eventDispatcher:r}=e;if(!r){this.logger.warn("[ws]","client need to start with a eventDispatcher");return}this.terminalError=!1,this.currentReconnectAttempts=0,this.dataCache.clearAtInterval(),this.logger.info("[ws]",`receive events or callbacks through persistent connection only available in self-build & Feishu app, Configured in:
|
|
14
|
-
Developer Console(\u5F00\u53D1\u8005\u540E\u53F0)
|
|
15
|
-
->
|
|
16
|
-
Events and Callbacks(\u4E8B\u4EF6\u4E0E\u56DE\u8C03)
|
|
17
|
-
->
|
|
18
|
-
Mode of event/callback subscription(\u8BA2\u9605\u65B9\u5F0F)
|
|
19
|
-
->
|
|
20
|
-
Receive events/callbacks through persistent connection(\u4F7F\u7528 \u957F\u8FDE\u63A5 \u63A5\u6536\u4E8B\u4EF6/\u56DE\u8C03)`),this.eventDispatcher=r,this.reConnect(!0)})}},en=class{constructor(){this.sessions=new Map}set(e,a){return n(this,void 0,void 0,function*(){let r=this.sessions.get(e.toString())||{},i=Qc(r,a);return this.sessions.set(e.toString(),i),!0})}get(e){return n(this,void 0,void 0,function*(){return this.sessions.get(e.toString())})}},Pt;(function(p){p[p.ERROR=-1]="ERROR",p[p.SUCCESS=0]="SUCCESS",p[p.EXPIRED=1]="EXPIRED",p[p.CANCELLED=2]="CANCELLED",p[p.FAILED=3]="FAILED",p[p.OTHER=4]="OTHER"})(Pt||(Pt={}));var an=class{constructor(e){this.completions={create:this.create.bind(this),createWithStream:this.createWithStream.bind(this),sessionRecords:{get:this.getRecords.bind(this),update:this.updateRecords.bind(this)}},this.client=e.client,this.logger=e.client.logger,this.cache=e.cache||new en}getSessionId(e){var a;return n(this,void 0,void 0,function*(){let{sessionId:r,payload:i,options:s}=e,o=yield this.getRecords();if(r&&r in o)return o[r];let t=yield this.client.aily.v1.ailySession.create({data:i},s);if(t.code===0&&t.data){let g=(a=t.data.session)===null||a===void 0?void 0:a.id;return r&&(yield this.updateRecords({[r]:g})),g}else{this.logger.error("get aily session id error",t.msg);return}})}waitReply(e,a){var r,i;return n(this,void 0,void 0,function*(){let{sessionId:s,ailyAppId:o,message:t,sessionInfo:g,messageInfo:m,runInfo:y,skillId:c}=e,u=yield this.getSessionId({sessionId:s,payload:g,options:a});if(!u)throw Pt.ERROR;let f=yield this.client.aily.v1.ailySessionAilyMessage.create({path:{aily_session_id:u},data:Object.assign(Object.assign({},m),{content:t,idempotent_id:`${Date.now()}`,content_type:"MDX"})},a);if(!(f.code===0&&f.data))throw this.logger.error("create aily message error",f.msg),Pt.ERROR;let _=(r=f.data.message)===null||r===void 0?void 0:r.id,S=yield this.client.aily.v1.ailySessionRun.create({path:{aily_session_id:u},data:Object.assign({app_id:o,skill_id:c},y)},a);if(!(S.code===0&&S.data))throw this.logger.error("create aily session run error",S.msg),Pt.ERROR;let b=(i=S.data.run)===null||i===void 0?void 0:i.id;if(!b)throw this.logger.error("run id is empty"),Pt.ERROR;let I=()=>n(this,void 0,void 0,function*(){return new Promise(z=>{setTimeout(()=>n(this,void 0,void 0,function*(){var B,N;let V=yield this.client.aily.v1.ailySessionRun.get({path:{aily_session_id:u,run_id:b}},a);if(!(V.code===0&&V.data)){z(3);return}switch((N=(B=V.data)===null||B===void 0?void 0:B.run)===null||N===void 0?void 0:N.status){case"QUEUED":case"IN_PROGRESS":yield n(this,void 0,void 0,function*(){let at=yield I();z(at)});case"COMPLETED":z(Pt.SUCCESS);case"EXPIRED":z(Pt.EXPIRED);case"CANCELLED":z(Pt.CANCELLED);case"FAILED":z(Pt.FAILED);default:z(Pt.OTHER)}}),500)})}),x=yield I();if(x!==Pt.SUCCESS)throw this.logger.error("aily run error"),x;return{ailySessionId:u,runId:b,messageId:_}})}create(e,a){var r,i,s,o,t;return n(this,void 0,void 0,function*(){let{ailySessionId:g,runId:m}=yield this.waitReply(e,a),y;try{for(var c=!0,u=qc(yield this.client.aily.v1.ailySessionAilyMessage.listWithIterator({path:{aily_session_id:g},params:{run_id:m,with_partial_message:!1}},a)),f;f=yield u.next(),r=f.done,!r;){o=f.value,c=!1;try{let _=o;if(!_)continue;(t=_?.messages)===null||t===void 0||t.forEach(S=>{var b;((b=S.sender)===null||b===void 0?void 0:b.sender_type)==="ASSISTANT"&&(y=S)})}finally{c=!0}}}catch(_){i={error:_}}finally{try{!c&&!r&&(s=u.return)&&(yield s.call(u))}finally{if(i)throw i.error}}if(!y)throw this.logger.error("no aily reply"),Pt.ERROR;return y})}createWithStream(e,a){return n(this,void 0,void 0,function*(){let{ailySessionId:r,runId:i,messageId:s}=yield this.waitReply(e,a),o=()=>this.client.aily.v1.ailySessionAilyMessage.listWithIterator({path:{aily_session_id:r},params:{run_id:i,with_partial_message:!0}},a),t=!1;return{[Symbol.asyncIterator](){return T(this,arguments,function*(){var y,c,u,f;try{for(var _=!0,S=qc(yield v(o())),b;b=yield v(S.next()),y=b.done,!y;){f=b.value,_=!1;try{let I=f;if(!I)continue;for(let x of I.messages||[])if(t){if(yield yield v(x),x.status==="COMPLETED")return yield v(void 0)}else x.id===s&&x.status==="COMPLETED"&&(t=!0)}finally{_=!0}}}catch(I){c={error:I}}finally{try{!_&&!y&&(u=S.return)&&(yield v(u.call(S)))}finally{if(c)throw c.error}}})}}})}getRecords(){return n(this,void 0,void 0,function*(){return(yield this.cache.get($c))||{}})}updateRecords(e){return n(this,void 0,void 0,function*(){yield this.cache.set($c,e)})}};function fa(p,e){if(typeof p!="object"||p===null||Array.isArray(p))throw new Error(`${e} must be an object`)}function ga(p,e,a){for(let r of Object.keys(p))if(!e.includes(r))throw new Error(`${a}.${r} is not allowed; allowed keys: ${e.join(", ")}`)}function ab(p,e){if(p!==void 0){if(!Array.isArray(p))throw new Error(`${e} must be an array of strings`);return p.forEach((a,r)=>{if(typeof a!="string"||a==="")throw new Error(`${e}[${r}] must be a non-empty string`)}),p}}function rb(p){fa(p,"addons"),ga(p,["scopes","events","callbacks"],"addons");let e=0,a=(i,s)=>{var o;let t=ab(i,s);return e+=(o=t?.length)!==null&&o!==void 0?o:0,t},r={};if(p.scopes!==void 0&&(fa(p.scopes,"addons.scopes"),ga(p.scopes,["tenant","user"],"addons.scopes"),r.scopes={tenant:a(p.scopes.tenant,"addons.scopes.tenant"),user:a(p.scopes.user,"addons.scopes.user")}),p.events!==void 0&&(fa(p.events,"addons.events"),ga(p.events,["items"],"addons.events"),p.events.items!==void 0&&(fa(p.events.items,"addons.events.items"),ga(p.events.items,["tenant","user"],"addons.events.items"),r.events={items:{tenant:a(p.events.items.tenant,"addons.events.items.tenant"),user:a(p.events.items.user,"addons.events.items.user")}})),p.callbacks!==void 0&&(fa(p.callbacks,"addons.callbacks"),ga(p.callbacks,["items"],"addons.callbacks"),r.callbacks={items:a(p.callbacks.items,"addons.callbacks.items")}),e===0)throw new Error("addons must contain at least one scope, event or callback");return r}function ib(p){let e=JSON.stringify(rb(p));return F0.gzipSync(Buffer.from(e,"utf8")).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function va(p,e){return{code:p,description:e}}var Ec="node-sdk",sb="accounts.feishu.cn",ob="accounts.larksuite.com",nb="/oauth/v1/app/registration",Oc=6;function hb(p,e){let{avatar:a,name:r,desc:i}=e;if(a!==void 0){let s=Array.isArray(a)?a:[a];if(s.length===0)throw new Error("appPreset.avatar must contain at least 1 URL");if(s.length>Oc)throw new Error(`appPreset.avatar supports at most ${Oc} URLs, got ${s.length}`);s.forEach((o,t)=>{if(typeof o!="string"||o==="")throw new Error(`appPreset.avatar[${t}] must be a non-empty string`);p.searchParams.append("avatar",o)})}r!==void 0&&p.searchParams.set("name",r),i!==void 0&&p.searchParams.set("desc",i)}function Zc(p,e){var a;return n(this,void 0,void 0,function*(){try{return yield We.post(`${p}${nb}`,new URLSearchParams(e).toString(),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})}catch(r){if(r instanceof gn.AxiosError&&(!((a=r.response)===null||a===void 0)&&a.data))return r.response.data;throw r}})}function db(p){return Zc(p,{action:"begin",archetype:"PersonalAgent",auth_method:"client_secret",request_user_info:"open_id"})}function lb(p){return new Promise((e,a)=>{var r,i;let{baseUrl:s,interval:o}=p,t=!1,g=null,m=null,y=()=>{var f;g!==null&&(clearTimeout(g),g=null),m!==null&&(clearTimeout(m),m=null),(f=p.signal)===null||f===void 0||f.removeEventListener("abort",c)},c=()=>{y(),a(va("abort","Registration was aborted"))};if(!((r=p.signal)===null||r===void 0)&&r.aborted)return a(va("abort","Registration was aborted"));(i=p.signal)===null||i===void 0||i.addEventListener("abort",c,{once:!0}),m=setTimeout(()=>{y(),a(va("expired_token","Polling timed out"))},p.expireIn);let u=()=>n(this,void 0,void 0,function*(){var f,_,S,b,I,x;try{let z=yield Zc(s,{action:"poll",device_code:p.deviceCode});if(((f=z.user_info)===null||f===void 0?void 0:f.tenant_brand)==="lark"&&!t){s=p.larkBaseUrl,t=!0,(_=p.onStatusChange)===null||_===void 0||_.call(p,{status:"domain_switched"}),u();return}if(z.client_id&&z.client_secret){y(),e({client_id:z.client_id,client_secret:z.client_secret,user_info:z.user_info});return}switch(z.error){case"authorization_pending":(S=p.onStatusChange)===null||S===void 0||S.call(p,{status:"polling"});break;case"slow_down":o+=5e3,(b=p.onStatusChange)===null||b===void 0||b.call(p,{status:"slow_down",interval:o/1e3});break;case"access_denied":case"expired_token":y(),a(va(z.error,(I=z.error_description)!==null&&I!==void 0?I:"Unknown error"));return;default:if(z.error){y(),a(va(z.error,(x=z.error_description)!==null&&x!==void 0?x:"Unknown error"));return}break}g=setTimeout(u,o)}catch(z){y(),a(z)}});u()})}function cb(p){var e,a,r,i;return n(this,void 0,void 0,function*(){let{domain:s,source:o,signal:t,onQRCodeReady:g,onStatusChange:m,appPreset:y,addons:c,createOnly:u,appId:f}=p;if(f!==void 0&&(typeof f!="string"||f===""))throw new Error("appId must be a non-empty string");let _=`https://${s??sb}`,S=yield db(_),b=new URL(S.verification_uri_complete);return b.searchParams.set("from","sdk"),b.searchParams.set("source",o?`${Ec}/${o}`:Ec),b.searchParams.set("tp","sdk"),y&&hb(b,y),c&&b.searchParams.set("addons",ib(c)),u===!0&&b.searchParams.set("createOnly","true"),f&&b.searchParams.set("clientID",f),g({url:b.toString(),expireIn:(e=S.expires_in)!==null&&e!==void 0?e:600}),lb({baseUrl:_,deviceCode:S.device_code,interval:((a=S.interval)!==null&&a!==void 0?a:5)*1e3,expireIn:((r=S.expires_in)!==null&&r!==void 0?r:600)*1e3,larkBaseUrl:`https://${(i=p.larkDomain)!==null&&i!==void 0?i:ob}`,signal:t,onStatusChange:m})})}var rt=class extends Error{constructor(e,a,r){super(a),this.name="LarkChannelError",this.code=e,this.cause=r?.cause,this.context=r?.context}},Lr=class{constructor(e,a){this.opts=e,this.fire=a,this.pendingChars=0,this.lastFireAt=0}note(e){if(this.pendingChars+=e,this.pendingChars>=this.opts.chars){this.fireSoon(0);return}if(!this.timer){let a=Date.now()-this.lastFireAt,r=Math.max(0,this.opts.ms-a);this.fireSoon(r)}}fireSoon(e){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.timer=void 0,this.doFire()},e)}flushNow(){return n(this,void 0,void 0,function*(){this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.inFlight&&(yield this.inFlight),yield this.doFire()})}doFire(){return n(this,void 0,void 0,function*(){if(this.inFlight){this.fireSoon(this.opts.ms);return}let e=n(this,void 0,void 0,function*(){this.pendingChars=0,this.lastFireAt=Date.now(),yield this.fire()});this.inFlight=e;try{yield e}finally{this.inFlight=void 0}})}dispose(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)}},Mr=class{constructor(){this.tail=Promise.resolve()}enqueue(e){let a=this.tail.then(e,e);return this.tail=a.then(()=>{},()=>{}),a}drain(){return this.tail}};function pb(p,e){if(!p)return e;if(!e)return p;if(e.startsWith(p))return e;if(p.startsWith(e))return p;let a=Math.min(p.length,e.length);for(let r=a;r>0;r--)if(p.endsWith(e.substring(0,r)))return p+e.substring(r);return p+e}function Yc(p,e){if(p.length<=e)return[p];let a=p.split(`
|
|
21
|
-
`),r=[],i=[],s=0,o=null,t=()=>{if(i.length===0)return;let g=i.join(`
|
|
22
|
-
`);o!==null&&(g+="\n```"),r.push(g),i=[],s=0,o!==null&&(i.push("```"+o),s=i[0].length)};for(let g of a){let m=g.match(/^```(\w*)$/),y=g.length+(i.length>0?1:0),c=/^#{1,6}\s/.test(g),u=s>e*.75;(s+y>e||c&&u&&i.length>0)&&t(),i.push(g),s+=y,m&&(o=o===null?m[1]||"":null)}return t(),r}var mb=100,ub=50,yb="Thinking...",xc="(no content)",fb="[Generating...]",gb=50,vb=`
|
|
23
|
-
|
|
24
|
-
\u2014 _(Generation interrupted)_`,_b=3e4,Er="stream_md";function zs(p,e=gb){if(!p)return"";let a=p.replace(/\s+/g," ").trim();return a.length<=e?a:a.slice(0,e-1)+"\u2026"}function Gc(p){return{schema:"2.0",config:{streaming_mode:!0,summary:{content:fb},streaming_config:{print_frequency_ms:{default:70},print_step:{default:1},print_strategy:"fast"}},body:{elements:[{tag:"markdown",element_id:Er,content:p}]}}}var rn=class{constructor(e,a,r,i){var s,o,t;this.sender=e,this.to=a,this.idType=r,this.opts=i,this.content="",this.fullAccumulated="",this._messageId="",this.cardId="",this.sequence=0,this.queue=new Mr,this.started=!1,this.streamingFailed=!1,this.rolloverMessageIds=[];let g=this.sender.config;this.throttle=new Lr({ms:(s=g.streamThrottleMs)!==null&&s!==void 0?s:mb,chars:(o=g.streamThrottleChars)!==null&&o!==void 0?o:ub},()=>this.pushContent()),this.maxChars=(t=g.streamMaxElementChars)!==null&&t!==void 0?t:_b}get messageId(){return this._messageId}append(e){return n(this,void 0,void 0,function*(){if(!e)return;yield this.ensureStarted();let a=pb(this.fullAccumulated,e),r=a.slice(this.fullAccumulated.length);this.fullAccumulated=a,this.content+=r,this.throttle.note(e.length)})}setContent(e){return n(this,void 0,void 0,function*(){yield this.ensureStarted(),this.fullAccumulated=e??"",this.content=e??"",this.throttle.note(Number.MAX_SAFE_INTEGER)})}run(e){return n(this,void 0,void 0,function*(){yield this.ensureStarted();try{yield e(this)}catch(a){throw yield this.failTerminal(a),a}return yield this.completeTerminal(),{messageId:this._messageId}})}ensureStarted(){var e;return n(this,void 0,void 0,function*(){if(this.started)return;this.started=!0;let a=(e=this.sender.config.streamInitialText)!==null&&e!==void 0?e:yb,r=Gc(a||"...");this.cardId=yield this.sender.createCardInstance(r),this._messageId=yield this.sender.sendCardByReference(this.to,this.idType,this.cardId,this.opts)})}pushContent(){return n(this,void 0,void 0,function*(){!this.cardId||this.streamingFailed||(yield this.queue.enqueue(()=>n(this,void 0,void 0,function*(){var e,a;if(!this.streamingFailed)try{yield this.pushSnapshot()}catch(r){this.streamingFailed=!0,(a=(e=this.sender.logger).warn)===null||a===void 0||a.call(e,"[stream] update failed",r)}})))})}pushSnapshot(){return n(this,void 0,void 0,function*(){for(;this.content.length>this.maxChars;)yield this.rollover();let e=this.content||"...";yield this.sender.updateCardElementContent(this.cardId,Er,e,++this.sequence)})}rollover(){return n(this,void 0,void 0,function*(){let e=Yc(this.content,this.maxChars);if(e.length<2)throw new Error("rollover: content not splittable below limit");let a=e[0],r=e.slice(1).join(`
|
|
25
|
-
`);yield this.sender.updateCardElementContent(this.cardId,Er,a,++this.sequence);try{yield this.sender.finishStreamingCard(this.cardId,++this.sequence,zs(a))}catch{}let i=Gc(r||"..."),s=yield this.sender.createCardInstance(i),o=yield this.sender.sendCardByReference(this.to,this.idType,s,this.opts);this.cardId=s,this.content=r,this.sequence=0,this.rolloverMessageIds.push(o)})}completeTerminal(){var e,a;return n(this,void 0,void 0,function*(){if(yield this.throttle.flushNow(),yield this.queue.drain(),!!this.cardId){!this.content&&!this.streamingFailed&&(yield this.queue.enqueue(()=>n(this,void 0,void 0,function*(){try{yield this.sender.updateCardElementContent(this.cardId,Er,xc,++this.sequence)}catch{}})),yield this.queue.drain());try{yield this.sender.finishStreamingCard(this.cardId,++this.sequence,zs(this.content||xc))}catch(r){(a=(e=this.sender.logger).warn)===null||a===void 0||a.call(e,"[stream] finishStreamingCard failed",r)}}})}failTerminal(e){return n(this,void 0,void 0,function*(){if(this.throttle.dispose(),!!this.cardId){this.content=(this.content||"")+vb,yield this.queue.enqueue(()=>n(this,void 0,void 0,function*(){try{yield this.pushSnapshot()}catch{}})),yield this.queue.drain();try{yield this.sender.finishStreamingCard(this.cardId,++this.sequence,zs(this.content))}catch{}}})}},sn=class{constructor(e,a,r,i){this.impl=new rn(e,a,r,i)}run(e){return this.impl.run(e)}},bb=100,Sb=50,on=class{constructor(e,a,r,i,s){var o,t;this.sender=e,this.to=a,this.idType=r,this.opts=i,this._messageId="",this.queue=new Mr,this._current=s;let g=e.config;this.throttle=new Lr({ms:(o=g.streamThrottleMs)!==null&&o!==void 0?o:bb,chars:(t=g.streamThrottleChars)!==null&&t!==void 0?t:Sb},()=>this.patch())}get messageId(){return this._messageId}get current(){return this._current}update(e){return n(this,void 0,void 0,function*(){let a=typeof e=="function"?e(this._current):e;this._current=a,this.throttle.note(JSON.stringify(a).length)})}run(e){return n(this,void 0,void 0,function*(){yield this.sendInitial();try{yield e(this)}catch(a){throw yield this.failTerminal(a),a}return yield this.completeTerminal(),{messageId:this._messageId}})}sendInitial(){return n(this,void 0,void 0,function*(){let e=yield this.sender.sendOneWithFallback({to:this.to,idType:this.idType,msgType:"interactive",content:this._current,replyTo:this.opts.replyTo,replyInThread:this.opts.replyInThread});this._messageId=e})}patch(){return n(this,void 0,void 0,function*(){if(!this._messageId)return;let e=this._current;yield this.queue.enqueue(()=>n(this,void 0,void 0,function*(){yield this.sender.patchCard(this._messageId,e)}))})}completeTerminal(){return n(this,void 0,void 0,function*(){yield this.throttle.flushNow(),yield this.queue.drain()})}failTerminal(e){return n(this,void 0,void 0,function*(){this.throttle.dispose();let a=Ib(this._current);yield this.queue.enqueue(()=>n(this,void 0,void 0,function*(){try{yield this.sender.patchCard(this._messageId,a)}catch{}})),yield this.queue.drain()})}};function Ib(p){let e=p,a=Array.isArray(e?.elements)?[...e.elements]:[];return a.push({tag:"note",elements:[{tag:"plain_text",content:"\u26A0\uFE0F \u751F\u6210\u4E2D\u65AD"}]}),Object.assign(Object.assign({},p),{elements:a})}var nn=class{constructor(e,a,r,i,s){this.impl=new on(e,a,r,i,s)}run(e){return this.impl.run(e)}};function wb(p){if(!(!p||p.length<27)){for(let e=p.length-27;e>=0;e--)if(p[e]===79&&p[e+1]===103&&p[e+2]===103&&p[e+3]===83){let a=p.readBigInt64LE(e+6);if(a<BigInt(0))return;let r=Number(a)/48;return!Number.isFinite(r)||r<0?void 0:Math.round(r)}}}function Pb(p){if(!p||p.length<16)return;let e=jc(p,0,p.length,"moov");if(!e)return;let a=jc(p,e.start,e.end,"mvhd");if(!a)return;let r=a.start;if(r+4>p.length)return;let i=p.readUInt8(r),s=r+4,o,t;if(i===1){if(s+28>p.length)return;o=p.readUInt32BE(s+16),t=Number(p.readBigUInt64BE(s+20))}else{if(s+16>p.length)return;o=p.readUInt32BE(s+8),t=p.readUInt32BE(s+12)}if(!(!o||!Number.isFinite(o)||!Number.isFinite(t)))return Math.round(t/o*1e3)}function jc(p,e,a,r){let i=e;for(;i+8<=a&&i+8<=p.length;){let s=p.readUInt32BE(i),o=p.slice(i+4,i+8).toString("ascii"),t=s===1?i+Number(p.readBigUInt64BE(i+8)):s===0?a:i+s;if(t<=i||t>a)return;if(o===r)return{start:s===1?i+16:i+8,end:t};i=t}}var kb=[[0,8],[167772160,8],[2130706432,8],[2851995648,16],[2886729728,12],[3232235520,16],[1681915904,10],[3221225472,24],[3221225984,24],[3323068416,15],[3325256704,24],[3405803776,24],[3758096384,4],[4026531840,4]];function Tb(p,e={}){var a,r;return n(this,void 0,void 0,function*(){let i=new URL(p);if(i.protocol!=="http:"&&i.protocol!=="https:")throw new Error(`ssrf_blocked: protocol ${i.protocol}`);let s=i.hostname,o=s.startsWith("[")&&s.endsWith("]")?s.slice(1,-1):s,t=(r=(a=e.allowlist)===null||a===void 0?void 0:a.includes(o))!==null&&r!==void 0?r:!1,g;if(Hc.isIP(o))g=o,t||Rc(g);else{let m=yield E0.promises.lookup(o,{all:!0});if(m.length===0)throw new Error(`ssrf_blocked: no DNS records for ${o}`);if(!t)for(let y of m)Rc(y.address);g=m[0].address}return{resolvedIp:g,originalHost:o}})}function Rc(p){let e=Hc.isIP(p);if(e===4&&tp(p))throw new Error(`ssrf_blocked: ${p}`);if(e===6&&xb(p))throw new Error(`ssrf_blocked: ${p}`);if(e===0)throw new Error(`ssrf_blocked: not a valid IP: ${p}`)}function tp(p){let e=p.split(".").map(Number);if(e.length!==4||e.some(r=>r<0||r>255))return!0;let a=(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0;return kb.some(([r,i])=>{let s=i===0?0:-1<<32-i>>>0;return(a&s)===(r&s)})}var qb=[[BigInt("0xfe800000000000000000000000000000"),10],[BigInt("0xfc000000000000000000000000000000"),7],[BigInt("0xff000000000000000000000000000000"),8],[BigInt("0x01000000000000000000000000000000"),64],[BigInt("0x20010db8000000000000000000000000"),32],[BigInt("0x20010000000000000000000000000000"),32]],Fb=BigInt("0xffffffffffffffffffffffff00000000"),$b=BigInt("0x00000000000000000000ffff00000000"),zb=BigInt(0),Eb=BigInt("0x0064ff9b000000000000000000000000"),Ob=BigInt("0xffffffff");function xb(p){let e;try{e=Gb(p)}catch{return!0}let a=e&Fb;if(a===$b||a===Eb||a===zb){let r=Number(e&Ob),i=[r>>>24&255,r>>>16&255,r>>>8&255,r&255].join(".");return tp(i)}return qb.some(([r,i])=>{let s=BigInt(128-i),t=(BigInt(1)<<BigInt(128))-BigInt(1)>>s<<s;return(e&t)===(r&t)})}function Gb(p){let e=p.split("%")[0].toLowerCase(),a=e.match(/:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/);if(a){let o=a[1].split(".").map(Number);if(o.length!==4||o.some(m=>!Number.isFinite(m)||m<0||m>255))throw new Error("bad v4 suffix");let t=(o[0]<<8|o[1]).toString(16),g=(o[2]<<8|o[3]).toString(16);e=e.slice(0,e.length-a[1].length)+`${t}:${g}`}let r=e.split("::");if(r.length>2)throw new Error('multiple "::"');let i;if(r.length===2){let o=r[0]?r[0].split(":"):[],t=r[1]?r[1].split(":"):[],g=8-o.length-t.length;if(g<0)throw new Error("too many groups");i=[...o,...Array(g).fill("0"),...t]}else i=e.split(":");if(i.length!==8)throw new Error("wrong group count");let s=BigInt(0);for(let o of i){if(!/^[0-9a-f]{0,4}$/.test(o))throw new Error("bad group");s=s<<BigInt(16)|BigInt(`0x${o||"0"}`)}return s}var jb=["/etc/","/proc/","/sys/","/dev/"],Ac=50*1024*1024,hn=class{constructor(e,a){this.client=e,this.config=a}upload(e){var a,r,i;return n(this,void 0,void 0,function*(){let s=yield this.toBuffer(e.source);if(e.kind==="image")return this.uploadImage(s);if(e.kind==="audio"){let o=this.resolveDuration(e,s);return this.uploadFile(s,"opus",(a=e.fileName)!==null&&a!==void 0?a:"voice.opus",o)}if(e.kind==="video"){let o=this.resolveDuration(e,s);return this.uploadFile(s,"mp4",(r=e.fileName)!==null&&r!==void 0?r:"video.mp4",o)}return this.uploadFile(s,"stream",(i=e.fileName)!==null&&i!==void 0?i:"upload.bin")})}toBuffer(e){var a,r;return n(this,void 0,void 0,function*(){if(Buffer.isBuffer(e))return e;if(!/^https?:\/\//i.test(e)){let t=(a=this.config)===null||a===void 0?void 0:a.allowedFileDirs,g=ba.default.resolve(e);this.assertNotOnPosixBlocklist(g);try{let m=yield H.default.promises.realpath(g);if(this.assertNotOnPosixBlocklist(m),t&&t.length>0&&!(yield Promise.all(t.map(u=>n(this,void 0,void 0,function*(){let f=ba.default.resolve(u);try{return yield H.default.promises.realpath(f)}catch{return f}})))).some(u=>m===u||m.startsWith(u+ba.default.sep)))throw new rt("upload_failed",`file path is outside allowed directories: ${m}`);return yield H.default.promises.readFile(m)}catch(m){throw m instanceof rt?m:new rt("upload_failed",`source is neither an http(s) URL nor a readable local file: ${e}`,{cause:m})}}let i=(r=this.config)===null||r===void 0?void 0:r.ssrfGuard,s=i!==!1,o;if(s){let t=typeof i=="object"&&i?{allowlist:i.allowlist}:{};try{({resolvedIp:o}=yield Tb(e,t))}catch(g){throw new rt("ssrf_blocked",`URL blocked: ${String(g)}`,{cause:g})}}try{let t={url:e,method:"GET",responseType:"arraybuffer",timeout:15e3,maxContentLength:Ac,maxBodyLength:Ac};if(o){let m=Rb(e,o);t.httpAgent=m,t.httpsAgent=m}let g=yield this.client.httpInstance.request(t);return Buffer.from(g)}catch(t){throw new rt("upload_failed","fetch source URL failed",{cause:t})}})}assertNotOnPosixBlocklist(e){if(process.platform!=="win32"&&jb.some(a=>e===a.slice(0,-1)||e.startsWith(a)))throw new rt("upload_failed",`file path is not allowed: ${e}`)}resolveDuration(e,a){if(e.duration!=null&&e.duration>0)return e.duration;let r=e.kind==="audio"?wb(a):e.kind==="video"?Pb(a):void 0;if(r!=null)return r;throw new rt("upload_failed",`duration could not be determined for ${e.kind}; pass it explicitly`)}uploadImage(e){var a,r;return n(this,void 0,void 0,function*(){try{let i=yield this.client.im.v1.image.create({data:{image_type:"message",image:e}}),s=(a=i?.image_key)!==null&&a!==void 0?a:(r=i?.data)===null||r===void 0?void 0:r.image_key;if(!s)throw new Error("image_key missing in upload response");return{kind:"image",fileKey:s}}catch(i){throw new rt("upload_failed","image upload failed",{cause:i})}})}uploadFile(e,a,r,i){var s,o;return n(this,void 0,void 0,function*(){try{let t={file_type:a,file_name:r,file:e};i!=null&&(t.duration=i);let g=yield this.client.im.v1.file.create({data:t}),m=(s=g?.file_key)!==null&&s!==void 0?s:(o=g?.data)===null||o===void 0?void 0:o.file_key;if(!m)throw new Error("file_key missing in upload response");return{kind:a==="opus"?"audio":a==="mp4"?"video":"file",fileKey:m,durationMs:i}}catch(t){throw t instanceof rt?t:new rt("upload_failed","file upload failed",{cause:t})}})}};function Rb(p,e){let a=p.startsWith("https:")?R0.default.Agent:j0.default.Agent,r=new a,i=e.includes(":")?6:4,s=(t,g,m)=>{m(null,e,i)},o=r.createConnection.bind(r);return r.createConnection=(t,g)=>o(Object.assign(Object.assign({},t),{lookup:s}),g),r}function ep(p){var e;if(!p?.length)return"";let a=[];for(let r of p){if(!r.openId)continue;let i=(e=r.name)!==null&&e!==void 0?e:"";a.push(`<at user_id="${r.openId}">${i}</at>`)}return a.length>0?a.join(" ")+" ":""}function Ab(p,e=1){try{return Cb(p,e)}catch{return p}}function Cb(p,e){let a="___CB_",r=[],i=p.replace(/(^|\n)(`{3,})([^\n]*)\n[\s\S]*?\n\2(?=\n|$)/g,(o,t="")=>{let g=o.slice(String(t).length);return`${t}${a}${r.push(g)-1}___`});return/^#{1,3} /m.test(p)&&(i=i.replace(/^#{2,6} (.+)$/gm,"##### $1"),i=i.replace(/^# (.+)$/gm,"#### $1")),e>=2?(i=i.replace(/^(#{4,5} .+)\n{1,2}(#{4,5} )/gm,`$1
|
|
26
|
-
<br>
|
|
27
|
-
$2`),i=i.replace(/^([^|\n].*)\n(\|.+\|)/gm,`$1
|
|
28
|
-
|
|
29
|
-
$2`),i=i.replace(/\n\n((?:\|.+\|[^\S\n]*\n?)+)/g,`
|
|
30
|
-
|
|
31
|
-
<br>
|
|
32
|
-
|
|
33
|
-
$1`),i=i.replace(/((?:^\|.+\|[^\S\n]*\n?)+)/gm,(o,t,g)=>{let m=i.slice(g+o.length).replace(/^\n+/,"");return!m||/^(---|#{4,5} |\*\*)/.test(m)?o:o+`
|
|
34
|
-
<br>
|
|
35
|
-
`}),i=i.replace(/^((?!#{4,5} )(?!\*\*).+)\n\n(<br>)\n\n(\|)/gm,`$1
|
|
36
|
-
$2
|
|
37
|
-
$3`),i=i.replace(/^(\*\*.+)\n\n(<br>)\n\n(\|)/gm,`$1
|
|
38
|
-
$2
|
|
39
|
-
|
|
40
|
-
$3`),i=i.replace(/(\|[^\n]*\n)\n(<br>\n)((?!#{4,5} )(?!\*\*))/gm,"$1$2$3"),r.forEach((o,t)=>{i=i.replace(`${a}${t}___`,`
|
|
41
|
-
<br>
|
|
42
|
-
${o}
|
|
43
|
-
<br>
|
|
44
|
-
`)})):r.forEach((o,t)=>{i=i.replace(`${a}${t}___`,o)}),i=i.replace(/\n{3,}/g,`
|
|
45
|
-
|
|
46
|
-
`),i}function Db(p,e){var a,r;let i=ep((a=e?.mentions)!==null&&a!==void 0?a:[]),s=Ab(i+p,1);return{zh_cn:{title:(r=e?.title)!==null&&r!==void 0?r:"",content:[[{tag:"md",text:s}]]}}}function Bb(p){var e;let a=p?.zh_cn;if(!a?.content)return"";let r=[];for(let i of a.content){if(!Array.isArray(i))continue;let s=[];for(let o of i)switch(o.tag){case"md":case"text":case"a":s.push((e=o.text)!==null&&e!==void 0?e:"");break;case"at":s.push(o.user_name?`@${o.user_name}`:"");break;case"img":s.push(o.image_key?"[image]":"");break}r.push(s.join(""))}return r.join(`
|
|
47
|
-
`).trim()}function Cc(p){if(!p)throw new Error("empty receive_id");return p.startsWith("oc_")?"chat_id":p.startsWith("ou_")?"open_id":p.startsWith("on_")?"union_id":p.includes("@")?"email":"user_id"}function _n(p,e){if(p instanceof rt)return p;let a=Lb(p),r=Mb(p);return new rt(a,r,{cause:p,context:e})}function Lb(p){var e,a,r,i,s,o,t,g;let m=p,y=(a=(e=m?.response)===null||e===void 0?void 0:e.status)!==null&&a!==void 0?a:m?.status,c=(t=(s=(i=(r=m?.response)===null||r===void 0?void 0:r.data)===null||i===void 0?void 0:i.code)!==null&&s!==void 0?s:(o=m?.data)===null||o===void 0?void 0:o.code)!==null&&t!==void 0?t:m?.code,u=String((g=m?.message)!==null&&g!==void 0?g:"").toLowerCase();if(typeof c=="number"){if(c===230020||c===230017)return"target_revoked";if(c===99991400||c===99991401)return"permission_denied";if(c===230002||c===230001)return"format_error"}return y===429?"rate_limited":y===401||y===403?"permission_denied":y===400?"format_error":y===404?"target_revoked":u.startsWith("ssrf_blocked")?"ssrf_blocked":u.includes("timeout")||m?.code==="ETIMEDOUT"||m?.code==="ECONNABORTED"?"send_timeout":"unknown"}function Mb(p){var e,a,r,i;let s=p;return((a=(e=s?.response)===null||e===void 0?void 0:e.data)===null||a===void 0?void 0:a.msg)||((i=(r=s?.response)===null||r===void 0?void 0:r.data)===null||i===void 0?void 0:i.message)||s?.message||String(p)}function Wb(p){return p.code==="rate_limited"||p.code==="unknown"}function Ub(p){return p.code==="format_error"}function Nb(p){return p.code==="target_revoked"}function Hb(p,e={}){var a,r;return n(this,void 0,void 0,function*(){let i=(a=e.maxAttempts)!==null&&a!==void 0?a:3,s=(r=e.baseDelayMs)!==null&&r!==void 0?r:500,o;for(let t=1;t<=i;t++)try{return yield p(t)}catch(g){let m=_n(g,{attempt:t});if(o=m,t>=i||!Wb(m))throw m;let y=s*Math.pow(3,t-1);yield Kb(y)}throw o})}function Kb(p){return new Promise(e=>setTimeout(e,p))}var Vb=3500,dn=class{constructor(e,a,r){var i;this.client=e,this.config=a,this.logger=r,this.uploader=new hn(e,a),this.chunkLimit=(i=a.textChunkLimit)!==null&&i!==void 0?i:Vb}send(e,a,r={}){return n(this,void 0,void 0,function*(){let i=Cc(e);if("markdown"in a)return this.sendMarkdown(e,i,a.markdown,r);if("text"in a)return this.sendText(e,i,a.text,r);if("post"in a)return this.sendPost(e,i,a.post,r);if("image"in a)return this.sendImage(e,i,a.image,r);if("file"in a)return this.sendFile(e,i,a.file,r);if("audio"in a)return this.sendAudio(e,i,a.audio,r);if("video"in a)return this.sendVideo(e,i,a.video,r);if("card"in a)return this.sendCard(e,i,a.card,r);if("shareChat"in a)return this.sendShareChat(e,i,a.shareChat.chatId,r);if("shareUser"in a)return this.sendShareUser(e,i,a.shareUser.userId,r);if("sticker"in a)return this.sendSticker(e,i,a.sticker.fileKey,r);throw new rt("format_error","unrecognized SendInput shape")})}stream(e,a,r={}){return n(this,void 0,void 0,function*(){let i=Cc(e);if("markdown"in a)return new sn(this,e,i,r).run(a.markdown);if("card"in a)return new nn(this,e,i,r,a.card.initial).run(a.card.producer);throw new rt("format_error","unrecognized StreamInput shape")})}sendMarkdown(e,a,r,i){return n(this,void 0,void 0,function*(){let s=Yc(r,this.chunkLimit),o=[];for(let t=0;t<s.length;t++){let g=this.convertMarkdown(s[t],t===0?i.mentions:void 0),m=yield this.sendOneWithFallback({to:e,idType:a,msgType:"post",content:g,replyTo:t===0?i.replyTo:void 0,replyInThread:i.replyInThread});o.push(m)}return this.makeResult(o)})}sendText(e,a,r,i){var s;return n(this,void 0,void 0,function*(){let t=ep((s=i.mentions)!==null&&s!==void 0?s:[])+r,g=Jb(t,this.chunkLimit),m=[];for(let y=0;y<g.length;y++){let c=yield this.sendOneWithFallback({to:e,idType:a,msgType:"text",content:{text:g[y]},replyTo:y===0?i.replyTo:void 0,replyInThread:i.replyInThread});m.push(c)}return this.makeResult(m)})}sendPost(e,a,r,i){return n(this,void 0,void 0,function*(){return{messageId:yield this.sendOneWithFallback({to:e,idType:a,msgType:"post",content:r,replyTo:i.replyTo,replyInThread:i.replyInThread})}})}convertMarkdown(e,a){let r=this.config.markdownConverter;return typeof r=="function"?r(e):Db(e,{mentions:a})}sendImage(e,a,r,i){return n(this,void 0,void 0,function*(){let s=yield this.uploader.upload({kind:"image",source:r.source});return{messageId:yield this.sendOneWithFallback({to:e,idType:a,msgType:"image",content:{image_key:s.fileKey},replyTo:i.replyTo,replyInThread:i.replyInThread})}})}sendFile(e,a,r,i){return n(this,void 0,void 0,function*(){let s=yield this.uploader.upload({kind:"file",source:r.source,fileName:r.fileName});return{messageId:yield this.sendOneWithFallback({to:e,idType:a,msgType:"file",content:{file_key:s.fileKey},replyTo:i.replyTo,replyInThread:i.replyInThread})}})}sendAudio(e,a,r,i){return n(this,void 0,void 0,function*(){let s=yield this.uploader.upload({kind:"audio",source:r.source,duration:r.duration});return{messageId:yield this.sendOneWithFallback({to:e,idType:a,msgType:"audio",content:{file_key:s.fileKey},replyTo:i.replyTo,replyInThread:i.replyInThread})}})}sendVideo(e,a,r,i){return n(this,void 0,void 0,function*(){let o={file_key:(yield this.uploader.upload({kind:"video",source:r.source,duration:r.duration})).fileKey};return r.coverImageKey&&(o.image_key=r.coverImageKey),{messageId:yield this.sendOneWithFallback({to:e,idType:a,msgType:"media",content:o,replyTo:i.replyTo,replyInThread:i.replyInThread})}})}sendCard(e,a,r,i){return n(this,void 0,void 0,function*(){return{messageId:yield this.sendOneWithFallback({to:e,idType:a,msgType:"interactive",content:r,replyTo:i.replyTo,replyInThread:i.replyInThread})}})}sendShareChat(e,a,r,i){return n(this,void 0,void 0,function*(){return{messageId:yield this.sendOneWithFallback({to:e,idType:a,msgType:"share_chat",content:{chat_id:r},replyTo:i.replyTo,replyInThread:i.replyInThread})}})}sendShareUser(e,a,r,i){return n(this,void 0,void 0,function*(){return{messageId:yield this.sendOneWithFallback({to:e,idType:a,msgType:"share_user",content:{user_id:r},replyTo:i.replyTo,replyInThread:i.replyInThread})}})}sendSticker(e,a,r,i){return n(this,void 0,void 0,function*(){return{messageId:yield this.sendOneWithFallback({to:e,idType:a,msgType:"sticker",content:{file_key:r},replyTo:i.replyTo,replyInThread:i.replyInThread})}})}sendOneWithFallback(e){return n(this,void 0,void 0,function*(){try{return yield this.rawSendWithRetry(e)}catch(a){let r=_n(a,{to:e.to});if(Nb(r)&&e.replyTo)return this.rawSendWithRetry(Object.assign(Object.assign({},e),{replyTo:void 0}));if(Ub(r)&&e.msgType==="post"){let i=Bb(e.content);return this.rawSendWithRetry(Object.assign(Object.assign({},e),{msgType:"text",content:{text:i||"[message]"}}))}throw r}})}rawSendWithRetry(e){return n(this,void 0,void 0,function*(){return Hb(()=>this.rawSend(e),this.config.retry)})}rawSend(e){var a,r;return n(this,void 0,void 0,function*(){let i={receive_id:e.to,msg_type:e.msgType,content:JSON.stringify(e.content)};if(e.replyTo){let g=(a=(yield this.client.im.v1.message.reply({path:{message_id:e.replyTo},data:{content:i.content,msg_type:e.msgType,reply_in_thread:e.replyInThread}})).data)===null||a===void 0?void 0:a.message_id;if(!g)throw new rt("unknown","message_id missing from reply response");return g}let o=(r=(yield this.client.im.v1.message.create({params:{receive_id_type:e.idType},data:i})).data)===null||r===void 0?void 0:r.message_id;if(!o)throw new rt("unknown","message_id missing from create response");return o})}patchCard(e,a){return n(this,void 0,void 0,function*(){yield this.client.im.v1.message.patch({path:{message_id:e},data:{content:JSON.stringify(a)}})})}createCardInstance(e){var a;return n(this,void 0,void 0,function*(){let i=(a=(yield this.client.cardkit.v1.card.create({data:{type:"card_json",data:JSON.stringify(e)}})).data)===null||a===void 0?void 0:a.card_id;if(!i)throw new rt("unknown","cardkit.card.create returned no card_id");return i})}sendCardByReference(e,a,r,i){return n(this,void 0,void 0,function*(){return this.rawSendWithRetry({to:e,idType:a,msgType:"interactive",content:{type:"card",data:{card_id:r}},replyTo:i.replyTo,replyInThread:i.replyInThread})})}updateCardElementContent(e,a,r,i){return n(this,void 0,void 0,function*(){yield this.client.cardkit.v1.cardElement.content({path:{card_id:e,element_id:a},data:{content:r,sequence:i,uuid:`c_${e}_${i}`}})})}finishStreamingCard(e,a,r){return n(this,void 0,void 0,function*(){let i={streaming_mode:!1};r!==void 0&&(i.summary={content:r}),yield this.client.cardkit.v1.card.settings({path:{card_id:e},data:{settings:JSON.stringify({config:i}),sequence:a,uuid:`s_${e}_${a}`}})})}makeResult(e){return{messageId:e[0],chunkIds:e.length>1?e:void 0}}};function Jb(p,e){if(p.length<=e)return[p];let a=[];for(let r=0;r<p.length;r+=e)a.push(p.slice(r,r+e));return a}var ln=class{constructor(e,a){this.config=e,this.serialOnly=a,this.buffer=[],this.bufferChars=0,this.tail=Promise.resolve()}push(e,a){var r;if(this.buffer.push(e),this.bufferChars+=e.content.length,(r=this.pendingHandler)!==null&&r!==void 0||(this.pendingHandler=a),this.buffer.length>=this.config.maxMessages||this.bufferChars>=this.config.maxChars){this.clearTimer(),this.enqueueFlush();return}if(this.config.delayMs<=0||this.serialOnly){this.clearTimer(),this.enqueueFlush();return}this.clearTimer();let i=this.bufferChars>=this.config.longThresholdChars?this.config.longDelayMs:this.config.delayMs;this.timer=setTimeout(()=>{this.timer=void 0,this.enqueueFlush()},i)}run(e){this.buffer.length>0&&(this.clearTimer(),this.enqueueFlush());let a=this.tail.then(e,e);return this.tail=a.then(()=>{},()=>{}),a}flushNow(){return n(this,void 0,void 0,function*(){this.buffer.length>0&&(this.clearTimer(),this.enqueueFlush()),yield this.tail})}isIdle(){return this.buffer.length===0&&!this.timer}dispose(){this.clearTimer(),this.buffer=[],this.pendingHandler=void 0}clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)}enqueueFlush(){if(this.buffer.length===0)return;let e=this.buffer,a=this.pendingHandler;if(this.buffer=[],this.bufferChars=0,this.pendingHandler=void 0,!a)return;let r={message:Qb(e),sourceIds:e.map(o=>o.messageId)},i=()=>a(r),s=this.tail.then(i,i);this.tail=s.then(()=>{},()=>{})}},cn=class{constructor(e){this.config=e,this.pipelines=new Map}push(e,a,r){this.getOrCreate(e,!1).push(a,r)}run(e,a){return this.getOrCreate(e,!0).run(a)}getOrCreate(e,a){let r=this.pipelines.get(e);return r||(r=new ln(this.config,a),this.pipelines.set(e,r)),r}flushAll(){return n(this,void 0,void 0,function*(){yield Promise.all([...this.pipelines.values()].map(e=>e.flushNow()))})}dispose(){return n(this,void 0,void 0,function*(){yield this.flushAll();for(let e of this.pipelines.values())e.dispose();this.pipelines.clear()})}};function Qb(p){if(p.length===1)return p[0];let e=p[p.length-1],a=p.map(s=>s.content).filter(s=>s&&s.length>0).join(`
|
|
48
|
-
|
|
49
|
-
`),r=Dc(p.flatMap(s=>s.resources),s=>s.fileKey),i=Dc(p.flatMap(s=>s.mentions),s=>{var o;return(o=s.openId)!==null&&o!==void 0?o:s.key});return Object.assign(Object.assign({},e),{content:a,resources:r,mentions:i,mentionAll:p.some(s=>s.mentionAll),mentionedBot:p.some(s=>s.mentionedBot)})}function Dc(p,e){let a=new Set,r=[];for(let i of p){let s=e(i);if(s==null){r.push(i);continue}a.has(s)||(a.add(s),r.push(i))}return r}var _a={delayMs:600,longThresholdChars:1e3,longDelayMs:2e3,maxMessages:8,maxChars:4e3},zr={ttl:12*36e5,maxEntries:5e3,sweepIntervalMs:5*6e4,namespace:"channel:seen"},ap=30*6e4,Xb=5*6e4;function Zb(p){var e,a,r,i,s,o,t;let g=(a=(e=p?.batch)===null||e===void 0?void 0:e.text)!==null&&a!==void 0?a:{};return{delayMs:(r=g.delayMs)!==null&&r!==void 0?r:_a.delayMs,longThresholdChars:(i=g.longThresholdChars)!==null&&i!==void 0?i:_a.longThresholdChars,longDelayMs:(s=g.longDelayMs)!==null&&s!==void 0?s:_a.longDelayMs,maxMessages:(o=g.maxMessages)!==null&&o!==void 0?o:_a.maxMessages,maxChars:(t=g.maxChars)!==null&&t!==void 0?t:_a.maxChars}}var pn=class{constructor(e,a={}){var r,i,s,o,t,g;this.cache=e,this.memory=new Map,this.ttlMs=(r=a.ttlMs)!==null&&r!==void 0?r:zr.ttl,this.maxMem=(i=a.maxMemEntries)!==null&&i!==void 0?i:zr.maxEntries,this.ns=(s=a.namespace)!==null&&s!==void 0?s:zr.namespace;let m=(o=a.sweepMs)!==null&&o!==void 0?o:zr.sweepIntervalMs;this.sweeper=setInterval(()=>this.sweep(),m),(g=(t=this.sweeper).unref)===null||g===void 0||g.call(t)}has(e){return n(this,void 0,void 0,function*(){let a=Date.now(),r=this.memory.get(e);return r&&r>a?(this.memory.delete(e),this.memory.set(e,r),!0):(yield this.cache.get(e,{namespace:this.ns}))?(this.memory.set(e,a+this.ttlMs),this.evictIfNeeded(),!0):!1})}add(e){return n(this,void 0,void 0,function*(){let a=Date.now()+this.ttlMs;this.memory.set(e,a),this.evictIfNeeded();try{yield this.cache.set(e,"1",a,{namespace:this.ns})}catch{}})}evictIfNeeded(){for(;this.memory.size>this.maxMem;){let e=this.memory.keys().next().value;if(e===void 0)break;this.memory.delete(e)}}sweep(){let e=Date.now();for(let[a,r]of this.memory)r<=e&&this.memory.delete(a)}dispose(){clearInterval(this.sweeper),this.memory.clear()}},mn=class{constructor(e,a){this.cfg=Object.assign({},e??{}),this.bot=a}evaluate(e){return e.chatType==="group"?this.evaluateGroup(e):this.evaluateDm(e)}evaluateGroup(e){var a,r;let i=this.cfg.groupAllowlist;return i&&i.length>0&&!i.includes(e.chatId)?{allowed:!1,reason:"group_not_allowed"}:((a=this.cfg.requireMention)!==null&&a!==void 0?a:!0)&&!e.mentionedBot?{allowed:!1,reason:"no_mention"}:e.mentionAll&&!((r=this.cfg.respondToMentionAll)!==null&&r!==void 0&&r)?{allowed:!1,reason:"mention_all_blocked"}:{allowed:!0}}evaluateDm(e){var a,r;let i=(a=this.cfg.dmMode)!==null&&a!==void 0?a:"open";return i==="disabled"?{allowed:!1,reason:"dm_disabled"}:i==="allowlist"&&!((r=this.cfg.dmAllowlist)!==null&&r!==void 0?r:[]).includes(e.senderId)?{allowed:!1,reason:"sender_not_allowed"}:{allowed:!0}}updateConfig(e){this.cfg=Object.assign(Object.assign({},this.cfg),e)}getConfig(){return this.cfg}setBotIdentity(e){this.bot=e}getBotIdentity(){return this.bot}},un=class{constructor(e=Xb,a=6e4){var r,i;this.ttlMs=e,this.locks=new Map,this.sweeper=setInterval(()=>this.sweep(),a),(i=(r=this.sweeper).unref)===null||i===void 0||i.call(r)}acquire(e){let a=Date.now(),r=this.locks.get(e);return r&&r>a?!1:(this.locks.set(e,a+this.ttlMs),!0)}release(e){this.locks.delete(e)}sweep(){let e=Date.now();for(let[a,r]of this.locks)r<=e&&this.locks.delete(a)}dispose(){clearInterval(this.sweeper),this.locks.clear()}};function Yb(p,e=ap){return!p||!Number.isFinite(p)?!1:Date.now()-p>e}var yn=class{constructor(e){var a,r,i,s,o,t,g,m,y,c,u;this.logger=e.logger,this.onReject=e.onReject,this.onMessage=e.onMessage,this.staleWindow=(r=(a=e.config)===null||a===void 0?void 0:a.staleMessageWindowMs)!==null&&r!==void 0?r:ap,this.queueEnabled=(o=(s=(i=e.config)===null||i===void 0?void 0:i.chatQueue)===null||s===void 0?void 0:s.enabled)!==null&&o!==void 0?o:!0,this.seenCache=new pn(e.cache,{ttlMs:(g=(t=e.config)===null||t===void 0?void 0:t.dedup)===null||g===void 0?void 0:g.ttl,maxMemEntries:(y=(m=e.config)===null||m===void 0?void 0:m.dedup)===null||y===void 0?void 0:y.maxEntries,sweepMs:(u=(c=e.config)===null||c===void 0?void 0:c.dedup)===null||u===void 0?void 0:u.sweepIntervalMs}),this.lock=new un,this.policy=new mn(e.policy,e.botIdentity),this.manager=new cn(Zb(e.config))}pushMessage(e){var a,r,i,s,o,t,g;return n(this,void 0,void 0,function*(){if(Yb(e.createTime,this.staleWindow)){(r=(a=this.logger).debug)===null||r===void 0||r.call(a,`safety: drop stale message ${e.messageId}`);return}if(yield this.seenCache.has(e.messageId)){(s=(i=this.logger).debug)===null||s===void 0||s.call(i,`safety: drop duplicate message ${e.messageId}`);return}let m=this.policy.evaluate(e);if(!m.allowed){this.onReject({messageId:e.messageId,chatId:e.chatId,senderId:e.senderId,reason:(o=m.reason)!==null&&o!==void 0?o:"group_not_allowed"});return}if(!this.lock.acquire(e.messageId)){(g=(t=this.logger).debug)===null||g===void 0||g.call(t,`safety: drop in-flight message ${e.messageId}`);return}let y=c=>n(this,void 0,void 0,function*(){var u,f;try{yield this.onMessage(c.message)}catch(_){(f=(u=this.logger).error)===null||f===void 0||f.call(u,"safety: message handler threw",_)}finally{for(let _ of c.sourceIds){try{yield this.seenCache.add(_)}catch{}this.lock.release(_)}}});this.queueEnabled?this.manager.push(e.chatId,e,y):y({message:e,sourceIds:[e.messageId]})})}pushAction(e,a,r){var i,s,o,t;return n(this,void 0,void 0,function*(){if(yield this.seenCache.has(e)){(s=(i=this.logger).debug)===null||s===void 0||s.call(i,`safety: drop duplicate action ${e}`);return}if(!this.lock.acquire(e)){(t=(o=this.logger).debug)===null||t===void 0||t.call(o,`safety: drop in-flight action ${e}`);return}let g=()=>n(this,void 0,void 0,function*(){var m,y;try{yield r()}catch(c){(y=(m=this.logger).error)===null||y===void 0||y.call(m,"safety: action handler threw",c)}finally{try{yield this.seenCache.add(e)}catch{}this.lock.release(e)}});this.queueEnabled?yield this.manager.run(a,g):yield g()})}pushLight(e,a){var r,i;return n(this,void 0,void 0,function*(){if(!(yield this.seenCache.has(e))){yield this.seenCache.add(e);try{yield a()}catch(s){(i=(r=this.logger).warn)===null||i===void 0||i.call(r,"safety: light handler threw",s)}}})}updatePolicy(e){this.policy.updateConfig(e)}getPolicy(){return this.policy.getConfig()}setBotIdentity(e){this.policy.setBotIdentity(e)}dispose(){return n(this,void 0,void 0,function*(){yield this.manager.dispose(),this.seenCache.dispose(),this.lock.dispose()})}};function tS(p){return p.key==="@_all"}function eS(p,e){var a,r,i;let s=new Map,o=new Map,t=[],g=!1,m=!1;for(let y of p??[]){if(tS(y)){g=!0,s.set(y.key,{key:y.key,name:y.name,isBot:!1});continue}let c=(r=(a=y.id)===null||a===void 0?void 0:a.open_id)!==null&&r!==void 0?r:"",u=(i=y.id)===null||i===void 0?void 0:i.user_id,f=!!(e&&c===e);f&&(m=!0);let _={key:y.key,openId:c||void 0,userId:u,name:y.name,isBot:f};s.set(y.key,_),c&&o.set(c,_),t.push(_)}return{mentions:s,mentionsByOpenId:o,mentionList:t,mentionAll:g,mentionedBot:m}}function aS(p,e){if(!p||e.mentions.size===0)return p;let a=p;for(let[r,i]of e.mentions){if(i.isBot&&e.stripBotMentions){let o=new RegExp(`\\s?${rS(r)}\\s?`,"g");a=a.replace(o," ");continue}let s=i.name?`@${i.name}`:r;a=a.split(r).join(s)}return a.replace(/[ \t]{2,}/g," ").trim()}function rS(p){return p.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function yt(p){if(p)try{return JSON.parse(p)}catch{return}}function iS(p,e){if(!e||e.length===0)return p;let a=p;return e.includes("bold")&&(a=`**${a}**`),e.includes("italic")&&(a=`*${a}*`),e.includes("underline")&&(a=`<u>${a}</u>`),(e.includes("lineThrough")||e.includes("strikethrough"))&&(a=`~~${a}~~`),(e.includes("codeInline")||e.includes("code"))&&(a=`\`${a}\``),a}var sS=["zh_cn","en_us","ja_jp"];function oS(p){if("title"in p||"content"in p)return p;for(let a of sS){let r=p[a];if(r!=null&&typeof r=="object")return r}let e=Object.keys(p)[0];if(e){let a=p[e];if(a!=null&&typeof a=="object")return a}}function rp(p){if(!(p==null||!Number.isFinite(p)||p<0))return p<1e3?`${Math.round(p)}ms`:p%1e3===0?`${p/1e3}s`:`${(p/1e3).toFixed(1)}s`}function Wr(p){if(p==null)return;let e=typeof p=="string"?parseInt(p,10):p;if(!Number.isFinite(e)||e<=0)return;let a=new Date(e+8*36e5),r=a.getUTCFullYear(),i=String(a.getUTCMonth()+1).padStart(2,"0"),s=String(a.getUTCDate()).padStart(2,"0"),o=String(a.getUTCHours()).padStart(2,"0"),t=String(a.getUTCMinutes()).padStart(2,"0");return`${r}-${i}-${s} ${o}:${t}`}function nS(p){let e=new Date(p+288e5),a=e.getUTCFullYear(),r=String(e.getUTCMonth()+1).padStart(2,"0"),i=String(e.getUTCDate()).padStart(2,"0"),s=String(e.getUTCHours()).padStart(2,"0"),o=String(e.getUTCMinutes()).padStart(2,"0"),t=String(e.getUTCSeconds()).padStart(2,"0");return`${a}-${r}-${i}T${s}:${o}:${t}+08:00`}function hS(p,e){return p.split(`
|
|
50
|
-
`).map(a=>`${e}${a}`).join(`
|
|
51
|
-
`)}function Fa(p){return p.replace(/"/g,""")}var dS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p),r=a?.file_key;if(!r)return{content:"[audio]",resources:[]};let i=a?.duration,s=rp(i),o=s?` duration="${s}"`:"";return{content:`<audio key="${r}"${o}/>`,resources:[{type:"audio",fileKey:r,durationMs:i}]}});function bn(p){let e=yt(p);if(!e)return"[calendar event]";let a=[];e.summary&&a.push(`\u{1F4C5} ${e.summary}`);let r=Wr(e.start_time),i=Wr(e.end_time);return r&&i?a.push(`\u{1F559} ${r} ~ ${i}`):r&&a.push(`\u{1F559} ${r}`),a.length>0?a.join(`
|
|
52
|
-
`):"[calendar event]"}var lS=(p,e)=>n(void 0,void 0,void 0,function*(){return{content:`<calendar_invite>
|
|
53
|
-
${bn(p)}
|
|
54
|
-
</calendar_invite>`,resources:[]}}),cS=(p,e)=>n(void 0,void 0,void 0,function*(){return{content:`<calendar>
|
|
55
|
-
${bn(p)}
|
|
56
|
-
</calendar>`,resources:[]}}),pS=(p,e)=>n(void 0,void 0,void 0,function*(){return{content:`<calendar_share>
|
|
57
|
-
${bn(p)}
|
|
58
|
-
</calendar_share>`,resources:[]}}),mS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p),r=a?.file_key;if(!r)return{content:"[file]",resources:[]};let i=a?.file_name,s=i?` name="${Fa(i)}"`:"";return{content:`<file key="${r}"${s}/>`,resources:[{type:"file",fileKey:r,fileName:i}]}}),uS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p),r=a?.file_key;if(!r)return{content:"[folder]",resources:[]};let i=a?.file_name?` name="${Fa(a.file_name)}"`:"";return{content:`<folder key="${r}"${i}/>`,resources:[]}}),yS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p);return{content:`<hongbao${a?.text?` text="${Fa(a.text)}"`:""}/>`,resources:[]}}),fS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p),r=a?.image_key;if(!r)return{content:"[image]",resources:[]};let i=[{type:"image",fileKey:r}];return{content:``,resources:i}});function gS(p){let e=[];return wt(p,e),e.filter(a=>a&&a.trim().length>0)}function wt(p,e){if(p==null||typeof p=="string"||typeof p=="number"||typeof p=="boolean")return;if(Array.isArray(p)){for(let i of p)wt(i,e);return}if(typeof p!="object")return;let a=p,r=a.tag;if(typeof r=="string"&&(r==="plain_text"||r==="lark_md"||r==="markdown")){typeof a.content=="string"&&e.push(a.content);return}if(a.header&&typeof a.header=="object"){let i=a.header;i.title&&wt(i.title,e)}if(a.text&&wt(a.text,e),typeof r=="string"&&r==="button"){let i=a.text;i&&wt(i,e)}if(a.label&&wt(a.label,e),a.placeholder&&wt(a.placeholder,e),Array.isArray(a.options))for(let i of a.options){let s=i;s?.text&&wt(s.text,e)}if(Array.isArray(a.elements))for(let i of a.elements)wt(i,e);if(Array.isArray(a.fields))for(let i of a.fields)wt(i,e);if(Array.isArray(a.actions))for(let i of a.actions)wt(i,e);if(Array.isArray(a.columns))for(let i of a.columns)wt(i,e);a.body&&wt(a.body,e)}var vS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p);if(a==null||typeof a!="object")return{content:"[interactive card]",resources:[]};let r=gS(a);if(r.length===0)return{content:"[interactive card]",resources:[]};let i=new Set,s=[];for(let o of r){let t=o.trim();!t||i.has(t)||(i.add(t),s.push(t))}return{content:s.join(`
|
|
59
|
-
`),resources:[]}}),_S=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p),r=a?.name,i=a?.latitude,s=a?.longitude,o=r?` name="${Fa(r)}"`:"",t=i&&s?` coords="lat:${i},lng:${s}"`:"";return{content:`<location${o}${t}/>`,resources:[]}}),Bc=50,bS=(p,e)=>n(void 0,void 0,void 0,function*(){var a;let{messageId:r,fetchSubMessages:i,dispatch:s}=e;if(!i||!s)return{content:"<forwarded_messages/>",resources:[]};let o;try{o=yield i(r)}catch{return{content:"<forwarded_messages/>",resources:[]}}if(!o||o.length===0)return{content:"<forwarded_messages/>",resources:[]};let t=o.slice(0,Bc),g=o.length>Bc;if(e.batchResolveNames){let c=new Set;for(let u of t){let f=(a=u.sender)===null||a===void 0?void 0:a.id;f&&u.message_id!==r&&c.add(f)}if(c.size>0)try{yield e.batchResolveNames([...c])}catch{}}let m=SS(t,r);return{content:yield ip(r,m,e,g),resources:[]}});function SS(p,e){var a;let r=new Map;for(let i of p){if(i.message_id===e&&!i.upper_message_id)continue;let s=(a=i.upper_message_id)!==null&&a!==void 0?a:e,o=r.get(s);o||(o=[],r.set(s,o)),o.push(i)}for(let i of r.values())i.sort((s,o)=>{var t,g;let m=parseInt(String((t=s.create_time)!==null&&t!==void 0?t:"0"),10),y=parseInt(String((g=o.create_time)!==null&&g!==void 0?g:"0"),10);return m-y});return r}function ip(p,e,a,r=!1){return n(this,void 0,void 0,function*(){let i=e.get(p);if(!i||i.length===0)return"<forwarded_messages/>";let s=[];for(let g of i)try{let m=yield IS(g,e,a);m&&s.push(m)}catch{}return s.length===0?"<forwarded_messages/>":`<forwarded_messages>
|
|
60
|
-
${s.join(`
|
|
61
|
-
`)}${r?`
|
|
62
|
-
... (truncated)`:""}
|
|
63
|
-
</forwarded_messages>`})}function IS(p,e,a){var r,i,s,o,t,g,m,y;return n(this,void 0,void 0,function*(){let c=(r=p.msg_type)!==null&&r!==void 0?r:"text",u=(s=(i=p.sender)===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:"unknown",f=parseInt(String((o=p.create_time)!==null&&o!==void 0?o:"0"),10),_=f>0?nS(f):"unknown",S=(g=(t=a.resolveUserName)===null||t===void 0?void 0:t.call(a,u))!==null&&g!==void 0?g:u,b;if(c==="merge_forward"){let x=p.message_id;b=x?yield ip(x,e,a):"<forwarded_messages/>"}else{let x=(y=(m=p.body)===null||m===void 0?void 0:m.content)!==null&&y!==void 0?y:"{}";a.dispatch?b=(yield a.dispatch(x,c,a)).content:b=x}let I=hS(b," ");return`[${_}] ${S}:
|
|
64
|
-
${I}`})}var wS=(p,e)=>n(void 0,void 0,void 0,function*(){var a;let r=yt(p);if(r==null||typeof r!="object")return{content:"[rich text message]",resources:[]};let i=oS(r);if(!i)return{content:"[rich text message]",resources:[]};let s=[],o=[];i.title&&(o.push(`**${i.title}**`),o.push(""));for(let g of(a=i.content)!==null&&a!==void 0?a:[]){if(!Array.isArray(g))continue;let m="";for(let y of g)m+=PS(y,e,s);o.push(m)}return{content:o.join(`
|
|
65
|
-
`).trim()||"[rich text message]",resources:s}});function PS(p,e,a){var r,i,s,o,t,g,m;switch(p.tag){case"text":return iS((r=p.text)!==null&&r!==void 0?r:"",p.style);case"a":{let y=(s=(i=p.text)!==null&&i!==void 0?i:p.href)!==null&&s!==void 0?s:"";return p.href?`[${y}](${p.href})`:y}case"at":{let y=(o=p.user_id)!==null&&o!==void 0?o:"";if(y==="all"||y==="all_members")return"@all";let c=e.mentionsByOpenId.get(y);return c?c.key:p.user_name?`@${p.user_name}`:`@${y}`}case"img":return p.image_key?(a.push({type:"image",fileKey:p.image_key}),``):"";case"media":return p.file_key?(a.push({type:"file",fileKey:p.file_key}),`<file key="${p.file_key}"/>`):"";case"code_block":{let y=(t=p.language)!==null&&t!==void 0?t:"",c=(g=p.text)!==null&&g!==void 0?g:"";return`
|
|
66
|
-
\`\`\`${y}
|
|
67
|
-
${c}
|
|
68
|
-
\`\`\`
|
|
69
|
-
`}case"hr":return`
|
|
70
|
-
---
|
|
71
|
-
`;default:return(m=p.text)!==null&&m!==void 0?m:""}}var kS=(p,e)=>n(void 0,void 0,void 0,function*(){var a;let r=yt(p);return{content:`<group_card id="${(a=r?.chat_id)!==null&&a!==void 0?a:""}"/>`,resources:[]}}),TS=(p,e)=>n(void 0,void 0,void 0,function*(){var a;let r=yt(p);return{content:`<contact_card id="${(a=r?.user_id)!==null&&a!==void 0?a:""}"/>`,resources:[]}}),qS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p),r=a?.file_key;if(!r)return{content:"[sticker]",resources:[]};let i=[{type:"sticker",fileKey:r}];return{content:`<sticker key="${r}"/>`,resources:i}}),FS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p);return!a||!a.template?{content:"[system message]",resources:[]}:{content:a.template.replace(/\{([a-z_]+)\}/g,(i,s)=>{let o=a[s];return Array.isArray(o)?o.join(", "):typeof o=="string"?o:o==null?"":i}).trim()||"[system message]",resources:[]}}),$S=(p,e)=>n(void 0,void 0,void 0,function*(){var a;let r=yt(p);return{content:(a=r?.text)!==null&&a!==void 0?a:"",resources:[]}}),zS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p);if(!a?.summary)return{content:`<todo>
|
|
72
|
-
[todo]
|
|
73
|
-
</todo>`,resources:[]};let r=[];a.summary.title&&r.push(a.summary.title);let i=ES(a.summary.content);i&&r.push(i);let s=Wr(a.due_time);return s&&r.push(`Due: ${s}`),r.length===0?{content:`<todo>
|
|
74
|
-
[todo]
|
|
75
|
-
</todo>`,resources:[]}:{content:`<todo>
|
|
76
|
-
${r.join(`
|
|
77
|
-
`)}
|
|
78
|
-
</todo>`,resources:[]}});function ES(p){if(!p)return"";let e=[];for(let a of p){if(!Array.isArray(a))continue;let r=[];for(let i of a)(i.tag==="text"&&i.text||i.tag==="a"&&i.text)&&r.push(i.text);r.length>0&&e.push(r.join(""))}return e.join(`
|
|
79
|
-
`)}var Lc=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p);return a&&typeof a.text=="string"?{content:a.text,resources:[]}:{content:"[unsupported message]",resources:[]}}),Mc=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p),r=a?.file_key;if(!r)return{content:"[video]",resources:[]};let i=a?.file_name?` name="${Fa(a.file_name)}"`:"",s=rp(a?.duration),o=s?` duration="${s}"`:"",t=`<video key="${r}"${i}${o}/>`,g=[{type:"video",fileKey:r,fileName:a?.file_name,durationMs:a?.duration,coverImageKey:a?.image_key}];return{content:t,resources:g}}),OS=(p,e)=>n(void 0,void 0,void 0,function*(){let a=yt(p);if(!a)return{content:`<meeting>
|
|
80
|
-
[video chat]
|
|
81
|
-
</meeting>`,resources:[]};let r=[];a.topic&&r.push(`\u{1F4F9} ${a.topic}`);let i=Wr(a.start_time);return i&&r.push(`\u{1F559} ${i}`),{content:`<meeting>
|
|
82
|
-
${r.length>0?r.join(`
|
|
83
|
-
`):"[video chat]"}
|
|
84
|
-
</meeting>`,resources:[]}}),xS=(p,e)=>n(void 0,void 0,void 0,function*(){var a,r;let i=yt(p);if(!i||!i.topic&&!(!((a=i.options)===null||a===void 0)&&a.length))return{content:`<vote>
|
|
85
|
-
[vote]
|
|
86
|
-
</vote>`,resources:[]};let s=[];i.topic&&s.push(i.topic);for(let o of(r=i.options)!==null&&r!==void 0?r:[])s.push(`\u2022 ${o}`);return{content:`<vote>
|
|
87
|
-
${s.join(`
|
|
88
|
-
`)}
|
|
89
|
-
</vote>`,resources:[]}}),GS=new Map([["text",$S],["post",wS],["image",fS],["file",mS],["audio",dS],["video",Mc],["media",Mc],["sticker",qS],["interactive",vS],["merge_forward",bS],["share_chat",kS],["share_user",TS],["location",_S],["system",FS],["vote",xS],["todo",zS],["calendar",lS],["general_calendar",cS],["share_calendar_event",pS],["folder",uS],["hongbao",yS],["video_chat",OS]]);function Wc(p,e,a){var r;return n(this,void 0,void 0,function*(){let i=(r=GS.get(e))!==null&&r!==void 0?r:Lc;try{return yield i(p,a)}catch{return Lc(p)}})}function sp(p,e){var a,r,i,s,o,t,g,m,y,c,u,f;let _=(r=(a=p.context)===null||a===void 0?void 0:a.open_message_id)!==null&&r!==void 0?r:p.open_message_id,S=(s=(i=p.context)===null||i===void 0?void 0:i.open_chat_id)!==null&&s!==void 0?s:p.open_chat_id,b=(o=p.operator)===null||o===void 0?void 0:o.open_id;return!_||!S||!b?null:{messageId:_,chatId:S,operator:{openId:b,userId:(t=p.operator)===null||t===void 0?void 0:t.user_id,name:(g=p.operator)===null||g===void 0?void 0:g.name},action:{value:(m=p.action)===null||m===void 0?void 0:m.value,tag:(c=(y=p.action)===null||y===void 0?void 0:y.tag)!==null&&c!==void 0?c:"unknown",name:(u=p.action)===null||u===void 0?void 0:u.name,option:(f=p.action)===null||f===void 0?void 0:f.option},raw:e?.includeRaw?p:void 0}}function fn(p,e,a){var r,i,s,o;let t=p.message_id,g=(r=p.reaction_type)===null||r===void 0?void 0:r.emoji_type,m=(i=p.user_id)===null||i===void 0?void 0:i.open_id;if(!t||!g||!m)return null;let y=p.action_time,c=y?parseInt(y,10):void 0;return{messageId:t,operator:{openId:m,userId:(o=(s=p.user_id)===null||s===void 0?void 0:s.user_id)!==null&&o!==void 0?o:void 0},emojiType:g,action:e,actionTime:c!=null&&Number.isFinite(c)?c:void 0,raw:a?.includeRaw?p:void 0}}function op(p,e){var a,r,i,s,o,t,g,m,y;let c=p.chat_id,u=(a=p.operator_id)===null||a===void 0?void 0:a.open_id;if(!c||!u)return null;let f=(t=(s=(r=p.name)!==null&&r!==void 0?r:(i=p.i18n_names)===null||i===void 0?void 0:i.zh_cn)!==null&&s!==void 0?s:(o=p.i18n_names)===null||o===void 0?void 0:o.en_us)!==null&&t!==void 0?t:(g=p.i18n_names)===null||g===void 0?void 0:g.ja_jp;return{chatId:c,operator:{openId:u,userId:(y=(m=p.operator_id)===null||m===void 0?void 0:m.user_id)!==null&&y!==void 0?y:void 0},botName:f,external:p.external,raw:e?.includeRaw?p:void 0}}function np(p,e){var a,r,i,s,o,t,g,m,y,c,u,f,_;let S=(a=p.file_token)!==null&&a!==void 0?a:(r=p.notice_meta)===null||r===void 0?void 0:r.file_token,b=(i=p.file_type)!==null&&i!==void 0?i:(s=p.notice_meta)===null||s===void 0?void 0:s.file_type,I=p.comment_id,x=(t=(o=p.notice_meta)===null||o===void 0?void 0:o.from_user_id)!==null&&t!==void 0?t:p.user_id,z=x?.open_id;if(!S||!b||!I||!z)return null;let B=(y=(g=p.create_time)!==null&&g!==void 0?g:(m=p.notice_meta)===null||m===void 0?void 0:m.timestamp)!==null&&y!==void 0?y:p.action_time,N=B?parseInt(B,10):Date.now();return{fileToken:S,fileType:b,commentId:I,replyId:p.reply_id,operator:{openId:z,userId:(c=x?.user_id)!==null&&c!==void 0?c:void 0,unionId:x?.union_id},mentionedBot:!!((_=(u=p.is_mentioned)!==null&&u!==void 0?u:(f=p.notice_meta)===null||f===void 0?void 0:f.is_mentioned)!==null&&_!==void 0?_:p.is_mention),timestamp:Number.isFinite(N)?N:Date.now(),raw:e?.includeRaw?p:void 0}}function hp(p,e){var a,r,i,s,o;return n(this,void 0,void 0,function*(){let t=p.message,g=(a=e.botIdentity)===null||a===void 0?void 0:a.openId,{mentions:m,mentionsByOpenId:y,mentionList:c,mentionAll:u,mentionedBot:f}=eS(t.mentions,g),_=u||jS(t.content),S={messageId:t.message_id,botOpenId:g,mentions:m,mentionsByOpenId:y,stripBotMentions:(r=e.stripBotMentions)!==null&&r!==void 0?r:!0,fetchSubMessages:e.fetchSubMessages,resolveUserName:e.resolveUserName,batchResolveNames:e.batchResolveNames,dispatch:Wc},{content:b,resources:I}=yield Wc(t.content,t.message_type,S),x=aS(b,S),z=p.sender.sender_id.open_id,B=(s=(i=p.sender.sender_id.user_id)!==null&&i!==void 0?i:p.sender.sender_id.union_id)!==null&&s!==void 0?s:"",N=z??B,V=z?(o=e.resolveSenderName)===null||o===void 0?void 0:o.call(e,z):void 0,X=t.create_time?parseInt(t.create_time,10):0;return{messageId:t.message_id,chatId:t.chat_id,chatType:t.chat_type,senderId:N,senderName:V,content:x,rawContentType:t.message_type,resources:I,mentions:c,mentionAll:_,mentionedBot:f,rootId:t.root_id,threadId:t.thread_id,replyToMessageId:t.parent_id,createTime:Number.isFinite(X)?X:0,raw:e.includeRaw?p:void 0}})}function jS(p){return p?/@_all\b/.test(p):!1}var Ur=class{constructor(e){var a,r,i,s,o,t,g;this.handlers={},this.connected=!1,this.opts=e,this.logger=new oe((a=e.loggerLevel)!==null&&a!==void 0?a:j.LoggerLevel.info,(r=e.logger)!==null&&r!==void 0?r:Jt),this.rawClient=new Rr({appId:e.appId,appSecret:e.appSecret,domain:(i=e.domain)!==null&&i!==void 0?i:j.Domain.Feishu,cache:e.cache,httpInstance:e.httpInstance,logger:e.logger,loggerLevel:e.loggerLevel,source:e.source,extraUaTags:["channel"]}),this.dispatcher=new Cr({verificationToken:(s=e.webhook)===null||s===void 0?void 0:s.verificationToken,encryptKey:(o=e.webhook)===null||o===void 0?void 0:o.encryptKey,cache:e.cache,logger:e.logger,loggerLevel:e.loggerLevel}),this.sender=new dn(this.rawClient,(t=e.outbound)!==null&&t!==void 0?t:{},this.logger),this.safety=new yn({config:e.safety,policy:e.policy,cache:(g=e.cache)!==null&&g!==void 0?g:Ta,logger:this.logger,onReject:m=>{var y,c;(c=(y=this.handlers).reject)===null||c===void 0||c.call(y,m)},onMessage:m=>n(this,void 0,void 0,function*(){let y=this.handlers.message;y&&(yield y(m))})})}connect(){return n(this,void 0,void 0,function*(){return this.connectPromise?this.connectPromise:(this.connectPromise=this.doConnect().catch(e=>{throw this.connectPromise=void 0,e}),this.connectPromise)})}doConnect(){var e;return n(this,void 0,void 0,function*(){this.botIdentity=yield this.fetchBotIdentity(),this.safety.setBotIdentity(this.botIdentity),this.registerDispatcherHandlers(),((e=this.opts.transport)!==null&&e!==void 0?e:"websocket")==="websocket"&&(yield this.connectWebSocket(15e3)),this.connected=!0})}connectWebSocket(e){return new Promise((a,r)=>{var i;let s=!1,o=setTimeout(()=>{s||(s=!0,r(new rt("not_connected",`WebSocket handshake did not complete within ${e}ms`)))},e);this.rawWsClient=new Br({appId:this.opts.appId,appSecret:this.opts.appSecret,domain:(i=this.opts.domain)!==null&&i!==void 0?i:j.Domain.Feishu,logger:this.opts.logger,loggerLevel:this.opts.loggerLevel,httpInstance:this.opts.httpInstance,autoReconnect:!0,source:this.opts.source,extraUaTags:["channel"],agent:this.opts.agent,wsConfig:this.opts.wsConfig,handshakeTimeoutMs:this.opts.handshakeTimeoutMs,onReady:()=>{s||(s=!0,clearTimeout(o),a())},onError:t=>{s||(s=!0,clearTimeout(o),r(new rt("not_connected",`WebSocket connect failed: ${t.message}`,{cause:t})))},onReconnecting:()=>{var t,g;return(g=(t=this.handlers).reconnecting)===null||g===void 0?void 0:g.call(t)},onReconnected:()=>{var t,g;return(g=(t=this.handlers).reconnected)===null||g===void 0?void 0:g.call(t)}}),this.rawWsClient.start({eventDispatcher:this.dispatcher})})}disconnect(){var e;return n(this,void 0,void 0,function*(){if(this.connected){try{(e=this.rawWsClient)===null||e===void 0||e.close({})}catch{}try{yield this.safety.dispose()}catch{}this.connected=!1,this.connectPromise=void 0}})}getConnectionStatus(){var e;return(e=this.rawWsClient)===null||e===void 0?void 0:e.getConnectionStatus()}on(e,a){if(typeof e=="string")return this.attachSingle(e,a);let r=[];return Object.keys(e).forEach(i=>{let s=e[i];s&&r.push(this.attachSingle(i,s))}),()=>r.forEach(i=>i())}attachSingle(e,a){return this.handlers[e]&&this.logger.warn(`channel: handler for "${e}" is being overwritten`),this.handlers[e]=a,()=>{this.handlers[e]===a&&delete this.handlers[e]}}send(e,a,r){return n(this,void 0,void 0,function*(){return this.sender.send(e,a,r)})}stream(e,a,r){return n(this,void 0,void 0,function*(){return this.sender.stream(e,a,r)})}updateCard(e,a){return n(this,void 0,void 0,function*(){yield this.sender.patchCard(e,a)})}editMessage(e,a){return n(this,void 0,void 0,function*(){yield this.rawClient.im.v1.message.update({path:{message_id:e},data:{msg_type:"text",content:JSON.stringify({text:a})}})})}recallMessage(e){return n(this,void 0,void 0,function*(){yield this.rawClient.im.v1.message.delete({path:{message_id:e}})})}addReaction(e,a){var r,i;return n(this,void 0,void 0,function*(){let s=yield this.rawClient.im.v1.messageReaction.create({path:{message_id:e},data:{reaction_type:{emoji_type:a}}}),o=(i=(r=s?.data)===null||r===void 0?void 0:r.reaction_id)!==null&&i!==void 0?i:s?.reaction_id;if(!o)throw new rt("unknown","messageReaction.create returned no reaction_id");return o})}removeReaction(e,a){return n(this,void 0,void 0,function*(){yield this.rawClient.im.v1.messageReaction.delete({path:{message_id:e,reaction_id:a}})})}removeReactionByEmoji(e,a){var r,i;return n(this,void 0,void 0,function*(){let s=yield this.rawClient.im.v1.messageReaction.list({path:{message_id:e},params:{reaction_type:a,page_size:50}}),t=((i=(r=s?.data)===null||r===void 0?void 0:r.items)!==null&&i!==void 0?i:[]).find(g=>{var m;return((m=g.operator)===null||m===void 0?void 0:m.operator_type)==="app"});return t?.reaction_id?(yield this.removeReaction(e,t.reaction_id),!0):!1})}downloadResource(e,a){return n(this,void 0,void 0,function*(){if(a==="image"){let i=yield this.rawClient.im.v1.image.get({path:{image_key:e}});return yield Uc(i)}let r=yield this.rawClient.im.v1.file.get({path:{file_key:e}});return yield Uc(r)})}getChatInfo(e){var a,r;return n(this,void 0,void 0,function*(){let s=(a=(yield this.rawClient.im.v1.chat.get({path:{chat_id:e}})).data)!==null&&a!==void 0?a:{};return{chatId:e,name:s.name,description:s.description,chatType:(r=s.chat_mode)!==null&&r!==void 0?r:"group",ownerId:s.owner_id,memberCount:s.user_count}})}getChatMode(e){var a;return n(this,void 0,void 0,function*(){let i=(a=(yield this.rawClient.im.v1.chat.get({path:{chat_id:e}})).data)===null||a===void 0?void 0:a.chat_mode;return i==="p2p"?"p2p":i==="topic"?"topic":"group"})}updatePolicy(e){this.safety.updatePolicy(e)}getPolicy(){return this.safety.getPolicy()}fetchBotIdentity(){var e;return n(this,void 0,void 0,function*(){let a;try{let s=yield this.rawClient.request({url:"/open-apis/bot/v3/info",method:"GET"}),o=s.bot;if(o?.open_id)return{openId:o.open_id,name:(e=o.app_name)!==null&&e!==void 0?e:"bot"};a=new Error(`bot/v3/info response missing open_id: ${JSON.stringify(s).slice(0,200)}`)}catch(s){a=s}let r=_n(a),i=r.code==="unknown"?"not_connected":r.code;throw new rt(i,"could not resolve bot identity via /open-apis/bot/v3/info \u2014 required for channel to function",{cause:a})})}registerDispatcherHandlers(){var e,a;let r=o=>n(this,void 0,void 0,function*(){var t,g,m,y;try{return(g=(t=(yield this.rawClient.im.v1.message.get({path:{message_id:o}})).data)===null||t===void 0?void 0:t.items)!==null&&g!==void 0?g:[]}catch(c){return(y=(m=this.logger).warn)===null||y===void 0||y.call(m,"channel: fetchSubMessages failed",c),[]}}),i=(a=(e=this.opts.includeRawEvent)!==null&&e!==void 0?e:this.opts.includeRawInMessage)!==null&&a!==void 0?a:!1,s={botIdentity:this.botIdentity,stripBotMentions:!0,includeRaw:i,fetchSubMessages:r};this.dispatcher.register({"im.message.receive_v1":o=>n(this,void 0,void 0,function*(){try{let t=yield hp(o,s);yield this.safety.pushMessage(t)}catch(t){this.emitError(t)}}),"card.action.trigger":o=>n(this,void 0,void 0,function*(){let t=sp(o,{includeRaw:i});if(!t)return;let g=CS(t.action);yield this.safety.pushAction(`card:${t.messageId}:${t.operator.openId}:${g}`,t.chatId,()=>n(this,void 0,void 0,function*(){let m=this.handlers.cardAction;m&&(yield m(t))}))}),"im.message.reaction.created_v1":o=>n(this,void 0,void 0,function*(){let t=fn(o,"added",{includeRaw:i});if(!t)return;let g=Nc(t);yield this.safety.pushLight(g,()=>{var m,y;return(y=(m=this.handlers).reaction)===null||y===void 0?void 0:y.call(m,t)})}),"im.message.reaction.deleted_v1":o=>n(this,void 0,void 0,function*(){let t=fn(o,"removed",{includeRaw:i});if(!t)return;let g=Nc(t);yield this.safety.pushLight(g,()=>{var m,y;return(y=(m=this.handlers).reaction)===null||y===void 0?void 0:y.call(m,t)})}),"im.chat.member.bot.added_v1":o=>{var t,g;let m=op(o,{includeRaw:i});if(m)try{(g=(t=this.handlers).botAdded)===null||g===void 0||g.call(t,m)}catch(y){this.emitError(y)}},"drive.notice.comment_add_v1":o=>n(this,void 0,void 0,function*(){var t;let g=np(o,{includeRaw:i});g&&(yield this.safety.pushAction(`comment:${g.fileToken}:${g.commentId}:${(t=g.replyId)!==null&&t!==void 0?t:""}`,g.fileToken,()=>n(this,void 0,void 0,function*(){let m=this.handlers.comment;m&&(yield m(g))})))})})}emitError(e){var a,r,i;let s=e instanceof rt?e:new rt("unknown",String((a=e?.message)!==null&&a!==void 0?a:e),{cause:e}),o=this.handlers.error;o?o(s):(i=(r=this.logger).error)===null||i===void 0||i.call(r,"channel: unhandled error",s)}};function RS(p){return new Ur(p)}function Uc(p){return n(this,void 0,void 0,function*(){if(Buffer.isBuffer(p))return p;if(p instanceof Uint8Array)return Buffer.from(p);if(typeof p=="object"&&p!==null){let e=p;if(typeof e.getReadableStream=="function")return yield AS(e.getReadableStream());if(Buffer.isBuffer(e.data))return e.data;if(e.data instanceof Uint8Array)return Buffer.from(e.data)}throw new rt("unknown","unexpected download response type")})}function AS(p){return new Promise((e,a)=>{let r=[];p.on("data",i=>{r.push(Buffer.isBuffer(i)?i:Buffer.from(i))}),p.on("end",()=>e(Buffer.concat(r))),p.on("error",a)})}function Nc(p){var e;return`rx:${p.messageId}:${p.operator.openId}:${p.emojiType}:${p.action}:${(e=p.actionTime)!==null&&e!==void 0?e:0}`}function CS(p){var e,a,r;let i=typeof p.value=="string"?p.value:JSON.stringify((e=p.value)!==null&&e!==void 0?e:""),s=i.length>128?i.slice(0,128):i;return`${p.tag}|${(a=p.name)!==null&&a!==void 0?a:""}|${(r=p.option)!==null&&r!==void 0?r:""}|${s}`}j.AESCipher=ka;j.Aily=an;j.CAppTicket=Pa;j.CTenantAccessToken=Es;j.CardActionHandler=Zo;j.Client=Rr;j.DefaultCache=jr;j.EventDispatcher=Cr;j.LarkChannel=Ur;j.LarkChannelError=rt;j.LoggerProxy=oe;j.WSClient=Br;j.adaptDefault=J0;j.adaptExpress=Q0;j.adaptKoa=X0;j.adaptKoaRouter=Z0;j.createLarkChannel=RS;j.defaultHttpInstance=We;j.defaultLogger=Jt;j.generateChallenge=qa;j.internalCache=Ta;j.messageCard=tb;j.normalize=hp;j.normalizeBotAdded=op;j.normalizeCardAction=sp;j.normalizeComment=np;j.normalizeReaction=fn;j.registerApp=cb;j.withAll=W0;j.withHelpDeskCredential=N0;j.withTenantKey=U0;j.withTenantToken=H0;j.withUserAccessToken=K0});export{ld as a,DS as b};
|
|
90
|
-
/*! Bundled license information:
|
|
91
|
-
|
|
92
|
-
axios/dist/node/axios.cjs:
|
|
93
|
-
(*! Axios v1.13.6 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
94
|
-
|
|
95
|
-
long/umd/index.js:
|
|
96
|
-
(**
|
|
97
|
-
* @license
|
|
98
|
-
* Copyright 2009 The Closure Library Authors
|
|
99
|
-
* Copyright 2020 Daniel Wirtz / The long.js Authors.
|
|
100
|
-
*
|
|
101
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
102
|
-
* you may not use this file except in compliance with the License.
|
|
103
|
-
* You may obtain a copy of the License at
|
|
104
|
-
*
|
|
105
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
106
|
-
*
|
|
107
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
108
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
109
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
110
|
-
* See the License for the specific language governing permissions and
|
|
111
|
-
* limitations under the License.
|
|
112
|
-
*
|
|
113
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
114
|
-
*)
|
|
115
|
-
*/
|