From f84a64bfe2acb1eca4f0380586727925d0abc886 Mon Sep 17 00:00:00 2001 From: josue Date: Sun, 22 Feb 2026 00:19:23 -0600 Subject: [PATCH] fix(types): narrow annotation type in ResponseOutputTextAnnotationAddedEvent --- src/resources/responses/responses.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/resources/responses/responses.ts b/src/resources/responses/responses.ts index 5fe227e06..4526a2ea6 100644 --- a/src/resources/responses/responses.ts +++ b/src/resources/responses/responses.ts @@ -4924,7 +4924,11 @@ export interface ResponseOutputTextAnnotationAddedEvent { /** * The annotation object being added. (See annotation schema for details.) */ - annotation: unknown; + annotation: + | ResponseOutputText.FileCitation + | ResponseOutputText.URLCitation + | ResponseOutputText.ContainerFileCitation + | ResponseOutputText.FilePath; /** * The index of the annotation within the content part.