also looking at this
feat: crosspost to LinkedIn and Instagram
#1
31 files
+2335
-87
| @@ -48,6 +48,29 @@ export interface PublishedPost { | ||
| 48 | 48 | url?: string |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | /** Optional content attached to a post: a link card and/or media. */ | |
| 52 | export interface PublishContent { | |
| 53 | external?: { | |
| 54 | uri: string | |
| 55 | title: string | |
| 56 | description?: string | |
| 57 | } | |
| 58 | media?: Array<{ | |
| 59 | url: string | |
| 60 | altText?: string | |
| 61 | }> | |
| 62 | } | |
| 63 | ||
| 64 | /** Outcome of publishing one post to a single provider during a crosspost. */ | |
| 65 | export interface CrosspostTargetResult { | |
| 66 | provider: SocialProvider | |
| 67 | ok: boolean | |
| 68 | url?: string | |
| 69 | uri?: string | |
| 70 | targetId?: number | |
| 71 | error?: string | |
| 72 | } | |
| 73 | ||
| 51 | 74 | export interface TimelineQuery { |
| 52 | 75 | cursor?: string |
| 53 | 76 | limit?: number |