From 5fa5b7234e7dbabecca0e2943033e862fdb2f66c Mon Sep 17 00:00:00 2001 From: Tipu_Singh Date: Mon, 7 Oct 2024 11:23:37 +0530 Subject: [PATCH] fix: added parentThreadId in proof flow Signed-off-by: Tipu_Singh --- apps/api-gateway/src/verification/dto/webhook-proof.dto.ts | 4 ++++ apps/verification/src/interfaces/verification.interface.ts | 2 ++ apps/verification/src/verification.service.ts | 1 + 3 files changed, 7 insertions(+) diff --git a/apps/api-gateway/src/verification/dto/webhook-proof.dto.ts b/apps/api-gateway/src/verification/dto/webhook-proof.dto.ts index 13a80785c..7c89da54a 100644 --- a/apps/api-gateway/src/verification/dto/webhook-proof.dto.ts +++ b/apps/api-gateway/src/verification/dto/webhook-proof.dto.ts @@ -41,6 +41,10 @@ export class WebhookPresentationProofDto { @IsOptional() threadId: string; + @ApiPropertyOptional() + @IsOptional() + parentThreadId?: string; + @ApiPropertyOptional() @IsOptional() presentationId: string; diff --git a/apps/verification/src/interfaces/verification.interface.ts b/apps/verification/src/interfaces/verification.interface.ts index ced4b84c1..1fd8e4e09 100644 --- a/apps/verification/src/interfaces/verification.interface.ts +++ b/apps/verification/src/interfaces/verification.interface.ts @@ -135,6 +135,7 @@ export interface IPresentationExchangeProofFormats { export interface ISendPresentationExchangeProofRequestPayload { protocolVersion: string; comment: string; + parentThreadId?: string; proofFormats: IPresentationExchangeProofFormats; autoAcceptProof: string; label?: string; @@ -206,6 +207,7 @@ export interface IWebhookProofPresentation { connectionId: string; presentationId: string; threadId: string; + parentThreadId?: string; autoAcceptProof: string; updatedAt: string; isVerified: boolean; diff --git a/apps/verification/src/verification.service.ts b/apps/verification/src/verification.service.ts index 5e89ded5a..9964336c7 100644 --- a/apps/verification/src/verification.service.ts +++ b/apps/verification/src/verification.service.ts @@ -433,6 +433,7 @@ export class VerificationService { url, proofRequestPayload: { goalCode: outOfBandRequestProof.goalCode, + parentThreadId: outOfBandRequestProof.parentThreadId, protocolVersion:outOfBandRequestProof.protocolVersion || 'v2', comment:outOfBandRequestProof.comment, label,