GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.8 KiB

  1. # A Character represents an RP character
  2. type Character {
  3. # A unique identifier for the character
  4. id: String!
  5. # The primary IRC nick belonging to the character
  6. nick: String
  7. # All IRC nicks associated with this character
  8. nicks: [String!]!
  9. # The character's author
  10. author: String!
  11. # The character's name
  12. name: String!
  13. # The name to display when space is scarce, usually the first/given name
  14. shortName: String!
  15. # A short description of the character
  16. description: String!
  17. }
  18. # Filter for characters query
  19. input CharactersFilter {
  20. # Filter by character IDs
  21. ids: [String!]
  22. # Filter by nicks
  23. nicks: [String!]
  24. # Filter by names
  25. names: [String!]
  26. # Filter by author
  27. author: String
  28. # Filter by text search matching against the character's description
  29. search: String
  30. # Filter by whether they've been part of a log.
  31. logged: Boolean
  32. }
  33. # Input for adding characters
  34. input CharacterAddInput {
  35. # The primary IRC nick name to recognize this character by
  36. nick: String!
  37. # The character's name
  38. name: String!
  39. # Optioanl shortened name. By default, it uses the first token in the name
  40. shortName: String
  41. # Description for a character.
  42. description: String
  43. # Optioanlly, specify another author. This needs special permissions if it's not
  44. # your own username
  45. author: String
  46. }
  47. # Input for addNick and removeNick mutation
  48. input CharacterNickInput {
  49. # The ID of the character
  50. id: String!
  51. # The nick to add or remove
  52. nick: String!
  53. }
  54. input CharacterEditInput {
  55. # The id for the character to edit
  56. id: String!
  57. # The full name of the character -- not the salarian full name!
  58. name: String
  59. # The character's short name that is used in compact lists
  60. shortName: String
  61. # A short description for the character
  62. description: String
  63. }