@twin.org/engine-types 0.0.3-next.2 → 0.0.3-next.21
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.
- package/dist/es/components/attestation.js +20 -22
- package/dist/es/components/attestation.js.map +1 -1
- package/dist/es/components/auditableItemGraph.js +26 -22
- package/dist/es/components/auditableItemGraph.js.map +1 -1
- package/dist/es/components/auditableItemStream.js +26 -22
- package/dist/es/components/auditableItemStream.js.map +1 -1
- package/dist/es/components/backgroundTask.js +18 -18
- package/dist/es/components/backgroundTask.js.map +1 -1
- package/dist/es/components/blobStorage.js +69 -80
- package/dist/es/components/blobStorage.js.map +1 -1
- package/dist/es/components/contextIdHandler.js +31 -0
- package/dist/es/components/contextIdHandler.js.map +1 -0
- package/dist/es/components/dataProcessing.js +33 -32
- package/dist/es/components/dataProcessing.js.map +1 -1
- package/dist/es/components/dataSpaceConnector.js +26 -25
- package/dist/es/components/dataSpaceConnector.js.map +1 -1
- package/dist/es/components/documentManagement.js +12 -12
- package/dist/es/components/documentManagement.js.map +1 -1
- package/dist/es/components/entityStorage.js +20 -21
- package/dist/es/components/entityStorage.js.map +1 -1
- package/dist/es/components/eventBus.js +19 -27
- package/dist/es/components/eventBus.js.map +1 -1
- package/dist/es/components/faucet.js +18 -18
- package/dist/es/components/faucet.js.map +1 -1
- package/dist/es/components/federatedCatalogue.js +14 -18
- package/dist/es/components/federatedCatalogue.js.map +1 -1
- package/dist/es/components/federatedCatalogueFilter.js +34 -0
- package/dist/es/components/federatedCatalogueFilter.js.map +1 -0
- package/dist/es/components/identity.js +28 -31
- package/dist/es/components/identity.js.map +1 -1
- package/dist/es/components/identityProfile.js +26 -24
- package/dist/es/components/identityProfile.js.map +1 -1
- package/dist/es/components/identityResolver.js +36 -40
- package/dist/es/components/identityResolver.js.map +1 -1
- package/dist/es/components/immutableProof.js +23 -20
- package/dist/es/components/immutableProof.js.map +1 -1
- package/dist/es/components/logging.js +28 -28
- package/dist/es/components/logging.js.map +1 -1
- package/dist/es/components/messaging.js +77 -89
- package/dist/es/components/messaging.js.map +1 -1
- package/dist/es/components/nft.js +33 -33
- package/dist/es/components/nft.js.map +1 -1
- package/dist/es/components/rightsManagementPap.js +17 -17
- package/dist/es/components/rightsManagementPap.js.map +1 -1
- package/dist/es/components/rightsManagementPdp.js +11 -25
- package/dist/es/components/rightsManagementPdp.js.map +1 -1
- package/dist/es/components/rightsManagementPep.js +12 -24
- package/dist/es/components/rightsManagementPep.js.map +1 -1
- package/dist/es/components/rightsManagementPip.js +9 -25
- package/dist/es/components/rightsManagementPip.js.map +1 -1
- package/dist/es/components/rightsManagementPmp.js +10 -10
- package/dist/es/components/rightsManagementPmp.js.map +1 -1
- package/dist/es/components/rightsManagementPnap.js +20 -18
- package/dist/es/components/rightsManagementPnap.js.map +1 -1
- package/dist/es/components/rightsManagementPnp.js +14 -36
- package/dist/es/components/rightsManagementPnp.js.map +1 -1
- package/dist/es/components/rightsManagementPolicyArbiter.js +32 -0
- package/dist/es/components/rightsManagementPolicyArbiter.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js +33 -0
- package/dist/es/components/rightsManagementPolicyEnforcementProcessor.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyExecutionAction.js +25 -0
- package/dist/es/components/rightsManagementPolicyExecutionAction.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyInformationSource.js +34 -0
- package/dist/es/components/rightsManagementPolicyInformationSource.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyNegotiator.js +27 -0
- package/dist/es/components/rightsManagementPolicyNegotiator.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyObligationEnforcer.js +27 -0
- package/dist/es/components/rightsManagementPolicyObligationEnforcer.js.map +1 -0
- package/dist/es/components/rightsManagementPolicyRequester.js +25 -0
- package/dist/es/components/rightsManagementPolicyRequester.js.map +1 -0
- package/dist/es/components/rightsManagementPxp.js +9 -25
- package/dist/es/components/rightsManagementPxp.js.map +1 -1
- package/dist/es/components/synchronisedStorage.js +25 -23
- package/dist/es/components/synchronisedStorage.js.map +1 -1
- package/dist/es/components/taskScheduler.js +10 -10
- package/dist/es/components/taskScheduler.js.map +1 -1
- package/dist/es/components/telemetry.js +29 -32
- package/dist/es/components/telemetry.js.map +1 -1
- package/dist/es/components/tenant.js +12 -11
- package/dist/es/components/tenant.js.map +1 -1
- package/dist/es/components/trust.js +27 -0
- package/dist/es/components/trust.js.map +1 -0
- package/dist/es/components/trustGenerator.js +28 -0
- package/dist/es/components/trustGenerator.js.map +1 -0
- package/dist/es/components/trustVerifier.js +28 -0
- package/dist/es/components/trustVerifier.js.map +1 -0
- package/dist/es/components/vault.js +15 -12
- package/dist/es/components/vault.js.map +1 -1
- package/dist/es/components/verifiableStorage.js +32 -34
- package/dist/es/components/verifiableStorage.js.map +1 -1
- package/dist/es/components/wallet.js +23 -24
- package/dist/es/components/wallet.js.map +1 -1
- package/dist/es/index.js +38 -11
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IEngineConfig.js.map +1 -1
- package/dist/es/models/config/backgroundTaskComponentConfig.js +2 -0
- package/dist/es/models/config/backgroundTaskComponentConfig.js.map +1 -0
- package/dist/es/models/config/blobStorageConnectorConfig.js.map +1 -1
- package/dist/es/models/config/contextIdHandlerComponentConfig.js +2 -0
- package/dist/es/models/config/contextIdHandlerComponentConfig.js.map +1 -0
- package/dist/es/models/config/federatedCatalogueFilterComponentConfig.js +2 -0
- package/dist/es/models/config/federatedCatalogueFilterComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPdpComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPepComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPipComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPnpComponentConfig.js.map +1 -1
- package/dist/es/models/config/rightsManagementPolicyArbiterComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyArbiterComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyExecutionActionComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyExecutionActionComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyInformationSourceComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyInformationSourceComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyNegotiatorComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyNegotiatorComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyObligationEnforcerComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyObligationEnforcerComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPolicyRequesterComponentConfig.js +2 -0
- package/dist/es/models/config/rightsManagementPolicyRequesterComponentConfig.js.map +1 -0
- package/dist/es/models/config/rightsManagementPxpComponentConfig.js.map +1 -1
- package/dist/es/models/config/trustComponentConfig.js +2 -0
- package/dist/es/models/config/trustComponentConfig.js.map +1 -0
- package/dist/es/models/config/trustGeneratorComponentConfig.js +2 -0
- package/dist/es/models/config/trustGeneratorComponentConfig.js.map +1 -0
- package/dist/es/models/config/trustVerifierComponentConfig.js +2 -0
- package/dist/es/models/config/trustVerifierComponentConfig.js.map +1 -0
- package/dist/es/models/types/{rightsManagementDarpComponentType.js → backgroundTaskComponentType.js} +3 -3
- package/dist/es/models/types/backgroundTaskComponentType.js.map +1 -0
- package/dist/es/models/types/contextIdHandlerComponentType.js +17 -0
- package/dist/es/models/types/contextIdHandlerComponentType.js.map +1 -0
- package/dist/es/models/types/federatedCatalogueFilterComponentType.js +13 -0
- package/dist/es/models/types/federatedCatalogueFilterComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyArbiterComponentType.js +17 -0
- package/dist/es/models/types/rightsManagementPolicyArbiterComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyEnforcementProcessorComponentType.js +17 -0
- package/dist/es/models/types/rightsManagementPolicyEnforcementProcessorComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyExecutionActionComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementPolicyExecutionActionComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyInformationSourceComponentType.js +17 -0
- package/dist/es/models/types/rightsManagementPolicyInformationSourceComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyNegotiatorComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementPolicyNegotiatorComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyObligationEnforcerComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementPolicyObligationEnforcerComponentType.js.map +1 -0
- package/dist/es/models/types/rightsManagementPolicyRequesterComponentType.js +13 -0
- package/dist/es/models/types/rightsManagementPolicyRequesterComponentType.js.map +1 -0
- package/dist/es/models/types/trustComponentType.js +13 -0
- package/dist/es/models/types/trustComponentType.js.map +1 -0
- package/dist/es/models/types/trustGeneratorComponentType.js +13 -0
- package/dist/es/models/types/trustGeneratorComponentType.js.map +1 -0
- package/dist/es/models/types/trustVerifierComponentType.js +13 -0
- package/dist/es/models/types/trustVerifierComponentType.js.map +1 -0
- package/dist/es/utils/engineTypeHelper.js +19 -1
- package/dist/es/utils/engineTypeHelper.js.map +1 -1
- package/dist/types/components/attestation.d.ts +5 -13
- package/dist/types/components/auditableItemGraph.d.ts +3 -7
- package/dist/types/components/auditableItemStream.d.ts +3 -7
- package/dist/types/components/backgroundTask.d.ts +5 -10
- package/dist/types/components/blobStorage.d.ts +4 -12
- package/dist/types/components/contextIdHandler.d.ts +12 -0
- package/dist/types/components/dataProcessing.d.ts +5 -17
- package/dist/types/components/dataSpaceConnector.d.ts +3 -7
- package/dist/types/components/documentManagement.d.ts +3 -7
- package/dist/types/components/entityStorage.d.ts +3 -7
- package/dist/types/components/eventBus.d.ts +4 -12
- package/dist/types/components/faucet.d.ts +2 -7
- package/dist/types/components/federatedCatalogue.d.ts +3 -7
- package/dist/types/components/federatedCatalogueFilter.d.ts +12 -0
- package/dist/types/components/identity.d.ts +4 -12
- package/dist/types/components/identityProfile.d.ts +4 -12
- package/dist/types/components/identityResolver.d.ts +4 -12
- package/dist/types/components/immutableProof.d.ts +3 -7
- package/dist/types/components/logging.d.ts +4 -12
- package/dist/types/components/messaging.d.ts +7 -27
- package/dist/types/components/nft.d.ts +4 -12
- package/dist/types/components/rightsManagementPap.d.ts +3 -7
- package/dist/types/components/rightsManagementPdp.d.ts +3 -7
- package/dist/types/components/rightsManagementPep.d.ts +3 -7
- package/dist/types/components/rightsManagementPip.d.ts +3 -7
- package/dist/types/components/rightsManagementPmp.d.ts +3 -7
- package/dist/types/components/rightsManagementPnap.d.ts +3 -7
- package/dist/types/components/rightsManagementPnp.d.ts +3 -7
- package/dist/types/components/rightsManagementPolicyArbiter.d.ts +12 -0
- package/dist/types/components/rightsManagementPolicyEnforcementProcessor.d.ts +12 -0
- package/dist/types/components/rightsManagementPolicyExecutionAction.d.ts +12 -0
- package/dist/types/components/rightsManagementPolicyInformationSource.d.ts +12 -0
- package/dist/types/components/rightsManagementPolicyNegotiator.d.ts +12 -0
- package/dist/types/components/rightsManagementPolicyObligationEnforcer.d.ts +12 -0
- package/dist/types/components/rightsManagementPolicyRequester.d.ts +12 -0
- package/dist/types/components/rightsManagementPxp.d.ts +3 -7
- package/dist/types/components/synchronisedStorage.d.ts +3 -7
- package/dist/types/components/taskScheduler.d.ts +3 -7
- package/dist/types/components/telemetry.d.ts +4 -12
- package/dist/types/components/tenant.d.ts +3 -7
- package/dist/types/components/trust.d.ts +12 -0
- package/dist/types/components/trustGenerator.d.ts +12 -0
- package/dist/types/components/trustVerifier.d.ts +12 -0
- package/dist/types/components/vault.d.ts +2 -7
- package/dist/types/components/verifiableStorage.d.ts +4 -12
- package/dist/types/components/wallet.d.ts +2 -7
- package/dist/types/index.d.ts +38 -11
- package/dist/types/models/IEngineConfig.d.ts +57 -12
- package/dist/types/models/config/backgroundTaskComponentConfig.d.ts +9 -0
- package/dist/types/models/config/blobStorageConnectorConfig.d.ts +4 -1
- package/dist/types/models/config/contextIdHandlerComponentConfig.d.ts +11 -0
- package/dist/types/models/config/federatedCatalogueFilterComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPdpComponentConfig.d.ts +1 -4
- package/dist/types/models/config/rightsManagementPepComponentConfig.d.ts +1 -4
- package/dist/types/models/config/rightsManagementPipComponentConfig.d.ts +1 -4
- package/dist/types/models/config/rightsManagementPnpComponentConfig.d.ts +1 -5
- package/dist/types/models/config/rightsManagementPolicyArbiterComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPolicyEnforcementProcessorComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPolicyExecutionActionComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPolicyInformationSourceComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPolicyNegotiatorComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPolicyObligationEnforcerComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPolicyRequesterComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPxpComponentConfig.d.ts +1 -4
- package/dist/types/models/config/trustComponentConfig.d.ts +9 -0
- package/dist/types/models/config/trustGeneratorComponentConfig.d.ts +9 -0
- package/dist/types/models/config/trustVerifierComponentConfig.d.ts +9 -0
- package/dist/types/models/types/backgroundTaskComponentType.d.ts +13 -0
- package/dist/types/models/types/contextIdHandlerComponentType.d.ts +17 -0
- package/dist/types/models/types/federatedCatalogueFilterComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPolicyArbiterComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPolicyEnforcementProcessorComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPolicyExecutionActionComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPolicyInformationSourceComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPolicyNegotiatorComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPolicyObligationEnforcerComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPolicyRequesterComponentType.d.ts +13 -0
- package/dist/types/models/types/trustComponentType.d.ts +13 -0
- package/dist/types/models/types/trustGeneratorComponentType.d.ts +13 -0
- package/dist/types/models/types/trustVerifierComponentType.d.ts +13 -0
- package/dist/types/utils/engineTypeHelper.d.ts +11 -0
- package/docs/changelog.md +330 -0
- package/docs/reference/classes/EngineTypeHelper.md +53 -0
- package/docs/reference/functions/initialiseAttestationComponent.md +2 -2
- package/docs/reference/functions/initialiseAttestationConnector.md +3 -3
- package/docs/reference/functions/initialiseAuditableItemGraphComponent.md +2 -2
- package/docs/reference/functions/initialiseAuditableItemStreamComponent.md +2 -2
- package/docs/reference/functions/initialiseBackgroundTaskComponent.md +31 -0
- package/docs/reference/functions/initialiseBlobStorageComponent.md +2 -2
- package/docs/reference/functions/initialiseBlobStorageConnector.md +2 -2
- package/docs/reference/functions/initialiseContextIdHandlerComponent.md +31 -0
- package/docs/reference/functions/initialiseDataConverterConnector.md +2 -2
- package/docs/reference/functions/initialiseDataExtractorConnector.md +2 -2
- package/docs/reference/functions/initialiseDataProcessingComponent.md +2 -2
- package/docs/reference/functions/initialiseDataSpaceConnectorComponent.md +2 -2
- package/docs/reference/functions/initialiseDocumentManagementComponent.md +2 -2
- package/docs/reference/functions/initialiseEntityStorageComponent.md +2 -2
- package/docs/reference/functions/initialiseEventBusComponent.md +2 -2
- package/docs/reference/functions/initialiseEventBusConnector.md +2 -2
- package/docs/reference/functions/initialiseFaucetConnector.md +2 -2
- package/docs/reference/functions/initialiseFederatedCatalogueComponent.md +2 -2
- package/docs/reference/functions/initialiseFederatedCatalogueFilterComponent.md +31 -0
- package/docs/reference/functions/initialiseIdentityComponent.md +2 -2
- package/docs/reference/functions/initialiseIdentityConnector.md +2 -2
- package/docs/reference/functions/initialiseIdentityProfileComponent.md +2 -2
- package/docs/reference/functions/initialiseIdentityProfileConnector.md +2 -2
- package/docs/reference/functions/initialiseIdentityResolverComponent.md +2 -2
- package/docs/reference/functions/initialiseIdentityResolverConnector.md +2 -2
- package/docs/reference/functions/initialiseImmutableProofComponent.md +2 -2
- package/docs/reference/functions/initialiseLoggingComponent.md +2 -2
- package/docs/reference/functions/initialiseLoggingConnector.md +2 -2
- package/docs/reference/functions/initialiseMessagingAdminComponent.md +2 -2
- package/docs/reference/functions/initialiseMessagingComponent.md +2 -2
- package/docs/reference/functions/initialiseMessagingEmailConnector.md +2 -2
- package/docs/reference/functions/initialiseMessagingPushNotificationConnector.md +2 -2
- package/docs/reference/functions/initialiseMessagingSmsConnector.md +2 -2
- package/docs/reference/functions/initialiseNftComponent.md +2 -2
- package/docs/reference/functions/initialiseNftConnector.md +2 -2
- package/docs/reference/functions/initialiseRightsManagementPapComponent.md +2 -2
- package/docs/reference/functions/initialiseRightsManagementPdpComponent.md +2 -2
- package/docs/reference/functions/initialiseRightsManagementPepComponent.md +2 -2
- package/docs/reference/functions/initialiseRightsManagementPipComponent.md +2 -2
- package/docs/reference/functions/initialiseRightsManagementPmpComponent.md +2 -2
- package/docs/reference/functions/initialiseRightsManagementPnapComponent.md +2 -2
- package/docs/reference/functions/initialiseRightsManagementPnpComponent.md +2 -2
- package/docs/reference/functions/initialiseRightsManagementPolicyArbiterComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyEnforcementProcessorComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyExecutionActionComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyInformationSourceComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyNegotiatorComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyObligationEnforcerComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPolicyRequesterComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPxpComponent.md +2 -2
- package/docs/reference/functions/initialiseSynchronisedStorageComponent.md +2 -2
- package/docs/reference/functions/initialiseTaskSchedulerComponent.md +2 -2
- package/docs/reference/functions/initialiseTelemetryComponent.md +2 -2
- package/docs/reference/functions/initialiseTelemetryConnector.md +2 -2
- package/docs/reference/functions/initialiseTenantAdminComponent.md +2 -2
- package/docs/reference/functions/initialiseTrustComponent.md +31 -0
- package/docs/reference/functions/initialiseTrustGeneratorComponent.md +31 -0
- package/docs/reference/functions/initialiseTrustVerifierComponent.md +31 -0
- package/docs/reference/functions/initialiseVaultConnector.md +2 -2
- package/docs/reference/functions/initialiseVerifiableStorageComponent.md +2 -2
- package/docs/reference/functions/initialiseVerifiableStorageConnector.md +2 -2
- package/docs/reference/functions/initialiseWalletConnector.md +2 -2
- package/docs/reference/index.md +52 -16
- package/docs/reference/interfaces/IEngineConfig.md +66 -12
- package/docs/reference/type-aliases/BackgroundTaskComponentConfig.md +17 -0
- package/docs/reference/type-aliases/BackgroundTaskComponentType.md +5 -0
- package/docs/reference/type-aliases/BlobStorageConnectorConfig.md +1 -1
- package/docs/reference/type-aliases/ContextIdHandlerComponentConfig.md +5 -0
- package/docs/reference/type-aliases/ContextIdHandlerComponentType.md +5 -0
- package/docs/reference/type-aliases/FederatedCatalogueFilterComponentConfig.md +17 -0
- package/docs/reference/type-aliases/FederatedCatalogueFilterComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPdpComponentConfig.md +1 -7
- package/docs/reference/type-aliases/RightsManagementPepComponentConfig.md +1 -7
- package/docs/reference/type-aliases/RightsManagementPipComponentConfig.md +1 -7
- package/docs/reference/type-aliases/RightsManagementPnpComponentConfig.md +1 -1
- package/docs/reference/type-aliases/RightsManagementPolicyArbiterComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyArbiterComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyEnforcementProcessorComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyEnforcementProcessorComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyExecutionActionComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPolicyExecutionActionComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyInformationSourceComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyInformationSourceComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyNegotiatorComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPolicyNegotiatorComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyObligationEnforcerComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPolicyObligationEnforcerComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPolicyRequesterComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPolicyRequesterComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPxpComponentConfig.md +1 -7
- package/docs/reference/type-aliases/TrustComponentConfig.md +17 -0
- package/docs/reference/type-aliases/TrustComponentType.md +5 -0
- package/docs/reference/type-aliases/TrustGeneratorComponentConfig.md +17 -0
- package/docs/reference/type-aliases/TrustGeneratorComponentType.md +5 -0
- package/docs/reference/type-aliases/TrustVerifierComponentConfig.md +17 -0
- package/docs/reference/type-aliases/TrustVerifierComponentType.md +5 -0
- package/docs/reference/variables/BackgroundTaskComponentType.md +13 -0
- package/docs/reference/variables/ContextIdHandlerComponentType.md +19 -0
- package/docs/reference/variables/FederatedCatalogueFilterComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPolicyArbiterComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPolicyEnforcementProcessorComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPolicyExecutionActionComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPolicyInformationSourceComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPolicyNegotiatorComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPolicyObligationEnforcerComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPolicyRequesterComponentType.md +13 -0
- package/docs/reference/variables/TrustComponentType.md +13 -0
- package/docs/reference/variables/TrustGeneratorComponentType.md +13 -0
- package/docs/reference/variables/TrustVerifierComponentType.md +13 -0
- package/package.json +10 -5
- package/dist/es/components/authenticationGenerator.js +0 -30
- package/dist/es/components/authenticationGenerator.js.map +0 -1
- package/dist/es/components/rightsManagementDap.js +0 -38
- package/dist/es/components/rightsManagementDap.js.map +0 -1
- package/dist/es/components/rightsManagementDarp.js +0 -29
- package/dist/es/components/rightsManagementDarp.js.map +0 -1
- package/dist/es/models/config/authenticationGeneratorComponentConfig.js +0 -2
- package/dist/es/models/config/authenticationGeneratorComponentConfig.js.map +0 -1
- package/dist/es/models/config/backgroundTaskConnectorConfig.js +0 -2
- package/dist/es/models/config/backgroundTaskConnectorConfig.js.map +0 -1
- package/dist/es/models/config/rightsManagementDapComponentConfig.js +0 -2
- package/dist/es/models/config/rightsManagementDapComponentConfig.js.map +0 -1
- package/dist/es/models/config/rightsManagementDarpComponentConfig.js +0 -2
- package/dist/es/models/config/rightsManagementDarpComponentConfig.js.map +0 -1
- package/dist/es/models/types/authenticationGeneratorComponentType.js +0 -13
- package/dist/es/models/types/authenticationGeneratorComponentType.js.map +0 -1
- package/dist/es/models/types/backgroundTaskConnectorType.js +0 -13
- package/dist/es/models/types/backgroundTaskConnectorType.js.map +0 -1
- package/dist/es/models/types/rightsManagementDapComponentType.js +0 -17
- package/dist/es/models/types/rightsManagementDapComponentType.js.map +0 -1
- package/dist/es/models/types/rightsManagementDarpComponentType.js.map +0 -1
- package/dist/types/components/authenticationGenerator.d.ts +0 -17
- package/dist/types/components/rightsManagementDap.d.ts +0 -16
- package/dist/types/components/rightsManagementDarp.d.ts +0 -16
- package/dist/types/models/config/authenticationGeneratorComponentConfig.d.ts +0 -9
- package/dist/types/models/config/backgroundTaskConnectorConfig.d.ts +0 -9
- package/dist/types/models/config/rightsManagementDapComponentConfig.d.ts +0 -16
- package/dist/types/models/config/rightsManagementDarpComponentConfig.d.ts +0 -12
- package/dist/types/models/types/authenticationGeneratorComponentType.d.ts +0 -13
- package/dist/types/models/types/backgroundTaskConnectorType.d.ts +0 -13
- package/dist/types/models/types/rightsManagementDapComponentType.d.ts +0 -17
- package/dist/types/models/types/rightsManagementDarpComponentType.d.ts +0 -13
- package/docs/reference/functions/initialiseAuthenticationGeneratorComponent.md +0 -31
- package/docs/reference/functions/initialiseBackgroundTaskConnector.md +0 -31
- package/docs/reference/functions/initialiseRightsManagementDapComponent.md +0 -31
- package/docs/reference/functions/initialiseRightsManagementDarpComponent.md +0 -31
- package/docs/reference/type-aliases/AuthenticationGeneratorComponentConfig.md +0 -17
- package/docs/reference/type-aliases/AuthenticationGeneratorComponentType.md +0 -5
- package/docs/reference/type-aliases/BackgroundTaskConnectorConfig.md +0 -17
- package/docs/reference/type-aliases/BackgroundTaskConnectorType.md +0 -5
- package/docs/reference/type-aliases/RightsManagementDapComponentConfig.md +0 -5
- package/docs/reference/type-aliases/RightsManagementDapComponentType.md +0 -5
- package/docs/reference/type-aliases/RightsManagementDarpComponentConfig.md +0 -23
- package/docs/reference/type-aliases/RightsManagementDarpComponentType.md +0 -5
- package/docs/reference/variables/AuthenticationGeneratorComponentType.md +0 -13
- package/docs/reference/variables/BackgroundTaskConnectorType.md +0 -13
- package/docs/reference/variables/RightsManagementDapComponentType.md +0 -19
- package/docs/reference/variables/RightsManagementDarpComponentType.md +0 -13
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Variable: RightsManagementPolicyRequesterComponentType
|
|
2
|
+
|
|
3
|
+
> `const` **RightsManagementPolicyRequesterComponentType**: `object`
|
|
4
|
+
|
|
5
|
+
Rights management Policy Requester component types.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### PassThrough
|
|
10
|
+
|
|
11
|
+
> `readonly` **PassThrough**: `"pass-through"` = `"pass-through"`
|
|
12
|
+
|
|
13
|
+
PassThrough.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Variable: TrustGeneratorComponentType
|
|
2
|
+
|
|
3
|
+
> `const` **TrustGeneratorComponentType**: `object`
|
|
4
|
+
|
|
5
|
+
Trust generator component types.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### JwtVerifiableCredential
|
|
10
|
+
|
|
11
|
+
> `readonly` **JwtVerifiableCredential**: `"jwt-verifiable-credential"` = `"jwt-verifiable-credential"`
|
|
12
|
+
|
|
13
|
+
JWT Verifiable Credential.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Variable: TrustVerifierComponentType
|
|
2
|
+
|
|
3
|
+
> `const` **TrustVerifierComponentType**: `object`
|
|
4
|
+
|
|
5
|
+
Trust verifier component types.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### JwtVerifiableCredential
|
|
10
|
+
|
|
11
|
+
> `readonly` **JwtVerifiableCredential**: `"jwt-verifiable-credential"` = `"jwt-verifiable-credential"`
|
|
12
|
+
|
|
13
|
+
JWT Verifiable Credential.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-types",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.21",
|
|
4
4
|
"description": "Types to use in an engine.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@twin.org/auditable-item-stream-models": "next",
|
|
27
27
|
"@twin.org/auditable-item-stream-rest-client": "next",
|
|
28
28
|
"@twin.org/auditable-item-stream-service": "next",
|
|
29
|
-
"@twin.org/background-task-connector-entity-storage": "next",
|
|
30
29
|
"@twin.org/background-task-models": "next",
|
|
31
30
|
"@twin.org/background-task-scheduler": "next",
|
|
31
|
+
"@twin.org/background-task-service": "next",
|
|
32
32
|
"@twin.org/blob-storage-connector-aws-s3": "next",
|
|
33
33
|
"@twin.org/blob-storage-connector-azure": "next",
|
|
34
34
|
"@twin.org/blob-storage-connector-file": "next",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@twin.org/document-management-models": "next",
|
|
55
55
|
"@twin.org/document-management-rest-client": "next",
|
|
56
56
|
"@twin.org/document-management-service": "next",
|
|
57
|
-
"@twin.org/engine-core": "0.0.3-next.
|
|
58
|
-
"@twin.org/engine-models": "0.0.3-next.
|
|
57
|
+
"@twin.org/engine-core": "0.0.3-next.21",
|
|
58
|
+
"@twin.org/engine-models": "0.0.3-next.21",
|
|
59
59
|
"@twin.org/entity": "next",
|
|
60
60
|
"@twin.org/entity-storage-connector-cosmosdb": "next",
|
|
61
61
|
"@twin.org/entity-storage-connector-dynamodb": "next",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"@twin.org/event-bus-models": "next",
|
|
75
75
|
"@twin.org/event-bus-service": "next",
|
|
76
76
|
"@twin.org/event-bus-socket-client": "next",
|
|
77
|
+
"@twin.org/federated-catalogue-filters": "next",
|
|
77
78
|
"@twin.org/federated-catalogue-models": "next",
|
|
78
79
|
"@twin.org/federated-catalogue-rest-client": "next",
|
|
79
80
|
"@twin.org/federated-catalogue-service": "next",
|
|
80
|
-
"@twin.org/identity-authentication": "next",
|
|
81
81
|
"@twin.org/identity-connector-entity-storage": "next",
|
|
82
82
|
"@twin.org/identity-connector-iota": "next",
|
|
83
83
|
"@twin.org/identity-connector-universal": "next",
|
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
"@twin.org/rights-management-pdp-service": "next",
|
|
110
110
|
"@twin.org/rights-management-pep-service": "next",
|
|
111
111
|
"@twin.org/rights-management-pip-service": "next",
|
|
112
|
+
"@twin.org/rights-management-plugins": "next",
|
|
112
113
|
"@twin.org/rights-management-pmp-service": "next",
|
|
113
114
|
"@twin.org/rights-management-pnp-service": "next",
|
|
114
115
|
"@twin.org/rights-management-pxp-service": "next",
|
|
@@ -121,6 +122,10 @@
|
|
|
121
122
|
"@twin.org/telemetry-models": "next",
|
|
122
123
|
"@twin.org/telemetry-rest-client": "next",
|
|
123
124
|
"@twin.org/telemetry-service": "next",
|
|
125
|
+
"@twin.org/trust-generators": "next",
|
|
126
|
+
"@twin.org/trust-models": "next",
|
|
127
|
+
"@twin.org/trust-service": "next",
|
|
128
|
+
"@twin.org/trust-verifiers": "next",
|
|
124
129
|
"@twin.org/vault-connector-entity-storage": "next",
|
|
125
130
|
"@twin.org/vault-connector-hashicorp": "next",
|
|
126
131
|
"@twin.org/vault-models": "next",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
import { AuthenticationGeneratorFactory } from "@twin.org/api-models";
|
|
4
|
-
import { VerifiableCredentialAuthenticationGenerator } from "@twin.org/identity-authentication";
|
|
5
|
-
import { AuthenticationGeneratorComponentType } from "../models/types/authenticationGeneratorComponentType.js";
|
|
6
|
-
/**
|
|
7
|
-
* Initialise the authentication generator component.
|
|
8
|
-
* @param engineCore The engine core.
|
|
9
|
-
* @param context The context for the engine.
|
|
10
|
-
* @param instanceConfig The instance config.
|
|
11
|
-
* @returns The instance created and the factory for it.
|
|
12
|
-
*/
|
|
13
|
-
export async function initialiseAuthenticationGeneratorComponent(engineCore, context, instanceConfig) {
|
|
14
|
-
let component;
|
|
15
|
-
let instanceType;
|
|
16
|
-
if (instanceConfig.type === AuthenticationGeneratorComponentType.VerifiableCredential) {
|
|
17
|
-
component = new VerifiableCredentialAuthenticationGenerator({
|
|
18
|
-
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
19
|
-
identityConnectorType: engineCore.getRegisteredInstanceType("identityConnector"),
|
|
20
|
-
...instanceConfig.options
|
|
21
|
-
});
|
|
22
|
-
instanceType = "verifiable-credential-authentication-generator";
|
|
23
|
-
}
|
|
24
|
-
return {
|
|
25
|
-
component,
|
|
26
|
-
instanceType,
|
|
27
|
-
factory: AuthenticationGeneratorFactory
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=authenticationGenerator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authenticationGenerator.js","sourceRoot":"","sources":["../../../src/components/authenticationGenerator.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EACN,8BAA8B,EAE9B,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,2CAA2C,EAAE,MAAM,mCAAmC,CAAC;AAIhG,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAE/G;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,0CAA0C,CAC/D,UAAsC,EACtC,OAA0C,EAC1C,cAAsD;IAMtD,IAAI,SAA+C,CAAC;IACpD,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,oCAAoC,CAAC,oBAAoB,EAAE,CAAC;QACvF,SAAS,GAAG,IAAI,2CAA2C,CAAC;YAC3D,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,qBAAqB,EAAE,UAAU,CAAC,yBAAyB,CAAC,mBAAmB,CAAC;YAChF,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,mDAA+D,CAAC;IAC7E,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,8BAA8B;KACvC,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport {\n\tAuthenticationGeneratorFactory,\n\ttype IAuthenticationGenerator\n} from \"@twin.org/api-models\";\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { VerifiableCredentialAuthenticationGenerator } from \"@twin.org/identity-authentication\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport type { AuthenticationGeneratorComponentConfig } from \"../models/config/authenticationGeneratorComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { AuthenticationGeneratorComponentType } from \"../models/types/authenticationGeneratorComponentType.js\";\n\n/**\n * Initialise the authentication generator component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport async function initialiseAuthenticationGeneratorComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: AuthenticationGeneratorComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof AuthenticationGeneratorFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IAuthenticationGenerator | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === AuthenticationGeneratorComponentType.VerifiableCredential) {\n\t\tcomponent = new VerifiableCredentialAuthenticationGenerator({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\tidentityConnectorType: engineCore.getRegisteredInstanceType(\"identityConnector\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(VerifiableCredentialAuthenticationGenerator);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: AuthenticationGeneratorFactory\n\t};\n}\n"]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
import { ComponentFactory } from "@twin.org/core";
|
|
4
|
-
import { DataAccessPointService } from "@twin.org/rights-management-dap-service";
|
|
5
|
-
import { DataAccessPointRestClient } from "@twin.org/rights-management-rest-client";
|
|
6
|
-
import { RightsManagementDapComponentType } from "../models/types/rightsManagementDapComponentType.js";
|
|
7
|
-
/**
|
|
8
|
-
* Initialise the rights management DAP component.
|
|
9
|
-
* @param engineCore The engine core.
|
|
10
|
-
* @param context The context for the engine.
|
|
11
|
-
* @param instanceConfig The instance config.
|
|
12
|
-
* @returns The instance created and the factory for it.
|
|
13
|
-
*/
|
|
14
|
-
export async function initialiseRightsManagementDapComponent(engineCore, context, instanceConfig) {
|
|
15
|
-
let component;
|
|
16
|
-
let instanceType;
|
|
17
|
-
if (instanceConfig.type === RightsManagementDapComponentType.Service) {
|
|
18
|
-
component = new DataAccessPointService({
|
|
19
|
-
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
20
|
-
policyEnforcementPointComponentType: engineCore.getRegisteredInstanceType("rightsManagementPepComponent"),
|
|
21
|
-
...instanceConfig.options,
|
|
22
|
-
config: {
|
|
23
|
-
...instanceConfig.options?.config
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
instanceType = "data-access-point-service";
|
|
27
|
-
}
|
|
28
|
-
else if (instanceConfig.type === RightsManagementDapComponentType.RestClient) {
|
|
29
|
-
component = new DataAccessPointRestClient(instanceConfig.options);
|
|
30
|
-
instanceType = "data-access-point-rest-client";
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
component,
|
|
34
|
-
instanceType,
|
|
35
|
-
factory: ComponentFactory
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=rightsManagementDap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementDap.js","sourceRoot":"","sources":["../../../src/components/rightsManagementDap.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AAGnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAEjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAGpF,OAAO,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAEvG;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC3D,UAAsC,EACtC,OAA0C,EAC1C,cAAkD;IAMlD,IAAI,SAAgD,CAAC;IACrD,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,OAAO,EAAE,CAAC;QACtE,SAAS,GAAG,IAAI,sBAAsB,CAAC;YACtC,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,mCAAmC,EAAE,UAAU,CAAC,yBAAyB,CACxE,8BAA8B,CAC9B;YACD,GAAG,cAAc,CAAC,OAAO;YACzB,MAAM,EAAE;gBACP,GAAG,cAAc,CAAC,OAAO,EAAE,MAAM;aACjC;SACD,CAAC,CAAC;QACH,YAAY,8BAA0C,CAAC;IACxD,CAAC;SAAM,IAAI,cAAc,CAAC,IAAI,KAAK,gCAAgC,CAAC,UAAU,EAAE,CAAC;QAChF,SAAS,GAAG,IAAI,yBAAyB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAClE,YAAY,kCAA6C,CAAC;IAC3D,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,gBAAgB;KACzB,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { ComponentFactory, type IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport { DataAccessPointService } from \"@twin.org/rights-management-dap-service\";\nimport type { IDataAccessPointComponent } from \"@twin.org/rights-management-models\";\nimport { DataAccessPointRestClient } from \"@twin.org/rights-management-rest-client\";\nimport type { RightsManagementDapComponentConfig } from \"../models/config/rightsManagementDapComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementDapComponentType } from \"../models/types/rightsManagementDapComponentType.js\";\n\n/**\n * Initialise the rights management DAP component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport async function initialiseRightsManagementDapComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementDapComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof ComponentFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IDataAccessPointComponent | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementDapComponentType.Service) {\n\t\tcomponent = new DataAccessPointService({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\tpolicyEnforcementPointComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\"rightsManagementPepComponent\"\n\t\t\t),\n\t\t\t...instanceConfig.options,\n\t\t\tconfig: {\n\t\t\t\t...instanceConfig.options?.config\n\t\t\t}\n\t\t});\n\t\tinstanceType = nameofKebabCase(DataAccessPointService);\n\t} else if (instanceConfig.type === RightsManagementDapComponentType.RestClient) {\n\t\tcomponent = new DataAccessPointRestClient(instanceConfig.options);\n\t\tinstanceType = nameofKebabCase(DataAccessPointRestClient);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
import { ComponentFactory } from "@twin.org/core";
|
|
4
|
-
import { DataAccessRequestPointService } from "@twin.org/rights-management-dap-service";
|
|
5
|
-
import { RightsManagementDarpComponentType } from "../models/types/rightsManagementDarpComponentType.js";
|
|
6
|
-
/**
|
|
7
|
-
* Initialise the rights management DARP component.
|
|
8
|
-
* @param engineCore The engine core.
|
|
9
|
-
* @param context The context for the engine.
|
|
10
|
-
* @param instanceConfig The instance config.
|
|
11
|
-
* @returns The instance created and the factory for it.
|
|
12
|
-
*/
|
|
13
|
-
export async function initialiseRightsManagementDarpComponent(engineCore, context, instanceConfig) {
|
|
14
|
-
let component;
|
|
15
|
-
let instanceType;
|
|
16
|
-
if (instanceConfig.type === RightsManagementDarpComponentType.Service) {
|
|
17
|
-
component = new DataAccessRequestPointService({
|
|
18
|
-
loggingComponentType: engineCore.getRegisteredInstanceType("loggingComponent"),
|
|
19
|
-
...instanceConfig.options
|
|
20
|
-
});
|
|
21
|
-
instanceType = "data-access-request-point-service";
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
component,
|
|
25
|
-
instanceType,
|
|
26
|
-
factory: ComponentFactory
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=rightsManagementDarp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementDarp.js","sourceRoot":"","sources":["../../../src/components/rightsManagementDarp.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,gBAAgB,EAAmB,MAAM,gBAAgB,CAAC;AAGnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAIxF,OAAO,EAAE,iCAAiC,EAAE,MAAM,sDAAsD,CAAC;AAEzG;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,uCAAuC,CAC5D,UAAsC,EACtC,OAA0C,EAC1C,cAAmD;IAMnD,IAAI,SAAuD,CAAC;IAC5D,IAAI,YAAgC,CAAC;IAErC,IAAI,cAAc,CAAC,IAAI,KAAK,iCAAiC,CAAC,OAAO,EAAE,CAAC;QACvE,SAAS,GAAG,IAAI,6BAA6B,CAAC;YAC7C,oBAAoB,EAAE,UAAU,CAAC,yBAAyB,CAAC,kBAAkB,CAAC;YAC9E,GAAG,cAAc,CAAC,OAAO;SACzB,CAAC,CAAC;QACH,YAAY,sCAAiD,CAAC;IAC/D,CAAC;IAED,OAAO;QACN,SAAS;QACT,YAAY;QACZ,OAAO,EAAE,gBAAgB;KACzB,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { ComponentFactory, type IComponent } from \"@twin.org/core\";\nimport type { IEngineCore, IEngineCoreContext } from \"@twin.org/engine-models\";\nimport { nameofKebabCase } from \"@twin.org/nameof\";\nimport { DataAccessRequestPointService } from \"@twin.org/rights-management-dap-service\";\nimport type { IDataAccessRequestPointComponent } from \"@twin.org/rights-management-models\";\nimport type { RightsManagementDarpComponentConfig } from \"../models/config/rightsManagementDarpComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementDarpComponentType } from \"../models/types/rightsManagementDarpComponentType.js\";\n\n/**\n * Initialise the rights management DARP component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport async function initialiseRightsManagementDarpComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementDarpComponentConfig\n): Promise<{\n\tinstanceType?: string;\n\tfactory?: typeof ComponentFactory;\n\tcomponent?: IComponent;\n}> {\n\tlet component: IDataAccessRequestPointComponent | undefined;\n\tlet instanceType: string | undefined;\n\n\tif (instanceConfig.type === RightsManagementDarpComponentType.Service) {\n\t\tcomponent = new DataAccessRequestPointService({\n\t\t\tloggingComponentType: engineCore.getRegisteredInstanceType(\"loggingComponent\"),\n\t\t\t...instanceConfig.options\n\t\t});\n\t\tinstanceType = nameofKebabCase(DataAccessRequestPointService);\n\t}\n\n\treturn {\n\t\tcomponent,\n\t\tinstanceType,\n\t\tfactory: ComponentFactory\n\t};\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authenticationGeneratorComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/authenticationGeneratorComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IVerifiableCredentialAuthenticationGeneratorConstructorOptions } from \"@twin.org/identity-authentication\";\nimport type { AuthenticationGeneratorComponentType } from \"../types/authenticationGeneratorComponentType.js\";\n\n/**\n * Authentication generator component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type AuthenticationGeneratorComponentConfig = {\n\ttype: typeof AuthenticationGeneratorComponentType.VerifiableCredential;\n\toptions: IVerifiableCredentialAuthenticationGeneratorConstructorOptions;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backgroundTaskConnectorConfig.js","sourceRoot":"","sources":["../../../../src/models/config/backgroundTaskConnectorConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IEntityStorageBackgroundTaskConnectorConstructorOptions } from \"@twin.org/background-task-connector-entity-storage\";\nimport type { BackgroundTaskConnectorType } from \"../types/backgroundTaskConnectorType.js\";\n\n/**\n * Background task connector config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type BackgroundTaskConnectorConfig = {\n\ttype: typeof BackgroundTaskConnectorType.EntityStorage;\n\toptions?: IEntityStorageBackgroundTaskConnectorConstructorOptions;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementDapComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementDapComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IBaseRestClientConfig } from \"@twin.org/api-models\";\nimport type { IEngineModuleConfig } from \"@twin.org/engine-models\";\nimport type { IDataAccessPointServiceConstructorOptions } from \"@twin.org/rights-management-dap-service\";\nimport type { RightsManagementDapComponentType } from \"../types/rightsManagementDapComponentType.js\";\n\n/**\n * Rights management DAP component config types.\n */\nexport type RightsManagementDapComponentConfig =\n\t| {\n\t\t\ttype: typeof RightsManagementDapComponentType.Service;\n\t\t\toptions?: IDataAccessPointServiceConstructorOptions & {\n\t\t\t\tnegotiatorModulesConfig?: IEngineModuleConfig[];\n\t\t\t};\n\t }\n\t| {\n\t\t\ttype: typeof RightsManagementDapComponentType.RestClient;\n\t\t\toptions: IBaseRestClientConfig;\n\t };\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementDarpComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementDarpComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IEngineModuleConfig } from \"@twin.org/engine-models\";\nimport type { IDataAccessRequestPointServiceConstructorOptions } from \"@twin.org/rights-management-dap-service\";\nimport type { RightsManagementDarpComponentType } from \"../types/rightsManagementDarpComponentType.js\";\n\n/**\n * Rights management DARP component config types.\n */\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\nexport type RightsManagementDarpComponentConfig = {\n\ttype: typeof RightsManagementDarpComponentType.Service;\n\toptions: IDataAccessRequestPointServiceConstructorOptions & {\n\t\tnegotiatorModulesConfig?: IEngineModuleConfig[];\n\t};\n};\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
/**
|
|
4
|
-
* Authentication generator component types.
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const AuthenticationGeneratorComponentType = {
|
|
8
|
-
/**
|
|
9
|
-
* Verifiable Credential.
|
|
10
|
-
*/
|
|
11
|
-
VerifiableCredential: "verifiable-credential"
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=authenticationGeneratorComponentType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authenticationGeneratorComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/authenticationGeneratorComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oCAAoC,GAAG;IACnD;;OAEG;IACH,oBAAoB,EAAE,uBAAuB;CACpC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Authentication generator component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuthenticationGeneratorComponentType = {\n\t/**\n\t * Verifiable Credential.\n\t */\n\tVerifiableCredential: \"verifiable-credential\"\n} as const;\n\n/**\n * Authentication generator component types.\n */\nexport type AuthenticationGeneratorComponentType =\n\t(typeof AuthenticationGeneratorComponentType)[keyof typeof AuthenticationGeneratorComponentType];\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
/**
|
|
4
|
-
* Background task connector types.
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const BackgroundTaskConnectorType = {
|
|
8
|
-
/**
|
|
9
|
-
* Entity storage.
|
|
10
|
-
*/
|
|
11
|
-
EntityStorage: "entity-storage"
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=backgroundTaskConnectorType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backgroundTaskConnectorType.js","sourceRoot":"","sources":["../../../../src/models/types/backgroundTaskConnectorType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C;;OAEG;IACH,aAAa,EAAE,gBAAgB;CACtB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Background task connector types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const BackgroundTaskConnectorType = {\n\t/**\n\t * Entity storage.\n\t */\n\tEntityStorage: \"entity-storage\"\n} as const;\n\n/**\n * Background task connector types.\n */\nexport type BackgroundTaskConnectorType =\n\t(typeof BackgroundTaskConnectorType)[keyof typeof BackgroundTaskConnectorType];\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
/**
|
|
4
|
-
* Rights management DAP component types.
|
|
5
|
-
*/
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const RightsManagementDapComponentType = {
|
|
8
|
-
/**
|
|
9
|
-
* Service.
|
|
10
|
-
*/
|
|
11
|
-
Service: "service",
|
|
12
|
-
/**
|
|
13
|
-
* REST client.
|
|
14
|
-
*/
|
|
15
|
-
RestClient: "rest-client"
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=rightsManagementDapComponentType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementDapComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementDapComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC/C;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,UAAU,EAAE,aAAa;CAChB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management DAP component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementDapComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\",\n\n\t/**\n\t * REST client.\n\t */\n\tRestClient: \"rest-client\"\n} as const;\n\n/**\n * Rights management DAP component types.\n */\nexport type RightsManagementDapComponentType =\n\t(typeof RightsManagementDapComponentType)[keyof typeof RightsManagementDapComponentType];\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementDarpComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementDarpComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAChD;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management DARP component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementDarpComponentType = {\n\t/**\n\t * Service.\n\t */\n\tService: \"service\"\n} as const;\n\n/**\n * Rights management DARP component types.\n */\nexport type RightsManagementDarpComponentType =\n\t(typeof RightsManagementDarpComponentType)[keyof typeof RightsManagementDarpComponentType];\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AuthenticationGeneratorFactory } from "@twin.org/api-models";
|
|
2
|
-
import type { IComponent } from "@twin.org/core";
|
|
3
|
-
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
4
|
-
import type { AuthenticationGeneratorComponentConfig } from "../models/config/authenticationGeneratorComponentConfig.js";
|
|
5
|
-
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
6
|
-
/**
|
|
7
|
-
* Initialise the authentication generator component.
|
|
8
|
-
* @param engineCore The engine core.
|
|
9
|
-
* @param context The context for the engine.
|
|
10
|
-
* @param instanceConfig The instance config.
|
|
11
|
-
* @returns The instance created and the factory for it.
|
|
12
|
-
*/
|
|
13
|
-
export declare function initialiseAuthenticationGeneratorComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: AuthenticationGeneratorComponentConfig): Promise<{
|
|
14
|
-
instanceType?: string;
|
|
15
|
-
factory?: typeof AuthenticationGeneratorFactory;
|
|
16
|
-
component?: IComponent;
|
|
17
|
-
}>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
2
|
-
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
-
import type { RightsManagementDapComponentConfig } from "../models/config/rightsManagementDapComponentConfig.js";
|
|
4
|
-
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
5
|
-
/**
|
|
6
|
-
* Initialise the rights management DAP component.
|
|
7
|
-
* @param engineCore The engine core.
|
|
8
|
-
* @param context The context for the engine.
|
|
9
|
-
* @param instanceConfig The instance config.
|
|
10
|
-
* @returns The instance created and the factory for it.
|
|
11
|
-
*/
|
|
12
|
-
export declare function initialiseRightsManagementDapComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: RightsManagementDapComponentConfig): Promise<{
|
|
13
|
-
instanceType?: string;
|
|
14
|
-
factory?: typeof ComponentFactory;
|
|
15
|
-
component?: IComponent;
|
|
16
|
-
}>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ComponentFactory, type IComponent } from "@twin.org/core";
|
|
2
|
-
import type { IEngineCore, IEngineCoreContext } from "@twin.org/engine-models";
|
|
3
|
-
import type { RightsManagementDarpComponentConfig } from "../models/config/rightsManagementDarpComponentConfig.js";
|
|
4
|
-
import type { IEngineConfig } from "../models/IEngineConfig.js";
|
|
5
|
-
/**
|
|
6
|
-
* Initialise the rights management DARP component.
|
|
7
|
-
* @param engineCore The engine core.
|
|
8
|
-
* @param context The context for the engine.
|
|
9
|
-
* @param instanceConfig The instance config.
|
|
10
|
-
* @returns The instance created and the factory for it.
|
|
11
|
-
*/
|
|
12
|
-
export declare function initialiseRightsManagementDarpComponent(engineCore: IEngineCore<IEngineConfig>, context: IEngineCoreContext<IEngineConfig>, instanceConfig: RightsManagementDarpComponentConfig): Promise<{
|
|
13
|
-
instanceType?: string;
|
|
14
|
-
factory?: typeof ComponentFactory;
|
|
15
|
-
component?: IComponent;
|
|
16
|
-
}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IVerifiableCredentialAuthenticationGeneratorConstructorOptions } from "@twin.org/identity-authentication";
|
|
2
|
-
import type { AuthenticationGeneratorComponentType } from "../types/authenticationGeneratorComponentType.js";
|
|
3
|
-
/**
|
|
4
|
-
* Authentication generator component config types.
|
|
5
|
-
*/
|
|
6
|
-
export type AuthenticationGeneratorComponentConfig = {
|
|
7
|
-
type: typeof AuthenticationGeneratorComponentType.VerifiableCredential;
|
|
8
|
-
options: IVerifiableCredentialAuthenticationGeneratorConstructorOptions;
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IEntityStorageBackgroundTaskConnectorConstructorOptions } from "@twin.org/background-task-connector-entity-storage";
|
|
2
|
-
import type { BackgroundTaskConnectorType } from "../types/backgroundTaskConnectorType.js";
|
|
3
|
-
/**
|
|
4
|
-
* Background task connector config types.
|
|
5
|
-
*/
|
|
6
|
-
export type BackgroundTaskConnectorConfig = {
|
|
7
|
-
type: typeof BackgroundTaskConnectorType.EntityStorage;
|
|
8
|
-
options?: IEntityStorageBackgroundTaskConnectorConstructorOptions;
|
|
9
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { IBaseRestClientConfig } from "@twin.org/api-models";
|
|
2
|
-
import type { IEngineModuleConfig } from "@twin.org/engine-models";
|
|
3
|
-
import type { IDataAccessPointServiceConstructorOptions } from "@twin.org/rights-management-dap-service";
|
|
4
|
-
import type { RightsManagementDapComponentType } from "../types/rightsManagementDapComponentType.js";
|
|
5
|
-
/**
|
|
6
|
-
* Rights management DAP component config types.
|
|
7
|
-
*/
|
|
8
|
-
export type RightsManagementDapComponentConfig = {
|
|
9
|
-
type: typeof RightsManagementDapComponentType.Service;
|
|
10
|
-
options?: IDataAccessPointServiceConstructorOptions & {
|
|
11
|
-
negotiatorModulesConfig?: IEngineModuleConfig[];
|
|
12
|
-
};
|
|
13
|
-
} | {
|
|
14
|
-
type: typeof RightsManagementDapComponentType.RestClient;
|
|
15
|
-
options: IBaseRestClientConfig;
|
|
16
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { IEngineModuleConfig } from "@twin.org/engine-models";
|
|
2
|
-
import type { IDataAccessRequestPointServiceConstructorOptions } from "@twin.org/rights-management-dap-service";
|
|
3
|
-
import type { RightsManagementDarpComponentType } from "../types/rightsManagementDarpComponentType.js";
|
|
4
|
-
/**
|
|
5
|
-
* Rights management DARP component config types.
|
|
6
|
-
*/
|
|
7
|
-
export type RightsManagementDarpComponentConfig = {
|
|
8
|
-
type: typeof RightsManagementDarpComponentType.Service;
|
|
9
|
-
options: IDataAccessRequestPointServiceConstructorOptions & {
|
|
10
|
-
negotiatorModulesConfig?: IEngineModuleConfig[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Authentication generator component types.
|
|
3
|
-
*/
|
|
4
|
-
export declare const AuthenticationGeneratorComponentType: {
|
|
5
|
-
/**
|
|
6
|
-
* Verifiable Credential.
|
|
7
|
-
*/
|
|
8
|
-
readonly VerifiableCredential: "verifiable-credential";
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Authentication generator component types.
|
|
12
|
-
*/
|
|
13
|
-
export type AuthenticationGeneratorComponentType = (typeof AuthenticationGeneratorComponentType)[keyof typeof AuthenticationGeneratorComponentType];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Background task connector types.
|
|
3
|
-
*/
|
|
4
|
-
export declare const BackgroundTaskConnectorType: {
|
|
5
|
-
/**
|
|
6
|
-
* Entity storage.
|
|
7
|
-
*/
|
|
8
|
-
readonly EntityStorage: "entity-storage";
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Background task connector types.
|
|
12
|
-
*/
|
|
13
|
-
export type BackgroundTaskConnectorType = (typeof BackgroundTaskConnectorType)[keyof typeof BackgroundTaskConnectorType];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rights management DAP component types.
|
|
3
|
-
*/
|
|
4
|
-
export declare const RightsManagementDapComponentType: {
|
|
5
|
-
/**
|
|
6
|
-
* Service.
|
|
7
|
-
*/
|
|
8
|
-
readonly Service: "service";
|
|
9
|
-
/**
|
|
10
|
-
* REST client.
|
|
11
|
-
*/
|
|
12
|
-
readonly RestClient: "rest-client";
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Rights management DAP component types.
|
|
16
|
-
*/
|
|
17
|
-
export type RightsManagementDapComponentType = (typeof RightsManagementDapComponentType)[keyof typeof RightsManagementDapComponentType];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rights management DARP component types.
|
|
3
|
-
*/
|
|
4
|
-
export declare const RightsManagementDarpComponentType: {
|
|
5
|
-
/**
|
|
6
|
-
* Service.
|
|
7
|
-
*/
|
|
8
|
-
readonly Service: "service";
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Rights management DARP component types.
|
|
12
|
-
*/
|
|
13
|
-
export type RightsManagementDarpComponentType = (typeof RightsManagementDarpComponentType)[keyof typeof RightsManagementDarpComponentType];
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Function: initialiseAuthenticationGeneratorComponent()
|
|
2
|
-
|
|
3
|
-
> **initialiseAuthenticationGeneratorComponent**(`engineCore`, `context`, `instanceConfig`): `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IAuthenticationGenerator`\>; `component?`: `IComponent`; \}\>
|
|
4
|
-
|
|
5
|
-
Initialise the authentication generator component.
|
|
6
|
-
|
|
7
|
-
## Parameters
|
|
8
|
-
|
|
9
|
-
### engineCore
|
|
10
|
-
|
|
11
|
-
`IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
12
|
-
|
|
13
|
-
The engine core.
|
|
14
|
-
|
|
15
|
-
### context
|
|
16
|
-
|
|
17
|
-
`IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
18
|
-
|
|
19
|
-
The context for the engine.
|
|
20
|
-
|
|
21
|
-
### instanceConfig
|
|
22
|
-
|
|
23
|
-
[`AuthenticationGeneratorComponentConfig`](../type-aliases/AuthenticationGeneratorComponentConfig.md)
|
|
24
|
-
|
|
25
|
-
The instance config.
|
|
26
|
-
|
|
27
|
-
## Returns
|
|
28
|
-
|
|
29
|
-
`Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IAuthenticationGenerator`\>; `component?`: `IComponent`; \}\>
|
|
30
|
-
|
|
31
|
-
The instance created and the factory for it.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Function: initialiseBackgroundTaskConnector()
|
|
2
|
-
|
|
3
|
-
> **initialiseBackgroundTaskConnector**(`engineCore`, `context`, `instanceConfig`): `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IBackgroundTaskConnector`\>; `component?`: `IComponent`; \}\>
|
|
4
|
-
|
|
5
|
-
Initialise a background task connector.
|
|
6
|
-
|
|
7
|
-
## Parameters
|
|
8
|
-
|
|
9
|
-
### engineCore
|
|
10
|
-
|
|
11
|
-
`IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
12
|
-
|
|
13
|
-
The engine core.
|
|
14
|
-
|
|
15
|
-
### context
|
|
16
|
-
|
|
17
|
-
`IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
18
|
-
|
|
19
|
-
The context for the engine.
|
|
20
|
-
|
|
21
|
-
### instanceConfig
|
|
22
|
-
|
|
23
|
-
[`BackgroundTaskConnectorConfig`](../type-aliases/BackgroundTaskConnectorConfig.md)
|
|
24
|
-
|
|
25
|
-
The instance config.
|
|
26
|
-
|
|
27
|
-
## Returns
|
|
28
|
-
|
|
29
|
-
`Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IBackgroundTaskConnector`\>; `component?`: `IComponent`; \}\>
|
|
30
|
-
|
|
31
|
-
The instance created and the factory for it.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Function: initialiseRightsManagementDapComponent()
|
|
2
|
-
|
|
3
|
-
> **initialiseRightsManagementDapComponent**(`engineCore`, `context`, `instanceConfig`): `Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IComponent`\>; `component?`: `IComponent`; \}\>
|
|
4
|
-
|
|
5
|
-
Initialise the rights management DAP component.
|
|
6
|
-
|
|
7
|
-
## Parameters
|
|
8
|
-
|
|
9
|
-
### engineCore
|
|
10
|
-
|
|
11
|
-
`IEngineCore`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
12
|
-
|
|
13
|
-
The engine core.
|
|
14
|
-
|
|
15
|
-
### context
|
|
16
|
-
|
|
17
|
-
`IEngineCoreContext`\<[`IEngineConfig`](../interfaces/IEngineConfig.md)\>
|
|
18
|
-
|
|
19
|
-
The context for the engine.
|
|
20
|
-
|
|
21
|
-
### instanceConfig
|
|
22
|
-
|
|
23
|
-
[`RightsManagementDapComponentConfig`](../type-aliases/RightsManagementDapComponentConfig.md)
|
|
24
|
-
|
|
25
|
-
The instance config.
|
|
26
|
-
|
|
27
|
-
## Returns
|
|
28
|
-
|
|
29
|
-
`Promise`\<\{ `instanceType?`: `string`; `factory?`: `Factory`\<`IComponent`\>; `component?`: `IComponent`; \}\>
|
|
30
|
-
|
|
31
|
-
The instance created and the factory for it.
|