root.graphql

 1"""Server-wide configuration, independent of any repository."""
 2type ServerConfig {
 3    """Authentication mode: 'local' (single user from git config),
 4    'external' (multi-user via OAuth/OIDC providers), or 'readonly'."""
 5    authMode: String!
 6
 7    """Names of the login providers enabled on this server, e.g. ['github'].
 8    Empty when authMode is not 'external'."""
 9    loginProviders: [String!]!
10}
11
12type Query {
13    """Server configuration and authentication mode."""
14    serverConfig: ServerConfig!
15
16    """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
17    repository(ref: String): Repository
18
19    """List all registered repositories."""
20    repositories(
21      """Returns the elements in the list that come after the specified cursor."""
22      after: String
23      """Returns the elements in the list that come before the specified cursor."""
24      before: String
25      """Returns the first _n_ elements from the list."""
26      first: Int
27      """Returns the last _n_ elements from the list."""
28      last: Int
29    ): RepositoryConnection!
30}
31
32type Mutation # See each entity mutations