@@ -151,7 +151,6 @@ export const SlackBlock: BlockConfig<SlackResponse> = {
151151 'get_user_presence' ,
152152 'edit_canvas' ,
153153 'get_canvas' ,
154- 'list_canvases' ,
155154 'lookup_canvas_sections' ,
156155 'delete_canvas' ,
157156 'create_conversation' ,
@@ -168,7 +167,11 @@ export const SlackBlock: BlockConfig<SlackResponse> = {
168167 } ,
169168 }
170169 } ,
171- required : true ,
170+ required : {
171+ field : 'operation' ,
172+ value : 'list_canvases' ,
173+ not : true ,
174+ } ,
172175 } ,
173176 {
174177 id : 'manualChannel' ,
@@ -191,7 +194,6 @@ export const SlackBlock: BlockConfig<SlackResponse> = {
191194 'get_user_presence' ,
192195 'edit_canvas' ,
193196 'get_canvas' ,
194- 'list_canvases' ,
195197 'lookup_canvas_sections' ,
196198 'delete_canvas' ,
197199 'create_conversation' ,
@@ -208,7 +210,11 @@ export const SlackBlock: BlockConfig<SlackResponse> = {
208210 } ,
209211 }
210212 } ,
211- required : true ,
213+ required : {
214+ field : 'operation' ,
215+ value : 'list_canvases' ,
216+ not : true ,
217+ } ,
212218 } ,
213219 {
214220 id : 'dmUserId' ,
@@ -845,17 +851,6 @@ Return ONLY the timestamp string - no explanations, no quotes, no extra text.`,
845851 required : true ,
846852 } ,
847853 // List Canvases specific fields
848- {
849- id : 'canvasListChannel' ,
850- title : 'Channel ID' ,
851- type : 'short-input' ,
852- placeholder : 'Optional channel filter (e.g., C1234567890)' ,
853- condition : {
854- field : 'operation' ,
855- value : 'list_canvases' ,
856- } ,
857- mode : 'advanced' ,
858- } ,
859854 {
860855 id : 'canvasListCount' ,
861856 title : 'Canvas Limit' ,
@@ -1315,7 +1310,6 @@ Do not include any explanations, markdown formatting, or other text outside the
13151310 channelCanvasTitle,
13161311 channelCanvasContent,
13171312 getCanvasId,
1318- canvasListChannel,
13191313 canvasListCount,
13201314 canvasListPage,
13211315 canvasListUser,
@@ -1509,9 +1503,6 @@ Do not include any explanations, markdown formatting, or other text outside the
15091503 break
15101504
15111505 case 'list_canvases' :
1512- if ( canvasListChannel ) {
1513- baseParams . channel = String ( canvasListChannel ) . trim ( )
1514- }
15151506 if ( canvasListCount ) {
15161507 const parsedCount = Number . parseInt ( canvasListCount , 10 )
15171508 if ( ! Number . isNaN ( parsedCount ) && parsedCount > 0 ) {
@@ -1667,7 +1658,6 @@ Do not include any explanations, markdown formatting, or other text outside the
16671658 channelCanvasContent : { type : 'string' , description : 'Content for channel canvas' } ,
16681659 // Canvas management inputs
16691660 getCanvasId : { type : 'string' , description : 'Canvas ID to retrieve' } ,
1670- canvasListChannel : { type : 'string' , description : 'Optional channel filter for canvases' } ,
16711661 canvasListCount : { type : 'string' , description : 'Maximum number of canvases to return' } ,
16721662 canvasListPage : { type : 'string' , description : 'Canvas list page number' } ,
16731663 canvasListUser : { type : 'string' , description : 'Optional canvas creator user filter' } ,
0 commit comments