| 1 | import type { Request } from 'express'; |
| 2 | |
| 3 | export type GithubViewer |
| 4 | userId: string |
| 5 | scopes: readonly |
| 6 | /** The OAuth app the key was minted for; null for keys made in Ghost and for a browser session. */ |
| 7 | oauthClientId: string |
| 8 | }; |
| 9 | |
| 10 | export type GithubRequest |
| 11 | |
| 12 | /** The repository a REST path names, and who is asking. */ |
| 13 | export type GithubRepositoryTarget |
| 14 | owner: string |
| 15 | repo: string |
| 16 | viewer: GithubViewer |
| 17 | }; |