Files
zkAuth/graphs/totpAuthenticatorGraph/schema.graphql
2022-09-21 15:06:14 +02:00

34 lines
789 B
GraphQL

type Authentication @entity {
id: ID! # same as requestId
requestId: BigInt!
requestor: Address!
requestee: Address!
authData: AuthData @derivedFrom(field: "authentication")
status: AuthStatus @derivedFrom(field: "authentication")
created: String!
}
type AuthData @entity {
id: ID! # requestId + data
authentication: Authentication!
totp5: BigInt!
totp6Hash: Bytes!
genTime: BigInt!
created: String!
}
type AuthStatus @entity {
id: ID! # requestId
authentication: Authentication!
hasResponse: Boolean!
isValid: Boolean!
validationTime: String
}
type Address @entity {
id: ID! # same as address
address: Bytes!
authOutgoing: [Authentication!] @derivedFrom(field: "requestor")
authIncoming: [Authentication!] @derivedFrom(field: "requestee")
}