File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export type EntityPresentDetailsArguments = TokenOverridable & {
3232 // If status is 'custom', you can use this field to provide a title to the client.
3333 custom_title ?: string ;
3434 // Set of action buttons to be shown in case of a specific error.
35+ // biome-ignore lint/complexity/noBannedTypes: Allow Object
3536 actions ?: Object [ ] ;
3637 } ;
3738} ;
Original file line number Diff line number Diff line change @@ -422,10 +422,10 @@ expectAssignable<Parameters<typeof web.chat.postMessage>>([
422422 {
423423 entity_type : 'slack#/entities/file' ,
424424 entity_payload : {
425- attributes : { }
425+ attributes : { } ,
426426 } ,
427- external_ref : { id : "" } ,
428- url : ""
427+ external_ref : { id : '' } ,
428+ url : '' ,
429429 } ,
430430 ] ,
431431 } ,
@@ -646,13 +646,25 @@ expectAssignable<Parameters<typeof web.chat.unfurl>>([
646646 metadata : {
647647 entities : [
648648 {
649- entity_type : 'slack#/entities/file ' ,
649+ entity_type : 'slack#/entities/task ' ,
650650 entity_payload : {
651- attributes : { }
651+ attributes : {
652+ title : {
653+ text : 'Important task' ,
654+ } ,
655+ } ,
656+ fields : {
657+ status : {
658+ value : 'All clear' ,
659+ } ,
660+ description : {
661+ value : 'Details of the task.' ,
662+ } ,
663+ } ,
652664 } ,
653- external_ref : { id : "" } ,
654- url : "" ,
655- app_unfurl_url : 'https://google .com' ,
665+ external_ref : { id : '1234' } ,
666+ url : 'https://myappdomain.com/id/1234' ,
667+ app_unfurl_url : 'https://myappdomain .com/id/1234?myquery=param ' ,
656668 } ,
657669 ] ,
658670 } ,
You can’t perform that action at this time.
0 commit comments