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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: enable upload when switching workspace (#6080)
Nathan.fooo40e627c303df
diff --git a/frontend/appflowy_tauri/src-tauri/Cargo.lock b/frontend/appflowy_tauri/src-tauri/Cargo.lockindex 6ccda20d20..482e1298fb 100644--- a/frontend/appflowy_tauri/src-tauri/Cargo.lock+++ b/frontend/appflowy_tauri/src-tauri/Cargo.lock@@ -172,7 +172,7 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"[[package]]name = "app-error"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bincode",@@ -192,7 +192,7 @@ dependencies = [[[package]]name = "appflowy-ai-client"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bytes",@@ -826,7 +826,7 @@ dependencies = [[[package]]name = "client-api"version = "0.2.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["again","anyhow",@@ -877,7 +877,7 @@ dependencies = [[[package]]name = "client-api-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["collab-entity","collab-rt-entity",@@ -890,7 +890,7 @@ dependencies = [[[package]]name = "client-websocket"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["futures-channel","futures-util",@@ -1138,7 +1138,7 @@ dependencies = [[[package]]name = "collab-rt-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bincode",@@ -1163,7 +1163,7 @@ dependencies = [[[package]]name = "collab-rt-protocol"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","async-trait",@@ -1426,7 +1426,7 @@ dependencies = ["cssparser-macros","dtoa-short","itoa 1.0.6",- "phf 0.11.2",+ "phf 0.8.0","smallvec",]@@ -1551,7 +1551,7 @@ checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308"[[package]]name = "database-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","app-error",@@ -3076,7 +3076,7 @@ dependencies = [[[package]]name = "gotrue"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","futures-util",@@ -3093,7 +3093,7 @@ dependencies = [[[package]]name = "gotrue-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","app-error",@@ -3525,7 +3525,7 @@ dependencies = [[[package]]name = "infra"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bytes",@@ -6122,7 +6122,7 @@ dependencies = [[[package]]name = "shared-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","app-error",diff --git a/frontend/appflowy_tauri/src-tauri/Cargo.toml b/frontend/appflowy_tauri/src-tauri/Cargo.tomlindex 6ccf03439c..5f072e8b38 100644--- a/frontend/appflowy_tauri/src-tauri/Cargo.toml+++ b/frontend/appflowy_tauri/src-tauri/Cargo.toml@@ -53,7 +53,7 @@ collab-user = { version = "0.2" }# Run the script:# scripts/tool/update_client_api_rev.sh new_rev_id# ⚠️⚠️⚠️️-client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "8cc410ce6542855b89f98f4c278049b7d679eb8f" }+client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "045b6f09cba572032bace149863427ab485cda01" }[dependencies]serde_json.workspace = truediff --git a/frontend/appflowy_web_app/src-tauri/Cargo.lock b/frontend/appflowy_web_app/src-tauri/Cargo.lockindex 23702a27ac..2909cc9dc5 100644--- a/frontend/appflowy_web_app/src-tauri/Cargo.lock+++ b/frontend/appflowy_web_app/src-tauri/Cargo.lock@@ -163,7 +163,7 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"[[package]]name = "app-error"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bincode",@@ -183,7 +183,7 @@ dependencies = [[[package]]name = "appflowy-ai-client"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bytes",@@ -800,7 +800,7 @@ dependencies = [[[package]]name = "client-api"version = "0.2.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["again","anyhow",@@ -851,7 +851,7 @@ dependencies = [[[package]]name = "client-api-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["collab-entity","collab-rt-entity",@@ -864,7 +864,7 @@ dependencies = [[[package]]name = "client-websocket"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["futures-channel","futures-util",@@ -1121,7 +1121,7 @@ dependencies = [[[package]]name = "collab-rt-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bincode",@@ -1146,7 +1146,7 @@ dependencies = [[[package]]name = "collab-rt-protocol"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","async-trait",@@ -1416,7 +1416,7 @@ dependencies = ["cssparser-macros","dtoa-short","itoa 1.0.10",- "phf 0.11.2",+ "phf 0.8.0","smallvec",]@@ -1541,7 +1541,7 @@ checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5"[[package]]name = "database-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","app-error",@@ -3143,7 +3143,7 @@ dependencies = [[[package]]name = "gotrue"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","futures-util",@@ -3160,7 +3160,7 @@ dependencies = [[[package]]name = "gotrue-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","app-error",@@ -3597,7 +3597,7 @@ dependencies = [[[package]]name = "infra"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bytes",@@ -6186,7 +6186,7 @@ dependencies = [[[package]]name = "shared-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","app-error",diff --git a/frontend/appflowy_web_app/src-tauri/Cargo.toml b/frontend/appflowy_web_app/src-tauri/Cargo.tomlindex 95c37548a9..241f843d40 100644--- a/frontend/appflowy_web_app/src-tauri/Cargo.toml+++ b/frontend/appflowy_web_app/src-tauri/Cargo.toml@@ -52,7 +52,7 @@ collab-user = { version = "0.2" }# Run the script:# scripts/tool/update_client_api_rev.sh new_rev_id# ⚠️⚠️⚠️️-client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "8cc410ce6542855b89f98f4c278049b7d679eb8f" }+client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "045b6f09cba572032bace149863427ab485cda01" }[dependencies]serde_json.workspace = truediff --git a/frontend/rust-lib/Cargo.lock b/frontend/rust-lib/Cargo.lockindex 76cac5197c..9d2b27e7ed 100644--- a/frontend/rust-lib/Cargo.lock+++ b/frontend/rust-lib/Cargo.lock@@ -163,7 +163,7 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"[[package]]name = "app-error"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bincode",@@ -183,7 +183,7 @@ dependencies = [[[package]]name = "appflowy-ai-client"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bytes",@@ -718,7 +718,7 @@ dependencies = [[[package]]name = "client-api"version = "0.2.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["again","anyhow",@@ -769,7 +769,7 @@ dependencies = [[[package]]name = "client-api-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["collab-entity","collab-rt-entity",@@ -782,7 +782,7 @@ dependencies = [[[package]]name = "client-websocket"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["futures-channel","futures-util",@@ -999,7 +999,7 @@ dependencies = [[[package]]name = "collab-rt-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bincode",@@ -1024,7 +1024,7 @@ dependencies = [[[package]]name = "collab-rt-protocol"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","async-trait",@@ -1375,7 +1375,7 @@ checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308"[[package]]name = "database-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","app-error",@@ -2754,7 +2754,7 @@ dependencies = [[[package]]name = "gotrue"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","futures-util",@@ -2771,7 +2771,7 @@ dependencies = [[[package]]name = "gotrue-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","app-error",@@ -3136,7 +3136,7 @@ dependencies = [[[package]]name = "infra"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","bytes",@@ -5344,7 +5344,7 @@ dependencies = [[[package]]name = "shared-entity"version = "0.1.0"-source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=8cc410ce6542855b89f98f4c278049b7d679eb8f#8cc410ce6542855b89f98f4c278049b7d679eb8f"+source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=045b6f09cba572032bace149863427ab485cda01#045b6f09cba572032bace149863427ab485cda01"dependencies = ["anyhow","app-error",diff --git a/frontend/rust-lib/Cargo.toml b/frontend/rust-lib/Cargo.tomlindex 54e9c6e2a6..1e5943e04c 100644--- a/frontend/rust-lib/Cargo.toml+++ b/frontend/rust-lib/Cargo.toml@@ -100,8 +100,8 @@ dashmap = "6.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 = "8cc410ce6542855b89f98f4c278049b7d679eb8f" }-client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "8cc410ce6542855b89f98f4c278049b7d679eb8f" }+client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "045b6f09cba572032bace149863427ab485cda01" }+client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "045b6f09cba572032bace149863427ab485cda01" }[profile.dev]opt-level = 0diff --git a/frontend/rust-lib/flowy-core/src/integrate/trait_impls.rs b/frontend/rust-lib/flowy-core/src/integrate/trait_impls.rsindex 963f7fe159..9c3d97c067 100644--- a/frontend/rust-lib/flowy-core/src/integrate/trait_impls.rs+++ b/frontend/rust-lib/flowy-core/src/integrate/trait_impls.rs@@ -1,19 +1,19 @@-use client_api::entity::search_dto::SearchDocumentResponseItem;-use flowy_search_pub::cloud::SearchCloudService;-use std::collections::HashMap;-use std::path::Path;-use std::sync::atomic::Ordering;-use std::sync::Arc;-use anyhow::Error;use client_api::collab_sync::{SinkConfig, SyncObject, SyncPlugin};use client_api::entity::ai_dto::{CompletionType, RepeatedRelatedQuestion};+use client_api::entity::search_dto::SearchDocumentResponseItem;use client_api::entity::ChatMessageType;use collab::core::origin::{CollabClient, CollabOrigin};use collab::entity::EncodedCollab;use collab::preclude::CollabPlugin;use collab_entity::CollabType;+use flowy_search_pub::cloud::SearchCloudService;use serde_json::Value;+use std::collections::HashMap;+use std::path::Path;+use std::sync::atomic::Ordering;+use std::sync::Arc;+use std::time::Duration;use tokio_stream::wrappers::WatchStream;use tracing::{debug, info};@@ -532,6 +532,7 @@ impl CollabCloudPluginProvider for ServerProvider {stream,Some(channel),ws_connect_state,+ Some(Duration::from_secs(60)),);plugins.push(Box::new(sync_plugin));},diff --git a/frontend/rust-lib/flowy-core/src/integrate/user.rs b/frontend/rust-lib/flowy-core/src/integrate/user.rsindex c165eda9c2..f382398e8f 100644--- a/frontend/rust-lib/flowy-core/src/integrate/user.rs+++ b/frontend/rust-lib/flowy-core/src/integrate/user.rs@@ -181,6 +181,7 @@ impl UserStatusCallback for UserStatusCallbackImpl {self.database_manager.initialize(user_id).await?;self.document_manager.initialize(user_id).await?;self.ai_manager.initialize(&user_workspace.id).await?;+ self.storage_manager.initialize(&user_workspace.id).await;Ok(())}diff --git a/frontend/rust-lib/flowy-error/src/code.rs b/frontend/rust-lib/flowy-error/src/code.rsindex 93fe6a88d6..85f1cc0303 100644--- a/frontend/rust-lib/flowy-error/src/code.rs+++ b/frontend/rust-lib/flowy-error/src/code.rs@@ -311,6 +311,9 @@ pub enum ErrorCode {#[error("In progress")]// when client receives InProgress, it should retryInProgress = 107,++ #[error("Upload part size exceeds the limit")]+ SingleUploadLimitExceeded = 108,}impl ErrorCode {diff --git a/frontend/rust-lib/flowy-error/src/errors.rs b/frontend/rust-lib/flowy-error/src/errors.rsindex 0092a38b00..515bbe4615 100644--- a/frontend/rust-lib/flowy-error/src/errors.rs+++ b/frontend/rust-lib/flowy-error/src/errors.rs@@ -74,6 +74,7 @@ impl FlowyError {pub fn is_file_limit_exceeded(&self) -> bool {self.code == ErrorCode::FileStorageLimitExceeded+ || self.code == ErrorCode::SingleUploadLimitExceeded}pub fn is_ai_response_limit_exceeded(&self) -> bool {diff --git a/frontend/rust-lib/flowy-error/src/impl_from/cloud.rs b/frontend/rust-lib/flowy-error/src/impl_from/cloud.rsindex c857fc7ec9..f60cc3bb19 100644--- a/frontend/rust-lib/flowy-error/src/impl_from/cloud.rs+++ b/frontend/rust-lib/flowy-error/src/impl_from/cloud.rs@@ -26,6 +26,7 @@ impl From<AppResponseError> for FlowyError {AppErrorCode::WorkspaceMemberLimitExceeded => ErrorCode::WorkspaceMemberLimitExceeded,AppErrorCode::AIResponseLimitExceeded => ErrorCode::AIResponseLimitExceeded,AppErrorCode::FileStorageLimitExceeded => ErrorCode::FileStorageLimitExceeded,+ AppErrorCode::SingleUploadLimitExceeded => ErrorCode::SingleUploadLimitExceeded,_ => ErrorCode::Internal,};diff --git a/frontend/rust-lib/flowy-storage/src/manager.rs b/frontend/rust-lib/flowy-storage/src/manager.rsindex d3772b43b0..fb4ff4a57a 100644--- a/frontend/rust-lib/flowy-storage/src/manager.rs+++ b/frontend/rust-lib/flowy-storage/src/manager.rs@@ -97,6 +97,10 @@ impl StorageManager {}}+ pub async fn initialize(&self, _workspace_id: &str) {+ self.enable_storage_write_access();+ }+pub fn update_network_reachable(&self, reachable: bool) {if reachable {self.uploader.resume();