Skip to content

Commit

Permalink
fix: fix credential request properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Aug 18, 2023
1 parent 02c84d3 commit 0037025
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/common/lib/types/Generic.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ export interface CommonCredentialRequest {
}

export interface CredentialRequestJwtVcJson extends CommonCredentialRequest {
format: 'jwt_vc_json';
format: 'jwt_vc_json' | 'jwt_vc_json-ld';
types: string[];
credentialSubject?: IssuerCredentialSubject;
}

export interface CredentialRequestJwtVcJsonLdAndLdpVc extends CommonCredentialRequest {
format: 'jwt_vc_json-ld' | 'ldp_vc';
format: 'ldp_vc';
credential_definition: IssuerCredentialDefinition;
}

Expand All @@ -142,12 +142,13 @@ export interface CommonCredentialResponse {
c_nonce_expires_in?: string;
}

export interface CredentialResponseJwtVcJsonLdAndLdpVc extends CommonCredentialResponse {
format: 'jwt_vc_json-ld' | 'ldp_vc';
export interface CredentialResponseLdpVc extends CommonCredentialResponse {
format: 'ldp_vc';
credential: IVerifiableCredential;
}

export interface CredentialResponseJwtVcJson {
export interface CredentialResponseJwtVc {
format: 'jwt_vc_json' | 'jwt_vc_json-ld';
credential: string;
}

Expand Down

0 comments on commit 0037025

Please sign in to comment.