diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 5e41ce2c..c91b0885 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -5,7 +5,7 @@ ### Added - Add `legalCountry` as an allowed attribute for set/not-set membership proofs. -- Added `AttributeKey` check for `IDENTITY_SUBJECT_SCHEMA`. Implemented missed attributes `lei`, `legalName`, `legalCountry`, `businessNumber`, `registrationAuth` +- `IDENTITY_SUBJECT_SCHEMA` implemented missed attributes `lei`, `legalName`, `legalCountry`, `businessNumber`, `registrationAuth` ## 8.0.1 diff --git a/packages/sdk/src/web3-id/types.ts b/packages/sdk/src/web3-id/types.ts index 463b85ce..a6a05718 100644 --- a/packages/sdk/src/web3-id/types.ts +++ b/packages/sdk/src/web3-id/types.ts @@ -100,22 +100,7 @@ export type CredentialSchemaSubject = { required: string[]; }; -type Override = Omit & NewType; - -type IdCredentialSchemaSubject = Override< - CredentialSchemaSubject, - { - properties: { - id: IdDetails; - attributes: Override< - CredentialSchemaAttributes, - { properties: Record } - >; - }; - } ->; - -export const IDENTITY_SUBJECT_SCHEMA: IdCredentialSchemaSubject = { +export const IDENTITY_SUBJECT_SCHEMA: CredentialSchemaSubject = { type: 'object', properties: { id: {