add .graphclient

This commit is contained in:
3lLobo
2022-09-22 20:27:28 +02:00
parent 4b1f0f54de
commit 8ed93165c3
7 changed files with 9936 additions and 1 deletions

2
dapp/.gitignore vendored
View File

@@ -1,7 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Wolf - graph stuff
.graphclient/
# .graphclient/
# dependencies
/node_modules

1070
dapp/.graphclient/index.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,599 @@
schema {
query: Query
subscription: Subscription
}
"Marks the GraphQL type as indexable entity. Each type that should be an entity is required to be annotated with this directive."
directive @entity on OBJECT
"Defined a Subgraph ID for an object type"
directive @subgraphId(id: String!) on OBJECT
"creates a virtual field on the entity that may be queried but cannot be set manually through the mappings API."
directive @derivedFrom(field: String!) on FIELD_DEFINITION
type Address {
id: ID!
address: Bytes!
authOutgoing(skip: Int = 0, first: Int = 100, orderBy: Authentication_orderBy, orderDirection: OrderDirection, where: Authentication_filter): [Authentication!]
authIncoming(skip: Int = 0, first: Int = 100, orderBy: Authentication_orderBy, orderDirection: OrderDirection, where: Authentication_filter): [Authentication!]
}
input Address_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
address: Bytes
address_not: Bytes
address_in: [Bytes!]
address_not_in: [Bytes!]
address_contains: Bytes
address_not_contains: Bytes
authOutgoing_: Authentication_filter
authIncoming_: Authentication_filter
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
}
enum Address_orderBy {
id
address
authOutgoing
authIncoming
}
type AuthData {
id: ID!
authentication: Authentication!
totp5: BigInt!
totp6Hash: Bytes!
genTime: BigInt!
created: String!
}
input AuthData_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
authentication: String
authentication_not: String
authentication_gt: String
authentication_lt: String
authentication_gte: String
authentication_lte: String
authentication_in: [String!]
authentication_not_in: [String!]
authentication_contains: String
authentication_contains_nocase: String
authentication_not_contains: String
authentication_not_contains_nocase: String
authentication_starts_with: String
authentication_starts_with_nocase: String
authentication_not_starts_with: String
authentication_not_starts_with_nocase: String
authentication_ends_with: String
authentication_ends_with_nocase: String
authentication_not_ends_with: String
authentication_not_ends_with_nocase: String
authentication_: Authentication_filter
totp5: BigInt
totp5_not: BigInt
totp5_gt: BigInt
totp5_lt: BigInt
totp5_gte: BigInt
totp5_lte: BigInt
totp5_in: [BigInt!]
totp5_not_in: [BigInt!]
totp6Hash: Bytes
totp6Hash_not: Bytes
totp6Hash_in: [Bytes!]
totp6Hash_not_in: [Bytes!]
totp6Hash_contains: Bytes
totp6Hash_not_contains: Bytes
genTime: BigInt
genTime_not: BigInt
genTime_gt: BigInt
genTime_lt: BigInt
genTime_gte: BigInt
genTime_lte: BigInt
genTime_in: [BigInt!]
genTime_not_in: [BigInt!]
created: String
created_not: String
created_gt: String
created_lt: String
created_gte: String
created_lte: String
created_in: [String!]
created_not_in: [String!]
created_contains: String
created_contains_nocase: String
created_not_contains: String
created_not_contains_nocase: String
created_starts_with: String
created_starts_with_nocase: String
created_not_starts_with: String
created_not_starts_with_nocase: String
created_ends_with: String
created_ends_with_nocase: String
created_not_ends_with: String
created_not_ends_with_nocase: String
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
}
enum AuthData_orderBy {
id
authentication
totp5
totp6Hash
genTime
created
}
type AuthStatus {
id: ID!
authentication: Authentication!
hasResponse: Boolean!
isValid: Boolean!
validationTime: String
}
input AuthStatus_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
authentication: String
authentication_not: String
authentication_gt: String
authentication_lt: String
authentication_gte: String
authentication_lte: String
authentication_in: [String!]
authentication_not_in: [String!]
authentication_contains: String
authentication_contains_nocase: String
authentication_not_contains: String
authentication_not_contains_nocase: String
authentication_starts_with: String
authentication_starts_with_nocase: String
authentication_not_starts_with: String
authentication_not_starts_with_nocase: String
authentication_ends_with: String
authentication_ends_with_nocase: String
authentication_not_ends_with: String
authentication_not_ends_with_nocase: String
authentication_: Authentication_filter
hasResponse: Boolean
hasResponse_not: Boolean
hasResponse_in: [Boolean!]
hasResponse_not_in: [Boolean!]
isValid: Boolean
isValid_not: Boolean
isValid_in: [Boolean!]
isValid_not_in: [Boolean!]
validationTime: String
validationTime_not: String
validationTime_gt: String
validationTime_lt: String
validationTime_gte: String
validationTime_lte: String
validationTime_in: [String!]
validationTime_not_in: [String!]
validationTime_contains: String
validationTime_contains_nocase: String
validationTime_not_contains: String
validationTime_not_contains_nocase: String
validationTime_starts_with: String
validationTime_starts_with_nocase: String
validationTime_not_starts_with: String
validationTime_not_starts_with_nocase: String
validationTime_ends_with: String
validationTime_ends_with_nocase: String
validationTime_not_ends_with: String
validationTime_not_ends_with_nocase: String
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
}
enum AuthStatus_orderBy {
id
authentication
hasResponse
isValid
validationTime
}
type Authentication {
id: ID!
requestId: BigInt!
requestor: Address!
requestee: Address!
authData: AuthData
status: AuthStatus
created: String!
}
input Authentication_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
requestId: BigInt
requestId_not: BigInt
requestId_gt: BigInt
requestId_lt: BigInt
requestId_gte: BigInt
requestId_lte: BigInt
requestId_in: [BigInt!]
requestId_not_in: [BigInt!]
requestor: String
requestor_not: String
requestor_gt: String
requestor_lt: String
requestor_gte: String
requestor_lte: String
requestor_in: [String!]
requestor_not_in: [String!]
requestor_contains: String
requestor_contains_nocase: String
requestor_not_contains: String
requestor_not_contains_nocase: String
requestor_starts_with: String
requestor_starts_with_nocase: String
requestor_not_starts_with: String
requestor_not_starts_with_nocase: String
requestor_ends_with: String
requestor_ends_with_nocase: String
requestor_not_ends_with: String
requestor_not_ends_with_nocase: String
requestor_: Address_filter
requestee: String
requestee_not: String
requestee_gt: String
requestee_lt: String
requestee_gte: String
requestee_lte: String
requestee_in: [String!]
requestee_not_in: [String!]
requestee_contains: String
requestee_contains_nocase: String
requestee_not_contains: String
requestee_not_contains_nocase: String
requestee_starts_with: String
requestee_starts_with_nocase: String
requestee_not_starts_with: String
requestee_not_starts_with_nocase: String
requestee_ends_with: String
requestee_ends_with_nocase: String
requestee_not_ends_with: String
requestee_not_ends_with_nocase: String
requestee_: Address_filter
authData_: AuthData_filter
status_: AuthStatus_filter
created: String
created_not: String
created_gt: String
created_lt: String
created_gte: String
created_lte: String
created_in: [String!]
created_not_in: [String!]
created_contains: String
created_contains_nocase: String
created_not_contains: String
created_not_contains_nocase: String
created_starts_with: String
created_starts_with_nocase: String
created_not_starts_with: String
created_not_starts_with_nocase: String
created_ends_with: String
created_ends_with_nocase: String
created_not_ends_with: String
created_not_ends_with_nocase: String
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
}
enum Authentication_orderBy {
id
requestId
requestor
requestee
authData
status
created
}
scalar BigDecimal
scalar BigInt
input BlockChangedFilter {
number_gte: Int!
}
input Block_height {
hash: Bytes
number: Int
number_gte: Int
}
scalar Bytes
"""Defines the order direction, either ascending or descending"""
enum OrderDirection {
asc
desc
}
type Query {
authentication(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Authentication
authentications(
skip: Int = 0
first: Int = 100
orderBy: Authentication_orderBy
orderDirection: OrderDirection
where: Authentication_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Authentication!]!
authData(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): AuthData
authDatas(
skip: Int = 0
first: Int = 100
orderBy: AuthData_orderBy
orderDirection: OrderDirection
where: AuthData_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [AuthData!]!
authStatus(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): AuthStatus
authStatuses(
skip: Int = 0
first: Int = 100
orderBy: AuthStatus_orderBy
orderDirection: OrderDirection
where: AuthStatus_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [AuthStatus!]!
address(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Address
addresses(
skip: Int = 0
first: Int = 100
orderBy: Address_orderBy
orderDirection: OrderDirection
where: Address_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Address!]!
"""Access to subgraph metadata"""
_meta(block: Block_height): _Meta_
}
type Subscription {
authentication(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Authentication
authentications(
skip: Int = 0
first: Int = 100
orderBy: Authentication_orderBy
orderDirection: OrderDirection
where: Authentication_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Authentication!]!
authData(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): AuthData
authDatas(
skip: Int = 0
first: Int = 100
orderBy: AuthData_orderBy
orderDirection: OrderDirection
where: AuthData_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [AuthData!]!
authStatus(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): AuthStatus
authStatuses(
skip: Int = 0
first: Int = 100
orderBy: AuthStatus_orderBy
orderDirection: OrderDirection
where: AuthStatus_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [AuthStatus!]!
address(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Address
addresses(
skip: Int = 0
first: Int = 100
orderBy: Address_orderBy
orderDirection: OrderDirection
where: Address_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Address!]!
"""Access to subgraph metadata"""
_meta(block: Block_height): _Meta_
}
type _Block_ {
"""The hash of the block"""
hash: Bytes
"""The block number"""
number: Int!
"""Integer representation of the timestamp stored in blocks for the chain"""
timestamp: Int
}
"""The type for the top-level _meta field"""
type _Meta_ {
"""
Information about a specific subgraph block. The hash of the block
will be null if the _meta field has a block constraint that asks for
a block number. It will be filled if the _meta field has no block constraint
and therefore asks for the latest block
"""
block: _Block_!
"""The deployment ID"""
deployment: String!
"""If `true`, the subgraph encountered indexing errors at some past block"""
hasIndexingErrors: Boolean!
}
enum _SubgraphErrorPolicy_ {
"""Data will be returned even if the subgraph has indexing errors"""
allow
"""
If the subgraph has indexing errors, data will be omitted. The default.
"""
deny
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,599 @@
schema {
query: Query
subscription: Subscription
}
"Marks the GraphQL type as indexable entity. Each type that should be an entity is required to be annotated with this directive."
directive @entity on OBJECT
"Defined a Subgraph ID for an object type"
directive @subgraphId(id: String!) on OBJECT
"creates a virtual field on the entity that may be queried but cannot be set manually through the mappings API."
directive @derivedFrom(field: String!) on FIELD_DEFINITION
type Address {
id: ID!
address: Bytes!
authOutgoing(skip: Int = 0, first: Int = 100, orderBy: Authentication_orderBy, orderDirection: OrderDirection, where: Authentication_filter): [Authentication!]
authIncoming(skip: Int = 0, first: Int = 100, orderBy: Authentication_orderBy, orderDirection: OrderDirection, where: Authentication_filter): [Authentication!]
}
input Address_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
address: Bytes
address_not: Bytes
address_in: [Bytes!]
address_not_in: [Bytes!]
address_contains: Bytes
address_not_contains: Bytes
authOutgoing_: Authentication_filter
authIncoming_: Authentication_filter
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
}
enum Address_orderBy {
id
address
authOutgoing
authIncoming
}
type AuthData {
id: ID!
authentication: Authentication!
totp5: BigInt!
totp6Hash: Bytes!
genTime: BigInt!
created: String!
}
input AuthData_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
authentication: String
authentication_not: String
authentication_gt: String
authentication_lt: String
authentication_gte: String
authentication_lte: String
authentication_in: [String!]
authentication_not_in: [String!]
authentication_contains: String
authentication_contains_nocase: String
authentication_not_contains: String
authentication_not_contains_nocase: String
authentication_starts_with: String
authentication_starts_with_nocase: String
authentication_not_starts_with: String
authentication_not_starts_with_nocase: String
authentication_ends_with: String
authentication_ends_with_nocase: String
authentication_not_ends_with: String
authentication_not_ends_with_nocase: String
authentication_: Authentication_filter
totp5: BigInt
totp5_not: BigInt
totp5_gt: BigInt
totp5_lt: BigInt
totp5_gte: BigInt
totp5_lte: BigInt
totp5_in: [BigInt!]
totp5_not_in: [BigInt!]
totp6Hash: Bytes
totp6Hash_not: Bytes
totp6Hash_in: [Bytes!]
totp6Hash_not_in: [Bytes!]
totp6Hash_contains: Bytes
totp6Hash_not_contains: Bytes
genTime: BigInt
genTime_not: BigInt
genTime_gt: BigInt
genTime_lt: BigInt
genTime_gte: BigInt
genTime_lte: BigInt
genTime_in: [BigInt!]
genTime_not_in: [BigInt!]
created: String
created_not: String
created_gt: String
created_lt: String
created_gte: String
created_lte: String
created_in: [String!]
created_not_in: [String!]
created_contains: String
created_contains_nocase: String
created_not_contains: String
created_not_contains_nocase: String
created_starts_with: String
created_starts_with_nocase: String
created_not_starts_with: String
created_not_starts_with_nocase: String
created_ends_with: String
created_ends_with_nocase: String
created_not_ends_with: String
created_not_ends_with_nocase: String
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
}
enum AuthData_orderBy {
id
authentication
totp5
totp6Hash
genTime
created
}
type AuthStatus {
id: ID!
authentication: Authentication!
hasResponse: Boolean!
isValid: Boolean!
validationTime: String
}
input AuthStatus_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
authentication: String
authentication_not: String
authentication_gt: String
authentication_lt: String
authentication_gte: String
authentication_lte: String
authentication_in: [String!]
authentication_not_in: [String!]
authentication_contains: String
authentication_contains_nocase: String
authentication_not_contains: String
authentication_not_contains_nocase: String
authentication_starts_with: String
authentication_starts_with_nocase: String
authentication_not_starts_with: String
authentication_not_starts_with_nocase: String
authentication_ends_with: String
authentication_ends_with_nocase: String
authentication_not_ends_with: String
authentication_not_ends_with_nocase: String
authentication_: Authentication_filter
hasResponse: Boolean
hasResponse_not: Boolean
hasResponse_in: [Boolean!]
hasResponse_not_in: [Boolean!]
isValid: Boolean
isValid_not: Boolean
isValid_in: [Boolean!]
isValid_not_in: [Boolean!]
validationTime: String
validationTime_not: String
validationTime_gt: String
validationTime_lt: String
validationTime_gte: String
validationTime_lte: String
validationTime_in: [String!]
validationTime_not_in: [String!]
validationTime_contains: String
validationTime_contains_nocase: String
validationTime_not_contains: String
validationTime_not_contains_nocase: String
validationTime_starts_with: String
validationTime_starts_with_nocase: String
validationTime_not_starts_with: String
validationTime_not_starts_with_nocase: String
validationTime_ends_with: String
validationTime_ends_with_nocase: String
validationTime_not_ends_with: String
validationTime_not_ends_with_nocase: String
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
}
enum AuthStatus_orderBy {
id
authentication
hasResponse
isValid
validationTime
}
type Authentication {
id: ID!
requestId: BigInt!
requestor: Address!
requestee: Address!
authData: AuthData
status: AuthStatus
created: String!
}
input Authentication_filter {
id: ID
id_not: ID
id_gt: ID
id_lt: ID
id_gte: ID
id_lte: ID
id_in: [ID!]
id_not_in: [ID!]
requestId: BigInt
requestId_not: BigInt
requestId_gt: BigInt
requestId_lt: BigInt
requestId_gte: BigInt
requestId_lte: BigInt
requestId_in: [BigInt!]
requestId_not_in: [BigInt!]
requestor: String
requestor_not: String
requestor_gt: String
requestor_lt: String
requestor_gte: String
requestor_lte: String
requestor_in: [String!]
requestor_not_in: [String!]
requestor_contains: String
requestor_contains_nocase: String
requestor_not_contains: String
requestor_not_contains_nocase: String
requestor_starts_with: String
requestor_starts_with_nocase: String
requestor_not_starts_with: String
requestor_not_starts_with_nocase: String
requestor_ends_with: String
requestor_ends_with_nocase: String
requestor_not_ends_with: String
requestor_not_ends_with_nocase: String
requestor_: Address_filter
requestee: String
requestee_not: String
requestee_gt: String
requestee_lt: String
requestee_gte: String
requestee_lte: String
requestee_in: [String!]
requestee_not_in: [String!]
requestee_contains: String
requestee_contains_nocase: String
requestee_not_contains: String
requestee_not_contains_nocase: String
requestee_starts_with: String
requestee_starts_with_nocase: String
requestee_not_starts_with: String
requestee_not_starts_with_nocase: String
requestee_ends_with: String
requestee_ends_with_nocase: String
requestee_not_ends_with: String
requestee_not_ends_with_nocase: String
requestee_: Address_filter
authData_: AuthData_filter
status_: AuthStatus_filter
created: String
created_not: String
created_gt: String
created_lt: String
created_gte: String
created_lte: String
created_in: [String!]
created_not_in: [String!]
created_contains: String
created_contains_nocase: String
created_not_contains: String
created_not_contains_nocase: String
created_starts_with: String
created_starts_with_nocase: String
created_not_starts_with: String
created_not_starts_with_nocase: String
created_ends_with: String
created_ends_with_nocase: String
created_not_ends_with: String
created_not_ends_with_nocase: String
"""Filter for the block changed event."""
_change_block: BlockChangedFilter
}
enum Authentication_orderBy {
id
requestId
requestor
requestee
authData
status
created
}
scalar BigDecimal
scalar BigInt
input BlockChangedFilter {
number_gte: Int!
}
input Block_height {
hash: Bytes
number: Int
number_gte: Int
}
scalar Bytes
"""Defines the order direction, either ascending or descending"""
enum OrderDirection {
asc
desc
}
type Query {
authentication(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Authentication
authentications(
skip: Int = 0
first: Int = 100
orderBy: Authentication_orderBy
orderDirection: OrderDirection
where: Authentication_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Authentication!]!
authData(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): AuthData
authDatas(
skip: Int = 0
first: Int = 100
orderBy: AuthData_orderBy
orderDirection: OrderDirection
where: AuthData_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [AuthData!]!
authStatus(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): AuthStatus
authStatuses(
skip: Int = 0
first: Int = 100
orderBy: AuthStatus_orderBy
orderDirection: OrderDirection
where: AuthStatus_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [AuthStatus!]!
address(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Address
addresses(
skip: Int = 0
first: Int = 100
orderBy: Address_orderBy
orderDirection: OrderDirection
where: Address_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Address!]!
"""Access to subgraph metadata"""
_meta(block: Block_height): _Meta_
}
type Subscription {
authentication(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Authentication
authentications(
skip: Int = 0
first: Int = 100
orderBy: Authentication_orderBy
orderDirection: OrderDirection
where: Authentication_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Authentication!]!
authData(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): AuthData
authDatas(
skip: Int = 0
first: Int = 100
orderBy: AuthData_orderBy
orderDirection: OrderDirection
where: AuthData_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [AuthData!]!
authStatus(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): AuthStatus
authStatuses(
skip: Int = 0
first: Int = 100
orderBy: AuthStatus_orderBy
orderDirection: OrderDirection
where: AuthStatus_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [AuthStatus!]!
address(
id: ID!
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): Address
addresses(
skip: Int = 0
first: Int = 100
orderBy: Address_orderBy
orderDirection: OrderDirection
where: Address_filter
"""
The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.
"""
block: Block_height
"""
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
"""
subgraphError: _SubgraphErrorPolicy_! = deny
): [Address!]!
"""Access to subgraph metadata"""
_meta(block: Block_height): _Meta_
}
type _Block_ {
"""The hash of the block"""
hash: Bytes
"""The block number"""
number: Int!
"""Integer representation of the timestamp stored in blocks for the chain"""
timestamp: Int
}
"""The type for the top-level _meta field"""
type _Meta_ {
"""
Information about a specific subgraph block. The hash of the block
will be null if the _meta field has a block constraint that asks for
a block number. It will be filled if the _meta field has no block constraint
and therefore asks for the latest block
"""
block: _Block_!
"""The deployment ID"""
deployment: String!
"""If `true`, the subgraph encountered indexing errors at some past block"""
hasIndexingErrors: Boolean!
}
enum _SubgraphErrorPolicy_ {
"""Data will be returned even if the subgraph has indexing errors"""
allow
"""
If the subgraph has indexing errors, data will be omitted. The default.
"""
deny
}

View File

@@ -0,0 +1,626 @@
// @ts-nocheck
import { InContextSdkMethod } from '@graphql-mesh/types';
import { MeshContext } from '@graphql-mesh/runtime';
export namespace ZkauthtotpTypes {
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
String: string;
Boolean: boolean;
Int: number;
Float: number;
BigDecimal: any;
BigInt: any;
Bytes: any;
};
export type Address = {
id: Scalars['ID'];
address: Scalars['Bytes'];
authOutgoing?: Maybe<Array<Authentication>>;
authIncoming?: Maybe<Array<Authentication>>;
};
export type AddressauthOutgoingArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<Authentication_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<Authentication_filter>;
};
export type AddressauthIncomingArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<Authentication_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<Authentication_filter>;
};
export type Address_filter = {
id?: InputMaybe<Scalars['ID']>;
id_not?: InputMaybe<Scalars['ID']>;
id_gt?: InputMaybe<Scalars['ID']>;
id_lt?: InputMaybe<Scalars['ID']>;
id_gte?: InputMaybe<Scalars['ID']>;
id_lte?: InputMaybe<Scalars['ID']>;
id_in?: InputMaybe<Array<Scalars['ID']>>;
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
address?: InputMaybe<Scalars['Bytes']>;
address_not?: InputMaybe<Scalars['Bytes']>;
address_in?: InputMaybe<Array<Scalars['Bytes']>>;
address_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
address_contains?: InputMaybe<Scalars['Bytes']>;
address_not_contains?: InputMaybe<Scalars['Bytes']>;
authOutgoing_?: InputMaybe<Authentication_filter>;
authIncoming_?: InputMaybe<Authentication_filter>;
/** Filter for the block changed event. */
_change_block?: InputMaybe<BlockChangedFilter>;
};
export type Address_orderBy =
| 'id'
| 'address'
| 'authOutgoing'
| 'authIncoming';
export type AuthData = {
id: Scalars['ID'];
authentication: Authentication;
totp5: Scalars['BigInt'];
totp6Hash: Scalars['Bytes'];
genTime: Scalars['BigInt'];
created: Scalars['String'];
};
export type AuthData_filter = {
id?: InputMaybe<Scalars['ID']>;
id_not?: InputMaybe<Scalars['ID']>;
id_gt?: InputMaybe<Scalars['ID']>;
id_lt?: InputMaybe<Scalars['ID']>;
id_gte?: InputMaybe<Scalars['ID']>;
id_lte?: InputMaybe<Scalars['ID']>;
id_in?: InputMaybe<Array<Scalars['ID']>>;
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
authentication?: InputMaybe<Scalars['String']>;
authentication_not?: InputMaybe<Scalars['String']>;
authentication_gt?: InputMaybe<Scalars['String']>;
authentication_lt?: InputMaybe<Scalars['String']>;
authentication_gte?: InputMaybe<Scalars['String']>;
authentication_lte?: InputMaybe<Scalars['String']>;
authentication_in?: InputMaybe<Array<Scalars['String']>>;
authentication_not_in?: InputMaybe<Array<Scalars['String']>>;
authentication_contains?: InputMaybe<Scalars['String']>;
authentication_contains_nocase?: InputMaybe<Scalars['String']>;
authentication_not_contains?: InputMaybe<Scalars['String']>;
authentication_not_contains_nocase?: InputMaybe<Scalars['String']>;
authentication_starts_with?: InputMaybe<Scalars['String']>;
authentication_starts_with_nocase?: InputMaybe<Scalars['String']>;
authentication_not_starts_with?: InputMaybe<Scalars['String']>;
authentication_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
authentication_ends_with?: InputMaybe<Scalars['String']>;
authentication_ends_with_nocase?: InputMaybe<Scalars['String']>;
authentication_not_ends_with?: InputMaybe<Scalars['String']>;
authentication_not_ends_with_nocase?: InputMaybe<Scalars['String']>;
authentication_?: InputMaybe<Authentication_filter>;
totp5?: InputMaybe<Scalars['BigInt']>;
totp5_not?: InputMaybe<Scalars['BigInt']>;
totp5_gt?: InputMaybe<Scalars['BigInt']>;
totp5_lt?: InputMaybe<Scalars['BigInt']>;
totp5_gte?: InputMaybe<Scalars['BigInt']>;
totp5_lte?: InputMaybe<Scalars['BigInt']>;
totp5_in?: InputMaybe<Array<Scalars['BigInt']>>;
totp5_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
totp6Hash?: InputMaybe<Scalars['Bytes']>;
totp6Hash_not?: InputMaybe<Scalars['Bytes']>;
totp6Hash_in?: InputMaybe<Array<Scalars['Bytes']>>;
totp6Hash_not_in?: InputMaybe<Array<Scalars['Bytes']>>;
totp6Hash_contains?: InputMaybe<Scalars['Bytes']>;
totp6Hash_not_contains?: InputMaybe<Scalars['Bytes']>;
genTime?: InputMaybe<Scalars['BigInt']>;
genTime_not?: InputMaybe<Scalars['BigInt']>;
genTime_gt?: InputMaybe<Scalars['BigInt']>;
genTime_lt?: InputMaybe<Scalars['BigInt']>;
genTime_gte?: InputMaybe<Scalars['BigInt']>;
genTime_lte?: InputMaybe<Scalars['BigInt']>;
genTime_in?: InputMaybe<Array<Scalars['BigInt']>>;
genTime_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
created?: InputMaybe<Scalars['String']>;
created_not?: InputMaybe<Scalars['String']>;
created_gt?: InputMaybe<Scalars['String']>;
created_lt?: InputMaybe<Scalars['String']>;
created_gte?: InputMaybe<Scalars['String']>;
created_lte?: InputMaybe<Scalars['String']>;
created_in?: InputMaybe<Array<Scalars['String']>>;
created_not_in?: InputMaybe<Array<Scalars['String']>>;
created_contains?: InputMaybe<Scalars['String']>;
created_contains_nocase?: InputMaybe<Scalars['String']>;
created_not_contains?: InputMaybe<Scalars['String']>;
created_not_contains_nocase?: InputMaybe<Scalars['String']>;
created_starts_with?: InputMaybe<Scalars['String']>;
created_starts_with_nocase?: InputMaybe<Scalars['String']>;
created_not_starts_with?: InputMaybe<Scalars['String']>;
created_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
created_ends_with?: InputMaybe<Scalars['String']>;
created_ends_with_nocase?: InputMaybe<Scalars['String']>;
created_not_ends_with?: InputMaybe<Scalars['String']>;
created_not_ends_with_nocase?: InputMaybe<Scalars['String']>;
/** Filter for the block changed event. */
_change_block?: InputMaybe<BlockChangedFilter>;
};
export type AuthData_orderBy =
| 'id'
| 'authentication'
| 'totp5'
| 'totp6Hash'
| 'genTime'
| 'created';
export type AuthStatus = {
id: Scalars['ID'];
authentication: Authentication;
hasResponse: Scalars['Boolean'];
isValid: Scalars['Boolean'];
validationTime?: Maybe<Scalars['String']>;
};
export type AuthStatus_filter = {
id?: InputMaybe<Scalars['ID']>;
id_not?: InputMaybe<Scalars['ID']>;
id_gt?: InputMaybe<Scalars['ID']>;
id_lt?: InputMaybe<Scalars['ID']>;
id_gte?: InputMaybe<Scalars['ID']>;
id_lte?: InputMaybe<Scalars['ID']>;
id_in?: InputMaybe<Array<Scalars['ID']>>;
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
authentication?: InputMaybe<Scalars['String']>;
authentication_not?: InputMaybe<Scalars['String']>;
authentication_gt?: InputMaybe<Scalars['String']>;
authentication_lt?: InputMaybe<Scalars['String']>;
authentication_gte?: InputMaybe<Scalars['String']>;
authentication_lte?: InputMaybe<Scalars['String']>;
authentication_in?: InputMaybe<Array<Scalars['String']>>;
authentication_not_in?: InputMaybe<Array<Scalars['String']>>;
authentication_contains?: InputMaybe<Scalars['String']>;
authentication_contains_nocase?: InputMaybe<Scalars['String']>;
authentication_not_contains?: InputMaybe<Scalars['String']>;
authentication_not_contains_nocase?: InputMaybe<Scalars['String']>;
authentication_starts_with?: InputMaybe<Scalars['String']>;
authentication_starts_with_nocase?: InputMaybe<Scalars['String']>;
authentication_not_starts_with?: InputMaybe<Scalars['String']>;
authentication_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
authentication_ends_with?: InputMaybe<Scalars['String']>;
authentication_ends_with_nocase?: InputMaybe<Scalars['String']>;
authentication_not_ends_with?: InputMaybe<Scalars['String']>;
authentication_not_ends_with_nocase?: InputMaybe<Scalars['String']>;
authentication_?: InputMaybe<Authentication_filter>;
hasResponse?: InputMaybe<Scalars['Boolean']>;
hasResponse_not?: InputMaybe<Scalars['Boolean']>;
hasResponse_in?: InputMaybe<Array<Scalars['Boolean']>>;
hasResponse_not_in?: InputMaybe<Array<Scalars['Boolean']>>;
isValid?: InputMaybe<Scalars['Boolean']>;
isValid_not?: InputMaybe<Scalars['Boolean']>;
isValid_in?: InputMaybe<Array<Scalars['Boolean']>>;
isValid_not_in?: InputMaybe<Array<Scalars['Boolean']>>;
validationTime?: InputMaybe<Scalars['String']>;
validationTime_not?: InputMaybe<Scalars['String']>;
validationTime_gt?: InputMaybe<Scalars['String']>;
validationTime_lt?: InputMaybe<Scalars['String']>;
validationTime_gte?: InputMaybe<Scalars['String']>;
validationTime_lte?: InputMaybe<Scalars['String']>;
validationTime_in?: InputMaybe<Array<Scalars['String']>>;
validationTime_not_in?: InputMaybe<Array<Scalars['String']>>;
validationTime_contains?: InputMaybe<Scalars['String']>;
validationTime_contains_nocase?: InputMaybe<Scalars['String']>;
validationTime_not_contains?: InputMaybe<Scalars['String']>;
validationTime_not_contains_nocase?: InputMaybe<Scalars['String']>;
validationTime_starts_with?: InputMaybe<Scalars['String']>;
validationTime_starts_with_nocase?: InputMaybe<Scalars['String']>;
validationTime_not_starts_with?: InputMaybe<Scalars['String']>;
validationTime_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
validationTime_ends_with?: InputMaybe<Scalars['String']>;
validationTime_ends_with_nocase?: InputMaybe<Scalars['String']>;
validationTime_not_ends_with?: InputMaybe<Scalars['String']>;
validationTime_not_ends_with_nocase?: InputMaybe<Scalars['String']>;
/** Filter for the block changed event. */
_change_block?: InputMaybe<BlockChangedFilter>;
};
export type AuthStatus_orderBy =
| 'id'
| 'authentication'
| 'hasResponse'
| 'isValid'
| 'validationTime';
export type Authentication = {
id: Scalars['ID'];
requestId: Scalars['BigInt'];
requestor: Address;
requestee: Address;
authData?: Maybe<AuthData>;
status?: Maybe<AuthStatus>;
created: Scalars['String'];
};
export type Authentication_filter = {
id?: InputMaybe<Scalars['ID']>;
id_not?: InputMaybe<Scalars['ID']>;
id_gt?: InputMaybe<Scalars['ID']>;
id_lt?: InputMaybe<Scalars['ID']>;
id_gte?: InputMaybe<Scalars['ID']>;
id_lte?: InputMaybe<Scalars['ID']>;
id_in?: InputMaybe<Array<Scalars['ID']>>;
id_not_in?: InputMaybe<Array<Scalars['ID']>>;
requestId?: InputMaybe<Scalars['BigInt']>;
requestId_not?: InputMaybe<Scalars['BigInt']>;
requestId_gt?: InputMaybe<Scalars['BigInt']>;
requestId_lt?: InputMaybe<Scalars['BigInt']>;
requestId_gte?: InputMaybe<Scalars['BigInt']>;
requestId_lte?: InputMaybe<Scalars['BigInt']>;
requestId_in?: InputMaybe<Array<Scalars['BigInt']>>;
requestId_not_in?: InputMaybe<Array<Scalars['BigInt']>>;
requestor?: InputMaybe<Scalars['String']>;
requestor_not?: InputMaybe<Scalars['String']>;
requestor_gt?: InputMaybe<Scalars['String']>;
requestor_lt?: InputMaybe<Scalars['String']>;
requestor_gte?: InputMaybe<Scalars['String']>;
requestor_lte?: InputMaybe<Scalars['String']>;
requestor_in?: InputMaybe<Array<Scalars['String']>>;
requestor_not_in?: InputMaybe<Array<Scalars['String']>>;
requestor_contains?: InputMaybe<Scalars['String']>;
requestor_contains_nocase?: InputMaybe<Scalars['String']>;
requestor_not_contains?: InputMaybe<Scalars['String']>;
requestor_not_contains_nocase?: InputMaybe<Scalars['String']>;
requestor_starts_with?: InputMaybe<Scalars['String']>;
requestor_starts_with_nocase?: InputMaybe<Scalars['String']>;
requestor_not_starts_with?: InputMaybe<Scalars['String']>;
requestor_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
requestor_ends_with?: InputMaybe<Scalars['String']>;
requestor_ends_with_nocase?: InputMaybe<Scalars['String']>;
requestor_not_ends_with?: InputMaybe<Scalars['String']>;
requestor_not_ends_with_nocase?: InputMaybe<Scalars['String']>;
requestor_?: InputMaybe<Address_filter>;
requestee?: InputMaybe<Scalars['String']>;
requestee_not?: InputMaybe<Scalars['String']>;
requestee_gt?: InputMaybe<Scalars['String']>;
requestee_lt?: InputMaybe<Scalars['String']>;
requestee_gte?: InputMaybe<Scalars['String']>;
requestee_lte?: InputMaybe<Scalars['String']>;
requestee_in?: InputMaybe<Array<Scalars['String']>>;
requestee_not_in?: InputMaybe<Array<Scalars['String']>>;
requestee_contains?: InputMaybe<Scalars['String']>;
requestee_contains_nocase?: InputMaybe<Scalars['String']>;
requestee_not_contains?: InputMaybe<Scalars['String']>;
requestee_not_contains_nocase?: InputMaybe<Scalars['String']>;
requestee_starts_with?: InputMaybe<Scalars['String']>;
requestee_starts_with_nocase?: InputMaybe<Scalars['String']>;
requestee_not_starts_with?: InputMaybe<Scalars['String']>;
requestee_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
requestee_ends_with?: InputMaybe<Scalars['String']>;
requestee_ends_with_nocase?: InputMaybe<Scalars['String']>;
requestee_not_ends_with?: InputMaybe<Scalars['String']>;
requestee_not_ends_with_nocase?: InputMaybe<Scalars['String']>;
requestee_?: InputMaybe<Address_filter>;
authData_?: InputMaybe<AuthData_filter>;
status_?: InputMaybe<AuthStatus_filter>;
created?: InputMaybe<Scalars['String']>;
created_not?: InputMaybe<Scalars['String']>;
created_gt?: InputMaybe<Scalars['String']>;
created_lt?: InputMaybe<Scalars['String']>;
created_gte?: InputMaybe<Scalars['String']>;
created_lte?: InputMaybe<Scalars['String']>;
created_in?: InputMaybe<Array<Scalars['String']>>;
created_not_in?: InputMaybe<Array<Scalars['String']>>;
created_contains?: InputMaybe<Scalars['String']>;
created_contains_nocase?: InputMaybe<Scalars['String']>;
created_not_contains?: InputMaybe<Scalars['String']>;
created_not_contains_nocase?: InputMaybe<Scalars['String']>;
created_starts_with?: InputMaybe<Scalars['String']>;
created_starts_with_nocase?: InputMaybe<Scalars['String']>;
created_not_starts_with?: InputMaybe<Scalars['String']>;
created_not_starts_with_nocase?: InputMaybe<Scalars['String']>;
created_ends_with?: InputMaybe<Scalars['String']>;
created_ends_with_nocase?: InputMaybe<Scalars['String']>;
created_not_ends_with?: InputMaybe<Scalars['String']>;
created_not_ends_with_nocase?: InputMaybe<Scalars['String']>;
/** Filter for the block changed event. */
_change_block?: InputMaybe<BlockChangedFilter>;
};
export type Authentication_orderBy =
| 'id'
| 'requestId'
| 'requestor'
| 'requestee'
| 'authData'
| 'status'
| 'created';
export type BlockChangedFilter = {
number_gte: Scalars['Int'];
};
export type Block_height = {
hash?: InputMaybe<Scalars['Bytes']>;
number?: InputMaybe<Scalars['Int']>;
number_gte?: InputMaybe<Scalars['Int']>;
};
/** Defines the order direction, either ascending or descending */
export type OrderDirection =
| 'asc'
| 'desc';
export type Query = {
authentication?: Maybe<Authentication>;
authentications: Array<Authentication>;
authData?: Maybe<AuthData>;
authDatas: Array<AuthData>;
authStatus?: Maybe<AuthStatus>;
authStatuses: Array<AuthStatus>;
address?: Maybe<Address>;
addresses: Array<Address>;
/** Access to subgraph metadata */
_meta?: Maybe<_Meta_>;
};
export type QueryauthenticationArgs = {
id: Scalars['ID'];
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type QueryauthenticationsArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<Authentication_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<Authentication_filter>;
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type QueryauthDataArgs = {
id: Scalars['ID'];
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type QueryauthDatasArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<AuthData_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<AuthData_filter>;
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type QueryauthStatusArgs = {
id: Scalars['ID'];
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type QueryauthStatusesArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<AuthStatus_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<AuthStatus_filter>;
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type QueryaddressArgs = {
id: Scalars['ID'];
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type QueryaddressesArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<Address_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<Address_filter>;
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type Query_metaArgs = {
block?: InputMaybe<Block_height>;
};
export type Subscription = {
authentication?: Maybe<Authentication>;
authentications: Array<Authentication>;
authData?: Maybe<AuthData>;
authDatas: Array<AuthData>;
authStatus?: Maybe<AuthStatus>;
authStatuses: Array<AuthStatus>;
address?: Maybe<Address>;
addresses: Array<Address>;
/** Access to subgraph metadata */
_meta?: Maybe<_Meta_>;
};
export type SubscriptionauthenticationArgs = {
id: Scalars['ID'];
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type SubscriptionauthenticationsArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<Authentication_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<Authentication_filter>;
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type SubscriptionauthDataArgs = {
id: Scalars['ID'];
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type SubscriptionauthDatasArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<AuthData_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<AuthData_filter>;
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type SubscriptionauthStatusArgs = {
id: Scalars['ID'];
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type SubscriptionauthStatusesArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<AuthStatus_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<AuthStatus_filter>;
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type SubscriptionaddressArgs = {
id: Scalars['ID'];
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type SubscriptionaddressesArgs = {
skip?: InputMaybe<Scalars['Int']>;
first?: InputMaybe<Scalars['Int']>;
orderBy?: InputMaybe<Address_orderBy>;
orderDirection?: InputMaybe<OrderDirection>;
where?: InputMaybe<Address_filter>;
block?: InputMaybe<Block_height>;
subgraphError?: _SubgraphErrorPolicy_;
};
export type Subscription_metaArgs = {
block?: InputMaybe<Block_height>;
};
export type _Block_ = {
/** The hash of the block */
hash?: Maybe<Scalars['Bytes']>;
/** The block number */
number: Scalars['Int'];
/** Integer representation of the timestamp stored in blocks for the chain */
timestamp?: Maybe<Scalars['Int']>;
};
/** The type for the top-level _meta field */
export type _Meta_ = {
/**
* Information about a specific subgraph block. The hash of the block
* will be null if the _meta field has a block constraint that asks for
* a block number. It will be filled if the _meta field has no block constraint
* and therefore asks for the latest block
*
*/
block: _Block_;
/** The deployment ID */
deployment: Scalars['String'];
/** If `true`, the subgraph encountered indexing errors at some past block */
hasIndexingErrors: Scalars['Boolean'];
};
export type _SubgraphErrorPolicy_ =
/** Data will be returned even if the subgraph has indexing errors */
| 'allow'
/** If the subgraph has indexing errors, data will be omitted. The default. */
| 'deny';
export type QuerySdk = {
/** null **/
authentication: InContextSdkMethod<Query['authentication'], QueryauthenticationArgs, MeshContext>,
/** null **/
authentications: InContextSdkMethod<Query['authentications'], QueryauthenticationsArgs, MeshContext>,
/** null **/
authData: InContextSdkMethod<Query['authData'], QueryauthDataArgs, MeshContext>,
/** null **/
authDatas: InContextSdkMethod<Query['authDatas'], QueryauthDatasArgs, MeshContext>,
/** null **/
authStatus: InContextSdkMethod<Query['authStatus'], QueryauthStatusArgs, MeshContext>,
/** null **/
authStatuses: InContextSdkMethod<Query['authStatuses'], QueryauthStatusesArgs, MeshContext>,
/** null **/
address: InContextSdkMethod<Query['address'], QueryaddressArgs, MeshContext>,
/** null **/
addresses: InContextSdkMethod<Query['addresses'], QueryaddressesArgs, MeshContext>,
/** Access to subgraph metadata **/
_meta: InContextSdkMethod<Query['_meta'], Query_metaArgs, MeshContext>
};
export type MutationSdk = {
};
export type SubscriptionSdk = {
/** null **/
authentication: InContextSdkMethod<Subscription['authentication'], SubscriptionauthenticationArgs, MeshContext>,
/** null **/
authentications: InContextSdkMethod<Subscription['authentications'], SubscriptionauthenticationsArgs, MeshContext>,
/** null **/
authData: InContextSdkMethod<Subscription['authData'], SubscriptionauthDataArgs, MeshContext>,
/** null **/
authDatas: InContextSdkMethod<Subscription['authDatas'], SubscriptionauthDatasArgs, MeshContext>,
/** null **/
authStatus: InContextSdkMethod<Subscription['authStatus'], SubscriptionauthStatusArgs, MeshContext>,
/** null **/
authStatuses: InContextSdkMethod<Subscription['authStatuses'], SubscriptionauthStatusesArgs, MeshContext>,
/** null **/
address: InContextSdkMethod<Subscription['address'], SubscriptionaddressArgs, MeshContext>,
/** null **/
addresses: InContextSdkMethod<Subscription['addresses'], SubscriptionaddressesArgs, MeshContext>,
/** Access to subgraph metadata **/
_meta: InContextSdkMethod<Subscription['_meta'], Subscription_metaArgs, MeshContext>
};
export type Context = {
["zkauthtotp"]: { Query: QuerySdk, Mutation: MutationSdk, Subscription: SubscriptionSdk },
};
}

View File

@@ -0,0 +1,27 @@
import { useEffect, useState } from 'react'
import { AddressAllDocument, AddressAllQuery, execute } from '../.graphclient'
// Hook to interact with the TotpAuth subgraph
// An example of the returned data can be found in ./exampleResult.json
export function useTheGraph(walletAddress: string) {
const [result, setResult] = useState<AddressAllQuery>()
useEffect(() => {
async function getGraphData() {
const gqlRes = await execute(
AddressAllDocument, { walletAddress: walletAddress.toLowerCase() })
setResult(gqlRes.data)
}
if (walletAddress?.length == 42) {
getGraphData()
}
}, [walletAddress]);
return result;
}