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 Oct 19, 2024
1 parent 2d31cf7 commit dde9b27
Show file tree
Hide file tree
Showing 48 changed files with 1,394 additions and 353 deletions.
1 change: 1 addition & 0 deletions EventCallbackList.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
<tr><td>hire.ehr_import_task.imported_v1</td><td>EventV2Dto&lt;Hire.Events.HireEhrImportTaskImportedV1EventBodyDto&gt;</td><td>【招聘】导入 e-HR</td></tr>
<tr><td>hire.ehr_import_task_for_internship_offer.imported_v1</td><td>EventV2Dto&lt;Hire.Events.HireEhrImportTaskForInternshipOfferImportedV1EventBodyDto&gt;</td><td>【招聘】导入 e-HR(实习 Offer)</td></tr>
<tr><td>hire.referral_account.assets_update_v1</td><td>EventV2Dto&lt;Hire.Events.HireReferralAccountAssetsUpdateV1EventBodyDto&gt;</td><td>【招聘】内推账户余额变更</td></tr>
<tr><td>hire.talent.tag_subscription_v1</td><td>EventV2Dto&lt;Hire.Events.HireTalentTagSubscriptionV1EventBodyDto&gt;</td><td>【招聘】人才进展变更事件</td></tr>
<tr><td>hire.talent.deleted_v1</td><td>EventV2Dto&lt;Hire.Events.HireTalentDeletedV1EventBodyDto&gt;</td><td>【招聘】删除人才</td></tr>
<tr><td>hire.application.deleted_v1</td><td>EventV2Dto&lt;Hire.Events.HireApplicationDeletedV1EventBodyDto&gt;</td><td>【招聘】删除投递</td></tr>
<tr><td>hire.application.stage_changed_v1</td><td>EventV2Dto&lt;Hire.Events.HireApplicationStageChangedV1EventBodyDto&gt;</td><td>【招聘】投递阶段变更</td></tr>
Expand Down
106 changes: 67 additions & 39 deletions TenantAccessList.md

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions UserAccessList.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Created : 2024-06-24
//
// Last Modified By : yxr
// Last Modified On : 2024-06-24
// Last Modified On : 2024-10-18
// ************************************************************************
// <copyright file="GetAilyV1SessionsByAilySessionIdMessagesByAilyMessageIdResponseDto.cs" company="Vicente Yu">
// MIT
Expand All @@ -15,6 +15,10 @@ namespace FeishuNetSdk.Aily;
/// <summary>
/// 获取消息 响应体
/// <para>该 API 用于获取某个飞书智能伙伴应用的消息(Message)的详细信息;包括消息的内容、发送人等。</para>
/// <para>## 实体概念说明</para>
/// <para>- **会话**(Session):管理用户与 Aily 助手之间的交互会话;每次会话记录了用户发送给 Aily 助手的消息以及 Aily 助手的响应。</para>
/// <para>- **消息**(Message):消息可以包含文本、表格、图片等多种类型的内容。</para>
/// <para>- **运行**(Run):Aily 助手基于会话内消息进行意图判定、调用匹配的技能,并返回技能执行后的结果消息。</para>
/// <para>接口ID:7358047310868152324</para>
/// <para>文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-aily_message/get</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2faily-v1%2faily_session-aily_message%2fget</para>
Expand Down Expand Up @@ -144,6 +148,39 @@ public record AilyMessageFile
/// </summary>
[JsonPropertyName("created_at")]
public string? CreatedAt { get; set; }

/// <summary>
/// <para>文件预览链接</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("preview_url")]
public AilyMessageFilePreview? PreviewUrl { get; set; }

/// <summary>
/// <para>文件预览链接</para>
/// </summary>
public record AilyMessageFilePreview
{
/// <summary>
/// <para>文件的 URL</para>
/// <para>必填:是</para>
/// <para>示例值:http://path_to_file</para>
/// <para>最大长度:512</para>
/// <para>最小长度:0</para>
/// </summary>
[JsonPropertyName("url")]
public string Url { get; set; } = string.Empty;

/// <summary>
/// <para>url 过期时间,秒时间戳</para>
/// <para>必填:否</para>
/// <para>示例值:1719413169</para>
/// <para>最大长度:20</para>
/// <para>最小长度:0</para>
/// </summary>
[JsonPropertyName("expired_at")]
public string? ExpiredAt { get; set; }
}
}

/// <summary>
Expand Down Expand Up @@ -287,5 +324,13 @@ public record AilyMention
/// </summary>
[JsonPropertyName("created_at")]
public string? CreatedAt { get; set; }

