(ref: NonNullable<EmbeddedFileRef>)
| 16 | } |
| 17 | |
| 18 | function inlineRefQuery(ref: NonNullable<EmbeddedFileRef>): string { |
| 19 | return 'key' in ref |
| 20 | ? `key=${encodeURIComponent(ref.key)}` |
| 21 | : `fileId=${encodeURIComponent(ref.fileId)}` |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Seam for "where do a file's bytes come from". The in-app viewer resolves the |