@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.
- package/CHANGELOG.md +62 -0
- package/LICENSE +9 -0
- package/README.md +215 -0
- package/README_ZH.md +212 -0
- package/dist/auth/config.d.ts +12 -0
- package/dist/auth/config.js +15 -0
- package/dist/auth/handler/handler-local.d.ts +21 -0
- package/dist/auth/handler/handler-local.js +123 -0
- package/dist/auth/handler/handler.d.ts +32 -0
- package/dist/auth/handler/handler.js +117 -0
- package/dist/auth/handler/index.d.ts +2 -0
- package/dist/auth/handler/index.js +18 -0
- package/dist/auth/index.d.ts +4 -0
- package/dist/auth/index.js +20 -0
- package/dist/auth/provider/index.d.ts +3 -0
- package/dist/auth/provider/index.js +19 -0
- package/dist/auth/provider/oauth.d.ts +18 -0
- package/dist/auth/provider/oauth.js +147 -0
- package/dist/auth/provider/oidc.d.ts +18 -0
- package/dist/auth/provider/oidc.js +172 -0
- package/dist/auth/provider/types.d.ts +8 -0
- package/dist/auth/provider/types.js +2 -0
- package/dist/auth/store.d.ts +39 -0
- package/dist/auth/store.js +213 -0
- package/dist/auth/types.d.ts +13 -0
- package/dist/auth/types.js +2 -0
- package/dist/auth/utils/encryption.d.ts +7 -0
- package/dist/auth/utils/encryption.js +40 -0
- package/dist/auth/utils/index.d.ts +3 -0
- package/dist/auth/utils/index.js +19 -0
- package/dist/auth/utils/is-token-valid.d.ts +7 -0
- package/dist/auth/utils/is-token-valid.js +28 -0
- package/dist/auth/utils/pkce.d.ts +6 -0
- package/dist/auth/utils/pkce.js +20 -0
- package/dist/auth/utils/storage-manager.d.ts +17 -0
- package/dist/auth/utils/storage-manager.js +135 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +5 -0
- package/dist/cli/login-handler.d.ts +16 -0
- package/dist/cli/login-handler.js +142 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.js +122 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +19 -0
- package/dist/mcp-server/index.d.ts +2 -0
- package/dist/mcp-server/index.js +18 -0
- package/dist/mcp-server/shared/index.d.ts +2 -0
- package/dist/mcp-server/shared/index.js +18 -0
- package/dist/mcp-server/shared/init.d.ts +10 -0
- package/dist/mcp-server/shared/init.js +121 -0
- package/dist/mcp-server/shared/types.d.ts +40 -0
- package/dist/mcp-server/shared/types.js +10 -0
- package/dist/mcp-server/transport/index.d.ts +3 -0
- package/dist/mcp-server/transport/index.js +19 -0
- package/dist/mcp-server/transport/sse.d.ts +2 -0
- package/dist/mcp-server/transport/sse.js +75 -0
- package/dist/mcp-server/transport/stdio.d.ts +2 -0
- package/dist/mcp-server/transport/stdio.js +36 -0
- package/dist/mcp-server/transport/streamable.d.ts +2 -0
- package/dist/mcp-server/transport/streamable.js +86 -0
- package/dist/mcp-server/transport/utils.d.ts +16 -0
- package/dist/mcp-server/transport/utils.js +34 -0
- package/dist/mcp-tool/constants.d.ts +49 -0
- package/dist/mcp-tool/constants.js +115 -0
- package/dist/mcp-tool/document-tool/index.d.ts +1 -0
- package/dist/mcp-tool/document-tool/index.js +17 -0
- package/dist/mcp-tool/document-tool/recall/index.d.ts +2 -0
- package/dist/mcp-tool/document-tool/recall/index.js +39 -0
- package/dist/mcp-tool/document-tool/recall/request.d.ts +2 -0
- package/dist/mcp-tool/document-tool/recall/request.js +25 -0
- package/dist/mcp-tool/document-tool/recall/type.d.ts +19 -0
- package/dist/mcp-tool/document-tool/recall/type.js +2 -0
- package/dist/mcp-tool/index.d.ts +5 -0
- package/dist/mcp-tool/index.js +21 -0
- package/dist/mcp-tool/mcp-tool.d.ts +52 -0
- package/dist/mcp-tool/mcp-tool.js +198 -0
- package/dist/mcp-tool/tools/en/builtin-tools/docx/builtin.d.ts +5 -0
- package/dist/mcp-tool/tools/en/builtin-tools/docx/builtin.js +219 -0
- package/dist/mcp-tool/tools/en/builtin-tools/drive/builtin.d.ts +4 -0
- package/dist/mcp-tool/tools/en/builtin-tools/drive/builtin.js +159 -0
- package/dist/mcp-tool/tools/en/builtin-tools/im/buildin.d.ts +4 -0
- package/dist/mcp-tool/tools/en/builtin-tools/im/buildin.js +63 -0
- package/dist/mcp-tool/tools/en/builtin-tools/index.d.ts +5 -0
- package/dist/mcp-tool/tools/en/builtin-tools/index.js +7 -0
- package/dist/mcp-tool/tools/en/gen-tools/index.d.ts +114 -0
- package/dist/mcp-tool/tools/en/gen-tools/index.js +129 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/acs_v1.d.ts +562 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/acs_v1.js +264 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/admin_v1.d.ts +912 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/admin_v1.js +449 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/aily_v1.d.ts +1213 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/aily_v1.js +560 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/apaas_v1.d.ts +2530 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/apaas_v1.js +949 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/application_v5.d.ts +80 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/application_v5.js +53 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/application_v6.d.ts +1008 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/application_v6.js +775 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/approval_v4.d.ts +3928 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/approval_v4.js +1602 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/attendance_v1.d.ts +6043 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/attendance_v1.js +1857 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/auth_v3.d.ts +151 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/auth_v3.js +71 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/authen_v1.d.ts +26 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/authen_v1.js +17 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/baike_v1.d.ts +2174 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/baike_v1.js +594 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/base_v2.d.ts +755 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/base_v2.js +234 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/bitable_v1.d.ts +3541 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/bitable_v1.js +1786 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/board_v1.d.ts +40 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/board_v1.js +18 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/calendar_v4.d.ts +2075 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/calendar_v4.js +1594 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/cardkit_v1.d.ts +528 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/cardkit_v1.js +260 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/compensation_v1.d.ts +189 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/compensation_v1.js +132 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/contact_v3.d.ts +4274 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/contact_v3.js +2583 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/corehr_v1.d.ts +16873 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/corehr_v1.js +5045 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/corehr_v2.d.ts +29387 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/corehr_v2.js +7787 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/directory_v1.d.ts +4274 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/directory_v1.js +1367 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/docs_v1.d.ts +58 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/docs_v1.js +28 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/docx_v1.d.ts +93466 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/docx_v1.js +14350 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/drive_v1.d.ts +3251 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/drive_v1.js +1422 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/drive_v2.d.ts +174 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/drive_v2.js +117 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/ehr_v1.d.ts +86 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/ehr_v1.js +48 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/event_v1.d.ts +44 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/event_v1.js +17 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/helpdesk_v1.d.ts +733 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/helpdesk_v1.js +285 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/hire_v1.d.ts +10076 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/hire_v1.js +6065 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/hire_v2.d.ts +158 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/hire_v2.js +61 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/human_authentication_v1.d.ts +70 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/human_authentication_v1.js +27 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/im_v1.d.ts +3043 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/im_v1.js +1869 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/im_v2.d.ts +2176 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/im_v2.js +460 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/lingo_v1.d.ts +2301 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/lingo_v1.js +669 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/mail_v1.d.ts +2462 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/mail_v1.js +1655 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/mdm_v1.d.ts +104 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/mdm_v1.js +45 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/mdm_v3.d.ts +329 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/mdm_v3.js +78 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/minutes_v1.d.ts +92 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/minutes_v1.js +62 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/moments_v1.d.ts +52 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/moments_v1.js +24 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/okr_v1.d.ts +1628 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/okr_v1.js +434 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/optical_char_recognition_v1.d.ts +38 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/optical_char_recognition_v1.js +17 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/passport_v1.d.ts +131 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/passport_v1.js +59 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/payroll_v1.d.ts +333 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/payroll_v1.js +176 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/performance_v1.d.ts +309 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/performance_v1.js +178 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/performance_v2.d.ts +1177 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/performance_v2.js +559 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/personal_settings_v1.d.ts +640 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/personal_settings_v1.js +303 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/report_v1.d.ts +192 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/report_v1.js +71 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/search_v2.d.ts +1695 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/search_v2.js +446 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/security_and_compliance_v1.d.ts +68 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/security_and_compliance_v1.js +32 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/sheets_v2.d.ts +523 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/sheets_v2.js +231 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/sheets_v3.d.ts +979 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/sheets_v3.js +721 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/speech_to_text_v1.d.ts +225 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/speech_to_text_v1.js +65 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/task_v1.d.ts +1161 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/task_v1.js +672 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/task_v2.d.ts +6051 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/task_v2.js +1970 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/tenant_v2.d.ts +31 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/tenant_v2.js +24 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/translation_v1.d.ts +80 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/translation_v1.js +37 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/trust_party_v1.d.ts +182 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/trust_party_v1.js +141 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/vc_v1.d.ts +5725 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/vc_v1.js +1751 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/verification_v1.d.ts +21 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/verification_v1.js +14 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/wiki_v1.d.ts +72 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/wiki_v1.js +19 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/wiki_v2.d.ts +843 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/wiki_v2.js +381 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/workplace_v1.d.ts +116 -0
- package/dist/mcp-tool/tools/en/gen-tools/zod/workplace_v1.js +77 -0
- package/dist/mcp-tool/tools/index.d.ts +104 -0
- package/dist/mcp-tool/tools/index.js +9 -0
- package/dist/mcp-tool/tools/zh/builtin-tools/docx/builtin.d.ts +5 -0
- package/dist/mcp-tool/tools/zh/builtin-tools/docx/builtin.js +198 -0
- package/dist/mcp-tool/tools/zh/builtin-tools/drive/builtin.d.ts +4 -0
- package/dist/mcp-tool/tools/zh/builtin-tools/drive/builtin.js +159 -0
- package/dist/mcp-tool/tools/zh/builtin-tools/im/buildin.d.ts +4 -0
- package/dist/mcp-tool/tools/zh/builtin-tools/im/buildin.js +63 -0
- package/dist/mcp-tool/tools/zh/builtin-tools/index.d.ts +5 -0
- package/dist/mcp-tool/tools/zh/builtin-tools/index.js +7 -0
- package/dist/mcp-tool/tools/zh/gen-tools/index.d.ts +114 -0
- package/dist/mcp-tool/tools/zh/gen-tools/index.js +129 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/acs_v1.d.ts +562 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/acs_v1.js +277 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/admin_v1.d.ts +912 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/admin_v1.js +430 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/aily_v1.d.ts +1213 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/aily_v1.js +541 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/apaas_v1.d.ts +2530 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/apaas_v1.js +885 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/application_v5.d.ts +80 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/application_v5.js +59 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/application_v6.d.ts +1007 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/application_v6.js +721 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/approval_v4.d.ts +3928 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/approval_v4.js +1532 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/attendance_v1.d.ts +6043 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/attendance_v1.js +1620 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/auth_v3.d.ts +151 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/auth_v3.js +87 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/authen_v1.d.ts +26 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/authen_v1.js +17 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/baike_v1.d.ts +2174 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/baike_v1.js +574 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/base_v2.d.ts +755 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/base_v2.js +270 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/bitable_v1.d.ts +3541 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/bitable_v1.js +1864 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/board_v1.d.ts +40 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/board_v1.js +18 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/calendar_v4.d.ts +2075 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/calendar_v4.js +1533 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/cardkit_v1.d.ts +528 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/cardkit_v1.js +248 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/compensation_v1.d.ts +189 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/compensation_v1.js +130 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/contact_v3.d.ts +4274 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/contact_v3.js +2394 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/corehr_v1.d.ts +16957 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/corehr_v1.js +4753 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/corehr_v2.d.ts +29869 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/corehr_v2.js +7902 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/directory_v1.d.ts +4324 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/directory_v1.js +1340 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/docs_v1.d.ts +58 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/docs_v1.js +26 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/docx_v1.d.ts +116719 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/docx_v1.js +14949 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/drive_v1.d.ts +3251 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/drive_v1.js +1395 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/drive_v2.d.ts +174 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/drive_v2.js +115 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/ehr_v1.d.ts +86 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/ehr_v1.js +48 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/event_v1.d.ts +44 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/event_v1.js +25 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/helpdesk_v1.d.ts +733 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/helpdesk_v1.js +279 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/hire_v1.d.ts +10085 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/hire_v1.js +5787 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/hire_v2.d.ts +158 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/hire_v2.js +64 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/human_authentication_v1.d.ts +70 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/human_authentication_v1.js +27 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/im_v1.d.ts +3043 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/im_v1.js +1812 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/im_v2.d.ts +2176 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/im_v2.js +454 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/lingo_v1.d.ts +2301 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/lingo_v1.js +650 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/mail_v1.d.ts +2465 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/mail_v1.js +1467 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/mdm_v1.d.ts +104 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/mdm_v1.js +45 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/mdm_v3.d.ts +329 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/mdm_v3.js +76 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/minutes_v1.d.ts +92 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/minutes_v1.js +62 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/moments_v1.d.ts +52 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/moments_v1.js +20 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/okr_v1.d.ts +1664 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/okr_v1.js +455 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/optical_char_recognition_v1.d.ts +38 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/optical_char_recognition_v1.js +17 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/passport_v1.d.ts +131 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/passport_v1.js +53 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/payroll_v1.d.ts +609 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/payroll_v1.js +321 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/performance_v1.d.ts +309 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/performance_v1.js +165 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/performance_v2.d.ts +1177 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/performance_v2.js +525 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/personal_settings_v1.d.ts +640 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/personal_settings_v1.js +295 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/report_v1.d.ts +194 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/report_v1.js +72 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/search_v2.d.ts +1695 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/search_v2.js +556 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/security_and_compliance_v1.d.ts +68 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/security_and_compliance_v1.js +32 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/sheets_v2.d.ts +523 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/sheets_v2.js +231 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/sheets_v3.d.ts +979 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/sheets_v3.js +821 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/speech_to_text_v1.d.ts +225 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/speech_to_text_v1.js +65 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/task_v1.d.ts +1161 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/task_v1.js +647 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/task_v2.d.ts +6077 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/task_v2.js +1894 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/tenant_v2.d.ts +31 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/tenant_v2.js +24 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/translation_v1.d.ts +80 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/translation_v1.js +37 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/trust_party_v1.d.ts +182 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/trust_party_v1.js +137 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/vc_v1.d.ts +5725 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/vc_v1.js +1640 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/verification_v1.d.ts +21 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/verification_v1.js +14 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/wiki_v1.d.ts +72 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/wiki_v1.js +34 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/wiki_v2.d.ts +843 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/wiki_v2.js +376 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/workplace_v1.d.ts +116 -0
- package/dist/mcp-tool/tools/zh/gen-tools/zod/workplace_v1.js +77 -0
- package/dist/mcp-tool/types/index.d.ts +53 -0
- package/dist/mcp-tool/types/index.js +9 -0
- package/dist/mcp-tool/utils/case-transf.d.ts +2 -0
- package/dist/mcp-tool/utils/case-transf.js +15 -0
- package/dist/mcp-tool/utils/filter-tools.d.ts +2 -0
- package/dist/mcp-tool/utils/filter-tools.js +27 -0
- package/dist/mcp-tool/utils/get-should-use-uat.d.ts +2 -0
- package/dist/mcp-tool/utils/get-should-use-uat.js +18 -0
- package/dist/mcp-tool/utils/handler.d.ts +2 -0
- package/dist/mcp-tool/utils/handler.js +119 -0
- package/dist/mcp-tool/utils/index.d.ts +4 -0
- package/dist/mcp-tool/utils/index.js +20 -0
- package/dist/utils/clean-env-args.d.ts +1 -0
- package/dist/utils/clean-env-args.js +12 -0
- package/dist/utils/constants.d.ts +18 -0
- package/dist/utils/constants.js +35 -0
- package/dist/utils/http-instance.d.ts +2 -0
- package/dist/utils/http-instance.js +21 -0
- package/dist/utils/logger.d.ts +22 -0
- package/dist/utils/logger.js +97 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/utils/noop.js +6 -0
- package/dist/utils/parser-string-array.d.ts +1 -0
- package/dist/utils/parser-string-array.js +13 -0
- package/dist/utils/safe-json-parse.d.ts +1 -0
- package/dist/utils/safe-json-parse.js +14 -0
- package/dist/utils/version.d.ts +1 -0
- package/dist/utils/version.js +52 -0
- package/docs/recall-mcp/README.md +137 -0
- package/docs/recall-mcp/README_ZH.md +137 -0
- package/docs/reference/cli/cli-zh.md +92 -0
- package/docs/reference/cli/cli.md +92 -0
- package/docs/reference/tool-presets/presets-zh.md +120 -0
- package/docs/reference/tool-presets/presets.md +120 -0
- package/docs/reference/tool-presets/tools-en.md +1527 -0
- package/docs/reference/tool-presets/tools-zh.md +1544 -0
- package/docs/troubleshooting/faq-zh.md +67 -0
- package/docs/troubleshooting/faq.md +67 -0
- package/docs/usage/configuration/configuration-zh.md +344 -0
- package/docs/usage/configuration/configuration.md +344 -0
- package/docs/usage/docker/docker-zh.md +101 -0
- package/docs/usage/docker/docker.md +106 -0
- package/package.json +65 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.wikiV2Tools = exports.wikiV2TaskGet = exports.wikiV2SpaceSettingUpdate = exports.wikiV2SpaceNodeUpdateTitle = exports.wikiV2SpaceNodeMoveDocsToWiki = exports.wikiV2SpaceNodeMove = exports.wikiV2SpaceNodeList = exports.wikiV2SpaceNodeCreate = exports.wikiV2SpaceNodeCopy = exports.wikiV2SpaceMemberList = exports.wikiV2SpaceMemberDelete = exports.wikiV2SpaceMemberCreate = exports.wikiV2SpaceList = exports.wikiV2SpaceGetNode = exports.wikiV2SpaceGet = exports.wikiV2SpaceCreate = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.wikiV2SpaceCreate = {
|
|
6
|
+
project: 'wiki',
|
|
7
|
+
name: 'wiki.v2.space.create',
|
|
8
|
+
sdkName: 'wiki.v2.space.create',
|
|
9
|
+
path: '/open-apis/wiki/v2/spaces',
|
|
10
|
+
httpMethod: 'POST',
|
|
11
|
+
description: '[Feishu/Lark]-Docs-Wiki-Wiki space-Create Wiki space-This interface is used to create a Wiki space',
|
|
12
|
+
accessTokens: ['user'],
|
|
13
|
+
schema: {
|
|
14
|
+
data: zod_1.z
|
|
15
|
+
.object({
|
|
16
|
+
name: zod_1.z.string().describe('Wiki space name').optional(),
|
|
17
|
+
description: zod_1.z.string().describe('Wiki space description').optional(),
|
|
18
|
+
open_sharing: zod_1.z
|
|
19
|
+
.enum(['open', 'closed'])
|
|
20
|
+
.describe('Represents Wiki space sharing status Options:open(Open),closed(Closed)')
|
|
21
|
+
.optional(),
|
|
22
|
+
})
|
|
23
|
+
.optional(),
|
|
24
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
exports.wikiV2SpaceGet = {
|
|
28
|
+
project: 'wiki',
|
|
29
|
+
name: 'wiki.v2.space.get',
|
|
30
|
+
sdkName: 'wiki.v2.space.get',
|
|
31
|
+
path: '/open-apis/wiki/v2/spaces/:space_id',
|
|
32
|
+
httpMethod: 'GET',
|
|
33
|
+
description: "[Feishu/Lark]-Docs-Wiki-Wiki space-Access to Wiki space information-This interface is used to query the information of the Wiki space according to the Wiki space ID.Space type:- Person Space: Managed by individuals. One person can only have one personal space, and no other administrators can be added.- Team Space: Managed by a team (multiple people), multiple administrators can be added.Space visibility:- Public Space: Visible to all users within the tenant and defaults to member permissions. Additional members cannot be added, but administrators can be added.- Private Space: Only visible to knowledge space administrators and members, administrators and members need to be added manually.Space sharing status:- Open: The wiki space has been published to web.- Closed: The wiki space hasn't been published to web",
|
|
34
|
+
accessTokens: ['tenant', 'user'],
|
|
35
|
+
schema: {
|
|
36
|
+
params: zod_1.z
|
|
37
|
+
.object({
|
|
38
|
+
lang: zod_1.z
|
|
39
|
+
.enum(['zh', 'id', 'de', 'en', 'es', 'fr', 'it', 'pt', 'vi', 'ru', 'hi', 'th', 'ko', 'ja', 'zh-HK', 'zh-TW'])
|
|
40
|
+
.describe('When querying **My Document Library**, specify the document library name display language to return. Options:zh(LangZH Simplified Chinese),id(LangID Indonesian),de(LangDE German),en(LangEN English),es(LangES Spanish),fr(LangFR French),it(LangIT Italian),pt(LangPT Portuguese),vi(LangVI Vietnamese),ru(LangRU Russian),hi(LangHI Hindi),th(LangTH Thai),ko(LangKO Korean),ja(LangJA Japanese),zh-HK(LangZHHK Traditional Chinese (Hong Kong, China)),zh-TW(LangZHTW Traditional Chinese (Taiwan, China))')
|
|
41
|
+
.optional(),
|
|
42
|
+
})
|
|
43
|
+
.optional(),
|
|
44
|
+
path: zod_1.z
|
|
45
|
+
.object({
|
|
46
|
+
space_id: zod_1.z
|
|
47
|
+
.string()
|
|
48
|
+
.describe('Wiki space ID <md-text type="field-name" >[How to get Wiki space ID]</md-text>')
|
|
49
|
+
.optional(),
|
|
50
|
+
})
|
|
51
|
+
.optional(),
|
|
52
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
exports.wikiV2SpaceGetNode = {
|
|
56
|
+
project: 'wiki',
|
|
57
|
+
name: 'wiki.v2.space.getNode',
|
|
58
|
+
sdkName: 'wiki.v2.space.getNode',
|
|
59
|
+
path: '/open-apis/wiki/v2/spaces/get_node',
|
|
60
|
+
httpMethod: 'GET',
|
|
61
|
+
description: '[Feishu/Lark]-Docs-Wiki-node-Get Wiki node information-Get wiki node inforamtion',
|
|
62
|
+
accessTokens: ['tenant', 'user'],
|
|
63
|
+
schema: {
|
|
64
|
+
params: zod_1.z.object({
|
|
65
|
+
token: zod_1.z
|
|
66
|
+
.string()
|
|
67
|
+
.describe('The wiki node or the actual token of the corresponding cloud document.- **Wiki node token**: If the token in the URL link is preceded by "wiki", the token is the node token of the wiki.- **Actual cloud document token**: If the token in the URL link is preceded by "docx", "base", "sheets", or other non-"wiki" types, it indicates that the token is the actual token of the current cloud document.For more information, please refer to [Frequently Asked Questions about Documents - How to Retrieve Cloud Document Resource Tokens (IDs)].**Note**: When querying with a cloud document token, you need to pass the corresponding document type into the `obj_type` parameter'),
|
|
68
|
+
obj_type: zod_1.z
|
|
69
|
+
.enum(['doc', 'docx', 'sheet', 'mindnote', 'bitable', 'file', 'slides', 'wiki'])
|
|
70
|
+
.describe('Options:doc(ObjTypeDoc doc),docx(ObjTypeDocx docx),sheet(ObjTypeSheet sheet),mindnote(ObjTypeMindNote mindnote),bitable(ObjTypeBitable bitable),file(ObjTypeFile file),slides(ObjTypeSlides slides),wiki(ObjTypeWiki wiki)')
|
|
71
|
+
.optional(),
|
|
72
|
+
}),
|
|
73
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
exports.wikiV2SpaceList = {
|
|
77
|
+
project: 'wiki',
|
|
78
|
+
name: 'wiki.v2.space.list',
|
|
79
|
+
sdkName: 'wiki.v2.space.list',
|
|
80
|
+
path: '/open-apis/wiki/v2/spaces',
|
|
81
|
+
httpMethod: 'GET',
|
|
82
|
+
description: '[Feishu/Lark]-Docs-Wiki-Wiki space-Get a list of Wiki spaces-This interface is used to get a list of Wiki spaces that have permission to access.This interface is a paging interface. Due to permission filtering, the return list may be empty, but the paging flag (has_more) is true, and can continue the paging request.For the description of each attribute of the Wiki space, please refer to [Access to Wiki space information]',
|
|
83
|
+
accessTokens: ['tenant', 'user'],
|
|
84
|
+
schema: {
|
|
85
|
+
params: zod_1.z
|
|
86
|
+
.object({
|
|
87
|
+
page_size: zod_1.z.number().describe('paging size').optional(),
|
|
88
|
+
page_token: zod_1.z
|
|
89
|
+
.string()
|
|
90
|
+
.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')
|
|
91
|
+
.optional(),
|
|
92
|
+
})
|
|
93
|
+
.optional(),
|
|
94
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
exports.wikiV2SpaceMemberCreate = {
|
|
98
|
+
project: 'wiki',
|
|
99
|
+
name: 'wiki.v2.spaceMember.create',
|
|
100
|
+
sdkName: 'wiki.v2.spaceMember.create',
|
|
101
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/members',
|
|
102
|
+
httpMethod: 'POST',
|
|
103
|
+
description: '[Feishu/Lark]-Docs-Wiki-Space member-Add Wiki space members-Add Wiki space members',
|
|
104
|
+
accessTokens: ['tenant', 'user'],
|
|
105
|
+
schema: {
|
|
106
|
+
data: zod_1.z.object({
|
|
107
|
+
member_type: zod_1.z
|
|
108
|
+
.string()
|
|
109
|
+
.describe('"openchat" - group id "userid" - user id"email" - email "opendepartmentid" - department id"openid" - openid for application"unionid" - [unionid]'),
|
|
110
|
+
member_id: zod_1.z.string().describe('Member id, which should match the member type above'),
|
|
111
|
+
member_role: zod_1.z.string().describe('Role: "admin" -admin "member" -member'),
|
|
112
|
+
}),
|
|
113
|
+
params: zod_1.z
|
|
114
|
+
.object({
|
|
115
|
+
need_notification: zod_1.z
|
|
116
|
+
.boolean()
|
|
117
|
+
.describe('Whether to notify the other party after adding permissions')
|
|
118
|
+
.optional(),
|
|
119
|
+
})
|
|
120
|
+
.optional(),
|
|
121
|
+
path: zod_1.z.object({ space_id: zod_1.z.string().describe('Wiki space id').optional() }).optional(),
|
|
122
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
exports.wikiV2SpaceMemberDelete = {
|
|
126
|
+
project: 'wiki',
|
|
127
|
+
name: 'wiki.v2.spaceMember.delete',
|
|
128
|
+
sdkName: 'wiki.v2.spaceMember.delete',
|
|
129
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/members/:member_id',
|
|
130
|
+
httpMethod: 'DELETE',
|
|
131
|
+
description: '[Feishu/Lark]-Docs-Wiki-Space member-Delete Wiki space members-This method is used to delete Wiki space members',
|
|
132
|
+
accessTokens: ['tenant', 'user'],
|
|
133
|
+
schema: {
|
|
134
|
+
data: zod_1.z.object({
|
|
135
|
+
member_type: zod_1.z
|
|
136
|
+
.string()
|
|
137
|
+
.describe('"openchat" - group id "userid" - user id"email" - email "opendepartmentid" - department id"openid" - openid for application"unionid" - [unionid]'),
|
|
138
|
+
member_role: zod_1.z.string().describe('Role: "admin" -admin "member" -member'),
|
|
139
|
+
type: zod_1.z
|
|
140
|
+
.enum(['user', 'chat', 'department'])
|
|
141
|
+
.describe('Wiki space collaborator type (Future Support) Options:user(User),chat(Chat),department(Department)')
|
|
142
|
+
.optional(),
|
|
143
|
+
}),
|
|
144
|
+
path: zod_1.z.object({
|
|
145
|
+
space_id: zod_1.z.string().describe('Wiki space id'),
|
|
146
|
+
member_id: zod_1.z.string().describe('Member id, which should match the member type below'),
|
|
147
|
+
}),
|
|
148
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
exports.wikiV2SpaceMemberList = {
|
|
152
|
+
project: 'wiki',
|
|
153
|
+
name: 'wiki.v2.spaceMember.list',
|
|
154
|
+
sdkName: 'wiki.v2.spaceMember.list',
|
|
155
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/members',
|
|
156
|
+
httpMethod: 'GET',
|
|
157
|
+
description: '[Feishu/Lark]-Docs-Wiki-Space member-Obtain Wiki space members-Obtain Wiki space members',
|
|
158
|
+
accessTokens: ['tenant', 'user'],
|
|
159
|
+
schema: {
|
|
160
|
+
params: zod_1.z
|
|
161
|
+
.object({
|
|
162
|
+
page_size: zod_1.z.number().describe('paging size').optional(),
|
|
163
|
+
page_token: zod_1.z
|
|
164
|
+
.string()
|
|
165
|
+
.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')
|
|
166
|
+
.optional(),
|
|
167
|
+
})
|
|
168
|
+
.optional(),
|
|
169
|
+
path: zod_1.z.object({ space_id: zod_1.z.string().describe('Wiki Workspace ID') }),
|
|
170
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
exports.wikiV2SpaceNodeCopy = {
|
|
174
|
+
project: 'wiki',
|
|
175
|
+
name: 'wiki.v2.spaceNode.copy',
|
|
176
|
+
sdkName: 'wiki.v2.spaceNode.copy',
|
|
177
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/copy',
|
|
178
|
+
httpMethod: 'POST',
|
|
179
|
+
description: '[Feishu/Lark]-Docs-Wiki-node-Create a node copy-This interface is used for creating a copy of a node to a specified location',
|
|
180
|
+
accessTokens: ['tenant', 'user'],
|
|
181
|
+
schema: {
|
|
182
|
+
data: zod_1.z
|
|
183
|
+
.object({
|
|
184
|
+
target_parent_token: zod_1.z
|
|
185
|
+
.string()
|
|
186
|
+
.describe('Target parent node token- Target Wiki space ID and target parent token cannot be empty at the same time')
|
|
187
|
+
.optional(),
|
|
188
|
+
target_space_id: zod_1.z
|
|
189
|
+
.string()
|
|
190
|
+
.describe('Target Wiki space id- Target Wiki space ID and target parent token cannot be empty at the same time')
|
|
191
|
+
.optional(),
|
|
192
|
+
title: zod_1.z
|
|
193
|
+
.string()
|
|
194
|
+
.describe('Copied new title. If blank, the new title is empty. If not, the original node title is used')
|
|
195
|
+
.optional(),
|
|
196
|
+
})
|
|
197
|
+
.optional(),
|
|
198
|
+
path: zod_1.z
|
|
199
|
+
.object({
|
|
200
|
+
space_id: zod_1.z.string().describe('[Wiki space id]').optional(),
|
|
201
|
+
node_token: zod_1.z.string().describe('Node token').optional(),
|
|
202
|
+
})
|
|
203
|
+
.optional(),
|
|
204
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
exports.wikiV2SpaceNodeCreate = {
|
|
208
|
+
project: 'wiki',
|
|
209
|
+
name: 'wiki.v2.spaceNode.create',
|
|
210
|
+
sdkName: 'wiki.v2.spaceNode.create',
|
|
211
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/nodes',
|
|
212
|
+
httpMethod: 'POST',
|
|
213
|
+
description: '[Feishu/Lark]-Docs-Wiki-node-Create node-This interface is used to create [node] in the wiki space at given location',
|
|
214
|
+
accessTokens: ['tenant', 'user'],
|
|
215
|
+
schema: {
|
|
216
|
+
data: zod_1.z.object({
|
|
217
|
+
obj_type: zod_1.z
|
|
218
|
+
.enum(['doc', 'sheet', 'mindnote', 'bitable', 'file', 'docx', 'slides'])
|
|
219
|
+
.describe('Document type, for shortcuts, this field is the obj_type of the corresponding entity Options:doc(ObjTypeDoc Deprecated, please use `docx` to create documents. For more details, refer to [Scheduled offline of Docs 1.0 creation capability].),sheet(ObjTypeSheet Sheet),mindnote(ObjTypeMindNote Mindnote),bitable(ObjTypeBitable Bitable),file(ObjTypeFile File),docx(ObjTypeDocx Docx),slides(ObjTypeSlides Slides)'),
|
|
220
|
+
parent_node_token: zod_1.z
|
|
221
|
+
.string()
|
|
222
|
+
.describe("Node's father token. If the node is at first level, this field is empty")
|
|
223
|
+
.optional(),
|
|
224
|
+
node_type: zod_1.z
|
|
225
|
+
.enum(['origin', 'shortcut'])
|
|
226
|
+
.describe('Node type Options:origin(NodeTypeEntity Entity),shortcut(NodeTypeShortCut Shortcut)'),
|
|
227
|
+
origin_node_token: zod_1.z
|
|
228
|
+
.string()
|
|
229
|
+
.describe('The entity node_token corresponding to the shortcut needs to pass this value when the node is created as a shortcut')
|
|
230
|
+
.optional(),
|
|
231
|
+
title: zod_1.z.string().describe('The title of this document').optional(),
|
|
232
|
+
}),
|
|
233
|
+
path: zod_1.z.object({ space_id: zod_1.z.string().describe('[Wiki space id]').optional() }).optional(),
|
|
234
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
exports.wikiV2SpaceNodeList = {
|
|
238
|
+
project: 'wiki',
|
|
239
|
+
name: 'wiki.v2.spaceNode.list',
|
|
240
|
+
sdkName: 'wiki.v2.spaceNode.list',
|
|
241
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/nodes',
|
|
242
|
+
httpMethod: 'GET',
|
|
243
|
+
description: '[Feishu/Lark]-Docs-Wiki-node-Get the list of child nodes in Wiki-This interface is used for pagination to get the list of child nodes of Wiki nodes.This interface is a paging interface. Due to permission filtering, the return list may be empty, but the paging flag (has_more) is true and can continue the paging request',
|
|
244
|
+
accessTokens: ['tenant', 'user'],
|
|
245
|
+
schema: {
|
|
246
|
+
params: zod_1.z
|
|
247
|
+
.object({
|
|
248
|
+
page_size: zod_1.z.number().describe('Paging size').optional(),
|
|
249
|
+
page_token: zod_1.z
|
|
250
|
+
.string()
|
|
251
|
+
.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')
|
|
252
|
+
.optional(),
|
|
253
|
+
parent_node_token: zod_1.z.string().describe('Parent token').optional(),
|
|
254
|
+
})
|
|
255
|
+
.optional(),
|
|
256
|
+
path: zod_1.z.object({ space_id: zod_1.z.string().describe('[Wiki space id]').optional() }).optional(),
|
|
257
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
258
|
+
},
|
|
259
|
+
};
|
|
260
|
+
exports.wikiV2SpaceNodeMove = {
|
|
261
|
+
project: 'wiki',
|
|
262
|
+
name: 'wiki.v2.spaceNode.move',
|
|
263
|
+
sdkName: 'wiki.v2.spaceNode.move',
|
|
264
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/move',
|
|
265
|
+
httpMethod: 'POST',
|
|
266
|
+
description: '[Feishu/Lark]-Docs-Wiki-node-Move node in Wiki-This method is used to move nodes within the Wiki and supports movement across the Wiki space',
|
|
267
|
+
accessTokens: ['tenant', 'user'],
|
|
268
|
+
schema: {
|
|
269
|
+
data: zod_1.z
|
|
270
|
+
.object({
|
|
271
|
+
target_parent_token: zod_1.z.string().describe('Moved to parent token').optional(),
|
|
272
|
+
target_space_id: zod_1.z.string().describe('Moved to Wiki space').optional(),
|
|
273
|
+
})
|
|
274
|
+
.optional(),
|
|
275
|
+
path: zod_1.z.object({
|
|
276
|
+
space_id: zod_1.z.string().describe('Wiki space id'),
|
|
277
|
+
node_token: zod_1.z.string().describe('Node tokens to migrate'),
|
|
278
|
+
}),
|
|
279
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
280
|
+
},
|
|
281
|
+
};
|
|
282
|
+
exports.wikiV2SpaceNodeMoveDocsToWiki = {
|
|
283
|
+
project: 'wiki',
|
|
284
|
+
name: 'wiki.v2.spaceNode.moveDocsToWiki',
|
|
285
|
+
sdkName: 'wiki.v2.spaceNode.moveDocsToWiki',
|
|
286
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/nodes/move_docs_to_wiki',
|
|
287
|
+
httpMethod: 'POST',
|
|
288
|
+
description: '[Feishu/Lark]-Docs-Wiki-Docs-Move cloud document to Wiki-This interface allows to move existing cloud documents to the Wiki at given location',
|
|
289
|
+
accessTokens: ['tenant', 'user'],
|
|
290
|
+
schema: {
|
|
291
|
+
data: zod_1.z.object({
|
|
292
|
+
parent_wiki_token: zod_1.z.string().describe('Parent token of node').optional(),
|
|
293
|
+
obj_type: zod_1.z
|
|
294
|
+
.enum(['doc', 'sheet', 'bitable', 'mindnote', 'docx', 'file', 'slides'])
|
|
295
|
+
.describe('Document type Options:doc(ObjTypeDoc Documentation),sheet(ObjTypeSheet Sheet),bitable(ObjTypeBitable Bitable),mindnote(ObjTypeMindNote Mindnote),docx(ObjTypeDocx Docx),file(ObjTypeFile File),slides(ObjTypeSlides Slides)'),
|
|
296
|
+
obj_token: zod_1.z.string().describe('Document token'),
|
|
297
|
+
apply: zod_1.z.boolean().describe('Whether to apply for moving in documents when there is no permission').optional(),
|
|
298
|
+
}),
|
|
299
|
+
path: zod_1.z.object({ space_id: zod_1.z.string().describe('[Wiki space id]') }),
|
|
300
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
301
|
+
},
|
|
302
|
+
};
|
|
303
|
+
exports.wikiV2SpaceNodeUpdateTitle = {
|
|
304
|
+
project: 'wiki',
|
|
305
|
+
name: 'wiki.v2.spaceNode.updateTitle',
|
|
306
|
+
sdkName: 'wiki.v2.spaceNode.updateTitle',
|
|
307
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/nodes/:node_token/update_title',
|
|
308
|
+
httpMethod: 'POST',
|
|
309
|
+
description: '[Feishu/Lark]-Docs-Wiki-node-Update title-This interface is used for updating node title',
|
|
310
|
+
accessTokens: ['tenant', 'user'],
|
|
311
|
+
schema: {
|
|
312
|
+
data: zod_1.z.object({ title: zod_1.z.string().describe('New title of the node') }),
|
|
313
|
+
path: zod_1.z
|
|
314
|
+
.object({
|
|
315
|
+
space_id: zod_1.z.string().describe('Space ID').optional(),
|
|
316
|
+
node_token: zod_1.z.string().describe('Node Token').optional(),
|
|
317
|
+
})
|
|
318
|
+
.optional(),
|
|
319
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
320
|
+
},
|
|
321
|
+
};
|
|
322
|
+
exports.wikiV2SpaceSettingUpdate = {
|
|
323
|
+
project: 'wiki',
|
|
324
|
+
name: 'wiki.v2.spaceSetting.update',
|
|
325
|
+
sdkName: 'wiki.v2.spaceSetting.update',
|
|
326
|
+
path: '/open-apis/wiki/v2/spaces/:space_id/setting',
|
|
327
|
+
httpMethod: 'PUT',
|
|
328
|
+
description: '[Feishu/Lark]-Docs-Wiki-Space settings-Update Wiki space settings-Update the public settings of the Wiki space according to space_id',
|
|
329
|
+
accessTokens: ['tenant', 'user'],
|
|
330
|
+
schema: {
|
|
331
|
+
data: zod_1.z
|
|
332
|
+
.object({
|
|
333
|
+
create_setting: zod_1.z
|
|
334
|
+
.string()
|
|
335
|
+
.describe('Who can create space level page: "admin_and_member" = admin and member "admin" - admin only')
|
|
336
|
+
.optional(),
|
|
337
|
+
security_setting: zod_1.z
|
|
338
|
+
.string()
|
|
339
|
+
.describe('Readable user can create copy/print/export/copy: "allow" -allow "not_allow" -not allowed')
|
|
340
|
+
.optional(),
|
|
341
|
+
comment_setting: zod_1.z
|
|
342
|
+
.string()
|
|
343
|
+
.describe('Readable user can comment: "allow" -allow "not_allow" -not allowed')
|
|
344
|
+
.optional(),
|
|
345
|
+
})
|
|
346
|
+
.optional(),
|
|
347
|
+
path: zod_1.z.object({ space_id: zod_1.z.string().describe('Wiki space id').optional() }).optional(),
|
|
348
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
349
|
+
},
|
|
350
|
+
};
|
|
351
|
+
exports.wikiV2TaskGet = {
|
|
352
|
+
project: 'wiki',
|
|
353
|
+
name: 'wiki.v2.task.get',
|
|
354
|
+
sdkName: 'wiki.v2.task.get',
|
|
355
|
+
path: '/open-apis/wiki/v2/tasks/:task_id',
|
|
356
|
+
httpMethod: 'GET',
|
|
357
|
+
description: '[Feishu/Lark]-Docs-Wiki-Docs-Retrieve the result of Wiki task-This method is used to retrieve the result of a wiki task',
|
|
358
|
+
accessTokens: ['tenant', 'user'],
|
|
359
|
+
schema: {
|
|
360
|
+
params: zod_1.z.object({ task_type: zod_1.z.literal('move').describe('Task type Options:move(MoveDocsToWiki Task)') }),
|
|
361
|
+
path: zod_1.z.object({ task_id: zod_1.z.string().describe('Task id').optional() }).optional(),
|
|
362
|
+
useUAT: zod_1.z.boolean().describe('Use user access token, otherwise use tenant access token').optional(),
|
|
363
|
+
},
|
|
364
|
+
};
|
|
365
|
+
exports.wikiV2Tools = [
|
|
366
|
+
exports.wikiV2SpaceCreate,
|
|
367
|
+
exports.wikiV2SpaceGet,
|
|
368
|
+
exports.wikiV2SpaceGetNode,
|
|
369
|
+
exports.wikiV2SpaceList,
|
|
370
|
+
exports.wikiV2SpaceMemberCreate,
|
|
371
|
+
exports.wikiV2SpaceMemberDelete,
|
|
372
|
+
exports.wikiV2SpaceMemberList,
|
|
373
|
+
exports.wikiV2SpaceNodeCopy,
|
|
374
|
+
exports.wikiV2SpaceNodeCreate,
|
|
375
|
+
exports.wikiV2SpaceNodeList,
|
|
376
|
+
exports.wikiV2SpaceNodeMove,
|
|
377
|
+
exports.wikiV2SpaceNodeMoveDocsToWiki,
|
|
378
|
+
exports.wikiV2SpaceNodeUpdateTitle,
|
|
379
|
+
exports.wikiV2SpaceSettingUpdate,
|
|
380
|
+
exports.wikiV2TaskGet,
|
|
381
|
+
];
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export type workplaceV1ToolName = 'workplace.v1.customWorkplaceAccessData.search' | 'workplace.v1.workplaceAccessData.search' | 'workplace.v1.workplaceBlockAccessData.search';
|
|
3
|
+
export declare const workplaceV1CustomWorkplaceAccessDataSearch: {
|
|
4
|
+
project: string;
|
|
5
|
+
name: string;
|
|
6
|
+
sdkName: string;
|
|
7
|
+
path: string;
|
|
8
|
+
httpMethod: string;
|
|
9
|
+
description: string;
|
|
10
|
+
accessTokens: string[];
|
|
11
|
+
schema: {
|
|
12
|
+
params: z.ZodObject<{
|
|
13
|
+
from_date: z.ZodString;
|
|
14
|
+
to_date: z.ZodString;
|
|
15
|
+
page_size: z.ZodNumber;
|
|
16
|
+
page_token: z.ZodOptional<z.ZodString>;
|
|
17
|
+
custom_workplace_id: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
page_size: number;
|
|
20
|
+
from_date: string;
|
|
21
|
+
to_date: string;
|
|
22
|
+
page_token?: string | undefined;
|
|
23
|
+
custom_workplace_id?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
page_size: number;
|
|
26
|
+
from_date: string;
|
|
27
|
+
to_date: string;
|
|
28
|
+
page_token?: string | undefined;
|
|
29
|
+
custom_workplace_id?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const workplaceV1WorkplaceAccessDataSearch: {
|
|
34
|
+
project: string;
|
|
35
|
+
name: string;
|
|
36
|
+
sdkName: string;
|
|
37
|
+
path: string;
|
|
38
|
+
httpMethod: string;
|
|
39
|
+
description: string;
|
|
40
|
+
accessTokens: string[];
|
|
41
|
+
schema: {
|
|
42
|
+
params: z.ZodObject<{
|
|
43
|
+
from_date: z.ZodString;
|
|
44
|
+
to_date: z.ZodString;
|
|
45
|
+
page_size: z.ZodNumber;
|
|
46
|
+
page_token: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
page_size: number;
|
|
49
|
+
from_date: string;
|
|
50
|
+
to_date: string;
|
|
51
|
+
page_token?: string | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
page_size: number;
|
|
54
|
+
from_date: string;
|
|
55
|
+
to_date: string;
|
|
56
|
+
page_token?: string | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const workplaceV1WorkplaceBlockAccessDataSearch: {
|
|
61
|
+
project: string;
|
|
62
|
+
name: string;
|
|
63
|
+
sdkName: string;
|
|
64
|
+
path: string;
|
|
65
|
+
httpMethod: string;
|
|
66
|
+
description: string;
|
|
67
|
+
accessTokens: string[];
|
|
68
|
+
schema: {
|
|
69
|
+
params: z.ZodObject<{
|
|
70
|
+
from_date: z.ZodString;
|
|
71
|
+
to_date: z.ZodString;
|
|
72
|
+
page_size: z.ZodNumber;
|
|
73
|
+
page_token: z.ZodOptional<z.ZodString>;
|
|
74
|
+
block_id: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
page_size: number;
|
|
77
|
+
from_date: string;
|
|
78
|
+
to_date: string;
|
|
79
|
+
page_token?: string | undefined;
|
|
80
|
+
block_id?: string | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
page_size: number;
|
|
83
|
+
from_date: string;
|
|
84
|
+
to_date: string;
|
|
85
|
+
page_token?: string | undefined;
|
|
86
|
+
block_id?: string | undefined;
|
|
87
|
+
}>;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export declare const workplaceV1Tools: {
|
|
91
|
+
project: string;
|
|
92
|
+
name: string;
|
|
93
|
+
sdkName: string;
|
|
94
|
+
path: string;
|
|
95
|
+
httpMethod: string;
|
|
96
|
+
description: string;
|
|
97
|
+
accessTokens: string[];
|
|
98
|
+
schema: {
|
|
99
|
+
params: z.ZodObject<{
|
|
100
|
+
from_date: z.ZodString;
|
|
101
|
+
to_date: z.ZodString;
|
|
102
|
+
page_size: z.ZodNumber;
|
|
103
|
+
page_token: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
page_size: number;
|
|
106
|
+
from_date: string;
|
|
107
|
+
to_date: string;
|
|
108
|
+
page_token?: string | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
page_size: number;
|
|
111
|
+
from_date: string;
|
|
112
|
+
to_date: string;
|
|
113
|
+
page_token?: string | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
};
|
|
116
|
+
}[];
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.workplaceV1Tools = exports.workplaceV1WorkplaceBlockAccessDataSearch = exports.workplaceV1WorkplaceAccessDataSearch = exports.workplaceV1CustomWorkplaceAccessDataSearch = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.workplaceV1CustomWorkplaceAccessDataSearch = {
|
|
6
|
+
project: 'workplace',
|
|
7
|
+
name: 'workplace.v1.customWorkplaceAccessData.search',
|
|
8
|
+
sdkName: 'workplace.v1.customWorkplaceAccessData.search',
|
|
9
|
+
path: '/open-apis/workplace/v1/custom_workplace_access_data/search',
|
|
10
|
+
httpMethod: 'POST',
|
|
11
|
+
description: '[Feishu/Lark]-Workplace-workplace access data-Get Custom Workplace Access Data-Get Custom Workplace Access Data',
|
|
12
|
+
accessTokens: ['tenant'],
|
|
13
|
+
schema: {
|
|
14
|
+
params: zod_1.z.object({
|
|
15
|
+
from_date: zod_1.z.string(),
|
|
16
|
+
to_date: zod_1.z.string(),
|
|
17
|
+
page_size: zod_1.z.number(),
|
|
18
|
+
page_token: zod_1.z
|
|
19
|
+
.string()
|
|
20
|
+
.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')
|
|
21
|
+
.optional(),
|
|
22
|
+
custom_workplace_id: zod_1.z
|
|
23
|
+
.string()
|
|
24
|
+
.describe('Custom workplace ID,which is not mandatory. When empty, all custom workplace data is responsed. How to obtain a custom workplace ID: You can go to Feishu Admin>Workplace>Custom Workplace, click on the settings of the specified workplace to enter the settings page; Click the "Settings" button at the top three times with the mouse to display the ID, and then copy the ID')
|
|
25
|
+
.optional(),
|
|
26
|
+
}),
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
exports.workplaceV1WorkplaceAccessDataSearch = {
|
|
30
|
+
project: 'workplace',
|
|
31
|
+
name: 'workplace.v1.workplaceAccessData.search',
|
|
32
|
+
sdkName: 'workplace.v1.workplaceAccessData.search',
|
|
33
|
+
path: '/open-apis/workplace/v1/workplace_access_data/search',
|
|
34
|
+
httpMethod: 'POST',
|
|
35
|
+
description: '[Feishu/Lark]-Workplace-workplace access data-search workplace access data-Get Workplace Access Data, including default workplace and custom workplace',
|
|
36
|
+
accessTokens: ['tenant'],
|
|
37
|
+
schema: {
|
|
38
|
+
params: zod_1.z.object({
|
|
39
|
+
from_date: zod_1.z.string(),
|
|
40
|
+
to_date: zod_1.z.string(),
|
|
41
|
+
page_size: zod_1.z.number(),
|
|
42
|
+
page_token: zod_1.z
|
|
43
|
+
.string()
|
|
44
|
+
.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')
|
|
45
|
+
.optional(),
|
|
46
|
+
}),
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
exports.workplaceV1WorkplaceBlockAccessDataSearch = {
|
|
50
|
+
project: 'workplace',
|
|
51
|
+
name: 'workplace.v1.workplaceBlockAccessData.search',
|
|
52
|
+
sdkName: 'workplace.v1.workplaceBlockAccessData.search',
|
|
53
|
+
path: '/open-apis/workplace/v1/workplace_block_access_data/search',
|
|
54
|
+
httpMethod: 'POST',
|
|
55
|
+
description: '[Feishu/Lark]-Workplace-workplace access data-Get Block Access Data-Get Custom Workplace Block Access Data',
|
|
56
|
+
accessTokens: ['tenant'],
|
|
57
|
+
schema: {
|
|
58
|
+
params: zod_1.z.object({
|
|
59
|
+
from_date: zod_1.z.string(),
|
|
60
|
+
to_date: zod_1.z.string(),
|
|
61
|
+
page_size: zod_1.z.number(),
|
|
62
|
+
page_token: zod_1.z
|
|
63
|
+
.string()
|
|
64
|
+
.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')
|
|
65
|
+
.optional(),
|
|
66
|
+
block_id: zod_1.z
|
|
67
|
+
.string()
|
|
68
|
+
.describe('BlockID. You can go to Feishu Admin>Workplace>Custom Workplace, select the specified workplace and enter the Workplace Builder. Click on a block to view the "BlockID" below the block name in the right panel of the page')
|
|
69
|
+
.optional(),
|
|
70
|
+
}),
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
exports.workplaceV1Tools = [
|
|
74
|
+
exports.workplaceV1CustomWorkplaceAccessDataSearch,
|
|
75
|
+
exports.workplaceV1WorkplaceAccessDataSearch,
|
|
76
|
+
exports.workplaceV1WorkplaceBlockAccessDataSearch,
|
|
77
|
+
];
|