diff --git a/apps/agent-service/src/interface/agent-service.interface.ts b/apps/agent-service/src/interface/agent-service.interface.ts index 2c6e7f4c9..f94307ea5 100644 --- a/apps/agent-service/src/interface/agent-service.interface.ts +++ b/apps/agent-service/src/interface/agent-service.interface.ts @@ -266,7 +266,8 @@ interface IRequestedPredicatesName { } interface IRequestedRestriction { - cred_def_id: string; + cred_def_id?: string; + schema_id?: string; } export interface IAgentSpinUpSatus { diff --git a/apps/api-gateway/src/verification/dto/request-proof.dto.ts b/apps/api-gateway/src/verification/dto/request-proof.dto.ts index 4fc42b148..31e6176c9 100644 --- a/apps/api-gateway/src/verification/dto/request-proof.dto.ts +++ b/apps/api-gateway/src/verification/dto/request-proof.dto.ts @@ -10,7 +10,7 @@ export class ProofRequestAttribute { @IsString() @IsNotEmpty({ message: 'schemaId is required.' }) - schemaId: string; + schemaId?: string; @IsString() @IsOptional() @@ -91,6 +91,7 @@ export class OutOfBandRequestProof { @IsNotEmpty({ message: 'Email is required' }) @Transform(({ value }) => trim(value)) @IsString({ each: true, message: 'Each emailId in the array should be a string' }) + @IsOptional() emailId?: string | string[]; @ApiProperty() diff --git a/apps/verification/src/interfaces/verification.interface.ts b/apps/verification/src/interfaces/verification.interface.ts index 1995d9438..c6a967728 100644 --- a/apps/verification/src/interfaces/verification.interface.ts +++ b/apps/verification/src/interfaces/verification.interface.ts @@ -5,7 +5,7 @@ interface IProofRequestAttribute { condition?: string; value?: string; credDefId?: string; - schemaId: string; + schemaId?: string; credentialName: string; } @@ -75,7 +75,8 @@ interface IRequestedPredicatesName { } interface IRequestedRestriction { - cred_def_id: string; + cred_def_id?: string; + schema_id?: string; } export interface ISendProofRequestPayload { diff --git a/apps/verification/src/verification.service.ts b/apps/verification/src/verification.service.ts index 1b7044712..f892b5e14 100644 --- a/apps/verification/src/verification.service.ts +++ b/apps/verification/src/verification.service.ts @@ -397,7 +397,7 @@ export class VerificationService { if (!getProofPresentation) { throw new Error(ResponseMessages.verification.error.proofPresentationNotFound); } - return getProofPresentation; + return getProofPresentation.response; }