// Code generated by sqlc. DO NOT EDIT.
// versions:
//   sqlc v1.30.0

package keybase

import (
	"context"
)

type Querier interface {
	ArchiveEnclave(ctx context.Context, id int64) error
	CleanExpiredDelegations(ctx context.Context) error
	CleanOldInvocations(ctx context.Context) error
	CountActiveGrants(ctx context.Context, didID int64) (int64, error)
	CountCredentialsByDID(ctx context.Context, didID int64) (int64, error)
	CreateAccount(ctx context.Context, arg CreateAccountParams) (Account, error)
	CreateCredential(ctx context.Context, arg CreateCredentialParams) (Credential, error)
	CreateDID(ctx context.Context, arg CreateDIDParams) (DidDocument, error)
	CreateDelegation(ctx context.Context, arg CreateDelegationParams) (UcanDelegation, error)
	CreateEnclave(ctx context.Context, arg CreateEnclaveParams) (MpcEnclafe, error)
	CreateGrant(ctx context.Context, arg CreateGrantParams) (Grant, error)
	CreateInvocation(ctx context.Context, arg CreateInvocationParams) (UcanInvocation, error)
	// =============================================================================
	// UCAN REVOCATION QUERIES
	// =============================================================================
	CreateRevocation(ctx context.Context, arg CreateRevocationParams) error
	CreateService(ctx context.Context, arg CreateServiceParams) (Service, error)
	CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)
	CreateVerificationMethod(ctx context.Context, arg CreateVerificationMethodParams) (VerificationMethod, error)
	DeleteAccount(ctx context.Context, arg DeleteAccountParams) error
	DeleteCredential(ctx context.Context, arg DeleteCredentialParams) error
	DeleteDelegation(ctx context.Context, arg DeleteDelegationParams) error
	DeleteEnclave(ctx context.Context, arg DeleteEnclaveParams) error
	DeleteExpiredSessions(ctx context.Context) error
	DeleteSession(ctx context.Context, id int64) error
	DeleteVerificationMethod(ctx context.Context, id int64) error
	GetAccountByAddress(ctx context.Context, address string) (Account, error)
	GetCredentialByID(ctx context.Context, credentialID string) (Credential, error)
	GetCurrentSession(ctx context.Context, didID int64) (Session, error)
	// =============================================================================
	// DID DOCUMENT QUERIES
	// =============================================================================
	GetDIDByDID(ctx context.Context, did string) (DidDocument, error)
	GetDIDByID(ctx context.Context, id int64) (DidDocument, error)
	GetDefaultAccount(ctx context.Context, arg GetDefaultAccountParams) (Account, error)
	// =============================================================================
	// UCAN DELEGATION QUERIES (v1.0.0-rc.1)
	// =============================================================================
	GetDelegationByCID(ctx context.Context, cid string) (UcanDelegation, error)
	GetDelegationEnvelopeByCID(ctx context.Context, cid string) ([]byte, error)
	GetEnclaveByID(ctx context.Context, enclaveID string) (MpcEnclafe, error)
	GetEnclaveByPubKeyHex(ctx context.Context, publicKeyHex string) (MpcEnclafe, error)
	GetGrantByService(ctx context.Context, arg GetGrantByServiceParams) (Grant, error)
	// =============================================================================
	// UCAN INVOCATION QUERIES (v1.0.0-rc.1)
	// =============================================================================
	GetInvocationByCID(ctx context.Context, cid string) (UcanInvocation, error)
	GetInvocationEnvelopeByCID(ctx context.Context, cid string) ([]byte, error)
	GetRevocation(ctx context.Context, delegationCid string) (UcanRevocation, error)
	GetServiceByID(ctx context.Context, id int64) (Service, error)
	// =============================================================================
	// SERVICE QUERIES
	// =============================================================================
	GetServiceByOrigin(ctx context.Context, origin string) (Service, error)
	GetSessionByID(ctx context.Context, sessionID string) (Session, error)
	// =============================================================================
	// SYNC QUERIES
	// =============================================================================
	GetSyncCheckpoint(ctx context.Context, arg GetSyncCheckpointParams) (SyncCheckpoint, error)
	GetVerificationMethod(ctx context.Context, arg GetVerificationMethodParams) (VerificationMethod, error)
	IsDelegationRevoked(ctx context.Context, delegationCid string) (int64, error)
	ListAccountsByChain(ctx context.Context, arg ListAccountsByChainParams) ([]Account, error)
	// =============================================================================
	// ACCOUNT QUERIES
	// =============================================================================
	ListAccountsByDID(ctx context.Context, didID int64) ([]VAccount, error)
	ListAllDIDs(ctx context.Context) ([]DidDocument, error)
	// =============================================================================
	// CREDENTIAL QUERIES
	// =============================================================================
	ListCredentialsByDID(ctx context.Context, didID int64) ([]Credential, error)
	ListDelegationsByAudience(ctx context.Context, aud string) ([]UcanDelegation, error)
	ListDelegationsByDID(ctx context.Context, didID int64) ([]UcanDelegation, error)
	ListDelegationsByIssuer(ctx context.Context, iss string) ([]UcanDelegation, error)
	ListDelegationsBySubject(ctx context.Context, sub *string) ([]UcanDelegation, error)
	ListDelegationsForCommand(ctx context.Context, arg ListDelegationsForCommandParams) ([]UcanDelegation, error)
	// =============================================================================
	// MPC ENCLAVE QUERIES
	// =============================================================================
	ListEnclavesByDID(ctx context.Context, didID int64) ([]MpcEnclafe, error)
	// =============================================================================
	// GRANT QUERIES
	// =============================================================================
	ListGrantsByDID(ctx context.Context, didID int64) ([]VGrant, error)
	ListInvocationsByDID(ctx context.Context, arg ListInvocationsByDIDParams) ([]UcanInvocation, error)
	ListInvocationsByIssuer(ctx context.Context, arg ListInvocationsByIssuerParams) ([]UcanInvocation, error)
	ListInvocationsBySubject(ctx context.Context, arg ListInvocationsBySubjectParams) ([]UcanInvocation, error)
	ListInvocationsForCommand(ctx context.Context, arg ListInvocationsForCommandParams) ([]UcanInvocation, error)
	ListPendingInvocations(ctx context.Context, didID int64) ([]UcanInvocation, error)
	ListPowerlineDelegations(ctx context.Context, didID int64) ([]UcanDelegation, error)
	ListRevocationsByRevoker(ctx context.Context, revokedBy string) ([]UcanRevocation, error)
	ListRootDelegations(ctx context.Context, didID int64) ([]UcanDelegation, error)
	// =============================================================================
	// SESSION QUERIES
	// =============================================================================
	ListSessionsByDID(ctx context.Context, didID int64) ([]VSession, error)
	ListSyncCheckpoints(ctx context.Context, didID int64) ([]SyncCheckpoint, error)
	// =============================================================================
	// VERIFICATION METHOD QUERIES
	// =============================================================================
	ListVerificationMethods(ctx context.Context, didID int64) ([]VerificationMethod, error)
	ListVerifiedServices(ctx context.Context) ([]Service, error)
	MarkInvocationExecuted(ctx context.Context, arg MarkInvocationExecutedParams) error
	ReactivateGrant(ctx context.Context, id int64) error
	RenameCredential(ctx context.Context, arg RenameCredentialParams) error
	RevokeGrant(ctx context.Context, id int64) error
	RotateEnclave(ctx context.Context, id int64) error
	SetCurrentSession(ctx context.Context, arg SetCurrentSessionParams) error
	SetDefaultAccount(ctx context.Context, arg SetDefaultAccountParams) error
	SuspendGrant(ctx context.Context, id int64) error
	UpdateAccountLabel(ctx context.Context, arg UpdateAccountLabelParams) error
	UpdateCredentialCounter(ctx context.Context, arg UpdateCredentialCounterParams) error
	UpdateDIDDocument(ctx context.Context, arg UpdateDIDDocumentParams) error
	UpdateGrantLastUsed(ctx context.Context, id int64) error
	UpdateGrantScopes(ctx context.Context, arg UpdateGrantScopesParams) error
	UpdateService(ctx context.Context, arg UpdateServiceParams) error
	UpdateSessionActivity(ctx context.Context, id int64) error
	UpsertSyncCheckpoint(ctx context.Context, arg UpsertSyncCheckpointParams) error
}

var _ Querier = (*Queries)(nil)
