@twin.org/engine 0.0.1-next.50 → 0.0.1-next.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -80,9 +80,9 @@ function buildEngineConfiguration(envVars) {
80
80
  envVars.storageFileRoot = path.resolve(envVars.storageFileRoot);
81
81
  envVars.stateFilename = path.join(envVars.storageFileRoot, envVars.stateFilename);
82
82
  }
83
- envVars.attestationAssertionMethodId ??= "attestation-assertion";
83
+ envVars.attestationVerificationMethodId ??= "attestation-assertion";
84
84
  envVars.immutableProofHashKeyId ??= "immutable-proof-hash";
85
- envVars.immutableProofAssertionMethodId ??= "immutable-proof-assertion";
85
+ envVars.immutableProofVerificationMethodId ??= "immutable-proof-assertion";
86
86
  envVars.blobStorageEnableEncryption ??= "false";
87
87
  envVars.blobStorageEncryptionKey ??= "blob-encryption";
88
88
  const coreConfig = {
@@ -467,8 +467,8 @@ function configureTelemetryConnectors(coreConfig, envVars) {
467
467
  });
468
468
  }
469
469
  if (coreConfig.types.telemetryConnector.length > 0) {
470
- coreConfig.types.telemetryComponents ??= [];
471
- coreConfig.types.telemetryComponents.push({ type: engineTypes.TelemetryComponentType.Service });
470
+ coreConfig.types.telemetryComponent ??= [];
471
+ coreConfig.types.telemetryComponent.push({ type: engineTypes.TelemetryComponentType.Service });
472
472
  }
473
473
  }
474
474
  /**
@@ -724,7 +724,7 @@ function configureImmutableStorageConnectors(coreConfig, envVars) {
724
724
  type: engineTypes.ImmutableProofComponentType.Service,
725
725
  options: {
726
726
  config: {
727
- assertionMethodId: envVars.immutableProofAssertionMethodId,
727
+ verificationMethodId: envVars.immutableProofVerificationMethodId,
728
728
  proofHashKeyId: envVars.immutableProofHashKeyId
729
729
  }
730
730
  }
@@ -863,7 +863,12 @@ function configureAttestationConnectors(coreConfig, envVars) {
863
863
  if (coreConfig.types.attestationConnector.length > 0) {
864
864
  coreConfig.types.attestationComponent ??= [];
865
865
  coreConfig.types.attestationComponent.push({
866
- type: engineTypes.AttestationComponentType.Service
866
+ type: engineTypes.AttestationComponentType.Service,
867
+ options: {
868
+ config: {
869
+ verificationMethodId: envVars.attestationVerificationMethodId
870
+ }
871
+ }
867
872
  });
868
873
  }
869
874
  }
@@ -78,9 +78,9 @@ function buildEngineConfiguration(envVars) {
78
78
  envVars.storageFileRoot = path.resolve(envVars.storageFileRoot);
79
79
  envVars.stateFilename = path.join(envVars.storageFileRoot, envVars.stateFilename);
80
80
  }
81
- envVars.attestationAssertionMethodId ??= "attestation-assertion";
81
+ envVars.attestationVerificationMethodId ??= "attestation-assertion";
82
82
  envVars.immutableProofHashKeyId ??= "immutable-proof-hash";
83
- envVars.immutableProofAssertionMethodId ??= "immutable-proof-assertion";
83
+ envVars.immutableProofVerificationMethodId ??= "immutable-proof-assertion";
84
84
  envVars.blobStorageEnableEncryption ??= "false";
85
85
  envVars.blobStorageEncryptionKey ??= "blob-encryption";
86
86
  const coreConfig = {
@@ -465,8 +465,8 @@ function configureTelemetryConnectors(coreConfig, envVars) {
465
465
  });
466
466
  }
467
467
  if (coreConfig.types.telemetryConnector.length > 0) {
468
- coreConfig.types.telemetryComponents ??= [];
469
- coreConfig.types.telemetryComponents.push({ type: TelemetryComponentType.Service });
468
+ coreConfig.types.telemetryComponent ??= [];
469
+ coreConfig.types.telemetryComponent.push({ type: TelemetryComponentType.Service });
470
470
  }
471
471
  }
472
472
  /**
@@ -722,7 +722,7 @@ function configureImmutableStorageConnectors(coreConfig, envVars) {
722
722
  type: ImmutableProofComponentType.Service,
723
723
  options: {
724
724
  config: {
725
- assertionMethodId: envVars.immutableProofAssertionMethodId,
725
+ verificationMethodId: envVars.immutableProofVerificationMethodId,
726
726
  proofHashKeyId: envVars.immutableProofHashKeyId
727
727
  }
728
728
  }
@@ -861,7 +861,12 @@ function configureAttestationConnectors(coreConfig, envVars) {
861
861
  if (coreConfig.types.attestationConnector.length > 0) {
862
862
  coreConfig.types.attestationComponent ??= [];
863
863
  coreConfig.types.attestationComponent.push({
864
- type: AttestationComponentType.Service
864
+ type: AttestationComponentType.Service,
865
+ options: {
866
+ config: {
867
+ verificationMethodId: envVars.attestationVerificationMethodId
868
+ }
869
+ }
865
870
  });
866
871
  }
867
872
  }
@@ -359,9 +359,9 @@ export interface IEngineEnvironmentVariables {
359
359
  */
