import { OpenId4VcVerificationSessionState } from "./OpenId4VcVerificationSessionState.mjs"; import { OpenId4VpCreateAuthorizationRequestOptions, OpenId4VpCreateAuthorizationRequestReturn, OpenId4VpCreateVerifierOptions, OpenId4VpVerifiedAuthorizationResponse, OpenId4VpVerifyAuthorizationResponseOptions } from "./OpenId4VpVerifierServiceOptions.mjs"; import { OpenId4VcVerificationSessionRecord } from "./repository/OpenId4VcVerificationSessionRecord.mjs"; import { OpenId4VcVerificationSessionRepository } from "./repository/OpenId4VcVerificationSessionRepository.mjs"; import { OpenId4VcVerifierRecord } from "./repository/OpenId4VcVerifierRecord.mjs"; import { OpenId4VcVerifierRepository } from "./repository/OpenId4VcVerifierRepository.mjs"; import "./repository/index.mjs"; import { OpenId4VcVerifierModuleConfig } from "./OpenId4VcVerifierModuleConfig.mjs"; import { AgentContext, Logger, Query, QueryOptions, W3cCredentialService, W3cV2CredentialService } from "@credo-ts/core"; //#region src/openid4vc-verifier/OpenId4VpVerifierService.d.ts /** * @internal */ declare class OpenId4VpVerifierService { private logger; private w3cCredentialService; private w3cV2CredentialService; private openId4VcVerifierRepository; private config; private openId4VcVerificationSessionRepository; constructor(logger: Logger, w3cCredentialService: W3cCredentialService, w3cV2CredentialService: W3cV2CredentialService, openId4VcVerifierRepository: OpenId4VcVerifierRepository, config: OpenId4VcVerifierModuleConfig, openId4VcVerificationSessionRepository: OpenId4VcVerificationSessionRepository); private getOpenid4vpVerifier; createAuthorizationRequest(agentContext: AgentContext, options: OpenId4VpCreateAuthorizationRequestOptions & { verifier: OpenId4VcVerifierRecord; }): Promise; private getDcqlVerifiedResponse; private parseAuthorizationResponse; verifyAuthorizationResponse(agentContext: AgentContext, options: OpenId4VpVerifyAuthorizationResponseOptions & { /** * The verification session associated with the response */ verificationSession: OpenId4VcVerificationSessionRecord; }): Promise; /** * Get the format based on an encoded presentation. This is mostly leveraged for * PEX where it's not known based on the request which format to expect */ private claimFormatFromEncodedPresentation; getVerifiedAuthorizationResponse(agentContext: AgentContext, verificationSession: OpenId4VcVerificationSessionRecord): Promise; private getVerifiedTransactionData; getAllVerifiers(agentContext: AgentContext): Promise; getVerifierByVerifierId(agentContext: AgentContext, verifierId: string): Promise; updateVerifier(agentContext: AgentContext, verifier: OpenId4VcVerifierRecord): Promise; createVerifier(agentContext: AgentContext, options?: OpenId4VpCreateVerifierOptions): Promise; findVerificationSessionsByQuery(agentContext: AgentContext, query: Query, queryOptions?: QueryOptions): Promise; getVerificationSessionById(agentContext: AgentContext, verificationSessionId: string): Promise; private getClientMetadata; private decodePresentation; private verifyPresentation; /** * Update the record to a new state and emit an state changed event. Also updates the record * in storage. */ updateState(agentContext: AgentContext, verificationSession: OpenId4VcVerificationSessionRecord, newState: OpenId4VcVerificationSessionState): Promise; protected emitStateChangedEvent(agentContext: AgentContext, verificationSession: OpenId4VcVerificationSessionRecord, previousState: OpenId4VcVerificationSessionState | null): void; } //#endregion export { OpenId4VpVerifierService }; //# sourceMappingURL=OpenId4VpVerifierService.d.mts.map