site.graphql 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # ===============================================
  2. # SITE
  3. # ===============================================
  4. extend type Query {
  5. site: SiteQuery
  6. }
  7. extend type Mutation {
  8. site: SiteMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type SiteQuery {
  14. config: SiteConfig @auth(requires: ["manage:system"])
  15. }
  16. # -----------------------------------------------
  17. # MUTATIONS
  18. # -----------------------------------------------
  19. type SiteMutation {
  20. updateConfig(
  21. host: String
  22. title: String
  23. description: String
  24. robots: [String]
  25. analyticsService: String
  26. analyticsId: String
  27. company: String
  28. contentLicense: String
  29. logoUrl: String
  30. featurePageRatings: Boolean
  31. featurePageComments: Boolean
  32. featurePersonalWikis: Boolean
  33. securityOpenRedirect: Boolean
  34. securityIframe: Boolean
  35. securityReferrerPolicy: Boolean
  36. securityTrustProxy: Boolean
  37. securitySRI: Boolean
  38. securityHSTS: Boolean
  39. securityHSTSDuration: Int
  40. securityCSP: Boolean
  41. securityCSPDirectives: String
  42. uploadMaxFileSize: Int
  43. uploadMaxFiles: Int
  44. ): DefaultResponse @auth(requires: ["manage:system"])
  45. }
  46. # -----------------------------------------------
  47. # TYPES
  48. # -----------------------------------------------
  49. type SiteConfig {
  50. host: String!
  51. title: String!
  52. description: String!
  53. robots: [String]!
  54. analyticsService: String!
  55. analyticsId: String!
  56. company: String!
  57. contentLicense: String!
  58. logoUrl: String!
  59. featurePageRatings: Boolean!
  60. featurePageComments: Boolean!
  61. featurePersonalWikis: Boolean!
  62. securityOpenRedirect: Boolean!
  63. securityIframe: Boolean!
  64. securityReferrerPolicy: Boolean!
  65. securityTrustProxy: Boolean!
  66. securitySRI: Boolean!
  67. securityHSTS: Boolean!
  68. securityHSTSDuration: Int!
  69. securityCSP: Boolean!
  70. securityCSPDirectives: String!
  71. uploadMaxFileSize: Int!
  72. uploadMaxFiles: Int!
  73. }