diff --git a/TenantAccessList.md b/TenantAccessList.md index a987cddc..14e2d795 100644 --- a/TenantAccessList.md +++ b/TenantAccessList.md @@ -999,105 +999,105 @@ PostTaskV2CustomFieldsByCustomFieldGuidOptions 5002023-09-11✓任务更新自定义字段选项 PatchTaskV2CustomFieldsByCustomFieldGuidOptionsByOptionGuid -5012024-09-19✓邮箱创建邮件组 +5012024-09-24✓邮箱创建邮件组 PostMailV1Mailgroups 5022024-07-05✓通讯录删除职级 DeleteContactV3JobLevelsByJobLevelId -5032024-09-19✓邮箱删除邮件组 +5032024-09-24✓邮箱删除邮件组 DeleteMailV1MailgroupsByMailgroupId -5042024-09-19✓邮箱修改邮件组部分信息 +5042024-09-24✓邮箱修改邮件组部分信息 PatchMailV1MailgroupsByMailgroupId -5052024-09-19✓邮箱修改邮件组全部信息 +5052024-09-24✓邮箱修改邮件组全部信息 PutMailV1MailgroupsByMailgroupId -5062024-09-19✓邮箱查询指定邮件组 +5062024-09-24✓邮箱查询指定邮件组 GetMailV1MailgroupsByMailgroupId -5072024-09-19✓邮箱批量获取邮件组 +5072024-09-24✓邮箱批量获取邮件组 GetMailV1Mailgroups -5082024-09-19✓邮箱批量创建邮件组管理员 +5082024-09-24✓邮箱批量创建邮件组管理员 PostMailV1MailgroupsByMailgroupIdManagersBatchCreate -5092024-09-19✓邮箱批量删除邮件组管理员 +5092024-09-24✓邮箱批量删除邮件组管理员 PostMailV1MailgroupsByMailgroupIdManagersBatchDelete -5102024-09-19✓邮箱批量获取邮件组管理员 +5102024-09-24✓邮箱批量获取邮件组管理员 GetMailV1MailgroupsByMailgroupIdManagers -5112024-09-19✓邮箱创建邮件组成员 +5112024-09-24✓邮箱创建邮件组成员 PostMailV1MailgroupsByMailgroupIdMembers -5122024-09-19✓邮箱删除邮件组成员 +5122024-09-24✓邮箱删除邮件组成员 DeleteMailV1MailgroupsByMailgroupIdMembersByMemberId 5132024-07-05✓通讯录更新职级 PutContactV3JobLevelsByJobLevelId -5142024-09-19✓邮箱查询指定邮件组成员 +5142024-09-24✓邮箱查询指定邮件组成员 GetMailV1MailgroupsByMailgroupIdMembersByMemberId -5152024-09-19✓邮箱获取所有邮件组成员 +5152024-09-24✓邮箱获取所有邮件组成员 GetMailV1MailgroupsByMailgroupIdMembers -5162024-09-19✓邮箱批量创建邮件组成员 +5162024-09-24✓邮箱批量创建邮件组成员 PostMailV1MailgroupsByMailgroupIdMembersBatchCreate -5172024-09-19✓邮箱批量删除邮件组成员 +5172024-09-24✓邮箱批量删除邮件组成员 DeleteMailV1MailgroupsByMailgroupIdMembersBatchDelete -5182024-09-19✓邮箱创建邮件组别名 +5182024-09-24✓邮箱创建邮件组别名 PostMailV1MailgroupsByMailgroupIdAliases -5192024-09-19✓邮箱删除邮件组别名 +5192024-09-24✓邮箱删除邮件组别名 DeleteMailV1MailgroupsByMailgroupIdAliasesByAliasId -5202024-09-19✓邮箱获取邮件组所有别名 +5202024-09-24✓邮箱获取邮件组所有别名 GetMailV1MailgroupsByMailgroupIdAliases -5212024-09-19✓邮箱创建邮件组权限成员 +5212024-09-24✓邮箱创建邮件组权限成员 PostMailV1MailgroupsByMailgroupIdPermissionMembers -5222024-09-19✓邮箱删除邮件组权限成员 +5222024-09-24✓邮箱删除邮件组权限成员 DeleteMailV1MailgroupsByMailgroupIdPermissionMembersByPermissionMemberId -5232024-09-19✓邮箱获取邮件组权限成员 +5232024-09-24✓邮箱获取邮件组权限成员 GetMailV1MailgroupsByMailgroupIdPermissionMembersByPermissionMemberId 5242024-07-05✓通讯录获取单个职级信息 GetContactV3JobLevelsByJobLevelId -5252024-09-19✓邮箱批量获取邮件组权限成员 +5252024-09-24✓邮箱批量获取邮件组权限成员 GetMailV1MailgroupsByMailgroupIdPermissionMembers -5262024-09-19✓邮箱批量创建邮件组权限成员 +5262024-09-24✓邮箱批量创建邮件组权限成员 PostMailV1MailgroupsByMailgroupIdPermissionMembersBatchCreate -5272024-09-19✓邮箱批量删除邮件组权限成员 +5272024-09-24✓邮箱批量删除邮件组权限成员 DeleteMailV1MailgroupsByMailgroupIdPermissionMembersBatchDelete -5282024-09-19✓邮箱创建公共邮箱 +5282024-09-24✓邮箱创建公共邮箱 PostMailV1PublicMailboxes -5292024-09-19✓邮箱修改公共邮箱部分信息 +5292024-09-24✓邮箱修改公共邮箱部分信息 PatchMailV1PublicMailboxesByPublicMailboxId -5302024-09-19✓邮箱修改公共邮箱全部信息 +5302024-09-24✓邮箱修改公共邮箱全部信息 PutMailV1PublicMailboxesByPublicMailboxId -5312024-09-19✓邮箱查询指定公共邮箱 +5312024-09-24✓邮箱查询指定公共邮箱 GetMailV1PublicMailboxesByPublicMailboxId -5322024-09-19✓邮箱查询所有公共邮箱 +5322024-09-24✓邮箱查询所有公共邮箱 GetMailV1PublicMailboxes -5332024-09-19✓邮箱永久删除公共邮箱 +5332024-09-24✓邮箱永久删除公共邮箱 DeleteMailV1PublicMailboxesByPublicMailboxId -5342024-09-19✓邮箱添加公共邮箱成员 +5342024-09-24✓邮箱添加公共邮箱成员 PostMailV1PublicMailboxesByPublicMailboxIdMembers 5352024-07-05✓通讯录获取租户职级列表 GetContactV3JobLevels -5362024-09-19✓邮箱删除公共邮箱单个成员 +5362024-09-24✓邮箱删除公共邮箱单个成员 DeleteMailV1PublicMailboxesByPublicMailboxIdMembersByMemberId -5372024-09-19✓邮箱删除公共邮箱所有成员 +5372024-09-24✓邮箱删除公共邮箱所有成员 PostMailV1PublicMailboxesByPublicMailboxIdMembersClear -5382024-09-19✓邮箱查询指定公共邮箱成员信息 +5382024-09-24✓邮箱查询指定公共邮箱成员信息 GetMailV1PublicMailboxesByPublicMailboxIdMembersByMemberId -5392024-09-19✓邮箱查询所有公共邮箱成员信息 +5392024-09-24✓邮箱查询所有公共邮箱成员信息 GetMailV1PublicMailboxesByPublicMailboxIdMembers -5402024-09-19✓邮箱批量添加公共邮箱成员 +5402024-09-24✓邮箱批量添加公共邮箱成员 PostMailV1PublicMailboxesByPublicMailboxIdMembersBatchCreate -5412024-09-19✓邮箱批量删除公共邮箱成员 +5412024-09-24✓邮箱批量删除公共邮箱成员 DeleteMailV1PublicMailboxesByPublicMailboxIdMembersBatchDelete -5422024-09-19✓邮箱创建公共邮箱别名 +5422024-09-24✓邮箱创建公共邮箱别名 PostMailV1PublicMailboxesByPublicMailboxIdAliases -5432024-09-19✓邮箱删除公共邮箱别名 +5432024-09-24✓邮箱删除公共邮箱别名 DeleteMailV1PublicMailboxesByPublicMailboxIdAliasesByAliasId -5442024-09-19✓邮箱查询公共邮箱的所有别名 +5442024-09-24✓邮箱查询公共邮箱的所有别名 GetMailV1PublicMailboxesByPublicMailboxIdAliases -5452024-09-19✓邮箱从回收站删除用户邮箱地址 +5452024-09-24✓邮箱从回收站删除用户邮箱地址 DeleteMailV1UserMailboxesByUserMailboxId 5462024-07-05✓通讯录创建序列 PostContactV3JobFamilies -5472024-09-19✓邮箱创建用户邮箱别名 +5472024-09-24✓邮箱创建用户邮箱别名 PostMailV1UserMailboxesByUserMailboxIdAliases -5482024-09-19✓邮箱删除用户邮箱别名 +5482024-09-24✓邮箱删除用户邮箱别名 DeleteMailV1UserMailboxesByUserMailboxIdAliasesByAliasId -5492024-09-19✓邮箱获取用户邮箱所有别名 +5492024-09-24✓邮箱获取用户邮箱所有别名 GetMailV1UserMailboxesByUserMailboxIdAliases -5502024-09-19✓邮箱查询邮箱地址状态 +5502024-09-24✓邮箱查询邮箱地址状态 PostMailV1UsersQuery 5512022-03-15✓应用信息校验应用管理员 GetApplicationV3IsUserAdmin @@ -1309,17 +1309,17 @@ GetCorehrV1EmployeeTypesByEmployeeTypeId 6552024-02-06✓飞书人事批量查询人员类型 GetCorehrV1EmployeeTypes -6562024-02-06✓飞书人事创建国家证件类型 +6562024-09-23✓飞书人事创建国家证件类型 PostCorehrV1NationalIdTypes 6572024-08-30✓消息与群组回复消息 PostImV1MessagesByMessageIdReply -6582024-02-06✓飞书人事删除国家证件类型 +6582024-09-23✓飞书人事删除国家证件类型 DeleteCorehrV1NationalIdTypesByNationalIdTypeId -6592024-02-06✓飞书人事更新国家证件类型 +6592024-09-23✓飞书人事更新国家证件类型 PatchCorehrV1NationalIdTypesByNationalIdTypeId -6602024-02-06✓飞书人事查询单个国家证件类型 +6602024-09-23✓飞书人事查询单个国家证件类型 GetCorehrV1NationalIdTypesByNationalIdTypeId -6612024-02-06✓飞书人事批量查询国家证件类型 +6612024-09-23✓飞书人事批量查询国家证件类型 GetCorehrV1NationalIdTypes 6622024-02-06✓飞书人事创建工时制度 PostCorehrV1WorkingHoursTypes @@ -1343,9 +1343,9 @@ PostCorehrV2EmployeesBatchGet 6722024-09-19✓飞书人事(企业版)搜索员工信息 PostCorehrV2EmployeesSearch -6732024-08-13✓飞书人事创建雇佣信息 +6732024-09-24✓飞书人事创建雇佣信息 PostCorehrV1Employments -6742024-07-22✓飞书人事更新雇佣信息 +6742024-09-24✓飞书人事更新雇佣信息 PatchCorehrV1EmploymentsByEmploymentId 6752024-02-06✓飞书人事删除雇佣信息 DeleteCorehrV1EmploymentsByEmploymentId @@ -2053,7 +2053,7 @@ GetCalendarV4CalendarsByCalendarIdEventsInstanceView 10272024-08-28✓招聘获取职位列表 GetHireV1Jobs -10282024-09-19✓多维表格查询记录 +10282024-09-24✓多维表格查询记录 PostBitableV1AppsByAppTokenTablesByTableIdRecordsSearch 10292024-01-26✓应用信息启停用应用 PutApplicationV6ApplicationsByAppIdManagement @@ -2095,7 +2095,7 @@ GetImV2BizEntityTagRelation 10482024-04-09✓OKR查询复盘信息 GetOkrV1ReviewsQuery -10492024-07-12✓飞书人事(企业版)搜索待入职信息 +10492024-09-24✓飞书人事(企业版)搜索待入职信息 PostCorehrV2PreHiresSearch 10502024-08-23✓消息与群组更新 URL 预览 PostImV2UrlPreviewsBatchUpdate @@ -2135,7 +2135,7 @@ PostCorehrV2DepartmentsQueryMultiTimeline 10682024-05-29删除云文档搜索文件 PostSuiteDocsApiSearchObject -10692024-08-26✓飞书人事(企业版)添加人员 +10692024-09-24✓飞书人事(企业版)添加人员 PostCorehrV2Employees 10702024-08-28✓招聘获取角色详情 GetHireV1RolesByRoleId @@ -2391,4 +2391,34 @@ PostCorehrV2WorkforcePlanDetailsBatch 11962024-09-13✓飞书人事(企业版)查询部门变更记录 GetCorehrV2DepartmentsQueryRecentChange +11972024-09-23新增飞书低代码平台删除记录 +DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsById +11982024-09-23新增飞书低代码平台新建记录 +PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecords +11992024-09-23新增飞书低代码平台批量编辑记录 +PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdate +12002024-09-23新增飞书低代码平台批量新建记录 +PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreate +12012024-09-23新增飞书低代码平台执行 OQL +PostApaasV1ApplicationsByNamespaceObjectsOqlQuery +12022024-09-23新增飞书低代码平台获取记录详情 +PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQuery +12032024-09-23新增飞书低代码平台编辑记录 +PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsById +12042024-09-23新增飞书低代码平台搜索记录 +PostApaasV1ApplicationsByNamespaceObjectsSearch +12052024-09-23新增飞书低代码平台查询记录列表 +PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQuery +12062024-09-23新增飞书低代码平台批量删除记录 +DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDelete +12072024-09-23新增飞书低代码平台查询角色成员信息 +GetApaasV1ApplicationsByNamespaceRolesByRoleApiNameMember +12082024-09-23新增飞书低代码平台批量删除记录权限用户授权 +PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchRemoveAuthorization +12092024-09-23新增飞书低代码平台批量删除角色成员授权 +PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchRemoveAuthorization +12102024-09-23新增飞书低代码平台批量创建记录权限用户授权 +PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchCreateAuthorization +12112024-09-23新增飞书低代码平台批量创建角色成员授权 +PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchCreateAuthorization diff --git a/UserAccessList.md b/UserAccessList.md index 7b6bc864..92241ecd 100644 --- a/UserAccessList.md +++ b/UserAccessList.md @@ -707,7 +707,7 @@ PostTaskV2CustomFieldsByCustomFieldGuidOptions 3542023-09-11✓任务更新自定义字段选项 PatchTaskV2CustomFieldsByCustomFieldGuidOptionsByOptionGuid -3552024-09-19✓邮箱查询所有公共邮箱 +3552024-09-24✓邮箱查询所有公共邮箱 GetMailV1PublicMailboxes 3562023-11-27✓搜索搜索消息 PostSearchV2Message @@ -987,7 +987,7 @@ DeleteAcsV1VisitorsByVisitorId 4942024-07-16✓日历查询日程视图 GetCalendarV4CalendarsByCalendarIdEventsInstanceView -4952024-09-19✓多维表格查询记录 +4952024-09-24✓多维表格查询记录 PostBitableV1AppsByAppTokenTablesByTableIdRecordsSearch 4962024-02-27✓画板获取所有节点 GetBoardV1WhiteboardsByWhiteboardIdNodes @@ -1015,7 +1015,7 @@ PostAilyV1Sessions 5082024-08-22✓薪酬管理批量查询员工薪资档案 PostCompensationV1ArchivesQuery -5092024-08-26✓飞书人事(企业版)添加人员 +5092024-09-24✓飞书人事(企业版)添加人员 PostCorehrV2Employees 5102024-07-10删除绩效获取指标库信息 PostPerformanceV2MetricLibsQuery @@ -1043,7 +1043,7 @@ GetWikiV2SpacesBySpaceIdMembers 5222024-08-02✓画板获取画板缩略图片 GetBoardV1WhiteboardsByWhiteboardIdDownloadAsImage -5232024-09-19✓邮箱发送邮件 +5232024-09-24✓邮箱发送邮件 PostMailV1UserMailboxesByUserMailboxIdMessagesSend 5242024-08-30✓公司圈查询帖子信息 GetMomentsV1PostsByPostId @@ -1051,4 +1051,8 @@ GetCorehrV1LeavesCalendarByScope 5262024-09-12✓飞书人事获取工作日历日期详情 PostCorehrV1LeavesWorkCalendarDate +5272024-09-24新增飞书低代码平台查询审计日志列表 +GetApaasV1ApplicationsByNamespaceAuditLogAuditLogList +5282024-09-24新增飞书低代码平台查询审计日志详情 +GetApaasV1ApplicationsByNamespaceAuditLog diff --git a/src/AppEngine/DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteBodyDto.cs b/src/AppEngine/DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteBodyDto.cs new file mode 100644 index 00000000..8507c1ec --- /dev/null +++ b/src/AppEngine/DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteBodyDto.cs @@ -0,0 +1,32 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量删除记录 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量删除记录 请求体 +/// 一次删除多条对象中的记录 +/// 接口ID:7384730094873083932 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_delete +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fbatch_delete +/// +public record DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteBodyDto +{ + /// + /// 记录 ID 列表,操作记录数上限为 500 + /// 必填:是 + /// 最大长度:500 + /// 最小长度:0 + /// + [JsonPropertyName("ids")] + public string[] Ids { get; set; } = Array.Empty(); +} diff --git a/src/AppEngine/DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteResponseDto.cs b/src/AppEngine/DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteResponseDto.cs new file mode 100644 index 00000000..de167d89 --- /dev/null +++ b/src/AppEngine/DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteResponseDto.cs @@ -0,0 +1,108 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量删除记录 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量删除记录 响应体 +/// 一次删除多条对象中的记录 +/// 接口ID:7384730094873083932 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_delete +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fbatch_delete +/// +public record DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteResponseDto +{ + /// + /// 处理结果 + /// 必填:否 + /// + [JsonPropertyName("items")] + public RecordResult[]? Items { get; set; } + + /// + /// 处理结果 + /// + public record RecordResult + { + /// + /// 是否成功 + /// 必填:是 + /// 示例值:true + /// + [JsonPropertyName("success")] + public bool Success { get; set; } + + /// + /// 记录 ID + /// 必填:否 + /// 示例值:1801464965461024 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// 权限错误时的细分 code + /// 必填:否 + /// 最大长度:512 + /// 最小长度:0 + /// + [JsonPropertyName("errors")] + public RecordResultError[]? Errors { get; set; } + + /// + /// 权限错误时的细分 code + /// + public record RecordResultError + { + /// + /// 错误码 + /// 必填:是 + /// 示例值:0 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("code")] + public string Code { get; set; } = string.Empty; + + /// + /// success + /// 必填:是 + /// 示例值:success + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("message")] + public string Message { get; set; } = string.Empty; + + /// + /// 权限错误时的细分 code + /// 必填:否 + /// 示例值:k_ec_00001 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("sub_code")] + public string? SubCode { get; set; } + + /// + /// 权限错误时的涉及的字段 APIID 集合 + /// 必填:否 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("fields")] + public string[]? Fields { get; set; } + } + } +} diff --git a/src/AppEngine/GetApaasV1ApplicationsByNamespaceAuditLogAuditLogListResponseDto.cs b/src/AppEngine/GetApaasV1ApplicationsByNamespaceAuditLogAuditLogListResponseDto.cs new file mode 100644 index 00000000..53e18182 --- /dev/null +++ b/src/AppEngine/GetApaasV1ApplicationsByNamespaceAuditLogAuditLogListResponseDto.cs @@ -0,0 +1,461 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 查询审计日志列表 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 查询审计日志列表 响应体 +/// 根据搜索/筛选条件,查询审计日志列表 +/// 接口ID:7418119603744391171 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-audit_log/audit_log_list +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-audit_log%2faudit_log_list +/// +public record GetApaasV1ApplicationsByNamespaceAuditLogAuditLogListResponseDto +{ + /// + /// 审计日志查询结果列表详情信息 + /// 必填:否 + /// + [JsonPropertyName("items")] + public AuditLogEsField[]? Items { get; set; } + + /// + /// 审计日志查询结果列表详情信息 + /// + public record AuditLogEsField + { + /// + /// 审计日志ID + /// 必填:否 + /// 示例值:7376574450886557740 + /// 最大长度:30 + /// 最小长度:0 + /// + [JsonPropertyName("log_id")] + public string? LogId { get; set; } + + /// + /// 操作时间 + /// 必填:否 + /// 示例值:1723634726874 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("op_time")] + public string? OpTime { get; set; } + + /// + /// 日志类型: + /// - 10000: 全部日志 + /// - 10001: 企业管理日志 + /// - 10002: 登录日志 + /// - 10003: 应用管理日志 + /// 必填:否 + /// 示例值:10000 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("log_type")] + public string? LogType { get; set; } + + /// + /// 操作人 + /// 必填:否 + /// + [JsonPropertyName("operator")] + public LookupWithAvatar? Operator { get; set; } + + /// + /// 操作人 + /// + public record LookupWithAvatar + { + /// + /// 用户ID + /// 必填:否 + /// 示例值:1768491480010814 + /// + [JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// 用户名称 + /// 必填:否 + /// 示例值:郭xx + /// + [JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// 租户ID + /// 必填:否 + /// 示例值:79888 + /// + [JsonPropertyName("tenant_id")] + public string? TenantId { get; set; } + + /// + /// 用户邮箱 + /// 必填:否 + /// 示例值:gxxx@bytedance.com + /// + [JsonPropertyName("email")] + public string? Email { get; set; } + } + + /// + /// 是否为外部用户,true代表是外部用户 + /// 必填:否 + /// 示例值:true + /// + [JsonPropertyName("outsider")] + public bool? Outsider { get; set; } + + /// + /// 登录类型: + /// -11001: 飞书登录 + /// -11003: 账号密码登录 + /// 必填:否 + /// 示例值:11001 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("login_type")] + public string? LoginType { get; set; } + + /// + /// 飞书租户ID + /// 必填:否 + /// 示例值:123 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("lark_tenant_id")] + public string? LarkTenantId { get; set; } + + /// + /// apaas租户ID + /// 必填:否 + /// 示例值:23333 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("apaas_tenant_id")] + public string? ApaasTenantId { get; set; } + + /// + /// 用户地理信息 + /// 必填:否 + /// 示例值:America/Chicago + /// 最大长度:10000 + /// 最小长度:0 + /// + [JsonPropertyName("user_geo")] + public string? UserGeo { get; set; } + + /// + /// 客户端IP + /// 必填:否 + /// 示例值:192.168.1.1 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("client_ip")] + public string? ClientIp { get; set; } + + /// + /// IP位置 + /// 必填:否 + /// 示例值:中国北京 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("ip_loc")] + public string? IpLoc { get; set; } + + /// + /// IP提供商 + /// 必填:否 + /// 示例值:ISP_com + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("ip_provider")] + public string? IpProvider { get; set; } + + /// + /// 引用页面 + /// 必填:否 + /// 示例值:https://example.com/referer + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("referer")] + public string? Referer { get; set; } + + /// + /// 源页面 + /// 必填:否 + /// 示例值:https://example.com/origin + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("origin")] + public string? Origin { get; set; } + + /// + /// 路由路径 + /// 必填:否 + /// 示例值:/api/xxx + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("api_path")] + public string? ApiPath { get; set; } + + /// + /// 网关路径 + /// 必填:否 + /// 示例值:/api/xxx + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("full_path")] + public string? FullPath { get; set; } + + /// + /// 用户代理 + /// 必填:否 + /// 示例值:Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 + /// 最大长度:10000 + /// 最小长度:0 + /// + [JsonPropertyName("user_agent")] + public string? UserAgent { get; set; } + + /// + /// 设备ID + /// 必填:否 + /// 示例值:device_1234 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("device_id")] + public string? DeviceId { get; set; } + + /// + /// web端设备ID + /// 必填:否 + /// 示例值:webDevice_1234 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("web_device_id")] + public string? WebDeviceId { get; set; } + + /// + /// 终端类型: + /// - 13002: PC类型 + /// - 13003: Web类型 + /// 必填:否 + /// 示例值:2 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("terminal_type")] + public string? TerminalType { get; set; } + + /// + /// 系统类型: + /// - 14002: window + /// - 14001: 未知 + /// 必填:否 + /// 示例值:14002 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("os_type")] + public string? OsType { get; set; } + + /// + /// 系统版本 + /// 必填:否 + /// 示例值:14.6 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("os_version")] + public string? OsVersion { get; set; } + + /// + /// 功能模块 + /// 必填:否 + /// 示例值:17001 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("module")] + public string? Module { get; set; } + + /// + /// 数据对象 + /// 必填:否 + /// 示例值:object_api_aaa + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("data_object")] + public string? DataObject { get; set; } + + /// + /// 审计域: + /// - 15001: 企业管理后台 + /// - 15002: 应用管理后台 + /// - 15003: 应用开发平台 + /// 必填:否 + /// 示例值:15001 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("audit_scope")] + public string? AuditScope { get; set; } + + /// + /// 租户ID + /// 必填:否 + /// 示例值:23335 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("tenant_id")] + public string? TenantId { get; set; } + + /// + /// 应用唯一标识 + /// 必填:否 + /// 示例值:package_aacc + /// 最大长度:100000 + /// 最小长度:0 + /// + [JsonPropertyName("namespace")] + public string? Namespace { get; set; } + + /// + /// 环境类型: + /// - 16001:沙箱环境 + /// - 16003:线上环境 + /// 必填:否 + /// 示例值:16003 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("env_type")] + public string? EnvType { get; set; } + + /// + /// 事件类型 + /// 必填:否 + /// 示例值:19001 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("op_type")] + public string? OpType { get; set; } + + /// + /// 操作详情内容 + /// 必填:否 + /// 示例值:{ "2052":"管理员和开发者自动获取所有使用权限" } + /// + [JsonPropertyName("op_detail")] + public Dictionary? OpDetail { get; set; } + + /// + /// 操作源: + /// - 20001:前端 + /// - 20004:openapi + /// 必填:否 + /// 示例值:20001 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("op_source")] + public string? OpSource { get; set; } + + /// + /// 操作状态: + /// - 18001:成功 + /// - 18002:失败 + /// 必填:否 + /// 示例值:18001 + /// 最大长度:20000 + /// 最小长度:0 + /// + [JsonPropertyName("status")] + public string? Status { get; set; } + + /// + /// 失败原因 + /// 必填:否 + /// 示例值:{ "2052": "中文失败原因内容" } + /// + [JsonPropertyName("failed_reason_i18n")] + public Dictionary? FailedReasonI18n { get; set; } + + /// + /// 数据变化(旧值和新值) + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("data_changes")] + public string[]? DataChanges { get; set; } + + /// + /// 应用名称 + /// 必填:否 + /// 示例值:{ "2052": "应用示例" } + /// + [JsonPropertyName("app_name")] + public Dictionary? AppName { get; set; } + + /// + /// 应用版本号 + /// 必填:否 + /// 示例值:v1.2.3 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("keyword_field_app_version")] + public string? KeywordFieldAppVersion { get; set; } + + /// + /// 审计日志事件子模块 + /// 必填:否 + /// 示例值:223 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("keyword_field_functional_sub_module")] + public string? KeywordFieldFunctionalSubModule { get; set; } + } + + /// + /// 审计日志查询总条数 + /// 必填:否 + /// 示例值:10 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("total")] + public string? Total { get; set; } +} diff --git a/src/AppEngine/GetApaasV1ApplicationsByNamespaceAuditLogResponseDto.cs b/src/AppEngine/GetApaasV1ApplicationsByNamespaceAuditLogResponseDto.cs new file mode 100644 index 00000000..27d52a51 --- /dev/null +++ b/src/AppEngine/GetApaasV1ApplicationsByNamespaceAuditLogResponseDto.cs @@ -0,0 +1,442 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 查询审计日志详情 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 查询审计日志详情 响应体 +/// 根据日志 ID 查询审计日志详情 +/// 接口ID:7418119603744407555 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-audit_log/get +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-audit_log%2fget +/// +public record GetApaasV1ApplicationsByNamespaceAuditLogResponseDto +{ + /// + /// 审计日志详情信息 + /// 必填:否 + /// + [JsonPropertyName("data")] + public AuditLogDetail? Data { get; set; } + + /// + /// 审计日志详情信息 + /// + public record AuditLogDetail + { + /// + /// 审计日志ID + /// 必填:否 + /// 示例值:7376574450886557740 + /// 最大长度:30 + /// 最小长度:10 + /// + [JsonPropertyName("log_id")] + public string? LogId { get; set; } + + /// + /// 日志基础信息 + /// 必填:否 + /// + [JsonPropertyName("basic_info")] + public AuditLogDetailBasicInfo? BasicInfo { get; set; } + + /// + /// 日志基础信息 + /// + public record AuditLogDetailBasicInfo + { + /// + /// 日志类型: + /// - 10000: 全部日志 + /// - 10001: 企业管理日志 + /// - 10002: 登录日志 + /// - 10003: 应用管理日志 + /// 必填:否 + /// 示例值:10000 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("log_type")] + public string? LogType { get; set; } + + /// + /// 审计域: + /// - 15001:企业管理后台 + /// - 15002:应用管理后台 + /// - 15003:应用开发平台 + /// 必填:否 + /// 示例值:15001 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("audit_scope")] + public string? AuditScope { get; set; } + + /// + /// 环境类型: + /// - 16001:沙箱环境 + /// - 16003:线上环境 + /// 必填:否 + /// 示例值:16003 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("env_type")] + public string? EnvType { get; set; } + + /// + /// 应用id + /// 必填:否 + /// 示例值:app123 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 审计日志功能模块 + /// 必填:否 + /// 示例值:17001 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("module")] + public string? Module { get; set; } + + /// + /// 事件类型 + /// 必填:否 + /// 示例值:19001 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("op_type")] + public string? OpType { get; set; } + + /// + /// 应用名称 + /// 必填:否 + /// 示例值:{"2052":"应用名称"} + /// + [JsonPropertyName("app_name")] + public Dictionary? AppName { get; set; } + } + + /// + /// 审计日志操作信息 + /// 必填:否 + /// + [JsonPropertyName("op_info")] + public AuditLogOpInfo? OpInfo { get; set; } + + /// + /// 审计日志操作信息 + /// + public record AuditLogOpInfo + { + /// + /// 操作人 + /// 必填:否 + /// + [JsonPropertyName("operator")] + public LookupWithAvatar? Operator { get; set; } + + /// + /// 操作人 + /// + public record LookupWithAvatar + { + /// + /// 用户ID + /// 必填:否 + /// 示例值:1768491480010814 + /// + [JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// 用户名称 + /// 必填:否 + /// 示例值:郭x + /// + [JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// 租户ID + /// 必填:否 + /// 示例值:72222 + /// + [JsonPropertyName("tenant_id")] + public string? TenantId { get; set; } + + /// + /// 用户邮箱 + /// 必填:否 + /// 示例值:gxxxxx.jim@bytedance.com + /// + [JsonPropertyName("email")] + public string? Email { get; set; } + } + + /// + /// 是否为外部用户,true代表是外部用户 + /// 必填:否 + /// 示例值:true + /// + [JsonPropertyName("outsider")] + public bool? Outsider { get; set; } + + /// + /// 操作详情内容 + /// 必填:否 + /// 示例值:{"language_code": 2052, "text": "内部用户 <a id=1645514825206 type=\"user\">赵四</a> 登录了平台"} + /// + [JsonPropertyName("op_detail")] + public Dictionary? OpDetail { get; set; } + + /// + /// 操作状态:18001-成功;18002-失败 + /// 必填:否 + /// 示例值:18001 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("status")] + public string? Status { get; set; } + + /// + /// 失败原因 + /// 必填:否 + /// 示例值:登录失败 + /// 最大长度:10000 + /// 最小长度:0 + /// + [JsonPropertyName("failed_reason")] + public string? FailedReason { get; set; } + + /// + /// 多语类型失败原因 + /// 必填:否 + /// 示例值:{"2052":"失败原因"} + /// + [JsonPropertyName("failed_reason_i18n")] + public Dictionary? FailedReasonI18n { get; set; } + + /// + /// 操作时间 + /// 必填:否 + /// 示例值:1723634726874 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("op_time")] + public string? OpTime { get; set; } + + /// + /// 数据对象 + /// 必填:否 + /// 示例值:object_api_aaa + /// 最大长度:100000 + /// 最小长度:0 + /// + [JsonPropertyName("data_object")] + public string? DataObject { get; set; } + + /// + /// 操作源:20001-前端;20004-openapi + /// 必填:否 + /// 示例值:20001 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("op_source")] + public string? OpSource { get; set; } + + /// + /// 数据变化(旧值和新值) + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("data_changes")] + public string[]? DataChanges { get; set; } + } + + /// + /// 登录类型信息 + /// 必填:否 + /// + [JsonPropertyName("login_info")] + public AuditLogLoginInfo? LoginInfo { get; set; } + + /// + /// 登录类型信息 + /// + public record AuditLogLoginInfo + { + /// + /// 登录类型: + /// - 11001: 飞书登录 + /// - 11003: 账号密码登录 + /// 必填:否 + /// 示例值:11001 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("login_type")] + public string? LoginType { get; set; } + } + + /// + /// 设备信息 + /// 必填:否 + /// + [JsonPropertyName("device_info")] + public AuditLogDeviceInfo? DeviceInfo { get; set; } + + /// + /// 设备信息 + /// + public record AuditLogDeviceInfo + { + /// + /// 设备ID + /// 必填:否 + /// 示例值:device_1234 + /// 最大长度:1000000 + /// 最小长度:0 + /// + [JsonPropertyName("device_id")] + public string? DeviceId { get; set; } + + /// + /// web端设备ID + /// 必填:否 + /// 示例值:webDevice_1234 + /// 最大长度:10000 + /// 最小长度:0 + /// + [JsonPropertyName("web_device_id")] + public string? WebDeviceId { get; set; } + + /// + /// 终端类型: + /// - 13002: PC类型 + /// - 13003: Web类型 + /// 必填:否 + /// 示例值:2 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("terminal_type")] + public string? TerminalType { get; set; } + + /// + /// 系统类型: + /// - 14002: window + /// - 14001: 未知 + /// 必填:否 + /// 示例值:14002 + /// 最大长度:100 + /// 最小长度:0 + /// + [JsonPropertyName("os_type")] + public string? OsType { get; set; } + + /// + /// 系统版本 + /// 必填:否 + /// 示例值:14.6 + /// 最大长度:100000 + /// 最小长度:0 + /// + [JsonPropertyName("os_version")] + public string? OsVersion { get; set; } + } + + /// + /// 网络信息 + /// 必填:否 + /// + [JsonPropertyName("net_info")] + public AuditLogNetInfo? NetInfo { get; set; } + + /// + /// 网络信息 + /// + public record AuditLogNetInfo + { + /// + /// 客户端IP + /// 必填:否 + /// 示例值:192.168.1.1 + /// 最大长度:10000 + /// 最小长度:0 + /// + [JsonPropertyName("client_ip")] + public string? ClientIp { get; set; } + + /// + /// IP位置 + /// 必填:否 + /// 示例值:中国北京 + /// 最大长度:10000 + /// 最小长度:0 + /// + [JsonPropertyName("ip_loc")] + public string? IpLoc { get; set; } + + /// + /// IP提供商 + /// 必填:否 + /// 示例值:ISP_com + /// 最大长度:10000 + /// 最小长度:0 + /// + [JsonPropertyName("ip_provider")] + public string? IpProvider { get; set; } + + /// + /// 引用页面 + /// 必填:否 + /// 示例值:https://example.com/referer + /// 最大长度:100000 + /// 最小长度:0 + /// + [JsonPropertyName("referer")] + public string? Referer { get; set; } + + /// + /// 源页面 + /// 必填:否 + /// 示例值:https://example.com/origin + /// 最大长度:10000 + /// 最小长度:0 + /// + [JsonPropertyName("origin")] + public string? Origin { get; set; } + + /// + /// 用户代理 + /// 必填:否 + /// 示例值:Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 + /// 最大长度:10000 + /// 最小长度:0 + /// + [JsonPropertyName("user_agent")] + public string? UserAgent { get; set; } + } + } +} diff --git a/src/AppEngine/GetApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberResponseDto.cs b/src/AppEngine/GetApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberResponseDto.cs new file mode 100644 index 00000000..4e0dc9ca --- /dev/null +++ b/src/AppEngine/GetApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberResponseDto.cs @@ -0,0 +1,249 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 查询角色成员信息 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 查询角色成员信息 响应体 +/// 获取角色成员详情 +/// 接口ID:7417675812785455107 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-role-member/get +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-role-member%2fget +/// +public record GetApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberResponseDto +{ + /// + /// 角色成员 + /// 必填:否 + /// + [JsonPropertyName("role_member")] + public GetApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberResponseDtoRoleMember? RoleMember { get; set; } + + /// + /// 角色成员 + /// + public record GetApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberResponseDtoRoleMember + { + /// + /// 角色唯一 ID,系统自动生成 + /// 必填:否 + /// 示例值:role_api_id + /// 最大长度:255 + /// 最小长度:0 + /// + [JsonPropertyName("role_api_id")] + public string? RoleApiId { get; set; } + + /// + /// 角色 API 名称 + /// 必填:否 + /// 示例值:adminRole + /// 最大长度:255 + /// 最小长度:0 + /// + [JsonPropertyName("role_api_name")] + public string? RoleApiName { get; set; } + + /// + /// 授权用户 ID 列表 + /// 必填:否 + /// 最大长度:2000 + /// 最小长度:0 + /// + [JsonPropertyName("users")] + public string[]? Users { get; set; } + + /// + /// 授权部门 ID 列表 + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("departments")] + public string[]? Departments { get; set; } + + /// + /// 自定义授权用户规则 + /// 必填:否 + /// + [JsonPropertyName("user_filter")] + public Criterion? UserFilter { get; set; } + + /// + /// 自定义授权用户规则 + /// + public record Criterion + { + /// + /// 查询条件 + /// 必填:否 + /// 最大长度:10 + /// 最小长度:0 + /// + [JsonPropertyName("conditions")] + public Condition[]? Conditions { get; set; } + + /// + /// 查询条件 + /// + public record Condition + { + /// + /// 序号 + /// 必填:否 + /// 示例值:1 + /// + [JsonPropertyName("index")] + public string? Index { get; set; } + + /// + /// 左值 + /// 必填:否 + /// + [JsonPropertyName("left")] + public ConditionValue? Left { get; set; } + + /// + /// 左值 + /// + public record ConditionValue + { + /// + /// 类型 + /// 必填:否 + /// 示例值:metadataVariable + /// + [JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// 设置值 + /// 必填:否 + /// 示例值:{\"fieldPath\":[{\"fieldApiName\": \"_id\",\"objectApiName\": \"_user\"}]} + /// + [JsonPropertyName("settings")] + public string? Settings { get; set; } + + /// + /// 左值/右值的展示名称 + /// 必填:否 + /// 最大长度:255 + /// 最小长度:0 + /// + [JsonPropertyName("display_names")] + public string[]? DisplayNames { get; set; } + } + + /// + /// 右值 + /// 必填:否 + /// + [JsonPropertyName("right")] + public ConditionValue? Right { get; set; } + + /// + /// 操作符 + /// 必填:否 + /// 示例值:equal + /// + [JsonPropertyName("operator")] + public string? Operator { get; set; } + } + + /// + /// 逻辑关系 + /// 必填:否 + /// 示例值:1 and 2 + /// + [JsonPropertyName("logic_expression")] + public string? LogicExpression { get; set; } + } + + /// + /// 授权用户姓名列表,入参 need_display_name = true时返回 + /// 必填:否 + /// 最大长度:2000 + /// 最小长度:0 + /// + [JsonPropertyName("user_display_infos")] + public PermissionNameInfo[]? UserDisplayInfos { get; set; } + + /// + /// 授权用户姓名列表,入参 need_display_name = true时返回 + /// + public record PermissionNameInfo + { + /// + /// id + /// 必填:否 + /// 示例值:1802412778084426 + /// 最大长度:255 + /// 最小长度:0 + /// + [JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// 名称 + /// 必填:否 + /// 示例值:张三 + /// 最大长度:255 + /// 最小长度:0 + /// + [JsonPropertyName("name")] + public string? Name { get; set; } + } + + /// + /// 授权部门名称列表,入参 need_display_name = true时返回 + /// 必填:否 + /// 最大长度:2000 + /// 最小长度:0 + /// + [JsonPropertyName("department_display_infos")] + public PermissionNameInfo[]? DepartmentDisplayInfos { get; set; } + + /// + /// 角色成员模式 + /// 必填:否 + /// 示例值:custom + /// 最大长度:255 + /// 最小长度:0 + /// 可选值: + /// all:全部用户 + /// custom:自定义 + /// + /// + [JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// 更新人 ID + /// 必填:否 + /// 示例值:1802412778084426 + /// 最大长度:255 + /// 最小长度:0 + /// + [JsonPropertyName("updated_by")] + public string? UpdatedBy { get; set; } + + /// + /// 更新时间,单位:毫秒时间戳 + /// 必填:否 + /// 示例值:1702546522477 + /// 最大值:9223372036854775807 + /// 最小值:0 + /// + [JsonPropertyName("updated_at")] + public long? UpdatedAt { get; set; } + } +} diff --git a/src/AppEngine/PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateBodyDto.cs b/src/AppEngine/PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateBodyDto.cs new file mode 100644 index 00000000..e27e4fbe --- /dev/null +++ b/src/AppEngine/PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateBodyDto.cs @@ -0,0 +1,31 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量编辑记录 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量编辑记录 请求体 +/// 一次编辑多条对象中的记录 +/// 接口ID:7384730094872969244 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_update +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fbatch_update +/// +public record PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateBodyDto +{ + /// + /// 记录详情列表,格式为 List<Map<string, ANY>>,操作记录数上限为 500 条 + /// 必填:是 + /// 示例值:[{\"_id\":\"1798681438085228\",\"book_count\":\"5\",\"book_name\":\"name4\"}] + /// + [JsonPropertyName("records")] + public string Records { get; set; } = string.Empty; +} diff --git a/src/AppEngine/PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateResponseDto.cs b/src/AppEngine/PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateResponseDto.cs new file mode 100644 index 00000000..0294c20a --- /dev/null +++ b/src/AppEngine/PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateResponseDto.cs @@ -0,0 +1,108 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量编辑记录 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量编辑记录 响应体 +/// 一次编辑多条对象中的记录 +/// 接口ID:7384730094872969244 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_update +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fbatch_update +/// +public record PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateResponseDto +{ + /// + /// 处理结果 + /// 必填:否 + /// + [JsonPropertyName("items")] + public RecordResult[]? Items { get; set; } + + /// + /// 处理结果 + /// + public record RecordResult + { + /// + /// 是否成功 + /// 必填:是 + /// 示例值:true + /// + [JsonPropertyName("success")] + public bool Success { get; set; } + + /// + /// 记录 ID + /// 必填:否 + /// 示例值:1801464965461024 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// 权限错误时的细分 code + /// 必填:否 + /// 最大长度:512 + /// 最小长度:0 + /// + [JsonPropertyName("errors")] + public RecordResultError[]? Errors { get; set; } + + /// + /// 权限错误时的细分 code + /// + public record RecordResultError + { + /// + /// 错误码 + /// 必填:是 + /// 示例值:0 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("code")] + public string Code { get; set; } = string.Empty; + + /// + /// success + /// 必填:是 + /// 示例值:success + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("message")] + public string Message { get; set; } = string.Empty; + + /// + /// 权限错误时的细分 code + /// 必填:否 + /// 示例值:k_ec_00001 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("sub_code")] + public string? SubCode { get; set; } + + /// + /// 权限错误时的涉及的字段 APIID 集合 + /// 必填:否 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("fields")] + public string[]? Fields { get; set; } + } + } +} diff --git a/src/AppEngine/PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdBodyDto.cs b/src/AppEngine/PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdBodyDto.cs new file mode 100644 index 00000000..6b33b236 --- /dev/null +++ b/src/AppEngine/PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdBodyDto.cs @@ -0,0 +1,32 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 编辑记录 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 编辑记录 请求体 +/// 编辑对象中的指定记录 +/// 接口ID:7384730094873034780 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/patch +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fpatch +/// +public record PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdBodyDto +{ + /// + /// 创建对象使用的数据,键为字段 API 名称,值为字段值,格式可参考字段值格式 + /// 必填:是 + /// 示例值:{\"_id\":\"1798681438085228\",\"book_count\":\"3\",\"book_name\":\"showcase2\"} + /// 最小长度:0 + /// + [JsonPropertyName("record")] + public string Record { get; set; } = string.Empty; +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateBodyDto.cs new file mode 100644 index 00000000..5edf049a --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateBodyDto.cs @@ -0,0 +1,31 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量新建记录 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量新建记录 请求体 +/// 一次新建多条对象中的记录 +/// 接口ID:7384730094872985628 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fbatch_create +/// +public record PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateBodyDto +{ + /// + /// 记录详情列表,格式为 List<Map<string, ANY>>,操作记录数上限为 500 条 + /// 必填:是 + /// 示例值:[{\"book_name\":\"name21\",\"book_count\":2}] + /// + [JsonPropertyName("records")] + public string Records { get; set; } = string.Empty; +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateResponseDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateResponseDto.cs new file mode 100644 index 00000000..a5ab037d --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateResponseDto.cs @@ -0,0 +1,108 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量新建记录 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量新建记录 响应体 +/// 一次新建多条对象中的记录 +/// 接口ID:7384730094872985628 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fbatch_create +/// +public record PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateResponseDto +{ + /// + /// 处理结果 + /// 必填:否 + /// + [JsonPropertyName("items")] + public RecordResult[]? Items { get; set; } + + /// + /// 处理结果 + /// + public record RecordResult + { + /// + /// 是否成功 + /// 必填:是 + /// 示例值:true + /// + [JsonPropertyName("success")] + public bool Success { get; set; } + + /// + /// 记录 ID + /// 必填:否 + /// 示例值:1801464965461024 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// 权限错误时的细分 code + /// 必填:否 + /// 最大长度:512 + /// 最小长度:0 + /// + [JsonPropertyName("errors")] + public RecordResultError[]? Errors { get; set; } + + /// + /// 权限错误时的细分 code + /// + public record RecordResultError + { + /// + /// 错误码 + /// 必填:是 + /// 示例值:0 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("code")] + public string Code { get; set; } = string.Empty; + + /// + /// success + /// 必填:是 + /// 示例值:success + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("message")] + public string Message { get; set; } = string.Empty; + + /// + /// 权限错误时的细分 code + /// 必填:否 + /// 示例值:k_ec_00001 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("sub_code")] + public string? SubCode { get; set; } + + /// + /// 权限错误时的涉及的字段 APIID 集合 + /// 必填:否 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("fields")] + public string[]? Fields { get; set; } + } + } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryBodyDto.cs new file mode 100644 index 00000000..535e8e61 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryBodyDto.cs @@ -0,0 +1,226 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 查询记录列表 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 查询记录列表 请求体 +/// 获取对象中符合指定条件的记录列表 +/// 接口ID:7384730094873067548 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_query +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fbatch_query +/// +public record PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryBodyDto +{ + /// + /// 需要获取的字段,使用字段唯一标识符进行查询,关联字段可使用「.」进行下钻 + /// 必填:是 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("select")] + public string[] Select { get; set; } = Array.Empty(); + + /// + /// 筛选条件,通过 JSON 格式指定条件 + /// 必填:否 + /// + [JsonPropertyName("filter")] + public Criterion? Filter { get; set; } + + /// + /// 筛选条件,通过 JSON 格式指定条件 + /// + public record Criterion + { + /// + /// 查询条件 + /// 必填:否 + /// 最大长度:10 + /// 最小长度:0 + /// + [JsonPropertyName("conditions")] + public Condition[]? Conditions { get; set; } + + /// + /// 查询条件 + /// + public record Condition + { + /// + /// 序号 + /// 必填:否 + /// 示例值:1 + /// + [JsonPropertyName("index")] + public string? Index { get; set; } + + /// + /// 左值 + /// 必填:否 + /// + [JsonPropertyName("left")] + public ConditionValue? Left { get; set; } + + /// + /// 左值 + /// + public record ConditionValue + { + /// + /// 左值类型,只支持 "metadataVariable",表示字段 + /// 必填:否 + /// 示例值:metadataVariable + /// + [JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// 字段具体值,以 JSONString 表示,格式:{"fieldPath":[{"fieldApiName": "字段名","objectApiName": "对象名"}]} + /// 必填:否 + /// 示例值:{\"fieldPath\":[{\"fieldApiName\": \"_id\",\"objectApiName\": \"_user\"}]} + /// + [JsonPropertyName("settings")] + public string? Settings { get; set; } + } + + /// + /// 右值 + /// 必填:否 + /// + [JsonPropertyName("right")] + public ConditionValue? Right { get; set; } + + /// + /// 操作符 + /// 必填:否 + /// 示例值:equal + /// + [JsonPropertyName("operator")] + public string? Operator { get; set; } + } + + /// + /// 逻辑关系 + /// 必填:否 + /// 示例值:1 and 2 + /// + [JsonPropertyName("logic_expression")] + public string? LogicExpression { get; set; } + } + + /// + /// 排序参数,通过 JSON 格式指定条件。其中, field 为参与排序字段,direction 为排序方向,多个条件按其在数组中的顺序生效。 + /// 必填:否 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("order_by")] + public Sort[]? Orderies { get; set; } + + /// + /// 排序参数,通过 JSON 格式指定条件。其中, field 为参与排序字段,direction 为排序方向,多个条件按其在数组中的顺序生效。 + /// + public record Sort + { + /// + /// 字段唯一标识 + /// 必填:是 + /// 示例值:_id + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("field")] + public string Field { get; set; } = string.Empty; + + /// + /// 排序方向,值为 "ASC" 或者 "DESC",代表升序和降序 + /// 必填:是 + /// 示例值:ASC + /// 最大长度:256 + /// 最小长度:0 + /// 可选值: + /// ASC:升序 + /// DESC:降序 + /// + /// + [JsonPropertyName("direction")] + public string Direction { get; set; } = string.Empty; + } + + /// + /// 聚合参数,通过 JSON 格式指定条件。其中, field 为参与聚合的字段。 + /// 必填:否 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("group_by")] + public RecordGroupByItem[]? Groupies { get; set; } + + /// + /// 聚合参数,通过 JSON 格式指定条件。其中, field 为参与聚合的字段。 + /// + public record RecordGroupByItem + { + /// + /// 字段唯一标识 + /// 必填:是 + /// 示例值:_id + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("field")] + public string Field { get; set; } = string.Empty; + } + + /// + /// 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果 + /// 必填:否 + /// 示例值:eVQrYzJBNDNONlk4VFZBZVlSdzlKdFJ4bVVHVExENDNKVHoxaVdiVnViQT0= + /// + [JsonPropertyName("page_token")] + public string? PageToken { get; set; } + + /// + /// 是否使用 page_token 功能。为 True 时将使用 page_token 的值作为起始位置查询记录,并且会在 Response 中返回 next_page_token 。默认为 False 。 + /// 必填:否 + /// 示例值:false + /// + [JsonPropertyName("use_page_token")] + public bool? UsePageToken { get; set; } + + /// + /// 期望服务端返回的记录条数,上限 500 条。不填则取默认值,默认值为 500。 + /// 必填:否 + /// 示例值:100 + /// + [JsonPropertyName("page_size")] + public int? PageSize { get; set; } + + /// + /// 返回记录的偏移量,默认为 0 ,即从查询到的第一条记录开始返回。offset 较大时查询性能较差,可能引起接口响应超时,拉取全部记录时建议使用 ID 游标分页,具体见 ID 游标分页说明 + /// 必填:否 + /// 示例值:0 + /// 最大值:10000000000 + /// 最小值:0 + /// + [JsonPropertyName("offset")] + public int? Offset { get; set; } + + /// + /// 是否返回符合条件的记录总数(Total)。默认为 False,不返回记录总数。 + /// 必填:否 + /// 示例值:true + /// + [JsonPropertyName("need_total_count")] + public bool? NeedTotalCount { get; set; } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryResponseDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryResponseDto.cs new file mode 100644 index 00000000..59c1b7c0 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryResponseDto.cs @@ -0,0 +1,55 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 查询记录列表 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 查询记录列表 响应体 +/// 获取对象中符合指定条件的记录列表 +/// 接口ID:7384730094873067548 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_query +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fbatch_query +/// +public record PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryResponseDto +{ + /// + /// 符合条件的记录列表 + /// 必填:是 + /// 示例值:[{}] + /// + [JsonPropertyName("items")] + public string Items { get; set; } = string.Empty; + + /// + /// 符合条件的记录数 + /// 必填:否 + /// 示例值:0 + /// + [JsonPropertyName("total")] + public int? Total { get; set; } + + /// + /// 下一页的起始位置 Token ,访问至末尾时不返回 + /// 必填:否 + /// 示例值:null + /// + [JsonPropertyName("next_page_token")] + public string? NextPageToken { get; set; } + + /// + /// 是否还有更多项 + /// 必填:否 + /// 示例值:true + /// + [JsonPropertyName("has_more")] + public bool? HasMore { get; set; } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBodyDto.cs new file mode 100644 index 00000000..f326f369 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBodyDto.cs @@ -0,0 +1,32 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 新建记录 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 新建记录 请求体 +/// 在对象中新建记录 +/// 接口ID:7384730094872952860 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fcreate +/// +public record PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBodyDto +{ + /// + /// 创建对象使用的数据,键为字段 API 名称,值为字段值,格式可参考字段值格式 + /// 必填:是 + /// 示例值:{\"book_name\":\"test\"} + /// 最小长度:0 + /// + [JsonPropertyName("record")] + public string Record { get; set; } = string.Empty; +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryBodyDto.cs new file mode 100644 index 00000000..a6dbaf5b --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryBodyDto.cs @@ -0,0 +1,32 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 获取记录详情 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 获取记录详情 请求体 +/// 获取对象中指定的记录详情 +/// 接口ID:7384730094873018396 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/query +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fquery +/// +public record PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryBodyDto +{ + /// + /// 需要获取的字段,使用字段唯一标识符进行查询,关联字段可使用 . 进行下钻 + /// 必填:否 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("select")] + public string[]? Select { get; set; } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryResponseDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryResponseDto.cs new file mode 100644 index 00000000..64b466c5 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryResponseDto.cs @@ -0,0 +1,31 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 获取记录详情 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 获取记录详情 响应体 +/// 获取对象中指定的记录详情 +/// 接口ID:7384730094873018396 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/query +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fquery +/// +public record PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryResponseDto +{ + /// + /// 记录详情,格式为 Map<string, ANY> + /// 必填:是 + /// 示例值:{} + /// + [JsonPropertyName("item")] + public string Item { get; set; } = string.Empty; +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsResponseDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsResponseDto.cs new file mode 100644 index 00000000..726e7151 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsResponseDto.cs @@ -0,0 +1,31 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 新建记录 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 新建记录 响应体 +/// 在对象中新建记录 +/// 接口ID:7384730094872952860 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object-record%2fcreate +/// +public record PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsResponseDto +{ + /// + /// 记录 ID + /// 必填:否 + /// 示例值:1764024447556775 + /// + [JsonPropertyName("id")] + public string? Id { get; set; } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsOqlQueryBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsOqlQueryBodyDto.cs new file mode 100644 index 00000000..1b719897 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsOqlQueryBodyDto.cs @@ -0,0 +1,47 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 执行 OQL 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 执行 OQL 请求体 +/// 在应用内执行 OQL 语句 +/// 接口ID:7384730094873002012 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object/oql_query +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object%2foql_query +/// +public record PostApaasV1ApplicationsByNamespaceObjectsOqlQueryBodyDto +{ + /// + /// 待执行的 OQL 语句 + /// 必填:是 + /// 示例值:SELECT _id, _name FROM _user WHERE _type = $1 AND _accountStatus = $user_status LIMIT 10 + /// + [JsonPropertyName("query")] + public string Query { get; set; } = string.Empty; + + /// + /// 用于指定 OQL 语句中匿名参数的具体值 + /// 必填:否 + /// 示例值:[\"_employee\"] + /// + [JsonPropertyName("args")] + public string? Args { get; set; } + + /// + /// 用于指定 OQL 语句中具名参数的具体值 + /// 必填:否 + /// 示例值:{\"user_status\" : \"_used\"} + /// + [JsonPropertyName("named_args")] + public string? NamedArgs { get; set; } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsOqlQueryResponseDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsOqlQueryResponseDto.cs new file mode 100644 index 00000000..2dbe8a77 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsOqlQueryResponseDto.cs @@ -0,0 +1,38 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 执行 OQL 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 执行 OQL 响应体 +/// 在应用内执行 OQL 语句 +/// 接口ID:7384730094873002012 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object/oql_query +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object%2foql_query +/// +public record PostApaasV1ApplicationsByNamespaceObjectsOqlQueryResponseDto +{ + /// + /// 每一列的标题 + /// 必填:是 + /// + [JsonPropertyName("columns")] + public string[] Columns { get; set; } = Array.Empty(); + + /// + /// 每一行的值,以「key-value」的形式返回 + /// 必填:是 + /// 示例值:[ { \"_name\": \"Sample Text\", \"_id\": 1234567890 } ] + /// + [JsonPropertyName("rows")] + public string Rows { get; set; } = string.Empty; +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsSearchBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsSearchBodyDto.cs new file mode 100644 index 00000000..436c14b7 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsSearchBodyDto.cs @@ -0,0 +1,227 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 搜索记录 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 搜索记录 请求体 +/// 在应用内搜索记录 +/// 接口ID:7384730094873051164 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object/search +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object%2fsearch +/// +public record PostApaasV1ApplicationsByNamespaceObjectsSearchBodyDto +{ + /// + /// 搜索词 + /// 必填:否 + /// 示例值:搜索关键字 + /// + [JsonPropertyName("q")] + public string? Q { get; set; } + + /// + /// 搜索对象范围 + /// 必填:否 + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("search_objects")] + public SearchObjectParam[]? SearchObjects { get; set; } + + /// + /// 搜索对象范围 + /// + public record SearchObjectParam + { + /// + /// 对象 APIName + /// 必填:否 + /// 示例值:_user + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("api_name")] + public string? ApiName { get; set; } + + /// + /// 搜索字段 SearchFields 列表 + /// 必填:否 + /// 最大长度:500 + /// 最小长度:0 + /// + [JsonPropertyName("search_fields")] + public string[]? SearchFields { get; set; } + + /// + /// 召回字段 APIID/APIName 列表 + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("select")] + public string[]? Select { get; set; } + + /// + /// 过滤条件,序列化的结果{"filter": "「标准Criterion」"} + /// 必填:否 + /// + [JsonPropertyName("filter")] + public Criterion? Filter { get; set; } + + /// + /// 过滤条件,序列化的结果{"filter": "「标准Criterion」"} + /// + public record Criterion + { + /// + /// 查询条件 + /// 必填:否 + /// 最大长度:10 + /// 最小长度:0 + /// + [JsonPropertyName("conditions")] + public Condition[]? Conditions { get; set; } + + /// + /// 查询条件 + /// + public record Condition + { + /// + /// 序号 + /// 必填:否 + /// 示例值:1 + /// + [JsonPropertyName("index")] + public string? Index { get; set; } + + /// + /// 左值 + /// 必填:否 + /// + [JsonPropertyName("left")] + public ConditionValue? Left { get; set; } + + /// + /// 左值 + /// + public record ConditionValue + { + /// + /// 左值类型,只支持 "metadataVariable",表示字段 + /// 必填:否 + /// 示例值:metadataVariable + /// + [JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// 字段具体值,以 JSONString 表示,格式:{"fieldPath":[{"fieldApiName": "字段名","objectApiName": "对象名"}]} + /// 必填:否 + /// 示例值:{\"fieldPath\":[{\"fieldApiName\": \"_id\",\"objectApiName\": \"_user\"}]} + /// + [JsonPropertyName("settings")] + public string? Settings { get; set; } + } + + /// + /// 右值 + /// 必填:否 + /// + [JsonPropertyName("right")] + public ConditionValue? Right { get; set; } + + /// + /// 操作符 + /// 必填:否 + /// 示例值:equal + /// + [JsonPropertyName("operator")] + public string? Operator { get; set; } + } + + /// + /// 逻辑关系 + /// 必填:否 + /// 示例值:1 and 2 + /// + [JsonPropertyName("logic_expression")] + public string? LogicExpression { get; set; } + } + + /// + /// 排序条件 + /// 必填:否 + /// + [JsonPropertyName("order_by")] + public OrderCondition? OrderBy { get; set; } + + /// + /// 排序条件 + /// + public record OrderCondition + { + /// + /// 字段名 + /// 必填:否 + /// 示例值:_id + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("field")] + public string? Field { get; set; } + + /// + /// 排序方式 + /// 必填:否 + /// 示例值:asc + /// 最大长度:256 + /// 最小长度:0 + /// 可选值: + /// asc:升序 + /// desc:降序 + /// + /// + [JsonPropertyName("order_type")] + public string? OrderType { get; set; } + } + } + + /// + /// 分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果 + /// 必填:否 + /// 示例值:eyJvYmplY3RzX3BhZ2VfdG9rZW4iOlt7Im9ial9pZCI6MTc2OTI4NzM5M + /// + [JsonPropertyName("page_token")] + public string? PageToken { get; set; } + + /// + /// 返回数量,默认为50,最大不超过2000 + /// 必填:否 + /// 示例值:100 + /// + [JsonPropertyName("page_size")] + public string? PageSize { get; set; } + + /// + /// 返回元数据枚举值 + /// 必填:否 + /// 示例值:Label + /// 可选值: + /// Label:只返回 Label + /// SearchLayout:返回搜索布局信息 + /// + /// + [JsonPropertyName("metadata")] + public string? Metadata { get; set; } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsSearchResponseDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsSearchResponseDto.cs new file mode 100644 index 00000000..0a6391f7 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceObjectsSearchResponseDto.cs @@ -0,0 +1,208 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 搜索记录 响应体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 搜索记录 响应体 +/// 在应用内搜索记录 +/// 接口ID:7384730094873051164 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object/search +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-object%2fsearch +/// +public record PostApaasV1ApplicationsByNamespaceObjectsSearchResponseDto +{ + /// + /// 搜索结果列表 + /// 必填:否 + /// 示例值:[] + /// + [JsonPropertyName("records")] + public string? Records { get; set; } + + /// + /// 是否还有更多项 + /// 必填:否 + /// 示例值:true + /// + [JsonPropertyName("has_more")] + public bool? HasMore { get; set; } + + /// + /// 分页标记,当 HasMore 为 true 时,会同时返回新的 NextPageToken + /// 必填:否 + /// 示例值:eyJvYmplY3RzX3BhZ2VfdG9rZW4iOlt7Im9ial9pZCI6MTc2OTI4NzM5M + /// + [JsonPropertyName("next_page_token")] + public string? NextPageToken { get; set; } + + /// + /// 对象信息 + /// 必填:否 + /// + [JsonPropertyName("objects")] + public ObjectMeta[]? Objects { get; set; } + + /// + /// 对象信息 + /// + public record ObjectMeta + { + /// + /// 对象信息 + /// 必填:否 + /// + [JsonPropertyName("object")] + public ObjectMetaObject? Object { get; set; } + + /// + /// 对象信息 + /// + public record ObjectMetaObject + { + /// + /// 对象 ID + /// 必填:否 + /// 示例值:1764024447556775 + /// 最大值:9223372036854775807 + /// 最小值:0 + /// + [JsonPropertyName("id")] + public int? Id { get; set; } + + /// + /// 对象 API 名称 + /// 必填:否 + /// 示例值:user + /// 最大长度:255 + /// 最小长度:0 + /// + [JsonPropertyName("api_name")] + public string? ApiName { get; set; } + + /// + /// 对象名称 + /// 必填:否 + /// 示例值:{"zh_cn":"text"} + /// + [JsonPropertyName("label")] + public I18nLanguage? Label { get; set; } + + /// + /// 对象配置 + /// 必填:否 + /// + [JsonPropertyName("settings")] + public ObjectSettings? Settings { get; set; } + + /// + /// 对象配置 + /// + public record ObjectSettings + { + /// + /// 展示名称 + /// 必填:否 + /// 示例值:_id + /// 最大长度:512 + /// 最小长度:0 + /// + [JsonPropertyName("display_name")] + public string? DisplayName { get; set; } + + /// + /// 允许搜索字段 + /// 必填:否 + /// 最大长度:512 + /// 最小长度:0 + /// + [JsonPropertyName("allow_search_fields")] + public string[]? AllowSearchFields { get; set; } + + /// + /// 展示字段 + /// 必填:否 + /// + [JsonPropertyName("search_layout")] + public ObjectSearchLayout? SearchLayout { get; set; } + + /// + /// 展示字段 + /// + public record ObjectSearchLayout + { + /// + /// 展示字段 + /// 必填:否 + /// 最大长度:1024 + /// 最小长度:0 + /// + [JsonPropertyName("display_fields")] + public string[]? DisplayFields { get; set; } + } + } + } + + /// + /// 字段信息 + /// 必填:否 + /// 最大长度:512 + /// 最小长度:0 + /// + [JsonPropertyName("fields")] + public ObjectField[]? Fields { get; set; } + + /// + /// 字段信息 + /// + public record ObjectField + { + /// + /// 字段 id + /// 必填:否 + /// 示例值:1764024447525960 + /// 最大值:9223372036854775807 + /// 最小值:0 + /// + [JsonPropertyName("id")] + public int? Id { get; set; } + + /// + /// API 名称 + /// 必填:否 + /// 示例值:user + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("api_name")] + public string? ApiName { get; set; } + + /// + /// 字段类型 + /// 必填:否 + /// 示例值:string + /// 最大长度:256 + /// 最小长度:0 + /// + [JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// 字段名称 + /// 必填:否 + /// 示例值:{"zh_cn":"text"} + /// + [JsonPropertyName("label")] + public I18nLanguage? Label { get; set; } + } + } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchCreateAuthorizationBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchCreateAuthorizationBodyDto.cs new file mode 100644 index 00000000..6af4934d --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchCreateAuthorizationBodyDto.cs @@ -0,0 +1,32 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量创建记录权限用户授权 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量创建记录权限用户授权 请求体 +/// 批量创建记录权限授权 +/// 接口ID:7417675812785504259 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-record_permission-member/batch_create_authorization +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-record_permission-member%2fbatch_create_authorization +/// +public record PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchCreateAuthorizationBodyDto +{ + /// + /// 需要新增的用户 ID 列表,使用飞书低代码平台的用户 ID + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("user_ids")] + public string[]? UserIds { get; set; } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchRemoveAuthorizationBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchRemoveAuthorizationBodyDto.cs new file mode 100644 index 00000000..5e0e3031 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchRemoveAuthorizationBodyDto.cs @@ -0,0 +1,32 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量删除记录权限用户授权 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量删除记录权限用户授权 请求体 +/// 批量删除记录权限授权 +/// 接口ID:7417675812785471491 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-record_permission-member/batch_remove_authorization +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-record_permission-member%2fbatch_remove_authorization +/// +public record PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchRemoveAuthorizationBodyDto +{ + /// + /// 需要删除的用户 ID 列表,使用飞书低代码平台的用户 ID + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("user_ids")] + public string[]? UserIds { get; set; } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchCreateAuthorizationBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchCreateAuthorizationBodyDto.cs new file mode 100644 index 00000000..07eb8c4f --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchCreateAuthorizationBodyDto.cs @@ -0,0 +1,41 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量创建角色成员授权 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量创建角色成员授权 请求体 +/// 批量创建角色成员授权 +/// 接口ID:7417675812785520643 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-role-member/batch_create_authorization +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-role-member%2fbatch_create_authorization +/// +public record PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchCreateAuthorizationBodyDto +{ + /// + /// 需要新增的用户 ID 列表,使用飞书低代码平台的用户 ID + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("user_ids")] + public string[]? UserIds { get; set; } + + /// + /// 需要新增的部门 ID 列表,使用飞书低代码平台的部门 ID + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("department_ids")] + public string[]? DepartmentIds { get; set; } +} diff --git a/src/AppEngine/PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchRemoveAuthorizationBodyDto.cs b/src/AppEngine/PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchRemoveAuthorizationBodyDto.cs new file mode 100644 index 00000000..5dad8ab5 --- /dev/null +++ b/src/AppEngine/PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchRemoveAuthorizationBodyDto.cs @@ -0,0 +1,41 @@ +// ************************************************************************ +// Assembly : FeishuNetSdk +// Author : yxr +// Created : 2024-09-24 +// +// Last Modified By : yxr +// Last Modified On : 2024-09-24 +// ************************************************************************ +// +// MIT +// +// 批量删除角色成员授权 请求体 +// ************************************************************************ +namespace FeishuNetSdk.AppEngine; +/// +/// 批量删除角色成员授权 请求体 +/// 批量删除角色成员授权 +/// 接口ID:7417675812785487875 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-role-member/batch_remove_authorization +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2fapaas-v1%2fapplication-role-member%2fbatch_remove_authorization +/// +public record PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchRemoveAuthorizationBodyDto +{ + /// + /// 需要删除的用户 ID 列表,使用飞书低代码平台的用户 ID + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("user_ids")] + public string[]? UserIds { get; set; } + + /// + /// 需要删除的部门 ID 列表,使用飞书低代码平台的部门 ID + /// 必填:否 + /// 最大长度:1000 + /// 最小长度:0 + /// + [JsonPropertyName("department_ids")] + public string[]? DepartmentIds { get; set; } +} diff --git a/src/Application.Events/ApplicationApplicationVisibilityAddedV6EventBodyDto.cs b/src/Application.Events/ApplicationApplicationVisibilityAddedV6EventBodyDto.cs index 55f15df6..22f0a830 100644 --- a/src/Application.Events/ApplicationApplicationVisibilityAddedV6EventBodyDto.cs +++ b/src/Application.Events/ApplicationApplicationVisibilityAddedV6EventBodyDto.cs @@ -4,7 +4,7 @@ // Created : 2024-09-01 // // Last Modified By : yxr -// Last Modified On : 2024-09-01 +// Last Modified On : 2024-09-24 // ************************************************************************ // // MIT @@ -33,23 +33,20 @@ public record ApplicationApplicationVisibilityAddedV6EventBodyDto() : EventBodyD public int? Source { get; set; } /// - /// 用户 ID - /// 必填:否 - /// - [JsonPropertyName("user_id")] - public object? UserId { get; set; } - - /// - /// 用户的 open_id,了解不同用户 ID 类型参考[用户身份概述](https://open.feishu.cn/document/home/user-identity-introduction/introduction) - /// 必填:否 + /// /// - [JsonPropertyName("open_id")] - public string? OpenId { get; set; } + public User[]? Users { get; set; } /// - /// 用户的 union_id,了解不同用户 ID 类型参考[用户身份概述](https://open.feishu.cn/document/home/user-identity-introduction/introduction) - /// 必填:否 + /// /// - [JsonPropertyName("union_id")] - public string? UnionId { get; set; } + public record User + { + /// + /// 用户 ID + /// 必填:否 + /// + [JsonPropertyName("user_id")] + public UserIdSuffix? UserId { get; set; } + } } diff --git a/src/Base/PostBitableV1AppsByAppTokenTablesByTableIdRecordsSearchBodyDto.cs b/src/Base/PostBitableV1AppsByAppTokenTablesByTableIdRecordsSearchBodyDto.cs index 8fd3e2f3..87fb7b85 100644 --- a/src/Base/PostBitableV1AppsByAppTokenTablesByTableIdRecordsSearchBodyDto.cs +++ b/src/Base/PostBitableV1AppsByAppTokenTablesByTableIdRecordsSearchBodyDto.cs @@ -80,14 +80,14 @@ public record Sort } /// - /// 包含条件筛选信息的对象 + /// 包含条件筛选信息的对象。了解如何填写 filter,参考[记录筛选参数填写指南](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-record/record-filter-guide)。 /// 必填:否 /// [JsonPropertyName("filter")] public FilterInfo? Filter { get; set; } /// - /// 包含条件筛选信息的对象 + /// 包含条件筛选信息的对象。了解如何填写 filter,参考[记录筛选参数填写指南](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-record/record-filter-guide)。 /// public record FilterInfo { @@ -135,15 +135,15 @@ public record Condition /// 示例值:is /// 可选值: /// is:等于 - /// isNot:不等于 - /// contains:包含 - /// doesNotContain:不包含 + /// isNot:不等于(不支持日期字段,了解如何查询日期字段,参考[日期字段填写说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-record/record-filter-guide#29d9dc89)) + /// contains:包含(不支持日期字段) + /// doesNotContain:不包含(不支持日期字段) /// isEmpty:为空 /// isNotEmpty:不为空 /// isGreater:大于 - /// isGreaterEqual:大于等于 + /// isGreaterEqual:大于等于(不支持日期字段) /// isLess:小于 - /// isLessEqual:小于等于 + /// isLessEqual:小于等于(不支持日期字段) /// like:LIKE 运算符。暂未支持 /// in:IN 运算符。暂未支持 /// diff --git a/src/Corehr/PostCorehrV2PreHiresSearchBodyDto.cs b/src/Corehr/PostCorehrV2PreHiresSearchBodyDto.cs index 67908c38..46e259e9 100644 --- a/src/Corehr/PostCorehrV2PreHiresSearchBodyDto.cs +++ b/src/Corehr/PostCorehrV2PreHiresSearchBodyDto.cs @@ -4,7 +4,7 @@ // Created : 2024-06-24 // // Last Modified By : yxr -// Last Modified On : 2024-07-01 +// Last Modified On : 2024-09-24 // ************************************************************************ // // MIT @@ -39,6 +39,14 @@ public record PostCorehrV2PreHiresSearchBodyDto [JsonPropertyName("pre_hire_ids")] public string[]? PreHireIds { get; set; } + /// + /// 个人信息 ID 列表,可以通过[【事件】更新个人信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/events/updated)获取 + /// 必填:否 + /// 最大长度:100 + /// + [JsonPropertyName("person_ids")] + public string[]? PersonIds { get; set; } + /// /// 入职日期(搜索的起始时间),需要与入职日期(onboarding_date_end)一同使用,不填写则不根据入职日期过滤。 /// 必填:否 diff --git a/src/Corehr/PostCorehrV2PreHiresSearchResponseDto.cs b/src/Corehr/PostCorehrV2PreHiresSearchResponseDto.cs index 4d245179..4a3b8236 100644 --- a/src/Corehr/PostCorehrV2PreHiresSearchResponseDto.cs +++ b/src/Corehr/PostCorehrV2PreHiresSearchResponseDto.cs @@ -4,7 +4,7 @@ // Created : 2024-06-24 // // Last Modified By : yxr -// Last Modified On : 2024-07-01 +// Last Modified On : 2024-09-24 // ************************************************************************ // // MIT @@ -164,7 +164,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -172,9 +172,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -372,7 +372,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -380,9 +380,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -397,6 +397,14 @@ public record I18n [JsonPropertyName("date_of_birth")] public string? DateOfBirth { get; set; } + /// + /// 国籍 ID,可通过【查询国籍信息】接口查询 + /// 必填:否 + /// 示例值:6862995757234914821 + /// + [JsonPropertyName("nationality_id_v2")] + public string? NationalityIdV2 { get; set; } + /// /// 民族 / 种族,枚举值可查询[获取字段详情](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口获取,按如下参数查询即可:按如下参数查询即可: /// - custom_api_name:ethnicity_race @@ -460,7 +468,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -468,9 +476,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -761,7 +769,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -769,9 +777,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -942,7 +950,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -950,9 +958,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -985,7 +993,7 @@ public record WorkExperienceInfo public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -993,9 +1001,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -1142,7 +1150,7 @@ public record Education public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -1150,9 +1158,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -1191,7 +1199,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -1199,9 +1207,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -1436,7 +1444,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -1444,9 +1452,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -1767,7 +1775,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -1775,9 +1783,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -1976,7 +1984,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -1984,9 +1992,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -2319,7 +2327,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -2327,9 +2335,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -2620,7 +2628,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -2628,9 +2636,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -2843,7 +2851,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -2851,9 +2859,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -3047,7 +3055,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -3055,9 +3063,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -3109,7 +3117,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -3117,9 +3125,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -3366,7 +3374,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -3374,9 +3382,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -3573,7 +3581,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -3581,9 +3589,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -3712,7 +3720,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -3720,9 +3728,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -3845,7 +3853,7 @@ public record ObjectFieldData public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -3853,9 +3861,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -3980,7 +3988,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -3988,9 +3996,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -4380,7 +4388,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -4388,9 +4396,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -4635,7 +4643,7 @@ public record PreHirePayGroupInfo public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -4643,9 +4651,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -4695,7 +4703,7 @@ public record PreHireAbnormalReason public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -4703,9 +4711,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -4760,6 +4768,14 @@ public record I18n /// [JsonPropertyName("updated_by")] public string? UpdatedBy { get; set; } + + /// + /// 司龄起算日期 + /// 必填:否 + /// 示例值:2023-01-10 + /// + [JsonPropertyName("seniority_date")] + public string? SeniorityDate { get; set; } } /// @@ -5152,7 +5168,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -5160,9 +5176,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -5277,7 +5293,7 @@ public record CustomName public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -5285,9 +5301,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; @@ -5346,7 +5362,7 @@ public record Enum public record I18n { /// - /// 语言 + /// 语言编码(IETF BCP 47) /// 必填:是 /// 示例值:zh-CN /// @@ -5354,9 +5370,9 @@ public record I18n public string Lang { get; set; } = string.Empty; /// - /// 内容 + /// 文本内容 /// 必填:是 - /// 示例值:张三 + /// 示例值:中文示例 /// [JsonPropertyName("value")] public string Value { get; set; } = string.Empty; diff --git a/src/FeishuNetSdk.csproj b/src/FeishuNetSdk.csproj index db961456..d5ed4993 100644 --- a/src/FeishuNetSdk.csproj +++ b/src/FeishuNetSdk.csproj @@ -16,7 +16,7 @@ MIT 适用于飞书开放平台的.Net开发包 LICENSE - 3.0.3 + 3.0.4 diff --git a/src/FeishuPeople/GetCorehrV1NationalIdTypesByNationalIdTypeIdResponseDto.cs b/src/FeishuPeople/GetCorehrV1NationalIdTypesByNationalIdTypeIdResponseDto.cs index d226475c..d4ee37ba 100644 --- a/src/FeishuPeople/GetCorehrV1NationalIdTypesByNationalIdTypeIdResponseDto.cs +++ b/src/FeishuPeople/GetCorehrV1NationalIdTypesByNationalIdTypeIdResponseDto.cs @@ -42,7 +42,7 @@ public record GetCorehrV1NationalIdTypesByNationalIdTypeIdResponseDtoNationalIdT public string? Id { get; set; } /// - /// 国家 / 地区 + /// 国家 / 地区ID,可通过[查询国家/地区信息]()获取对应的国家/地区信息 /// 必填:是 /// 示例值:6862995747139225096 /// @@ -87,7 +87,7 @@ public record I18n public bool Active { get; set; } /// - /// 校验规则 + /// 校验规则(正则表达式) /// 必填:是 /// 示例值:^\d{9}$ /// @@ -160,14 +160,14 @@ public record I18n } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// 必填:否 /// [JsonPropertyName("custom_fields")] public ObjectFieldData[]? CustomFields { get; set; } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// public record ObjectFieldData { diff --git a/src/FeishuPeople/GetCorehrV1NationalIdTypesResponseDto.cs b/src/FeishuPeople/GetCorehrV1NationalIdTypesResponseDto.cs index 48bcb718..dd884e89 100644 --- a/src/FeishuPeople/GetCorehrV1NationalIdTypesResponseDto.cs +++ b/src/FeishuPeople/GetCorehrV1NationalIdTypesResponseDto.cs @@ -42,7 +42,7 @@ public record NationalIdType public string? Id { get; set; } /// - /// 国家 / 地区 + /// 国家 / 地区ID,可通过[查询国家/地区信息]()获取对应的国家/地区信息 /// 必填:是 /// 示例值:6862995747139225096 /// @@ -87,7 +87,7 @@ public record I18n public bool Active { get; set; } /// - /// 校验规则 + /// 校验规则(正则表达式) /// 必填:是 /// 示例值:^\d{9}$ /// @@ -160,14 +160,14 @@ public record I18n } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// 必填:否 /// [JsonPropertyName("custom_fields")] public ObjectFieldData[]? CustomFields { get; set; } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// public record ObjectFieldData { diff --git a/src/FeishuPeople/PatchCorehrV1EmploymentsByEmploymentIdBodyDto.cs b/src/FeishuPeople/PatchCorehrV1EmploymentsByEmploymentIdBodyDto.cs index 1d7beae8..94ea3ca0 100644 --- a/src/FeishuPeople/PatchCorehrV1EmploymentsByEmploymentIdBodyDto.cs +++ b/src/FeishuPeople/PatchCorehrV1EmploymentsByEmploymentIdBodyDto.cs @@ -80,6 +80,7 @@ public record Enum /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] @@ -87,6 +88,7 @@ public record Enum /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { @@ -152,7 +154,10 @@ public record Email public bool? IsPublic { get; set; } /// - /// 邮箱用途,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)邮箱用途(email_usage)枚举定义获得 + /// 邮箱用途 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name: email + /// - custom_api_name: email_usage /// - 请勿填写 home 枚举 /// 必填:否 /// @@ -160,7 +165,10 @@ public record Email public Enum? EmailUsage { get; set; } /// - /// 邮箱用途,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)邮箱用途(email_usage)枚举定义获得 + /// 邮箱用途 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name: email + /// - custom_api_name: email_usage /// - 请勿填写 home 枚举 /// public record Enum @@ -176,6 +184,7 @@ public record Enum /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] @@ -183,6 +192,7 @@ public record Enum /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { @@ -205,7 +215,10 @@ public record ObjectFieldData } /// - /// 离职原因,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)离职原因(reason_for_offboarding)枚举定义部分获得 + /// 离职原因 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:reason_for_offboarding /// 必填:否 /// [JsonPropertyName("reason_for_offboarding")] diff --git a/src/FeishuPeople/PatchCorehrV1EmploymentsByEmploymentIdResponseDto.cs b/src/FeishuPeople/PatchCorehrV1EmploymentsByEmploymentIdResponseDto.cs index ff83ca8a..12d296d0 100644 --- a/src/FeishuPeople/PatchCorehrV1EmploymentsByEmploymentIdResponseDto.cs +++ b/src/FeishuPeople/PatchCorehrV1EmploymentsByEmploymentIdResponseDto.cs @@ -154,14 +154,20 @@ public record PatchCorehrV1EmploymentsByEmploymentIdResponseDtoEmployment public string? ExpirationTime { get; set; } /// - /// 雇佣类型,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)雇佣类型(employment_type)枚举定义获得 + /// 雇佣类型 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:employment_type /// 必填:是 /// [JsonPropertyName("employment_type")] public Enum EmploymentType { get; set; } = new(); /// - /// 雇佣类型,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)雇佣类型(employment_type)枚举定义获得 + /// 雇佣类型 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:employment_type /// public record Enum { @@ -248,7 +254,10 @@ public record I18n public bool PrimaryEmployment { get; set; } /// - /// 雇员状态,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)雇员状态(employment_status)枚举定义获得 + /// 雇佣状态 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:employment_status /// 必填:否 /// [JsonPropertyName("employment_status")] @@ -256,6 +265,7 @@ public record I18n /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] @@ -263,6 +273,7 @@ public record I18n /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { @@ -320,14 +331,20 @@ public record Email public bool? IsPublic { get; set; } /// - /// 邮箱用途,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)邮箱用途(email_usage)枚举定义获得 + /// 邮箱用途 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name: email + /// - custom_api_name:email_usage /// 必填:否 /// [JsonPropertyName("email_usage")] public Enum? EmailUsage { get; set; } /// - /// 邮箱用途,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)邮箱用途(email_usage)枚举定义获得 + /// 邮箱用途 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name: email + /// - custom_api_name:email_usage /// public record Enum { @@ -371,6 +388,7 @@ public record I18n /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] @@ -378,6 +396,7 @@ public record I18n /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { @@ -408,7 +427,10 @@ public record ObjectFieldData public string? EmailAddress { get; set; } /// - /// 离职原因,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)离职原因(reason_for_offboarding)枚举定义部分获得 + /// 离职原因 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:reason_for_offboarding /// 必填:否 /// [JsonPropertyName("reason_for_offboarding")] @@ -444,6 +466,7 @@ public record JobDataCostCenter /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] @@ -451,6 +474,7 @@ public record JobDataCostCenter /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { diff --git a/src/FeishuPeople/PatchCorehrV1NationalIdTypesByNationalIdTypeIdBodyDto.cs b/src/FeishuPeople/PatchCorehrV1NationalIdTypesByNationalIdTypeIdBodyDto.cs index bfe04f98..edc90637 100644 --- a/src/FeishuPeople/PatchCorehrV1NationalIdTypesByNationalIdTypeIdBodyDto.cs +++ b/src/FeishuPeople/PatchCorehrV1NationalIdTypesByNationalIdTypeIdBodyDto.cs @@ -67,7 +67,7 @@ public record I18n public bool? Active { get; set; } /// - /// 校验规则 + /// 校验规则(正则表达式),若不设置校验,可以传入".*" /// 必填:否 /// 示例值:^\d{9}$ /// @@ -111,14 +111,14 @@ public record Enum } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// 必填:否 /// [JsonPropertyName("custom_fields")] public ObjectFieldData[]? CustomFields { get; set; } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// public record ObjectFieldData { diff --git a/src/FeishuPeople/PatchCorehrV1NationalIdTypesByNationalIdTypeIdResponseDto.cs b/src/FeishuPeople/PatchCorehrV1NationalIdTypesByNationalIdTypeIdResponseDto.cs index 06298abc..7167d9cd 100644 --- a/src/FeishuPeople/PatchCorehrV1NationalIdTypesByNationalIdTypeIdResponseDto.cs +++ b/src/FeishuPeople/PatchCorehrV1NationalIdTypesByNationalIdTypeIdResponseDto.cs @@ -87,7 +87,7 @@ public record I18n public bool Active { get; set; } /// - /// 校验规则 + /// 校验规则(正则表达式) /// 必填:是 /// 示例值:^\d{9}$ /// @@ -160,14 +160,14 @@ public record I18n } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// 必填:否 /// [JsonPropertyName("custom_fields")] public ObjectFieldData[]? CustomFields { get; set; } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// public record ObjectFieldData { diff --git a/src/FeishuPeople/PostCorehrV1EmploymentsBodyDto.cs b/src/FeishuPeople/PostCorehrV1EmploymentsBodyDto.cs index 2717c096..e09d3e41 100644 --- a/src/FeishuPeople/PostCorehrV1EmploymentsBodyDto.cs +++ b/src/FeishuPeople/PostCorehrV1EmploymentsBodyDto.cs @@ -58,14 +58,20 @@ public record PostCorehrV1EmploymentsBodyDto public string? ExpirationTime { get; set; } /// - /// 雇佣类型,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)雇佣类型(employment_type)枚举定义获得 + /// 雇佣类型 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:employment_type /// 必填:是 /// [JsonPropertyName("employment_type")] public Enum EmploymentType { get; set; } = new(); /// - /// 雇佣类型,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)雇佣类型(employment_type)枚举定义获得 + /// 雇佣类型 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:employment_type /// public record Enum { @@ -80,6 +86,7 @@ public record Enum /// /// 个人信息ID,由[【创建个人信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/person/create)时生成 + /// - 当 rehire 值为 yes 时,该个人信息的【姓名信息】必须有值 /// 必填:是 /// 示例值:6919733936050406926 /// @@ -95,21 +102,26 @@ public record Enum public bool PrimaryEmployment { get; set; } /// - /// 雇员状态,可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)雇员状态(employment_status)枚举定义获得 + /// 雇佣状态 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:employment_status /// 必填:是 /// [JsonPropertyName("employment_status")] public Enum EmploymentStatus { get; set; } = new(); /// - /// 自定义字段,不传时为空 + /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] public ObjectFieldData[]? CustomFields { get; set; } /// - /// 自定义字段,不传时为空 + /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { @@ -175,7 +187,10 @@ public record Email public bool? IsPublic { get; set; } /// - /// 邮箱用途,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)邮箱用途(email_usage)枚举定义获得 + /// 邮箱用途 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name: email + /// - custom_api_name:email_usage /// - 请勿填写 home 枚举 /// 必填:否 /// @@ -183,7 +198,10 @@ public record Email public Enum? EmailUsage { get; set; } /// - /// 邮箱用途,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)邮箱用途(email_usage)枚举定义获得 + /// 邮箱用途 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name: email + /// - custom_api_name:email_usage /// - 请勿填写 home 枚举 /// public record Enum @@ -199,6 +217,7 @@ public record Enum /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] @@ -206,6 +225,7 @@ public record Enum /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { @@ -228,7 +248,10 @@ public record ObjectFieldData } /// - /// 离职原因,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)离职原因(reason_for_offboarding)枚举定义部分获得 + /// 离职原因 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:reason_for_offboarding /// 必填:否 /// [JsonPropertyName("reason_for_offboarding")] diff --git a/src/FeishuPeople/PostCorehrV1EmploymentsResponseDto.cs b/src/FeishuPeople/PostCorehrV1EmploymentsResponseDto.cs index 040372d7..30be7611 100644 --- a/src/FeishuPeople/PostCorehrV1EmploymentsResponseDto.cs +++ b/src/FeishuPeople/PostCorehrV1EmploymentsResponseDto.cs @@ -154,14 +154,20 @@ public record EmploymentCreate public string? ExpirationTime { get; set; } /// - /// 雇佣类型,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)雇佣类型(employment_type)枚举定义获得 + /// 雇佣类型 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:employment_type /// 必填:是 /// [JsonPropertyName("employment_type")] public Enum EmploymentType { get; set; } = new(); /// - /// 雇佣类型,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)雇佣类型(employment_type)枚举定义获得 + /// 雇佣类型 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:employment_type /// public record Enum { @@ -244,7 +250,10 @@ public record I18n public bool PrimaryEmployment { get; set; } /// - /// 雇员状态,可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)雇员状态(employment_status)枚举定义获得 + /// 雇佣状态 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:employment_status /// 必填:否 /// [JsonPropertyName("employment_status")] @@ -252,6 +261,7 @@ public record I18n /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] @@ -259,6 +269,7 @@ public record I18n /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { @@ -322,14 +333,20 @@ public record Email public bool? IsPublic { get; set; } /// - /// 邮箱用途,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)邮箱用途(email_usage)枚举定义获得 + /// 邮箱用途 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name: email + /// - custom_api_name:email_usage /// 必填:否 /// [JsonPropertyName("email_usage")] public Enum? EmailUsage { get; set; } /// - /// 邮箱用途,枚举值可通过文档[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)邮箱用途(email_usage)枚举定义获得 + /// 邮箱用途 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name: email + /// - custom_api_name:email_usage /// public record Enum { @@ -373,6 +390,7 @@ public record I18n /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] @@ -380,6 +398,7 @@ public record I18n /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { @@ -410,7 +429,10 @@ public record ObjectFieldData public string? EmailAddress { get; set; } /// - /// 离职原因,可通过[【飞书人事枚举常量】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/feishu-people-enum-constant)离职原因(reason_for_offboarding)枚举定义获得 + /// 离职原因 + /// - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: + /// - object_api_name:employment + /// - custom_api_name:reason_for_offboarding /// 必填:否 /// [JsonPropertyName("reason_for_offboarding")] @@ -446,6 +468,7 @@ public record JobDataCostCenter /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// 必填:否 /// [JsonPropertyName("custom_fields")] @@ -453,6 +476,7 @@ public record JobDataCostCenter /// /// 自定义字段 + /// - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) /// public record ObjectFieldData { diff --git a/src/FeishuPeople/PostCorehrV1NationalIdTypesBodyDto.cs b/src/FeishuPeople/PostCorehrV1NationalIdTypesBodyDto.cs index 13cd0f01..e96b5e08 100644 --- a/src/FeishuPeople/PostCorehrV1NationalIdTypesBodyDto.cs +++ b/src/FeishuPeople/PostCorehrV1NationalIdTypesBodyDto.cs @@ -67,7 +67,7 @@ public record I18n public bool Active { get; set; } /// - /// 校验规则 + /// 校验规则(正则表达式),若不设置校验,可以传入".*" /// 必填:是 /// 示例值:^\d{9}$ /// @@ -111,14 +111,14 @@ public record Enum } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// 必填:否 /// [JsonPropertyName("custom_fields")] public ObjectFieldData[]? CustomFields { get; set; } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// public record ObjectFieldData { diff --git a/src/FeishuPeople/PostCorehrV1NationalIdTypesResponseDto.cs b/src/FeishuPeople/PostCorehrV1NationalIdTypesResponseDto.cs index 70313c46..2a275261 100644 --- a/src/FeishuPeople/PostCorehrV1NationalIdTypesResponseDto.cs +++ b/src/FeishuPeople/PostCorehrV1NationalIdTypesResponseDto.cs @@ -87,7 +87,7 @@ public record I18n public bool Active { get; set; } /// - /// 校验规则 + /// 校验规则(正则表达式) /// 必填:是 /// 示例值:^\d{9}$ /// @@ -160,14 +160,14 @@ public record I18n } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// 必填:否 /// [JsonPropertyName("custom_fields")] public ObjectFieldData[]? CustomFields { get; set; } /// - /// 自定义字段 + /// 自定义字段(暂不支持) /// public record ObjectFieldData { diff --git a/src/IFeishuTenantApi.cs b/src/IFeishuTenantApi.cs index bfeaada1..7d56ecee 100644 --- a/src/IFeishuTenantApi.cs +++ b/src/IFeishuTenantApi.cs @@ -4,7 +4,7 @@ // Created : 2024-06-24 // // Last Modified By : yxr -// Last Modified On : 2024-09-20 +// Last Modified On : 2024-09-24 // ************************************************************************ // // MIT @@ -21886,7 +21886,7 @@ System.Threading.Tasks.Task DeleteCorehrV1EmploymentsByEmploymen /// 接口ID:7072646256338894849 /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/delete /// Authorization:tenant_access_token - /// 删除国家证件类型。 + /// 删除国家证件类型,已删除的数据将无法通过查询接口获取。 /// 权限要求: /// corehr:common_data.preset_data:write /// corehr:corehr @@ -36994,6 +36994,7 @@ System.Threading.Tasks.Task DeleteDriveV1FilesByFileTokenDeleteS /// corehr:employment.position:read /// corehr:employment.position:write /// corehr:employment.recruitment_project_id:read + /// corehr:employment.seniority_date:write /// corehr:job_data.work_shift:read /// corehr:person.address:read /// corehr:person.address:write @@ -37031,6 +37032,8 @@ System.Threading.Tasks.Task DeleteDriveV1FilesByFileTokenDeleteS /// corehr:person.martyr_family:write /// corehr:person.national_id:read /// corehr:person.national_id:write + /// corehr:person.nationality:read + /// corehr:person.nationality:write /// corehr:person.native_region:read /// corehr:person.native_region:write /// corehr:person.passport_number:read @@ -41906,6 +41909,302 @@ System.Threading.Tasks.Task DeleteHireV1NotesByNoteIdAsync( [JsonContent] Performance.PostPerformanceV2MetricDetailsQueryBodyDto dto, [PathQuery] string? user_id_type = "open_id"); + /// + /// 【飞书低代码平台】删除记录 + /// 接口ID:7384730094872936476 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/delete + /// Authorization:tenant_access_token + /// 删除对象中的指定记录 + /// 权限要求: + /// app_engine:object.record:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 对象唯一标识 + /// 示例值:user + /// + /// + /// 路径参数 + /// 必填:是 + /// 记录ID + /// 示例值:1764024447556775 + /// + [HttpDelete("/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/{id}")] + System.Threading.Tasks.Task DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdAsync( + [PathQuery] string @namespace, + [PathQuery] string object_api_name, + [PathQuery] string id); + + /// + /// 【飞书低代码平台】新建记录 + /// 接口ID:7384730094872952860 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/create + /// Authorization:tenant_access_token + /// 在对象中新建记录 + /// 权限要求: + /// app_engine:object.record:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 对象唯一标识 + /// 示例值:user + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records")] + System.Threading.Tasks.Task> PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsAsync( + [PathQuery] string @namespace, + [PathQuery] string object_api_name, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBodyDto dto); + + /// + /// 【飞书低代码平台】批量编辑记录 + /// 接口ID:7384730094872969244 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_update + /// Authorization:tenant_access_token + /// 一次编辑多条对象中的记录 + /// 权限要求: + /// app_engine:object.record:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 对象唯一标识 + /// 示例值:user + /// + /// 请求体 + [HttpPatch("/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_update")] + System.Threading.Tasks.Task> PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateAsync( + [PathQuery] string @namespace, + [PathQuery] string object_api_name, + [JsonContent] AppEngine.PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchUpdateBodyDto dto); + + /// + /// 【飞书低代码平台】批量新建记录 + /// 接口ID:7384730094872985628 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_create + /// Authorization:tenant_access_token + /// 一次新建多条对象中的记录 + /// 权限要求: + /// app_engine:object.record:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 对象唯一标识 + /// 示例值:user + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_create")] + System.Threading.Tasks.Task> PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateAsync( + [PathQuery] string @namespace, + [PathQuery] string object_api_name, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchCreateBodyDto dto); + + /// + /// 【飞书低代码平台】执行 OQL + /// 接口ID:7384730094873002012 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object/oql_query + /// Authorization:tenant_access_token + /// 在应用内执行 OQL 语句 + /// 权限要求: + /// app_engine:object.record:read + /// app_engine:object.record:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/objects/oql_query")] + System.Threading.Tasks.Task> PostApaasV1ApplicationsByNamespaceObjectsOqlQueryAsync( + [PathQuery] string @namespace, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceObjectsOqlQueryBodyDto dto); + + /// + /// 【飞书低代码平台】获取记录详情 + /// 接口ID:7384730094873018396 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/query + /// Authorization:tenant_access_token + /// 获取对象中指定的记录详情 + /// 权限要求: + /// app_engine:object.record:read + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 对象唯一标识 + /// 示例值:user + /// + /// + /// 路径参数 + /// 必填:是 + /// 记录ID + /// 示例值:1764024447556775 + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/{id}/query")] + System.Threading.Tasks.Task> PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryAsync( + [PathQuery] string @namespace, + [PathQuery] string object_api_name, + [PathQuery] string id, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdQueryBodyDto dto); + + /// + /// 【飞书低代码平台】编辑记录 + /// 接口ID:7384730094873034780 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/patch + /// Authorization:tenant_access_token + /// 编辑对象中的指定记录 + /// 权限要求: + /// app_engine:object.record:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 对象唯一标识 + /// 示例值:user + /// + /// + /// 路径参数 + /// 必填:是 + /// 记录ID + /// 示例值:1764024447556775 + /// + /// 请求体 + [HttpPatch("/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/{id}")] + System.Threading.Tasks.Task PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdAsync( + [PathQuery] string @namespace, + [PathQuery] string object_api_name, + [PathQuery] string id, + [JsonContent] AppEngine.PatchApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsByIdBodyDto dto); + + /// + /// 【飞书低代码平台】搜索记录 + /// 接口ID:7384730094873051164 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object/search + /// Authorization:tenant_access_token + /// 在应用内搜索记录 + /// 权限要求: + /// app_engine:object.record:read + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/objects/search")] + System.Threading.Tasks.Task> PostApaasV1ApplicationsByNamespaceObjectsSearchAsync( + [PathQuery] string @namespace, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceObjectsSearchBodyDto dto); + + /// + /// 【飞书低代码平台】查询记录列表 + /// 接口ID:7384730094873067548 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_query + /// Authorization:tenant_access_token + /// 获取对象中符合指定条件的记录列表 + /// 权限要求: + /// app_engine:object.record:read + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 目标对象的唯一标识符 + /// 示例值:_user + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_query")] + System.Threading.Tasks.Task> PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryAsync( + [PathQuery] string @namespace, + [PathQuery] string object_api_name, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchQueryBodyDto dto); + + /// + /// 【飞书低代码平台】批量删除记录 + /// 接口ID:7384730094873083932 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-object-record/batch_delete + /// Authorization:tenant_access_token + /// 一次删除多条对象中的记录 + /// 权限要求: + /// app_engine:object.record:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 对象唯一标识 + /// 示例值:user + /// + /// 请求体 + [HttpDelete("/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_delete")] + System.Threading.Tasks.Task> DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteAsync( + [PathQuery] string @namespace, + [PathQuery] string object_api_name, + [JsonContent] AppEngine.DeleteApaasV1ApplicationsByNamespaceObjectsByObjectApiNameRecordsBatchDeleteBodyDto dto); + /// /// 【招聘】查询地点列表 /// 接口ID:7385067676815949828 @@ -42607,5 +42906,162 @@ System.Threading.Tasks.Task GetBoardV1WhiteboardsByWhiteboa [PathQuery] int page_size = 10, [PathQuery] string? page_token = null, [PathQuery] string? department_id_type = "people_corehr_department_id"); + + /// + /// 【飞书低代码平台】查询角色成员信息 + /// 接口ID:7417675812785455107 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-role-member/get + /// Authorization:tenant_access_token + /// 获取角色成员详情 + /// 权限要求: + /// app_engine:role:read + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 角色 API 名称 + /// 示例值:adminRole + /// + /// + /// 必填:否 + /// 是否需要公式的展示名称,便于前端展示 + /// 示例值:false + /// 默认值:null + /// + /// + /// 必填:否 + /// 是否使用 API ID字段作为出入参,默认值为 false + /// 示例值:false + /// 默认值:false + /// + [HttpGet("/open-apis/apaas/v1/applications/{namespace}/roles/{role_api_name}/member")] + System.Threading.Tasks.Task> GetApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberAsync( + [PathQuery] string @namespace, + [PathQuery] string role_api_name, + [PathQuery] bool? need_display_name = null, + [PathQuery] bool? use_api_id = false); + + /// + /// 【飞书低代码平台】批量删除记录权限用户授权 + /// 接口ID:7417675812785471491 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-record_permission-member/batch_remove_authorization + /// Authorization:tenant_access_token + /// 批量删除记录权限授权 + /// 权限要求: + /// app_engine:record_permission.member:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 记录权限 API 名称 + /// 示例值:adminRecordPermission + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_remove_authorization")] + System.Threading.Tasks.Task PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchRemoveAuthorizationAsync( + [PathQuery] string @namespace, + [PathQuery] string record_permission_api_name, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchRemoveAuthorizationBodyDto dto); + + /// + /// 【飞书低代码平台】批量删除角色成员授权 + /// 接口ID:7417675812785487875 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-role-member/batch_remove_authorization + /// Authorization:tenant_access_token + /// 批量删除角色成员授权 + /// 权限要求: + /// app_engine:role.member:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 角色 API 名称 + /// 示例值:adminRole + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/roles/{role_api_name}/member/batch_remove_authorization")] + System.Threading.Tasks.Task PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchRemoveAuthorizationAsync( + [PathQuery] string @namespace, + [PathQuery] string role_api_name, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchRemoveAuthorizationBodyDto dto); + + /// + /// 【飞书低代码平台】批量创建记录权限用户授权 + /// 接口ID:7417675812785504259 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-record_permission-member/batch_create_authorization + /// Authorization:tenant_access_token + /// 批量创建记录权限授权 + /// 权限要求: + /// app_engine:record_permission.member:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 记录权限 API 名称 + /// 示例值:adminRecordPermission + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_create_authorization")] + System.Threading.Tasks.Task PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchCreateAuthorizationAsync( + [PathQuery] string @namespace, + [PathQuery] string record_permission_api_name, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceRecordPermissionsByRecordPermissionApiNameMemberBatchCreateAuthorizationBodyDto dto); + + /// + /// 【飞书低代码平台】批量创建角色成员授权 + /// 接口ID:7417675812785520643 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-role-member/batch_create_authorization + /// Authorization:tenant_access_token + /// 批量创建角色成员授权 + /// 权限要求: + /// app_engine:role.member:write + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_test__c + /// + /// + /// 路径参数 + /// 必填:是 + /// 角色 API 名称 + /// 示例值:adminRole + /// + /// 请求体 + [HttpPost("/open-apis/apaas/v1/applications/{namespace}/roles/{role_api_name}/member/batch_create_authorization")] + System.Threading.Tasks.Task PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchCreateAuthorizationAsync( + [PathQuery] string @namespace, + [PathQuery] string role_api_name, + [JsonContent] AppEngine.PostApaasV1ApplicationsByNamespaceRolesByRoleApiNameMemberBatchCreateAuthorizationBodyDto dto); } diff --git a/src/IFeishuUserApi.cs b/src/IFeishuUserApi.cs index c47297af..c8ce34d9 100644 --- a/src/IFeishuUserApi.cs +++ b/src/IFeishuUserApi.cs @@ -4,7 +4,7 @@ // Created : 2024-06-24 // // Last Modified By : yxr -// Last Modified On : 2024-09-12 +// Last Modified On : 2024-09-24 // ************************************************************************ // // MIT @@ -19022,5 +19022,131 @@ System.Threading.Tasks.Task GetBoardV1WhiteboardsByWhiteboa [PathQuery] string? wk_working_hours_type_id = null, [PathQuery] string? wk_job_family_id = null, [PathQuery] string? wk_company_id = null); + + /// + /// 【飞书低代码平台】查询审计日志列表 + /// 接口ID:7418119603744391171 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-audit_log/audit_log_list + /// Authorization:user_access_token + /// 根据搜索/筛选条件,查询审计日志列表 + /// 权限要求: + /// app_engine:security.audit_log:read + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_aa_bb + /// + /// + /// 必填:是 + /// 分页大小 + /// 示例值:10 + /// 默认值:10 + /// + /// + /// 必填:是 + /// 翻页数量 + /// 示例值:0 + /// + /// + /// 必填:否 + /// 模糊查询 + /// 示例值:Intel Mac OS + /// 默认值:null + /// + /// + /// 必填:是 + /// 查询时间范围:开始时间(单位为毫秒级时间戳) + /// 示例值:1723691857002 + /// + /// + /// 必填:是 + /// 查询时间范围:结束时间(单位为毫秒级时间戳) + /// 示例值:1724296657002 + /// + /// + /// 必填:是 + /// 日志类型: + /// - 10000: 全部日志 + /// - 10001: 企业管理日志 + /// - 10002: 登录日志 + /// - 10003: 应用管理日志 + /// 示例值:10000 + /// + /// + /// 必填:否 + /// 日志查询:筛选能力 + /// 示例值:{"items":[{"left":"eventName","operator":"=","right":[19001]}]} + /// 默认值:null + /// + /// + /// 必填:否 + /// 日志列表:选择展示行信息,例如["opTime","appName","eventName","clientIP","operator","status"] + /// 默认值:null + /// + /// + /// 必填:否 + /// 查询排序字段:可选项为操作时间(opTime) + /// 示例值:opTime + /// 默认值:null + /// + /// + /// 必填:否 + /// 查询排序:默认按时间从大到小;从小到大使用 asc + /// 示例值:asc + /// 默认值:null + /// + /// + /// 必填:否 + /// 应用类型,0为apaas类型,1为aily类型 + /// 示例值:0 + /// 默认值:null + /// + /// 用户凭证 + [HttpGet("/open-apis/apaas/v1/applications/{namespace}/audit_log/audit_log_list")] + System.Threading.Tasks.Task> GetApaasV1ApplicationsByNamespaceAuditLogAuditLogListAsync( + UserAccessToken access_token, + [PathQuery] string @namespace, + [PathQuery] string offset, + [PathQuery] string from, + [PathQuery] string to, + [PathQuery] string log_type, + [PathQuery] int page_size = 10, + [PathQuery] string? quick_query = null, + [PathQuery] string? filter = null, + [PathQuery] string[]? columns = null, + [PathQuery] string? sort_by = null, + [PathQuery] string? sort_order = null, + [PathQuery] string? app_type = null); + + /// + /// 【飞书低代码平台】查询审计日志详情 + /// 接口ID:7418119603744407555 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-audit_log/get + /// Authorization:user_access_token + /// 根据日志 ID 查询审计日志详情 + /// 权限要求: + /// app_engine:security.audit_log:read + /// + /// + /// + /// 路径参数 + /// 必填:是 + /// 应用命名空间 + /// 示例值:package_aaa + /// + /// + /// 必填:是 + /// 审计日志ID信息(通过[查询审计日志列表](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/application-audit_log/audit_log_list)获取单条日志ID) + /// 示例值:7405456257290600492 + /// + /// 用户凭证 + [HttpGet("/open-apis/apaas/v1/applications/{namespace}/audit_log")] + System.Threading.Tasks.Task> GetApaasV1ApplicationsByNamespaceAuditLogAsync( + UserAccessToken access_token, + [PathQuery] string @namespace, + [PathQuery] string log_id); }