@@ -120,21 +120,10 @@ export const BoardMcpAppDescriptorSchema = closedObject({
120120 serverName : NonEmptyString ,
121121 toolName : NonEmptyString ,
122122 uiResourceUri : NonEmptyString ,
123- originSessionKey : NonEmptyString ,
124123 toolCallId : NonEmptyString ,
125124} ) ;
126125export type BoardMcpAppDescriptor = Static < typeof BoardMcpAppDescriptorSchema > ;
127126
128- export const BoardMcpAppPinDescriptorSchema = closedObject ( {
129- viewId : NonEmptyString ,
130- serverName : NonEmptyString ,
131- toolName : NonEmptyString ,
132- uiResourceUri : NonEmptyString ,
133- originSessionKey : NonEmptyString ,
134- toolCallId : NonEmptyString ,
135- } ) ;
136- export type BoardMcpAppPinDescriptor = Static < typeof BoardMcpAppPinDescriptorSchema > ;
137-
138127export const BoardWidgetHtmlContentSchema = closedObject ( {
139128 kind : Type . Literal ( "html" ) ,
140129 html : Type . String ( { maxLength : 262_144 } ) ,
@@ -145,13 +134,16 @@ export const BoardWidgetMcpAppContentSchema = closedObject({
145134} ) ;
146135export const BoardWidgetMcpAppPutContentSchema = closedObject ( {
147136 kind : Type . Literal ( "mcp-app" ) ,
148- descriptor : BoardMcpAppPinDescriptorSchema ,
137+ viewId : NonEmptyString ,
149138} ) ;
150139export const BoardWidgetContentSchema = Type . Union ( [
151140 BoardWidgetHtmlContentSchema ,
152141 BoardWidgetMcpAppContentSchema ,
153142] ) ;
154143export type BoardWidgetContent = Static < typeof BoardWidgetContentSchema > ;
144+ export type BoardWidgetMaterializedContent =
145+ | Static < typeof BoardWidgetHtmlContentSchema >
146+ | ( Static < typeof BoardWidgetMcpAppContentSchema > & { interactive : boolean } ) ;
155147
156148export const BoardCanvasDocumentSourceSchema = closedObject ( {
157149 kind : Type . Literal ( "canvas-doc" ) ,
@@ -188,23 +180,23 @@ export const BoardWidgetPutParamsSchema = closedObject({
188180export type BoardWidgetPutParams = Static < typeof BoardWidgetPutParamsSchema > ;
189181/** Materialized input accepted by the board store after gateway source resolution. */
190182export type BoardWidgetMaterializedPutParams = Omit < BoardWidgetPutParams , "content" > & {
191- content : BoardWidgetContent ;
183+ content : BoardWidgetMaterializedContent ;
192184} ;
193185
194186export const BoardWidgetGrantParamsSchema = closedObject ( {
195187 sessionKey : NonEmptyString ,
196188 name : BoardWidgetNameSchema ,
197189 decision : Type . Union ( [ Type . Literal ( "granted" ) , Type . Literal ( "rejected" ) ] ) ,
198190 revision : Type . Integer ( { minimum : 1 } ) ,
199- instanceId : Type . Optional ( NonEmptyString ) ,
191+ instanceId : NonEmptyString ,
200192} ) ;
201193export type BoardWidgetGrantParams = Static < typeof BoardWidgetGrantParamsSchema > ;
202194
203195export const BoardWidgetAppViewParamsSchema = closedObject ( {
204196 sessionKey : NonEmptyString ,
205197 name : BoardWidgetNameSchema ,
206198 revision : Type . Integer ( { minimum : 1 } ) ,
207- instanceId : Type . Optional ( NonEmptyString ) ,
199+ instanceId : NonEmptyString ,
208200} ) ;
209201export type BoardWidgetAppViewParams = Static < typeof BoardWidgetAppViewParamsSchema > ;
210202
0 commit comments