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.

42 lines
925 B

  1. # A File contains information about a file and where to download it.
  2. type File {
  3. # The file's unique ID
  4. id: String!
  5. # The kind of file. Most will be "upload", but some that are ported from the wiki will have other values for this.
  6. kind: String!
  7. # The time of uploading
  8. time: String!
  9. # Whether the file is publicly listable. Someone with knowledge of the ID
  10. # will still be able to view it, however.
  11. public: Boolean!
  12. # The file's name
  13. name: String!
  14. # The MIME type of the file
  15. mimeType: String!
  16. # The file's size in bytes
  17. size: Int!
  18. # The uploader
  19. author: String!
  20. # The URL where the file is hosted
  21. url: String
  22. }
  23. # Input for editFile mutation
  24. input EditFileInput {
  25. # The file's unique ID
  26. id: String!
  27. # Whether the file is publicly listable. Someone with knowledge of the ID
  28. # will still be able to view it, however.
  29. public: Boolean
  30. # The file's name
  31. name: String
  32. }