@twin.org/engine-types 0.0.2-next.2 → 0.0.2-next.20
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/cjs/index.cjs +1310 -1098
- package/dist/esm/index.mjs +1312 -1124
- package/dist/types/components/attestation.d.ts +14 -8
- package/dist/types/components/auditableItemGraph.d.ts +7 -4
- package/dist/types/components/auditableItemStream.d.ts +7 -4
- package/dist/types/components/authenticationGenerator.d.ts +17 -0
- package/dist/types/components/backgroundTask.d.ts +8 -4
- package/dist/types/components/blobStorage.d.ts +14 -8
- package/dist/types/components/dataProcessing.d.ts +20 -12
- package/dist/types/components/dataSpaceConnector.d.ts +16 -0
- package/dist/types/components/documentManagement.d.ts +7 -4
- package/dist/types/components/entityStorage.d.ts +10 -6
- package/dist/types/components/eventBus.d.ts +14 -8
- package/dist/types/components/faucet.d.ts +8 -4
- package/dist/types/components/federatedCatalogue.d.ts +7 -4
- package/dist/types/components/identity.d.ts +14 -8
- package/dist/types/components/identityProfile.d.ts +14 -8
- package/dist/types/components/identityResolver.d.ts +14 -8
- package/dist/types/components/immutableProof.d.ts +7 -4
- package/dist/types/components/logging.d.ts +14 -8
- package/dist/types/components/messaging.d.ts +39 -16
- package/dist/types/components/nft.d.ts +14 -8
- package/dist/types/components/rightsManagementDap.d.ts +16 -0
- package/dist/types/components/rightsManagementDarp.d.ts +16 -0
- package/dist/types/components/rightsManagementPap.d.ts +7 -4
- package/dist/types/components/rightsManagementPdp.d.ts +16 -0
- package/dist/types/components/rightsManagementPep.d.ts +16 -0
- package/dist/types/components/rightsManagementPip.d.ts +16 -0
- package/dist/types/components/rightsManagementPmp.d.ts +16 -0
- package/dist/types/components/rightsManagementPnap.d.ts +16 -0
- package/dist/types/components/rightsManagementPnp.d.ts +16 -0
- package/dist/types/components/rightsManagementPxp.d.ts +16 -0
- package/dist/types/components/synchronisedStorage.d.ts +16 -0
- package/dist/types/components/taskScheduler.d.ts +7 -4
- package/dist/types/components/telemetry.d.ts +14 -8
- package/dist/types/components/vault.d.ts +8 -4
- package/dist/types/components/verifiableStorage.d.ts +14 -8
- package/dist/types/components/wallet.d.ts +8 -14
- package/dist/types/index.d.ts +39 -3
- package/dist/types/models/IEngineConfig.d.ts +67 -7
- package/dist/types/models/config/authenticationGeneratorComponentConfig.d.ts +9 -0
- package/dist/types/models/config/dataSpaceConnectorComponentConfig.d.ts +17 -0
- package/dist/types/models/config/entityStorageConnectorConfig.d.ts +4 -0
- package/dist/types/models/config/messagingAdminComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementDapComponentConfig.d.ts +16 -0
- package/dist/types/models/config/rightsManagementDarpComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPapComponentConfig.d.ts +6 -2
- package/dist/types/models/config/rightsManagementPdpComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPepComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPipComponentConfig.d.ts +12 -0
- package/dist/types/models/config/rightsManagementPmpComponentConfig.d.ts +9 -0
- package/dist/types/models/config/rightsManagementPnapComponentConfig.d.ts +13 -0
- package/dist/types/models/config/rightsManagementPnpComponentConfig.d.ts +17 -0
- package/dist/types/models/config/rightsManagementPxpComponentConfig.d.ts +12 -0
- package/dist/types/models/config/synchronisedStorageComponentConfig.d.ts +13 -0
- package/dist/types/models/types/authenticationGeneratorComponentType.d.ts +13 -0
- package/dist/types/models/types/dataSpaceConnectorComponentType.d.ts +21 -0
- package/dist/types/models/types/entityStorageConnectorType.d.ts +4 -0
- package/dist/types/models/types/messagingAdminComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementDapComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementDarpComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPapComponentType.d.ts +4 -0
- package/dist/types/models/types/rightsManagementPdpComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPepComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPipComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPmpComponentType.d.ts +13 -0
- package/dist/types/models/types/rightsManagementPnapComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPnpComponentType.d.ts +17 -0
- package/dist/types/models/types/rightsManagementPxpComponentType.d.ts +13 -0
- package/dist/types/models/types/synchronisedStorageComponentType.d.ts +17 -0
- package/dist/types/utils/engineTypeHelper.d.ts +19 -0
- package/docs/changelog.md +261 -0
- package/docs/reference/classes/EngineTypeHelper.md +61 -0
- package/docs/reference/functions/initialiseAttestationComponent.md +3 -13
- package/docs/reference/functions/initialiseAttestationConnector.md +3 -13
- package/docs/reference/functions/initialiseAuditableItemGraphComponent.md +3 -13
- package/docs/reference/functions/initialiseAuditableItemStreamComponent.md +3 -13
- package/docs/reference/functions/initialiseAuthenticationGeneratorComponent.md +31 -0
- package/docs/reference/functions/initialiseBackgroundTaskConnector.md +3 -13
- package/docs/reference/functions/initialiseBlobStorageComponent.md +3 -13
- package/docs/reference/functions/initialiseBlobStorageConnector.md +3 -13
- package/docs/reference/functions/initialiseDataConverterConnector.md +3 -13
- package/docs/reference/functions/initialiseDataExtractorConnector.md +3 -13
- package/docs/reference/functions/initialiseDataProcessingComponent.md +3 -13
- package/docs/reference/functions/initialiseDataSpaceConnectorComponent.md +31 -0
- package/docs/reference/functions/initialiseDocumentManagementComponent.md +3 -13
- package/docs/reference/functions/initialiseEntityStorageComponent.md +3 -13
- package/docs/reference/functions/initialiseEntityStorageConnector.md +5 -3
- package/docs/reference/functions/initialiseEventBusComponent.md +3 -13
- package/docs/reference/functions/initialiseEventBusConnector.md +3 -13
- package/docs/reference/functions/initialiseFaucetConnector.md +3 -13
- package/docs/reference/functions/initialiseFederatedCatalogueComponent.md +3 -13
- package/docs/reference/functions/initialiseIdentityComponent.md +3 -13
- package/docs/reference/functions/initialiseIdentityConnector.md +3 -13
- package/docs/reference/functions/initialiseIdentityProfileComponent.md +3 -13
- package/docs/reference/functions/initialiseIdentityProfileConnector.md +3 -13
- package/docs/reference/functions/initialiseIdentityResolverComponent.md +3 -13
- package/docs/reference/functions/initialiseIdentityResolverConnector.md +3 -13
- package/docs/reference/functions/initialiseImmutableProofComponent.md +3 -13
- package/docs/reference/functions/initialiseLoggingComponent.md +3 -13
- package/docs/reference/functions/initialiseLoggingConnector.md +3 -13
- package/docs/reference/functions/initialiseMessagingAdminComponent.md +31 -0
- package/docs/reference/functions/initialiseMessagingComponent.md +3 -13
- package/docs/reference/functions/initialiseMessagingEmailConnector.md +3 -13
- package/docs/reference/functions/initialiseMessagingPushNotificationConnector.md +3 -13
- package/docs/reference/functions/initialiseMessagingSmsConnector.md +3 -13
- package/docs/reference/functions/initialiseNftComponent.md +3 -13
- package/docs/reference/functions/initialiseNftConnector.md +3 -13
- package/docs/reference/functions/initialiseRightsManagementDapComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementDarpComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPapComponent.md +3 -13
- package/docs/reference/functions/initialiseRightsManagementPdpComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPepComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPipComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPmpComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPnapComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPnpComponent.md +31 -0
- package/docs/reference/functions/initialiseRightsManagementPxpComponent.md +31 -0
- package/docs/reference/functions/initialiseSynchronisedStorageComponent.md +31 -0
- package/docs/reference/functions/initialiseTaskSchedulerComponent.md +3 -13
- package/docs/reference/functions/initialiseTelemetryComponent.md +3 -13
- package/docs/reference/functions/initialiseTelemetryConnector.md +3 -13
- package/docs/reference/functions/initialiseVaultConnector.md +3 -13
- package/docs/reference/functions/initialiseVerifiableStorageComponent.md +3 -13
- package/docs/reference/functions/initialiseVerifiableStorageConnector.md +3 -13
- package/docs/reference/functions/initialiseWalletConnector.md +3 -13
- package/docs/reference/index.md +56 -5
- package/docs/reference/interfaces/IEngineConfig.md +81 -9
- package/docs/reference/type-aliases/AuthenticationGeneratorComponentConfig.md +17 -0
- package/docs/reference/type-aliases/AuthenticationGeneratorComponentType.md +5 -0
- package/docs/reference/type-aliases/DataSpaceConnectorComponentConfig.md +5 -0
- package/docs/reference/type-aliases/DataSpaceConnectorComponentType.md +5 -0
- package/docs/reference/type-aliases/EntityStorageConnectorConfig.md +1 -1
- package/docs/reference/type-aliases/MessagingAdminComponentConfig.md +17 -0
- package/docs/reference/type-aliases/MessagingAdminComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementDapComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementDapComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementDarpComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementDarpComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPapComponentConfig.md +1 -13
- package/docs/reference/type-aliases/RightsManagementPdpComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementPdpComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPepComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementPepComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPipComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementPipComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPmpComponentConfig.md +17 -0
- package/docs/reference/type-aliases/RightsManagementPmpComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPnapComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPnapComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPnpComponentConfig.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPnpComponentType.md +5 -0
- package/docs/reference/type-aliases/RightsManagementPxpComponentConfig.md +23 -0
- package/docs/reference/type-aliases/RightsManagementPxpComponentType.md +5 -0
- package/docs/reference/type-aliases/SynchronisedStorageComponentConfig.md +5 -0
- package/docs/reference/type-aliases/SynchronisedStorageComponentType.md +5 -0
- package/docs/reference/variables/AttestationComponentType.md +1 -1
- package/docs/reference/variables/AttestationConnectorType.md +1 -1
- package/docs/reference/variables/AuditableItemGraphComponentType.md +1 -1
- package/docs/reference/variables/AuditableItemStreamComponentType.md +1 -1
- package/docs/reference/variables/AuthenticationGeneratorComponentType.md +13 -0
- package/docs/reference/variables/BackgroundTaskConnectorType.md +1 -1
- package/docs/reference/variables/BlobStorageComponentType.md +1 -1
- package/docs/reference/variables/BlobStorageConnectorType.md +1 -1
- package/docs/reference/variables/DataConverterConnectorType.md +1 -1
- package/docs/reference/variables/DataExtractorConnectorType.md +1 -1
- package/docs/reference/variables/DataProcessingComponentType.md +1 -1
- package/docs/reference/variables/DataSpaceConnectorComponentType.md +25 -0
- package/docs/reference/variables/DltConfigType.md +1 -1
- package/docs/reference/variables/DocumentManagementComponentType.md +1 -1
- package/docs/reference/variables/EntityStorageComponentType.md +1 -1
- package/docs/reference/variables/EntityStorageConnectorType.md +7 -1
- package/docs/reference/variables/EventBusComponentType.md +1 -1
- package/docs/reference/variables/EventBusConnectorType.md +1 -1
- package/docs/reference/variables/FaucetConnectorType.md +1 -1
- package/docs/reference/variables/FederatedCatalogueComponentType.md +1 -1
- package/docs/reference/variables/IdentityComponentType.md +1 -1
- package/docs/reference/variables/IdentityConnectorType.md +1 -1
- package/docs/reference/variables/IdentityProfileComponentType.md +1 -1
- package/docs/reference/variables/IdentityProfileConnectorType.md +1 -1
- package/docs/reference/variables/IdentityResolverComponentType.md +1 -1
- package/docs/reference/variables/IdentityResolverConnectorType.md +1 -1
- package/docs/reference/variables/ImmutableProofComponentType.md +1 -1
- package/docs/reference/variables/LoggingComponentType.md +1 -1
- package/docs/reference/variables/LoggingConnectorType.md +1 -1
- package/docs/reference/variables/MessagingAdminComponentType.md +13 -0
- package/docs/reference/variables/MessagingComponentType.md +1 -1
- package/docs/reference/variables/MessagingEmailConnectorType.md +1 -1
- package/docs/reference/variables/MessagingPushNotificationConnectorType.md +1 -1
- package/docs/reference/variables/MessagingSmsConnectorType.md +1 -1
- package/docs/reference/variables/NftComponentType.md +1 -1
- package/docs/reference/variables/NftConnectorType.md +1 -1
- package/docs/reference/variables/RightsManagementDapComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementDarpComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPapComponentType.md +7 -1
- package/docs/reference/variables/RightsManagementPdpComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPepComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPipComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPmpComponentType.md +13 -0
- package/docs/reference/variables/RightsManagementPnapComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPnpComponentType.md +19 -0
- package/docs/reference/variables/RightsManagementPxpComponentType.md +13 -0
- package/docs/reference/variables/{RightsManagementComponentType.md → SynchronisedStorageComponentType.md} +4 -4
- package/docs/reference/variables/TaskSchedulerComponentType.md +1 -1
- package/docs/reference/variables/TelemetryComponentType.md +1 -1
- package/docs/reference/variables/TelemetryConnectorType.md +1 -1
- package/docs/reference/variables/VaultConnectorType.md +1 -1
- package/docs/reference/variables/VerifiableStorageComponentType.md +1 -1
- package/docs/reference/variables/VerifiableStorageConnectorType.md +1 -1
- package/docs/reference/variables/WalletConnectorType.md +1 -1
- package/package.json +28 -2
- package/dist/types/components/rightsManagement.d.ts +0 -13
- package/dist/types/models/config/rightsManagementComponentConfig.d.ts +0 -13
- package/dist/types/models/types/rightsManagementComponentType.d.ts +0 -17
- package/docs/reference/functions/initialiseRightsManagementComponent.md +0 -41
- package/docs/reference/functions/initialiseWalletStorage.md +0 -41
- package/docs/reference/type-aliases/RightsManagementComponentConfig.md +0 -5
- package/docs/reference/type-aliases/RightsManagementComponentType.md +0 -5
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IVerifiableCredentialAuthenticationGeneratorConstructorOptions } from "@twin.org/identity-authentication";
|
|
2
|
+
import type { AuthenticationGeneratorComponentType } from "../types/authenticationGeneratorComponentType";
|
|
3
|
+
/**
|
|
4
|
+
* Authentication generator component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type AuthenticationGeneratorComponentConfig = {
|
|
7
|
+
type: typeof AuthenticationGeneratorComponentType.VerifiableCredential;
|
|
8
|
+
options: IVerifiableCredentialAuthenticationGeneratorConstructorOptions;
|
|
9
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IBaseRestClientConfig } from "@twin.org/api-models";
|
|
2
|
+
import type { IDataSpaceConnectorServiceConstructorOptions } from "@twin.org/data-space-connector-service";
|
|
3
|
+
import type { IDataSpaceConnectorSocketClientConstructorOptions } from "@twin.org/data-space-connector-socket-client";
|
|
4
|
+
import type { DataSpaceConnectorComponentType } from "../types/dataSpaceConnectorComponentType";
|
|
5
|
+
/**
|
|
6
|
+
* Data space connector component config types.
|
|
7
|
+
*/
|
|
8
|
+
export type DataSpaceConnectorComponentConfig = {
|
|
9
|
+
type: typeof DataSpaceConnectorComponentType.Service;
|
|
10
|
+
options?: IDataSpaceConnectorServiceConstructorOptions;
|
|
11
|
+
} | {
|
|
12
|
+
type: typeof DataSpaceConnectorComponentType.RestClient;
|
|
13
|
+
options: IBaseRestClientConfig;
|
|
14
|
+
} | {
|
|
15
|
+
type: typeof DataSpaceConnectorComponentType.SocketClient;
|
|
16
|
+
options: IDataSpaceConnectorSocketClientConstructorOptions;
|
|
17
|
+
};
|
|
@@ -6,6 +6,7 @@ import type { IMongoDbEntityStorageConnectorConstructorOptions } from "@twin.org
|
|
|
6
6
|
import type { IMySqlEntityStorageConnectorConstructorOptions } from "@twin.org/entity-storage-connector-mysql";
|
|
7
7
|
import type { IPostgreSqlEntityStorageConnectorConstructorOptions } from "@twin.org/entity-storage-connector-postgresql";
|
|
8
8
|
import type { IScyllaDBTableConnectorConstructorOptions } from "@twin.org/entity-storage-connector-scylladb";
|
|
9
|
+
import type { ISynchronisedEntityStorageConnectorConstructorOptions } from "@twin.org/entity-storage-connector-synchronised";
|
|
9
10
|
import type { EntityStorageConnectorType } from "../types/entityStorageConnectorType";
|
|
10
11
|
/**
|
|
11
12
|
* Entity storage connector config types.
|
|
@@ -60,4 +61,7 @@ export type EntityStorageConnectorConfig = {
|
|
|
60
61
|
config: Omit<IPostgreSqlEntityStorageConnectorConstructorOptions["config"], "tableName">;
|
|
61
62
|
tablePrefix?: string;
|
|
62
63
|
};
|
|
64
|
+
} | {
|
|
65
|
+
type: typeof EntityStorageConnectorType.Synchronised;
|
|
66
|
+
options: Omit<ISynchronisedEntityStorageConnectorConstructorOptions, "entitySchema">;
|
|
63
67
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IMessagingAdminServiceConstructorOptions } from "@twin.org/messaging-service";
|
|
2
|
+
import type { MessagingAdminComponentType } from "../types/messagingAdminComponentType";
|
|
3
|
+
/**
|
|
4
|
+
* Messaging admin component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type MessagingAdminComponentConfig = {
|
|
7
|
+
type: typeof MessagingAdminComponentType.Service;
|
|
8
|
+
options?: IMessagingAdminServiceConstructorOptions;
|
|
9
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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";
|
|
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
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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";
|
|
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,9 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IBaseRestClientConfig } from "@twin.org/api-models";
|
|
2
|
+
import type { IPolicyAdministrationPointServiceConstructorOptions } from "@twin.org/rights-management-pap-service";
|
|
2
3
|
import type { RightsManagementPapComponentType } from "../types/rightsManagementPapComponentType";
|
|
3
4
|
/**
|
|
4
5
|
* Rights management PAP component config types.
|
|
5
6
|
*/
|
|
6
7
|
export type RightsManagementPapComponentConfig = {
|
|
7
8
|
type: typeof RightsManagementPapComponentType.Service;
|
|
8
|
-
options?:
|
|
9
|
+
options?: IPolicyAdministrationPointServiceConstructorOptions;
|
|
10
|
+
} | {
|
|
11
|
+
type: typeof RightsManagementPapComponentType.RestClient;
|
|
12
|
+
options: IBaseRestClientConfig;
|
|
9
13
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IEngineModuleConfig } from "@twin.org/engine-models";
|
|
2
|
+
import type { IPolicyDecisionPointServiceConstructorOptions } from "@twin.org/rights-management-pdp-service";
|
|
3
|
+
import type { RightsManagementPdpComponentType } from "../types/rightsManagementPdpComponentType";
|
|
4
|
+
/**
|
|
5
|
+
* Rights management PDP component config types.
|
|
6
|
+
*/
|
|
7
|
+
export type RightsManagementPdpComponentConfig = {
|
|
8
|
+
type: typeof RightsManagementPdpComponentType.Service;
|
|
9
|
+
options?: IPolicyDecisionPointServiceConstructorOptions & {
|
|
10
|
+
arbiterModulesConfig?: IEngineModuleConfig[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IEngineModuleConfig } from "@twin.org/engine-models";
|
|
2
|
+
import type { IPolicyEnforcementPointServiceConstructorOptions } from "@twin.org/rights-management-pep-service";
|
|
3
|
+
import type { RightsManagementPepComponentType } from "../types/rightsManagementPepComponentType";
|
|
4
|
+
/**
|
|
5
|
+
* Rights management PEP component config types.
|
|
6
|
+
*/
|
|
7
|
+
export type RightsManagementPepComponentConfig = {
|
|
8
|
+
type: typeof RightsManagementPepComponentType.Service;
|
|
9
|
+
options?: IPolicyEnforcementPointServiceConstructorOptions & {
|
|
10
|
+
processorModulesConfig?: IEngineModuleConfig[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IEngineModuleConfig } from "@twin.org/engine-models";
|
|
2
|
+
import type { IPolicyInformationPointServiceConstructorOptions } from "@twin.org/rights-management-pip-service";
|
|
3
|
+
import type { RightsManagementPipComponentType } from "../types/rightsManagementPipComponentType";
|
|
4
|
+
/**
|
|
5
|
+
* Rights management PIP component config types.
|
|
6
|
+
*/
|
|
7
|
+
export type RightsManagementPipComponentConfig = {
|
|
8
|
+
type: typeof RightsManagementPipComponentType.Service;
|
|
9
|
+
options?: IPolicyInformationPointServiceConstructorOptions & {
|
|
10
|
+
informationModulesConfig?: IEngineModuleConfig[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IPolicyManagementPointServiceConstructorOptions } from "@twin.org/rights-management-pmp-service";
|
|
2
|
+
import type { RightsManagementPmpComponentType } from "../types/rightsManagementPmpComponentType";
|
|
3
|
+
/**
|
|
4
|
+
* Rights management PMP component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type RightsManagementPmpComponentConfig = {
|
|
7
|
+
type: typeof RightsManagementPmpComponentType.Service;
|
|
8
|
+
options?: IPolicyManagementPointServiceConstructorOptions;
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IBaseRestClientConfig } from "@twin.org/api-models";
|
|
2
|
+
import type { IPolicyNegotiationAdminPointServiceConstructorOptions } from "@twin.org/rights-management-pnp-service";
|
|
3
|
+
import type { RightsManagementPnapComponentType } from "../types/rightsManagementPnapComponentType";
|
|
4
|
+
/**
|
|
5
|
+
* Rights management PNAP component config types.
|
|
6
|
+
*/
|
|
7
|
+
export type RightsManagementPnapComponentConfig = {
|
|
8
|
+
type: typeof RightsManagementPnapComponentType.Service;
|
|
9
|
+
options?: IPolicyNegotiationAdminPointServiceConstructorOptions;
|
|
10
|
+
} | {
|
|
11
|
+
type: typeof RightsManagementPnapComponentType.RestClient;
|
|
12
|
+
options: IBaseRestClientConfig;
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IBaseRestClientConfig } from "@twin.org/api-models";
|
|
2
|
+
import type { IEngineModuleConfig } from "@twin.org/engine-models";
|
|
3
|
+
import type { IPolicyNegotiationPointServiceConstructorOptions } from "@twin.org/rights-management-pnp-service";
|
|
4
|
+
import type { RightsManagementPnpComponentType } from "../types/rightsManagementPnpComponentType";
|
|
5
|
+
/**
|
|
6
|
+
* Rights management PNP component config types.
|
|
7
|
+
*/
|
|
8
|
+
export type RightsManagementPnpComponentConfig = {
|
|
9
|
+
type: typeof RightsManagementPnpComponentType.Service;
|
|
10
|
+
options: IPolicyNegotiationPointServiceConstructorOptions & {
|
|
11
|
+
negotiatorModulesConfig?: IEngineModuleConfig[];
|
|
12
|
+
requesterModulesConfig?: IEngineModuleConfig[];
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
type: typeof RightsManagementPnpComponentType.RestClient;
|
|
16
|
+
options: IBaseRestClientConfig;
|
|
17
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IEngineModuleConfig } from "@twin.org/engine-models";
|
|
2
|
+
import type { IPolicyExecutionPointServiceConstructorOptions } from "@twin.org/rights-management-pxp-service";
|
|
3
|
+
import type { RightsManagementPxpComponentType } from "../types/rightsManagementPxpComponentType";
|
|
4
|
+
/**
|
|
5
|
+
* Rights management PXP component config types.
|
|
6
|
+
*/
|
|
7
|
+
export type RightsManagementPxpComponentConfig = {
|
|
8
|
+
type: typeof RightsManagementPxpComponentType.Service;
|
|
9
|
+
options?: IPolicyExecutionPointServiceConstructorOptions & {
|
|
10
|
+
actionModulesConfig?: IEngineModuleConfig[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IBaseRestClientConfig } from "@twin.org/api-models";
|
|
2
|
+
import type { ISynchronisedStorageServiceConstructorOptions } from "@twin.org/synchronised-storage-service";
|
|
3
|
+
import type { SynchronisedStorageComponentType } from "../types/synchronisedStorageComponentType";
|
|
4
|
+
/**
|
|
5
|
+
* Synchronised storage component config types.
|
|
6
|
+
*/
|
|
7
|
+
export type SynchronisedStorageComponentConfig = {
|
|
8
|
+
type: typeof SynchronisedStorageComponentType.Service;
|
|
9
|
+
options: ISynchronisedStorageServiceConstructorOptions;
|
|
10
|
+
} | {
|
|
11
|
+
type: typeof SynchronisedStorageComponentType.RestClient;
|
|
12
|
+
options: IBaseRestClientConfig;
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
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];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data space connector component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const DataSpaceConnectorComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
/**
|
|
10
|
+
* REST client.
|
|
11
|
+
*/
|
|
12
|
+
readonly RestClient: "rest-client";
|
|
13
|
+
/**
|
|
14
|
+
* Socket client.
|
|
15
|
+
*/
|
|
16
|
+
readonly SocketClient: "socket-client";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Data space connector component types.
|
|
20
|
+
*/
|
|
21
|
+
export type DataSpaceConnectorComponentType = (typeof DataSpaceConnectorComponentType)[keyof typeof DataSpaceConnectorComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Messaging admin component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const MessagingAdminComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Messaging admin component types.
|
|
12
|
+
*/
|
|
13
|
+
export type MessagingAdminComponentType = (typeof MessagingAdminComponentType)[keyof typeof MessagingAdminComponentType];
|
|
@@ -0,0 +1,17 @@
|
|
|
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];
|
|
@@ -0,0 +1,13 @@
|
|
|
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];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rights management PDP component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const RightsManagementPdpComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Rights management PDP component types.
|
|
12
|
+
*/
|
|
13
|
+
export type RightsManagementPdpComponentType = (typeof RightsManagementPdpComponentType)[keyof typeof RightsManagementPdpComponentType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rights management PEP component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const RightsManagementPepComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
/**
|
|
10
|
+
* REST client.
|
|
11
|
+
*/
|
|
12
|
+
readonly RestClient: "rest-client";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Rights management PEP component types.
|
|
16
|
+
*/
|
|
17
|
+
export type RightsManagementPepComponentType = (typeof RightsManagementPepComponentType)[keyof typeof RightsManagementPepComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rights management PIP component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const RightsManagementPipComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Rights management PIP component types.
|
|
12
|
+
*/
|
|
13
|
+
export type RightsManagementPipComponentType = (typeof RightsManagementPipComponentType)[keyof typeof RightsManagementPipComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rights management PMP component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const RightsManagementPmpComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Rights management PMP component types.
|
|
12
|
+
*/
|
|
13
|
+
export type RightsManagementPmpComponentType = (typeof RightsManagementPmpComponentType)[keyof typeof RightsManagementPmpComponentType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rights management PNAP component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const RightsManagementPnapComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
/**
|
|
10
|
+
* REST client.
|
|
11
|
+
*/
|
|
12
|
+
readonly RestClient: "rest-client";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Rights management PNAP component types.
|
|
16
|
+
*/
|
|
17
|
+
export type RightsManagementPnapComponentType = (typeof RightsManagementPnapComponentType)[keyof typeof RightsManagementPnapComponentType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rights management PNP component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const RightsManagementPnpComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
/**
|
|
10
|
+
* REST client.
|
|
11
|
+
*/
|
|
12
|
+
readonly RestClient: "rest-client";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Rights management PNP component types.
|
|
16
|
+
*/
|
|
17
|
+
export type RightsManagementPnpComponentType = (typeof RightsManagementPnpComponentType)[keyof typeof RightsManagementPnpComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rights management PXP component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const RightsManagementPxpComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Rights management PXP component types.
|
|
12
|
+
*/
|
|
13
|
+
export type RightsManagementPxpComponentType = (typeof RightsManagementPxpComponentType)[keyof typeof RightsManagementPxpComponentType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Synchronised storage component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const SynchronisedStorageComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
/**
|
|
10
|
+
* REST client.
|
|
11
|
+
*/
|
|
12
|
+
readonly RestClient: "rest-client";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Synchronised storage component types.
|
|
16
|
+
*/
|
|
17
|
+
export type SynchronisedStorageComponentType = (typeof SynchronisedStorageComponentType)[keyof typeof SynchronisedStorageComponentType];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IEngineCoreTypeBaseConfig, IEngineCoreTypeConfig } from "@twin.org/engine-models";
|
|
2
|
+
import type { IEngineConfig } from "../models/IEngineConfig";
|
|
3
|
+
/**
|
|
4
|
+
* Helper methods for engine config types.
|
|
5
|
+
*/
|
|
6
|
+
export declare class EngineTypeHelper {
|
|
7
|
+
/**
|
|
8
|
+
* Runtime name for the class.
|
|
9
|
+
*/
|
|
10
|
+
static readonly CLASS_NAME: string;
|
|
11
|
+
/**
|
|
12
|
+
* Get the config for the specified component and type.
|
|
13
|
+
* @param engineConfig The engine configuration.
|
|
14
|
+
* @param component The component name.
|
|
15
|
+
* @param type The type name.
|
|
16
|
+
* @returns The config for the specified component and type or undefined if it does not exist.
|
|
17
|
+
*/
|
|
18
|
+
static getConfigOfType<T extends IEngineCoreTypeBaseConfig>(engineConfig: IEngineConfig, component: string, type: string): IEngineCoreTypeConfig<T> | undefined;
|
|
19
|
+
}
|