@@ -182,6 +182,14 @@ type FileSharedEvent struct {
182182 EventTimestamp string `json:"event_ts"`
183183}
184184
185+ // FileUnsharedEvent represents the information associated with the File
186+ // unshared event.
187+ type FileUnsharedEvent struct {
188+ Type string `json:"type"`
189+ FileID string `json:"file_id"`
190+ File FileEventFile `json:"file"`
191+ }
192+
185193// FileEventFile represents information on the specific file being shared in a
186194// file-related Slack event.
187195type FileEventFile struct {
@@ -555,6 +563,8 @@ const (
555563 FileDeleted = EventsAPIType ("file_deleted" )
556564 // FileShared is sent when a file is shared.
557565 FileShared = EventsAPIType ("file_shared" )
566+ // FileUnshared is sent when a file is unshared.
567+ FileUnshared = EventsAPIType ("file_unshared" )
558568 // GridMigrationFinished An enterprise grid migration has finished on this workspace.
559569 GridMigrationFinished = EventsAPIType ("grid_migration_finished" )
560570 // GridMigrationStarted An enterprise grid migration has started on this workspace.
@@ -608,6 +618,7 @@ var EventsAPIInnerEventMapping = map[EventsAPIType]interface{}{
608618 FileChange : FileChangeEvent {},
609619 FileDeleted : FileDeletedEvent {},
610620 FileShared : FileSharedEvent {},
621+ FileUnshared : FileUnsharedEvent {},
611622 GroupDeleted : GroupDeletedEvent {},
612623 GroupArchive : GroupArchiveEvent {},
613624 GroupUnarchive : GroupUnarchiveEvent {},
0 commit comments