#
# Copyright 2020 DXOS.org
#

# TODO(burdon): Replace generic results with schema.
type JSONResult {
  timestamp: String!
  json: String!
}

#
# Schema
#

type Query {
  logs(service: String!, incremental: Boolean): JSONResult!
  app_status: JSONResult!
  ipfs_status: JSONResult!
  ipfs_swarm_status: JSONResult!
  service_status: JSONResult!
  signal_status: JSONResult!
  system_status: JSONResult!
  wns_status: JSONResult!
  bot_list: JSONResult!
  extensions: JSONResult!
}

type Mutation {
  bot_kill(botId: String!): JSONResult!
}

schema {
  query: Query
  mutation: Mutation
}
