@danyow/lark-mcp 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/LICENSE +9 -0
  3. package/README.md +215 -0
  4. package/README_ZH.md +212 -0
  5. package/dist/auth/config.d.ts +12 -0
  6. package/dist/auth/config.js +15 -0
  7. package/dist/auth/handler/handler-local.d.ts +21 -0
  8. package/dist/auth/handler/handler-local.js +123 -0
  9. package/dist/auth/handler/handler.d.ts +32 -0
  10. package/dist/auth/handler/handler.js +117 -0
  11. package/dist/auth/handler/index.d.ts +2 -0
  12. package/dist/auth/handler/index.js +18 -0
  13. package/dist/auth/index.d.ts +4 -0
  14. package/dist/auth/index.js +20 -0
  15. package/dist/auth/provider/index.d.ts +3 -0
  16. package/dist/auth/provider/index.js +19 -0
  17. package/dist/auth/provider/oauth.d.ts +18 -0
  18. package/dist/auth/provider/oauth.js +147 -0
  19. package/dist/auth/provider/oidc.d.ts +18 -0
  20. package/dist/auth/provider/oidc.js +172 -0
  21. package/dist/auth/provider/types.d.ts +8 -0
  22. package/dist/auth/provider/types.js +2 -0
  23. package/dist/auth/store.d.ts +39 -0
  24. package/dist/auth/store.js +213 -0
  25. package/dist/auth/types.d.ts +13 -0
  26. package/dist/auth/types.js +2 -0
  27. package/dist/auth/utils/encryption.d.ts +7 -0
  28. package/dist/auth/utils/encryption.js +40 -0
  29. package/dist/auth/utils/index.d.ts +3 -0
  30. package/dist/auth/utils/index.js +19 -0
  31. package/dist/auth/utils/is-token-valid.d.ts +7 -0
  32. package/dist/auth/utils/is-token-valid.js +28 -0
  33. package/dist/auth/utils/pkce.d.ts +6 -0
  34. package/dist/auth/utils/pkce.js +20 -0
  35. package/dist/auth/utils/storage-manager.d.ts +17 -0
  36. package/dist/auth/utils/storage-manager.js +135 -0
  37. package/dist/cli/index.d.ts +1 -0
  38. package/dist/cli/index.js +5 -0
  39. package/dist/cli/login-handler.d.ts +16 -0
  40. package/dist/cli/login-handler.js +142 -0
  41. package/dist/cli.d.ts +4 -0
  42. package/dist/cli.js +122 -0
  43. package/dist/index.d.ts +3 -0
  44. package/dist/index.js +19 -0
  45. package/dist/mcp-server/index.d.ts +2 -0
  46. package/dist/mcp-server/index.js +18 -0
  47. package/dist/mcp-server/shared/index.d.ts +2 -0
  48. package/dist/mcp-server/shared/index.js +18 -0
  49. package/dist/mcp-server/shared/init.d.ts +10 -0
  50. package/dist/mcp-server/shared/init.js +121 -0
  51. package/dist/mcp-server/shared/types.d.ts +40 -0
  52. package/dist/mcp-server/shared/types.js +10 -0
  53. package/dist/mcp-server/transport/index.d.ts +3 -0
  54. package/dist/mcp-server/transport/index.js +19 -0
  55. package/dist/mcp-server/transport/sse.d.ts +2 -0
  56. package/dist/mcp-server/transport/sse.js +75 -0
  57. package/dist/mcp-server/transport/stdio.d.ts +2 -0
  58. package/dist/mcp-server/transport/stdio.js +36 -0
  59. package/dist/mcp-server/transport/streamable.d.ts +2 -0
  60. package/dist/mcp-server/transport/streamable.js +86 -0
  61. package/dist/mcp-server/transport/utils.d.ts +16 -0
  62. package/dist/mcp-server/transport/utils.js +34 -0
  63. package/dist/mcp-tool/constants.d.ts +49 -0
  64. package/dist/mcp-tool/constants.js +115 -0
  65. package/dist/mcp-tool/document-tool/index.d.ts +1 -0
  66. package/dist/mcp-tool/document-tool/index.js +17 -0
  67. package/dist/mcp-tool/document-tool/recall/index.d.ts +2 -0
  68. package/dist/mcp-tool/document-tool/recall/index.js +39 -0
  69. package/dist/mcp-tool/document-tool/recall/request.d.ts +2 -0
  70. package/dist/mcp-tool/document-tool/recall/request.js +25 -0
  71. package/dist/mcp-tool/document-tool/recall/type.d.ts +19 -0
  72. package/dist/mcp-tool/document-tool/recall/type.js +2 -0
  73. package/dist/mcp-tool/index.d.ts +5 -0
  74. package/dist/mcp-tool/index.js +21 -0
  75. package/dist/mcp-tool/mcp-tool.d.ts +52 -0
  76. package/dist/mcp-tool/mcp-tool.js +198 -0
  77. package/dist/mcp-tool/tools/en/builtin-tools/docx/builtin.d.ts +5 -0
  78. package/dist/mcp-tool/tools/en/builtin-tools/docx/builtin.js +219 -0
  79. package/dist/mcp-tool/tools/en/builtin-tools/drive/builtin.d.ts +4 -0
  80. package/dist/mcp-tool/tools/en/builtin-tools/drive/builtin.js +159 -0
  81. package/dist/mcp-tool/tools/en/builtin-tools/im/buildin.d.ts +4 -0
  82. package/dist/mcp-tool/tools/en/builtin-tools/im/buildin.js +63 -0
  83. package/dist/mcp-tool/tools/en/builtin-tools/index.d.ts +5 -0
  84. package/dist/mcp-tool/tools/en/builtin-tools/index.js +7 -0
  85. package/dist/mcp-tool/tools/en/gen-tools/index.d.ts +114 -0
  86. package/dist/mcp-tool/tools/en/gen-tools/index.js +129 -0
  87. package/dist/mcp-tool/tools/en/gen-tools/zod/acs_v1.d.ts +562 -0
  88. package/dist/mcp-tool/tools/en/gen-tools/zod/acs_v1.js +264 -0
  89. package/dist/mcp-tool/tools/en/gen-tools/zod/admin_v1.d.ts +912 -0
  90. package/dist/mcp-tool/tools/en/gen-tools/zod/admin_v1.js +449 -0
  91. package/dist/mcp-tool/tools/en/gen-tools/zod/aily_v1.d.ts +1213 -0
  92. package/dist/mcp-tool/tools/en/gen-tools/zod/aily_v1.js +560 -0
  93. package/dist/mcp-tool/tools/en/gen-tools/zod/apaas_v1.d.ts +2530 -0
  94. package/dist/mcp-tool/tools/en/gen-tools/zod/apaas_v1.js +949 -0
  95. package/dist/mcp-tool/tools/en/gen-tools/zod/application_v5.d.ts +80 -0
  96. package/dist/mcp-tool/tools/en/gen-tools/zod/application_v5.js +53 -0
  97. package/dist/mcp-tool/tools/en/gen-tools/zod/application_v6.d.ts +1008 -0
  98. package/dist/mcp-tool/tools/en/gen-tools/zod/application_v6.js +775 -0
  99. package/dist/mcp-tool/tools/en/gen-tools/zod/approval_v4.d.ts +3928 -0
  100. package/dist/mcp-tool/tools/en/gen-tools/zod/approval_v4.js +1602 -0
  101. package/dist/mcp-tool/tools/en/gen-tools/zod/attendance_v1.d.ts +6043 -0
  102. package/dist/mcp-tool/tools/en/gen-tools/zod/attendance_v1.js +1857 -0
  103. package/dist/mcp-tool/tools/en/gen-tools/zod/auth_v3.d.ts +151 -0
  104. package/dist/mcp-tool/tools/en/gen-tools/zod/auth_v3.js +71 -0
  105. package/dist/mcp-tool/tools/en/gen-tools/zod/authen_v1.d.ts +26 -0
  106. package/dist/mcp-tool/tools/en/gen-tools/zod/authen_v1.js +17 -0
  107. package/dist/mcp-tool/tools/en/gen-tools/zod/baike_v1.d.ts +2174 -0
  108. package/dist/mcp-tool/tools/en/gen-tools/zod/baike_v1.js +594 -0
  109. package/dist/mcp-tool/tools/en/gen-tools/zod/base_v2.d.ts +755 -0
  110. package/dist/mcp-tool/tools/en/gen-tools/zod/base_v2.js +234 -0
  111. package/dist/mcp-tool/tools/en/gen-tools/zod/bitable_v1.d.ts +3541 -0
  112. package/dist/mcp-tool/tools/en/gen-tools/zod/bitable_v1.js +1786 -0
  113. package/dist/mcp-tool/tools/en/gen-tools/zod/board_v1.d.ts +40 -0
  114. package/dist/mcp-tool/tools/en/gen-tools/zod/board_v1.js +18 -0
  115. package/dist/mcp-tool/tools/en/gen-tools/zod/calendar_v4.d.ts +2075 -0
  116. package/dist/mcp-tool/tools/en/gen-tools/zod/calendar_v4.js +1594 -0
  117. package/dist/mcp-tool/tools/en/gen-tools/zod/cardkit_v1.d.ts +528 -0
  118. package/dist/mcp-tool/tools/en/gen-tools/zod/cardkit_v1.js +260 -0
  119. package/dist/mcp-tool/tools/en/gen-tools/zod/compensation_v1.d.ts +189 -0
  120. package/dist/mcp-tool/tools/en/gen-tools/zod/compensation_v1.js +132 -0
  121. package/dist/mcp-tool/tools/en/gen-tools/zod/contact_v3.d.ts +4274 -0
  122. package/dist/mcp-tool/tools/en/gen-tools/zod/contact_v3.js +2583 -0
  123. package/dist/mcp-tool/tools/en/gen-tools/zod/corehr_v1.d.ts +16873 -0
  124. package/dist/mcp-tool/tools/en/gen-tools/zod/corehr_v1.js +5045 -0
  125. package/dist/mcp-tool/tools/en/gen-tools/zod/corehr_v2.d.ts +29387 -0
  126. package/dist/mcp-tool/tools/en/gen-tools/zod/corehr_v2.js +7787 -0
  127. package/dist/mcp-tool/tools/en/gen-tools/zod/directory_v1.d.ts +4274 -0
  128. package/dist/mcp-tool/tools/en/gen-tools/zod/directory_v1.js +1367 -0
  129. package/dist/mcp-tool/tools/en/gen-tools/zod/docs_v1.d.ts +58 -0
  130. package/dist/mcp-tool/tools/en/gen-tools/zod/docs_v1.js +28 -0
  131. package/dist/mcp-tool/tools/en/gen-tools/zod/docx_v1.d.ts +93466 -0
  132. package/dist/mcp-tool/tools/en/gen-tools/zod/docx_v1.js +14350 -0
  133. package/dist/mcp-tool/tools/en/gen-tools/zod/drive_v1.d.ts +3251 -0
  134. package/dist/mcp-tool/tools/en/gen-tools/zod/drive_v1.js +1422 -0
  135. package/dist/mcp-tool/tools/en/gen-tools/zod/drive_v2.d.ts +174 -0
  136. package/dist/mcp-tool/tools/en/gen-tools/zod/drive_v2.js +117 -0
  137. package/dist/mcp-tool/tools/en/gen-tools/zod/ehr_v1.d.ts +86 -0
  138. package/dist/mcp-tool/tools/en/gen-tools/zod/ehr_v1.js +48 -0
  139. package/dist/mcp-tool/tools/en/gen-tools/zod/event_v1.d.ts +44 -0
  140. package/dist/mcp-tool/tools/en/gen-tools/zod/event_v1.js +17 -0
  141. package/dist/mcp-tool/tools/en/gen-tools/zod/helpdesk_v1.d.ts +733 -0
  142. package/dist/mcp-tool/tools/en/gen-tools/zod/helpdesk_v1.js +285 -0
  143. package/dist/mcp-tool/tools/en/gen-tools/zod/hire_v1.d.ts +10076 -0
  144. package/dist/mcp-tool/tools/en/gen-tools/zod/hire_v1.js +6065 -0
  145. package/dist/mcp-tool/tools/en/gen-tools/zod/hire_v2.d.ts +158 -0
  146. package/dist/mcp-tool/tools/en/gen-tools/zod/hire_v2.js +61 -0
  147. package/dist/mcp-tool/tools/en/gen-tools/zod/human_authentication_v1.d.ts +70 -0
  148. package/dist/mcp-tool/tools/en/gen-tools/zod/human_authentication_v1.js +27 -0
  149. package/dist/mcp-tool/tools/en/gen-tools/zod/im_v1.d.ts +3043 -0
  150. package/dist/mcp-tool/tools/en/gen-tools/zod/im_v1.js +1869 -0
  151. package/dist/mcp-tool/tools/en/gen-tools/zod/im_v2.d.ts +2176 -0
  152. package/dist/mcp-tool/tools/en/gen-tools/zod/im_v2.js +460 -0
  153. package/dist/mcp-tool/tools/en/gen-tools/zod/lingo_v1.d.ts +2301 -0
  154. package/dist/mcp-tool/tools/en/gen-tools/zod/lingo_v1.js +669 -0
  155. package/dist/mcp-tool/tools/en/gen-tools/zod/mail_v1.d.ts +2462 -0
  156. package/dist/mcp-tool/tools/en/gen-tools/zod/mail_v1.js +1655 -0
  157. package/dist/mcp-tool/tools/en/gen-tools/zod/mdm_v1.d.ts +104 -0
  158. package/dist/mcp-tool/tools/en/gen-tools/zod/mdm_v1.js +45 -0
  159. package/dist/mcp-tool/tools/en/gen-tools/zod/mdm_v3.d.ts +329 -0
  160. package/dist/mcp-tool/tools/en/gen-tools/zod/mdm_v3.js +78 -0
  161. package/dist/mcp-tool/tools/en/gen-tools/zod/minutes_v1.d.ts +92 -0
  162. package/dist/mcp-tool/tools/en/gen-tools/zod/minutes_v1.js +62 -0
  163. package/dist/mcp-tool/tools/en/gen-tools/zod/moments_v1.d.ts +52 -0
  164. package/dist/mcp-tool/tools/en/gen-tools/zod/moments_v1.js +24 -0
  165. package/dist/mcp-tool/tools/en/gen-tools/zod/okr_v1.d.ts +1628 -0
  166. package/dist/mcp-tool/tools/en/gen-tools/zod/okr_v1.js +434 -0
  167. package/dist/mcp-tool/tools/en/gen-tools/zod/optical_char_recognition_v1.d.ts +38 -0
  168. package/dist/mcp-tool/tools/en/gen-tools/zod/optical_char_recognition_v1.js +17 -0
  169. package/dist/mcp-tool/tools/en/gen-tools/zod/passport_v1.d.ts +131 -0
  170. package/dist/mcp-tool/tools/en/gen-tools/zod/passport_v1.js +59 -0
  171. package/dist/mcp-tool/tools/en/gen-tools/zod/payroll_v1.d.ts +333 -0
  172. package/dist/mcp-tool/tools/en/gen-tools/zod/payroll_v1.js +176 -0
  173. package/dist/mcp-tool/tools/en/gen-tools/zod/performance_v1.d.ts +309 -0
  174. package/dist/mcp-tool/tools/en/gen-tools/zod/performance_v1.js +178 -0
  175. package/dist/mcp-tool/tools/en/gen-tools/zod/performance_v2.d.ts +1177 -0
  176. package/dist/mcp-tool/tools/en/gen-tools/zod/performance_v2.js +559 -0
  177. package/dist/mcp-tool/tools/en/gen-tools/zod/personal_settings_v1.d.ts +640 -0
  178. package/dist/mcp-tool/tools/en/gen-tools/zod/personal_settings_v1.js +303 -0
  179. package/dist/mcp-tool/tools/en/gen-tools/zod/report_v1.d.ts +192 -0
  180. package/dist/mcp-tool/tools/en/gen-tools/zod/report_v1.js +71 -0
  181. package/dist/mcp-tool/tools/en/gen-tools/zod/search_v2.d.ts +1695 -0
  182. package/dist/mcp-tool/tools/en/gen-tools/zod/search_v2.js +446 -0
  183. package/dist/mcp-tool/tools/en/gen-tools/zod/security_and_compliance_v1.d.ts +68 -0
  184. package/dist/mcp-tool/tools/en/gen-tools/zod/security_and_compliance_v1.js +32 -0
  185. package/dist/mcp-tool/tools/en/gen-tools/zod/sheets_v2.d.ts +523 -0
  186. package/dist/mcp-tool/tools/en/gen-tools/zod/sheets_v2.js +231 -0
  187. package/dist/mcp-tool/tools/en/gen-tools/zod/sheets_v3.d.ts +979 -0
  188. package/dist/mcp-tool/tools/en/gen-tools/zod/sheets_v3.js +721 -0
  189. package/dist/mcp-tool/tools/en/gen-tools/zod/speech_to_text_v1.d.ts +225 -0
  190. package/dist/mcp-tool/tools/en/gen-tools/zod/speech_to_text_v1.js +65 -0
  191. package/dist/mcp-tool/tools/en/gen-tools/zod/task_v1.d.ts +1161 -0
  192. package/dist/mcp-tool/tools/en/gen-tools/zod/task_v1.js +672 -0
  193. package/dist/mcp-tool/tools/en/gen-tools/zod/task_v2.d.ts +6051 -0
  194. package/dist/mcp-tool/tools/en/gen-tools/zod/task_v2.js +1970 -0
  195. package/dist/mcp-tool/tools/en/gen-tools/zod/tenant_v2.d.ts +31 -0
  196. package/dist/mcp-tool/tools/en/gen-tools/zod/tenant_v2.js +24 -0
  197. package/dist/mcp-tool/tools/en/gen-tools/zod/translation_v1.d.ts +80 -0
  198. package/dist/mcp-tool/tools/en/gen-tools/zod/translation_v1.js +37 -0
  199. package/dist/mcp-tool/tools/en/gen-tools/zod/trust_party_v1.d.ts +182 -0
  200. package/dist/mcp-tool/tools/en/gen-tools/zod/trust_party_v1.js +141 -0
  201. package/dist/mcp-tool/tools/en/gen-tools/zod/vc_v1.d.ts +5725 -0
  202. package/dist/mcp-tool/tools/en/gen-tools/zod/vc_v1.js +1751 -0
  203. package/dist/mcp-tool/tools/en/gen-tools/zod/verification_v1.d.ts +21 -0
  204. package/dist/mcp-tool/tools/en/gen-tools/zod/verification_v1.js +14 -0
  205. package/dist/mcp-tool/tools/en/gen-tools/zod/wiki_v1.d.ts +72 -0
  206. package/dist/mcp-tool/tools/en/gen-tools/zod/wiki_v1.js +19 -0
  207. package/dist/mcp-tool/tools/en/gen-tools/zod/wiki_v2.d.ts +843 -0
  208. package/dist/mcp-tool/tools/en/gen-tools/zod/wiki_v2.js +381 -0
  209. package/dist/mcp-tool/tools/en/gen-tools/zod/workplace_v1.d.ts +116 -0
  210. package/dist/mcp-tool/tools/en/gen-tools/zod/workplace_v1.js +77 -0
  211. package/dist/mcp-tool/tools/index.d.ts +104 -0
  212. package/dist/mcp-tool/tools/index.js +9 -0
  213. package/dist/mcp-tool/tools/zh/builtin-tools/docx/builtin.d.ts +5 -0
  214. package/dist/mcp-tool/tools/zh/builtin-tools/docx/builtin.js +198 -0
  215. package/dist/mcp-tool/tools/zh/builtin-tools/drive/builtin.d.ts +4 -0
  216. package/dist/mcp-tool/tools/zh/builtin-tools/drive/builtin.js +159 -0
  217. package/dist/mcp-tool/tools/zh/builtin-tools/im/buildin.d.ts +4 -0
  218. package/dist/mcp-tool/tools/zh/builtin-tools/im/buildin.js +63 -0
  219. package/dist/mcp-tool/tools/zh/builtin-tools/index.d.ts +5 -0
  220. package/dist/mcp-tool/tools/zh/builtin-tools/index.js +7 -0
  221. package/dist/mcp-tool/tools/zh/gen-tools/index.d.ts +114 -0
  222. package/dist/mcp-tool/tools/zh/gen-tools/index.js +129 -0
  223. package/dist/mcp-tool/tools/zh/gen-tools/zod/acs_v1.d.ts +562 -0
  224. package/dist/mcp-tool/tools/zh/gen-tools/zod/acs_v1.js +277 -0
  225. package/dist/mcp-tool/tools/zh/gen-tools/zod/admin_v1.d.ts +912 -0
  226. package/dist/mcp-tool/tools/zh/gen-tools/zod/admin_v1.js +430 -0
  227. package/dist/mcp-tool/tools/zh/gen-tools/zod/aily_v1.d.ts +1213 -0
  228. package/dist/mcp-tool/tools/zh/gen-tools/zod/aily_v1.js +541 -0
  229. package/dist/mcp-tool/tools/zh/gen-tools/zod/apaas_v1.d.ts +2530 -0
  230. package/dist/mcp-tool/tools/zh/gen-tools/zod/apaas_v1.js +885 -0
  231. package/dist/mcp-tool/tools/zh/gen-tools/zod/application_v5.d.ts +80 -0
  232. package/dist/mcp-tool/tools/zh/gen-tools/zod/application_v5.js +59 -0
  233. package/dist/mcp-tool/tools/zh/gen-tools/zod/application_v6.d.ts +1007 -0
  234. package/dist/mcp-tool/tools/zh/gen-tools/zod/application_v6.js +721 -0
  235. package/dist/mcp-tool/tools/zh/gen-tools/zod/approval_v4.d.ts +3928 -0
  236. package/dist/mcp-tool/tools/zh/gen-tools/zod/approval_v4.js +1532 -0
  237. package/dist/mcp-tool/tools/zh/gen-tools/zod/attendance_v1.d.ts +6043 -0
  238. package/dist/mcp-tool/tools/zh/gen-tools/zod/attendance_v1.js +1620 -0
  239. package/dist/mcp-tool/tools/zh/gen-tools/zod/auth_v3.d.ts +151 -0
  240. package/dist/mcp-tool/tools/zh/gen-tools/zod/auth_v3.js +87 -0
  241. package/dist/mcp-tool/tools/zh/gen-tools/zod/authen_v1.d.ts +26 -0
  242. package/dist/mcp-tool/tools/zh/gen-tools/zod/authen_v1.js +17 -0
  243. package/dist/mcp-tool/tools/zh/gen-tools/zod/baike_v1.d.ts +2174 -0
  244. package/dist/mcp-tool/tools/zh/gen-tools/zod/baike_v1.js +574 -0
  245. package/dist/mcp-tool/tools/zh/gen-tools/zod/base_v2.d.ts +755 -0
  246. package/dist/mcp-tool/tools/zh/gen-tools/zod/base_v2.js +270 -0
  247. package/dist/mcp-tool/tools/zh/gen-tools/zod/bitable_v1.d.ts +3541 -0
  248. package/dist/mcp-tool/tools/zh/gen-tools/zod/bitable_v1.js +1864 -0
  249. package/dist/mcp-tool/tools/zh/gen-tools/zod/board_v1.d.ts +40 -0
  250. package/dist/mcp-tool/tools/zh/gen-tools/zod/board_v1.js +18 -0
  251. package/dist/mcp-tool/tools/zh/gen-tools/zod/calendar_v4.d.ts +2075 -0
  252. package/dist/mcp-tool/tools/zh/gen-tools/zod/calendar_v4.js +1533 -0
  253. package/dist/mcp-tool/tools/zh/gen-tools/zod/cardkit_v1.d.ts +528 -0
  254. package/dist/mcp-tool/tools/zh/gen-tools/zod/cardkit_v1.js +248 -0
  255. package/dist/mcp-tool/tools/zh/gen-tools/zod/compensation_v1.d.ts +189 -0
  256. package/dist/mcp-tool/tools/zh/gen-tools/zod/compensation_v1.js +130 -0
  257. package/dist/mcp-tool/tools/zh/gen-tools/zod/contact_v3.d.ts +4274 -0
  258. package/dist/mcp-tool/tools/zh/gen-tools/zod/contact_v3.js +2394 -0
  259. package/dist/mcp-tool/tools/zh/gen-tools/zod/corehr_v1.d.ts +16957 -0
  260. package/dist/mcp-tool/tools/zh/gen-tools/zod/corehr_v1.js +4753 -0
  261. package/dist/mcp-tool/tools/zh/gen-tools/zod/corehr_v2.d.ts +29869 -0
  262. package/dist/mcp-tool/tools/zh/gen-tools/zod/corehr_v2.js +7902 -0
  263. package/dist/mcp-tool/tools/zh/gen-tools/zod/directory_v1.d.ts +4324 -0
  264. package/dist/mcp-tool/tools/zh/gen-tools/zod/directory_v1.js +1340 -0
  265. package/dist/mcp-tool/tools/zh/gen-tools/zod/docs_v1.d.ts +58 -0
  266. package/dist/mcp-tool/tools/zh/gen-tools/zod/docs_v1.js +26 -0
  267. package/dist/mcp-tool/tools/zh/gen-tools/zod/docx_v1.d.ts +116719 -0
  268. package/dist/mcp-tool/tools/zh/gen-tools/zod/docx_v1.js +14949 -0
  269. package/dist/mcp-tool/tools/zh/gen-tools/zod/drive_v1.d.ts +3251 -0
  270. package/dist/mcp-tool/tools/zh/gen-tools/zod/drive_v1.js +1395 -0
  271. package/dist/mcp-tool/tools/zh/gen-tools/zod/drive_v2.d.ts +174 -0
  272. package/dist/mcp-tool/tools/zh/gen-tools/zod/drive_v2.js +115 -0
  273. package/dist/mcp-tool/tools/zh/gen-tools/zod/ehr_v1.d.ts +86 -0
  274. package/dist/mcp-tool/tools/zh/gen-tools/zod/ehr_v1.js +48 -0
  275. package/dist/mcp-tool/tools/zh/gen-tools/zod/event_v1.d.ts +44 -0
  276. package/dist/mcp-tool/tools/zh/gen-tools/zod/event_v1.js +25 -0
  277. package/dist/mcp-tool/tools/zh/gen-tools/zod/helpdesk_v1.d.ts +733 -0
  278. package/dist/mcp-tool/tools/zh/gen-tools/zod/helpdesk_v1.js +279 -0
  279. package/dist/mcp-tool/tools/zh/gen-tools/zod/hire_v1.d.ts +10085 -0
  280. package/dist/mcp-tool/tools/zh/gen-tools/zod/hire_v1.js +5787 -0
  281. package/dist/mcp-tool/tools/zh/gen-tools/zod/hire_v2.d.ts +158 -0
  282. package/dist/mcp-tool/tools/zh/gen-tools/zod/hire_v2.js +64 -0
  283. package/dist/mcp-tool/tools/zh/gen-tools/zod/human_authentication_v1.d.ts +70 -0
  284. package/dist/mcp-tool/tools/zh/gen-tools/zod/human_authentication_v1.js +27 -0
  285. package/dist/mcp-tool/tools/zh/gen-tools/zod/im_v1.d.ts +3043 -0
  286. package/dist/mcp-tool/tools/zh/gen-tools/zod/im_v1.js +1812 -0
  287. package/dist/mcp-tool/tools/zh/gen-tools/zod/im_v2.d.ts +2176 -0
  288. package/dist/mcp-tool/tools/zh/gen-tools/zod/im_v2.js +454 -0
  289. package/dist/mcp-tool/tools/zh/gen-tools/zod/lingo_v1.d.ts +2301 -0
  290. package/dist/mcp-tool/tools/zh/gen-tools/zod/lingo_v1.js +650 -0
  291. package/dist/mcp-tool/tools/zh/gen-tools/zod/mail_v1.d.ts +2465 -0
  292. package/dist/mcp-tool/tools/zh/gen-tools/zod/mail_v1.js +1467 -0
  293. package/dist/mcp-tool/tools/zh/gen-tools/zod/mdm_v1.d.ts +104 -0
  294. package/dist/mcp-tool/tools/zh/gen-tools/zod/mdm_v1.js +45 -0
  295. package/dist/mcp-tool/tools/zh/gen-tools/zod/mdm_v3.d.ts +329 -0
  296. package/dist/mcp-tool/tools/zh/gen-tools/zod/mdm_v3.js +76 -0
  297. package/dist/mcp-tool/tools/zh/gen-tools/zod/minutes_v1.d.ts +92 -0
  298. package/dist/mcp-tool/tools/zh/gen-tools/zod/minutes_v1.js +62 -0
  299. package/dist/mcp-tool/tools/zh/gen-tools/zod/moments_v1.d.ts +52 -0
  300. package/dist/mcp-tool/tools/zh/gen-tools/zod/moments_v1.js +20 -0
  301. package/dist/mcp-tool/tools/zh/gen-tools/zod/okr_v1.d.ts +1664 -0
  302. package/dist/mcp-tool/tools/zh/gen-tools/zod/okr_v1.js +455 -0
  303. package/dist/mcp-tool/tools/zh/gen-tools/zod/optical_char_recognition_v1.d.ts +38 -0
  304. package/dist/mcp-tool/tools/zh/gen-tools/zod/optical_char_recognition_v1.js +17 -0
  305. package/dist/mcp-tool/tools/zh/gen-tools/zod/passport_v1.d.ts +131 -0
  306. package/dist/mcp-tool/tools/zh/gen-tools/zod/passport_v1.js +53 -0
  307. package/dist/mcp-tool/tools/zh/gen-tools/zod/payroll_v1.d.ts +609 -0
  308. package/dist/mcp-tool/tools/zh/gen-tools/zod/payroll_v1.js +321 -0
  309. package/dist/mcp-tool/tools/zh/gen-tools/zod/performance_v1.d.ts +309 -0
  310. package/dist/mcp-tool/tools/zh/gen-tools/zod/performance_v1.js +165 -0
  311. package/dist/mcp-tool/tools/zh/gen-tools/zod/performance_v2.d.ts +1177 -0
  312. package/dist/mcp-tool/tools/zh/gen-tools/zod/performance_v2.js +525 -0
  313. package/dist/mcp-tool/tools/zh/gen-tools/zod/personal_settings_v1.d.ts +640 -0
  314. package/dist/mcp-tool/tools/zh/gen-tools/zod/personal_settings_v1.js +295 -0
  315. package/dist/mcp-tool/tools/zh/gen-tools/zod/report_v1.d.ts +194 -0
  316. package/dist/mcp-tool/tools/zh/gen-tools/zod/report_v1.js +72 -0
  317. package/dist/mcp-tool/tools/zh/gen-tools/zod/search_v2.d.ts +1695 -0
  318. package/dist/mcp-tool/tools/zh/gen-tools/zod/search_v2.js +556 -0
  319. package/dist/mcp-tool/tools/zh/gen-tools/zod/security_and_compliance_v1.d.ts +68 -0
  320. package/dist/mcp-tool/tools/zh/gen-tools/zod/security_and_compliance_v1.js +32 -0
  321. package/dist/mcp-tool/tools/zh/gen-tools/zod/sheets_v2.d.ts +523 -0
  322. package/dist/mcp-tool/tools/zh/gen-tools/zod/sheets_v2.js +231 -0
  323. package/dist/mcp-tool/tools/zh/gen-tools/zod/sheets_v3.d.ts +979 -0
  324. package/dist/mcp-tool/tools/zh/gen-tools/zod/sheets_v3.js +821 -0
  325. package/dist/mcp-tool/tools/zh/gen-tools/zod/speech_to_text_v1.d.ts +225 -0
  326. package/dist/mcp-tool/tools/zh/gen-tools/zod/speech_to_text_v1.js +65 -0
  327. package/dist/mcp-tool/tools/zh/gen-tools/zod/task_v1.d.ts +1161 -0
  328. package/dist/mcp-tool/tools/zh/gen-tools/zod/task_v1.js +647 -0
  329. package/dist/mcp-tool/tools/zh/gen-tools/zod/task_v2.d.ts +6077 -0
  330. package/dist/mcp-tool/tools/zh/gen-tools/zod/task_v2.js +1894 -0
  331. package/dist/mcp-tool/tools/zh/gen-tools/zod/tenant_v2.d.ts +31 -0
  332. package/dist/mcp-tool/tools/zh/gen-tools/zod/tenant_v2.js +24 -0
  333. package/dist/mcp-tool/tools/zh/gen-tools/zod/translation_v1.d.ts +80 -0
  334. package/dist/mcp-tool/tools/zh/gen-tools/zod/translation_v1.js +37 -0
  335. package/dist/mcp-tool/tools/zh/gen-tools/zod/trust_party_v1.d.ts +182 -0
  336. package/dist/mcp-tool/tools/zh/gen-tools/zod/trust_party_v1.js +137 -0
  337. package/dist/mcp-tool/tools/zh/gen-tools/zod/vc_v1.d.ts +5725 -0
  338. package/dist/mcp-tool/tools/zh/gen-tools/zod/vc_v1.js +1640 -0
  339. package/dist/mcp-tool/tools/zh/gen-tools/zod/verification_v1.d.ts +21 -0
  340. package/dist/mcp-tool/tools/zh/gen-tools/zod/verification_v1.js +14 -0
  341. package/dist/mcp-tool/tools/zh/gen-tools/zod/wiki_v1.d.ts +72 -0
  342. package/dist/mcp-tool/tools/zh/gen-tools/zod/wiki_v1.js +34 -0
  343. package/dist/mcp-tool/tools/zh/gen-tools/zod/wiki_v2.d.ts +843 -0
  344. package/dist/mcp-tool/tools/zh/gen-tools/zod/wiki_v2.js +376 -0
  345. package/dist/mcp-tool/tools/zh/gen-tools/zod/workplace_v1.d.ts +116 -0
  346. package/dist/mcp-tool/tools/zh/gen-tools/zod/workplace_v1.js +77 -0
  347. package/dist/mcp-tool/types/index.d.ts +53 -0
  348. package/dist/mcp-tool/types/index.js +9 -0
  349. package/dist/mcp-tool/utils/case-transf.d.ts +2 -0
  350. package/dist/mcp-tool/utils/case-transf.js +15 -0
  351. package/dist/mcp-tool/utils/filter-tools.d.ts +2 -0
  352. package/dist/mcp-tool/utils/filter-tools.js +27 -0
  353. package/dist/mcp-tool/utils/get-should-use-uat.d.ts +2 -0
  354. package/dist/mcp-tool/utils/get-should-use-uat.js +18 -0
  355. package/dist/mcp-tool/utils/handler.d.ts +2 -0
  356. package/dist/mcp-tool/utils/handler.js +119 -0
  357. package/dist/mcp-tool/utils/index.d.ts +4 -0
  358. package/dist/mcp-tool/utils/index.js +20 -0
  359. package/dist/utils/clean-env-args.d.ts +1 -0
  360. package/dist/utils/clean-env-args.js +12 -0
  361. package/dist/utils/constants.d.ts +18 -0
  362. package/dist/utils/constants.js +35 -0
  363. package/dist/utils/http-instance.d.ts +2 -0
  364. package/dist/utils/http-instance.js +21 -0
  365. package/dist/utils/logger.d.ts +22 -0
  366. package/dist/utils/logger.js +97 -0
  367. package/dist/utils/noop.d.ts +1 -0
  368. package/dist/utils/noop.js +6 -0
  369. package/dist/utils/parser-string-array.d.ts +1 -0
  370. package/dist/utils/parser-string-array.js +13 -0
  371. package/dist/utils/safe-json-parse.d.ts +1 -0
  372. package/dist/utils/safe-json-parse.js +14 -0
  373. package/dist/utils/version.d.ts +1 -0
  374. package/dist/utils/version.js +52 -0
  375. package/docs/recall-mcp/README.md +137 -0
  376. package/docs/recall-mcp/README_ZH.md +137 -0
  377. package/docs/reference/cli/cli-zh.md +92 -0
  378. package/docs/reference/cli/cli.md +92 -0
  379. package/docs/reference/tool-presets/presets-zh.md +120 -0
  380. package/docs/reference/tool-presets/presets.md +120 -0
  381. package/docs/reference/tool-presets/tools-en.md +1527 -0
  382. package/docs/reference/tool-presets/tools-zh.md +1544 -0
  383. package/docs/troubleshooting/faq-zh.md +67 -0
  384. package/docs/troubleshooting/faq.md +67 -0
  385. package/docs/usage/configuration/configuration-zh.md +344 -0
  386. package/docs/usage/configuration/configuration.md +344 -0
  387. package/docs/usage/docker/docker-zh.md +101 -0
  388. package/docs/usage/docker/docker.md +106 -0
  389. package/package.json +65 -0
