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.

57 lines
1.2 KiB

  1. # ===============================================
  2. # MAIL
  3. # ===============================================
  4. extend type Query {
  5. mail: MailQuery
  6. }
  7. extend type Mutation {
  8. mail: MailMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type MailQuery {
  14. config: MailConfig @auth(requires: ["manage:system"])
  15. }
  16. # -----------------------------------------------
  17. # MUTATIONS
  18. # -----------------------------------------------
  19. type MailMutation {
  20. updateConfig(
  21. senderName: String!
  22. senderEmail: String!
  23. host: String!
  24. port: Int!
  25. secure: Boolean!
  26. user: String!
  27. pass: String!
  28. useDKIM: Boolean!
  29. dkimDomainName: String!
  30. dkimKeySelector: String!
  31. dkimPrivateKey: String!
  32. ): DefaultResponse @auth(requires: ["manage:system"])
  33. }
  34. # -----------------------------------------------
  35. # TYPES
  36. # -----------------------------------------------
  37. type MailConfig {
  38. senderName: String!
  39. senderEmail: String!
  40. host: String!
  41. port: Int!
  42. secure: Boolean!
  43. user: String!
  44. pass: String!
  45. useDKIM: Boolean!
  46. dkimDomainName: String!
  47. dkimKeySelector: String!
  48. dkimPrivateKey: String!
  49. }