Skip to content

Commit

Permalink
Merge pull request #290 from Sphereon-Opensource/develop
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
nklomp authored Dec 5, 2024
2 parents 3010f7b + 96b5b1b commit 024d8bc
Show file tree
Hide file tree
Showing 153 changed files with 7,805 additions and 8,486 deletions.
40 changes: 0 additions & 40 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.31.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.1...v0.31.0) (2024-11-26)

### Bug Fixes

- After dropping DB agent would throw exception as we removed the data source ([ab9c1c8](https://github.com/Sphereon-Opensource/SSI-SDK/commit/ab9c1c8a0e81431c38f5c74633535c0292c85c81))
- check mdoc original are equal ([804fb14](https://github.com/Sphereon-Opensource/SSI-SDK/commit/804fb14d38308b2daf1df697457aa8fad7518d9b))
- Fix broken tests ([74e1d46](https://github.com/Sphereon-Opensource/SSI-SDK/commit/74e1d46e18460f30457181e86f38d8494f43d07b))
- Fixed broken test cases ([705edad](https://github.com/Sphereon-Opensource/SSI-SDK/commit/705edad7cede0f3fe7ca7877efb120eea4812fba))
- Fixed broken tests ([56ce96f](https://github.com/Sphereon-Opensource/SSI-SDK/commit/56ce96fdbe83941955c609c6aa637010a0c90d4e))
- Fixed the non-null expectation of the tests ([f95af05](https://github.com/Sphereon-Opensource/SSI-SDK/commit/f95af05f72393507a73689ddf30cd23f880fe66f))
- Fixed typos in the comments ([485b689](https://github.com/Sphereon-Opensource/SSI-SDK/commit/485b68978752723ef013beac3c2208786912cbb4))
- getFederationTrust fix ([2c02455](https://github.com/Sphereon-Opensource/SSI-SDK/commit/2c02455c403fbd57aaae6e9f55169477f139e005))
- Implemented temporary cryptoServiceCallback verify function ([6fe01f4](https://github.com/Sphereon-Opensource/SSI-SDK/commit/6fe01f48d1cb38871a019feab126755a125a6d06))
- mdoc parsing ([774aeeb](https://github.com/Sphereon-Opensource/SSI-SDK/commit/774aeeb931e3872a7f9c85dfd54d046906f4bff4))
- pass hasher to cvVerifySchema ([a12b845](https://github.com/Sphereon-Opensource/SSI-SDK/commit/a12b845aa544e2f97e8a49663b95f4fa289e4224))
- remove unused interfaces ([954967a](https://github.com/Sphereon-Opensource/SSI-SDK/commit/954967a220b3993d189774912ece01a53b740d07))
- resolution fixes ([d1fddfc](https://github.com/Sphereon-Opensource/SSI-SDK/commit/d1fddfcc5ac002b56ff6b5c19ed4fda5800e2f18))
- return null as undefined in store DTO's ([9d0e24b](https://github.com/Sphereon-Opensource/SSI-SDK/commit/9d0e24bbba8621b0397016c749a6452087c6a22b))

### Features

- Add JARM response support ([8e9cb20](https://github.com/Sphereon-Opensource/SSI-SDK/commit/8e9cb20066bd4784d210a4e125a015e5f81a8a0a))
- add support for credential claim branding ([1d5c7ce](https://github.com/Sphereon-Opensource/SSI-SDK/commit/1d5c7cee277420a28bab0e131a647bb090d62a70))
- added activity logs to eventlogger, plus fixed a bug on deleting parent of child credentials ([91ce056](https://github.com/Sphereon-Opensource/SSI-SDK/commit/91ce056ebb39db54bfb888073c4ae55737068a60))
- added additional issuer branding properties ([c22d9d4](https://github.com/Sphereon-Opensource/SSI-SDK/commit/c22d9d45f55d653b0c8a8faa0b374ba34597c2ec))
- added dynamicRegistrationClientMetadata to issuer locale branding ([aa98150](https://github.com/Sphereon-Opensource/SSI-SDK/commit/aa981508f2af7729a8380d0f340c32bf3eaf2b31))
- added issuer credential subject branding support ([2caa509](https://github.com/Sphereon-Opensource/SSI-SDK/commit/2caa509e5a868dfe636abb9815dae0952e5fbc6d))
- added new module CredentialValidation ([6464fac](https://github.com/Sphereon-Opensource/SSI-SDK/commit/6464facffe47aae80b369e503910f20291d55624))
- added resource resolver plugin ([68b88d8](https://github.com/Sphereon-Opensource/SSI-SDK/commit/68b88d808d74da18b356a87ba0ab5a1ec16475aa))
- added review contact state when contact has low level of trust ([d2c6c75](https://github.com/Sphereon-Opensource/SSI-SDK/commit/d2c6c750b57a80561e60c55402757d4629374f98))
- added validation against vc schema and test cases for validating the vc against the schema plus some bugfixes. also made checking vc against the schema optional ([b75f952](https://github.com/Sphereon-Opensource/SSI-SDK/commit/b75f952564dbd3a4ef72a07e555c499cfd5da099))
- Created an issuer verification of an EBSI issued credential ([333b395](https://github.com/Sphereon-Opensource/SSI-SDK/commit/333b3951ae23b445d9ef353b9b75ce5d0bfd3d37))
- Implemented OIDF client SDK plugin ([31c8608](https://github.com/Sphereon-Opensource/SSI-SDK/commit/31c86086db41a3098620709111a4e3b6475c6ec4))
- JWKS hosting for all keys when Sphereon Key Manager is used ([1cac215](https://github.com/Sphereon-Opensource/SSI-SDK/commit/1cac21546a090f36b02d24ae3b2290a2398c73c2))
- mdoc device response multiple documents ([c9adac8](https://github.com/Sphereon-Opensource/SSI-SDK/commit/c9adac8cc5089af6beebcbdf4de8dc8d3534c006))
- **nx-cloud:** setup nx cloud workspace ([511af20](https://github.com/Sphereon-Opensource/SSI-SDK/commit/511af2000e46da3e6d7760a38aecbe33004d6114))
- updated oid4vci-holder and siopv2-rp to use credential-validation module for verifying credentials. ([87081e5](https://github.com/Sphereon-Opensource/SSI-SDK/commit/87081e53893ee1e1b3e2cdc6cf42b667bb76374e))
- updated oid4vci-holder and siopv2-rp to use credential-validation module for verifying credentials. ([b25b66e](https://github.com/Sphereon-Opensource/SSI-SDK/commit/b25b66edef79864d5b4d0fadfacf8786cab28707))
- upgrade oidf client package ([3cfbcdf](https://github.com/Sphereon-Opensource/SSI-SDK/commit/3cfbcdf8d387f69308dd82b3a89e5b480292bb03))

## [0.30.1](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.0...v0.30.1) (2024-10-01)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.31.0",
"version": "0.30.1",
"npmClient": "pnpm",
"command": {
"version": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/pex": "5.0.0-unstable.28",
"@sphereon/pex-models": "^2.3.2",
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.15",
"@noble/hashes": "1.2.0",
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
"@noble/hashes": "1.6.1",
"debug": "^4.3.5",
"did-jwt": "6.11.6",
"did-jwt-vc": "3.1.3",
Expand Down
6 changes: 0 additions & 6 deletions packages/agent-config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.31.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.1...v0.31.0) (2024-11-26)

### Bug Fixes

- After dropping DB agent would throw exception as we removed the data source ([ab9c1c8](https://github.com/Sphereon-Opensource/SSI-SDK/commit/ab9c1c8a0e81431c38f5c74633535c0292c85c81))

## [0.30.1](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.0...v0.30.1) (2024-10-01)

**Note:** Version bump only for package @sphereon/ssi-sdk.agent-config
Expand Down
2 changes: 1 addition & 1 deletion packages/agent-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sphereon/ssi-sdk.agent-config",
"version": "0.31.0",
"version": "0.30.1",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/agent-config/src/dataSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,6 @@ export const revertMigration = async (dataSource: DataSource): Promise<void> =>
}
export const resetDatabase = async (dbName: string): Promise<void> => {
await dropDatabase(dbName)
await getDbConnection(dbName)
const connection = await getDbConnection(dbName)
await connection.runMigrations()
}
4 changes: 0 additions & 4 deletions packages/anomaly-detection/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.31.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.1...v0.31.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk.anomaly-detection

## [0.30.1](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.0...v0.30.1) (2024-10-01)

**Note:** Version bump only for package @sphereon/ssi-sdk.contact-manager
Expand Down
4 changes: 2 additions & 2 deletions packages/anomaly-detection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sphereon/ssi-sdk.anomaly-detection",
"version": "0.31.0",
"version": "0.30.1",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -15,8 +15,8 @@
"generate-plugin-schema": "ts-node ../../packages/dev/bin/sphereon.js dev generate-plugin-schema"
},
"dependencies": {
"@sphereon/ssi-sdk.geolocation-store": "workspace:*",
"@sphereon/ssi-sdk.kv-store-temp": "workspace:*",
"@sphereon/ssi-sdk.geolocation-store": "workspace:*",
"cross-fetch": "^3.1.8",
"debug": "^4.3.5",
"dns-query": "^0.11.2",
Expand Down
18 changes: 6 additions & 12 deletions packages/anomaly-detection/src/agent/AnomalyDetection.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import { contextHasPlugin } from '@sphereon/ssi-sdk.agent-config'
import { IAgentPlugin } from '@veramo/core'
import { CountryResponse, Reader } from 'mmdb-lib'
import {
AnomalyDetectionLookupLocationArgs,
AnomalyDetectionLookupLocationResult,
IAnomalyDetection,
IRequiredContext,
schema
} from '../index'
import { AnomalyDetectionLookupLocationArgs, AnomalyDetectionLookupLocationResult, IAnomalyDetection, IRequiredContext, schema } from '../index'

type DnsLookupFn = (hostname: string) => Promise<string>

Expand All @@ -21,7 +15,7 @@ export class AnomalyDetection implements IAgentPlugin {
private readonly db: Buffer
private readonly dnsLookup?: DnsLookupFn
readonly methods: IAnomalyDetection = {
anomalyDetectionLookupLocation: this.anomalyDetectionLookupLocation.bind(this)
anomalyDetectionLookupLocation: this.anomalyDetectionLookupLocation.bind(this),
}

constructor(args: { geoIpDB: Buffer; dnsLookupCallback?: DnsLookupFn }) {
Expand All @@ -35,7 +29,7 @@ export class AnomalyDetection implements IAgentPlugin {

private async anomalyDetectionLookupLocation(
args: AnomalyDetectionLookupLocationArgs,
context: IRequiredContext
context: IRequiredContext,
): Promise<AnomalyDetectionLookupLocationResult> {
const { ipOrHostname, storeId, namespace } = { ...args }
const reader = new Reader<CountryResponse>(this.db)
Expand All @@ -53,15 +47,15 @@ export class AnomalyDetection implements IAgentPlugin {

const lookupResult = {
continent: result?.continent?.code,
country: result?.country?.iso_code
country: result?.country?.iso_code,
}

if (contextHasPlugin(context, 'geolocationStorePersistLocation'))
await context.agent.geolocationStorePersistLocation({
namespace,
storeId,
ipOrHostname,
locationArgs: lookupResult
locationArgs: lookupResult,
})
return Promise.resolve(lookupResult)
}
Expand All @@ -78,7 +72,7 @@ export class AnomalyDetection implements IAgentPlugin {
} catch (e) {
console.error(e)
throw new Error(
`DNS resolution not available on this platform, use the dnsLookupCallback in the AnomalyDetection constructor to implement DNS resolution for your platform.\r\n${e.message}`
`DNS resolution not available on this platform, use the dnsLookupCallback in the AnomalyDetection constructor to implement DNS resolution for your platform.\r\n${e.message}`,
)
}

Expand Down
4 changes: 2 additions & 2 deletions packages/anomaly-detection/src/types/IAnomalyDetection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {IAgentContext, IPluginMethodMap} from '@veramo/core'
import {GeolocationStoreArgs, IGeolocationStore} from "@sphereon/ssi-sdk.geolocation-store";
import { IAgentContext, IPluginMethodMap } from '@veramo/core'
import { GeolocationStoreArgs, IGeolocationStore } from '@sphereon/ssi-sdk.geolocation-store'

export interface IAnomalyDetection extends IPluginMethodMap {
anomalyDetectionLookupLocation(args: AnomalyDetectionLookupLocationArgs, context: IRequiredContext): Promise<AnomalyDetectionLookupLocationResult>
Expand Down
4 changes: 0 additions & 4 deletions packages/contact-manager-rest-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.31.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.1...v0.31.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk.contact-manager-rest-api

## [0.30.1](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.0...v0.30.1) (2024-10-01)

**Note:** Version bump only for package @sphereon/ssi-sdk.contact-manager-rest-api
Expand Down
6 changes: 3 additions & 3 deletions packages/contact-manager-rest-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sphereon/ssi-sdk.contact-manager-rest-api",
"version": "0.31.0",
"version": "0.30.1",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -12,8 +12,8 @@
},
"dependencies": {
"@sphereon/ssi-express-support": "workspace:*",
"@sphereon/ssi-sdk-ext.key-manager": "0.26.0",
"@sphereon/ssi-sdk-ext.key-utils": "0.26.0",
"@sphereon/ssi-sdk-ext.key-manager": "0.27.0",
"@sphereon/ssi-sdk-ext.key-utils": "0.27.0",
"@sphereon/ssi-sdk.contact-manager": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-sdk.data-store": "workspace:*",
Expand Down
4 changes: 0 additions & 4 deletions packages/contact-manager/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.31.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.1...v0.31.0) (2024-11-26)

**Note:** Version bump only for package @sphereon/ssi-sdk.contact-manager

## [0.30.1](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.0...v0.30.1) (2024-10-01)

**Note:** Version bump only for package @sphereon/ssi-sdk.contact-manager
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-manager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sphereon/ssi-sdk.contact-manager",
"version": "0.31.0",
"version": "0.30.1",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 0 additions & 6 deletions packages/credential-store/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.31.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.1...v0.31.0) (2024-11-26)

### Bug Fixes

- return null as undefined in store DTO's ([9d0e24b](https://github.com/Sphereon-Opensource/SSI-SDK/commit/9d0e24bbba8621b0397016c749a6452087c6a22b))

## [0.30.1](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.0...v0.30.1) (2024-10-01)

**Note:** Version bump only for package @sphereon/ssi-sdk.credential-store
Expand Down
3 changes: 2 additions & 1 deletion packages/credential-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sphereon/ssi-sdk.credential-store",
"version": "0.31.0",
"version": "0.30.1",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -17,6 +17,7 @@
"dependencies": {
"@sphereon/pex": "5.0.0-unstable.28",
"@sphereon/pex-models": "^2.3.2",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-sdk.data-store": "workspace:*",
"cross-fetch": "^3.1.8",
"debug": "^4.3.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-store/src/agent/CredentialStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
UpdateCredentialStateArgs,
DocumentType,
parseRawDocument,
defaultHasher,
} from '@sphereon/ssi-sdk.data-store'
import { shaHasher as defaultHasher } from '@sphereon/ssi-sdk.core'
import { IVerifiableCredential } from '@sphereon/ssi-types'
import { IAgentPlugin } from '@veramo/core'
import { schema, logger } from '../index'
Expand Down
3 changes: 3 additions & 0 deletions packages/credential-store/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
{
"path": "../data-store"
},
{
"path": "../ssi-sdk-core"
},
{
"path": "../ssi-types"
},
Expand Down
16 changes: 0 additions & 16 deletions packages/credential-validation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +0,0 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.31.0](https://github.com/Sphereon-Opensource/SSI-SDK/compare/v0.30.1...v0.31.0) (2024-11-26)

### Bug Fixes

- pass hasher to cvVerifySchema ([a12b845](https://github.com/Sphereon-Opensource/SSI-SDK/commit/a12b845aa544e2f97e8a49663b95f4fa289e4224))

### Features

- added new module CredentialValidation ([6464fac](https://github.com/Sphereon-Opensource/SSI-SDK/commit/6464facffe47aae80b369e503910f20291d55624))
- updated oid4vci-holder and siopv2-rp to use credential-validation module for verifying credentials. ([87081e5](https://github.com/Sphereon-Opensource/SSI-SDK/commit/87081e53893ee1e1b3e2cdc6cf42b667bb76374e))
- updated oid4vci-holder and siopv2-rp to use credential-validation module for verifying credentials. ([b25b66e](https://github.com/Sphereon-Opensource/SSI-SDK/commit/b25b66edef79864d5b4d0fadfacf8786cab28707))
6 changes: 3 additions & 3 deletions packages/credential-validation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sphereon/ssi-sdk.credential-validation",
"version": "0.31.0",
"version": "0.30.1",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -15,12 +15,12 @@
"generate-plugin-schema": "ts-node ../../packages/dev/bin/sphereon.js dev generate-plugin-schema"
},
"dependencies": {
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.15",
"@sphereon/ssi-types": "workspace:*",
"@sphereon/ssi-sdk.agent-config": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-sdk.mdl-mdoc": "workspace:*",
"@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
"@sphereon/ssi-sdk.sd-jwt": "workspace:*",
"@sphereon/ssi-types": "workspace:*",
"@veramo/core": "4.2.0",
"@veramo/utils": "4.2.0",
"ajv": "^8.17.1",
Expand Down
Loading

0 comments on commit 024d8bc

Please sign in to comment.