360
360
  identityProfileConnector?: string;
361
361
  /**
362
- * The identity assertion method id to use with immutable proofs.
362
+ * The identity verification method id to use with immutable proofs.
363
363
  */
364
- immutableProofAssertionMethodId?: string;
364
+ immutableProofVerificationMethodId?: string;
365
365
  /**
366
366
  * The hash key from the vault to use with immutable proofs.
367
367
  */
@@ -371,9 +371,9 @@ export interface IEngineEnvironmentVariables {
371
371
  */
372
372
  attestationConnector?: string;
373
373
  /**
374
- * The identity assertion method id to use with attestation.
374
+ * The identity verification method id to use with attestation.
375
375
  */
376
- attestationAssertionMethodId?: string;
376
+ attestationVerificationMethodId?: string;
377
377
  /**
378
378
  * The type of the default data converters, can be a comma separated list: json, xml.
379
379
  */
@@ -716,11 +716,11 @@ The type of identity profile connector: entity-storage.
716
716
 
717
717
  ***
718
718
 
719
- ### immutableProofAssertionMethodId?
719
+ ### immutableProofVerificationMethodId?
720
720
 
721
- > `optional` **immutableProofAssertionMethodId**: `string`
721
+ > `optional` **immutableProofVerificationMethodId**: `string`
722
722
 
723
- The identity assertion method id to use with immutable proofs.
723
+ The identity verification method id to use with immutable proofs.
724
724
 
725
725
  ***
726
726
 
@@ -740,11 +740,11 @@ The type of attestation connector: entity-storage, iota.
740
740
 
741
741
  ***
742
742
 
743
- ### attestationAssertionMethodId?
743
+ ### attestationVerificationMethodId?
744
744
 
745
- > `optional` **attestationAssertionMethodId**: `string`
745
+ > `optional` **attestationVerificationMethodId**: `string`
746
746
 
747
- The identity assertion method id to use with attestation.
747
+ The identity verification method id to use with attestation.
748
748
 
749
749
  ***
750
750
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/engine",
3
- "version": "0.0.1-next.50",
3
+ "version": "0.0.1-next.52",
4
4
  "description": "Engine implementation.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/core": "next",
18
- "@twin.org/engine-core": "0.0.1-next.50",
19
- "@twin.org/engine-types": "0.0.1-next.50"
18
+ "@twin.org/engine-core": "0.0.1-next.52",
19
+ "@twin.org/engine-types": "0.0.1-next.52"
20
20
  },
21
21
  "main": "./dist/cjs/index.cjs",
22
22
  "module": "./dist/esm/index.mjs",