Skip to content

Commit

Permalink
Remove unwanted attributes, Added support for more restrictions (#538)
Browse files Browse the repository at this point in the history
* fix: removed the unnecessary logger from the agent-service module (#419)

Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>

* WIP:OOB Proof Request

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

* WIP:OOB Proof Request

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

* fix:OOB Credential Offer restore changes

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

* fix:add email as optional

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

* fix:take response from presentation request payload

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

* fix: resolved sonar lint checks

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* fix: dco error

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* fix: dco error

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>

* expose agent format of proof request to API endpoint, disabled send offer by email

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

* update OOB verification input

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

* added few more allowed restrictions, corrected API description

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

* added few more allowed restrictions

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

* removed unnecessary attribute,updated example

Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>

---------

Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
Signed-off-by: ankita_patidar <ankita.patidar@ayanworks.com>
Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
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 <nishad.shirsat@ayanworks.com>
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 <bhavana.karwade@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
  • Loading branch information
6 people authored and KulkarniShashank committed Sep 11, 2024
1 parent 3727f29 commit 81e59e1
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions apps/api-gateway/src/verification/dto/request-proof.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,23 @@ 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': [
{
indy: {
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: {}
}
Expand Down

0 comments on commit 81e59e1

Please sign in to comment.