site.graphql 1.8 KB

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