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

New release #210

Merged
merged 119 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
d9b8623
feat: (WIP) added ownerId, tenantId, and origin.
sksadjad Mar 14, 2024
eff3432
Merge branch 'develop' of https://github.com/Sphereon-Opensource/SSI-…
zoemaas Mar 22, 2024
95929d1
fix: removed not null constraint from the SQL statement that adds the…
zoemaas Mar 22, 2024
fb36a51
feat: Added the StudentEntity and refactored the migrations
zoemaas Mar 27, 2024
cc5caf0
Merge remote-tracking branch 'refs/remotes/origin/develop' into featu…
sanderPostma May 14, 2024
ad06ed4
CWALL-153: killed al the students & restructured metadata handling
sanderPostma May 14, 2024
ca8cb30
CWALL-153: Added migrations and support filtering on identity metadata
sanderPostma May 15, 2024
493645d
CWALL-153: Fix in contact.entities.test.ts
sanderPostma May 15, 2024
cbf05f9
CWALL-153: refactored & tested
sanderPostma May 16, 2024
d27deef
CWALL-153: renamed origin fields
sanderPostma May 16, 2024
6d25cb1
CWALL-153: reverted origin rename as it's enough to change it in the …
sanderPostma May 16, 2024
cf81643
CWALL-153: removed redundant test
sanderPostma May 16, 2024
c5cb504
CWALL-153: added metadata undefined/null check
sanderPostma May 16, 2024
4860ecc
CWALL-153: Reverted party_origin_type_enum
sanderPostma May 16, 2024
b733dad
CWALL-222: work on PD-manager
sanderPostma May 17, 2024
cf13171
chore: use party origin enum for default value
Brummos May 17, 2024
54b87db
chore: code styling
Brummos May 17, 2024
cdc0153
CWALL-222: Started working on PDStore
sanderPostma May 17, 2024
7f2d828
CWALL-153: PR feedback changes
sanderPostma May 21, 2024
27e7bc8
Merge branch 'feature/CWALL-153' of https://github.com/Sphereon-Opens…
sanderPostma May 21, 2024
4abf89d
CWALL-153: Updated migrations related to DEFAULT 'EXTERNAL' NOT NULL`
sanderPostma May 21, 2024
5b043bd
CWALL-153: export ContactMetadataItemEntity
sanderPostma May 21, 2024
3a7dfa4
CWALL-153: saving work
sanderPostma May 21, 2024
d5beaec
CWALL-222: implementing PD manager
sanderPostma May 22, 2024
8423b18
CWALL-222: implementing PD manager
sanderPostma May 23, 2024
a7a5915
chore: WIP
Brummos May 24, 2024
8fdceb9
chore: postgres migrations added
Brummos May 24, 2024
8844f8d
CWALL-222: working on PresentationExchange
sanderPostma May 24, 2024
b30fb68
Merge branch 'feature/CWALL-222_pd-manager' of https://github.com/Sph…
sanderPostma May 24, 2024
3742706
CWALL-222: migration fix
sanderPostma May 24, 2024
30aaaa2
CWALL-222: fix test
sanderPostma May 24, 2024
9688190
CWALL-222: lerna dummy commit
sanderPostma May 24, 2024
1f138f9
CWALL-222: fixed isPresentationDefinitionEqual
sanderPostma May 24, 2024
3aeb892
CWALL-222: lerna version bump
sanderPostma May 24, 2024
181a8e4
CWALL-222: lerna version bump
sanderPostma May 24, 2024
907f55e
CWALL-222: lerna version bump
sanderPostma May 24, 2024
e591219
CWALL-222: lerna version bump
sanderPostma May 24, 2024
b7fe592
CWALL-222: lerna version bump
sanderPostma May 24, 2024
f8d8e43
CWALL-222: lerna version bump
sanderPostma May 24, 2024
e135893
CWALL-222: lerna version bump
sanderPostma May 24, 2024
944c04d
CWALL-222: lerna version bump
sanderPostma May 24, 2024
ded6aa9
CWALL-222: implemented siopImportDefinitions & version control
sanderPostma May 25, 2024
258adf2
CWALL-222: log persisting definitions
sanderPostma May 25, 2024
16291e2
chore: Allow default RP options for SIOPv2RP
sanderPostma May 27, 2024
af049d6
chore: removed double export
Brummos May 27, 2024
fe2e32a
chore: naming fixes
Brummos May 28, 2024
3ffe504
chore: fixes
Brummos May 28, 2024
5f8745b
chore: moved version control logic to pd-manager
sanderPostma May 28, 2024
c65b029
Merge remote-tracking branch 'origin/feature/CWALL-222_pd-manager' in…
sanderPostma May 28, 2024
0f1f6e1
chore: added tests for pd-manager & fixed exposed bugs
sanderPostma May 28, 2024
386bd5c
chore: express ignore
Brummos May 28, 2024
ed77532
feat: added pd-manager / pd-store
sanderPostma May 28, 2024
bcdecd3
chore: removed duplicate enum declaration
sanderPostma May 29, 2024
d2a47a6
chore: cleanup
sanderPostma May 29, 2024
db98fde
chore: cleanup
sanderPostma May 29, 2024
6bd7d77
chore: generic for buildMetadataCondition
sanderPostma May 29, 2024
1a8cb9b
chore: cleanup
sanderPostma May 29, 2024
c895ba3
chore: pnpm update
sanderPostma May 29, 2024
28a0d20
chore: IdentityRole -> CredentialRole + test fixes
sanderPostma May 29, 2024
8dff715
chore: PR feedback
sanderPostma May 29, 2024
da8d977
chore: pnpm v8
sanderPostma May 29, 2024
5adb69f
chore: lockfile
sanderPostma May 29, 2024
f47f53f
chore: pr feedback
sanderPostma May 29, 2024
1a1be3b
chore: pr feedback
sanderPostma May 29, 2024
fbd3dcf
chore: pr feedback
sanderPostma May 29, 2024
c824c21
chore: pr feedback
sanderPostma May 29, 2024
ad92ec4
chore: next pd-manager iteration
sanderPostma May 30, 2024
c3d038f
chore: cleanup
sanderPostma May 30, 2024
44be666
chore: reast API fix
sanderPostma May 30, 2024
9885d18
chore: PEX rest API fix
sanderPostma May 30, 2024
2efaa95
chore: isPresentationDefinitionEqual update
sanderPostma May 30, 2024
345d742
chore: cleanup
sanderPostma May 31, 2024
9fcedd4
chore: cleanup
sanderPostma May 31, 2024
8c9752e
chore: migrations cleanup
sanderPostma May 31, 2024
1cecf50
chore: migrations cleanup
sanderPostma May 31, 2024
f9667b5
chore: migrations cleanup
sanderPostma May 31, 2024
1331c69
chore: migrations cleanup
sanderPostma May 31, 2024
c47792c
chore: migrations cleanup
sanderPostma May 31, 2024
c8246cd
chore: test fix
Brummos Jun 3, 2024
1277d0b
chore: migrations cleanup
sanderPostma Jun 4, 2024
89c5051
chore: revert named origins
sanderPostma Jun 4, 2024
3ecb5dd
chore: comment slice to extract type from string [object String]
sanderPostma Jun 4, 2024
f921068
chore: working on API
sanderPostma Jun 4, 2024
11b565c
chore: removed crypto dep
sanderPostma Jun 5, 2024
0d05a44
chore: fixed PR feedback
sanderPostma Jun 5, 2024
3dac39b
chore: amended migrations files
sanderPostma Jun 5, 2024
f480feb
chore(ci): merge main into develop (next)
github-actions[bot] Jun 5, 2024
85d6084
chore(ci): merge main into develop (next)
github-actions[bot] Jun 5, 2024
676056e
chore: removed default PartyOrigin
sanderPostma Jun 6, 2024
7315798
chore: fixed hashing & rewrote versioning
sanderPostma Jun 7, 2024
9b4e92f
Merge remote-tracking branch 'refs/remotes/origin/develop' into featu…
sanderPostma Jun 7, 2024
61df0f7
chore: removed default PartyOrigin
sanderPostma Jun 6, 2024
1684d5f
Merge pull request #171 from Sphereon-Opensource/feature/CWALL-153
sanderPostma Jun 7, 2024
021f900
chore: PR feedback
sanderPostma Jun 7, 2024
dcf0322
chore: dep cleanup
sanderPostma Jun 7, 2024
66d69a4
Merge remote-tracking branch 'refs/remotes/origin/develop' into featu…
sanderPostma Jun 7, 2024
fda2eed
chore: dev sync-up
sanderPostma Jun 7, 2024
9f30b82
chore: dev sync-up
sanderPostma Jun 7, 2024
85d8aeb
feat: added sd-jwt plugin
Brummos Jun 7, 2024
b6938b9
chore: removed plugin schema
Brummos Jun 7, 2024
241ad60
chore: cleanup
Brummos Jun 7, 2024
c2dc3aa
chore: updated package.json
Brummos Jun 7, 2024
47ee11c
chore: updated package name
Brummos Jun 7, 2024
13c8257
chore: naming fixes
Brummos Jun 8, 2024
29e5b50
chore: code formatting and added some TODO's
Brummos Jun 8, 2024
f1cce12
chore: added ticket numbers to TODO's
Brummos Jun 8, 2024
9c64384
chore: function extraction
Brummos Jun 8, 2024
c62d8ca
Merge pull request #196 from Sphereon-Opensource/feature/CWALL-222_pd…
sanderPostma Jun 8, 2024
b3508c0
fix: fix physical address building name validation
Brummos Jun 10, 2024
2c64edd
chore: added TODO
Brummos Jun 10, 2024
926df64
Merge pull request #204 from Sphereon-Opensource/feature/SPRIND-3
BtencateSphereon Jun 10, 2024
f636041
Merge pull request #205 from Sphereon-Opensource/fix/CWALL-229_2
BtencateSphereon Jun 10, 2024
5d2fa69
chore: update lock
nklomp Jun 10, 2024
43b06e9
feature: pd-manager showVersionHistory: true/false option for pdmGetD…
sanderPostma Jun 12, 2024
170b81f
Feat/oyd 01 (#209)
nklomp Jun 13, 2024
8eda1c2
feature: fix for muliple IDs in filter
sanderPostma Jun 13, 2024
0bd4aec
Merge pull request #208 from Sphereon-Opensource/feature/CWALL-218
sanderPostma Jun 13, 2024
eae66f2
fix: Ensure logger is initialized early preventing potential issues w…
nklomp Jun 13, 2024
dc56df2
fix: Order of static keys to ensure default namespace key is availabl…
nklomp Jun 13, 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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [2021] [Sphereon BV]
Copyright [2024] [Sphereon International B.V.]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@
"@veramo/url-handler": "4.2.0",
"@sphereon/ssi-types": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/oid4vci-common": "0.10.4-next.25",
"@sphereon/oid4vci-client": "0.10.4-next.25",
"@sphereon/oid4vci-issuer": "0.10.4-next.25",
"@noble/hashes": "1.2.0",
"did-jwt": "6.11.6",
"did-jwt-vc": "3.1.3",
Expand All @@ -128,4 +131,3 @@
}
}
}

2 changes: 1 addition & 1 deletion packages/agent-config/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [2022] [Sphereon BV]
Copyright [2024] [Sphereon International B.V.]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-manager-rest-api/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [2021] [Sphereon BV]
Copyright [2024] [Sphereon International B.V.]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
19 changes: 14 additions & 5 deletions packages/contact-manager-rest-api/__tests__/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ import { DataStore, DataStoreORM, DIDStore } from '@veramo/data-store'
import { IRequiredPlugins } from '../src'
import { DB_CONNECTION_NAME, sqliteConfig } from './database'
import { AddContactArgs, ContactManager } from '@sphereon/ssi-sdk.contact-manager'
import { ContactStore, CorrelationIdentifierEnum, IdentityRoleEnum, NonPersistedIdentity, PartyTypeEnum } from '@sphereon/ssi-sdk.data-store'
import {
ContactStore,
CorrelationIdentifierType,
CredentialRole,
NonPersistedIdentity,
PartyOrigin,
PartyTypeType,
} from '@sphereon/ssi-sdk.data-store'
import { DataSources } from '@sphereon/ssi-sdk.agent-config'
import { v4 } from 'uuid'
import { DIDManager } from '@veramo/did-manager'
Expand Down Expand Up @@ -60,9 +67,9 @@ const toContactIdentityDTO = (contact: Record<string, any>, identifier: IIdentif
console.log(`Contact received did ${identifier.did}, contact: ${JSON.stringify(contact)}`)
return {
alias: identifier.alias,
roles: [IdentityRoleEnum.ISSUER],
roles: [CredentialRole.ISSUER],
identifier: {
type: CorrelationIdentifierEnum.DID,
type: CorrelationIdentifierType.DID,
correlationId: identifier.did,
},
} as NonPersistedIdentity
Expand All @@ -72,13 +79,15 @@ async function addContacts() {
try {
const personContactType = await agent.cmAddContactType({
name: 'people',
type: PartyTypeEnum.NATURAL_PERSON,
origin: PartyOrigin.EXTERNAL,
type: PartyTypeType.NATURAL_PERSON,
tenantId: v4(),
})

const organizationalContactType = await agent.cmAddContactType({
name: 'organizations',
type: PartyTypeEnum.ORGANIZATION,
origin: PartyOrigin.EXTERNAL,
type: PartyTypeType.ORGANIZATION,
tenantId: v4(),
})

Expand Down
4 changes: 2 additions & 2 deletions packages/contact-manager-rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"dependencies": {
"@sphereon/ssi-express-support": "workspace:*",
"@sphereon/ssi-sdk-ext.key-manager": "0.19.0",
"@sphereon/ssi-sdk-ext.key-utils": "0.19.0",
"@sphereon/ssi-sdk-ext.key-manager": "0.20.0",
"@sphereon/ssi-sdk-ext.key-utils": "0.20.0",
"@sphereon/ssi-sdk.agent-config": "workspace:*",
"@sphereon/ssi-sdk.contact-manager": "workspace:*",
"@sphereon/ssi-sdk.core": "workspace:*",
Expand Down
1 change: 1 addition & 0 deletions packages/contact-manager-rest-api/src/api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export function partyDeleteEndpoint(router: Router, context: IRequiredContext, o
try {
const partyId = request.params.partyId
const result = await context.agent.cmRemoveContact({ contactId: partyId })
response.statusCode = 200
return response.send(result)
} catch (error) {
return sendErrorResponse(response, 500, error.message, error)
Expand Down
2 changes: 1 addition & 1 deletion packages/contact-manager/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [2022] [Sphereon BV]
Copyright [2024] [Sphereon International B.V.]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
ElectronicAddress,
GetPartiesArgs,
Identity,
IdentityRole,
CredentialRole,
IdentityOrigin,
NaturalPerson,
NonPersistedElectronicAddress,
NonPersistedIdentity,
Expand Down Expand Up @@ -45,7 +46,8 @@ export default (testContext: { getAgent: () => ConfiguredAgent; setup: () => Pro
const correlationId = 'default_example_did'
const identity: NonPersistedIdentity = {
alias: correlationId,
roles: [IdentityRole.ISSUER, IdentityRole.VERIFIER],
origin: IdentityOrigin.EXTERNAL,
roles: [CredentialRole.ISSUER, CredentialRole.VERIFIER],
identifier: {
type: CorrelationIdentifierType.DID,
correlationId,
Expand Down Expand Up @@ -241,7 +243,8 @@ export default (testContext: { getAgent: () => ConfiguredAgent; setup: () => Pro
const correlationId = 'new_example_did'
const identity: NonPersistedIdentity = {
alias: correlationId,
roles: [IdentityRole.ISSUER, IdentityRole.VERIFIER],
origin: IdentityOrigin.EXTERNAL,
roles: [CredentialRole.ISSUER, CredentialRole.VERIFIER],
identifier: {
type: CorrelationIdentifierType.DID,
correlationId,
Expand All @@ -265,7 +268,8 @@ export default (testContext: { getAgent: () => ConfiguredAgent; setup: () => Pro
const correlationId = 'missing_connection_add_example'
const identity: NonPersistedIdentity = {
alias: correlationId,
roles: [IdentityRole.ISSUER, IdentityRole.VERIFIER],
origin: IdentityOrigin.EXTERNAL,
roles: [CredentialRole.ISSUER, CredentialRole.VERIFIER],
identifier: {
type: CorrelationIdentifierType.URL,
correlationId,
Expand All @@ -281,7 +285,8 @@ export default (testContext: { getAgent: () => ConfiguredAgent; setup: () => Pro
const correlationId = 'missing_connection_update_example'
const identity: NonPersistedIdentity = {
alias: correlationId,
roles: [IdentityRole.ISSUER, IdentityRole.VERIFIER],
origin: IdentityOrigin.EXTERNAL,
roles: [CredentialRole.ISSUER, CredentialRole.VERIFIER],
identifier: {
type: CorrelationIdentifierType.DID,
correlationId,
Expand All @@ -297,7 +302,8 @@ export default (testContext: { getAgent: () => ConfiguredAgent; setup: () => Pro
const correlationId = 'new_update_example_did'
const identity: NonPersistedIdentity = {
alias: 'update_example_did',
roles: [IdentityRole.ISSUER, IdentityRole.VERIFIER],
origin: IdentityOrigin.EXTERNAL,
roles: [CredentialRole.ISSUER, CredentialRole.VERIFIER],
identifier: {
type: CorrelationIdentifierType.DID,
correlationId: 'update_example_did',
Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2022 Sphereon BV
Copyright [2024] [Sphereon International B.V.]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
3 changes: 3 additions & 0 deletions packages/data-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc --build",
"build:clean": "tsc --build --clean && tsc --build",
"typeorm": "ts-node --project ./tsconfig.json -r tsconfig-paths/register ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/cli.js --config src/migrations/internal-migrations-ormconfig.ts",
"typeorm-sqlite:migration:generate": "pnpm run typeorm -- migration:generate -c migration-sqlite -d src/migrations/sqlite -n",
"typeorm-sqlite:migration:run": "pnpm run typeorm -- migration:run -c migration-sqlite",
"typeorm-postgres:migration:generate": "pnpm run typeorm -- migration:generate -c migration-postgres -d src/migrations/postgres -n",
"typeorm-postgres:migration:run": "pnpm run typeorm -- migration:run -c migration-postgres"
},
"dependencies": {
"@sphereon/pex": "^3.3.3",
"@sphereon/ssi-sdk.core": "workspace:*",
"@sphereon/ssi-types": "workspace:*",
"@veramo/core": "4.2.0",
"@veramo/utils": "4.2.0",
"class-validator": "^0.14.0",
"debug": "^4.3.4",
"blakejs": "^1.1.1",
"typeorm": "^0.3.20"
},
"devDependencies": {
Expand Down
Loading