From d43b1a01110e8b9139f0f39423f7a7ea1b09a884 Mon Sep 17 00:00:00 2001 From: monsterxx03 Date: Thu, 23 Jul 2026 17:14:51 +0800 Subject: [PATCH] fix: add sessionId to UnstableCreateElicitationForm and UnstableCreateElicitationUrl --- schema/schema.unstable.json | 4 ++++ types_gen.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/schema/schema.unstable.json b/schema/schema.unstable.json index 70afba0..9845679 100644 --- a/schema/schema.unstable.json +++ b/schema/schema.unstable.json @@ -1917,6 +1917,10 @@ "message": { "description": "A human-readable message describing what input is needed.", "type": "string" + }, + "sessionId": { + "$ref": "#/$defs/SessionId", + "description": "The session this elicitation is tied to." } }, "required": ["message"], diff --git a/types_gen.go b/types_gen.go index 5c83744..59879ed 100644 --- a/types_gen.go +++ b/types_gen.go @@ -6782,6 +6782,8 @@ type UnstableCreateElicitationForm struct { Mode string `json:"mode"` // A JSON Schema describing the form fields to present to the user. RequestedSchema UnstableElicitationSchema `json:"requestedSchema"` + // The session this elicitation is tied to. + SessionId SessionId `json:"sessionId,omitempty"` } // URL-based elicitation where the client directs the user to a URL. @@ -6797,6 +6799,8 @@ type UnstableCreateElicitationUrl struct { // A human-readable message describing what input is needed. Message string `json:"message"` Mode string `json:"mode"` + // The session this elicitation is tied to. + SessionId SessionId `json:"sessionId,omitempty"` // The URL to direct the user to. Url string `json:"url"` }