File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @plotday/twister " : patch
3+ ---
4+
5+ Added: File attachments. For now, just metadata is available to twists.
Original file line number Diff line number Diff line change @@ -213,6 +213,8 @@ export enum ActivityLinkType {
213213 callback = "callback" ,
214214 /** Video conferencing links with provider-specific handling */
215215 conferencing = "conferencing" ,
216+ /** File attachment links stored in R2 */
217+ file = "file" ,
216218}
217219
218220/**
@@ -309,6 +311,18 @@ export type ActivityLink =
309311 title : string ;
310312 /** Token identifying the callback to execute */
311313 callback : Callback ;
314+ }
315+ | {
316+ /** File attachment link stored in R2 */
317+ type : ActivityLinkType . file ;
318+ /** Unique identifier for the stored file */
319+ fileId : string ;
320+ /** Original filename */
321+ fileName : string ;
322+ /** File size in bytes */
323+ fileSize : number ;
324+ /** MIME type of the file */
325+ mimeType : string ;
312326 } ;
313327
314328/**
You can’t perform that action at this time.
0 commit comments