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.

91 lines
1.9 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. }
  31. # Input for adding characters
  32. input CharacterAddInput {
  33. # The primary IRC nick name to recognize this character by
  34. nick: String!
  35. # The character's name
  36. name: String!
  37. # Optioanl shortened name. By default, it uses the first token in the name
  38. shortName: String
  39. # Description for a character.
  40. description: String
  41. # Optioanlly, specify another author. This needs special permissions if it's not
  42. # your own username
  43. author: String
  44. }
  45. # Input for addNick and removeNick mutation
  46. input CharacterNickInput {
  47. # The ID of the character
  48. id: String!
  49. # The nick to add or remove
  50. nick: String!
  51. }
  52. # Inpuit for editCharacter mutation
  53. input CharacterEditInput {
  54. # The id for the character to edit
  55. id: String!
  56. # The full name of the character -- not the salarian full name!
  57. name: String
  58. # The character's short name that is used in compact lists
  59. shortName: String
  60. # A short description for the character
  61. description: String
  62. }
  63. # Input for removeCharacter mutation
  64. input CharacterRemoveInput {
  65. # The id for the character to edit
  66. id: String!
  67. }