diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c7bf3f3be442c6a58f12f3ccb499b523d7aa22d..2159408a9ed0200fb3ebbf3d3a5389d4f91003b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.30.0](https://code.vereign.com/svdh/ocm-engine/compare/v1.29.0...v1.30.0) (2024-10-30) + + +### Features + +* ocm did svdx generation for sender OP[#250](https://code.vereign.com/svdh/ocm-engine/issues/250) ([dcb9778](https://code.vereign.com/svdh/ocm-engine/commit/dcb97780f262ff18d74f391141d81277f19aa58a)) + ## [1.29.0](https://code.vereign.com/svdh/ocm-engine/compare/v1.28.0...v1.29.0) (2024-10-07) diff --git a/libs/askar/src/askar/clients/catalog.client.ts b/libs/askar/src/askar/clients/catalog.client.ts index 09189b4e3cf3da0f801d5fe6caeb54d2fab0d14d..9e2971ea859a4fa90353d9a69a34165ae86579a3 100644 --- a/libs/askar/src/askar/clients/catalog.client.ts +++ b/libs/askar/src/askar/clients/catalog.client.ts @@ -40,7 +40,7 @@ export class CatalogClient { did: didSvdx, }); } catch (e) { - this.logger.debug("storeMapping failed", e); + this.logger.debug("createAccount failed", e); throw e; } }; diff --git a/libs/askar/src/askar/services/agent.ocm.service.ts b/libs/askar/src/askar/services/agent.ocm.service.ts index a650e9bd653e7ef66797b51cdc59f80d0da5f1a1..b1ba31dac9701e38a7bde50ef9b833de3e2dd37d 100644 --- a/libs/askar/src/askar/services/agent.ocm.service.ts +++ b/libs/askar/src/askar/services/agent.ocm.service.ts @@ -44,7 +44,7 @@ export class AgentOcmService { if (!record) { // todo regenerate in that case? throw new Error( - "VC not found in storage, even though the catalog has some data about it.", + `VC not found in storage, even though the catalog has some data about it. did: ${didSvdx}, email: ${dto.email}`, ); } const vc = record.content; @@ -88,16 +88,16 @@ export class AgentOcmService { "@context": [ "https://www.w3.org/2018/credentials/v1", "https://w3id.org/security/suites/jws-2020/v1", - "http://116.203.134.234/.well-known/hin-account-schema", // todo replace with vereign domain + "https://www.vereign.com/.well-known/svdx-account-schema", ], type: ["VerifiableCredential"], id: svdxDid.did + "?uuid=" + credentialRecordId, issuer: svdxDid.did, issuanceDate: new Date().toISOString(), credentialSubject: { - type: "hin:HinAccount", - "hin:email": dto.email, - "hin:did": newDidSvdx.didState.did, + type: "svdx:SvdxAccount", + "svdx:email": dto.email, + "svdx:did": newDidSvdx.didState.did, }, }, W3cCredential, diff --git a/libs/dtos/src/dtos/requests/request.sender.email.vc.dto.ts b/libs/dtos/src/dtos/requests/request.sender.email.vc.dto.ts index ffcf6a9d322cfb215f582a99b075bac36ff4e8f5..f75b9b63390dc5030920a7333b1cf8caf8dd36c6 100644 --- a/libs/dtos/src/dtos/requests/request.sender.email.vc.dto.ts +++ b/libs/dtos/src/dtos/requests/request.sender.email.vc.dto.ts @@ -1,7 +1,7 @@ -import { IsNotEmpty, IsString } from "class-validator"; +import { IsNotEmpty, IsEmail } from "class-validator"; export class RequestSenderEmailVcDto { - @IsString() + @IsEmail() @IsNotEmpty() email: string; }