From d96dccabd56c4d279f3ff76937f9861cb4b73f29 Mon Sep 17 00:00:00 2001 From: Ankita Patidar <35130088+ankita-p17@users.noreply.github.com> Date: Fri, 23 Feb 2024 10:19:02 +0530 Subject: [PATCH] Remove unwanted attributes, Added support for more restrictions (#538) * fix: removed the unnecessary logger from the agent-service module (#419) Signed-off-by: KulkarniShashank * WIP:OOB Proof Request Signed-off-by: ankita_patidar * WIP:OOB Proof Request Signed-off-by: ankita_patidar * fix:OOB Credential Offer restore changes Signed-off-by: ankita_patidar * fix:add email as optional Signed-off-by: ankita_patidar * fix:take response from presentation request payload Signed-off-by: ankita_patidar * fix: resolved sonar lint checks Signed-off-by: bhavanakarwade * fix: dco error Signed-off-by: bhavanakarwade * fix: dco error Signed-off-by: bhavanakarwade * expose agent format of proof request to API endpoint, disabled send offer by email Signed-off-by: ankita_patidar * update OOB verification input Signed-off-by: ankita_patidar * added few more allowed restrictions, corrected API description Signed-off-by: ankita_patidar * added few more allowed restrictions Signed-off-by: ankita_patidar * removed unnecessary attribute,updated example Signed-off-by: ankita_patidar --------- Signed-off-by: KulkarniShashank Signed-off-by: ankita_patidar Signed-off-by: bhavanakarwade Signed-off-by: Ankita Patidar <35130088+ankita-p17@users.noreply.github.com> Co-authored-by: Nishad Shirsat <103021375+nishad-ayanworks@users.noreply.github.com> Co-authored-by: Nishad Co-authored-by: Shashank Kulkarni <44693969+KulkarniShashank@users.noreply.github.com> Co-authored-by: bhavanakarwade <137506897+bhavanakarwade@users.noreply.github.com> Co-authored-by: bhavanakarwade Signed-off-by: bhavanakarwade --- .../src/verification/dto/request-proof.dto.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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 9e4f3e591..eb5702067 100644 --- a/apps/api-gateway/src/verification/dto/request-proof.dto.ts +++ b/apps/api-gateway/src/verification/dto/request-proof.dto.ts @@ -169,13 +169,6 @@ export class SendProofRequestPayload { @IsString({ message: 'comment must be in string' }) comment: string; - @ApiProperty() - @IsString() - @Transform(({ value }) => trim(value)) - @Transform(({ value }) => toLowerCase(value)) - @IsNotEmpty({ message: 'connectionId is required.' }) - connectionId: string; - @ApiProperty({ 'example': [ { @@ -183,7 +176,16 @@ export class SendProofRequestPayload { name: 'Verify national identity', version: '1.0', // eslint-disable-next-line camelcase - requested_attributes: {}, + requested_attributes: { + verifynameAddress: { + names: ['name', 'address'], + restrictions: [{'schema_id': 'KU583UbI4yAKfaBTSz1rqG:2:National ID:1.0.0'}] + }, + verifyBirthPlace: { + name: 'Place', + restrictions: [{'schema_id': 'KU583UbI4yAKfaBTSz1rqG:2:Birth Certificate:1.0.0'}] + } + }, // eslint-disable-next-line camelcase requested_predicates: {} }