Skip to content

Commit

Permalink
chore: addressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Brummos committed Oct 31, 2024
1 parent 92ecf6c commit d41109c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 14 deletions.
14 changes: 7 additions & 7 deletions packages/data-store/src/__tests__/contact.store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,10 @@ describe('Contact store tests', (): void => {
{
alias: 'test_alias4',
origin: IdentityOrigin.EXTERNAL,
roles: [CredentialRole.FEDERATION_OPERATOR],
roles: [CredentialRole.FEDERATION_TRUST_ANCHOR],
identifier: {
type: CorrelationIdentifierType.DID,
correlationId: 'example_did4',
type: CorrelationIdentifierType.URL,
correlationId: 'example_url4',
},
},
],
Expand Down Expand Up @@ -1220,10 +1220,10 @@ describe('Contact store tests', (): void => {
{
alias: 'test_alias4',
origin: IdentityOrigin.EXTERNAL,
roles: [CredentialRole.FEDERATION_OPERATOR],
roles: [CredentialRole.FEDERATION_TRUST_ANCHOR],
identifier: {
type: CorrelationIdentifierType.DID,
correlationId: 'example_did4',
type: CorrelationIdentifierType.URL,
correlationId: 'example_url4',
},
},
],
Expand All @@ -1238,7 +1238,7 @@ describe('Contact store tests', (): void => {
CredentialRole.VERIFIER,
CredentialRole.ISSUER,
CredentialRole.HOLDER,
CredentialRole.FEDERATION_OPERATOR
CredentialRole.FEDERATION_TRUST_ANCHOR
])
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class CreateDigitalCredential1708525189001 implements MigrationInterface
await queryRunner.query(`CREATE TYPE "digital_document_type" AS ENUM('VC', 'VP', 'C', 'P')`)
await queryRunner.query(`CREATE TYPE "digital_regulation_type" AS ENUM('PID', 'QEAA', 'EAA', 'NON_REGULATED')`)
await queryRunner.query(`CREATE TYPE "digital_credential_document_format" AS ENUM('JSON_LD', 'JWT', 'SD_JWT', 'MSO_MDOC')`)
await queryRunner.query(`CREATE TYPE "digital_credential_credential_role" AS ENUM('ISSUER', 'VERIFIER', 'HOLDER', 'FEDERATION OPERATOR')`)
await queryRunner.query(`CREATE TYPE "digital_credential_credential_role" AS ENUM('ISSUER', 'VERIFIER', 'HOLDER', 'FEDERATION_TRUST_ANCHOR')`)
await queryRunner.query(`CREATE TYPE "digital_credential_correlation_type" AS ENUM('DID', 'KID', 'URL', 'X509_SAN')`)
await queryRunner.query(`CREATE TYPE "digital_credential_state_type" AS ENUM('REVOKED', 'VERIFIED', 'EXPIRED')`)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class CreateDigitalCredential1708525189002 implements MigrationInterface
"document_type" varchar CHECK( "document_type" IN ('VC', 'VP', 'C', 'P') ) NOT NULL,
"regulation_type" varchar CHECK( "regulation_type" IN ('PID', 'QEAA', 'EAA', 'NON_REGULATED') ) NOT NULL DEFAULT 'NON_REGULATED',
"document_format" varchar CHECK( "document_format" IN ('JSON_LD', 'JWT', 'SD_JWT', 'MSO_MDOC') ) NOT NULL,
"credential_role" varchar CHECK( "credential_role" IN ('ISSUER', 'VERIFIER', 'HOLDER', 'FEDERATION OPERATOR') ) NOT NULL,
"credential_role" varchar CHECK( "credential_role" IN ('ISSUER', 'VERIFIER', 'HOLDER', 'FEDERATION_TRUST_ANCHOR') ) NOT NULL,
"raw_document" text NOT NULL,
"uniform_document" text NOT NULL,
"credential_id" text,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export enum CredentialRole {
ISSUER = 'ISSUER',
VERIFIER = 'VERIFIER',
HOLDER = 'HOLDER',
FEDERATION_OPERATOR = 'FEDERATION OPERATOR'
FEDERATION_TRUST_ANCHOR = 'FEDERATION_TRUST_ANCHOR'
}

export enum CredentialStateType {
Expand Down
2 changes: 1 addition & 1 deletion packages/oid4vci-holder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sphereon/ssi-sdk.oid4vci-holder",
"version": "0.30.99-bram",
"version": "0.30.1",
"source": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"oid4vci_machine_credential_selection_error_title": "Credential selection",
"oid4vci_machine_initiation_error_title": "Initiate OID4VCI provider",
"oid4vci_machine_credential_verification_failed_message": "The credential verification resulted in an error.",
"oid4vci_machine_credential_verification_schema_failed_message": "The credential schema verification resulted in an error."
"oid4vci_machine_credential_verification_schema_failed_message": "The credential schema verification resulted in an error.",
"oid4vci_machine_retrieve_federation_trust_error_title": "Retrieve federation trust"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"oid4vci_machine_retrieve_contact_error_title": "Ophalen contact",
"oid4vci_machine_credential_selection_error_title": "Credential selectie",
"oid4vci_machine_initiation_error_title": "Initiëren OID4VCI provider",
"oid4vci_machine_credential_verification_failed_message": "Verificatie van de credential leidde tot een fout."
"oid4vci_machine_credential_verification_failed_message": "Verificatie van de credential leidde tot een fout.",
"oid4vci_machine_retrieve_federation_trust_error_title": "Ophalen federatievertrouwen"
}
2 changes: 1 addition & 1 deletion packages/oid4vci-holder/src/machine/oid4vciMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ const createOID4VCIMachine = (opts?: CreateOID4VCIMachineOpts): OID4VCIStateMach
target: OID4VCIMachineStates.handleError,
actions: assign({
error: (_ctx: OID4VCIMachineContext, _event: DoneInvokeEvent<Error>): ErrorDetails => ({
title: translate('oid4vci_machine_store_credential_error_title'), // TODO
title: translate('oid4vci_machine_retrieve_federation_trust_error_title'),
message: _event.data.message,
stack: _event.data.stack,
}),
Expand Down

0 comments on commit d41109c

Please sign in to comment.