Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: update client api

Nathandbda1972d164
diff --git a/frontend/rust-lib/Cargo.lock b/frontend/rust-lib/Cargo.lock
index 65c6856c52..b9f836ec7e 100644
--- a/frontend/rust-lib/Cargo.lock
+++ b/frontend/rust-lib/Cargo.lock
@@ -493,7 +493,7 @@ checksum = "dcfed56ad506cb2c684a14971b8861fdc3baaaae314b9e5f9bb532cbe3ba7a4f"
[[package]]
name = "app-error"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"anyhow",
"bincode",
@@ -513,7 +513,7 @@ dependencies = [
[[package]]
name = "appflowy-ai-client"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"anyhow",
"bytes",
@@ -1159,7 +1159,7 @@ dependencies = [
[[package]]
name = "client-api"
version = "0.2.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"again",
"anyhow",
@@ -1214,7 +1214,7 @@ dependencies = [
[[package]]
name = "client-api-entity"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"collab-entity",
"collab-rt-entity",
@@ -1227,7 +1227,7 @@ dependencies = [
[[package]]
name = "client-websocket"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"futures-channel",
"futures-util",
@@ -1499,7 +1499,7 @@ dependencies = [
[[package]]
name = "collab-rt-entity"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"anyhow",
"bincode",
@@ -1521,7 +1521,7 @@ dependencies = [
[[package]]
name = "collab-rt-protocol"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"anyhow",
"async-trait",
@@ -1786,7 +1786,7 @@ dependencies = [
"cssparser-macros",
"dtoa-short",
"itoa",
- "phf 0.8.0",
+ "phf 0.11.2",
"smallvec",
]
@@ -1969,7 +1969,7 @@ checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308"
[[package]]
name = "database-entity"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"bincode",
"bytes",
@@ -3425,7 +3425,7 @@ dependencies = [
[[package]]
name = "gotrue"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"anyhow",
"getrandom 0.2.10",
@@ -3440,7 +3440,7 @@ dependencies = [
[[package]]
name = "gotrue-entity"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"app-error",
"jsonwebtoken",
@@ -4064,7 +4064,7 @@ dependencies = [
[[package]]
name = "infra"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"anyhow",
"bytes",
@@ -5146,7 +5146,7 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12"
dependencies = [
- "phf_macros",
+ "phf_macros 0.8.0",
"phf_shared 0.8.0",
"proc-macro-hack",
]
@@ -5166,6 +5166,7 @@ version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"
dependencies = [
+ "phf_macros 0.11.3",
"phf_shared 0.11.2",
]
@@ -5233,6 +5234,19 @@ dependencies = [
"syn 1.0.109",
]
+[[package]]
+name = "phf_macros"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216"
+dependencies = [
+ "phf_generator 0.11.2",
+ "phf_shared 0.11.2",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.94",
+]
+
[[package]]
name = "phf_shared"
version = "0.8.0"
@@ -6642,7 +6656,7 @@ dependencies = [
[[package]]
name = "shared-entity"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"anyhow",
"app-error",
@@ -8618,7 +8632,7 @@ dependencies = [
[[package]]
name = "workspace-template"
version = "0.1.0"
-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=5826bffefb2509dcfa8b2ea7bb4037ed9290b713#5826bffefb2509dcfa8b2ea7bb4037ed9290b713"
+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c7176311ca375a672bc01bec0baa101986af023f#c7176311ca375a672bc01bec0baa101986af023f"
dependencies = [
"anyhow",
"async-trait",
diff --git a/frontend/rust-lib/Cargo.toml b/frontend/rust-lib/Cargo.toml
index 341a962bd4..023d004ce8 100644
--- a/frontend/rust-lib/Cargo.toml
+++ b/frontend/rust-lib/Cargo.toml
@@ -108,9 +108,9 @@ af-local-ai = { version = "0.1" }
# Run the script.add_workspace_members:
# scripts/tool/update_client_api_rev.sh new_rev_id
# ⚠️⚠️⚠️️
-client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "5826bffefb2509dcfa8b2ea7bb4037ed9290b713" }
-client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "5826bffefb2509dcfa8b2ea7bb4037ed9290b713" }
-workspace-template = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "5826bffefb2509dcfa8b2ea7bb4037ed9290b713" }
+client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "c7176311ca375a672bc01bec0baa101986af023f" }
+client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "c7176311ca375a672bc01bec0baa101986af023f" }
+workspace-template = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "c7176311ca375a672bc01bec0baa101986af023f" }
[profile.dev]
opt-level = 0
diff --git a/frontend/rust-lib/flowy-folder/src/entities/view.rs b/frontend/rust-lib/flowy-folder/src/entities/view.rs
index 171bc39c7d..77e1dcb160 100644
--- a/frontend/rust-lib/flowy-folder/src/entities/view.rs
+++ b/frontend/rust-lib/flowy-folder/src/entities/view.rs
@@ -401,14 +401,10 @@ pub struct ViewIdPB {
#[pb(index = 1)]
#[validate(custom(function = "required_not_empty_str"))]
pub value: String,
-}
-
-impl std::convert::From<&str> for ViewIdPB {
- fn from(value: &str) -> Self {
- ViewIdPB {
- value: value.to_string(),
- }
- }
+ //
+ // #[pb(index = 2)]
+ // #[validate(custom(function = "required_not_empty_str"))]
+ // pub workspace_id: String,
}
#[derive(Default, ProtoBuf, Clone, Debug)]