From 1efeb79b3ec2751c2a375c012809509b91492a91 Mon Sep 17 00:00:00 2001 From: samLRodrigues Date: Thu, 2 Jul 2026 16:55:48 -0300 Subject: [PATCH] TDT-2789 Clarify event visibility default is Google-only The Visibility type hint allowed 'default' for all providers without noting that Microsoft and EWS accounts reject it with a 400 error. Only Google events support 'default'. Co-Authored-By: Claude Sonnet 5 --- nylas/models/events.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nylas/models/events.py b/nylas/models/events.py index 3fa7686..7a5a2df 100644 --- a/nylas/models/events.py +++ b/nylas/models/events.py @@ -10,7 +10,13 @@ """ Literal representing the status of an Event. """ Visibility = Literal["default", "public", "private"] -""" Literal representation of visibility of the Event. """ +""" +Literal representation of visibility of the Event. + +`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. +""" ParticipantStatus = Literal["noreply", "yes", "no", "maybe"] """ Literal representing the status of an Event participant. """