Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0
# 如果你文档需要 Git 子模块,取消注释下一行
# submodules: true

- name: 设置 pnpm
uses: pnpm/action-setup@v5


- name: 设置 Node.js
uses: actions/setup-node@v6
uses: pnpm/setup@v3
with:
node-version: 24
cache: pnpm

- name: 安装依赖
run: |
corepack enable
pnpm install --frozen-lockfile
runtime: node@26

- name: 构建文档
env:
Expand Down
20 changes: 7 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,12 @@
"docs:update-package": "pnpm dlx vp-update"
},
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.30",
"@vuepress/plugin-llms": "2.0.0-rc.130",
"sass-embedded": "^1.100.0",
"vue": "^3.5.40",
"vuepress": "2.0.0-rc.30",
"vuepress-theme-hope": "2.0.0-rc.107"
"@vuepress/bundler-vite": "2.0.0-rc.31",
"@vuepress/plugin-llms": "2.0.0-rc.142",
"sass-embedded": "^1.108.2",
"vue": "^3.5.46",
"vuepress": "2.0.0-rc.31",
"vuepress-theme-hope": "2.0.0-rc.110"
},
"pnpm": {
"onlyBuiltDependencies": [
"@parcel/watcher",
"esbuild"
]
},
"packageManager": "pnpm@9.15.5"
"packageManager": "pnpm@11.29.0"
}
2,380 changes: 1,410 additions & 970 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
allowBuilds:
'@parcel/watcher': true
esbuild: true
4 changes: 3 additions & 1 deletion src/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ export default sidebar({
"/api/web/v1/": "structure",
"/api/bot/": "structure",
"/api/web/": "structure",
"/api/bot/接入准备/": "structure",
"/api/bot/v1/": "structure",
"/awesome": false,
"/contribution_guide": false
});
12 changes: 1 addition & 11 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ export default hopeTheme({
footer: "云湖非官方 API 文档",
displayFooter: true,

// 加密配置
encrypt: {
config: {
"/demo/encrypt.html": {
hint: "Password: 1234",
password: "1234",
},
},
},

// 多语言配置
metaLocales: {
editLink: "在 GitHub 上编辑此页",
Expand All @@ -63,7 +53,7 @@ export default hopeTheme({
resolvePath: (file) => {
if (file.startsWith("@src"))
return file.replace("@src", path.resolve(__dirname, ".."));

return file;
},
},
Expand Down
4 changes: 4 additions & 0 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ footer: 使用 <a href="https://theme-hope.vuejs.press/zh/" target="_blank">VueP
**所有API信息仅限参考**
**所有API调用请遵循相关法律法规以及云湖的用户协议,本项目仅用于学习研究用途.**
**由于文档的特殊性,可能会因为某些原因随时停止服务.**

## 联系

- [GitHub](https://github.com/yh-Tpdev/yhchatAPI)
13 changes: 12 additions & 1 deletion src/awesome.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
title: Awesome 云湖 API
icon: eye

---

本文展示了一些使用了云湖 API 的开源项目,如果你也想将自己的项目加入以下列表,欢迎对 [本仓库](https://github.com/yh-Tpdev/yhchatAPI) 提出 Pull Request。
Expand All @@ -13,16 +12,23 @@ icon: eye
### TypeScript

- [NanoYunHu](https://github.com/TASA-Ed/nanoyunhu): 纯协议无头云湖实现(AGPL-3.0)
- [yunhu-richkobe](https://github.com/yibanm/yunhu-richkobe):云湖第三方客户端科比版(无许可证)

### Kotlin

- [Murexide](https://github.com/murexide-project/Murexide): 一个云湖第三方客户端,采用 Material 3 设计。(GPL-3.0)
- [Yhchat_MD3](https://github.com/Kauid323/Yhchat_MD3): 一个云湖第三方客户端,由ai强力驱动编写。(GPL-3.0)
- [yhtv](https://github.com/digitalbaka/yhtv):云湖电视版(MIT)

### Java

- [YunHuGram](https://github.com/Kauid323/YunHuGram): 基于 Telegram 的云湖第三方客户端(GPL-2.0)

### Go

- [Yunhu-MyGO](https://github.com/Kauid323/Yunhu-MyGO):基于 MyGo 的云湖(无许可证)
- [YunhuUser2Matrix](https://github.com/Kauid323/YunhuUser2Matrix):云湖 Matrix 服务端(GPL-3.0)

## 类型定义包

这些是云湖 API 的类型定义包,可以在项目中直接引用。虽然没有直接提供实现或对接功能,但可以帮助开发者快速编写使用云湖 API 的应用或适配器:
Expand All @@ -38,3 +44,8 @@ icon: eye
### Python

- [ErisPulse-YunhuUserAdapter](https://github.com/wsu2059q/ErisPulse-YunhuUserAdapter): 基于云湖用户账户而实现的 ErisPulse 适配器(GPL-3.0)
- [nonebot-adapter-yunhu)](https://github.com/molanp/nonebot-adapter-yunhu):云湖的NoneBot适配器(MIT)

### TypeScript

- [adapter-yunhupro](https://github.com/FLY1919/adapter-yunhupro):云湖koishi适配器(Apache-2.0)
8 changes: 4 additions & 4 deletions src/full.proto
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ message EditAvatarRequest {
// #region ClientsResponse
message ClientsResponse {
Status status = 1; // 响应状态
ClientsInfo devices = 2; // 设备列表(多个)
repeated ClientsInfo devices = 2; // 设备列表(多个)
}
// #endregion ClientsResponse

Expand Down Expand Up @@ -633,7 +633,7 @@ message ConversationListResponse {
// #endregion ConversationListResponse

// Friend
// #region AddressBookListRequest
// #region AddressBookListRequest
message AddressBookListRequest {
string md5 = 2; // 上一次通讯录的 MD5,如果和服务端一致则返回空列表
}
Expand Down Expand Up @@ -700,7 +700,7 @@ message RequestListResponse {
// #endregion RequestListResponse

// group-tag
// #region TagMemberRequest
// #region TagMemberRequest
message TagMemberRequest {
Data data = 2;
message Data {
Expand All @@ -715,7 +715,7 @@ message TagMemberRequest {
// group

// 获取群聊信息
// #region GroupInfoRequest
// #region GroupInfoRequest
message GroupInfoRequest {
string group_id = 2; // 群聊 ID
}
Expand Down