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

package keybase

import (
	"context"
)

type Querier interface {
	ArchiveKeyShare(ctx context.Context, id int64) error
	CleanExpiredUCANs(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) (Delegation, error)
	CreateGrant(ctx context.Context, arg CreateGrantParams) (Grant, error)
	CreateKeyShare(ctx context.Context, arg CreateKeyShareParams) (KeyShare, error)
	CreateRevocation(ctx context.Context, arg CreateRevocationParams) error
	CreateService(ctx context.Context, arg CreateServiceParams) (Service, error)
	CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)
	CreateUCAN(ctx context.Context, arg CreateUCANParams) (UcanToken, error)
	CreateVerificationMethod(ctx context.Context, arg CreateVerificationMethodParams) (VerificationMethod, error)
	DeleteAccount(ctx context.Context, arg DeleteAccountParams) error
	DeleteCredential(ctx context.Context, arg DeleteCredentialParams) error
	DeleteExpiredSessions(ctx context.Context) error
	DeleteKeyShare(ctx context.Context, arg DeleteKeyShareParams) 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)
	GetDelegationChain(ctx context.Context, arg GetDelegationChainParams) ([]Delegation, error)
	GetGrantByService(ctx context.Context, arg GetGrantByServiceParams) (Grant, error)
	GetKeyShareByID(ctx context.Context, shareID string) (KeyShare, error)
	GetKeyShareByKeyID(ctx context.Context, arg GetKeyShareByKeyIDParams) (KeyShare, 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)
	GetUCANByCID(ctx context.Context, cid string) (UcanToken, error)
	GetVerificationMethod(ctx context.Context, arg GetVerificationMethodParams) (VerificationMethod, error)
	IsUCANRevoked(ctx context.Context, ucanCid string) (int64, error)
	ListAccountsByChain(ctx context.Context, arg ListAccountsByChainParams) ([]Account, error)
	// =============================================================================
	// ACCOUNT QUERIES
	// =============================================================================
	ListAccountsByDID(ctx context.Context, didID int64) ([]ListAccountsByDIDRow, error)
	ListAllDIDs(ctx context.Context) ([]DidDocument, error)
	// =============================================================================
	// CREDENTIAL QUERIES
	// =============================================================================
	ListCredentialsByDID(ctx context.Context, didID int64) ([]Credential, error)
	ListDelegationsByDelegate(ctx context.Context, delegate string) ([]Delegation, error)
	// =============================================================================
	// DELEGATION QUERIES
	// =============================================================================
	ListDelegationsByDelegator(ctx context.Context, delegator string) ([]Delegation, error)
	ListDelegationsForResource(ctx context.Context, arg ListDelegationsForResourceParams) ([]Delegation, error)
	// =============================================================================
	// GRANT QUERIES
	// =============================================================================
	ListGrantsByDID(ctx context.Context, didID int64) ([]ListGrantsByDIDRow, error)
	// =============================================================================
	// KEY SHARE QUERIES
	// =============================================================================
	ListKeySharesByDID(ctx context.Context, didID int64) ([]KeyShare, error)
	// =============================================================================
	// SESSION QUERIES
	// =============================================================================
	ListSessionsByDID(ctx context.Context, didID int64) ([]ListSessionsByDIDRow, error)
	ListSyncCheckpoints(ctx context.Context, didID int64) ([]SyncCheckpoint, error)
	ListUCANsByAudience(ctx context.Context, audience string) ([]UcanToken, error)
	// =============================================================================
	// UCAN TOKEN QUERIES
	// =============================================================================
	ListUCANsByDID(ctx context.Context, didID int64) ([]UcanToken, error)
	// =============================================================================
	// VERIFICATION METHOD QUERIES
	// =============================================================================
	ListVerificationMethods(ctx context.Context, didID int64) ([]VerificationMethod, error)
	ListVerifiedServices(ctx context.Context) ([]Service, error)
	ReactivateGrant(ctx context.Context, id int64) error
	RenameCredential(ctx context.Context, arg RenameCredentialParams) error
	RevokeDelegation(ctx context.Context, id int64) error
	RevokeDelegationChain(ctx context.Context, arg RevokeDelegationChainParams) error
	RevokeGrant(ctx context.Context, id int64) error
	RevokeUCAN(ctx context.Context, cid string) error
	RotateKeyShare(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)
