Skip to content

Commit

Permalink
日常更新
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente.Yu <^@^>
  • Loading branch information
Vicente.Yu committed Nov 7, 2023
1 parent f86ee9d commit c789742
Show file tree
Hide file tree
Showing 26 changed files with 66 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public record AppTableForm
/// <summary>
/// <para>分享 URL</para>
/// <para>必填:否</para>
/// <para>示例值:https://bytedance.feishu.cn/share/base/shrcnCy1KAlpahNotmhRn1abcde</para>
/// <para>示例值:https://example.feishu.cn/share/base/shrcnCy1KAlpahNotmhRn1abcde</para>
/// </summary>
[JsonProperty("shared_url")]
public string? SharedUrl { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public record AppTableForm
/// <summary>
/// <para>分享 URL</para>
/// <para>必填:否</para>
/// <para>示例值:https://bytedance.feishu.cn/share/base/shrcnCy1KAlpahNotmhRn1abcde</para>
/// <para>示例值:https://example.feishu.cn/share/base/shrcnCy1KAlpahNotmhRn1abcde</para>
/// </summary>
[JsonProperty("shared_url")]
public string? SharedUrl { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Base/PostBitableV1AppsBodyDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public record PostBitableV1AppsBodyDto
public string? FolderToken { get; set; }

/// <summary>
/// <para>文档时区,[详见](https://bytedance.feishu.cn/docx/YKRndTM7VoyDqpxqqeEcd67MnEf)</para>
/// <para>文档时区,[详见](https://feishu.feishu.cn/docx/YKRndTM7VoyDqpxqqeEcd67MnEf)</para>
/// <para>必填:否</para>
/// <para>示例值:Asia/Macau</para>
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Base/PostBitableV1AppsByAppTokenCopyBodyDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public record PostBitableV1AppsByAppTokenCopyBodyDto
public bool? WithoutContent { get; set; }

/// <summary>
/// <para>文档时区,[详见](https://bytedance.feishu.cn/docx/YKRndTM7VoyDqpxqqeEcd67MnEf)</para>
/// <para>文档时区,[详见](https://feishu.feishu.cn/docx/YKRndTM7VoyDqpxqqeEcd67MnEf)</para>
/// <para>必填:否</para>
/// <para>示例值:Asia/Shanghai</para>
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Base/PostBitableV1AppsByAppTokenCopyResponseDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ public record PostBitableV1AppsByAppTokenCopyResponseDtoApp
/// <summary>
/// <para>多维表格 App URL</para>
/// <para>必填:否</para>
/// <para>示例值:https://by*****ce.feishu.cn/base/S404b*****e9PQsYDWYcNryFn0g</para>
/// <para>示例值:https://example.feishu.cn/base/S404b*****e9PQsYDWYcNryFn0g</para>
/// </summary>
[JsonProperty("url")]
public string? Url { get; set; }

/// <summary>
/// <para>默认的表格id</para>
/// <para>必填:否</para>
/// <para>示例值:tblxxxxxxxxoumSQ</para>
/// <para>示例值:"" //只有创建才返回默认表Id</para>
/// </summary>
[JsonProperty("default_table_id")]
public string? DefaultTableId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public record PostBitableV1AppsByAppTokenTablesByTableIdRecordsBatchDeleteBodyDt
/// <summary>
/// <para>删除的多条记录id列表</para>
/// <para>必填:是</para>
/// <para>示例值:["recIcJBbvC","recvmiCORa"]</para>
/// <para>示例值:[ "recIcJBbvC", "recvmiCORa" ]</para>
/// </summary>
[JsonProperty("records")]
public string[] Records { get; set; } = Array.Empty<string>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public record PostBitableV1AppsByAppTokenTablesByTableIdRecordsBodyDto
/// <para>当前接口支持的字段类型请参考[接入指南](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/bitable/notification#31f78a3c)</para>
/// <para>不同类型字段的数据结构请参考[数据结构概述](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/bitable/development-guide/bitable-structure)</para>
/// <para>必填:是</para>
/// <para>示例值:{"多行文本":"HelloWorld"}</para>
/// <para>示例值:{ "多行文本":"HelloWorld" }</para>
/// </summary>
[JsonProperty("fields")]
public object Fields { get; set; } = new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ public record PostSheetsV2SpreadsheetsBySpreadsheetTokenValuesAppendBodyDto
/// <para>必填:是</para>
/// </summary>
[JsonProperty("values")]
public array<array<interface>> Values { get; set; }
public object[][] Values { get; set; } = Array.Empty<object[][]>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ public record PostSheetsV2SpreadsheetsBySpreadsheetTokenValuesBatchUpdateBodyDto
/// <para>必填:是</para>
/// </summary>
[JsonProperty("values")]
public array<array<interface>> Values { get; set; }
public object[][] Values { get; set; } = Array.Empty<object[][]>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ public record PostSheetsV2SpreadsheetsBySpreadsheetTokenValuesPrependBodyDto
/// <para>必填:是</para>
/// </summary>
[JsonProperty("values")]
public array<array<interface>> Values { get; set; }
public object[][] Values { get; set; } = Array.Empty<object[][]>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ public record PutSheetsV2SpreadsheetsBySpreadsheetTokenValuesBodyDto
/// <para>必填:是</para>
/// </summary>
[JsonProperty("values")]
public array<array<interface>> Values { get; set; }
public object[][] Values { get; set; } = Array.Empty<object[][]>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public record PostSheetsV3SpreadsheetsBySpreadsheetTokenSheetsBySheetIdFindBodyD
/// <summary>
/// <para>查找的字符串,当`search_by_regex`字段为 true 时,该字段为正则表达式</para>
/// <para>必填:是</para>
/// <para>示例值:如下- 普通查找示例: "hello"- 正则查找示例: "[A-Z]\w+"</para>
/// <para>示例值:如下 - 普通查找示例: "hello" - 正则查找示例: "[A-Z]\w+"</para>
/// </summary>
[JsonProperty("find")]
public string Find { get; set; } = string.Empty;
Expand Down
2 changes: 1 addition & 1 deletion src/FeishuNetSdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Copyright>MIT</Copyright>
<Description>适用于飞书开放平台的.Net开发包</Description>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Version>1.0.9</Version>
<Version>1.0.10</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public record PostHelpdeskV1TicketsByTicketIdMessagesBodyDto
/// <para>- 纯文本,参考[发送文本消息](https://open.feishu.cn/document/ukTMukTMukTM/uUjNz4SN2MjL1YzM)中的content;</para>
/// <para>- 富文本,参考[发送富文本消息](https://open.feishu.cn/document/ukTMukTMukTM/uMDMxEjLzATMx4yMwETM)中的content</para>
/// <para>必填:是</para>
/// <para>示例值:{"msg_type":"post","content":{"post":{"zh_cn":{"title":"thisistitle","content":[[{"tag":"text","un_escape":true,"text":"第一行 :"},{"tag":"a","text":"超链接","href":"http://www.feishu.cn"}],[{"tag":"text","text":"第二行:"},{"tag":"text","text":"文本测试"}]]}}}}</para>
/// <para>示例值:{ "msg_type": "post", "content": { "post": { "zh_cn": { "title": "this is title", "content": [ [ { "tag": "text", "un_escape": true, "text": "第一行 :" }, { "tag": "a", "text": "超链接", "href": "http://www.feishu.cn" } ], [ { "tag": "text", "text": "第二行 :" }, { "tag": "text", "text": "文本测试" } ] ] } } } }</para>
/// </summary>
[JsonProperty("content")]
public string Content { get; set; } = string.Empty;
Expand Down
33 changes: 12 additions & 21 deletions src/IFeishuTenantApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,7 @@ System.Threading.Tasks.Task<FeishuResponse> DeleteContactV3JobFamiliesByJobFamil
/// <item>user_id:标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内,一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。[了解更多:如何获取 User ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id)</item>
/// <item>union_id:标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的,在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID,应用开发商可以把同个用户在多个应用中的身份关联起来。[了解更多:如何获取 Union ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-union-id)</item>
/// <item>email:以用户的真实邮箱来标识用户。</item>
/// <item>chat_id:以群ID来标识群聊。[了解更多:如何获取群ID ](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)&lt;/md-enum-item&gt;**当值为 `user_id`,字段权限要求**:&lt;md-perm name="contact:user.employee_id:readonly" desc="获取用户 user ID" support_app_types="custom" tags=""&gt;获取用户 user ID&lt;/md-perm&gt;</item>
/// <item>chat_id:以群ID来标识群聊。[了解更多:如何获取群ID ](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)&lt;/md-enum-item&gt; **当值为 `user_id`,字段权限要求**: &lt;md-perm name="contact:user.employee_id:readonly" desc="获取用户 user ID" support_app_types="custom" tags=""&gt;获取用户 user ID&lt;/md-perm&gt;</item>
/// </list>
/// </param>
/// <param name="dto">请求体</param>
Expand Down Expand Up @@ -2069,7 +2069,7 @@ System.Threading.Tasks.Task<FeishuResponse> DeleteImV1MessagesByMessageIdAsync(
/// <item>user_id:标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内,一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。[了解更多:如何获取 User ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id)</item>
/// <item>union_id:标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的,在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID,应用开发商可以把同个用户在多个应用中的身份关联起来。[了解更多:如何获取 Union ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-union-id)</item>
/// <item>email:以用户的真实邮箱来标识用户。</item>
/// <item>chat_id:以群ID来标识群聊。[了解更多:如何获取群ID ](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)&lt;/md-enum-item&gt;**当值为 `user_id`,字段权限要求**:&lt;md-perm name="contact:user.employee_id:readonly" desc="获取用户 user ID" support_app_types="custom" tags=""&gt;获取用户 user ID&lt;/md-perm&gt;</item>
/// <item>chat_id:以群ID来标识群聊。[了解更多:如何获取群ID ](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)&lt;/md-enum-item&gt; **当值为 `user_id`,字段权限要求**: &lt;md-perm name="contact:user.employee_id:readonly" desc="获取用户 user ID" support_app_types="custom" tags=""&gt;获取用户 user ID&lt;/md-perm&gt;</item>
/// </list>
/// </param>
/// <param name="uuid">
Expand Down Expand Up @@ -2101,7 +2101,7 @@ System.Threading.Tasks.Task<FeishuResponse> DeleteImV1MessagesByMessageIdAsync(
/// <item>user_id:标识一个用户在某个租户内的身份。同一个用户在租户 A 和租户 B 内的 User ID 是不同的。在同一个租户内,一个用户的 User ID 在所有应用(包括商店应用)中都保持一致。User ID 主要用于在不同的应用间打通用户数据。[了解更多:如何获取 User ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id)</item>
/// <item>union_id:标识一个用户在某个应用开发商下的身份。同一用户在同一开发商下的应用中的 Union ID 是相同的,在不同开发商下的应用中的 Union ID 是不同的。通过 Union ID,应用开发商可以把同个用户在多个应用中的身份关联起来。[了解更多:如何获取 Union ID?](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-union-id)</item>
/// <item>email:以用户的真实邮箱来标识用户。</item>
/// <item>chat_id:以群ID来标识群聊。[了解更多:如何获取群ID ](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)&lt;/md-enum-item&gt;**当值为 `user_id`,字段权限要求**:&lt;md-perm name="contact:user.employee_id:readonly" desc="获取用户 user ID" support_app_types="custom" tags=""&gt;获取用户 user ID&lt;/md-perm&gt;</item>
/// <item>chat_id:以群ID来标识群聊。[了解更多:如何获取群ID ](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat-id-description)&lt;/md-enum-item&gt; **当值为 `user_id`,字段权限要求**: &lt;md-perm name="contact:user.employee_id:readonly" desc="获取用户 user ID" support_app_types="custom" tags=""&gt;获取用户 user ID&lt;/md-perm&gt;</item>
/// </list>
/// </param>
/// <param name="uuid">
Expand Down Expand Up @@ -2924,7 +2924,7 @@ System.Threading.Tasks.Task<FeishuResponse> PostImV1ChatsByChatIdTopNoticeDelete
/// <para>接口ID:6946222931479412737</para>
/// <para>接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/list</para>
/// <para>Authorization:tenant_access_token、user_access_token</para>
/// <para>获取用户或者机器人所在群列表。</para>
/// <para>根据使用的 access_token 获取用户或者机器人所在群列表。</para>
/// </summary>
/// <param name="user_id_type">
/// <para>必填:否</para>
Expand Down Expand Up @@ -2971,7 +2971,7 @@ System.Threading.Tasks.Task<FeishuResponse> PostImV1ChatsByChatIdTopNoticeDelete
/// <para>接口ID:6946222929790648348</para>
/// <para>接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/chat/search</para>
/// <para>Authorization:tenant_access_token、user_access_token</para>
/// <para>搜索对用户或机器人可见的群列表,包括:用户或机器人所在的群、对用户或机器人公开的群。</para>
/// <para>根据使用的 access_token 搜索对用户或机器人可见的群列表,包括:用户或机器人所在的群、对用户或机器人公开的群。</para>
/// <para>搜索可获得的群信息包括:群ID(chat_id)、群名称、群描述等。</para>
/// </summary>
/// <param name="user_id_type">
Expand Down Expand Up @@ -3262,19 +3262,13 @@ System.Threading.Tasks.Task<FeishuResponse> PatchImV1ChatsByChatIdMembersMeJoinA
/// <list type="bullet">
/// <item>user_id:以 user_id 来识别成员</item>
/// <item>union_id:以 union_id 来识别成员</item>
/// <item>open_id:以 open_id 来识别成员&lt;/md-enum-item&gt;**当值为 `user_id`,字段权限要求**:&lt;md-perm name="contact:user.employee_id:readonly" desc="获取用户 user ID" support_app_types="custom" tags=""&gt;获取用户 user ID&lt;/md-perm&gt;&lt;/md-td&gt;&lt;/md-tr&gt;</item>
/// <item>open_id:以 open_id 来识别成员&lt;/md-enum-item&gt; **当值为 `user_id`,字段权限要求**: &lt;md-perm name="contact:user.employee_id:readonly" desc="获取用户 user ID" support_app_types="custom" tags=""&gt;获取用户 user ID&lt;/md-perm&gt; &lt;/md-td&gt; &lt;/md-tr&gt;</item>
/// </list>
/// </param>
/// <param name="page_size">
/// <para>必填:否</para>
/// <para>分页大小</para>
/// <para>示例值:20

**默认值**:`20`

**数据校验规则**:

- 最大值:`100`</para>
/// <para>示例值:20 **默认值**:`20` **数据校验规则**: - 最大值:`100`</para>
/// <para>默认值:10</para>
/// </param>
/// <param name="page_token">
Expand Down Expand Up @@ -3902,7 +3896,7 @@ System.Threading.Tasks.Task<HttpResponseMessage> GetDriveV1MediasByFileTokenDown
/// <param name="extra">
/// <para>必填:否</para>
/// <para>拓展信息,比如对于拥有高级权限的 Bitable,在下载素材或者获取素材临时下载链接时,需要添加额外的`extra`作为 URL 查询参数进行鉴权。</para>
/// <para>示例值:[请参考-上传点类型及对应Extra说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/introduction)</para>
/// <para>示例值:[请参考-上传点类型及对应Extra说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/media/introduction)</para>
/// </param>
[HttpGet("/open-apis/drive/v1/medias/batch_get_tmp_download_url")]
System.Threading.Tasks.Task<FeishuResponse<Ccm.GetDriveV1MediasBatchGetTmpDownloadUrlResponseDto>> GetDriveV1MediasBatchGetTmpDownloadUrlAsync(
Expand Down Expand Up @@ -5158,10 +5152,7 @@ System.Threading.Tasks.Task<FeishuResponse> DeleteDriveV1PermissionsByTokenPubli
/// <param name="file_type">
/// <para>必填:是</para>
/// <para>文档类型</para>
/// <para>示例值:doc
docx
sheet
file</para>
/// <para>示例值:doc docx sheet file</para>
/// <list type="bullet">
/// <item>doc:文档类型</item>
/// <item>sheet:电子表格类型</item>
Expand Down Expand Up @@ -7733,7 +7724,7 @@ System.Threading.Tasks.Task<FeishuResponse> DeleteBitableV1AppsByAppTokenTablesB
/// <para>1.不支持对“人员”以及“关联字段”的属性进行过滤筛选,如人员的 OpenID。</para>
/// <para>2.指定筛选条件时,参数长度不超过2000个字符。</para>
/// <para>详细请参考[筛选条件支持的公式](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/filter)</para>
/// <para>示例值:AND(CurrentValue.[身高]>180, CurrentValue.[体重]>150)</para>
/// <para>示例值:AND(CurrentValue.[身高]&gt;180, CurrentValue.[体重]&gt;150)</para>
/// </param>
/// <param name="sort">
/// <para>必填:否</para>
Expand Down Expand Up @@ -12481,7 +12472,7 @@ System.Threading.Tasks.Task<FeishuResponse> PostApprovalV4ApprovalsByApprovalCod
/// <para>路径参数</para>
/// <para>必填:是</para>
/// <para>客服 id</para>
/// <para>示例值: 客服 id</para>
/// <para>示例值:客服 id</para>
/// </param>
[HttpGet("/open-apis/helpdesk/v1/agents/{agent_id}/schedules")]
System.Threading.Tasks.Task<FeishuResponse<Helpdesk.GetHelpdeskV1AgentsByAgentIdSchedulesResponseDto>> GetHelpdeskV1AgentsByAgentIdSchedulesAsync(
Expand All @@ -12497,7 +12488,7 @@ System.Threading.Tasks.Task<FeishuResponse> PostApprovalV4ApprovalsByApprovalCod
/// <param name="status">
/// <para>必填:是</para>
/// <para>筛选条件, 1 - online客服, 2 - offline(手动)客服, 3 - off duty(下班)客服, 4 - 移除客服</para>
/// <para>示例值:status=1&status=2</para>
/// <para>示例值:status=1&amp;status=2</para>
/// </param>
[HttpGet("/open-apis/helpdesk/v1/agent_schedules")]
System.Threading.Tasks.Task<FeishuResponse<Helpdesk.GetHelpdeskV1AgentSchedulesResponseDto>> GetHelpdeskV1AgentSchedulesAsync(
Expand Down
2 changes: 1 addition & 1 deletion src/Im/GetImV1ChatsResponseDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace FeishuNetSdk.Im;
/// <summary>
/// 获取用户或机器人所在的群列表 响应体
/// <para>获取用户或者机器人所在群列表。</para>
/// <para>根据使用的 access_token 获取用户或者机器人所在群列表。</para>
/// <para>接口ID:6946222931479412737</para>
/// <para>文档地址:https://open.feishu.cn/document/server-docs/group/chat/list</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2freference%2fim-v1%2fchat%2flist</para>
Expand Down
2 changes: 1 addition & 1 deletion src/Im/GetImV1ChatsSearchResponseDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace FeishuNetSdk.Im;
/// <summary>
/// 搜索对用户或机器人可见的群列表 响应体
/// <para>搜索对用户或机器人可见的群列表,包括:用户或机器人所在的群、对用户或机器人公开的群。</para>
/// <para>根据使用的 access_token 搜索对用户或机器人可见的群列表,包括:用户或机器人所在的群、对用户或机器人公开的群。</para>
/// <para>搜索可获得的群信息包括:群ID(chat_id)、群名称、群描述等。</para>
/// <para>接口ID:6946222929790648348</para>
/// <para>文档地址:https://open.feishu.cn/document/server-docs/group/chat/search</para>
Expand Down
Loading

0 comments on commit c789742

Please sign in to comment.