site.graphql 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. logoUrl: String!
  29. featurePageRatings: Boolean!
  30. featurePageComments: Boolean!
  31. featurePersonalWikis: Boolean!
  32. securityIframe: Boolean!
  33. securityReferrerPolicy: Boolean!
  34. securityTrustProxy: Boolean!
  35. securitySRI: Boolean!
  36. securityHSTS: Boolean!
  37. securityHSTSDuration: Int!
  38. securityCSP: Boolean!
  39. securityCSPDirectives: String!
  40. ): DefaultResponse @auth(requires: ["manage:system"])
  41. }
  42. # -----------------------------------------------
  43. # TYPES
  44. # -----------------------------------------------
  45. type SiteConfig {
  46. host: String!
  47. title: String!
  48. description: String!
  49. robots: [String]!
  50. analyticsService: String!
  51. analyticsId: String!
  52. company: String!
  53. logoUrl: String!
  54. featurePageRatings: Boolean!
  55. featurePageComments: Boolean!
  56. featurePersonalWikis: Boolean!
  57. securityIframe: Boolean!
  58. securityReferrerPolicy: Boolean!
  59. securityTrustProxy: Boolean!
  60. securitySRI: Boolean!
  61. securityHSTS: Boolean!
  62. securityHSTSDuration: Int!
  63. securityCSP: Boolean!
  64. securityCSPDirectives: String!
  65. }