Skip to content

Commit

Permalink
fix(credentials): use interface in module api (#856)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Jun 15, 2022
1 parent 4be8f82 commit 58e6603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,5 @@ export interface CredentialFormat {
acceptOffer: unknown
createRequest: unknown
acceptRequest: unknown
createCredential: unknown
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ export interface IndyAcceptOfferFormat {
*/
export interface IndyOfferCredentialFormat {
credentialDefinitionId: string
attributes: CredentialPreviewAttribute[]
attributes: CredentialPreviewAttributeOptions[]
linkedAttachments?: LinkedAttachment[]
}

export interface IndyIssueCredentialFormat {
credentialDefinitionId?: string
attributes?: CredentialPreviewAttribute[]
attributes?: CredentialPreviewAttributeOptions[]
}

export interface IndyCredentialFormat extends CredentialFormat {
Expand All @@ -50,6 +50,5 @@ export interface IndyCredentialFormat extends CredentialFormat {
acceptOffer: IndyAcceptOfferFormat
createRequest: never // cannot start from createRequest
acceptRequest: Record<string, never> // empty object
createCredential: IndyIssueCredentialFormat
}
}

0 comments on commit 58e6603

Please sign in to comment.