From d996ad457b8b7b39b49042a0af4bdba64fd41aac Mon Sep 17 00:00:00 2001 From: samLRodrigues Date: Thu, 2 Jul 2026 16:55:53 -0300 Subject: [PATCH] TDT-2791 Clarify event visibility default is Google-only The Visibility JSDoc 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 --- src/models/events.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/events.ts b/src/models/events.ts index 955a84b5..5ef0c244 100644 --- a/src/models/events.ts +++ b/src/models/events.ts @@ -415,6 +415,10 @@ type RsvpStatus = 'yes' | 'no' | 'maybe'; /** * Enum representing the visibility of an 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. */ type Visibility = 'default' | 'public' | 'private';