From 8016401c5330e37a517492a923bc4e655ee3eecf Mon Sep 17 00:00:00 2001 From: samLRodrigues Date: Thu, 2 Jul 2026 16:55:51 -0300 Subject: [PATCH 1/2] 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") From 6ffdeead032963aa4e9b336cae9b43a728149c2d Mon Sep 17 00:00:00 2001 From: samLRodrigues Date: Tue, 7 Jul 2026 15:47:39 -0300 Subject: [PATCH 2/2] TDT-2790 Add CHANGELOG entry for event visibility clarification --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfef0fda..2a10149b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Nylas Java SDK Changelog +## [Unreleased] + +### Changed +* Clarify that event `default` visibility is Google-only + ## [v2.17.1] - Release 2026-06-25 ### Fixed