/// <summary>
/// <para>状态</para>
/// <para>必填:否</para>
/// <para>示例值:COMPLETED</para>
/// </summary>
[JsonPropertyName("status")]
public string? Status { get; set; }
}
}
47 changes: 46 additions & 1 deletion src/Aily/GetAilyV1SessionsByAilySessionIdMessagesResponseDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Created : 2024-06-24
//
// Last Modified By : yxr
// Last Modified On : 2024-06-24
// Last Modified On : 2024-10-18
// ************************************************************************
// <copyright file="GetAilyV1SessionsByAilySessionIdMessagesResponseDto.cs" company="Vicente Yu">
// MIT
Expand All @@ -15,6 +15,10 @@ namespace FeishuNetSdk.Aily;
/// <summary>
/// 列出消息 响应体
/// <para>该 API 用于列出某个飞书智能伙伴应用的某个会话(Session)下消息(Message)的详细信息;包括消息的内容、发送人等。</para>
/// <para>## 实体概念说明</para>
/// <para>- **会话**(Session):管理用户与 Aily 助手之间的交互会话;每次会话记录了用户发送给 Aily 助手的消息以及 Aily 助手的响应。</para>
/// <para>- **消息**(Message):消息可以包含文本、表格、图片等多种类型的内容。</para>
/// <para>- **运行**(Run):Aily 助手基于会话内消息进行意图判定、调用匹配的技能,并返回技能执行后的结果消息。</para>
/// <para>接口ID:7358047310868168708</para>
/// <para>文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-aily_message/list</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2faily-v1%2faily_session-aily_message%2flist</para>
Expand Down Expand Up @@ -144,6 +148,39 @@ public record AilyMessageFile
/// </summary>
[JsonPropertyName("created_at")]
public string? CreatedAt { get; set; }

/// <summary>
/// <para>文件预览链接</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("preview_url")]
public AilyMessageFilePreview? PreviewUrl { get; set; }

/// <summary>
/// <para>文件预览链接</para>
/// </summary>
public record AilyMessageFilePreview
{
/// <summary>
/// <para>文件的 URL</para>
/// <para>必填:是</para>
/// <para>示例值:http://path_to_file</para>
/// <para>最大长度:512</para>
/// <para>最小长度:0</para>
/// </summary>
[JsonPropertyName("url")]
public string Url { get; set; } = string.Empty;

/// <summary>
/// <para>url 过期时间,秒时间戳</para>
/// <para>必填:否</para>
/// <para>示例值:1719413169</para>
/// <para>最大长度:20</para>
/// <para>最小长度:0</para>
/// </summary>
[JsonPropertyName("expired_at")]
public string? ExpiredAt { get; set; }
}
}

/// <summary>
Expand Down Expand Up @@ -287,6 +324,14 @@ public record AilyMention
/// </summary>
[JsonPropertyName("created_at")]
public string? CreatedAt { get; set; }

/// <summary>
/// <para>状态</para>
/// <para>必填:否</para>
/// <para>示例值:COMPLETED</para>
/// </summary>
[JsonPropertyName("status")]
public string? Status { get; set; }
}

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions src/Aily/GetAilyV1SessionsByAilySessionIdResponseDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public record AilySession
public string ModifiedAt { get; set; } = string.Empty;

/// <summary>
/// <para>会话的创建人</para>
/// <para>会话的创建人(Aily UserID)</para>
/// <para>必填:是</para>
/// <para>示例值:1794840334557292</para>
/// <para>最大长度:20</para>
Expand All @@ -74,7 +74,7 @@ public record AilySession
public string CreatedBy { get; set; } = string.Empty;

/// <summary>
/// <para>渠道上下文</para>
/// <para>可自行构造的 Context [上下文变量](https://aily.feishu.cn/hc/1u7kleqg/en70bqqj#6a446d5e);在 Workflow 技能中可消费这部分全局变量</para>
/// <para>必填:否</para>
/// <para>示例值:{}</para>
/// <para>最大长度:255</para>
Expand All @@ -84,7 +84,7 @@ public record AilySession
public string? ChannelContext { get; set; }

/// <summary>
/// <para>其他透传信息</para>
/// <para>会话的自定义变量内容,变量数据保存在服务端 Session 中,可在 `GetSession` 时原样返回,无需在 API 调用侧存储</para>
/// <para>必填:否</para>
/// <para>示例值:{}</para>
/// <para>最大长度:255</para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ namespace FeishuNetSdk.Aily;
/// <summary>
/// 获取运行 响应体
/// <para>该 API 用于获取某个飞书智能伙伴应用的运行(Run)的详细信息;包括运行的状态、结束时间等。</para>
/// <para>## 实体概念说明</para>
/// <para>- **会话**(Session):管理用户与 Aily 助手之间的交互会话;每次会话记录了用户发送给 Aily 助手的消息以及 Aily 助手的响应。</para>
/// <para>- **消息**(Message):消息可以包含文本、表格、图片等多种类型的内容。</para>
/// <para>- **运行**(Run):Aily 助手基于会话内消息进行意图判定、调用匹配的技能,并返回技能执行后的结果消息。</para>
/// <para>接口ID:7358047310868299780</para>
/// <para>文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-run/get</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2faily-v1%2faily_session-run%2fget</para>
Expand Down Expand Up @@ -74,7 +78,8 @@ public record GetAilyV1SessionsByAilySessionIdRunsByRunIdResponseDtoRun
public string SessionId { get; set; } = string.Empty;

