aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/schema/identity.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'api/graphql/schema/identity.graphql')
-rw-r--r--api/graphql/schema/identity.graphql32
1 files changed, 32 insertions, 0 deletions
diff --git a/api/graphql/schema/identity.graphql b/api/graphql/schema/identity.graphql
new file mode 100644
index 00000000..93154a90
--- /dev/null
+++ b/api/graphql/schema/identity.graphql
@@ -0,0 +1,32 @@
+"""Represents an identity"""
+type Identity {
+ """The identifier for this identity"""
+ id: String!
+ """The human version (truncated) identifier for this identity"""
+ humanId: String!
+ """The name of the person, if known."""
+ name: String
+ """The email of the person, if known."""
+ email: String
+ """The login of the person, if known."""
+ login: String
+ """A non-empty string to display, representing the identity, based on the non-empty values."""
+ displayName: String!
+ """An url to an avatar"""
+ avatarUrl: String
+ """isProtected is true if the chain of git commits started to be signed.
+ If that's the case, only signed commit with a valid key for this identity can be added."""
+ isProtected: Boolean!
+}
+
+type IdentityConnection {
+ edges: [IdentityEdge!]!
+ nodes: [Identity!]!
+ pageInfo: PageInfo!
+ totalCount: Int!
+}
+
+type IdentityEdge {
+ cursor: String!
+ node: Identity!
+} \ No newline at end of file