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 utoipa::ToSchema;
use model::{document::DocumentMetadata, response::PresignedUrl};
#[derive(serde::Serialize, serde::Deserialize, ToSchema)]
pub struct CreateBulkDocumentResponse {
/// Indicates if an error occurred
pub error: bool,
/// Data to be returned
pub data: Vec<CreateBulkDocumentResponseData>,
}
#[derive(serde::Serialize, serde::Deserialize, Debug, ToSchema)]
#[serde(rename_all = "camelCase")]
pub struct CreateBulkDocumentResponseData {
/// Indicates if the document was created successfully
pub success: bool,
/// The created documents metadata
/// Only returned if the document was created successfully
pub document_metadata: Option<DocumentMetadata>,
/// The presigned url used to upload the document
/// Only returned if the document was created successfully
pub presigned_url: Option<PresignedUrl>,
}