diff --git a/apps/agent-service/src/interface/agent-service.interface.ts b/apps/agent-service/src/interface/agent-service.interface.ts index 1b3ca2d40..6be984f4e 100644 --- a/apps/agent-service/src/interface/agent-service.interface.ts +++ b/apps/agent-service/src/interface/agent-service.interface.ts @@ -361,6 +361,7 @@ export interface IInputDescriptors { export interface IProofRequestPresentationDefinition { id: string; name: string; + purpose: string; input_descriptors: IInputDescriptors[]; } 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 789d70bcd..67d998512 100644 --- a/apps/api-gateway/src/verification/dto/request-proof.dto.ts +++ b/apps/api-gateway/src/verification/dto/request-proof.dto.ts @@ -138,6 +138,10 @@ export class ProofRequestPresentationDefinition { @IsOptional() name: string; + @IsString() + @IsOptional() + purpose: string; + @ApiProperty({type: () => [InputDescriptors]}) @IsNotEmpty({ message: 'inputDescriptors is required.' }) @IsArray({ message: 'inputDescriptors must be an array' }) diff --git a/apps/verification/src/interfaces/verification.interface.ts b/apps/verification/src/interfaces/verification.interface.ts index 1fd8e4e09..4fdf01190 100644 --- a/apps/verification/src/interfaces/verification.interface.ts +++ b/apps/verification/src/interfaces/verification.interface.ts @@ -121,6 +121,7 @@ export interface IInputDescriptors { export interface IProofRequestPresentationDefinition { id:string; name: string; + purpose: string; input_descriptors:IInputDescriptors[]; } diff --git a/apps/verification/src/verification.service.ts b/apps/verification/src/verification.service.ts index a92923a1e..9697481df 100644 --- a/apps/verification/src/verification.service.ts +++ b/apps/verification/src/verification.service.ts @@ -443,6 +443,7 @@ export class VerificationService { presentationDefinition: { id: outOfBandRequestProof.presentationDefinition.id, name: outOfBandRequestProof.presentationDefinition.name, + purpose: outOfBandRequestProof.presentationDefinition.purpose, input_descriptors: [...outOfBandRequestProof.presentationDefinition.input_descriptors] } }