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
use aws_sdk_s3::{self as s3, primitives::ByteStream};
#[tracing::instrument(skip(client))]
pub(in crate::service::s3) async fn upload_document(
client: &s3::Client,
bucket: &str,
key: &str,
byte_stream: ByteStream,
) -> anyhow::Result<()> {
if cfg!(feature = "local") {
return Ok(());
}
client
.put_object()
.bucket(bucket)
.key(key)
.body(byte_stream)
.send()
.await?;
Ok(())
}