prod-schema.graphql 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. schema
  2. @link(url: "https://specs.apollo.dev/link/v1.0")
  3. @link(url: "https://specs.apollo.dev/join/v0.3", for: EXECUTION)
  4. {
  5. query: Query
  6. mutation: Mutation
  7. }
  8. directive @join__enumValue(graph: join__Graph!) repeatable on ENUM_VALUE
  9. directive @join__field(graph: join__Graph, requires: join__FieldSet, provides: join__FieldSet, type: String, external: Boolean, override: String, usedOverridden: Boolean) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
  10. directive @join__graph(name: String!, url: String!) on ENUM_VALUE
  11. directive @join__implements(graph: join__Graph!, interface: String!) repeatable on OBJECT | INTERFACE
  12. directive @join__type(graph: join__Graph!, key: join__FieldSet, extension: Boolean! = false, resolvable: Boolean! = true, isInterfaceObject: Boolean! = false) repeatable on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT | SCALAR
  13. directive @join__unionMember(graph: join__Graph!, member: String!) repeatable on UNION
  14. directive @link(url: String, as: String, for: link__Purpose, import: [link__Import]) repeatable on SCHEMA
  15. type AccessTokenResponse
  16. @join__type(graph: AUTH)
  17. {
  18. access_token: String!
  19. id_token: String!
  20. token_type: String!
  21. expires_in: Int!
  22. refresh_token: String!
  23. refresh_expires_in: Int!
  24. not_before_policy: Int!
  25. session_state: String!
  26. scope: [String!]!
  27. }
  28. input Credentials
  29. @join__type(graph: AUTH)
  30. {
  31. username: String!
  32. password: String!
  33. }
  34. scalar DateTime
  35. @join__type(graph: AUTH)
  36. enum ErrorAuth
  37. @join__type(graph: AUTH)
  38. {
  39. ILLEGAL_USERNAME @join__enumValue(graph: AUTH)
  40. ALREADY_EXISTS @join__enumValue(graph: AUTH)
  41. INVALID_ARGUMENT @join__enumValue(graph: AUTH)
  42. }
  43. scalar join__FieldSet
  44. enum join__Graph {
  45. AUTH @join__graph(name: "auth", url: "https://auth.craft.beejay.kim")
  46. }
  47. scalar link__Import
  48. enum link__Purpose {
  49. """
  50. `SECURITY` features provide metadata necessary to securely resolve fields.
  51. """
  52. SECURITY
  53. """
  54. `EXECUTION` features provide metadata necessary for operation execution.
  55. """
  56. EXECUTION
  57. }
  58. type Mutation
  59. @join__type(graph: AUTH)
  60. {
  61. Signup(credentials: Credentials!): String
  62. Login(credentials: Credentials!): AccessTokenResponse
  63. RefreshToken(token: String!): AccessTokenResponse
  64. }
  65. interface Node
  66. @join__type(graph: AUTH)
  67. {
  68. id: ID!
  69. }
  70. type Query
  71. @join__type(graph: AUTH)
  72. {
  73. User(id: ID!): User
  74. }
  75. type User implements Node
  76. @join__implements(graph: AUTH, interface: "Node")
  77. @join__type(graph: AUTH, key: "id")
  78. {
  79. id: ID!
  80. username: String!
  81. created_at: DateTime!
  82. enabled: Boolean!
  83. email_verified: Boolean!
  84. first_name: String
  85. last_name: String
  86. email: String
  87. level: Int!
  88. }