Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set default type as anoncreds #712

Open
wants to merge 51 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
b75c029
add: enum protocolversion
GHkrishna May 12, 2024
9546acf
add: credentialFormats DTO using APIExtraModels
GHkrishna May 12, 2024
2214ac7
add: credentialForats in Interace Issuance
GHkrishna May 12, 2024
5109fbe
add: credentialForats in Multiconnection DTO
GHkrishna May 12, 2024
46e4cf3
update: issuance service to accomdate credentialFormats
GHkrishna May 12, 2024
627fadf
update: temporarily disable validations
GHkrishna May 12, 2024
5439353
add: anoncreds as Credential type
GHkrishna May 12, 2024
789228e
fix: payload passed from issuance service
GHkrishna May 16, 2024
0d6f9fa
update: interface for agentservice to accomodate credentialFormats
GHkrishna May 16, 2024
7b173d1
update: issuance controller to handle anoncreds credentialformats
GHkrishna May 16, 2024
477a9c4
update: issuance DTOs
GHkrishna May 16, 2024
b7551b2
update: multi connection issuance DTO
GHkrishna May 16, 2024
8882cd9
update: issuance interface
GHkrishna May 16, 2024
3a7f3a8
update: issuance service to depricate indy credential
GHkrishna May 16, 2024
434e45b
add: credo package for type checking
GHkrishna May 16, 2024
cc5909d
Merge branch 'develop' of https://github.com/credebl/platform into fe…
GHkrishna May 16, 2024
123a6f5
add: validation on controller
GHkrishna May 17, 2024
3f4a8fe
add: temporarily add pnpm-lock
GHkrishna May 17, 2024
59ce00b
fix: add required attributes in OOB Issuance with email
GHkrishna May 21, 2024
8c227e2
Merge branch 'feat/set-default-type-as-anoncreds' of https://github.c…
GHkrishna May 21, 2024
967e0f1
add: support for verification with connection
GHkrishna May 22, 2024
8ced6a6
add: default indy support for verification with connection and issuance
GHkrishna May 22, 2024
b393619
fix: enhance verification for credentialFormats
GHkrishna May 23, 2024
aea24fe
fix: validations for credential data in multi-connection issuance
GHkrishna May 24, 2024
9d3e92d
Merge branch 'develop' of https://github.com/credebl/platform into fe…
GHkrishna May 24, 2024
15c628f
fix: remove commented code
GHkrishna May 24, 2024
f396fcd
fix: remove commented code
GHkrishna May 24, 2024
bb94f26
fix: add default values on DTO
GHkrishna May 27, 2024
2445146
fix: enum capitalization and naming
GHkrishna May 27, 2024
1887bd7
fix: required filed validation
GHkrishna May 27, 2024
8c1a9a7
fix: add additional changes to issuance
GHkrishna Jun 3, 2024
80613f9
Merge branch 'develop' of https://github.com/credebl/platform into fe…
GHkrishna Jun 3, 2024
cf1f110
fix: conficts with w3c bulk issuance
GHkrishna Jun 4, 2024
c8448c0
fix: default values in DTO
GHkrishna Jun 4, 2024
61c9cc6
fix: remove commented code
GHkrishna Jun 5, 2024
cf9a4b3
add: tasks to do
GHkrishna Jun 5, 2024
ba43b0d
fix: add default protocolVersion in DTO
GHkrishna Jun 5, 2024
af9c79a
fix: remove commented code
GHkrishna Jun 5, 2024
0f2a620
fix: update error message
GHkrishna Jun 5, 2024
1b9cca9
fix: protocolVersion type
GHkrishna Jun 5, 2024
bdbc52c
fix: protocolVersion type update
GHkrishna Jun 5, 2024
26e3653
fix: add example in DTO
GHkrishna Jun 5, 2024
70c7df5
fix: error message in DTO
GHkrishna Jun 5, 2024
8d56491
fix: api property opional in DTO
GHkrishna Jun 5, 2024
4a9f4bc
fix: add to do for adding anoncreds schema type
GHkrishna Jun 5, 2024
cf22ba0
fix: examples in DTO
GHkrishna Jun 6, 2024
1f6156b
fix: examples in DTO
GHkrishna Jun 6, 2024
3a36580
fix: jsonld credential formats
GHkrishna Jun 6, 2024
f700d0c
Merge branch 'develop' of https://github.com/credebl/platform into fe…
GHkrishna Jun 6, 2024
3671788
fix: comments
GHkrishna Jun 6, 2024
c1c8247
fix: add comment
GHkrishna Jun 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions apps/agent-service/src/interface/agent-service.interface.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { AgentSpinUpStatus } from '@credebl/enum/enum';
import { Prisma } from '@prisma/client';
import { UserRoleOrgPermsDto } from 'apps/api-gateway/src/dtos/user-role-org-perms.dto';
import type { AnonCredsCredentialFormat, LegacyIndyCredentialFormat } from '@credo-ts/anoncreds';
import type {CredentialFormatPayload, JsonLdCredentialFormat} from '@credo-ts/core';


export type CredentialFormatType = LegacyIndyCredentialFormat | JsonLdCredentialFormat | AnonCredsCredentialFormat
export interface IAgentSpinupDto {
walletName: string;
walletPassword: string;
Expand Down Expand Up @@ -42,8 +46,9 @@ export interface IAgentConfigure {

export interface IOutOfBandCredentialOffer {
emailId: string;
attributes: IAttributes[];
credentialDefinitionId: string;
credentialFormats: CredentialFormatPayload<CredentialFormatType[], 'createOffer'>;
attributes?: IAttributes[];
credentialDefinitionId?: string;
comment: string;
protocolVersion?: string;
orgId: string;
Expand Down Expand Up @@ -305,7 +310,7 @@ export interface IGetCredDefFromTenantPayload {

export interface IIssuanceCreateOffer {
connectionId: string;
credentialFormats: ICredentialFormats;
credentialFormats: CredentialFormatPayload<CredentialFormatType[], 'createOffer'>;
autoAcceptCredential: string;
comment: string;
}
Expand Down Expand Up @@ -368,9 +373,17 @@ export interface IPresentationExchange {
presentationDefinition: IProofRequestPresentationDefinition;
}

interface IAnoncredsProof {
name: string;
version: string;
requested_attributes: IRequestedAttributes;
requested_predicates: IRequestedPredicates;
}

interface IProofFormats {
indy?: IndyProof;
presentationExchange?: IPresentationExchange;
anoncreds?: IAnoncredsProof;
}

interface IndyProof {
Expand Down
Loading