/// <summary>
/// <para>状态</para>
/// <para>运行状态;详见 [Run 状态机说明](https://bytedance.larkoffice.com/wiki/UTU6wVTVGigefykjO1acAOOvnNc#part-LGZrdJTUFo5c8XxSpYXcm3oknEd)</para>
/// <para>- 对于 `COMPLETED` 状态的运行、可通过 `ListMessage` 接口获取 Bot 返回的消息内容。</para>
/// <para>必填:是</para>
/// <para>示例值:IN_PROGRESS</para>
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions src/Aily/GetAilyV1SessionsByAilySessionIdRunsResponseDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ namespace FeishuNetSdk.Aily;
/// <summary>
/// 列出运行 响应体
/// <para>该 API 用于列出某个飞书智能伙伴应用的运行(Run)的详细信息;包括状态、结束时间等。</para>
/// <para>## 实体概念说明</para>
/// <para>- **会话**(Session):管理用户与 Aily 助手之间的交互会话;每次会话记录了用户发送给 Aily 助手的消息以及 Aily 助手的响应。</para>
/// <para>- **消息**(Message):消息可以包含文本、表格、图片等多种类型的内容。</para>
/// <para>- **运行**(Run):Aily 助手基于会话内消息进行意图判定、调用匹配的技能,并返回技能执行后的结果消息。</para>
/// <para>接口ID:7358047310868201476</para>
/// <para>文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-run/list</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2faily-v1%2faily_session-run%2flist</para>
Expand Down
10 changes: 7 additions & 3 deletions src/Aily/PostAilyV1SessionsBodyDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@
namespace FeishuNetSdk.Aily;
/// <summary>
/// 创建会话 请求体
/// <para>该 API 用于创建与某个飞书智能伙伴应用的一次会话(Session);当创建会话成功后,可以发送消息、创建运行</para>
/// <para>该 API 用于创建与某个飞书智能伙伴应用的一次会话(Session);当创建会话成功后,可以发送消息、创建运行。</para>
/// <para>## 实体概念说明</para>
/// <para>- **会话**(Session):管理用户与 Aily 助手之间的交互会话;每次会话记录了用户发送给 Aily 助手的消息以及 Aily 助手的响应。</para>
/// <para>- **消息**(Message):消息可以包含文本、表格、图片等多种类型的内容。</para>
/// <para>- **运行**(Run):Aily 助手基于会话内消息进行意图判定、调用匹配的技能,并返回技能执行后的结果消息。</para>
/// <para>接口ID:7358047310868316164</para>
/// <para>文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session/create</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2faily-v1%2faily_session%2fcreate</para>
/// </summary>
public record PostAilyV1SessionsBodyDto
{
/// <summary>
/// <para>渠道上下文</para>
/// <para>可自行构造的 Context [上下文变量](https://aily.feishu.cn/hc/1u7kleqg/en70bqqj#6a446d5e);在 Workflow 技能中可消费这部分全局变量</para>
/// <para>必填:否</para>
/// <para>示例值:{}</para>
/// <para>最大长度:255</para>
Expand All @@ -32,7 +36,7 @@ public record PostAilyV1SessionsBodyDto
public string? ChannelContext { get; set; }

/// <summary>
/// <para>其他透传信息</para>
/// <para>会话的自定义变量内容,变量数据保存在服务端 Session 中,可在 `GetSession` 时原样返回,无需在 API 调用侧存储</para>
/// <para>必填:否</para>
/// <para>示例值:{}</para>
/// <para>最大长度:255</para>
Expand Down
10 changes: 8 additions & 2 deletions src/Aily/PostAilyV1SessionsByAilySessionIdMessagesBodyDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@ namespace FeishuNetSdk.Aily;
/// <summary>
/// 发送消息 请求体
/// <para>该 API 用于向某个飞书智能伙伴应用发送一条消息(Message);每个消息从属于一个活跃的会话(Session)。</para>
/// <para>## 实体概念说明</para>
/// <para>- **会话**(Session):管理用户与 Aily 助手之间的交互会话;每次会话记录了用户发送给 Aily 助手的消息以及 Aily 助手的响应。</para>
/// <para>- **消息**(Message):消息可以包含文本、表格、图片等多种类型的内容。</para>
/// <para>- **运行**(Run):Aily 助手基于会话内消息进行意图判定、调用匹配的技能,并返回技能执行后的结果消息。</para>
/// <para>接口ID:7358047310868283396</para>
/// <para>文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-aily_message/create</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2faily-v1%2faily_session-aily_message%2fcreate</para>
/// </summary>
public record PostAilyV1SessionsByAilySessionIdMessagesBodyDto
{
/// <summary>
/// <para>幂等id,同一 session 下相同的幂等 id 算一条消息,有效期72h</para>
/// <para>幂等 ID(如使用 UUID 生成器或时间戳),同一会话下相同的幂等 ID 视为同一个消息(72h)</para>
/// <para>必填:是</para>
/// <para>示例值:idempotent_id_1</para>
/// <para>最大长度:64</para>
Expand All @@ -32,7 +36,9 @@ public record PostAilyV1SessionsByAilySessionIdMessagesBodyDto
public string IdempotentId { get; set; } = string.Empty;

/// <summary>
/// <para>消息内容类型</para>
/// <para>消息的类型,包括 `MDX` | `TEXT` 等</para>
/// <para>- `MDX` 能够表达富文本信息结构,可参考 [Aily 消息节点 markdown 语法](https://bytedance.larkoffice.com/wiki/ZlHYw8jJci3o4dkkEZZcybM0nah)</para>
/// <para>- `TEXT` 作为纯文本进行处理</para>
/// <para>必填:是</para>
/// <para>示例值:MDX</para>
/// </summary>
Expand Down
47 changes: 46 additions & 1 deletion src/Aily/PostAilyV1SessionsByAilySessionIdMessagesResponseDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Created : 2024-06-24
//
// Last Modified By : yxr
// Last Modified On : 2024-06-24
// Last Modified On : 2024-10-18
// ************************************************************************
// <copyright file="PostAilyV1SessionsByAilySessionIdMessagesResponseDto.cs" company="Vicente Yu">
// MIT
Expand All @@ -15,6 +15,10 @@ namespace FeishuNetSdk.Aily;
/// <summary>
/// 发送消息 响应体
/// <para>该 API 用于向某个飞书智能伙伴应用发送一条消息(Message);每个消息从属于一个活跃的会话(Session)。</para>
/// <para>## 实体概念说明</para>
/// <para>- **会话**(Session):管理用户与 Aily 助手之间的交互会话;每次会话记录了用户发送给 Aily 助手的消息以及 Aily 助手的响应。</para>
/// <para>- **消息**(Message):消息可以包含文本、表格、图片等多种类型的内容。</para>
/// <para>- **运行**(Run):Aily 助手基于会话内消息进行意图判定、调用匹配的技能,并返回技能执行后的结果消息。</para>
/// <para>接口ID:7358047310868283396</para>
/// <para>文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/aily-v1/aily_session-aily_message/create</para>
/// <para>JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2faily-v1%2faily_session-aily_message%2fcreate</para>
Expand Down Expand Up @@ -144,6 +148,39 @@ public record AilyMessageFile
/// </summary>
[JsonPropertyName("created_at")]
public string? CreatedAt { get; set; }

/// <summary>
/// <para>文件预览链接</para>
/// <para>必填:否</para>
/// </summary>
[JsonPropertyName("preview_url")]
public AilyMessageFilePreview? PreviewUrl { get; set; }

/// <summary>
/// <para>文件预览链接</para>
/// </summary>
public record AilyMessageFilePreview
{
/// <summary>
/// <para>文件的 URL</para>
/// <para>必填:是</para>
/// <para>示例值:http://path_to_file</para>
/// <para>最大长度:512</para>
/// <para>最小长度:0</para>
/// </summary>
[JsonPropertyName("url")]
public string Url { get; set; } = string.Empty;

/// <summary>
/// <para>url 过期时间,秒时间戳</para>
/// <para>必填:否</para>
/// <para>示例值:1719413169</para>
/// <para>最大长度:20</para>
/// <para>最小长度:0</para>
/// </summary>
[JsonPropertyName("expired_at")]
public string? ExpiredAt { get; set; }
}
}

/// <summary>
Expand Down Expand Up @@ -287,5 +324,13 @@ public record AilyMention
/// </summary>
[JsonPropertyName("created_at")]
public string? CreatedAt { get; set; }

/// <summary>
/// <para>状态</para>
/// <para>必填:否</para>
/// <para>示例值:COMPLETED</para>
/// </summary>
[JsonPropertyName("status")]
public string? Status { get; set; }
}
}
Loading

0 comments on commit dde9b27

Please sign in to comment.