UNPKG

@larksuiteoapi/lark-mcp

Version:
794 lines 460 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.corehrV2EmployeesAdditionalJobBatch = exports.corehrV2EmployeeSearch = exports.corehrV2EmployeeCreate = exports.corehrV2EmployeeBatchGet = exports.corehrV2DepartmentTree = exports.corehrV2DepartmentSearch = exports.corehrV2DepartmentQueryTimeline = exports.corehrV2DepartmentQueryRecentChange = exports.corehrV2DepartmentQueryOperationLogs = exports.corehrV2DepartmentQueryMultiTimeline = exports.corehrV2DepartmentPatch = exports.corehrV2DepartmentParents = exports.corehrV2DepartmentDelete = exports.corehrV2DepartmentBatchGet = exports.corehrV2DefaultCostCenterUpdateVersion = exports.corehrV2DefaultCostCenterRemoveVersion = exports.corehrV2DefaultCostCenterCreateVersion = exports.corehrV2DefaultCostCenterBatchQuery = exports.corehrV2CostCenterVersionPatch = exports.corehrV2CostCenterVersionDelete = exports.corehrV2CostCenterVersionCreate = exports.corehrV2CostCenterSearch = exports.corehrV2CostCenterQueryRecentChange = exports.corehrV2CostCenterPatch = exports.corehrV2CostCenterDelete = exports.corehrV2CostCenterCreate = exports.corehrV2CostAllocationUpdateVersion = exports.corehrV2CostAllocationRemoveVersion = exports.corehrV2CostAllocationCreateVersion = exports.corehrV2CostAllocationBatchQuery = exports.corehrV2ContractSearch = exports.corehrV2CompanyQueryRecentChange = exports.corehrV2CompanyBatchGet = exports.corehrV2CompanyActive = exports.corehrV2BpList = exports.corehrV2BpGetByDepartment = exports.corehrV2BasicInfoTimeZoneSearch = exports.corehrV2BasicInfoNationalitySearch = exports.corehrV2BasicInfoLanguageSearch = exports.corehrV2BasicInfoDistrictSearch = exports.corehrV2BasicInfoCurrencySearch = exports.corehrV2BasicInfoCountryRegionSearch = exports.corehrV2BasicInfoCountryRegionSubdivisionSearch = exports.corehrV2BasicInfoCitySearch = exports.corehrV2BasicInfoBankSearch = exports.corehrV2BasicInfoBankBranchSearch = exports.corehrV2ApproverList = exports.corehrV2ApprovalGroupsOpenQueryJobChangeListByIds = exports.corehrV2ApprovalGroupsOpenQueryDepartmentChangeListByIds = exports.corehrV2ApprovalGroupsGet = void 0; exports.corehrV2WorkforcePlanDetailRowBatchSave = exports.corehrV2ReportDetailRowBatchSave = exports.corehrV2ProcessTransferUpdate = exports.corehrV2ProcessList = exports.corehrV2ProcessGet = exports.corehrV2ProcessFormVariableDataGet = exports.corehrV2ProcessExtraUpdate = exports.corehrV2ProcessApproverUpdate = exports.corehrV2ProcessWithdrawUpdate = exports.corehrV2ProcessRevokeUpdate = exports.corehrV2PreHireWithdrawOnboarding = exports.corehrV2PreHireTransitTask = exports.corehrV2PreHireSearch = exports.corehrV2PreHireRestoreFlowInstance = exports.corehrV2PreHireQuery = exports.corehrV2PreHirePatch = exports.corehrV2PreHireDelete = exports.corehrV2PreHireCreate = exports.corehrV2PreHireComplete = exports.corehrV2PersonPatch = exports.corehrV2PersonCreate = exports.corehrV2OffboardingSubmitV2 = exports.corehrV2OffboardingRevoke = exports.corehrV2OffboardingEdit = exports.corehrV2LocationQueryRecentChange = exports.corehrV2LocationPatch = exports.corehrV2LocationBatchGet = exports.corehrV2LocationAddressPatch = exports.corehrV2LocationAddressDelete = exports.corehrV2LocationAddressCreate = exports.corehrV2LocationActive = exports.corehrV2JobQueryRecentChange = exports.corehrV2JobList = exports.corehrV2JobGet = exports.corehrV2JobLevelBatchGet = exports.corehrV2JobGradeQuery = exports.corehrV2JobGradePatch = exports.corehrV2JobGradeDelete = exports.corehrV2JobGradeCreate = exports.corehrV2JobFamilyBatchGet = exports.corehrV2JobChangeSearch = exports.corehrV2JobChangeRevoke = exports.corehrV2JobChangeCreate = exports.corehrV2EnumSearch = exports.corehrV2EmployeesJobDataQuery = exports.corehrV2EmployeesJobDataBatchGet = exports.corehrV2EmployeesBpBatchGet = exports.corehrV2EmployeesAdditionalJobPatch = exports.corehrV2EmployeesAdditionalJobDelete = exports.corehrV2EmployeesAdditionalJobCreate = void 0; exports.corehrV2Tools = exports.corehrV2WorkforcePlanList = exports.corehrV2WorkforcePlanDetailBatchV2 = exports.corehrV2WorkforcePlanDetailBatch = void 0; const zod_1 = require("zod"); exports.corehrV2ApprovalGroupsGet = { project: 'corehr', name: 'corehr.v2.approvalGroups.get', sdkName: 'corehr.v2.approvalGroups.get', path: '/open-apis/corehr/v2/approval_groups/:process_id', httpMethod: 'GET', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization adjustment-Query organization adjustment records by process ID-Query organization adjustment records by process ID', accessTokens: ['tenant'], schema: { params: zod_1.z.object({ user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), }), path: zod_1.z.object({ process_id: zod_1.z .string() .describe('Organizational Structure Adjustment Process ID, the user initiates an organizational structure adjustment through "Feishu Personnel - My Team - Organizational Structure" or "Feishu Personnel - Personnel Management - Organizational Structure", and after submitting for approval, the system will generate one or more approval documents according to the rules configured by the administrator in the approval process'), }), }, }; exports.corehrV2ApprovalGroupsOpenQueryDepartmentChangeListByIds = { project: 'corehr', name: 'corehr.v2.approvalGroups.openQueryDepartmentChangeListByIds', sdkName: 'corehr.v2.approvalGroups.openQueryDepartmentChangeListByIds', path: '/open-apis/corehr/v2/approval_groups/open_query_department_change_list_by_ids', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization adjustment-Batch query department change records-Batch query department change records by department change ID', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ department_change_ids: zod_1.z .array(zod_1.z.string()) .describe('The list of department adjustment record IDs, and the type of change ID returned is the same as the ```department_id_type``` in the request body. The adjustment record details can be obtained by [Query the organizational adjustment record according to the process ID](ssl://ttdocs/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/get).') .optional(), need_department_path: zod_1.z.boolean().describe('description').optional(), }), params: zod_1.z.object({ process_id: zod_1.z.string().describe('Organizational Adjustment Process ID'), user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), department_id_type: zod_1.z .enum(['open_department_id', 'department_id', 'people_corehr_department_id']) .describe('The type of department ID used in this call Options:open_department_id(Identify departments by open_department_id),department_id(Identify departments by department_id),people_corehr_department_id(Identify departments by people_corehr_department_id)') .optional(), }), }, }; exports.corehrV2ApprovalGroupsOpenQueryJobChangeListByIds = { project: 'corehr', name: 'corehr.v2.approvalGroups.openQueryJobChangeListByIds', sdkName: 'corehr.v2.approvalGroups.openQueryJobChangeListByIds', path: '/open-apis/corehr/v2/approval_groups/open_query_job_change_list_by_ids', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization adjustment-Batch query job change records-Batch query job change records by job change record ID', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ job_change_ids: zod_1.z .array(zod_1.z.string()) .describe('Personnel change record ID List. After the organizational structure adjustment is initiated, an employee change record will be generated for the employees involved in the adjustment. The corresponding record ID is job_change_id. The adjustment record can be obtained by [Query the organizational structure adjustment record according to the process ID](ssl://ttdocs/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/get).') .optional(), need_department_path: zod_1.z.boolean().describe('Whether to return to the full path of the department').optional(), }), params: zod_1.z.object({ process_id: zod_1.z .string() .describe('Organizational Structure Adjustment Process ID, the user initiates an organizational structure adjustment through "Feishu Personnel - My Team - Organizational Structure" or "Feishu Personnel - Personnel Management - Organizational Structure", and after submitting for approval, the system will generate one or more approval documents according to the rules configured by the administrator in the approval process'), user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), department_id_type: zod_1.z .enum(['open_department_id', 'department_id', 'people_corehr_department_id']) .describe('The type of department ID used in this call Options:open_department_id(Identify departments by open_department_id),department_id(Identify departments by department_id),people_corehr_department_id(Identify departments by people_corehr_department_id)') .optional(), }), }, }; exports.corehrV2ApproverList = { project: 'corehr', name: 'corehr.v2.approver.list', sdkName: 'corehr.v2.approver.list', path: '/open-apis/corehr/v2/approvers', httpMethod: 'GET', description: "[Feishu/Lark]-Feishu People(Enterprise Edition)-Process management-Approver Task-Get specified employment process approver list-Approval tasks depend on the existence of process node instances, each process node instance may contain one or more approval tasks, each task indicates who the current node's approver is, and the interface can obtain the approval task list of the specified member", accessTokens: ['tenant'], schema: { params: zod_1.z.object({ page_size: zod_1.z.number().describe('paging size'), page_token: zod_1.z .string() .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') .optional(), user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), user_id: zod_1.z.string().describe('Specified employment id. Passed by user_id_type type'), approver_status: zod_1.z .number() .describe('task status Options:-2(Skipped),-1(Initiated),0(Not started),1(In progress),2(Rejected),3(Approved),4(Cancelled),5(CC),6(Form submitted),12(Failed),14(Rolled back),16(Revoke)') .optional(), }), }, }; exports.corehrV2BasicInfoBankBranchSearch = { project: 'corehr', name: 'corehr.v2.basicInfoBankBranch.search', sdkName: 'corehr.v2.basicInfoBankBranch.search', path: '/open-apis/corehr/v2/basic_info/bank_branchs/search', httpMethod: 'POST', description: "[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-bank info-Search bank branch information-Search bank branch information, by bank ID, bank branch ID, bank branch's exact name, bank code, bank status or update time", accessTokens: ['tenant'], schema: { data: zod_1.z.object({ bank_id_list: zod_1.z.array(zod_1.z.string()).describe('Bank ID list').optional(), bank_branch_id_list: zod_1.z.array(zod_1.z.string()).describe('Bank branch ID list').optional(), bank_branch_name_list: zod_1.z.array(zod_1.z.string()).describe('Bank branch name list').optional(), code_list: zod_1.z .array(zod_1.z.string()) .describe('List of financial branch codes (link numbers), enabling accurate search of financial branch codes') .optional(), status_list: zod_1.z .array(zod_1.z.number().describe('Options:1(active),0(inactive)')) .describe('Minimum update time') .optional(), update_start_time: zod_1.z.string().describe('Maximum update time').optional(), update_end_time: zod_1.z.string().describe('latest update time').optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BasicInfoBankSearch = { project: 'corehr', name: 'corehr.v2.basicInfoBank.search', sdkName: 'corehr.v2.basicInfoBank.search', path: '/open-apis/corehr/v2/basic_info/banks/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-bank info-Search bank information-Search bank information by its ID or exact name', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ bank_id_list: zod_1.z.array(zod_1.z.string()).describe('Bank ID list').optional(), bank_name_list: zod_1.z.array(zod_1.z.string()).describe('Bank name list').optional(), status_list: zod_1.z .array(zod_1.z.number().describe('Options:1(enabled active),0(disabled inactive)')) .describe('Status') .optional(), update_start_time: zod_1.z.string().describe('Minimum update time').optional(), update_end_time: zod_1.z.string().describe('Maximum update time').optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BasicInfoCitySearch = { project: 'corehr', name: 'corehr.v2.basicInfoCity.search', sdkName: 'corehr.v2.basicInfoCity.search', path: '/open-apis/corehr/v2/basic_info/cities/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-Location data-Search city information-Search city information, by city ID or principal subdivision (province) ID', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ country_region_subdivision_id_list: zod_1.z .array(zod_1.z.string()) .describe('The list of province/administrative region IDs can be obtained through the interface.If it is empty, it is a mean query') .optional(), city_id_list: zod_1.z.array(zod_1.z.string()).describe('City ID List.If it is empty, it is a mean query').optional(), status_list: zod_1.z .array(zod_1.z.number().describe('Options:1(active),0(inactive)')) .describe('City status list.If it is empty, it is a mean query') .optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BasicInfoCountryRegionSubdivisionSearch = { project: 'corehr', name: 'corehr.v2.basicInfoCountryRegionSubdivision.search', sdkName: 'corehr.v2.basicInfoCountryRegionSubdivision.search', path: '/open-apis/corehr/v2/basic_info/country_region_subdivisions/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-Location data-Search principal subdivision (province) information-Search principal subdivision (province) information by country/region ID, principal subdivision ID, or status', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ country_region_id_list: zod_1.z .array(zod_1.z.string()) .describe('List of country/region IDs, which can be obtained through the [Query country/region information] (/ssl: ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info - country_region/search) interface. Return all records if omitted') .optional(), country_region_subdivision_id_list: zod_1.z .array(zod_1.z.string()) .describe('List of principal subdivision IDs. Return all records if omitted') .optional(), status_list: zod_1.z .array(zod_1.z.number().describe('Options:1(Effective take effect),0(Expiration failure)')) .describe('Status list, return all if not filled in') .optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BasicInfoCountryRegionSearch = { project: 'corehr', name: 'corehr.v2.basicInfoCountryRegion.search', sdkName: 'corehr.v2.basicInfoCountryRegion.search', path: '/open-apis/corehr/v2/basic_info/country_regions/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-Location data-Search country/region information-Search country/region information according to country/region ID and status', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ country_region_id_list: zod_1.z .array(zod_1.z.string()) .describe('Country ID list; all records will be returned if omitted') .optional(), status_list: zod_1.z .array(zod_1.z.number().describe('Options:1(active),0(inactive)')) .describe('Country/region status list.If it is empty, it is a mean query') .optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BasicInfoCurrencySearch = { project: 'corehr', name: 'corehr.v2.basicInfoCurrency.search', sdkName: 'corehr.v2.basicInfoCurrency.search', path: '/open-apis/corehr/v2/basic_info/currencies/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-Currency information-Search currency information-Search currency information according to currency ID and status', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ currency_id_list: zod_1.z .array(zod_1.z.string()) .describe('List of currency IDs.If it is empty, it is a mean query') .optional(), status_list: zod_1.z .array(zod_1.z.number().describe('Options:1(active),0(inactive)')) .describe('Currency status. Match all records if omitted') .optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BasicInfoDistrictSearch = { project: 'corehr', name: 'corehr.v2.basicInfoDistrict.search', sdkName: 'corehr.v2.basicInfoDistrict.search', path: '/open-apis/corehr/v2/basic_info/districts/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-Location data-Search area/county information-Search district/county information, by district/county ID or city ID', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ city_id_list: zod_1.z .array(zod_1.z.string()) .describe('The list of city IDs to which it belongs, and the detailed information can be obtained through the interface. Match all records if omitted') .optional(), district_id_list: zod_1.z .array(zod_1.z.string()) .describe('District/county ID list. Match all records if omitted') .optional(), status_list: zod_1.z .array(zod_1.z.number().describe('Options:1(active),0(inactive)')) .describe('List of status codes. Match all records if omitted') .optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BasicInfoLanguageSearch = { project: 'corehr', name: 'corehr.v2.basicInfoLanguage.search', sdkName: 'corehr.v2.basicInfoLanguage.search', path: '/open-apis/corehr/v2/basic_info/languages/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-Language information-Query language information-Query language information in batches according to language ID and status', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ language_id_list: zod_1.z.array(zod_1.z.string()).describe('List of language IDs, if empty, return all data').optional(), status_list: zod_1.z .array(zod_1.z.number().describe('Options:1(active valid),0(inactive invalid)')) .describe('status list') .optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BasicInfoNationalitySearch = { project: 'corehr', name: 'corehr.v2.basicInfoNationality.search', sdkName: 'corehr.v2.basicInfoNationality.search', path: '/open-apis/corehr/v2/basic_info/nationalities/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-nationality info-Search nationality information-Search nationality information according to country ID and nationality ID', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ nationality_id_list: zod_1.z .array(zod_1.z.string()) .describe('List of nationality IDs; the `person_info.nationality_id_v2` response field from the interface could be used as element of which') .optional(), country_region_id_list: zod_1.z .array(zod_1.z.string()) .describe('Country/region ID List, which can be queried through the interface') .optional(), status_list: zod_1.z.array(zod_1.z.number().describe('Options:1(active),0(inactive)')).describe('status list').optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BasicInfoTimeZoneSearch = { project: 'corehr', name: 'corehr.v2.basicInfoTimeZone.search', sdkName: 'corehr.v2.basicInfoTimeZone.search', path: '/open-apis/corehr/v2/basic_info/time_zones/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Basic infomation-Time zone information-Query time zone information-Query time zone information in batches according to time zone ID and status', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ time_zone_id_list: zod_1.z.array(zod_1.z.string()).describe('Time zone ID list, if empty, returns all data').optional(), status_list: zod_1.z .array(zod_1.z.number().describe('Options:1(active invalid),0(inactive valid)')) .describe('status list') .optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), }), }, }; exports.corehrV2BpGetByDepartment = { project: 'corehr', name: 'corehr.v2.bp.getByDepartment', sdkName: 'corehr.v2.bp.getByDepartment', path: '/open-apis/corehr/v2/bps/get_by_department', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-User authorization-Batch Get Department HRBP-Get departmen HRBP information, including HRBPs from superior departments', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ department_id: zod_1.z .string() .describe('Department ID, ID type has the same value meaning as department_id_type.You can use the to exchange for department_id'), }), params: zod_1.z.object({ user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), department_id_type: zod_1.z .enum(['open_department_id', 'department_id', 'people_corehr_department_id']) .describe('The department ID type used in this call Options:open_department_id(Identify departments by open_department_id),department_id(Identify departments by department_id),people_corehr_department_id(Identify departments by people_corehr_department_id)') .optional(), }), }, }; exports.corehrV2BpList = { project: 'corehr', name: 'corehr.v2.bp.list', sdkName: 'corehr.v2.bp.list', path: '/open-apis/corehr/v2/bps', httpMethod: 'GET', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-User authorization-Get HRBP List-Get a list of HRBPs. The list contains HRBP ID and department ID information', accessTokens: ['tenant'], schema: { params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 500'), page_token: zod_1.z .string() .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') .optional(), user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), department_id_type: zod_1.z .enum(['open_department_id', 'department_id', 'people_corehr_department_id']) .describe('The department ID type used in this call Options:open_department_id(Identify departments by open_department_id),department_id(Identify departments by department_id),people_corehr_department_id(Identify departments by people_corehr_department_id)') .optional(), }), }, }; exports.corehrV2CompanyActive = { project: 'corehr', name: 'corehr.v2.company.active', sdkName: 'corehr.v2.company.active', path: '/open-apis/corehr/v2/companies/active', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization management-Company-Enable/Disable Company-Enabling or deactivating a company', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ company_id: zod_1.z .string() .describe('Company ID- Available from the id field of '), effective_time: zod_1.z .string() .describe('Company enable/disable effective time- Fill in the format: YYYY-MM-DD- The system defaults to 00:00:00 on the day of filling in the date.- The interface is only supported up to the smallest unit for the day- Date range requirements: 1900-01-01~ 9999-12-31'), active: zod_1.z .boolean() .describe('Enabled/Deactivated state.- active pass true means enabled- active pass false means disabled'), operation_reason: zod_1.z.string().describe('Operating reason'), }), }, }; exports.corehrV2CompanyBatchGet = { project: 'corehr', name: 'corehr.v2.company.batchGet', sdkName: 'corehr.v2.company.batchGet', path: '/open-apis/corehr/v2/companies/batch_get', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization management-Company-Batch get company information by ID-Query company information in batches by ID', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ company_ids: zod_1.z .array(zod_1.z.string()) .describe('List of company IDs to be queried. How to get the ID:- Call [[Create Company]](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/create) [[Batch Query Company]](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list) and other interfaces to return the department ID'), }), }, }; exports.corehrV2CompanyQueryRecentChange = { project: 'corehr', name: 'corehr.v2.company.queryRecentChange', sdkName: 'corehr.v2.company.queryRecentChange', path: '/open-apis/corehr/v2/companies/query_recent_change', httpMethod: 'GET', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization management-Company-Query information-changed companies-Query the companies whose current effective information has changed within the specified time range, that is, only when the effective time of the current effective version of the company is within the query time range, will the company ID be returned', accessTokens: ['tenant'], schema: { params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 2000'), page_token: zod_1.z .string() .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') .optional(), start_date: zod_1.z .string() .describe('The start time of the query, in the format "YYYY-MM-DD HH:MM:SS", query for changes in the UTC+8 time zone'), end_date: zod_1.z .string() .describe('The end time of the query, in the format "YYYY-MM-DD HH:MM:SS", query for changes in the UTC+8 time zone. The end time of the query should be greater than the start time'), }), }, }; exports.corehrV2ContractSearch = { project: 'corehr', name: 'corehr.v2.contract.search', sdkName: 'corehr.v2.contract.search', path: '/open-apis/corehr/v2/contracts/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Contract-Search Contract-This interface can be used to search for contract information, including contract start time, contract expected end time, contract actual end time, contract company entity, etc', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ employment_id_list: zod_1.z .array(zod_1.z.string()) .describe('Employment ID List, you can get ID by[[Get Employment Infomation]](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)') .optional(), contract_id_list: zod_1.z .array(zod_1.z.string()) .describe('Contract ID List, which can be obtained through [[Get contract list]](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/list)') .optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), }), }, }; exports.corehrV2CostAllocationBatchQuery = { project: 'corehr', name: 'corehr.v2.costAllocation.batchQuery', sdkName: 'corehr.v2.costAllocation.batchQuery', path: '/open-apis/corehr/v2/cost_allocations/batch_query', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Employee information-Cost allocation-Query cost allocation-query cost allocation', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ employment_ids: zod_1.z.array(zod_1.z.string()).describe('Employee ID List') }), params: zod_1.z.object({ user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), }), }, }; exports.corehrV2CostAllocationCreateVersion = { project: 'corehr', name: 'corehr.v2.costAllocation.createVersion', sdkName: 'corehr.v2.costAllocation.createVersion', path: '/open-apis/corehr/v2/cost_allocations/create_version', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Employee information-Cost allocation-Create cost allocation-Create cost allocation', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ employment_id: zod_1.z.string().describe('Employee Employment ID'), cost_allocation: zod_1.z .object({ effective_time: zod_1.z.string().describe('Effective time'), expiration_time: zod_1.z.string().describe('Expiration time').optional(), job_data_cost_center_id: zod_1.z .array(zod_1.z.object({ cost_center_id: zod_1.z .string() .describe('Cost center ID, you can obtain the corresponding cost center information through the [Query a single cost center information] interface'), new_rate: zod_1.z.number().describe('proportion of assessment'), })) .describe('cost allocation') .optional(), reason: zod_1.z.string().describe('Reason for change').optional(), }) .describe('cost allocation') .optional(), }), params: zod_1.z.object({ user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), client_token: zod_1.z .string() .describe('Determine whether the same request is based on whether the client_token are consistent') .optional(), }), }, }; exports.corehrV2CostAllocationRemoveVersion = { project: 'corehr', name: 'corehr.v2.costAllocation.removeVersion', sdkName: 'corehr.v2.costAllocation.removeVersion', path: '/open-apis/corehr/v2/cost_allocations/remove_version', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Employee information-Cost allocation-Delete cost allocation-Delete cost allocation', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ employment_id: zod_1.z.string().describe('employment id'), cost_allocation: zod_1.z .object({ wk_id: zod_1.z.string().describe('cost center id') }) .describe('cost center') .optional(), }), params: zod_1.z.object({ user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), client_token: zod_1.z .string() .describe('Determine whether the same request is based on whether the client_token are consistent') .optional(), }), }, }; exports.corehrV2CostAllocationUpdateVersion = { project: 'corehr', name: 'corehr.v2.costAllocation.updateVersion', sdkName: 'corehr.v2.costAllocation.updateVersion', path: '/open-apis/corehr/v2/cost_allocations/update_version', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Employee information-Cost allocation-Update cost allocation-Update cost allocation', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ employment_id: zod_1.z.string().describe('Employee Employment ID'), cost_allocation: zod_1.z .object({ wk_id: zod_1.z.string().describe('ID'), effective_time: zod_1.z.string().describe('Effective time').optional(), expiration_time: zod_1.z.string().describe('Expiration time').optional(), job_data_cost_center_id: zod_1.z .array(zod_1.z.object({ cost_center_id: zod_1.z .string() .describe('Cost center ID, you can obtain the corresponding cost center information through the [Query a single cost center information] interface') .optional(), new_rate: zod_1.z.number().describe('proportion of assessment').optional(), })) .describe('cost allocation') .optional(), reason: zod_1.z.string().describe('Reason for change').optional(), }) .describe('cost allocation') .optional(), }), params: zod_1.z.object({ user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), client_token: zod_1.z .string() .describe('Determine whether the same request is based on whether the client_token are consistent') .optional(), }), }, }; exports.corehrV2CostCenterCreate = { project: 'corehr', name: 'corehr.v2.costCenter.create', sdkName: 'corehr.v2.costCenter.create', path: '/open-apis/corehr/v2/cost_centers', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization management-cost center-create cost center-Create a cost center; you can define the name of the cost center, the parent cost center, the person in charge of the cost center, the effective time, etc', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ name: zod_1.z .array(zod_1.z.object({ lang: zod_1.z .string() .describe('Name information language, support Chinese and English. Chinese with zh-CN; English with en-US'), value: zod_1.z.string().describe('content'), })) .describe('- Name cannot contain 「/」「;」「;」 characters- The Chinese and English names of the cost center will be globally unique'), code: zod_1.z .string() .describe('- Encoding (cannot be repeated with the encoding of other records); when automatic encoding is turned on, if no encoding is passed in, the encoding will be automatically generated. If an encoding is passed in, the incoming encoding shall prevail') .optional(), parent_cost_center_id: zod_1.z .string() .describe('The superior cost center ID, the detailed information can be obtained through the interface query') .optional(), managers: zod_1.z .array(zod_1.z.string()) .describe('XXX ID. ID acquisition method:- Call [[Create Employee]](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/create) to return the employment information ID- Call the [[Search Employee Information]](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search) interface to return the employment information ID') .optional(), description: zod_1.z .array(zod_1.z.object({ lang: zod_1.z .string() .describe('Language of information, support Chinese and English. Chinese with zh-CN; English with en-US'), value: zod_1.z.string().describe('content'), })) .describe('Cost center description') .optional(), effective_time: zod_1.z .string() .describe('Effective time; the interface is best known to taste to the smallest unit of day'), }), params: zod_1.z.object({ user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), }), }, }; exports.corehrV2CostCenterDelete = { project: 'corehr', name: 'corehr.v2.costCenter.delete', sdkName: 'corehr.v2.costCenter.delete', path: '/open-apis/corehr/v2/cost_centers/:cost_center_id', httpMethod: 'DELETE', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization management-cost center-delete cost center-Delete cost center records', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ operation_reason: zod_1.z.string().describe('Operational reasons') }), path: zod_1.z.object({ cost_center_id: zod_1.z .string() .describe('Cost center ID; can be obtained through the interface query') .optional(), }), }, }; exports.corehrV2CostCenterPatch = { project: 'corehr', name: 'corehr.v2.costCenter.patch', sdkName: 'corehr.v2.costCenter.patch', path: '/open-apis/corehr/v2/cost_centers/:cost_center_id', httpMethod: 'PATCH', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization management-cost center-enable or disable cost center-Enable and deactivate the cost center to support a single operation', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ effective_time: zod_1.z.string(), active: zod_1.z.boolean().describe('Enable deactivated state'), operation_reason: zod_1.z.string().describe('Operational reasons'), }), params: zod_1.z.object({ user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), }), path: zod_1.z.object({ cost_center_id: zod_1.z .string() .describe('The cost center ID can be obtained through the interface query') .optional(), }), }, }; exports.corehrV2CostCenterQueryRecentChange = { project: 'corehr', name: 'corehr.v2.costCenter.queryRecentChange', sdkName: 'corehr.v2.costCenter.queryRecentChange', path: '/open-apis/corehr/v2/cost_centers/query_recent_change', httpMethod: 'GET', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization management-cost center-query recent change cost center-Query the cost center whose current effective information has changed within the specified time range, that is, only when the effective time of the current effective version of the cost center is within the query time range, the cost center ID will be returned', accessTokens: ['tenant'], schema: { params: zod_1.z.object({ page_size: zod_1.z.number(), page_token: zod_1.z .string() .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') .optional(), start_date: zod_1.z.string(), end_date: zod_1.z.string(), }), }, }; exports.corehrV2CostCenterSearch = { project: 'corehr', name: 'corehr.v2.costCenter.search', sdkName: 'corehr.v2.costCenter.search', path: '/open-apis/corehr/v2/cost_centers/search', httpMethod: 'POST', description: '[Feishu/Lark]-Feishu People(Enterprise Edition)-Organization management-cost center-search cost center version-Search cost center information; support cost center ID, cost center name, cost center code, cost center superior search cost center information, with paging function', accessTokens: ['tenant'], schema: { data: zod_1.z.object({ cost_center_id_list: zod_1.z.array(zod_1.z.string()).describe('Cost center ID list').optional(), name_list: zod_1.z.array(zod_1.z.string()).describe('List of growth center names, exact match').optional(), code: zod_1.z.string().describe('Cost center code').optional(), parent_cost_center_id: zod_1.z .string() .describe('The superior cost center ID, which can be used to query the direct subordinate cost center') .optional(), get_all_version: zod_1.z.boolean().describe('Whether to get all Chen Ben Center versions').optional(), }), params: zod_1.z.object({ page_size: zod_1.z.number().describe('Page size, up to 100'), page_token: zod_1.z .string() .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') .optional(), user_id_type: zod_1.z.enum(['open_id', 'union_id', 'user_id', 'people_corehr_id']).describe('User ID type').optional(), }), }, }; exports.corehrV2CostCenterVersionCreate = { project: 'corehr', name: 'corehr.v2.costCenterVersion.create', sdkName: 'corehr.v2.costCenterVersion.create', path: '/open-apis/corehr/v2/cost_centers/:cost_center_id/versions', httpMethod: