From 8016401c5330e37a517492a923bc4e655ee3eecf Mon Sep 17 00:00:00 2001 From: samLRodrigues Date: Thu, 2 Jul 2026 16:55:51 -0300 Subject: [PATCH] TDT-2790 Clarify event visibility default is Google-only The EventVisibility KDoc described DEFAULT/PUBLIC/PRIVATE without noting that Microsoft and EWS accounts reject DEFAULT with a 400 error. Only Google events support DEFAULT. Co-Authored-By: Claude Sonnet 5 --- src/main/kotlin/com/nylas/models/EventVisibility.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/com/nylas/models/EventVisibility.kt b/src/main/kotlin/com/nylas/models/EventVisibility.kt index c44fa762..a234bfbd 100644 --- a/src/main/kotlin/com/nylas/models/EventVisibility.kt +++ b/src/main/kotlin/com/nylas/models/EventVisibility.kt @@ -4,6 +4,10 @@ import com.squareup.moshi.Json /** * Enum representation of visibility of the event, if the event is private or public. + * + * [DEFAULT] is only valid for Google events, where it defers to the calendar's own sharing + * settings. Microsoft and EWS events only support [PUBLIC] and [PRIVATE]; sending `default` + * for these providers returns a 400 error. */ enum class EventVisibility { @Json(name = "default")