import type { AgentContext, Key } from '@aries-framework/core' import { Repository, StorageService, InjectionSymbols, EventEmitter, inject, injectable } from '@aries-framework/core' import { TenantRoutingRecord } from './TenantRoutingRecord' @injectable() export class TenantRoutingRepository extends Repository { public constructor( @inject(InjectionSymbols.StorageService) storageService: StorageService, eventEmitter: EventEmitter ) { super(TenantRoutingRecord, storageService, eventEmitter) } public findByRecipientKey(agentContext: AgentContext, key: Key) { return this.findSingleByQuery(agentContext, { recipientKeyFingerprint: key.fingerprint, }) } }