Skip to content

Commit

Permalink
Updated OOB Proof Verification endpoint (#533)
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 <[email protected]>

* WIP:OOB Proof Request

Signed-off-by: ankita_patidar <[email protected]>

* WIP:OOB Proof Request

Signed-off-by: ankita_patidar <[email protected]>

* fix:OOB Credential Offer restore changes

Signed-off-by: ankita_patidar <[email protected]>

* fix:add email as optional

Signed-off-by: ankita_patidar <[email protected]>

* fix:take response from presentation request payload

Signed-off-by: ankita_patidar <[email protected]>

* fix: resolved sonar lint checks

Signed-off-by: bhavanakarwade <[email protected]>

* fix: dco error

Signed-off-by: bhavanakarwade <[email protected]>

* fix: dco error

Signed-off-by: bhavanakarwade <[email protected]>

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

Signed-off-by: ankita_patidar <[email protected]>

* update OOB verification input

Signed-off-by: ankita_patidar <[email protected]>

* added few more allowed restrictions, corrected API description

Signed-off-by: ankita_patidar <[email protected]>

* added few more allowed restrictions

Signed-off-by: ankita_patidar <[email protected]>

---------

Signed-off-by: KulkarniShashank <[email protected]>
Signed-off-by: ankita_patidar <[email protected]>
Signed-off-by: bhavanakarwade <[email protected]>
Signed-off-by: Ankita Patidar <[email protected]>
Co-authored-by: Nishad Shirsat <[email protected]>
Co-authored-by: Nishad <[email protected]>
Co-authored-by: Shashank Kulkarni <[email protected]>
Co-authored-by: bhavanakarwade <[email protected]>
Co-authored-by: bhavanakarwade <[email protected]>
Signed-off-by: bhavanakarwade <[email protected]>
  • Loading branch information
6 people authored and KulkarniShashank committed Sep 11, 2024
1 parent ac54b84 commit f085b81
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions apps/api-gateway/src/verification/dto/request-proof.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,21 @@ 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: {
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' }]
}
},
requested_attributes: {},
// eslint-disable-next-line camelcase
requested_predicates: {}
}
Expand Down Expand Up @@ -214,12 +212,6 @@ export class SendProofRequestPayload {
@IsOptional()
@IsUUID()
@IsNotEmpty({ message: 'please provide valid parentThreadId' })
parentThreadId: string;

@ApiProperty({ example: true })
@IsBoolean()
@IsOptional()
@IsNotEmpty({message:'Please provide the flag for shorten url.'})
isShortenUrl?: boolean;
parentThreadId: string;
}

0 comments on commit f085b81

Please sign in to comment.