12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- # ===============================================
- # SITE
- # ===============================================
- extend type Query {
- site: SiteQuery
- }
- extend type Mutation {
- site: SiteMutation
- }
- # -----------------------------------------------
- # QUERIES
- # -----------------------------------------------
- type SiteQuery {
- config: SiteConfig @auth(requires: ["manage:system"])
- }
- # -----------------------------------------------
- # MUTATIONS
- # -----------------------------------------------
- type SiteMutation {
- updateConfig(
- host: String
- title: String
- description: String
- robots: [String]
- analyticsService: String
- analyticsId: String
- company: String
- contentLicense: String
- logoUrl: String
- featurePageRatings: Boolean
- featurePageComments: Boolean
- featurePersonalWikis: Boolean
- securityOpenRedirect: Boolean
- securityIframe: Boolean
- securityReferrerPolicy: Boolean
- securityTrustProxy: Boolean
- securitySRI: Boolean
- securityHSTS: Boolean
- securityHSTSDuration: Int
- securityCSP: Boolean
- securityCSPDirectives: String
- uploadMaxFileSize: Int
- uploadMaxFiles: Int
- ): DefaultResponse @auth(requires: ["manage:system"])
- }
- # -----------------------------------------------
- # TYPES
- # -----------------------------------------------
- type SiteConfig {
- host: String!
- title: String!
- description: String!
- robots: [String]!
- analyticsService: String!
- analyticsId: String!
- company: String!
- contentLicense: String!
- logoUrl: String!
- featurePageRatings: Boolean!
- featurePageComments: Boolean!
- featurePersonalWikis: Boolean!
- securityOpenRedirect: Boolean!
- securityIframe: Boolean!
- securityReferrerPolicy: Boolean!
- securityTrustProxy: Boolean!
- securitySRI: Boolean!
- securityHSTS: Boolean!
- securityHSTSDuration: Int!
- securityCSP: Boolean!
- securityCSPDirectives: String!
- uploadMaxFileSize: Int!
- uploadMaxFiles: Int!
- }
|