Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
Chore: prune deps (#3390)
Sean Ayeda19963aa5f1
diff --git a/flake.nix b/flake.nixindex c9781cc8a2..988019a13f 100644--- a/flake.nix+++ b/flake.nix@@ -60,7 +60,12 @@sqlxFilter = path: _type: builtins.match ".*\\.sqlx/.*\\.json$" path != null;pdfiumFilter = path: _type: builtins.match ".*pdfium-lib/.*\\.(so|dylib)$" path != null;assetFilter = path: _type: builtins.match ".*\\.(md|html|txt|json|canvas|sql)$" path != null;- srcFilter = path: type: (sqlxFilter path type) || (pdfiumFilter path type) || (assetFilter path type) || (craneLib.filterCargoSources path type);+ srcFilter =+ path: type:+ (sqlxFilter path type)+ || (pdfiumFilter path type)+ || (assetFilter path type)+ || (craneLib.filterCargoSources path type);cloudStorageSrc = pkgs.lib.cleanSourceWith {src = ./rust/cloud-storage;filter = srcFilter;@@ -77,27 +82,26 @@cp -rT ${libreofficeBindingsSrc} $out/rs-libreoffice-bindings'';- commonArgs =- {- inherit src;- pname = "cloud-storage";- version = "0.1.0";- strictDeps = true;- buildInputs = libraries;- nativeBuildInputs = with pkgs; [ pkg-config ] ++ pkgs.lib.optionals isLinux [ mold ];- LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";- OPENSSL_NO_VENDOR = "1";- SQLX_OFFLINE = "true";- RUSTFLAGS = pkgs.lib.optionalString isLinux "-C link-arg=-fuse-ld=mold";- # Build deps + workspace + bins in dev profile so the test job (which runs- # `cargo nextest` outside the sandbox using the test profile, inheriting dev)- # can reuse the restored target/debug/ instead of recompiling all deps.- CARGO_PROFILE = "dev";- }- // pkgs.lib.optionalAttrs isLinux {- LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath libraries}";- BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.glibc.dev}/include -I${pkgs.gcc.cc}/lib/gcc/${pkgs.stdenv.hostPlatform.config}/${pkgs.gcc.version}/include";- };+ commonArgs = {+ inherit src;+ pname = "cloud-storage";+ version = "0.1.0";+ strictDeps = true;+ buildInputs = libraries;+ nativeBuildInputs = with pkgs; [ pkg-config ] ++ pkgs.lib.optionals isLinux [ mold ];+ LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";+ OPENSSL_NO_VENDOR = "1";+ SQLX_OFFLINE = "true";+ RUSTFLAGS = pkgs.lib.optionalString isLinux "-C link-arg=-fuse-ld=mold";+ # Build deps + workspace + bins in dev profile so the test job (which runs+ # `cargo nextest` outside the sandbox using the test profile, inheriting dev)+ # can reuse the restored target/debug/ instead of recompiling all deps.+ CARGO_PROFILE = "dev";+ }+ // pkgs.lib.optionalAttrs isLinux {+ LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath libraries}";+ BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.glibc.dev}/include -I${pkgs.gcc.cc}/lib/gcc/${pkgs.stdenv.hostPlatform.config}/${pkgs.gcc.version}/include";+ };# Pre-built third-party deps — Cachix caches this; hash is driven by Cargo.lock# (workspace member sources are stubbed by crane), so it survives most PRs.@@ -198,7 +202,8 @@cargoArtifacts = deployCargoArtifacts;pname = "cloud-storage-${serviceName}-binaries";doCheck = false;- cargoExtraArgs = "--locked " + pkgs.lib.concatMapStringsSep " " (binary: "--bin ${binary}") binaries;+ cargoExtraArgs =+ "--locked " + pkgs.lib.concatMapStringsSep " " (binary: "--bin ${binary}") binaries;CARGO_PROFILE = "release";installPhaseCommand = ''mkdir -p $out/bin@@ -211,20 +216,47 @@);deployServiceBinaryPackages = {- deploy-service-binaries-agent-schedule-service = deployServiceBinaryPackage "agent-schedule-service" [ "service" ];- deploy-service-binaries-authentication-service = deployServiceBinaryPackage "authentication-service" [ "authentication_service" ];- deploy-service-binaries-connection-gateway = deployServiceBinaryPackage "connection-gateway" [ "connection_gateway_service" ];- deploy-service-binaries-contacts-service = deployServiceBinaryPackage "contacts-service" [ "contacts_service" ];- deploy-service-binaries-convert-service = deployServiceBinaryPackage "convert-service" [ "convert_service" ];- deploy-service-binaries-document-cognition-service = deployServiceBinaryPackage "document-cognition-service" [ "document_cognition_service" ];- deploy-service-binaries-document-storage-service = deployServiceBinaryPackage "document-storage-service" [ "document_storage_service" ];- deploy-service-binaries-email-service = deployServiceBinaryPackage "email-service" [ "email_service" "pubsub_workers" ];- deploy-service-binaries-image-proxy-service = deployServiceBinaryPackage "image-proxy-service" [ "image_proxy_service" ];+ deploy-service-binaries-agent-schedule-service =+ deployServiceBinaryPackage "agent-schedule-service"+ [ "service" ];+ deploy-service-binaries-authentication-service =+ deployServiceBinaryPackage "authentication-service"+ [ "authentication_service" ];+ deploy-service-binaries-connection-gateway = deployServiceBinaryPackage "connection-gateway" [+ "connection_gateway_service"+ ];+ deploy-service-binaries-contacts-service = deployServiceBinaryPackage "contacts-service" [+ "contacts_service"+ ];+ deploy-service-binaries-convert-service = deployServiceBinaryPackage "convert-service" [+ "convert_service"+ ];+ deploy-service-binaries-document-cognition-service =+ deployServiceBinaryPackage "document-cognition-service"+ [ "document_cognition_service" ];+ deploy-service-binaries-document-storage-service =+ deployServiceBinaryPackage "document-storage-service"+ [ "document_storage_service" ];+ deploy-service-binaries-email-service = deployServiceBinaryPackage "email-service" [+ "email_service"+ "pubsub_workers"+ ];+ deploy-service-binaries-image-proxy-service = deployServiceBinaryPackage "image-proxy-service" [+ "image_proxy_service"+ ];deploy-service-binaries-mcp-server = deployServiceBinaryPackage "mcp-server" [ "mcp_service" ];- deploy-service-binaries-notification-service = deployServiceBinaryPackage "notification-service" [ "notification_service" ];- deploy-service-binaries-search-processing-service = deployServiceBinaryPackage "search-processing-service" [ "search_processing_service" ];- deploy-service-binaries-static-file-service = deployServiceBinaryPackage "static-file-service" [ "static_file_service" ];- deploy-service-binaries-unfurl-service = deployServiceBinaryPackage "unfurl-service" [ "unfurl_service" ];+ deploy-service-binaries-notification-service = deployServiceBinaryPackage "notification-service" [+ "notification_service"+ ];+ deploy-service-binaries-search-processing-service =+ deployServiceBinaryPackage "search-processing-service"+ [ "search_processing_service" ];+ deploy-service-binaries-static-file-service = deployServiceBinaryPackage "static-file-service" [+ "static_file_service"+ ];+ deploy-service-binaries-unfurl-service = deployServiceBinaryPackage "unfurl-service" [+ "unfurl_service"+ ];};shellTools =@@ -394,8 +426,7 @@letopenApiFiles = pkgs.lib.cleanSourceWith {src = ./js/app/packages/service-clients;- filter = path: type:- type == "directory" || pkgs.lib.hasSuffix "openapi.json" (baseNameOf path);+ filter = path: type: type == "directory" || pkgs.lib.hasSuffix "openapi.json" (baseNameOf path);};crateToDir = {document_storage_service = "service-storage";@@ -432,9 +463,15 @@};packages = {- inherit cargoArtifacts workspaceArtifacts openApiBins nextestArchive;+ inherit+ cargoArtifacts+ workspaceArtifacts+ openApiBins+ nextestArchive+ ;default = cargoArtifacts;- } // deployServiceBinaryPackages;+ }+ // deployServiceBinaryPackages;devShells = {default = pkgs.mkShell (diff --git a/rust/cloud-storage/Cargo.lock b/rust/cloud-storage/Cargo.lockindex 7025b676db..d4beb0936b 100644--- a/rust/cloud-storage/Cargo.lock+++ b/rust/cloud-storage/Cargo.lock@@ -77,7 +77,6 @@ dependencies = ["async-trait","attachment","chrono",- "const_format","futures","lazy_static","macro_user_id",@@ -172,9 +171,7 @@ dependencies = ["async-trait","axum","axum-macros",- "futures","macro_user_id",- "non_empty","schemars","serde","serde_json",@@ -2220,11 +2217,7 @@ dependencies = ["jsonwebtoken 10.3.0 (git+https://github.com/whutchinson98/jsonwebtoken)","last_online_tracker","macro_auth",- "macro_aws_config",- "macro_axum_utils",- "macro_cors","macro_db_client",- "macro_entrypoint","macro_env","macro_env_var","macro_middleware",@@ -2405,26 +2398,6 @@ version = "0.10.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"-[[package]]-name = "const_format"-version = "0.2.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "126f97965c8ad46d6d9163268ff28432e8f6a1196a55578867832e3049df63dd"-dependencies = [- "const_format_proc_macros",-]--[[package]]-name = "const_format_proc_macros"-version = "0.2.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744"-dependencies = [- "proc-macro2",- "quote",- "unicode-xid",-]-[[package]]name = "constant_time_eq"version = "0.3.1"@@ -3210,11 +3183,9 @@ dependencies = ["chat","chrono","comms",- "comms_db_client","comms_service_client","connection_gateway","cookie",- "document_cognition_service_client","document_storage_service_client","documents","doppleganger",@@ -3239,7 +3210,6 @@ dependencies = ["macro_env","macro_env_var","macro_middleware",- "macro_project_utils","macro_user_id","macro_uuid","mcp_client",@@ -3285,21 +3255,6 @@ dependencies = ["uuid",]-[[package]]-name = "document_cognition_service_client"-version = "0.1.0"-dependencies = [- "anyhow",- "chrono",- "model",- "models_dcs",- "reqwest 0.13.3",- "serde",- "serde_json",- "thiserror 2.0.17",- "tracing",-]-[[package]]name = "document_storage_service"version = "0.1.0"@@ -3320,7 +3275,6 @@ dependencies = ["call","channels","chrono",- "clap","cloudfront_sign","comms","comms_db_client",@@ -3668,7 +3622,6 @@ dependencies = ["aws-sdk-dynamodb","chrono","macro_aws_config",- "model","models_bulk_upload","s3_key","strum",@@ -3803,7 +3756,6 @@ dependencies = ["filter_ast","frecency","futures",- "gmail_client","item_filters","macro_db_migrator","macro_user_id",@@ -3811,7 +3763,6 @@ dependencies = ["model-entity","model-error-response","model_user",- "models_grouping","models_pagination","non_empty","recursion",@@ -4093,7 +4044,6 @@ version = "0.1.0"dependencies = ["anyhow","axum",- "axum-extra","cached","cool_asserts","macro_db_migrator",@@ -4427,7 +4377,6 @@ dependencies = ["filter_ast","item_filters","macro_db_migrator",- "macro_env_var","macro_user_id","mockall","model-entity",@@ -4441,7 +4390,6 @@ dependencies = ["strum","thiserror 2.0.17","tokio",- "tower 0.5.3","tracing","uuid",]@@ -4769,7 +4717,6 @@ dependencies = ["anyhow","base64 0.22.1","chrono",- "futures","jsonwebtoken 10.3.0 (git+https://github.com/whutchinson98/jsonwebtoken)","mail-builder","mockall",@@ -6290,7 +6237,6 @@ dependencies = ["thiserror 2.0.17","tokio","tracing",- "urlencoding",][[package]]@@ -6300,7 +6246,6 @@ dependencies = ["aws-config","aws-sdk-s3","aws-sdk-sqs",- "macro_env","macro_env_var","thiserror 2.0.17","tracing",@@ -6321,15 +6266,6 @@ dependencies = ["redis",]-[[package]]-name = "macro_client_errors"-version = "0.1.0"-dependencies = [- "anyhow",- "serde",- "thiserror 2.0.17",-]-[[package]]name = "macro_cors"version = "0.1.0"@@ -6353,7 +6289,6 @@ dependencies = ["futures","macro_user_id","macro_uuid",- "mockall","model","model-entity","model_file_type",@@ -6362,7 +6297,6 @@ dependencies = ["models_opensearch","models_pagination","models_permissions",- "models_search","models_team","non_empty","rand 0.9.4",@@ -6442,7 +6376,6 @@ dependencies = ["model-entity","model_user","models_permissions",- "permission","remote_env_var","serde","serde_json",@@ -6475,14 +6408,6 @@ dependencies = ["anyhow","redis","tokio",- "tracing",-]--[[package]]-name = "macro_service_client"-version = "0.1.0"-dependencies = [- "anyhow",][[package]]@@ -6845,11 +6770,9 @@ dependencies = [name = "mention_utils"version = "0.1.0"dependencies = [- "anyhow","cool_asserts","macro_user_id","nom 8.0.0",- "regex","serde","serde_json","thiserror 2.0.17",@@ -6992,7 +6915,6 @@ dependencies = ["serde","serde_json","serde_repr",- "serde_with","sqlx","strum","thiserror 2.0.17",@@ -7097,14 +7019,8 @@ dependencies = [name = "models_dcs"version = "0.1.0"dependencies = [- "ai",- "chrono",- "model",- "models_permissions","serde","serde_json",- "sqlx",- "unfurl_service","utoipa",]@@ -7151,7 +7067,6 @@ name = "models_opensearch"version = "0.1.0"dependencies = ["serde",- "serde_json","strum",]@@ -7188,13 +7103,11 @@ dependencies = [name = "models_properties"version = "0.1.0"dependencies = [- "anyhow","chrono","serde","serde_json","serde_with","sqlx",- "strum","thiserror 2.0.17","tracing","utoipa",@@ -7341,7 +7254,6 @@ dependencies = ["macro_user_id","models_opensearch","models_search_cursor",- "non_empty","regex","serde","sqlx",@@ -7519,7 +7431,6 @@ dependencies = ["macro_db_migrator","macro_user_id","macro_uuid",- "model","model-entity","model_notifications","models_pagination",@@ -7574,7 +7485,6 @@ dependencies = ["chrono","decode_jwt","email_formatting",- "email_validator","hmac 0.12.1","http-body-util","itertools 0.14.0",@@ -7607,7 +7517,6 @@ dependencies = ["secretsmanager_client","serde","serde_json",- "ses_client","sha2 0.10.9","sns_client","sqlx",@@ -7946,7 +7855,6 @@ dependencies = ["thiserror 2.0.17","tokio","tracing",- "unicode-segmentation","uuid",]@@ -8282,15 +8190,6 @@ version = "2.3.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"-[[package]]-name = "permission"-version = "0.1.0"-dependencies = [- "model",- "models_permissions",- "tracing",-]-[[package]]name = "petgraph"version = "0.6.5"@@ -8705,7 +8604,6 @@ dependencies = ["futures","macro_db_client","macro_db_migrator",- "macro_middleware","macro_user_id","macro_uuid","mockall",@@ -8730,16 +8628,13 @@ name = "properties_db_client"version = "0.1.0"dependencies = ["anyhow",- "cached","chrono",- "futures","macro_db_migrator","macro_uuid","models_properties","serde","serde_json","sqlx",- "strum","thiserror 2.0.17","tracing","uuid",@@ -8751,7 +8646,6 @@ version = "0.1.0"dependencies = ["anyhow","async-trait",- "aws-sdk-secretsmanager","aws-sdk-sqs","axum","chrono",@@ -8760,9 +8654,6 @@ dependencies = ["http-body-util","last_online_tracker","macro_auth",- "macro_aws_config",- "macro_cors",- "macro_entrypoint","macro_env","macro_middleware","macro_user_id",@@ -8774,7 +8665,6 @@ dependencies = ["notification","properties","properties_db_client",- "secretsmanager_client","serde","serde_json","serde_with",@@ -8785,9 +8675,7 @@ dependencies = ["tower 0.5.3","tower-http","tracing",- "tracing-tree","utoipa",- "utoipa-swagger-ui","uuid",]@@ -9508,7 +9396,6 @@ name = "roles_and_permissions"version = "0.1.0"dependencies = ["anyhow",- "async-trait","macro_db_migrator","macro_user_id","non_empty",@@ -9990,9 +9877,7 @@ dependencies = ["item_filters","macro_auth","macro_aws_config",- "macro_cors","macro_db_client",- "macro_entrypoint","macro_env","macro_middleware","macro_user_id",@@ -10018,7 +9903,6 @@ dependencies = ["tower-http","tracing","utoipa",- "utoipa-swagger-ui",][[package]]@@ -10090,7 +9974,6 @@ dependencies = [name = "secretsmanager_client"version = "0.1.0"dependencies = [- "anyhow","aws-sdk-secretsmanager","macro_env","mockall",@@ -10663,7 +10546,6 @@ version = "0.1.0"dependencies = ["anyhow","aws-sdk-sns",- "model-entity","serde","serde_json","tracing",@@ -10986,7 +10868,6 @@ dependencies = ["futures","model","models_email",- "models_opensearch","s3_key","serde","serde_json",@@ -11331,34 +11212,6 @@ version = "0.5.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683"-[[package]]-name = "test_build_full_pdf_modification_data"-version = "0.1.0"-dependencies = [- "anyhow",- "chrono",- "macro_db_client",- "macro_entrypoint",- "model",- "serde",- "serde_json",- "sqlx",- "tokio",-]--[[package]]-name = "test_pdf_modification_data_deserialize"-version = "0.1.0"-dependencies = [- "anyhow",- "chrono",- "model",- "serde",- "serde_json",- "sqlx",- "tokio",-]-[[package]]name = "thiserror"version = "1.0.69"@@ -12119,7 +11972,6 @@ dependencies = [name = "user_quota"version = "0.1.0"dependencies = [- "anyhow","serde","serde_json","utoipa",diff --git a/rust/cloud-storage/Cargo.toml b/rust/cloud-storage/Cargo.tomlindex 108a5ab697..0f501d3568 100644--- a/rust/cloud-storage/Cargo.toml+++ b/rust/cloud-storage/Cargo.toml@@ -2,155 +2,59 @@resolver = "2"members = [- "ai",- "ai_tools",- "ai_toolset",- "analytics_client",- "anthropic",- "attachment","authentication_service",- "authentication_service_client","backfill_entity_access",- "cal",- "call",- "channels",- "chat",- "comms_db_client","comms_service",- "comms_service_client","connection_gateway",- "connection_gateway_client",- "connection_gateway_models",- "contacts","contacts_service","convert_service",- "cowlike","dataloss_prevention_handler",- "decode_jwt","delete_chat_handler","deleted_item_poller","document_cognition_service","document_cognition_service/load-test",- "document_cognition_service_client","document_storage_service",- "document_storage_service_client",- "document_sub_type","document_text_extractor","document_upload_finalizer_handler",- "documents","docx_unzip_handler",- "dynamodb_client",- "email_db_client","email_refresh_handler","email_scheduled_handler","email_service",- "email_service_client","email_sfs_delete_handler","email_suppression_handler",- "email_utils",- "email_validator",- "entity_access",- "entity_access_db_utils",- "entity_access_management",- "frecency",- "fusionauth",- "github",- "gmail_client","image_optimizer","image_proxy_service",- "integration_tests/*",- "invite_email",- "lambda_client",- "lexical_client",- "local_e2e_test_support",- "macro_auth",- "macro_aws_config",- "macro_cache_client",- "macro_client_errors",- "macro_cors",- "macro_db_client",- "macro_db_migrator",- "macro_env",- "macro_middleware",- "macro_project_utils",- "macro_redis",- "macro_service_client",- "macro_sha_count_client",- "macro_uuid",- "mcp_auth_proxy",- "mcp_client",+ "integration_tests/local_e2e","mcp_service","memory",- "mention_utils",- "mobile_welcome_email_db_client",- "model",- "model_notifications",- "model_user",- "models_dcs",- "models_email",- "models_grouping",- "models_opensearch",- "models_pagination",- "models_permissions",- "models_properties",- "models_search",- "models_search_cursor",- "models_sfs",- "models_soup",- "models_team",- "name_search",- "non_empty",- "notification",- "notification_db_client","notification_sandbox","notification_service",- "opensearch_client",- "opensearch_query_builder","organization_retention_handler","organization_retention_trigger",- "permission",- "properties",- "properties_db_client","properties_service",- "rate_limit",- "readonly_pool",- "referral",- "roles_and_permissions",- "s3_client",- "s3_key","scheduled_action","search_processing_service","search_service",- "search_service_client","search_upload_handler",- "secretsmanager_client","seed_cli",- "ses_client","sha_cleanup_worker",- "sns_client",- "soup",- "sqs_client",- "sqs_worker",- "static_file","static_file_service",- "static_file_service_client",- "sync_service",- "sync_service_client",- "system_properties",- "teams","tools/native_app_server","unfurl_service","upload_extractor_lambda_handler","upload_extractor_lambda_trigger","user_link_cleanup_handler",- "user_quota","worker_trigger",][workspace.dependencies]anyhow = "1.0.100"askama = "0.14"-async-openai = { version = "0.36.1", features = ["byot", "chat-completion", "completions"] }+async-openai = { version = "0.36.1", features = [+ "byot",+ "chat-completion",+ "completions",+] }async-stream = "0.3.6"async-trait = "0.1.86"aws-config = { version = "1.8.16", features = ["behavior-version-latest"] }@@ -191,10 +95,10 @@ jsonwebtoken = { git = "https://github.com/whutchinson98/jsonwebtoken", featureslambda_runtime = "0.13.0"lazy_static = "1.5.0"livekit-api = { version = "0.4.16", default-features = false, features = [- "services-tokio","access-token",- "webhooks","rustls-tls-webpki-roots",+ "services-tokio",+ "webhooks",] }livekit-protocol = "0.7.2"log = "0.4.26"@@ -203,22 +107,28 @@ nom = "8"opentelemetry = "0.31.0"opentelemetry-otlp = { version = "0.31.0", default-features = false, features = ["grpc-tonic",- "trace",- "metrics",- "logs","internal-logs",+ "logs",+ "metrics",+ "trace",] }opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"] }ordered-float = "5"paste = "1"pdfium-render = { version = "0.8.28" }+pgvector = { version = "0.4", features = ["postgres", "sqlx"] }quote = "1"rand = "0.9.0"recursion = "0.5.4"redis = "1.0.3"regex = "1.11.1"+reqwest = { version = "0.13", default-features = false, features = [+ "form",+ "hickory-dns",+ "json",+ "rustls",+] }rmcp = "1.6.0"-reqwest = { version = "0.13", default-features = false, features = ["rustls", "form", "hickory-dns", "json"] }rootcause = { version = "0.12" }schemars = { version = "1.0.4", features = ["chrono04", "uuid1"] }semver = { version = "1", features = ["serde"] }@@ -235,15 +145,16 @@ sqlx = { version = "0.8.6", features = ["uuid",] }sqlx-core = { version = "0.8.6" }-pgvector = { version = "0.4", features = ["sqlx", "postgres"] }strum = { version = "0.27.1", features = ["derive"] }thiserror = "2.0.0"time = "0.3.37"tokio = { version = "1.43.0", features = ["macros", "rt-multi-thread"] }tokio-stream = { version = "0.1.17" }-tokio-tungstenite = { version = "0.28", default-features = false, features = ["connect", "rustls-tls-webpki-roots"] }+tokio-tungstenite = { version = "0.28", default-features = false, features = [+ "connect",+ "rustls-tls-webpki-roots",+] }tokio-util = "0.7.13"-tungstenite = { version = "0.28", features = ["url"] }tower = { version = "0.5.1", features = ["util"] }tower-http = { version = "0.6.1", features = ["compression-gzip",@@ -254,6 +165,7 @@ tracing = "0.1.44"tracing-opentelemetry = "0.32.1"tracing-subscriber = { version = "0.3.22", features = ["env-filter", "json"] }tracing-tree = "0.4.0"+tungstenite = { version = "0.28", features = ["url"] }unsynn = "0.3"urlencoding = "2.1.3"utoipa = { version = "5.4.0", features = [diff --git a/rust/cloud-storage/ai/Cargo.toml b/rust/cloud-storage/ai/Cargo.tomlindex 36bbf5e7ec..89e0badb36 100644--- a/rust/cloud-storage/ai/Cargo.toml+++ b/rust/cloud-storage/ai/Cargo.toml@@ -16,7 +16,6 @@ async-openai = { workspace = true }async-stream = { workspace = true }async-trait = { workspace = true }chrono = { workspace = true }-const_format = "0.2.34"futures = { workspace = true }lazy_static = { workspace = true }rand.workspace = truediff --git a/rust/cloud-storage/ai_toolset/Cargo.toml b/rust/cloud-storage/ai_toolset/Cargo.tomlindex 903c66a47d..6e48be488b 100644--- a/rust/cloud-storage/ai_toolset/Cargo.toml+++ b/rust/cloud-storage/ai_toolset/Cargo.toml@@ -6,7 +6,6 @@ publish = false[dependencies]serde_json = { workspace = true }-futures = { workspace = true }serde = { workspace = true }utoipa = { workspace = true }schemars = { workspace = true }@@ -17,4 +16,3 @@ macro_user_id = { path = "../macro_user_id" }axum = { workspace = true }axum-macros = { workspace = true }tracing = { workspace = true }-non_empty = { path = "../non_empty" }diff --git a/rust/cloud-storage/comms_service/Cargo.toml b/rust/cloud-storage/comms_service/Cargo.tomlindex 173fc6dc5f..0f8e42a6cf 100644--- a/rust/cloud-storage/comms_service/Cargo.toml+++ b/rust/cloud-storage/comms_service/Cargo.toml@@ -39,11 +39,7 @@ http-body-util = { workspace = true }jsonwebtoken.workspace = truelast_online_tracker = { path = "../last_online_tracker" }macro_auth = { path = "../macro_auth" }-macro_aws_config = { path = "../macro_aws_config" }-macro_axum_utils = { path = "../macro_axum_utils" }-macro_cors = { path = "../macro_cors" }macro_db_client = { path = "../macro_db_client" }-macro_entrypoint = { path = "../macro_entrypoint" }macro_env = { path = "../macro_env" }macro_env_var = { path = "../macro_env_var" }macro_middleware = { path = "../macro_middleware", default-features = false, features = [diff --git a/rust/cloud-storage/document_cognition_service/Cargo.toml b/rust/cloud-storage/document_cognition_service/Cargo.tomlindex a0f660d21f..878d80702a 100644--- a/rust/cloud-storage/document_cognition_service/Cargo.toml+++ b/rust/cloud-storage/document_cognition_service/Cargo.toml@@ -46,7 +46,6 @@ comms = { path = "../comms", features = ["outbound", "attachment"] }comms_service_client = { path = "../comms_service_client" }connection_gateway = { path = "../connection_gateway" }cookie = { workspace = true }-document_cognition_service_client = { path = "../document_cognition_service_client" }document_storage_service_client = { path = "../document_storage_service_client" }documents = { path = "../documents", features = ["ai_tools", "attachment"] }doppleganger = { workspace = true }@@ -74,7 +73,6 @@ macro_middleware = { path = "../macro_middleware", default-features = false, fea"cloud_storage","user_permissions",] }-macro_project_utils = { path = "../macro_project_utils" }macro_user_id = { path = "../macro_user_id" }macro_uuid = { path = "../macro_uuid" }mcp_client = { path = "../mcp_client" }@@ -99,7 +97,6 @@ regex = { workspace = true }reqwest.workspace = trueroles_and_permissions = { path = "../roles_and_permissions", default-features = false }schemars = { workspace = true }-comms_db_client = { path = "../comms_db_client" }search_service_client = { path = "../search_service_client" }secretsmanager_client = { path = "../secretsmanager_client" }serde = { workspace = true }diff --git a/rust/cloud-storage/document_cognition_service_client/Cargo.toml b/rust/cloud-storage/document_cognition_service_client/Cargo.tomldeleted file mode 100644index 536611337e..0000000000--- a/rust/cloud-storage/document_cognition_service_client/Cargo.toml+++ /dev/null@@ -1,16 +0,0 @@-[package]-edition = "2024"-name = "document_cognition_service_client"-publish = false-version = "0.1.0"--[dependencies]-anyhow = { workspace = true }-chrono = { workspace = true }-model = { path = "../model" }-models_dcs = { path = "../models_dcs" }-reqwest = { workspace = true }-serde = { workspace = true }-serde_json = { workspace = true }-thiserror = { workspace = true }-tracing = { workspace = true }diff --git a/rust/cloud-storage/document_cognition_service_client/src/chat.rs b/rust/cloud-storage/document_cognition_service_client/src/chat.rsdeleted file mode 100644index f694e4ef51..0000000000--- a/rust/cloud-storage/document_cognition_service_client/src/chat.rs+++ /dev/null@@ -1,59 +0,0 @@-use super::DocumentCognitionServiceClient;-use crate::error::DcsClientError;-use model::chat::ChatHistory;-use models_dcs::api::ChatHistoryBatchMessagesRequest;--impl DocumentCognitionServiceClient {- #[tracing::instrument(skip(self, jwt_token))]- pub async fn get_chat_history_external(- &self,- chat_id: &str,- jwt_token: &str,- ) -> Result<ChatHistory, DcsClientError> {- tracing::info!(- "dcs get chat history request (external) for chat_id: {}",- chat_id- );-- let res = self- .client- .get(format!("{}/chats/history/{}", self.url, chat_id))- .header("Authorization", format!("Bearer {}", jwt_token))- .send()- .await- .map_err(|e| DcsClientError::RequestBuildError {- details: e.to_string(),- })?;-- Self::handle_response(res, "chat history retrieval").await- }-- #[tracing::instrument(skip(self, jwt_token))]- pub async fn get_chat_history_for_messages_external(- &self,- message_ids: &[String],- jwt_token: &str,- ) -> Result<ChatHistory, DcsClientError> {- let request = ChatHistoryBatchMessagesRequest {- message_ids: message_ids.to_vec(),- };-- tracing::info!(- "dcs get chat history for messages request (external): {:?}",- request- );-- let res = self- .client- .post(format!("{}/chats/history_batch_messages", self.url))- .header("Authorization", format!("Bearer {}", jwt_token))- .json(&request)- .send()- .await- .map_err(|e| DcsClientError::RequestBuildError {- details: e.to_string(),- })?;-- Self::handle_response(res, "chat history batch messages retrieval").await- }-}diff --git a/rust/cloud-storage/document_cognition_service_client/src/constants.rs b/rust/cloud-storage/document_cognition_service_client/src/constants.rsdeleted file mode 100644index bda9353ea0..0000000000--- a/rust/cloud-storage/document_cognition_service_client/src/constants.rs+++ /dev/null@@ -1 +0,0 @@-pub static INTERNAL_AUTH_HEADER_KEY: &str = "x-internal-auth-key";diff --git a/rust/cloud-storage/document_cognition_service_client/src/error.rs b/rust/cloud-storage/document_cognition_service_client/src/error.rsdeleted file mode 100644index a0ef8cc158..0000000000--- a/rust/cloud-storage/document_cognition_service_client/src/error.rs+++ /dev/null@@ -1,24 +0,0 @@-#[derive(thiserror::Error, Debug, serde::Serialize)]-#[serde(tag = "type")]-pub enum DcsClientError {- #[error("unauthorized: {details}")]- Unauthorized { details: String },- #[error("access denied: {details}")]- Forbidden { details: String },- #[error("not found: {details}")]- NotFound { details: String },- #[error("internal server error: {details}")]- InternalServerError { details: String },- #[error("unable to build request: {details}")]- RequestBuildError { details: String },- #[error("{message}")]- Generic { message: String },-}--impl From<anyhow::Error> for DcsClientError {- fn from(err: anyhow::Error) -> Self {- DcsClientError::Generic {- message: err.to_string(),- }- }-}diff --git a/rust/cloud-storage/document_cognition_service_client/src/lib.rs b/rust/cloud-storage/document_cognition_service_client/src/lib.rsdeleted file mode 100644index 811db4de68..0000000000--- a/rust/cloud-storage/document_cognition_service_client/src/lib.rs+++ /dev/null@@ -1,96 +0,0 @@-pub mod chat;-pub(crate) mod constants;-pub mod error;--use constants::INTERNAL_AUTH_HEADER_KEY;-use error::DcsClientError;-use serde::de::DeserializeOwned;--pub struct DocumentCognitionServiceClient {- url: String,- client: reqwest::Client,-}--//bals-impl DocumentCognitionServiceClient {- pub fn new(internal_auth_key: String, url: String) -> Self {- let mut headers = reqwest::header::HeaderMap::new();- headers.insert(INTERNAL_AUTH_HEADER_KEY, internal_auth_key.parse().unwrap());-- let client = reqwest::Client::builder()- .default_headers(headers)- .build()- .unwrap();-- Self { url, client }- }-- /// Common helper method for handling DCS API responses- pub(crate) async fn handle_response<T: DeserializeOwned>(- res: reqwest::Response,- operation: &str,- ) -> Result<T, DcsClientError> {- match res.status() {- reqwest::StatusCode::OK => {- tracing::trace!("{} successful", operation);- let result = res.json::<T>().await.map_err(|e| DcsClientError::Generic {- message: e.to_string(),- })?;- Ok(result)- }- reqwest::StatusCode::UNAUTHORIZED => {- tracing::error!("unauthorized for {}", operation);- let error_details = Self::extract_error_message(res).await;- Err(DcsClientError::Unauthorized {- details: error_details,- })- }- reqwest::StatusCode::FORBIDDEN => {- tracing::error!("forbidden for {}", operation);- let error_details = Self::extract_error_message(res).await;- Err(DcsClientError::Forbidden {- details: error_details,- })- }- reqwest::StatusCode::NOT_FOUND => {- tracing::error!("not found for {}", operation);- let error_details = Self::extract_error_message(res).await;- Err(DcsClientError::NotFound {- details: error_details,- })- }- reqwest::StatusCode::INTERNAL_SERVER_ERROR => {- tracing::error!("internal server error for {}", operation);- let error_details = Self::extract_error_message(res).await;- Err(DcsClientError::InternalServerError {- details: error_details,- })- }- _ => {- tracing::error!("unexpected status {} for {}", res.status(), operation);- let error_details = Self::extract_error_message(res).await;- Err(DcsClientError::Generic {- message: error_details,- })- }- }- }-- async fn extract_error_message(res: reqwest::Response) -> String {- // Try to parse as JSON error response first- let text = match res.text().await {- Ok(text) => text,- Err(e) => return format!("Failed to read error response: {}", e),- };-- // Try to parse as JSON and extract the error field- if let Ok(json_value) = serde_json::from_str::<serde_json::Value>(&text)- && let Some(error_msg) = json_value.get("error").and_then(|e| e.as_str())- {- return error_msg.to_string();- }-- // Fallback to raw text response- text- }-}diff --git a/rust/cloud-storage/document_storage_service/Cargo.toml b/rust/cloud-storage/document_storage_service/Cargo.tomlindex 5ba74056b3..8516fd6f9b 100644--- a/rust/cloud-storage/document_storage_service/Cargo.toml+++ b/rust/cloud-storage/document_storage_service/Cargo.toml@@ -39,7 +39,6 @@ cal = { path = "../cal", features = ["axum", "outbound"] }call = { path = "../call" }channels = { path = "../channels", features = ["inbound", "outbound"] }chrono = { workspace = true }-clap = { workspace = true }cloudfront_sign = { workspace = true }comms = { path = "../comms", features = ["outbound"] }comms_db_client = { path = "../comms_db_client" }diff --git a/rust/cloud-storage/dynamodb_client/Cargo.toml b/rust/cloud-storage/dynamodb_client/Cargo.tomlindex 6a97380ede..28259e0239 100644--- a/rust/cloud-storage/dynamodb_client/Cargo.toml+++ b/rust/cloud-storage/dynamodb_client/Cargo.toml@@ -12,7 +12,6 @@ anyhow = { workspace = true }aws-sdk-dynamodb = { workspace = true }macro_aws_config = { path = "../macro_aws_config" }chrono = { workspace = true }-model = { path = "../model" }models_bulk_upload = { path = "../models_bulk_upload" }s3_key = { path = "../s3_key" }strum = { workspace = true }diff --git a/rust/cloud-storage/email/Cargo.toml b/rust/cloud-storage/email/Cargo.tomlindex cac2f246c7..8b703ae845 100644--- a/rust/cloud-storage/email/Cargo.toml+++ b/rust/cloud-storage/email/Cargo.toml@@ -33,7 +33,7 @@ axum = ["model_user/axum","models_pagination/axum",]-gmail_token = ["dep:authentication_service_client", "dep:gmail_client", "dep:redis", "ports"]+gmail_token = ["dep:authentication_service_client", "dep:redis", "ports"]inbound = ["ports"]outbound = ["dep:sqlx", "ports"]ports = ["dep:tokio", "frecency/ports"]@@ -54,7 +54,6 @@ either = { workspace = true }email_utils = { path = "../email_utils" }filter_ast = { path = "../filter_ast" }frecency = { path = "../frecency" }-gmail_client = { path = "../gmail_client", optional = true }item_filters = { path = "../item_filters" }macro_user_id = { path = "../macro_user_id" }macro_uuid = { path = "../macro_uuid" }@@ -62,7 +61,6 @@ model-entity = { path = "../model-entity" }non_empty = { path = "../non_empty", optional = true }model-error-response = { path = "../model-error-response", optional = true }model_user = { path = "../model_user", optional = true }-models_grouping = { path = "../models_grouping" }models_pagination = { path = "../models_pagination" }recursion = { workspace = true }schemars = { workspace = true, optional = true, features = ["uuid1"] }diff --git a/rust/cloud-storage/entity_access/Cargo.toml b/rust/cloud-storage/entity_access/Cargo.tomlindex 3f40af3e22..3b01985910 100644--- a/rust/cloud-storage/entity_access/Cargo.toml+++ b/rust/cloud-storage/entity_access/Cargo.toml@@ -7,7 +7,6 @@ version = "0.1.0"[features]axum = ["dep:axum",- "dep:axum-extra","dep:model","dep:model-error-response","dep:model_user",@@ -37,7 +36,6 @@ tokio = { workspace = true, optional = true }# Axum dependencies (for inbound)axum = { workspace = true, optional = true }-axum-extra = { workspace = true, optional = true }model = { path = "../model", optional = true }model-error-response = { path = "../model-error-response", optional = true }model_user = { path = "../model_user", optional = true, features = ["axum"] }diff --git a/rust/cloud-storage/frecency/Cargo.toml b/rust/cloud-storage/frecency/Cargo.tomlindex e78372fd9d..a2459831b2 100644--- a/rust/cloud-storage/frecency/Cargo.toml+++ b/rust/cloud-storage/frecency/Cargo.toml@@ -18,7 +18,6 @@ chrono = { workspace = true, features = ["serde"] }cowlike = { path = "../cowlike" }filter_ast = { path = "../filter_ast" }item_filters = { path = "../item_filters" }-macro_env_var = { path = "../macro_env_var", optional = true }macro_user_id = { path = "../macro_user_id" }mockall = { workspace = true, optional = true }model-entity = { path = "../model-entity" }@@ -31,7 +30,6 @@ sqlx = { workspace = true, optional = true }strum = { workspace = true, features = ["derive"] }thiserror = { workspace = true }tokio = { workspace = true, optional = true, features = ["sync", "time"] }-tower = { workspace = true, optional = true }tracing = { workspace = true, optional = true }[dev-dependencies]diff --git a/rust/cloud-storage/gmail_client/Cargo.toml b/rust/cloud-storage/gmail_client/Cargo.tomlindex 4855ac592f..026828377a 100644--- a/rust/cloud-storage/gmail_client/Cargo.toml+++ b/rust/cloud-storage/gmail_client/Cargo.toml@@ -11,7 +11,6 @@ gmail_test = []anyhow = { workspace = true }base64 = { workspace = true }chrono = { workspace = true }-futures = { workspace = true }jsonwebtoken = { workspace = true }mail-builder = "0.4.3"mockall = { workspace = true }diff --git a/rust/cloud-storage/macro_auth/Cargo.toml b/rust/cloud-storage/macro_auth/Cargo.tomlindex eaf4012282..9ae3da4593 100644--- a/rust/cloud-storage/macro_auth/Cargo.toml+++ b/rust/cloud-storage/macro_auth/Cargo.toml@@ -24,4 +24,3 @@ serde_json = { workspace = true }thiserror = { workspace = true }tokio = { workspace = true, features = ["macros"] }tracing = { workspace = true }-urlencoding = { workspace = true }diff --git a/rust/cloud-storage/macro_aws_config/Cargo.toml b/rust/cloud-storage/macro_aws_config/Cargo.tomlindex 3d48e9ccea..743da2c634 100644--- a/rust/cloud-storage/macro_aws_config/Cargo.toml+++ b/rust/cloud-storage/macro_aws_config/Cargo.toml@@ -10,7 +10,6 @@ sqs = ["dep:aws-sdk-sqs"][dependencies]aws-config = { workspace = true }-macro_env = { path = "../macro_env" }macro_env_var = { path = "../macro_env_var" }thiserror = { workspace = true }tracing = { workspace = true }diff --git a/rust/cloud-storage/macro_client_errors/Cargo.toml b/rust/cloud-storage/macro_client_errors/Cargo.tomldeleted file mode 100644index fc4efc7a8b..0000000000--- a/rust/cloud-storage/macro_client_errors/Cargo.toml+++ /dev/null@@ -1,10 +0,0 @@-[package]-edition = "2024"-name = "macro_client_errors"-publish = false-version = "0.1.0"--[dependencies]-anyhow = { workspace = true }-serde = { workspace = true }-thiserror = { workspace = true }diff --git a/rust/cloud-storage/macro_client_errors/src/lib.rs b/rust/cloud-storage/macro_client_errors/src/lib.rsdeleted file mode 100644index 7a420037d9..0000000000--- a/rust/cloud-storage/macro_client_errors/src/lib.rs+++ /dev/null@@ -1,33 +0,0 @@-#[derive(thiserror::Error, Debug, serde::Serialize)]-#[serde(tag = "type")]-pub enum MacroClientError {- #[error("unauthorized")]- Unauthorized,- #[error("not found")]- NotFound,- #[error("internal server error: {details}")]- InternalServerError { details: String },- #[error("unable to build request: {details}")]- RequestBuildError { details: String },- #[error("an unknown error occurred")]- Generic(GenericErrorResponse),-}--#[derive(serde::Serialize, Debug)]-pub struct GenericErrorResponse {- pub message: String,-}--impl From<anyhow::Error> for GenericErrorResponse {- fn from(err: anyhow::Error) -> Self {- Self {- message: err.to_string(),- }- }-}--impl From<anyhow::Error> for MacroClientError {- fn from(err: anyhow::Error) -> Self {- MacroClientError::Generic(GenericErrorResponse::from(err))- }-}diff --git a/rust/cloud-storage/macro_db_client/Cargo.toml b/rust/cloud-storage/macro_db_client/Cargo.tomlindex 34f39f6a68..91bd1c0363 100644--- a/rust/cloud-storage/macro_db_client/Cargo.toml+++ b/rust/cloud-storage/macro_db_client/Cargo.toml@@ -21,7 +21,6 @@ entity_access_db_utils = { path = "../entity_access_db_utils" }futures = { workspace = true }macro_user_id = { path = "../macro_user_id" }macro_uuid = { path = "../macro_uuid" }-mockall = { workspace = true }model = { path = "../model" }model-entity = { path = "../model-entity" }model_file_type = { path = "../model_file_type" }@@ -32,7 +31,6 @@ models_entity_access_management = { path = "../models_entity_access_management",models_opensearch = { path = "../models_opensearch" }models_pagination = { path = "../models_pagination" }models_permissions = { path = "../models_permissions" }-models_search = { path = "../models_search" }models_team = { path = "../models_team", optional = true }non_empty = { path = "../non_empty" }rand = { workspace = true, optional = true }diff --git a/rust/cloud-storage/macro_env_var/Cargo.toml b/rust/cloud-storage/macro_env_var/Cargo.tomlindex 716ff02fb7..40e8e1e108 100644--- a/rust/cloud-storage/macro_env_var/Cargo.toml+++ b/rust/cloud-storage/macro_env_var/Cargo.toml@@ -10,4 +10,6 @@ test-comptime = [][dependencies]paste = { workspace = true }thiserror = { workspace = true }++[dev-dependencies]tracing = { workspace = true }diff --git a/rust/cloud-storage/macro_middleware/Cargo.toml b/rust/cloud-storage/macro_middleware/Cargo.tomlindex e7191a390a..94ab1db43a 100644--- a/rust/cloud-storage/macro_middleware/Cargo.toml+++ b/rust/cloud-storage/macro_middleware/Cargo.toml@@ -11,7 +11,6 @@ cloud_storage = ["dep:entity_access_db_utils","dep:macro_user_id","dep:model_user",- "dep:permission","macro_db_client",]default = ["all"]@@ -38,7 +37,6 @@ model = { path = "../model" }model-entity = { path = "../model-entity" }model_user = { path = "../model_user", features = ["axum"], optional = true }models_permissions = { path = "../models_permissions" }-permission = { path = "../permission", optional = true }remote_env_var = { path = "../remote_env_var" }serde = { workspace = true }serde_json = { workspace = true }diff --git a/rust/cloud-storage/macro_redis/Cargo.toml b/rust/cloud-storage/macro_redis/Cargo.tomlindex 1e74547dbc..9029490700 100644--- a/rust/cloud-storage/macro_redis/Cargo.toml+++ b/rust/cloud-storage/macro_redis/Cargo.toml@@ -8,4 +8,3 @@ version = "0.1.0"anyhow = { workspace = true }redis = { workspace = true, features = ["tokio-rustls-comp"] }tokio = { workspace = true }-tracing = { workspace = true }diff --git a/rust/cloud-storage/macro_service_client/Cargo.toml b/rust/cloud-storage/macro_service_client/Cargo.tomldeleted file mode 100644index c4f0c37fd0..0000000000--- a/rust/cloud-storage/macro_service_client/Cargo.toml+++ /dev/null@@ -1,8 +0,0 @@-[package]-edition = "2024"-name = "macro_service_client"-publish = false-version = "0.1.0"--[dependencies]-anyhow = { workspace = true }diff --git a/rust/cloud-storage/macro_service_client/src/lib.rs b/rust/cloud-storage/macro_service_client/src/lib.rsdeleted file mode 100644index d1cdfd9dfb..0000000000--- a/rust/cloud-storage/macro_service_client/src/lib.rs+++ /dev/null@@ -1,5 +0,0 @@-use std::future::Future;--pub trait AssertHealth {- fn assert_health(&self) -> impl Future<Output = Result<(), anyhow::Error>>;-}diff --git a/rust/cloud-storage/mention_utils/Cargo.toml b/rust/cloud-storage/mention_utils/Cargo.tomlindex 5e09b795c5..afe3f232f1 100644--- a/rust/cloud-storage/mention_utils/Cargo.toml+++ b/rust/cloud-storage/mention_utils/Cargo.toml@@ -5,10 +5,8 @@ publish = falseversion = "0.1.0"[dependencies]-anyhow = { workspace = true }macro_user_id = { path = "../macro_user_id" }nom = { workspace = true }-regex = { workspace = true }serde = { workspace = true }serde_json = { workspace = true }thiserror = { workspace = true }diff --git a/rust/cloud-storage/model/Cargo.toml b/rust/cloud-storage/model/Cargo.tomlindex a83472e384..f17f2bea46 100644--- a/rust/cloud-storage/model/Cargo.toml+++ b/rust/cloud-storage/model/Cargo.toml@@ -24,7 +24,6 @@ schemars = { workspace = true }serde = { workspace = true }serde_json = { workspace = true, features = ["raw_value"] }serde_repr = { workspace = true }-serde_with = { workspace = true }sqlx = { workspace = true }strum = { workspace = true }thiserror.workspace = truediff --git a/rust/cloud-storage/models_dcs/Cargo.toml b/rust/cloud-storage/models_dcs/Cargo.tomlindex 1158201e6f..897dc32d82 100644--- a/rust/cloud-storage/models_dcs/Cargo.toml+++ b/rust/cloud-storage/models_dcs/Cargo.toml@@ -5,12 +5,6 @@ publish = falseversion = "0.1.0"[dependencies]-ai = { path = "../ai" }-chrono = { workspace = true }-model = { path = "../model" }-models_permissions = { path = "../models_permissions" }serde = { workspace = true }serde_json = { workspace = true }-sqlx = { workspace = true }-unfurl_service = { path = "../unfurl_service" }utoipa = { workspace = true }diff --git a/rust/cloud-storage/models_opensearch/Cargo.toml b/rust/cloud-storage/models_opensearch/Cargo.tomlindex 1852f89f75..845f391176 100644--- a/rust/cloud-storage/models_opensearch/Cargo.toml+++ b/rust/cloud-storage/models_opensearch/Cargo.toml@@ -6,5 +6,4 @@ version = "0.1.0"[dependencies]serde = { workspace = true }-serde_json = { workspace = true }strum = { workspace = true }diff --git a/rust/cloud-storage/models_properties/Cargo.toml b/rust/cloud-storage/models_properties/Cargo.tomlindex ca8e62716d..72639da10c 100644--- a/rust/cloud-storage/models_properties/Cargo.toml+++ b/rust/cloud-storage/models_properties/Cargo.toml@@ -5,13 +5,11 @@ publish = falseversion = "0.1.0"[dependencies]-anyhow = { workspace = true }chrono = { workspace = true }serde = { workspace = true }serde_json = { workspace = true }serde_with = { workspace = true }sqlx = { workspace = true }-strum = { workspace = true }thiserror = { workspace = true }tracing = { workspace = true }utoipa = { workspace = true }diff --git a/rust/cloud-storage/name_search/Cargo.toml b/rust/cloud-storage/name_search/Cargo.tomlindex 64293d8745..13909bedda 100644--- a/rust/cloud-storage/name_search/Cargo.toml+++ b/rust/cloud-storage/name_search/Cargo.toml@@ -5,13 +5,11 @@ publish = falseversion = "0.1.0"[dependencies]-anyhow = { workspace = true }cached = { workspace = true }chrono = { workspace = true }macro_user_id = { path = "../macro_user_id" }models_opensearch = { path = "../models_opensearch" }models_search_cursor = { path = "../models_search_cursor" }-non_empty = { path = "../non_empty" }regex = { workspace = true }serde = { workspace = true }sqlx = { workspace = true }@@ -20,5 +18,6 @@ tracing = { workspace = true }uuid = { workspace = true }[dev-dependencies]+anyhow = { workspace = true }macro_db_migrator = { path = "../macro_db_migrator" }tokio = { workspace = true }diff --git a/rust/cloud-storage/notification_db_client/Cargo.toml b/rust/cloud-storage/notification_db_client/Cargo.tomlindex 8b16957a89..f8b33aec67 100644--- a/rust/cloud-storage/notification_db_client/Cargo.toml+++ b/rust/cloud-storage/notification_db_client/Cargo.toml@@ -9,7 +9,6 @@ anyhow = { workspace = true }chrono = { workspace = true }macro_user_id = { path = "../macro_user_id" }macro_uuid = { path = "../macro_uuid" }-model = { path = "../model" }model-entity = { path = "../model-entity" }model_notifications = { path = "../model_notifications" }models_pagination = { path = "../models_pagination" }diff --git a/rust/cloud-storage/notification_service/Cargo.toml b/rust/cloud-storage/notification_service/Cargo.tomlindex a0464362ec..dbd98501bb 100644--- a/rust/cloud-storage/notification_service/Cargo.toml+++ b/rust/cloud-storage/notification_service/Cargo.toml@@ -28,7 +28,6 @@ axum = { workspace = true }chrono = { workspace = true }decode_jwt = { path = "../decode_jwt" }email_formatting = { path = "../email_formatting" }-email_validator = { path = "../email_validator" }hmac = { workspace = true }http-body-util = { workspace = true }itertools = { workspace = true }@@ -63,7 +62,6 @@ regex = { workspace = true }secretsmanager_client = { path = "../secretsmanager_client" }serde = { workspace = true }serde_json = { workspace = true }-ses_client = { path = "../ses_client" }sha2 = { workspace = true }sns_client = { path = "../sns_client" }sqlx = { workspace = true }diff --git a/rust/cloud-storage/opensearch_client/Cargo.toml b/rust/cloud-storage/opensearch_client/Cargo.tomlindex 667ffed8c2..00f4456e5b 100644--- a/rust/cloud-storage/opensearch_client/Cargo.toml+++ b/rust/cloud-storage/opensearch_client/Cargo.toml@@ -23,5 +23,4 @@ serde_json = { workspace = true }strum = { workspace = true }thiserror = { workspace = true }tracing = { workspace = true }-unicode-segmentation = { workspace = true }uuid = { workspace = true }diff --git a/rust/cloud-storage/permission/Cargo.toml b/rust/cloud-storage/permission/Cargo.tomldeleted file mode 100644index a25c38f2bb..0000000000--- a/rust/cloud-storage/permission/Cargo.toml+++ /dev/null@@ -1,10 +0,0 @@-[package]-edition = "2024"-name = "permission"-publish = false-version = "0.1.0"--[dependencies]-model = { path = "../model" }-models_permissions = { path = "../models_permissions" }-tracing = { workspace = true }diff --git a/rust/cloud-storage/permission/src/access_level_v2.rs b/rust/cloud-storage/permission/src/access_level_v2.rsdeleted file mode 100644index 2e97e43b58..0000000000--- a/rust/cloud-storage/permission/src/access_level_v2.rs+++ /dev/null@@ -1,509 +0,0 @@-use std::collections::HashMap;--use models_permissions::share_permission::access_level::AccessLevel;-use models_permissions::share_permission::user_permission::{UserPermission, UsersPermission};-/// Ensures that the user has at least the minimum access level to the item-pub fn has_access(- user_id: &str,- user_permission: &UserPermission,- minimum_access_level: AccessLevel,-) -> bool {- match minimum_access_level {- AccessLevel::Owner => has_owner_access(user_id, user_permission),- AccessLevel::Edit => has_edit_access(user_id, user_permission),- AccessLevel::Comment => has_comment_access(user_id, user_permission),- AccessLevel::View => has_view_access(user_id, user_permission),- }-}--#[tracing::instrument(skip(permissions), fields(share_permission_id=?permissions.id))]-pub fn access_level_from_permissions(- user_id: &str,- permissions: &UserPermission,-) -> Option<AccessLevel> {- // There is no higher level of access so we can short circuit early here- if permissions.owner == user_id {- return Some(AccessLevel::Owner);- }-- let mut access_level: Option<AccessLevel> = permissions.channel_access_level;-- if permissions.is_public {- if let Some(level) = permissions.public_access_level.as_ref() {- // If the public access level is set, we need to see if it's higher than the current- // channel access level- access_level = Some(ensure_max_access_level(access_level.as_ref(), level));- } else {- tracing::warn!("we have public access boolean without access level set");- // There should always be a public access level- access_level = Some(AccessLevel::View);- }- }-- access_level-}--/// Returns true if the user has view access to the item-pub fn has_view_access(user_id: &str, user_permission: &UserPermission) -> bool {- match access_level_from_permissions(user_id, user_permission) {- Some(_access_level) => true,- None => false,- }-}--pub fn has_comment_access(user_id: &str, user_permission: &UserPermission) -> bool {- match access_level_from_permissions(user_id, user_permission) {- Some(AccessLevel::Owner | AccessLevel::Edit | AccessLevel::Comment) => true,- Some(AccessLevel::View) => false,- None => false,- }-}--/// Returns true if the user has edit access to the item-pub fn has_edit_access(user_id: &str, user_permission: &UserPermission) -> bool {- match access_level_from_permissions(user_id, user_permission) {- Some(AccessLevel::Owner | AccessLevel::Edit) => true,- Some(AccessLevel::Comment | AccessLevel::View) => false,- None => false,- }-}--/// Returns true if the user has owner access to the item-pub fn has_owner_access(user_id: &str, user_permission: &UserPermission) -> bool {- match access_level_from_permissions(user_id, user_permission) {- Some(AccessLevel::Owner) => true,- Some(_) => false,- None => false,- }-}--/// Ensures that the users have at least the minimum access level to the item-/// Returns a map of user ids to booleans indicating if the user has access-pub fn has_access_users(- user_ids: &Vec<String>,- users_permission: &UsersPermission,- minimum_access_level: AccessLevel,-) -> HashMap<String, bool> {- match minimum_access_level {- AccessLevel::Owner => has_owner_access_users(user_ids, users_permission),- AccessLevel::Edit => has_edit_access_users(user_ids, users_permission),- AccessLevel::Comment => has_comment_access_users(user_ids, users_permission),- AccessLevel::View => has_view_access_users(user_ids, users_permission),- }-}--/// maps user ids to access level-#[tracing::instrument(skip(permissions), fields(share_permission_id=?permissions.id))]-pub fn access_level_from_users_permissions(- user_ids: &Vec<String>,- permissions: &UsersPermission,-) -> HashMap<String, Option<AccessLevel>> {- let mut access_levels: HashMap<String, Option<AccessLevel>> = HashMap::new();-- for user_id in user_ids {- let specific_user_permission = permissions- .user_permissions- .iter()- .find(|p| p.user_id == *user_id);-- let permission = UserPermission {- id: permissions.id.clone(),- is_public: permissions.is_public,- public_access_level: permissions.public_access_level,- owner: permissions.owner.clone(),- channel_access_level: specific_user_permission.and_then(|s| s.channel_access_level),- };-- let access_level = access_level_from_permissions(user_id, &permission);- access_levels.insert(user_id.clone(), access_level);- }-- access_levels-}--pub fn has_view_access_users(- user_ids: &Vec<String>,- users_permission: &UsersPermission,-) -> HashMap<String, bool> {- let access_levels = access_level_from_users_permissions(user_ids, users_permission);- access_levels- .iter()- .map(|(user_id, access_level)| (user_id.clone(), access_level.is_some()))- .collect()-}--pub fn has_comment_access_users(- user_ids: &Vec<String>,- users_permission: &UsersPermission,-) -> HashMap<String, bool> {- let access_levels = access_level_from_users_permissions(user_ids, users_permission);- access_levels- .iter()- .map(|(user_id, access_level)| {- (- user_id.clone(),- matches!(- access_level,- Some(AccessLevel::Owner | AccessLevel::Edit | AccessLevel::Comment)- ),- )- })- .collect()-}--pub fn has_edit_access_users(- user_ids: &Vec<String>,- users_permission: &UsersPermission,-) -> HashMap<String, bool> {- let access_levels = access_level_from_users_permissions(user_ids, users_permission);- access_levels- .iter()- .map(|(user_id, access_level)| {- (- user_id.clone(),- matches!(access_level, Some(AccessLevel::Owner | AccessLevel::Edit)),- )- })- .collect()-}--pub fn has_owner_access_users(- user_ids: &Vec<String>,- users_permission: &UsersPermission,-) -> HashMap<String, bool> {- let access_levels = access_level_from_users_permissions(user_ids, users_permission);- access_levels- .iter()- .map(|(user_id, access_level)| {- (- user_id.clone(),- matches!(access_level, Some(AccessLevel::Owner)),- )- })- .collect()-}--fn ensure_max_access_level(current: Option<&AccessLevel>, new: &AccessLevel) -> AccessLevel {- // If we currently have no access level, than any new access level is better- if current.is_none() {- return *new;- }-- let current = current.unwrap();-- // If current or new are owner, we return owner- if current == &AccessLevel::Owner || new == &AccessLevel::Owner {- return AccessLevel::Owner;- }- // If current or new are edit, we return edit- else if current == &AccessLevel::Edit || new == &AccessLevel::Edit {- return AccessLevel::Edit;- // If current or new are view, we return view- } else if current == &AccessLevel::View || new == &AccessLevel::View {- return AccessLevel::View;- }-- // Stay with view- *current-}--#[cfg(test)]-mod tests {- use super::*;- use models_permissions::share_permission::access_level::AccessLevel;- use models_permissions::share_permission::user_permission::UserPermission;-- #[test]- fn test_ensure_max_access_level() {- assert_eq!(- ensure_max_access_level(None, &AccessLevel::View),- AccessLevel::View- );- // Owner- assert_eq!(- ensure_max_access_level(Some(&AccessLevel::Owner), &AccessLevel::View),- AccessLevel::Owner- );- assert_eq!(- ensure_max_access_level(Some(&AccessLevel::Owner), &AccessLevel::Edit),- AccessLevel::Owner- );- assert_eq!(- ensure_max_access_level(Some(&AccessLevel::Owner), &AccessLevel::Owner),- AccessLevel::Owner- );-- // Edit- assert_eq!(- ensure_max_access_level(Some(&AccessLevel::Edit), &AccessLevel::Owner),- AccessLevel::Owner- );- assert_eq!(- ensure_max_access_level(Some(&AccessLevel::Edit), &AccessLevel::Edit),- AccessLevel::Edit- );- assert_eq!(- ensure_max_access_level(Some(&AccessLevel::Edit), &AccessLevel::View),- AccessLevel::Edit- );-- // View- assert_eq!(- ensure_max_access_level(Some(&AccessLevel::View), &AccessLevel::Owner),- AccessLevel::Owner- );- assert_eq!(- ensure_max_access_level(Some(&AccessLevel::View), &AccessLevel::Edit),- AccessLevel::Edit- );- assert_eq!(- ensure_max_access_level(Some(&AccessLevel::View), &AccessLevel::View),- AccessLevel::View- );- }-- #[test]- fn test_owner_access_level_from_permissions() {- let permissions = UserPermission {- id: "sp-1".to_string(),- is_public: false,- public_access_level: Some(AccessLevel::Edit),- channel_access_level: None,- owner: "macro|[email protected]".to_string(),- };-- let user_id = "macro|[email protected]";-- assert_eq!(- access_level_from_permissions(user_id, &permissions),- Some(AccessLevel::Owner)- );- }-- #[test]- fn test_edit_access_level_from_permissions() {- let permissions = UserPermission {- id: "sp-1".to_string(),- is_public: true,- public_access_level: Some(AccessLevel::Edit),- channel_access_level: None,- owner: "macro|[email protected]".to_string(),- };-- assert_eq!(- access_level_from_permissions("macro|[email protected]", &permissions),- Some(AccessLevel::Edit)- );-- let permissions = UserPermission {- id: "sp-1".to_string(),- is_public: false,- public_access_level: None,- channel_access_level: Some(AccessLevel::Edit),- owner: "macro|[email protected]".to_string(),- };-- assert_eq!(- access_level_from_permissions("macro|[email protected]", &permissions),- Some(AccessLevel::Edit)- );- }-- #[test]- fn test_view_access_level_from_permissions() {- let permissions = UserPermission {- id: "sp-1".to_string(),- is_public: true,- public_access_level: None,- channel_access_level: None,- owner: "macro|[email protected]".to_string(),- };-- let user_id = "macro|[email protected]";-- assert_eq!(- access_level_from_permissions(user_id, &permissions),- Some(AccessLevel::View)- );- }-- #[test]- fn test_no_access_level_from_permissions() {- let permissions = UserPermission {- id: "sp-1".to_string(),- is_public: false,- public_access_level: None,- channel_access_level: None,- owner: "macro|[email protected]".to_string(),- };-- let user_id = "macro|[email protected]";-- assert_eq!(access_level_from_permissions(user_id, &permissions), None);- }-- #[test]- fn test_gets_maximum_access_level() {- let permissions = UserPermission {- id: "sp-1".to_string(),- is_public: true,- public_access_level: Some(AccessLevel::View),- channel_access_level: Some(AccessLevel::Owner),- owner: "macro|[email protected]".to_string(),- };-- let user_id = "macro|[email protected]";-- assert_eq!(- access_level_from_permissions(user_id, &permissions),- Some(AccessLevel::Owner)- );- }-}--#[cfg(test)]-mod multi_user_tests {- use models_permissions::share_permission::user_permission::PerUserPermission;-- use super::*;- use models_permissions::share_permission::access_level::AccessLevel;- use std::collections::HashMap;- // For these tests, we’ll assume the following ordering for access levels:- // Owner > Edit > View > None.- //- // We construct a UsersPermission with:- // - is_public = true and public_access_level = Some(View) (so users without a specific permission get View)- // - owner = "user_owner"- // - A per-user vector that provides extra permissions for some users.- //- // Our test users:- // - "user_owner" is the owner.- // - "user1" has a specific permission with user_access_level = Some(Edit).- // - "user2" has a specific permission with user_access_level = Some(View) and organization_access_level = Some(Edit).- // - "user3" and "userX" have no per‑user entry, so they only get the public access level.-- fn test_users_permission_fixture() -> UsersPermission {- UsersPermission {- id: "sp-1".to_string(),- is_public: true,- public_access_level: Some(AccessLevel::View),- owner: "user_owner".to_string(),- user_permissions: vec![- PerUserPermission {- user_id: "user1".to_string(),- channel_access_level: Some(AccessLevel::Edit),- },- PerUserPermission {- user_id: "user2".to_string(),- channel_access_level: Some(AccessLevel::Edit),- },- // We include the owner explicitly in the per-user vector as well.- PerUserPermission {- user_id: "user_owner".to_string(),- channel_access_level: None,- },- ],- }- }-- #[test]- fn test_access_level_from_users_permissions() {- let users_permission = test_users_permission_fixture();- let user_ids = vec![- "user1".to_string(),- "user2".to_string(),- "user3".to_string(),- "user_owner".to_string(),- "userX".to_string(),- ];-- let result = access_level_from_users_permissions(&user_ids, &users_permission);-- // Expected:- // - For "user_owner": owner override → Some(Owner)- // - For "user1": specific permission gives Edit → Some(Edit)- // - For "user2": maximum between (View from user and Edit from org) is Edit → Some(Edit)- // - For "user3" and "userX": no per-user permission, so fall back to public access → Some(View)- let mut expected = HashMap::new();- expected.insert("user1".to_string(), Some(AccessLevel::Edit));- expected.insert("user2".to_string(), Some(AccessLevel::Edit));- expected.insert("user3".to_string(), Some(AccessLevel::View));- expected.insert("user_owner".to_string(), Some(AccessLevel::Owner));- expected.insert("userX".to_string(), Some(AccessLevel::View));-- assert_eq!(result, expected);- }-- #[test]- fn test_has_view_access_users() {- let users_permission = test_users_permission_fixture();- let user_ids = vec![- "user1".to_string(),- "user2".to_string(),- "user3".to_string(),- "user_owner".to_string(),- "userX".to_string(),- ];-- let view_access = has_view_access_users(&user_ids, &users_permission);- // With public access granted, every user should have at least view access.- let mut expected = HashMap::new();- expected.insert("user1".to_string(), true);- expected.insert("user2".to_string(), true);- expected.insert("user3".to_string(), true);- expected.insert("user_owner".to_string(), true);- expected.insert("userX".to_string(), true);-- assert_eq!(view_access, expected);- }-- #[test]- fn test_has_edit_access_users() {- let users_permission = test_users_permission_fixture();- let user_ids = vec![- "user1".to_string(),- "user2".to_string(),- "user3".to_string(),- "user_owner".to_string(),- "userX".to_string(),- ];-- let edit_access = has_edit_access_users(&user_ids, &users_permission);- // Expected:- // - "user_owner" (owner) → true- // - "user1" has Edit → true- // - "user2" gets Edit from organization permission → true- // - "user3" and "userX" only get public (View) → false- let mut expected = HashMap::new();- expected.insert("user1".to_string(), true);- expected.insert("user2".to_string(), true);- expected.insert("user3".to_string(), false);- expected.insert("user_owner".to_string(), true);- expected.insert("userX".to_string(), false);-- assert_eq!(edit_access, expected);- }-- #[test]- fn test_has_owner_access_users() {- let users_permission = test_users_permission_fixture();- let user_ids = vec![- "user1".to_string(),- "user2".to_string(),- "user3".to_string(),- "user_owner".to_string(),- "userX".to_string(),- ];-- let owner_access = has_owner_access_users(&user_ids, &users_permission);- // Only the owner should have owner access.- let mut expected = HashMap::new();- expected.insert("user1".to_string(), false);- expected.insert("user2".to_string(), false);- expected.insert("user3".to_string(), false);- expected.insert("user_owner".to_string(), true);- expected.insert("userX".to_string(), false);-- assert_eq!(owner_access, expected);- }-}diff --git a/rust/cloud-storage/permission/src/lib.rs b/rust/cloud-storage/permission/src/lib.rsdeleted file mode 100644index 12e21f87ed..0000000000--- a/rust/cloud-storage/permission/src/lib.rs+++ /dev/null@@ -1 +0,0 @@-pub mod access_level_v2;diff --git a/rust/cloud-storage/properties/Cargo.toml b/rust/cloud-storage/properties/Cargo.tomlindex 87bad2a7bf..7d5b8b9299 100644--- a/rust/cloud-storage/properties/Cargo.toml+++ b/rust/cloud-storage/properties/Cargo.toml@@ -22,7 +22,6 @@ entity_access_db_utils = { path = "../entity_access_db_utils" }futures = { workspace = true }email_db_client = { path = "../email_db_client" }macro_db_client = { path = "../macro_db_client" }-macro_middleware = { path = "../macro_middleware", default-features = false, features = ["cloud_storage", "user_permissions"] }notification = { path = "../notification" }macro_user_id = { path = "../macro_user_id" }macro_uuid = { path = "../macro_uuid" }diff --git a/rust/cloud-storage/properties_db_client/Cargo.toml b/rust/cloud-storage/properties_db_client/Cargo.tomlindex f40deca259..a9ec427247 100644--- a/rust/cloud-storage/properties_db_client/Cargo.toml+++ b/rust/cloud-storage/properties_db_client/Cargo.toml@@ -6,15 +6,12 @@ version = "0.1.0"[dependencies]anyhow = { workspace = true }-cached = { workspace = true }chrono = { workspace = true }-futures = { workspace = true }macro_uuid = { path = "../macro_uuid" }models_properties = { path = "../models_properties" }serde = { workspace = true }serde_json = { workspace = true }sqlx = { workspace = true }-strum = { workspace = true }thiserror = { workspace = true }tracing = { workspace = true }uuid = { workspace = true }diff --git a/rust/cloud-storage/properties_service/Cargo.toml b/rust/cloud-storage/properties_service/Cargo.tomlindex 9a29698f67..6874919b7b 100644--- a/rust/cloud-storage/properties_service/Cargo.toml+++ b/rust/cloud-storage/properties_service/Cargo.toml@@ -15,8 +15,6 @@ path = "src/openapi.rs"[dependencies]anyhow = { workspace = true }async-trait = { workspace = true }-aws-sdk-secretsmanager = { workspace = true }-macro_aws_config = { path = "../macro_aws_config" }axum = { workspace = true, features = ["tower-log", "ws"] }chrono = { workspace = true }email_db_client = { path = "../email_db_client" }@@ -25,8 +23,6 @@ http-body-util = { workspace = true }macro_user_id = { path = "../macro_user_id" }model-entity = { path = "../model-entity" }macro_auth = { path = "../macro_auth" }-macro_cors = { path = "../macro_cors" }-macro_entrypoint = { path = "../macro_entrypoint" }macro_env = { path = "../macro_env" }macro_middleware = { path = "../macro_middleware", default-features = false, features = ["auth",@@ -42,7 +38,6 @@ models_properties = { path = "../models_properties" }properties_db_client = { path = "../properties_db_client" }properties = { path = "../properties" }system_properties = { path = "../system_properties" }-secretsmanager_client = { path = "../secretsmanager_client" }serde = { workspace = true }serde_json = { workspace = true }serde_with = { workspace = true }@@ -52,7 +47,5 @@ tokio = { workspace = true }tower = { workspace = true }tower-http = { workspace = true }tracing = { workspace = true }-tracing-tree = { workspace = true }utoipa = { workspace = true }-utoipa-swagger-ui = { workspace = true, features = ["axum"] }uuid = { workspace = true }diff --git a/rust/cloud-storage/roles_and_permissions/Cargo.toml b/rust/cloud-storage/roles_and_permissions/Cargo.tomlindex fddb467d42..6e52c58c8e 100644--- a/rust/cloud-storage/roles_and_permissions/Cargo.toml+++ b/rust/cloud-storage/roles_and_permissions/Cargo.toml@@ -11,7 +11,6 @@ ports = [][dependencies]anyhow = { workspace = true }-async-trait = { workspace = true }macro_user_id = { path = "../macro_user_id" }non_empty = { path = "../non_empty" }sqlx = { workspace = true, optional = true }diff --git a/rust/cloud-storage/search_service/Cargo.toml b/rust/cloud-storage/search_service/Cargo.tomlindex a4c6363ceb..384b122799 100644--- a/rust/cloud-storage/search_service/Cargo.toml+++ b/rust/cloud-storage/search_service/Cargo.toml@@ -27,13 +27,11 @@ http-body-util = { workspace = true }indexmap = "2"item_filters = { path = "../item_filters" }macro_auth = { path = "../macro_auth" }-macro_cors = { path = "../macro_cors" }macro_db_client = { path = "../macro_db_client" }models_properties = { path = "../models_properties" }models_soup = { path = "../models_soup" }properties_db_client = { path = "../properties_db_client" }readonly_pool = { path = "../readonly_pool" }-macro_entrypoint = { path = "../macro_entrypoint" }macro_env = { path = "../macro_env" }macro_middleware = { path = "../macro_middleware", default-features = false, features = ["auth",@@ -57,7 +55,6 @@ tower = { workspace = true }tower-http = { workspace = true }tracing = { workspace = true }utoipa = { workspace = true }-utoipa-swagger-ui = { workspace = true }[dev-dependencies]macro_auth = { path = "../macro_auth", features = ["testing"] }diff --git a/rust/cloud-storage/secretsmanager_client/Cargo.toml b/rust/cloud-storage/secretsmanager_client/Cargo.tomlindex a463dc03b8..c95f99fe0d 100644--- a/rust/cloud-storage/secretsmanager_client/Cargo.toml+++ b/rust/cloud-storage/secretsmanager_client/Cargo.toml@@ -8,7 +8,6 @@ version = "0.1.0"local = [][dependencies]-anyhow = { workspace = true }aws-sdk-secretsmanager = { workspace = true }macro_env = { path = "../macro_env" }mockall = { workspace = true }diff --git a/rust/cloud-storage/sns_client/Cargo.toml b/rust/cloud-storage/sns_client/Cargo.tomlindex f767bf8c73..2105caab91 100644--- a/rust/cloud-storage/sns_client/Cargo.toml+++ b/rust/cloud-storage/sns_client/Cargo.toml@@ -7,7 +7,6 @@ version = "0.1.0"[dependencies]anyhow = { workspace = true }aws-sdk-sns = { workspace = true }-model-entity = { path = "../model-entity" }serde = { workspace = true }serde_json = { workspace = true }tracing = { workspace = true }diff --git a/rust/cloud-storage/sqs_client/Cargo.toml b/rust/cloud-storage/sqs_client/Cargo.tomlindex 5ca6cd96bc..683f77c6f4 100644--- a/rust/cloud-storage/sqs_client/Cargo.toml+++ b/rust/cloud-storage/sqs_client/Cargo.toml@@ -25,7 +25,7 @@ document_text_extractor = []email = ["uuid", "models_email", "dep:email", "gmail"]gmail = ["model", "models_email", "uuid"]organization_retention = []-search = ["chrono", "model", "models_opensearch", "uuid", "futures"]+search = ["chrono", "model", "uuid", "futures"]sfs_delete = []sfs_uploader = []upload_extractor = []@@ -43,5 +43,4 @@ serde_json = { workspace = true }strum = { workspace = true, features = ["derive"] }tracing = { workspace = true }uuid = { workspace = true, optional = true }-models_opensearch = { path = "../models_opensearch", optional = true }futures = { workspace = true, optional = true }diff --git a/rust/cloud-storage/user_quota/Cargo.toml b/rust/cloud-storage/user_quota/Cargo.tomlindex c488fa2caa..ec25bd779e 100644--- a/rust/cloud-storage/user_quota/Cargo.toml+++ b/rust/cloud-storage/user_quota/Cargo.toml@@ -5,7 +5,6 @@ publish = falseversion = "0.1.0"[dependencies]-anyhow = { workspace = true }serde = { workspace = true }serde_json = { workspace = true }utoipa = { workspace = true }diff --git a/rust/cloud-storage/worker_trigger/Cargo.toml b/rust/cloud-storage/worker_trigger/Cargo.tomlindex bbbf536012..46e4e60108 100644--- a/rust/cloud-storage/worker_trigger/Cargo.toml+++ b/rust/cloud-storage/worker_trigger/Cargo.toml@@ -7,12 +7,14 @@ version = "0.1.0"[dependencies]anyhow = { workspace = true }aws-sdk-ecs = "1.124.0"-macro_aws_config = { path = "../macro_aws_config" }aws_lambda_events = { workspace = true, features = ["eventbridge"] }lambda_runtime = { workspace = true }+macro_aws_config = { path = "../macro_aws_config" }macro_entrypoint = { path = "../macro_entrypoint" }macro_env = { path = "../macro_env" }-mockall = { workspace = true }serde_json = { workspace = true }tokio = { workspace = true }tracing = { workspace = true }++[dev-dependencies]+mockall = { workspace = true }