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.

75 lines
1.7 KiB

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