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.

61 lines
1.3 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. sendTest(
  21. recipientEmail: String!
  22. ): DefaultResponse @auth(requires: ["manage:system"])
  23. updateConfig(
  24. senderName: String!
  25. senderEmail: String!
  26. host: String!
  27. port: Int!
  28. secure: Boolean!
  29. user: String!
  30. pass: String!
  31. useDKIM: Boolean!
  32. dkimDomainName: String!
  33. dkimKeySelector: String!
  34. dkimPrivateKey: String!
  35. ): DefaultResponse @auth(requires: ["manage:system"])
  36. }
  37. # -----------------------------------------------
  38. # TYPES
  39. # -----------------------------------------------
  40. type MailConfig {
  41. senderName: String!
  42. senderEmail: String!
  43. host: String!
  44. port: Int!
  45. secure: Boolean!
  46. user: String!
  47. pass: String!
  48. useDKIM: Boolean!
  49. dkimDomainName: String!
  50. dkimKeySelector: String!
  51. dkimPrivateKey: String!
  52. }