@@ -0,0 +1,1367 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.directoryV1Tools = exports.directoryV1EmployeeToBeResigned = exports.directoryV1EmployeeSearch = exports.directoryV1EmployeeResurrect = exports.directoryV1EmployeeRegular = exports.directoryV1EmployeePatch = exports.directoryV1EmployeeMget = exports.directoryV1EmployeeFilter = exports.directoryV1EmployeeDelete = exports.directoryV1EmployeeCreate = exports.directoryV1DepartmentSearch = exports.directoryV1DepartmentPatch = exports.directoryV1DepartmentMget = exports.directoryV1DepartmentFilter = exports.directoryV1DepartmentDelete = exports.directoryV1DepartmentCreate = exports.directoryV1CollborationShareEntityList = exports.directoryV1CollaborationTenantList = exports.directoryV1CollaborationRuleUpdate = exports.directoryV1CollaborationRuleList = exports.directoryV1CollaborationRuleDelete = exports.directoryV1CollaborationRuleCreate = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.directoryV1CollaborationRuleCreate = {
6
+ project: 'directory',
7
+ name: 'directory.v1.collaborationRule.create',
8
+ sdkName: 'directory.v1.collaborationRule.create',
9
+ path: '/open-apis/directory/v1/collaboration_rules',
10
+ httpMethod: 'POST',
11
+ description: '[Feishu/Lark]-Trust Party-Collaboration rules-Add collaboration rules-Admin perspective Added collaboration rules. Users need to have trusted party administrator role',
12
+ accessTokens: ['tenant', 'user'],
13
+ schema: {
14
+ data: zod_1.z.object({
15
+ subjects: zod_1.z
16
+ .object({
17
+ open_user_ids: zod_1.z
18
+ .array(zod_1.z.string())
19
+ .describe('User open id, which can be obtained from our Contacts/organizational structure interfaces')
20
+ .optional(),
21
+ open_department_ids: zod_1.z
22
+ .array(zod_1.z.string())
23
+ .describe('Department open id, 0 represents all members, which can be obtained from our Contacts/organizational structure interfaces')
24
+ .optional(),
25
+ open_group_ids: zod_1.z
26
+ .array(zod_1.z.string())
27
+ .describe('The user group open id can be obtained from our Contacts/organizational structure interfaces')
28
+ .optional(),
29
+ })
30
+ .describe('The sum of the number of entities needs to be less than 100'),
31
+ objects: zod_1.z
32
+ .object({
33
+ open_user_ids: zod_1.z.array(zod_1.z.string()).describe('User open id').optional(),
34
+ open_department_ids: zod_1.z.array(zod_1.z.string()).describe('Department open id, 0 represents all members').optional(),
35
+ open_group_ids: zod_1.z.array(zod_1.z.string()).describe('Group open id').optional(),
36
+ })
37
+ .describe('The sum of the number of entities needs to be less than 100'),
38
+ }),
39
+ params: zod_1.z.object({ target_tenant_key: zod_1.z.string().describe("The other tenant's tenant key") }),
40
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
41
+ },
42
+ };
43
+ exports.directoryV1CollaborationRuleDelete = {
44
+ project: 'directory',
45
+ name: 'directory.v1.collaborationRule.delete',
46
+ sdkName: 'directory.v1.collaborationRule.delete',
47
+ path: '/open-apis/directory/v1/collaboration_rules/:collaboration_rule_id',
48
+ httpMethod: 'DELETE',
49
+ description: '[Feishu/Lark]-Trust Party-Collaboration rules-Delete the collaboration rules-Administrator delete collaboration rules. Users need to have trusted party administrator role',
50
+ accessTokens: ['tenant', 'user'],
51
+ schema: {
52
+ params: zod_1.z.object({ target_tenant_key: zod_1.z.string().describe("The other tenant's tenant key") }),
53
+ path: zod_1.z.object({ collaboration_rule_id: zod_1.z.string().describe('rule ID') }),
54
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
55
+ },
56
+ };
57
+ exports.directoryV1CollaborationRuleList = {
58
+ project: 'directory',
59
+ name: 'directory.v1.collaborationRule.list',
60
+ sdkName: 'directory.v1.collaborationRule.list',
61
+ path: '/open-apis/directory/v1/collaboration_rules',
62
+ httpMethod: 'GET',
63
+ description: '[Feishu/Lark]-Trust Party-Collaboration rules-Query the collaboration rules-Administrator query collaboration rules. Users need to have trusted party administrator role',
64
+ accessTokens: ['tenant', 'user'],
65
+ schema: {
66
+ params: zod_1.z.object({
67
+ page_size: zod_1.z.number().describe('paging size').optional(),
68
+ page_token: zod_1.z
69
+ .string()
70
+ .describe('Page identifier. It is not filled in the first request, indicating traversal from the beginning; when there will be more groups, the new page_token will be returned at the same time, and the next traversal can use the page_token to get more groups')
71
+ .optional(),
72
+ target_tenant_key: zod_1.z.string().describe("The other tenant's tenant key"),
73
+ }),
74
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
75
+ },
76
+ };
77
+ exports.directoryV1CollaborationRuleUpdate = {
78
+ project: 'directory',
79
+ name: 'directory.v1.collaborationRule.update',
80
+ sdkName: 'directory.v1.collaborationRule.update',
81
+ path: '/open-apis/directory/v1/collaboration_rules/:collaboration_rule_id',
82
+ httpMethod: 'PUT',
83
+ description: '[Feishu/Lark]-Trust Party-Collaboration rules-Modify the collaboration rules-Administrator updates the collaboration rules. Users need to have trusted party administrator role',
84
+ accessTokens: ['tenant', 'user'],
85
+ schema: {
86
+ data: zod_1.z.object({
87
+ subjects: zod_1.z
88
+ .object({
89
+ open_user_ids: zod_1.z.array(zod_1.z.string()).describe('User open id').optional(),
90
+ open_department_ids: zod_1.z.array(zod_1.z.string()).describe('Department open id, 0 represents all members').optional(),
91
+ open_group_ids: zod_1.z.array(zod_1.z.string()).describe('Group open id').optional(),
92
+ })
93
+ .describe('The sum of the number of entities needs to be less than 100'),
94
+ objects: zod_1.z
95
+ .object({
96
+ open_user_ids: zod_1.z.array(zod_1.z.string()).describe('User open id').optional(),
97
+ open_department_ids: zod_1.z.array(zod_1.z.string()).describe('Department open id, 0 represents all members').optional(),
98
+ open_group_ids: zod_1.z.array(zod_1.z.string()).describe('Group open id').optional(),
99
+ })
100
+ .describe('The sum of the number of entities needs to be less than 100'),
101
+ }),
102
+ params: zod_1.z.object({ target_tenant_key: zod_1.z.string().describe("The other tenant's tenant key") }),
103
+ path: zod_1.z.object({ collaboration_rule_id: zod_1.z.string().describe('rule ID') }),
104
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
105
+ },
106
+ };
107
+ exports.directoryV1CollaborationTenantList = {
108
+ project: 'directory',
109
+ name: 'directory.v1.collaborationTenant.list',
110
+ sdkName: 'directory.v1.collaborationTenant.list',
111
+ path: '/open-apis/directory/v1/collaboration_tenants',
112
+ httpMethod: 'GET',
113
+ description: '[Feishu/Lark]-Trust Party-Collaboraiton Organization-Query the list of trusted parties by Admin-When creating a rule, you need to know the tenant key of the other tenant, and you can get a valid tenant key through this interface. Please use the trusted party administrator role to use this function',
114
+ accessTokens: ['tenant', 'user'],
115
+ schema: {
116
+ params: zod_1.z
117
+ .object({
118
+ page_size: zod_1.z.number().describe('paging size').optional(),
119
+ page_token: zod_1.z
120
+ .string()
121
+ .describe('Page identifier. It is not filled in the first request, indicating traversal from the beginning when there will be more groups, the new page_token will be returned at the same time, and the next traversal can use the page_token to get more groups')
122
+ .optional(),
123
+ })
124
+ .optional(),
125
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
126
+ },
127
+ };
128
+ exports.directoryV1CollborationShareEntityList = {
129
+ project: 'directory',
130
+ name: 'directory.v1.collborationShareEntity.list',
131
+ sdkName: 'directory.v1.collborationShareEntity.list',
132
+ path: '/open-apis/directory/v1/share_entities',
133
+ httpMethod: 'GET',
134
+ description: '[Feishu/Lark]-Trust Party-Collaboraiton Organization-Query the sharing members between the trust party relations-When creating a rule, you need to query the openIDs of this tenant and the other tenant entities, and these entities should be within the sharing scope of the trusted party. This interface can obtain the scope shared by the subject and object tenants of the trusted parties',
135
+ accessTokens: ['tenant', 'user'],
136
+ schema: {
137
+ params: zod_1.z.object({
138
+ target_tenant_key: zod_1.z
139
+ .string()
140
+ .describe('The tenant key of the other party. It can be obtained through [Query the list of trusted parties by Admin]'),
141
+ target_department_id: zod_1.z
142
+ .string()
143
+ .describe("If you don't fill in this parameter, it is the sharing range of the tenant. You can fill in this field and continue to drill down to view the sub-departments + members under the designated department. Filling in 0 is divided into two cases. If the tenant shares all employees, the first-level department will be displayed, otherwise the shared department + members will be displayed")
144
+ .optional(),
145
+ target_group_id: zod_1.z
146
+ .string()
147
+ .describe('Get the members of the user group, fill in the value and ignore target_department_id')
148
+ .optional(),
149
+ is_select_subject: zod_1.z
150
+ .boolean()
151
+ .describe('Whether the subject tenant shares the scope, the default is the sharing scope of the object tenant')
152
+ .optional(),
153
+ page_token: zod_1.z
154
+ .string()
155
+ .describe('Page identifier. It is not filled in the first request, indicating traversal from the beginning; when there will be more groups, the new page_token will be returned at the same time, and the next traversal can use the page_token to get more groups')
156
+ .optional(),
157
+ page_size: zod_1.z.number().describe('paging size').optional(),
158
+ }),
159
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
160
+ },
161
+ };
162
+ exports.directoryV1DepartmentCreate = {
163
+ project: 'directory',
164
+ name: 'directory.v1.department.create',
165
+ sdkName: 'directory.v1.department.create',
166
+ path: '/open-apis/directory/v1/departments',
167
+ httpMethod: 'POST',
168
+ description: '[Feishu/Lark]-Organization-Department management-Create department-This interface is used to create a new department in the enterprise address book, supporting the setting of information such as department name, parent department, and department head.',
169
+ accessTokens: ['tenant', 'user'],
170
+ schema: {
171
+ data: zod_1.z.object({
172
+ department: zod_1.z
173
+ .object({
174
+ custom_department_id: zod_1.z
175
+ .string()
176
+ .describe('Identifies a unique department within the tenant, supports customization and is automatically generated by the system when not customized. id supports modification.Notes:1. in addition to the need to meet the regular rules, at the same time can not start with od-.2. Regular checksum: ^[a-zA-Z0-9][a-zA-Z0-9_\\-@.] {0,63}$')
177
+ .optional(),
178
+ name: zod_1.z
179
+ .object({
180
+ default_value: zod_1.z.string().describe('Default value'),
181
+ i18n_value: zod_1.z
182
+ .object({})
183
+ .catchall(zod_1.z.any())
184
+ .describe('Internationalization value, key is zh_cn, ja_jp, en_us, and value is the corresponding value')
185
+ .optional(),
186
+ })
187
+ .describe('Department name, up to 100 characters')
188
+ .optional(),
189
+ parent_department_id: zod_1.z
190
+ .string()
191
+ .describe('Parent department ID, consistent with the department_id_type type. if the parent department is the root department, the value of this parameter is "0"')
192
+ .optional(),
193
+ leaders: zod_1.z
194
+ .array(zod_1.z.object({
195
+ leader_type: zod_1.z
196
+ .number()
197
+ .describe('Department leader type Options:1(department_leader_type_directory_main main),2(department_leader_type_directory_deputy Vice)'),
198
+ leader_id: zod_1.z.string().describe('Department leader id, consistent with the employee_id_type type'),
199
+ }))
200
+ .describe('Department leader')
201
+ .optional(),
202
+ order_weight: zod_1.z
203
+ .string()
204
+ .describe('The sorting weight under the superior department, with the returned results sorted in descending order by order_weight')
205
+ .optional(),
206
+ enabled_status: zod_1.z.boolean().describe('Enabled status').optional(),
207
+ custom_field_values: zod_1.z
208
+ .array(zod_1.z.object({
209
+ field_type: zod_1.z
210
+ .enum(['1', '2', '3', '4', '9', '10', '11'])
211
+ .describe('Custom field types Options:1(custom_field_value_type_text Text),2(custom_field_value_type_url URL),3(custom_field_value_type_enum Options),4(custom_field_value_type_generic_user Members),9(custom_field_value_type_phone ),10(custom_field_field_type_directory_multi_enum Multiple selection options),11(custom_field_field_type_directory_multi_generic_user Members list)')
212
+ .optional(),
213
+ text_value: zod_1.z
214
+ .object({
215
+ default_value: zod_1.z.string().describe('Default value'),
216
+ i18n_value: zod_1.z
217
+ .object({})
218
+ .catchall(zod_1.z.any())
219
+ .describe('Internationalization value, key is zh_cn, ja_jp, en_us, and value is the corresponding value')
220
+ .optional(),
221
+ })
222
+ .describe('Text Field Values')
223
+ .optional(),
224
+ url_value: zod_1.z
225
+ .object({
226
+ link_text: zod_1.z
227
+ .object({
228
+ default_value: zod_1.z.string().describe('Default value'),
229
+ i18n_value: zod_1.z
230
+ .object({})
231
+ .catchall(zod_1.z.any())
232
+ .describe('Internationalization value, key is zh_cn, ja_jp, en_us, and value is the corresponding value')
233
+ .optional(),
234
+ })
235
+ .describe('Link title'),
236
+ url: zod_1.z.string().describe('Mobile web link'),
237
+ pcurl: zod_1.z.string().describe('Desktop web link'),
238
+ })
239
+ .describe('Web Link Field Values')
240
+ .optional(),
241
+ enum_value: zod_1.z
242
+ .object({
243
+ enum_ids: zod_1.z.array(zod_1.z.string()).describe('Enum option id'),
244
+ enum_type: zod_1.z
245
+ .enum(['1', '2'])
246
+ .describe('Enum type Options:1(custom_field_value_enum_type_text Text),2(custom_field_value_enum_type_picture picture)'),
247
+ })
248
+ .describe('Enum field values')
249
+ .optional(),
250
+ user_values: zod_1.z
251
+ .array(zod_1.z.object({
252
+ ids: zod_1.z.array(zod_1.z.string()).describe('Employee IDs, consistent with the employee_id_type type'),
253
+ }))
254
+ .describe('User Field Values')
255
+ .optional(),
256
+ phone_value: zod_1.z.object({ phone_number: zod_1.z.string(), extension_number: zod_1.z.string().optional() }).optional(),
257
+ field_key: zod_1.z.string().describe('Custom field key').optional(),
258
+ }))
259
+ .describe('Departmental custom field values')
260
+ .optional(),
261
+ })
262
+ .describe('Create Department'),
263
+ }),
264
+ params: zod_1.z
265
+ .object({
266
+ employee_id_type: zod_1.z
267
+ .enum(['open_id', 'union_id', 'employee_id'])
268
+ .describe('User ID categories Options:open_id(Identifies the identity of a user in an application. The same user has different Open IDs in different applications. [Learn more: How to get an Open ID]),union_id(Identifies the identity of a user under an application developer. The Union ID of the same user in an application under the same developer is the same, and the Union ID in an application under different developers is different. With Union ID, application developers can associate the identity of the same user in multiple applications. [Learn more: How to get Union ID?]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)')
269
+ .optional(),
270
+ department_id_type: zod_1.z
271
+ .enum(['department_id', 'open_department_id'])
272
+ .describe('The type of department ID used in this call Options:department_id(Used to identify a unique department within a tenant),open_department_id(Used to identify a department in a specific application, where the open_department_id is different for the same department in different applications.)')
273
+ .optional(),
274
+ })
275
+ .optional(),
276
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
277
+ },
278
+ };
279
+ exports.directoryV1DepartmentDelete = {
280
+ project: 'directory',
281
+ name: 'directory.v1.department.delete',
282
+ sdkName: 'directory.v1.department.delete',
283
+ path: '/open-apis/directory/v1/departments/:department_id',
284
+ httpMethod: 'DELETE',
285
+ description: '[Feishu/Lark]-Organization-Department management-Delete department-This interface is used to delete departments',
286
+ accessTokens: ['tenant', 'user'],
287
+ schema: {
288
+ params: zod_1.z
289
+ .object({
290
+ department_id_type: zod_1.z
291
+ .enum(['department_id', 'open_department_id'])
292
+ .describe('The type of department ID used in this call Options:department_id(Used to identify a unique department within a tenant),open_department_id(It is used to identify a department in a specific application, and the same department has different open_department_id in different applications.)')
293
+ .optional(),
294
+ })
295
+ .optional(),
296
+ path: zod_1.z.object({
297
+ department_id: zod_1.z.string().describe('Department ID, consistent with the department_id_type type'),
298
+ }),
299
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
300
+ },
301
+ };
302
+ exports.directoryV1DepartmentFilter = {
303
+ project: 'directory',
304
+ name: 'directory.v1.department.filter',
305
+ sdkName: 'directory.v1.department.filter',
306
+ path: '/open-apis/directory/v1/departments/filter',
307
+ httpMethod: 'POST',
308
+ description: '[Feishu/Lark]-Organization-Department management-List department-This interface is used to obtain the list of eligible department details in batches according to the specified conditions',
309
+ accessTokens: ['tenant', 'user'],
310
+ schema: {
311
+ data: zod_1.z.object({
312
+ filter: zod_1.z
313
+ .object({
314
+ conditions: zod_1.z
315
+ .array(zod_1.z.object({
316
+ field: zod_1.z
317
+ .string()
318
+ .describe('The lvalue of the filter criterion, which is the parameter name of the field.** Optional filters are: **- parent_department_id'),
319
+ operator: zod_1.z
320
+ .string()
321
+ .describe('Comparison operator** Optional values are: **- eq: equal to, supports any type of lvalue- in: belongs to any one, does not support parent_department_id, rvalue is an array of multiple target filter values (no more than 100)'),
322
+ value: zod_1.z
323
+ .string()
324
+ .describe('The right value of the filter condition, whose content is the corresponding value type under the combination of the left value field type and the operator. Its value type must be consistent with the value of the query parameter department_id_type, with a maximum length of 64 characters, and supports numbers and letters. When using the parent_department_id condition, the ID of the root department can be "0"'),
325
+ }))
326
+ .describe('List of comparison expressions. Relationships between multiple expressions default to "and"'),
327
+ })
328
+ .describe('Query Conditions [Learn more: Query Conditions Usage]'),
329
+ required_fields: zod_1.z
330
+ .array(zod_1.z.string())
331
+ .describe('List of fields to query. Permissioned row and column data will be returned according to the passed field list. If not passed, no fields will be returned [Learn more: Field enumeration instructions]'),
332
+ page_request: zod_1.z
333
+ .object({
334
+ page_size: zod_1.z
335
+ .number()
336
+ .describe('Maximum number of entries returned per page, maximum value is 100**Default value**:20**Minimum Value**: 0')
337
+ .optional(),
338
+ page_token: zod_1.z
339
+ .string()
340
+ .describe('Sequential paging query, can not skip page query, support deep paging, in the need to traverse all the data scene can only use this method. The first pass empty string or not, later pass the last return value in the page_token')
341
+ .optional(),
342
+ })
343
+ .describe('paging information'),
344
+ }),
345
+ params: zod_1.z
346
+ .object({
347
+ employee_id_type: zod_1.z
348
+ .enum(['open_id', 'union_id', 'employee_id'])
349
+ .describe("User ID categories Options:open_id(Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID]),union_id(Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)")
350
+ .optional(),
351
+ department_id_type: zod_1.z
352
+ .enum(['open_department_id', 'department_id'])
353
+ .describe('The type of department ID used in this call Options:open_department_id(Used to identify a department in a specific application, the same department, the same open_department_id in different applications.),department_id(Used to identify a unique department within a tenant)')
354
+ .optional(),
355
+ })
356
+ .optional(),
357
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
358
+ },
359
+ };
360
+ exports.directoryV1DepartmentMget = {
361
+ project: 'directory',
362
+ name: 'directory.v1.department.mget',
363
+ sdkName: 'directory.v1.department.mget',
364
+ path: '/open-apis/directory/v1/departments/mget',
365
+ httpMethod: 'POST',
366
+ description: '[Feishu/Lark]-Organization-Department management-Batch get department info-This interface supports passing in multiple department IDs and returns detailed information for each department (such as name, person in charge, sub-departments, etc.).',
367
+ accessTokens: ['tenant', 'user'],
368
+ schema: {
369
+ data: zod_1.z.object({
370
+ department_ids: zod_1.z
371
+ .array(zod_1.z.string())
372
+ .describe('Department ID, consistent with the department_id_type. The way to get the ID: you can query it through the management background'),
373
+ required_fields: zod_1.z
374
+ .array(zod_1.z.string())
375
+ .describe('List of fields to query. Permissioned row and column data will be returned according to the passed field list. If not passed, no fields will be returned [Learn more: Field enumeration instructions]'),
376
+ }),
377
+ params: zod_1.z
378
+ .object({
379
+ employee_id_type: zod_1.z
380
+ .enum(['open_id', 'union_id', 'employee_id'])
381
+ .describe("User ID categories Options:open_id(Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID]),union_id(Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)")
382
+ .optional(),
383
+ department_id_type: zod_1.z
384
+ .enum(['department_id', 'open_department_id'])
385
+ .describe('The type of department ID used in this call Options:department_id(Used to identify a unique department within a tenant),open_department_id(Used to identify a department in a specific application, the same department, the same open_department_id in different applications.)')
386
+ .optional(),
387
+ })
388
+ .optional(),
389
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
390
+ },
391
+ };
392
+ exports.directoryV1DepartmentPatch = {
393
+ project: 'directory',
394
+ name: 'directory.v1.department.patch',
395
+ sdkName: 'directory.v1.department.patch',
396
+ path: '/open-apis/directory/v1/departments/:department_id',
397
+ httpMethod: 'PATCH',
398
+ description: '[Feishu/Lark]-Organization-Department management-Update department-This interface is used to update department information. Only the parts param that are explicitly passed are updated',
399
+ accessTokens: ['tenant', 'user'],
400
+ schema: {
401
+ data: zod_1.z.object({
402
+ department: zod_1.z
403
+ .object({
404
+ custom_department_id: zod_1.z
405
+ .string()
406
+ .describe('Customize the department ID. Note:1. Except for the need to meet the regular rules, it cannot start with od- at the same time2. Regular check: ^ [a-zA-Z0-9] [a-zA-Z0-9 _\\-@.]{ 0,63} $**Data Validation Rules**:Length range: 1-64 characters')
407
+ .optional(),
408
+ name: zod_1.z
409
+ .object({
410
+ default_value: zod_1.z.string().describe('default value'),
411
+ i18n_value: zod_1.z
412
+ .object({})
413
+ .catchall(zod_1.z.any())
414
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
415
+ .optional(),
416
+ })
417
+ .describe('Department name')
418
+ .optional(),
419
+ parent_department_id: zod_1.z
420
+ .string()
421
+ .describe('Parent Department ID, consistent with the department_id_type type')
422
+ .optional(),
423
+ leaders: zod_1.z
424
+ .array(zod_1.z.object({
425
+ leader_type: zod_1.z
426
+ .number()
427
+ .describe('Type of department head Options:1(department_leader_type_directory_main main),2(department_leader_type_directory_deputy vice)'),
428
+ leader_id: zod_1.z.string().describe('Department head ID, consistent with the employee_id_type type'),
429
+ }))
430
+ .describe('department head')
431
+ .optional(),
432
+ order_weight: zod_1.z
433
+ .string()
434
+ .describe('The sorting weight under the superior department, and the returned results will be sorted in ascending order according to the value of order_weight.')
435
+ .optional(),
436
+ enabled_status: zod_1.z.boolean().describe('Whether to enable').optional(),
437
+ custom_field_values: zod_1.z
438
+ .array(zod_1.z.object({
439
+ field_key: zod_1.z.string().describe('Custom field key').optional(),
440
+ field_type: zod_1.z
441
+ .enum(['1', '2', '3', '4', '10', '11'])
442
+ .describe('custom field type Options:1(custom_field_value_type_text Text),2(custom_field_value_type_url URL),3(custom_field_value_type_enum Options),4(custom_field_value_type_generic_user Members),10(custom_field_field_type_directory_multi_enum Multiple selection options),11(custom_field_field_type_directory_multi_generic_user Members list)')
443
+ .optional(),
444
+ text_value: zod_1.z
445
+ .object({
446
+ default_value: zod_1.z.string().describe('default value'),
447
+ i18n_value: zod_1.z
448
+ .object({})
449
+ .catchall(zod_1.z.any())
450
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
451
+ .optional(),
452
+ })
453
+ .describe('Text field value')
454
+ .optional(),
455
+ url_value: zod_1.z
456
+ .object({
457
+ link_text: zod_1.z
458
+ .object({
459
+ default_value: zod_1.z.string().describe('default value'),
460
+ i18n_value: zod_1.z
461
+ .object({})
462
+ .catchall(zod_1.z.any())
463
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
464
+ .optional(),
465
+ })
466
+ .describe('page title'),
467
+ url: zod_1.z.string().describe('Mobile end web link'),
468
+ pcurl: zod_1.z.string().describe('Desktop web link'),
469
+ })
470
+ .describe('Web link field value')
471
+ .optional(),
472
+ enum_value: zod_1.z
473
+ .object({
474
+ enum_ids: zod_1.z.array(zod_1.z.string()).describe('Option result ID'),
475
+ enum_type: zod_1.z
476
+ .enum(['1', '2'])
477
+ .describe('option type Options:1(custom_field_value_enum_type_text Text),2(custom_field_value_enum_type_picture picture)'),
478
+ })
479
+ .describe('Enumerate field values')
480
+ .optional(),
481
+ user_values: zod_1.z
482
+ .array(zod_1.z.object({
483
+ ids: zod_1.z.array(zod_1.z.string()).describe('Person ID,consistent with the employee_id_type type'),
484
+ user_type: zod_1.z
485
+ .literal('1')
486
+ .describe('Personnel Type Options:1(custom_field_value_user_type_employee employees)'),
487
+ }))
488
+ .describe('Person field value')
489
+ .optional(),
490
+ }))
491
+ .describe('Department custom field values')
492
+ .optional(),
493
+ })
494
+ .describe('Update department information'),
495
+ }),
496
+ params: zod_1.z
497
+ .object({
498
+ employee_id_type: zod_1.z
499
+ .enum(['open_id', 'union_id', 'employee_id'])
500
+ .describe("User ID categories Options:open_id(Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID]),union_id(Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)")
501
+ .optional(),
502
+ department_id_type: zod_1.z
503
+ .enum(['open_department_id', 'department_id'])
504
+ .describe('The type of department ID used in this call Options:open_department_id(It is used to identify a department in a specific application, and the same department has different open_department_id in different applications.),department_id(Used to identify a unique department within a tenant)')
505
+ .optional(),
506
+ })
507
+ .optional(),
508
+ path: zod_1.z.object({
509
+ department_id: zod_1.z.string().describe('Department ID, consistent with the department_id_type type'),
510
+ }),
511
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
512
+ },
513
+ };
514
+ exports.directoryV1DepartmentSearch = {
515
+ project: 'directory',
516
+ name: 'directory.v1.department.search',
517
+ sdkName: 'directory.v1.department.search',
518
+ path: '/open-apis/directory/v1/departments/search',
519
+ httpMethod: 'POST',
520
+ description: '[Feishu/Lark]-Organization-Department management-Search department-This interface is used to search for department information, search for department information through keywords such as department names, and return a list of departments that meet the criteria.',
521
+ accessTokens: ['tenant', 'user'],
522
+ schema: {
523
+ data: zod_1.z.object({
524
+ query: zod_1.z
525
+ .string()
526
+ .describe('Search for keywords. Supports searching by department name, with a maximum input of 100 characters.'),
527
+ page_request: zod_1.z
528
+ .object({
529
+ page_size: zod_1.z
530
+ .number()
531
+ .describe('Maximum number of entries returned per page, maximum value is 100**Default value**:20**Minimum Value**: 0')
532
+ .optional(),
533
+ page_token: zod_1.z
534
+ .string()
535
+ .describe('Sequential paging query, can not skip page query, support deep paging, in the need to traverse all the data scene can only use this method. The first pass empty string or not, later pass the last return value in the page_token')
536
+ .optional(),
537
+ })
538
+ .describe('paging information'),
539
+ required_fields: zod_1.z
540
+ .array(zod_1.z.string())
541
+ .describe('List of fields to be queried. Permissioned row and column data will be returned according to the passed field list. If not passed, no fields will be returned[Learn more: Field enumeration instructions]'),
542
+ }),
543
+ params: zod_1.z
544
+ .object({
545
+ employee_id_type: zod_1.z
546
+ .enum(['open_id', 'union_id', 'employee_id'])
547
+ .describe("User ID categories Options:open_id(Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID]),union_id(Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)")
548
+ .optional(),
549
+ department_id_type: zod_1.z
550
+ .enum(['open_department_id', 'department_id'])
551
+ .describe('The type of department ID used in this call Options:open_department_id(It is used to identify a department in a specific application, and the same department has different open_department_id in different applications.),department_id(Used to identify a unique department within a tenant)')
552
+ .optional(),
553
+ })
554
+ .optional(),
555
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
556
+ },
557
+ };
558
+ exports.directoryV1EmployeeCreate = {
559
+ project: 'directory',
560
+ name: 'directory.v1.employee.create',
561
+ sdkName: 'directory.v1.employee.create',
562
+ path: '/open-apis/directory/v1/employees',
563
+ httpMethod: 'POST',
564
+ description: '[Feishu/Lark]-Organization-Employee management-Create employee-This API is used to create an employee under the enterprise. It supports passing in information such as name and mobile phone number to generate an employee object in the active state. Employees refer to members with the identity of "Employee" in the Feishu enterprise, which is equivalent to the "User" in the address book OpenAPI.',
565
+ accessTokens: ['tenant', 'user'],
566
+ schema: {
567
+ data: zod_1.z.object({
568
+ employee: zod_1.z
569
+ .object({
570
+ name: zod_1.z
571
+ .object({
572
+ name: zod_1.z
573
+ .object({
574
+ default_value: zod_1.z.string().describe('default valueMinimum length: 1 character'),
575
+ i18n_value: zod_1.z
576
+ .object({})
577
+ .catchall(zod_1.z.any())
578
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
579
+ .optional(),
580
+ })
581
+ .describe('The name of the employee, up to 64 characters can be entered'),
582
+ another_name: zod_1.z.string().describe('Alias, up to 64 characters').optional(),
583
+ })
584
+ .describe('name')
585
+ .optional(),
586
+ mobile: zod_1.z
587
+ .string()
588
+ .describe("Employee's mobile phone number, enter up to 255 characters. Note:1. It cannot be repeated among current employees within the enterprise.2. Uncertified enterprises only support adding Chinese mainland mobile phone numbers, and enterprises certified by Feishu are allowed to add overseas mobile phone numbers.3. The plus sign + must be included in the international area code prefix")
589
+ .optional(),
590
+ custom_employee_id: zod_1.z
591
+ .string()
592
+ .describe('Unique identification of active employees in the enterprise. Customization is supported, and the system automatically generates it when not customized. ID supports modification. Note:1. The ID of current employees cannot be repeated2. ID cannot contain spaces')
593
+ .optional(),
594
+ avatar_key: zod_1.z
595
+ .string()
596
+ .describe("Employee's avatar key. To get the key of the picture, please use [Upload Image - Server Level API - Development Documentation - Feishu open platform]. when uploading, you need to select for setting avatar as the picture type")
597
+ .optional(),
598
+ email: zod_1.z
599
+ .string()
600
+ .describe("The employee's email address at work. Note:1. It cannot be repeated among current employees within the enterprise.2. Non-Chinese mainland mobile phone number members must add email at the same time")
601
+ .optional(),
602
+ enterprise_email: zod_1.z
603
+ .string()
604
+ .describe("Employee's enterprise mailbox. Please make sure that the Feishu mailbox service has been enabled in the management background first. The domain name of the enterprise mailbox needs to be applied and opened by the enterprise in the management background. If the enterprise does not open the enterprise mailbox of the corresponding domain name, setting the user's enterprise mailbox will fail")
605
+ .optional(),
606
+ gender: zod_1.z
607
+ .number()
608
+ .describe('gender Options:0(gender_directory_unknown unknown),1(gender_directory_man male),2(gender_directory_woman female),3(gender_directory_other other)')
609
+ .optional(),
610
+ employee_order_in_departments: zod_1.z
611
+ .array(zod_1.z.object({
612
+ department_id: zod_1.z
613
+ .string()
614
+ .describe('Specify the department where the employee is located, identify a unique department within the enterprise, and keep it consistent with the department_id_type type.')
615
+ .optional(),
616
+ order_weight_in_deparment: zod_1.z
617
+ .string()
618
+ .describe('The ranking weight of employees within the department')
619
+ .optional(),
620
+ order_weight_among_deparments: zod_1.z
621
+ .string()
622
+ .describe('The ranking weight of this department among the multiple departments to which the user belongs')
623
+ .optional(),
624
+ is_main_department: zod_1.z
625
+ .boolean()
626
+ .describe("Whether it is the user's main department (a user can only have one main department, and the sorting weight should be the largest. If not filled in, the first department in the sorting will be used as the main department by default), optional values: true/false.")
627
+ .optional(),
628
+ }))
629
+ .describe('The ranking information of employees within their department')
630
+ .optional(),
631
+ leader_id: zod_1.z
632
+ .string()
633
+ .describe("The ID of the employee's line manager, consistent with the employee_id_type. Note: 1. There should be no circular reporting, i.e. A reports to B and B reports to A.2. The line manager must be an active employee")
634
+ .optional(),
635
+ dotted_line_leader_ids: zod_1.z
636
+ .array(zod_1.z.string())
637
+ .describe('The dotted-line manager ID of the employee, which is consistent with the employee_id_type. Note: 1. There should be no circular reporting, i.e. A reports to B and B reports to A.2. The line manager must be an active employee')
638
+ .optional(),
639
+ work_country_or_region: zod_1.z
640
+ .string()
641
+ .describe('Workplace country code. To obtain the country code, please use [Paging Bulk Query Country]')
642
+ .optional(),
643
+ work_place_id: zod_1.z.string().describe('Workplace ID').optional(),
644
+ work_station: zod_1.z
645
+ .object({
646
+ default_value: zod_1.z.string().describe('default value'),
647
+ i18n_value: zod_1.z
648
+ .object({})
649
+ .catchall(zod_1.z.any())
650
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
651
+ .optional(),
652
+ })
653
+ .describe('Workstation')
654
+ .optional(),
655
+ job_number: zod_1.z
656
+ .string()
657
+ .describe('Job number. The job number of employees in the enterprise cannot be repeated')
658
+ .optional(),
659
+ extension_number: zod_1.z
660
+ .string()
661
+ .describe('Extension number, up to 99 characters can be entered . The extension numbers of all employees in the enterprise cannot be repeated')
662
+ .optional(),
663
+ join_date: zod_1.z.string().describe('Onboard date').optional(),
664
+ employment_type: zod_1.z.number().describe('Employee type').optional(),
665
+ job_title_id: zod_1.z.string().describe('Job ID').optional(),
666
+ custom_field_values: zod_1.z
667
+ .array(zod_1.z.object({
668
+ field_type: zod_1.z
669
+ .enum(['1', '2', '3', '4', '9', '10', '11'])
670
+ .describe('Custom field type Options:1(custom_field_value_type_text Text),2(custom_field_value_type_url URL),3(custom_field_value_type_enum Options),4(custom_field_value_type_generic_user Members),9(custom_field_value_type_phone ),10(custom_field_field_type_directory_multi_enum Multiple selection options),11(custom_field_field_type_directory_multi_generic_user Members list)')
671
+ .optional(),
672
+ text_value: zod_1.z
673
+ .object({
674
+ default_value: zod_1.z.string().describe('defaultMinimum length: 1 character'),
675
+ i18n_value: zod_1.z
676
+ .object({})
677
+ .catchall(zod_1.z.any())
678
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
679
+ .optional(),
680
+ })
681
+ .describe('Text field value')
682
+ .optional(),
683
+ url_value: zod_1.z
684
+ .object({
685
+ link_text: zod_1.z.object({
686
+ default_value: zod_1.z.string().describe('default valueLength range: 1-40 characters'),
687
+ i18n_value: zod_1.z
688
+ .object({})
689
+ .catchall(zod_1.z.any())
690
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
691
+ .optional(),
692
+ }),
693
+ url: zod_1.z.string(),
694
+ pcurl: zod_1.z.string(),
695
+ })
696
+ .optional(),
697
+ enum_value: zod_1.z
698
+ .object({
699
+ enum_ids: zod_1.z.array(zod_1.z.string()).describe('link title'),
700
+ enum_type: zod_1.z
701
+ .enum(['1', '2'])
702
+ .describe('mobile web link Options:1(custom_field_value_enum_type_text text),2(custom_field_value_enum_type_picture image)'),
703
+ })
704
+ .describe('Url field value')
705
+ .optional(),
706
+ user_values: zod_1.z
707
+ .array(zod_1.z.object({
708
+ ids: zod_1.z.array(zod_1.z.string()).describe('employee id,consistent with the employee_id_type type.'),
709
+ }))
710
+ .describe('enum field value')
711
+ .optional(),
712
+ phone_value: zod_1.z
713
+ .object({ phone_number: zod_1.z.string(), extension_number: zod_1.z.string().optional() })
714
+ .describe('field representing employee')
715
+ .optional(),
716
+ field_key: zod_1.z.string().describe('Custom field key').optional(),
717
+ }))
718
+ .describe('custom field')
719
+ .optional(),
720
+ })
721
+ .describe('Create employee object'),
722
+ options: zod_1.z
723
+ .object({
724
+ geo_name: zod_1.z
725
+ .string()
726
+ .describe('Employee\'s Data Residency. Optional only for organizations with Multi-Geo enabled, and can only be populated for Geo\'s in the list of organization data residences.The following permissions need to be requested to write:<md-perm name="directory:employee.base.geo:write" desc="Write to Employee Data Location" support_app_types="custom" tags="">Write to Employee Data Location</ md-perm>')
727
+ .optional(),
728
+ subscription_ids: zod_1.z
729
+ .array(zod_1.z.string())
730
+ .describe('A list of seat IDs assigned to employees. The available seat IDs for this tenant can be obtained through the interface below, see [Get Seat Information]. This field is required when in hybrid license mode.Permissions are required in order to write:<md-perm name="directory:employee.base.subscription_ids:write" desc="Write employee seat information" support_app_types="custom" tags="">Write employee seat information</md-perm>')
731
+ .optional(),
732
+ })
733
+ .describe('api extend options')
734
+ .optional(),
735
+ }),
736
+ params: zod_1.z
737
+ .object({
738
+ employee_id_type: zod_1.z
739
+ .enum(['open_id', 'union_id', 'employee_id'])
740
+ .describe('User ID categories Options:open_id(Identifies the identity of a user in an application. The same user has different Open IDs in different applications. [Learn more: How to get an Open ID]),union_id(Identifies the identity of a user under an application developer. The Union ID of the same user in an application under the same developer is the same, and the Union ID in an application under different developers is different. With Union ID, application developers can associate the identity of the same user in multiple applications. [Learn more: How to get Union ID?]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)')
741
+ .optional(),
742
+ department_id_type: zod_1.z
743
+ .enum(['department_id', 'open_department_id'])
744
+ .describe('The type of department ID used in this call Options:department_id(Used to identify a unique department within a tenant),open_department_id(It is used to identify a department in a specific application, and the same department has the same open_department_id in different applications.)')
745
+ .optional(),
746
+ })
747
+ .optional(),
748
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
749
+ },
750
+ };
751
+ exports.directoryV1EmployeeDelete = {
752
+ project: 'directory',
753
+ name: 'directory.v1.employee.delete',
754
+ sdkName: 'directory.v1.employee.delete',
755
+ path: '/open-apis/directory/v1/employees/:employee_id',
756
+ httpMethod: 'DELETE',
757
+ description: '[Feishu/Lark]-Organization-Employee management-Delete employee-This interface is for resign employees',
758
+ accessTokens: ['tenant', 'user'],
759
+ schema: {
760
+ data: zod_1.z
761
+ .object({
762
+ options: zod_1.z
763
+ .object({
764
+ resigned_employee_resource_receiver: zod_1.z
765
+ .object({
766
+ department_chat_acceptor_employee_id: zod_1.z
767
+ .string()
768
+ .describe('Department group receiver. The ID value corresponds to the employee_id_type in the query parameter.When the deleted user is the group owner of the department group, the group owner is transferred to the designated recipient, and if the recipient is not specified, it is transferred to the first person in the group by default')
769
+ .optional(),
770
+ external_chat_acceptor_employee_id: zod_1.z
771
+ .string()
772
+ .describe('External group receiver. The ID value corresponds to the employee_id_type in the query parameter.When the deleted user is an external group owner, the group owner is transferred to the designated recipient. If the recipient is not specified, it will be transferred to the first person in the group who joins the group in the same organization as the deleted user. If only the user is in the group, the external group will be disbanded')
773
+ .optional(),
774
+ docs_acceptor_employee_id: zod_1.z
775
+ .string()
776
+ .describe('Document recipient. The ID value corresponds to the employee_id_type in the query parameter.When a user is deleted, the documents owned by the user are transferred to the recipient. If no recipient is specified, the document resources will be retained under the user name')
777
+ .optional(),
778
+ calendar_acceptor_employee_id: zod_1.z
779
+ .string()
780
+ .describe('Schedule recipient. The ID value corresponds to the employee_id_type in the query parameter.When a user is deleted, the schedules owned by the user are transferred to the recipient. If no recipient is specified, the schedule resources will be retained under the user name')
781
+ .optional(),
782
+ application_acceptor_employee_id: zod_1.z
783
+ .string()
784
+ .describe('Apply the recipient. The ID value corresponds to the employee_id_type in the query parameter.When a user is deleted, the applications created by the user are transferred to the recipient. If the recipient is not specified, the application will be retained under the user name, but the user cannot log in to the developer backend to manage the application. The administrator can manually transfer the application to other people in the management backend')
785
+ .optional(),
786
+ helpdesk_acceptor_employee_id: zod_1.z
787
+ .string()
788
+ .describe("Help desk resource receiver. The ID value corresponds to the employee_id_type in the query parameter.When a user is deleted, the help desk resources they own are transferred to the recipient, and when the recipient is not specified, the help desk resources are retained under the user's name")
789
+ .optional(),
790
+ approval_acceptor_employee_id: zod_1.z
791
+ .string()
792
+ .describe("Approval of resource recipients. ID values correspond to employee_id_type in query parameters.When a user is deleted, the approval resources it owns are transferred to the recipient, and the approval resources are retained under the user's name when the recipient is not specified")
793
+ .optional(),
794
+ email_acceptor_employee_id: zod_1.z
795
+ .string()
796
+ .describe('User mail resource recipient. The ID value corresponds to the employee_id_type in the query parameter.When a user is deleted, the email resources owned by the user are transferred to the recipient. If the recipient is not specified, the email resources are retained under the user name')
797
+ .optional(),
798
+ minutes_acceptor_employee_id: zod_1.z
799
+ .string()
800
+ .describe('Wonder receiver. The ID value corresponds to the employee_id_type in the query parameter.When a user is deleted, the minutes resources owned by him are transferred to the receiver. If the receiver is not specified, the minutes will be retained under the user name')
801
+ .optional(),
802
+ survey_acceptor_employee_id: zod_1.z
803
+ .string()
804
+ .describe('Feishu Survey recipient. The ID value corresponds to the employee_id_type in the query parameters.When a user is deleted, the Feishu survey resources owned by him are transferred to the recipient. If no recipient is specified, the Feishu survey resources will be deleted directly')
805
+ .optional(),
806
+ anycross_acceptor_employee_id: zod_1.z.string().describe('Anycross recipient').optional(),
807
+ })
808
+ .describe('Resource transfer methods for departing employees')
809
+ .optional(),
810
+ })
811
+ .describe('interface extension options')
812
+ .optional(),
813
+ })
814
+ .optional(),
815
+ params: zod_1.z
816
+ .object({
817
+ employee_id_type: zod_1.z
818
+ .enum(['open_id', 'union_id', 'employee_id'])
819
+ .describe('User ID categories Options:open_id(Identifies the identity of a user in an application. The same user has different Open IDs in different applications. [Learn more: How to get an Open ID]),union_id(Identifies the identity of a user under an application developer. The Union ID of the same user in an application under the same developer is the same, and the Union ID in an application under different developers is different. With Union ID, application developers can associate the identity of the same user in multiple applications. [Learn more: How to get Union ID?]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)')
820
+ .optional(),
821
+ })
822
+ .optional(),
823
+ path: zod_1.z.object({
824
+ employee_id: zod_1.z
825
+ .string()
826
+ .describe('The ID of the employee to leave. Needs to be consistent with the employee_id_type type in the query parameter'),
827
+ }),
828
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
829
+ },
830
+ };
831
+ exports.directoryV1EmployeeFilter = {
832
+ project: 'directory',
833
+ name: 'directory.v1.employee.filter',
834
+ sdkName: 'directory.v1.employee.filter',
835
+ path: '/open-apis/directory/v1/employees/filter',
836
+ httpMethod: 'POST',
837
+ description: '[Feishu/Lark]-Organization-Employee management-Get employee list in batches-This interface is used to obtain a batch list of eligible employee details according to the specified conditions.Employee refers to a member of Feishu\'s enterprise who is identified as "Employee", which is equivalent to "User" in the contact OpenAPI',
838
+ accessTokens: ['tenant', 'user'],
839
+ schema: {
840
+ data: zod_1.z.object({
841
+ filter: zod_1.z
842
+ .object({
843
+ conditions: zod_1.z
844
+ .array(zod_1.z.object({
845
+ field: zod_1.z
846
+ .string()
847
+ .describe('The lvalue of the filter condition, the value is the parameter name of the field. Optional filter conditions are:- base_info.mobile- base_info.email- base_info departments department_id- work_info staff_status'),
848
+ operator: zod_1.z
849
+ .string()
850
+ .describe('Comparison operator. Optional values are:- eq: equal to, supports any type of lvalue- in: belongs to either'),
851
+ value: zod_1.z
852
+ .string()
853
+ .describe('The rvalue of the filter condition is an escaped JSON string.- For `eq` matching strings, use `"\\"str\\""`- For `in` matching string lists, use `"[\\"str\\"]"`- For `eq` matching numbers, use `"123"`- For `in` matching number lists, use `"[123]"`'),
854
+ }))
855
+ .describe('A list of comparison expressions, such as the comparison conditions base_info.mobile eq "+ 8613000000001", and the relationship between multiple expressions is and'),
856
+ })
857
+ .describe('Query conditions [Learn more: query condition usage]'),
858
+ required_fields: zod_1.z
859
+ .array(zod_1.z.string())
860
+ .describe('List of fields to be queried. Permissioned row and column data will be returned according to the passed field list. No fields will be returned if not passed. [Learn more: Field enumeration instructions]'),
861
+ page_request: zod_1.z
862
+ .object({
863
+ page_size: zod_1.z
864
+ .number()
865
+ .describe('The number of requests this time, the minimum is 0 and the maximum is 100')
866
+ .optional(),
867
+ page_token: zod_1.z
868
+ .string()
869
+ .describe('Sequential paging query, can not skip page query, support deep paging, in the need to traverse all the data scene can only use this method. The first pass empty string or not, after the return value of the page_token')
870
+ .optional(),
871
+ })
872
+ .describe('paging parameter'),
873
+ }),
874
+ params: zod_1.z
875
+ .object({
876
+ employee_id_type: zod_1.z
877
+ .enum(['open_id', 'union_id', 'employee_id'])
878
+ .describe('User ID categories Options:open_id(Identifies the identity of a user in an application. The same user has different Open IDs in different applications. [Learn more: How to get an Open ID]),union_id(Identifies the identity of a user under an application developer. The Union ID of the same user in an application under the same developer is the same, and the Union ID in an application under different developers is different. With Union ID, application developers can associate the identity of the same user in multiple applications. [Learn more: How to get Union ID?]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)')
879
+ .optional(),
880
+ department_id_type: zod_1.z
881
+ .enum(['department_id', 'open_department_id'])
882
+ .describe('The type of department ID used in this call Options:department_id(Used to identify a unique department within a tenant),open_department_id(It is used to identify a department in a specific application, and the same department has the same open_department_id in different applications.)')
883
+ .optional(),
884
+ })
885
+ .optional(),
886
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
887
+ },
888
+ };
889
+ exports.directoryV1EmployeeMget = {
890
+ project: 'directory',
891
+ name: 'directory.v1.employee.mget',
892
+ sdkName: 'directory.v1.employee.mget',
893
+ path: '/open-apis/directory/v1/employees/mget',
894
+ httpMethod: 'POST',
895
+ description: '[Feishu/Lark]-Organization-Employee management-Obtain employee information in batches-This interface is used to query the details of employees according to their IDs in batches.Such as employee name, mobile phone number, email, department and other information.Employee refers to a member of Feishu\'s enterprise who is identified as "Employee", which is equivalent to "User" in the contact OpenAPI',
896
+ accessTokens: ['tenant', 'user'],
897
+ schema: {
898
+ data: zod_1.z.object({
899
+ employee_ids: zod_1.z.array(zod_1.z.string()).describe('Employee ID, consistent with the employee_id_type type'),
900
+ required_fields: zod_1.z.array(zod_1.z.string()).describe('Field enumeration [Learn more: Field enumeration instructions]'),
901
+ }),
902
+ params: zod_1.z
903
+ .object({
904
+ employee_id_type: zod_1.z
905
+ .enum(['open_id', 'union_id', 'employee_id'])
906
+ .describe("User ID categories Options:open_id(Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID]),union_id(Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)")
907
+ .optional(),
908
+ department_id_type: zod_1.z
909
+ .enum(['department_id', 'open_department_id'])
910
+ .describe('The type of department ID used in this call Options:department_id(Used to identify a unique department within a tenant),open_department_id( open_department_id: used to identify a department in a specific application, the same department, in different applications open_department_id is not the same.)')
911
+ .optional(),
912
+ })
913
+ .optional(),
914
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
915
+ },
916
+ };
917
+ exports.directoryV1EmployeePatch = {
918
+ project: 'directory',
919
+ name: 'directory.v1.employee.patch',
920
+ sdkName: 'directory.v1.employee.patch',
921
+ path: '/open-apis/directory/v1/employees/:employee_id',
922
+ httpMethod: 'PATCH',
923
+ description: '[Feishu/Lark]-Organization-Employee management-Update employee information-This interface is used to update the information of current/former employees, freeze/restore employees. Unpassed parameters will not be updated.Employee refers to a member of Feishu\'s enterprise who is identified as "Employee", which is equivalent to "User" in the address book OpenAPI',
924
+ accessTokens: ['tenant', 'user'],
925
+ schema: {
926
+ data: zod_1.z.object({
927
+ employee: zod_1.z
928
+ .object({
929
+ name: zod_1.z
930
+ .object({
931
+ name: zod_1.z
932
+ .object({
933
+ default_value: zod_1.z.string().describe('default valueLength range: 1 - 64 characters'),
934
+ i18n_value: zod_1.z
935
+ .object({})
936
+ .catchall(zod_1.z.any())
937
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
938
+ .optional(),
939
+ })
940
+ .describe("Employee's name"),
941
+ another_name: zod_1.z.string().describe('Alias, up to 64 characters').optional(),
942
+ })
943
+ .describe('Name')
944
+ .optional(),
945
+ mobile: zod_1.z
946
+ .string()
947
+ .describe('The mobile phone number of the employee, up to 255 characters can be entered. . Note:1. It cannot be repeated among current employees in the enterprise2. Uncertified enterprises only support adding Chinese mainland mobile phone numbers, and enterprises certified by Feishu are allowed to add overseas mobile phone numbers3. The international area code prefix must contain the plus sign +')
948
+ .optional(),
949
+ custom_employee_id: zod_1.z
950
+ .string()
951
+ .describe('Unique identification of active employees in the enterprise. Customization is supported, and the system automatically generates it when not customized. ID supports modification. Note:1. The ID of current employees cannot be duplicated.2. ID cannot contain spaces')
952
+ .optional(),
953
+ avatar_key: zod_1.z
954
+ .string()
955
+ .describe("Employee's avatar key. To get the key of the picture, please use [Upload Image - Server Level API - Development Documentation - Feishu open platform]. when uploading, you need to select for setting avatar as the picture type")
956
+ .optional(),
957
+ email: zod_1.z
958
+ .string()
959
+ .describe("The employee's email address at work. Note:1. It cannot be repeated among current employees within the enterprise.2. Non-Chinese mainland mobile phone number members must add email at the same time")
960
+ .optional(),
961
+ enterprise_email: zod_1.z
962
+ .string()
963
+ .describe("Employee's enterprise mail address. Please make sure that the Feishu mailbox service has been enabled in the management background first. The domain name of the enterprise mail address needs to be applied and opened by the enterprise in the management background. If the enterprise does not open the enterprise mailbox of the corresponding domain name, setting the user's enterprise mail address will fail")
964
+ .optional(),
965
+ gender: zod_1.z
966
+ .number()
967
+ .describe('gender Options:0(gender_directory_unknown unknown),1(gender_directory_man male),2(gender_directory_woman female),3(gender_directory_other other)')
968
+ .optional(),
969
+ employee_order_in_departments: zod_1.z
970
+ .array(zod_1.z.object({
971
+ department_id: zod_1.z
972
+ .string()
973
+ .describe('Department ID, consistent with the department_id_type type')
974
+ .optional(),
975
+ order_weight_in_deparment: zod_1.z
976
+ .string()
977
+ .describe('Sorting weights of employees within the department **Data verification rules:**')
978
+ .optional(),
979
+ order_weight_among_deparments: zod_1.z
980
+ .string()
981
+ .describe('The ranking weight of the department among the multiple departments to which the user belongs')
982
+ .optional(),
983
+ is_main_department: zod_1.z
984
+ .boolean()
985
+ .describe("Whether it is the user's main department (the user can only have one main department, and the ranking weight should be the largest. If you don't fill it in, the department with the first ranking will be used as the main department by default)")
986
+ .optional(),
987
+ }))
988
+ .describe('Sorting information of employees within their department')
989
+ .optional(),
990
+ background_image_key: zod_1.z
991
+ .string()
992
+ .describe('The key of the background cover. To get the key of the image, please use [Upload Image - Server Level API - Development Documentation - Feishu open platform]. when uploading, you need to select for sending messages as the picture type')
993
+ .optional(),
994
+ description: zod_1.z.string().describe("Employee's personal signature").optional(),
995
+ leader_id: zod_1.z
996
+ .string()
997
+ .describe("Employee's direct manager ID. Note:1. It is impossible to form a ring, that is, the superior of A is B, and the superior of B is A.2. The superior needs to be a current employee")
998
+ .optional(),
999
+ dotted_line_leader_ids: zod_1.z
1000
+ .array(zod_1.z.string())
1001
+ .describe("The employee's dotted-line manager ID, consistent with the employee_id_type type . Note:1. It is impossible to form a ring, that is, the superior of A is B, and the superior of B is A.2. The superior needs to be a current employee")
1002
+ .optional(),
1003
+ work_country_or_region: zod_1.z
1004
+ .string()
1005
+ .describe('Workplace country code. To obtain the country code, please use [Paging Bulk Query Country]')
1006
+ .optional(),
1007
+ work_place_id: zod_1.z.string().describe('Workplace ID').optional(),
1008
+ work_station: zod_1.z
1009
+ .object({
1010
+ default_value: zod_1.z.string().describe('default value'),
1011
+ i18n_value: zod_1.z
1012
+ .object({})
1013
+ .catchall(zod_1.z.any())
1014
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
1015
+ .optional(),
1016
+ })
1017
+ .describe('Workstation')
1018
+ .optional(),
1019
+ job_number: zod_1.z
1020
+ .string()
1021
+ .describe('Job number. The job number of employees in the enterprise cannot be repeated')
1022
+ .optional(),
1023
+ extension_number: zod_1.z
1024
+ .string()
1025
+ .describe('Extension number, up to 99 characters can be entered.. The extension numbers of all employees in the enterprise cannot be repeated')
1026
+ .optional(),
1027
+ join_date: zod_1.z
1028
+ .string()
1029
+ .describe("Onboard DateThe fixed format is 'YYYY-MM-DD' and the fixed length is 10")
1030
+ .optional(),
1031
+ employment_type: zod_1.z.number().describe('Employee type').optional(),
1032
+ job_title_id: zod_1.z.string().describe('Job title ID').optional(),
1033
+ job_level_id: zod_1.z.string().describe('Job level ID').optional(),
1034
+ job_family_id: zod_1.z.string().describe('Job family ID').optional(),
1035
+ resign_date: zod_1.z
1036
+ .string()
1037
+ .describe("date of separationThe fixed format is 'YYYY-MM-DD' and the fixed length is 10")
1038
+ .optional(),
1039
+ resign_reason: zod_1.z
1040
+ .enum([
1041
+ '0',
1042
+ '1',
1043
+ '2',
1044
+ '3',
1045
+ '4',
1046
+ '5',
1047
+ '6',
1048
+ '7',
1049
+ '8',
1050
+ '9',
1051
+ '10',
1052
+ '11',
1053
+ '12',
1054
+ '13',
1055
+ '14',
1056
+ '15',
1057
+ '16',
1058
+ '17',
1059
+ '18',
1060
+ '19',
1061
+ '20',
1062
+ '21',
1063
+ '22',
1064
+ '23',
1065
+ '24',
1066
+ '25',
1067
+ ])
1068
+ .describe('reason for leaving Options:0(resign_reason_directory_empty empty),1(resign_reason_directory_not_satisfied_with_salary Salary does not meet expectations),2(resign_reason_directory_working_pressure Working too long),3(resign_reason_directory_not_satisfied_with_work_content Dissatisfied with the job content),4(resign_reason_directory_lack_of_recognition_of_leader Do not recognize superiors or management),5(resign_reason_directory_career_development Career development opportunities are limited),6(resign_reason_directory_lack_of_recognition_of_company_culture Lack of recognition of company culture),7(resign_reason_directory_active_organize_business_adjustment Organizational restructuring (voluntary resignation)),8(resign_reason_directory_contract_not_renewed Contract expires),9(resign_reason_directory_job_hopping Job hopping),10(resign_reason_directory_change_career career change),11(resign_reason_directory_family Family reasons),12(resign_reason_directory_poor_health Poor health),13(resign_reason_directory_work_place Workplace reasons),14(resign_reason_directory_active_resignation_other_reason Other (voluntary resignation)),15(resign_reason_directory_accident accident),16(resign_reason_directory_death passed away),17(resign_reason_directory_fired dismiss),18(resign_reason_directory_failed_to_pass_probation_period Probation period not passed),19(resign_reason_directory_not_up_to_the_job Underperforming at work),20(resign_reason_directory_low_work_output Low work output),21(resign_reason_directory_passive_organize_business_adjustment Organizational restructuring (passive departure)),22(resign_reason_directory_breach_of_company_ordinance discipline violation),23(resign_reason_directory_break_the_law illegal),24(resign_reason_directory_passive_resignation_other_reason Other (passive resignation)),25(resign_reason_directory_other_reason Other)')
1069
+ .optional(),
1070
+ resign_remark: zod_1.z.string().describe('Resign remark').optional(),
1071
+ resign_type: zod_1.z
1072
+ .enum(['0', '1', '2', '3'])
1073
+ .describe('Resign type Options:0(resign_type_directory_empty empty),1(resign_type_directory_acitve active),2(resign_type_directory_passive inactive),3(resign_type_directoryy_other other)')
1074
+ .optional(),
1075
+ is_frozen: zod_1.z
1076
+ .boolean()
1077
+ .describe('Whether to freeze employee accounts.True to freeze, false to restore account')
1078
+ .optional(),
1079
+ custom_field_values: zod_1.z
1080
+ .array(zod_1.z.object({
1081
+ field_type: zod_1.z
1082
+ .enum(['1', '2', '3', '4', '9', '10', '11'])
1083
+ .describe('Custom field type Options:1(custom_field_value_type_text Text),2(custom_field_value_type_url URL),3(custom_field_value_type_enum Options),4(custom_field_value_type_generic_user Members),9(custom_field_value_type_phone Phone ),10(custom_field_field_type_directory_multi_enum Multiple selection options),11(custom_field_field_type_directory_multi_generic_user Member list)')
1084
+ .optional(),
1085
+ text_value: zod_1.z
1086
+ .object({
1087
+ default_value: zod_1.z.string().describe('default value'),
1088
+ i18n_value: zod_1.z
1089
+ .object({})
1090
+ .catchall(zod_1.z.any())
1091
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
1092
+ .optional(),
1093
+ })
1094
+ .describe('Text field value')
1095
+ .optional(),
1096
+ url_value: zod_1.z
1097
+ .object({
1098
+ link_text: zod_1.z
1099
+ .object({
1100
+ default_value: zod_1.z.string().describe('default value'),
1101
+ i18n_value: zod_1.z
1102
+ .object({})
1103
+ .catchall(zod_1.z.any())
1104
+ .describe('Internationalized value, key is zh_cn, ja_jp, en_us, value is the corresponding value')
1105
+ .optional(),
1106
+ })
1107
+ .describe('page title'),
1108
+ url: zod_1.z.string().describe('Mobile end web link'),
1109
+ pcurl: zod_1.z.string().describe('Desktop web link'),
1110
+ })
1111
+ .describe('Web link field value')
1112
+ .optional(),
1113
+ enum_value: zod_1.z
1114
+ .object({
1115
+ enum_ids: zod_1.z.array(zod_1.z.string()).describe('Option result ID'),
1116
+ enum_type: zod_1.z
1117
+ .enum(['1', '2'])
1118
+ .describe('option type Options:1(custom_field_value_enum_type_text Text),2(custom_field_value_enum_type_picture picture)'),
1119
+ })
1120
+ .describe('enumeration')
1121
+ .optional(),
1122
+ user_values: zod_1.z
1123
+ .array(zod_1.z.object({
1124
+ ids: zod_1.z.array(zod_1.z.string()).describe('Person ID, consistent with the employee_id_type type'),
1125
+ }))
1126
+ .describe('Person field value')
1127
+ .optional(),
1128
+ phone_value: zod_1.z.object({ phone_number: zod_1.z.string(), extension_number: zod_1.z.string().optional() }).optional(),
1129
+ field_key: zod_1.z.string().describe('Custom field key').optional(),
1130
+ }))
1131
+ .describe('Custom field')
1132
+ .optional(),
1133
+ })
1134
+ .describe('Update employee object'),
1135
+ }),
1136
+ params: zod_1.z
1137
+ .object({
1138
+ employee_id_type: zod_1.z
1139
+ .enum(['open_id', 'union_id', 'employee_id'])
1140
+ .describe('User ID categories Options:open_id(Identifies the identity of a user in an application. The same user has different Open IDs in different applications. [Learn more: How to get an Open ID]),union_id(Identifies the identity of a user under an application developer. The Union ID of the same user in an application under the same developer is the same, and the Union ID in an application under different developers is different. With Union ID, application developers can associate the identity of the same user in multiple applications. [Learn more: How to get Union ID?]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)')
1141
+ .optional(),
1142
+ department_id_type: zod_1.z
1143
+ .enum(['department_id', 'open_department_id'])
1144
+ .describe('Department ID type Options:department_id(department_id),open_department_id(open_department_id)')
1145
+ .optional(),
1146
+ })
1147
+ .optional(),
1148
+ path: zod_1.z.object({ employee_id: zod_1.z.string().describe('Employee ID, consistent with the employee_id_type type.') }),
1149
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
1150
+ },
1151
+ };
1152
+ exports.directoryV1EmployeeRegular = {
1153
+ project: 'directory',
1154
+ name: 'directory.v1.employee.regular',
1155
+ sdkName: 'directory.v1.employee.regular',
1156
+ path: '/open-apis/directory/v1/employees/:employee_id/regular',
1157
+ httpMethod: 'PATCH',
1158
+ description: '[Feishu/Lark]-Organization-Employee management-Update pre-resigned members to un-resigned employees-This interface is used to cancel the departure of the pending employee and update it to the "on-the-job" status. When canceling the departure, the departure information will be cleared.When using user_access_token, it defaults to an administrator user, and only administrators who can has "CoreHR Management" role can operate it',
1159
+ accessTokens: ['tenant', 'user'],
1160
+ schema: {
1161
+ params: zod_1.z
1162
+ .object({
1163
+ employee_id_type: zod_1.z
1164
+ .enum(['open_id', 'union_id', 'employee_id'])
1165
+ .describe("User ID categories Options:open_id(Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID]),union_id(Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)")
1166
+ .optional(),
1167
+ department_id_type: zod_1.z
1168
+ .enum(['department_id', 'open_department_id'])
1169
+ .describe('Department ID type Options:department_id(Used to identify a unique department within the tenant ),open_department_id(Used to identify a department in a specific application. The same department has the same open_department_id in different applications.)')
1170
+ .optional(),
1171
+ })
1172
+ .optional(),
1173
+ path: zod_1.z.object({ employee_id: zod_1.z.string().describe('Employee ID, consistent with the employee_id_type type') }),
1174
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
1175
+ },
1176
+ };
1177
+ exports.directoryV1EmployeeResurrect = {
1178
+ project: 'directory',
1179
+ name: 'directory.v1.employee.resurrect',
1180
+ sdkName: 'directory.v1.employee.resurrect',
1181
+ path: '/open-apis/directory/v1/employees/:employee_id/resurrect',
1182
+ httpMethod: 'POST',
1183
+ description: '[Feishu/Lark]-Organization-Employee management-Reinstate departed employees-This interface is used to restore the members who have left the company and restore them to the working state.',
1184
+ accessTokens: ['tenant', 'user'],
1185
+ schema: {
1186
+ data: zod_1.z
1187
+ .object({
1188
+ employee_order_in_departments: zod_1.z
1189
+ .array(zod_1.z.object({
1190
+ department_id: zod_1.z
1191
+ .string()
1192
+ .describe('Department ID, consistent with the department_id_type type')
1193
+ .optional(),
1194
+ order_weight_in_deparment: zod_1.z
1195
+ .string()
1196
+ .describe('The ranking weight of users within the department**Data verification rules:**Length range: 1 to 3')
1197
+ .optional(),
1198
+ order_weight_among_deparments: zod_1.z
1199
+ .string()
1200
+ .describe('User ranking weights across multiple departments**Data verification rules:**Length range: 1 to 3')
1201
+ .optional(),
1202
+ is_main_department: zod_1.z
1203
+ .boolean()
1204
+ .describe("Whether it is the user's main department (the user can only have one main department, and the ranking weight should be the largest. If you don't fill it in, the department with the first ranking will be used as the main department by default)")
1205
+ .optional(),
1206
+ }))
1207
+ .describe('Department information')
1208
+ .optional(),
1209
+ options: zod_1.z
1210
+ .object({
1211
+ subscription_ids: zod_1.z
1212
+ .array(zod_1.z.string())
1213
+ .describe('List of seat IDs assigned to employees. Available seat IDs for this tenant can be obtained through the interface below, see [Get seat information]. This field is required when in mixed license mode')
1214
+ .optional(),
1215
+ })
1216
+ .describe('option')
1217
+ .optional(),
1218
+ })
1219
+ .optional(),
1220
+ params: zod_1.z
1221
+ .object({
1222
+ employee_id_type: zod_1.z
1223
+ .enum(['open_id', 'union_id', 'employee_id'])
1224
+ .describe("User ID categories Options:open_id(Identifies a user's identity in an app. The same user has different Open IDs in different apps. [Learn more: How to get an Open ID]),union_id(Identifies a user's identity under an app developer. The Union ID is the same for the same user in apps under the same developer, and different for apps under different developers. With Union ID, app developers can associate the identities of the same user across multiple apps. [Read more: How do I get a Union ID?]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)")
1225
+ .optional(),
1226
+ department_id_type: zod_1.z
1227
+ .enum(['department_id', 'open_department_id'])
1228
+ .describe('Department ID type Options:department_id(department_id),open_department_id(open_department_id)')
1229
+ .optional(),
1230
+ })
1231
+ .optional(),
1232
+ path: zod_1.z.object({ employee_id: zod_1.z.string().describe('Employee ID, consistent with the employee_id_type type') }),
1233
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
1234
+ },
1235
+ };
1236
+ exports.directoryV1EmployeeSearch = {
1237
+ project: 'directory',
1238
+ name: 'directory.v1.employee.search',
1239
+ sdkName: 'directory.v1.employee.search',
1240
+ path: '/open-apis/directory/v1/employees/search',
1241
+ httpMethod: 'POST',
1242
+ description: '[Feishu/Lark]-Organization-Employee management-Search employee-This interface is used to search for employee information, such as searching for employee names, mobile phone numbers, email addresses and other information through keywords. An employee is a member of Feishu who is an "Employee", which is equivalent to a "User" in the Contacts OpenAPI',
1243
+ accessTokens: ['tenant', 'user'],
1244
+ schema: {
1245
+ data: zod_1.z.object({
1246
+ query: zod_1.z
1247
+ .string()
1248
+ .describe('Search keywords. Support the search of employee ID, employee name, employee mobile phone number, and employee mailbox. Among them, employee ID and employee mobile phone number support precise search, employee name and employee mailbox support fuzzy search, and employee name supports international name search'),
1249
+ page_request: zod_1.z
1250
+ .object({
1251
+ page_size: zod_1.z
1252
+ .number()
1253
+ .describe('The number of requests at this time, the minimum is 0 and the maximum is 100 **Default value**:20')
1254
+ .optional(),
1255
+ page_token: zod_1.z
1256
+ .string()
1257
+ .describe('Sequential paging query, cannot skip page query, supports deep paging, and can only be used in scenarios where all data needs to be traversed.Pass the empty string for the first time or not, and then pass the page_token in the previous return value')
1258
+ .optional(),
1259
+ })
1260
+ .describe('paging information'),
1261
+ required_fields: zod_1.z
1262
+ .array(zod_1.z.string())
1263
+ .describe('List of fields to query. Permissioned row and column data will be returned according to the passed field list. If not passed, no fields will be returned [Learn more: Field enumeration instructions]'),
1264
+ }),
1265
+ params: zod_1.z
1266
+ .object({
1267
+ employee_id_type: zod_1.z
1268
+ .enum(['open_id', 'union_id', 'employee_id'])
1269
+ .describe("User ID categories Options:open_id(Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID]),union_id(Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)")
1270
+ .optional(),
1271
+ department_id_type: zod_1.z
1272
+ .enum(['open_department_id', 'department_id'])
1273
+ .describe('The type of department ID used in this call Options:open_department_id(It is used to identify a department in a specific application, and the same department has different open_department_id in different applications.),department_id(Used to identify a unique department within a tenant)')
1274
+ .optional(),
1275
+ })
1276
+ .optional(),
1277
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
1278
+ },
1279
+ };
1280
+ exports.directoryV1EmployeeToBeResigned = {
1281
+ project: 'directory',
1282
+ name: 'directory.v1.employee.toBeResigned',
1283
+ sdkName: 'directory.v1.employee.toBeResigned',
1284
+ path: '/open-apis/directory/v1/employees/:employee_id/to_be_resigned',
1285
+ httpMethod: 'PATCH',
1286
+ description: '[Feishu/Lark]-Organization-Employee management-Update un-resigned employees to be resigned-This interface is used to handle the departure of current employees and update them to the status of "pending departure". "pending departure" employees will not automatically leave, and need to use the "delete employee" API to terminate and transfer resources.When using user_access_token, it defaults to an administrator user, and only administrators who have the "CoreHR Management" role can operate it',
1287
+ accessTokens: ['tenant', 'user'],
1288
+ schema: {
1289
+ data: zod_1.z.object({
1290
+ employee: zod_1.z
1291
+ .object({
1292
+ resign_date: zod_1.z.string().describe('date of separation'),
1293
+ resign_reason: zod_1.z
1294
+ .enum([
1295
+ '1',
1296
+ '2',
1297
+ '3',
1298
+ '4',
1299
+ '5',
1300
+ '6',
1301
+ '7',
1302
+ '8',
1303
+ '9',
1304
+ '10',
1305
+ '11',
1306
+ '12',
1307
+ '13',
1308
+ '14',
1309
+ '15',
1310
+ '16',
1311
+ '17',
1312
+ '18',
1313
+ '19',
1314
+ '20',
1315
+ '21',
1316
+ '22',
1317
+ '23',
1318
+ '24',
1319
+ '25',
1320
+ ])
1321
+ .describe('reason for leaving Options:1(resign_reason_directory_not_satisfied_with_salary Salary does not meet expectations),2(resign_reason_directory_working_pressure Working too long),3(resign_reason_directory_not_satisfied_with_work_content Dissatisfied with the job content),4(resign_reason_directory_lack_of_recognition_of_leader Do not recognize superiors or management),5(resign_reason_directory_career_development Career development opportunities are limited),6(resign_reason_directory_lack_of_recognition_of_company_culture Lack of recognition of company culture),7(resign_reason_directory_active_organize_business_adjustment Organizational restructuring (voluntary resignation)),8(resign_reason_directory_contract_not_renewed Contract expires),9(resign_reason_directory_job_hopping Job hopping),10(resign_reason_directory_change_career Career change),11(resign_reason_directory_family Family reasons),12(resign_reason_directory_poor_health Poor health),13(resign_reason_directory_work_place Workplace reasons),14(resign_reason_directory_active_resignation_other_reason Other (voluntary resignation)),15(resign_reason_directory_accident accident),16(resign_reason_directory_death passed away),17(resign_reason_directory_fired dismiss),18(resign_reason_directory_failed_to_pass_probation_period Probation period not passed),19(resign_reason_directory_not_up_to_the_job Underperforming at work),20(resign_reason_directory_low_work_output Low work output),21(resign_reason_directory_passive_organize_business_adjustment Organizational restructuring (passive departure)),22(resign_reason_directory_breach_of_company_ordinance discipline violation),23(resign_reason_directory_break_the_law illegal),24(resign_reason_directory_passive_resignation_other_reason Other (passive resignation)),25(resign_reason_directory_other_reason Other (other))'),
1322
+ resign_type: zod_1.z
1323
+ .enum(['1', '2', '3'])
1324
+ .describe('type of turnover Options:1(resign_type_directory_acitve active),2(resign_type_directory_passive passive),3(resign_type_directoryy_other other)'),
1325
+ resign_remark: zod_1.z.string().describe('Resignation remarks').optional(),
1326
+ })
1327
+ .describe('Current employees transfer to pending departure'),
1328
+ }),
1329
+ params: zod_1.z
1330
+ .object({
1331
+ employee_id_type: zod_1.z
1332
+ .enum(['open_id', 'union_id', 'employee_id'])
1333
+ .describe("User ID categories Options:open_id(Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID]),union_id(Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID]),employee_id(The unique identifier of an employee within the enterprise. Supports customization, the system automatically generates it if it is not customized. ID supports modification.How to get employee_id: - Enterprise administrators go to the Admin Console > Organizational Structure > Members and Departments page, click Member Details to query employee IDs - Through the interface of [Get employee list in batches], query employee ID by mobile phone number or email.)")
1334
+ .optional(),
1335
+ department_id_type: zod_1.z
1336
+ .enum(['department_id', 'open_department_id'])
1337
+ .describe('Department ID type Options:department_id(Used to identify a unique department within the tenant),open_department_id(Used to identify a department in a specific application. The same department has the same open_department_id in different applications.)')
1338
+ .optional(),
1339
+ })
1340
+ .optional(),
1341
+ path: zod_1.z.object({ employee_id: zod_1.z.string().describe('Employee ID,consistent with the employee_id_type type') }),
1342
+ useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
1343
+ },
1344
+ };
1345
+ exports.directoryV1Tools = [
1346
+ exports.directoryV1CollaborationRuleCreate,
1347
+ exports.directoryV1CollaborationRuleDelete,
1348
+ exports.directoryV1CollaborationRuleList,
1349
+ exports.directoryV1CollaborationRuleUpdate,
1350
+ exports.directoryV1CollaborationTenantList,
1351
+ exports.directoryV1CollborationShareEntityList,
1352
+ exports.directoryV1DepartmentCreate,
1353
+ exports.directoryV1DepartmentDelete,
1354
+ exports.directoryV1DepartmentFilter,
1355
+ exports.directoryV1DepartmentMget,
1356
+ exports.directoryV1DepartmentPatch,
1357
+ exports.directoryV1DepartmentSearch,
1358
+ exports.directoryV1EmployeeCreate,
1359
+ exports.directoryV1EmployeeDelete,
1360
+ exports.directoryV1EmployeeFilter,
1361
+ exports.directoryV1EmployeeMget,
1362
+ exports.directoryV1EmployeePatch,
1363
+ exports.directoryV1EmployeeRegular,
1364
+ exports.directoryV1EmployeeResurrect,
1365
+ exports.directoryV1EmployeeSearch,
1366
+ exports.directoryV1EmployeeToBeResigned,
1367
+ ];