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
fix(email-service): Swagger response types (#219)
Evan Hutnikb20706bbf37c
diff --git a/rust/cloud-storage/email_service/src/api/email/attachments/get.rs b/rust/cloud-storage/email_service/src/api/email/attachments/get.rsindex 285fb2602d..ffdbe4d89d 100644--- a/rust/cloud-storage/email_service/src/api/email/attachments/get.rs+++ b/rust/cloud-storage/email_service/src/api/email/attachments/get.rs@@ -30,7 +30,7 @@ pub struct GetAttachmentResponse {("id" = Uuid, Path, description = "Attachment ID."),),responses(- (status = 200, body=Vec<GetAttachmentResponse>),+ (status = 200, body=GetAttachmentResponse),(status = 400, body=ErrorResponse),(status = 401, body=ErrorResponse),(status = 404, body=ErrorResponse),diff --git a/rust/cloud-storage/email_service/src/api/email/init.rs b/rust/cloud-storage/email_service/src/api/email/init.rsindex f7a3aee221..86b88eda4c 100644--- a/rust/cloud-storage/email_service/src/api/email/init.rs+++ b/rust/cloud-storage/email_service/src/api/email/init.rs@@ -7,7 +7,6 @@ use axum::{http::StatusCode,response::{IntoResponse, Json, Response},};-use model::response::EmptyResponse;use model::{response::ErrorResponse, user::UserContext};use models_email::email::service::backfill::{BackfillJobStatus, BackfillOperation, BackfillPubsubMessage,@@ -80,7 +79,7 @@ pub struct InitResponse {path = "/email/init",operation_id = "init_user",responses(- (status = 200, body=EmptyResponse),+ (status = 200, body=InitResponse),(status = 400, body=ErrorResponse),(status = 401, body=ErrorResponse),(status = 500, body=ErrorResponse),diff --git a/rust/cloud-storage/email_service/src/api/email/links/list.rs b/rust/cloud-storage/email_service/src/api/email/links/list.rsindex c11b925ed8..fc27573378 100644--- a/rust/cloud-storage/email_service/src/api/email/links/list.rs+++ b/rust/cloud-storage/email_service/src/api/email/links/list.rs@@ -5,7 +5,7 @@ use axum::http::StatusCode;use axum::response::{IntoResponse, Response};use axum::{Extension, Json};use futures::future::join_all;-use model::response::{EmptyResponse, ErrorResponse};+use model::response::ErrorResponse;use model::user::UserContext;use models_email::api;use utoipa::ToSchema;@@ -48,7 +48,7 @@ pub struct ListLinksResponse {path = "/email/links",operation_id = "list_links",responses(- (status = 200, body=EmptyResponse),+ (status = 200, body=ListLinksResponse),(status = 401, body=ErrorResponse),(status = 404, body=ErrorResponse),(status = 500, body=ErrorResponse),diff --git a/rust/cloud-storage/email_service/src/api/email/threads/get.rs b/rust/cloud-storage/email_service/src/api/email/threads/get.rsindex ae54b6c5f6..f180508c0d 100644--- a/rust/cloud-storage/email_service/src/api/email/threads/get.rs+++ b/rust/cloud-storage/email_service/src/api/email/threads/get.rs@@ -98,7 +98,7 @@ const MESSAGE_MAX: i64 = 100;responses(- (status = 200, body=Vec<GetThreadResponse>),+ (status = 200, body=GetThreadResponse),(status = 400, body=ErrorResponse),(status = 401, body=ErrorResponse),(status = 404, body=ErrorResponse),diff --git a/rust/cloud-storage/email_service/src/api/swagger.rs b/rust/cloud-storage/email_service/src/api/swagger.rsindex 3983364335..d37fa1929e 100644--- a/rust/cloud-storage/email_service/src/api/swagger.rs+++ b/rust/cloud-storage/email_service/src/api/swagger.rs@@ -18,6 +18,7 @@ use crate::api::email::threads::previews::cursor::{};use crate::api::{email, health};use model::response::EmptyResponse;+use models_email::api::settings::Settings;use models_email::email::service;use models_email::email::service::address::ContactInfoWithInteraction;use models_email::email::service::backfill::BackfillJob;@@ -105,6 +106,7 @@ use utoipa::OpenApi;// Link typesListLinksResponse,Link,+ Settings,// Contact typesListContactsResponse,ContactInfoWithInteraction,