2018-12-24 01:03:10 -05:00
|
|
|
# ===============================================
|
|
|
|
# SITE
|
|
|
|
# ===============================================
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
site: SiteQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
site: SiteMutation
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type SiteQuery {
|
|
|
|
config: SiteConfig @auth(requires: ["manage:system"])
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type SiteMutation {
|
|
|
|
updateConfig(
|
2020-05-10 15:55:28 -04:00
|
|
|
host: String
|
|
|
|
title: String
|
|
|
|
description: String
|
|
|
|
robots: [String]
|
|
|
|
analyticsService: String
|
|
|
|
analyticsId: String
|
|
|
|
company: String
|
|
|
|
contentLicense: String
|
|
|
|
logoUrl: String
|
2020-07-03 19:36:33 -04:00
|
|
|
authAutoLogin: Boolean
|
2020-07-05 23:55:11 -04:00
|
|
|
authEnforce2FA: Boolean
|
2020-07-05 01:36:02 -04:00
|
|
|
authHideLocal: Boolean
|
2020-07-03 19:36:33 -04:00
|
|
|
authLoginBgUrl: String
|
|
|
|
authJwtAudience: String
|
|
|
|
authJwtExpiration: String
|
|
|
|
authJwtRenewablePeriod: String
|
2020-05-10 15:55:28 -04:00
|
|
|
featurePageRatings: Boolean
|
|
|
|
featurePageComments: Boolean
|
|
|
|
featurePersonalWikis: Boolean
|
2020-05-29 18:24:20 -04:00
|
|
|
securityOpenRedirect: Boolean
|
2020-05-10 15:55:28 -04:00
|
|
|
securityIframe: Boolean
|
|
|
|
securityReferrerPolicy: Boolean
|
|
|
|
securityTrustProxy: Boolean
|
|
|
|
securitySRI: Boolean
|
|
|
|
securityHSTS: Boolean
|
|
|
|
securityHSTSDuration: Int
|
|
|
|
securityCSP: Boolean
|
|
|
|
securityCSPDirectives: String
|
|
|
|
uploadMaxFileSize: Int
|
|
|
|
uploadMaxFiles: Int
|
2021-12-17 21:41:23 -05:00
|
|
|
uploadScanSVG: Boolean
|
2021-12-24 20:18:12 -05:00
|
|
|
uploadForceDownload: Boolean
|
2020-05-10 15:55:28 -04:00
|
|
|
|
2018-12-24 01:03:10 -05:00
|
|
|
): DefaultResponse @auth(requires: ["manage:system"])
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type SiteConfig {
|
2021-12-17 21:41:23 -05:00
|
|
|
host: String
|
|
|
|
title: String
|
|
|
|
description: String
|
|
|
|
robots: [String]
|
|
|
|
analyticsService: String
|
|
|
|
analyticsId: String
|
|
|
|
company: String
|
|
|
|
contentLicense: String
|
|
|
|
logoUrl: String
|
2020-07-03 19:36:33 -04:00
|
|
|
authAutoLogin: Boolean
|
2020-07-05 23:55:11 -04:00
|
|
|
authEnforce2FA: Boolean
|
2020-07-05 01:36:02 -04:00
|
|
|
authHideLocal: Boolean
|
2020-07-03 19:36:33 -04:00
|
|
|
authLoginBgUrl: String
|
|
|
|
authJwtAudience: String
|
|
|
|
authJwtExpiration: String
|
|
|
|
authJwtRenewablePeriod: String
|
2021-12-17 21:41:23 -05:00
|
|
|
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
|
|
|
|
uploadScanSVG: Boolean
|
2021-12-24 20:18:12 -05:00
|
|
|
uploadForceDownload: Boolean
|
2018-12-24 01:03:10 -05:00
|
|
|
}
|