Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added parentThreadId in proof flow #1019

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/api-gateway/src/verification/dto/webhook-proof.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export class WebhookPresentationProofDto {
@IsOptional()
threadId: string;

@ApiPropertyOptional()
@IsOptional()
parentThreadId?: string;

@ApiPropertyOptional()
@IsOptional()
presentationId: string;
Expand Down
2 changes: 2 additions & 0 deletions apps/verification/src/interfaces/verification.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export interface IPresentationExchangeProofFormats {
export interface ISendPresentationExchangeProofRequestPayload {
protocolVersion: string;
comment: string;
parentThreadId?: string;
proofFormats: IPresentationExchangeProofFormats;
autoAcceptProof: string;
label?: string;
Expand Down Expand Up @@ -206,6 +207,7 @@ export interface IWebhookProofPresentation {
connectionId: string;
presentationId: string;
threadId: string;
parentThreadId?: string;
autoAcceptProof: string;
updatedAt: string;
isVerified: boolean;
Expand Down
1 change: 1 addition & 0 deletions apps/verification/src/verification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ export class VerificationService {
url,
proofRequestPayload: {
goalCode: outOfBandRequestProof.goalCode,
parentThreadId: outOfBandRequestProof.parentThreadId,
protocolVersion:outOfBandRequestProof.protocolVersion || 'v2',
comment:outOfBandRequestProof.comment,
label,
Expand Down