Skip to content

Commit

Permalink
Feat/oob credential issuance verification (#476)
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]>

---------

Signed-off-by: KulkarniShashank <[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]>
  • Loading branch information
5 people committed Sep 11, 2024
1 parent 7820746 commit 479d571
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion apps/agent-service/src/interface/agent-service.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ interface IRequestedPredicatesName {
}

interface IRequestedRestriction {
cred_def_id: string;
cred_def_id?: string;
schema_id?: string;
}

export interface IAgentSpinUpSatus {
Expand Down
3 changes: 2 additions & 1 deletion apps/api-gateway/src/verification/dto/request-proof.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class ProofRequestAttribute {

@IsString()
@IsNotEmpty({ message: 'schemaId is required.' })
schemaId: string;
schemaId?: string;

@IsString()
@IsOptional()
Expand Down Expand Up @@ -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()
Expand Down
5 changes: 3 additions & 2 deletions apps/verification/src/interfaces/verification.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interface IProofRequestAttribute {
condition?: string;
value?: string;
credDefId?: string;
schemaId: string;
schemaId?: string;
credentialName: string;
}

Expand Down Expand Up @@ -75,7 +75,8 @@ interface IRequestedPredicatesName {
}

interface IRequestedRestriction {
cred_def_id: string;
cred_def_id?: string;
schema_id?: string;
}

export interface ISendProofRequestPayload {
Expand Down
2 changes: 1 addition & 1 deletion apps/verification/src/verification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export class VerificationService {
if (!getProofPresentation) {
throw new Error(ResponseMessages.verification.error.proofPresentationNotFound);
}
return getProofPresentation;
return getProofPresentation.response;
}


Expand Down

0 comments on commit 479d571

Please sign in to comment.