@twin.org/engine-models 0.0.1-next.1
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/LICENSE +201 -0
- package/README.md +21 -0
- package/dist/cjs/index.cjs +550 -0
- package/dist/esm/index.mjs +517 -0
- package/dist/types/factories/engineCoreFactory.d.ts +6 -0
- package/dist/types/factories/engineServerFactory.d.ts +6 -0
- package/dist/types/index.d.ts +74 -0
- package/dist/types/models/IEngineCore.d.ts +55 -0
- package/dist/types/models/IEngineCoreContext.d.ts +33 -0
- package/dist/types/models/IEngineServer.d.ts +32 -0
- package/dist/types/models/IEngineState.d.ts +13 -0
- package/dist/types/models/IEngineStateStorage.d.ts +20 -0
- package/dist/types/models/config/IEngineCoreConfig.d.ts +141 -0
- package/dist/types/models/config/IEngineCoreTypeBaseConfig.d.ts +13 -0
- package/dist/types/models/config/IEngineCoreTypeConfig.d.ts +11 -0
- package/dist/types/models/config/IEngineServerConfig.d.ts +36 -0
- package/dist/types/models/config/typeConfig/attestationComponentConfig.d.ts +12 -0
- package/dist/types/models/config/typeConfig/attestationConnectorConfig.d.ts +21 -0
- package/dist/types/models/config/typeConfig/auditableItemGraphComponentConfig.d.ts +14 -0
- package/dist/types/models/config/typeConfig/auditableItemStreamComponentConfig.d.ts +14 -0
- package/dist/types/models/config/typeConfig/authenticationComponentConfig.d.ts +13 -0
- package/dist/types/models/config/typeConfig/backgroundTaskConnectorConfig.d.ts +13 -0
- package/dist/types/models/config/typeConfig/blobStorageComponentConfig.d.ts +13 -0
- package/dist/types/models/config/typeConfig/blobStorageConnectorConfig.d.ts +42 -0
- package/dist/types/models/config/typeConfig/dltConfig.d.ts +11 -0
- package/dist/types/models/config/typeConfig/entityStorageComponentConfig.d.ts +12 -0
- package/dist/types/models/config/typeConfig/entityStorageConnectorConfig.d.ts +46 -0
- package/dist/types/models/config/typeConfig/faucetConnectorConfig.d.ts +18 -0
- package/dist/types/models/config/typeConfig/identityComponentConfig.d.ts +11 -0
- package/dist/types/models/config/typeConfig/identityConnectorConfig.d.ts +18 -0
- package/dist/types/models/config/typeConfig/identityProfileComponentConfig.d.ts +10 -0
- package/dist/types/models/config/typeConfig/identityProfileConnectorConfig.d.ts +10 -0
- package/dist/types/models/config/typeConfig/immutableProofComponentConfig.d.ts +16 -0
- package/dist/types/models/config/typeConfig/immutableStorageConnectorConfig.d.ts +17 -0
- package/dist/types/models/config/typeConfig/informationComponentConfig.d.ts +11 -0
- package/dist/types/models/config/typeConfig/loggingComponentConfig.d.ts +10 -0
- package/dist/types/models/config/typeConfig/loggingConnectorConfig.d.ts +25 -0
- package/dist/types/models/config/typeConfig/mimeTypeProcessorConfig.d.ts +8 -0
- package/dist/types/models/config/typeConfig/nftComponentConfig.d.ts +11 -0
- package/dist/types/models/config/typeConfig/nftConnectorConfig.d.ts +17 -0
- package/dist/types/models/config/typeConfig/restRouteProcessorConfig.d.ts +32 -0
- package/dist/types/models/config/typeConfig/socketRouteProcessorConfig.d.ts +32 -0
- package/dist/types/models/config/typeConfig/telemetryComponentConfig.d.ts +10 -0
- package/dist/types/models/config/typeConfig/telemetryConnectorConfig.d.ts +12 -0
- package/dist/types/models/config/typeConfig/vaultConnectorConfig.d.ts +17 -0
- package/dist/types/models/config/typeConfig/walletConnectorConfig.d.ts +22 -0
- package/dist/types/models/engineTypeInitialiser.d.ts +7 -0
- package/dist/types/models/restRouteGenerator.d.ts +5 -0
- package/dist/types/models/socketRouteGenerator.d.ts +5 -0
- package/dist/types/models/types/attestationComponentType.d.ts +13 -0
- package/dist/types/models/types/attestationConnectorType.d.ts +17 -0
- package/dist/types/models/types/auditableItemGraphComponentType.d.ts +13 -0
- package/dist/types/models/types/auditableItemStreamComponentType.d.ts +13 -0
- package/dist/types/models/types/authenticationComponentType.d.ts +13 -0
- package/dist/types/models/types/backgroundTaskConnectorType.d.ts +13 -0
- package/dist/types/models/types/blobStorageComponentType.d.ts +13 -0
- package/dist/types/models/types/blobStorageConnectorType.d.ts +33 -0
- package/dist/types/models/types/dltConfigType.d.ts +13 -0
- package/dist/types/models/types/entityStorageComponentType.d.ts +13 -0
- package/dist/types/models/types/entityStorageConnectorType.d.ts +33 -0
- package/dist/types/models/types/faucetConnectorType.d.ts +17 -0
- package/dist/types/models/types/identityComponentType.d.ts +13 -0
- package/dist/types/models/types/identityConnectorType.d.ts +17 -0
- package/dist/types/models/types/identityProfileComponentType.d.ts +13 -0
- package/dist/types/models/types/identityProfileConnectorType.d.ts +13 -0
- package/dist/types/models/types/immutableProofComponentType.d.ts +13 -0
- package/dist/types/models/types/immutableStorageConnectorType.d.ts +17 -0
- package/dist/types/models/types/informationComponentType.d.ts +13 -0
- package/dist/types/models/types/loggingComponentType.d.ts +13 -0
- package/dist/types/models/types/loggingConnectorType.d.ts +21 -0
- package/dist/types/models/types/mimeTypeProcessorType.d.ts +13 -0
- package/dist/types/models/types/nftComponentType.d.ts +13 -0
- package/dist/types/models/types/nftConnectorType.d.ts +17 -0
- package/dist/types/models/types/restRouteProcessorType.d.ts +29 -0
- package/dist/types/models/types/socketRouteProcessorType.d.ts +29 -0
- package/dist/types/models/types/telemetryComponentType.d.ts +13 -0
- package/dist/types/models/types/telemetryConnectorType.d.ts +13 -0
- package/dist/types/models/types/vaultConnectorType.d.ts +17 -0
- package/dist/types/models/types/walletConnectorType.d.ts +17 -0
- package/docs/changelog.md +5 -0
- package/docs/examples.md +1 -0
- package/docs/reference/index.md +114 -0
- package/docs/reference/interfaces/IEngineCore.md +139 -0
- package/docs/reference/interfaces/IEngineCoreConfig.md +231 -0
- package/docs/reference/interfaces/IEngineCoreContext.md +47 -0
- package/docs/reference/interfaces/IEngineCoreTypeBaseConfig.md +23 -0
- package/docs/reference/interfaces/IEngineServer.md +83 -0
- package/docs/reference/interfaces/IEngineServerConfig.md +51 -0
- package/docs/reference/interfaces/IEngineState.md +19 -0
- package/docs/reference/interfaces/IEngineStateStorage.md +47 -0
- package/docs/reference/type-aliases/AttestationComponentConfig.md +23 -0
- package/docs/reference/type-aliases/AttestationComponentType.md +5 -0
- package/docs/reference/type-aliases/AttestationConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/AttestationConnectorType.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphComponentConfig.md +31 -0
- package/docs/reference/type-aliases/AuditableItemGraphComponentType.md +5 -0
- package/docs/reference/type-aliases/AuditableItemStreamComponentConfig.md +31 -0
- package/docs/reference/type-aliases/AuditableItemStreamComponentType.md +5 -0
- package/docs/reference/type-aliases/AuthenticationComponentConfig.md +27 -0
- package/docs/reference/type-aliases/AuthenticationComponentType.md +5 -0
- package/docs/reference/type-aliases/BackgroundTaskConnectorConfig.md +27 -0
- package/docs/reference/type-aliases/BackgroundTaskConnectorType.md +5 -0
- package/docs/reference/type-aliases/BlobStorageComponentConfig.md +27 -0
- package/docs/reference/type-aliases/BlobStorageComponentType.md +5 -0
- package/docs/reference/type-aliases/BlobStorageConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/BlobStorageConnectorType.md +5 -0
- package/docs/reference/type-aliases/DltConfig.md +19 -0
- package/docs/reference/type-aliases/DltConfigType.md +5 -0
- package/docs/reference/type-aliases/EngineTypeInitialiser.md +23 -0
- package/docs/reference/type-aliases/EntityStorageComponentConfig.md +23 -0
- package/docs/reference/type-aliases/EntityStorageComponentType.md +5 -0
- package/docs/reference/type-aliases/EntityStorageConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/EntityStorageConnectorType.md +5 -0
- package/docs/reference/type-aliases/FaucetConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/FaucetConnectorType.md +5 -0
- package/docs/reference/type-aliases/IEngineCoreTypeConfig.md +19 -0
- package/docs/reference/type-aliases/IImmutableProofComponentType.md +5 -0
- package/docs/reference/type-aliases/IdentityComponentConfig.md +19 -0
- package/docs/reference/type-aliases/IdentityComponentType.md +5 -0
- package/docs/reference/type-aliases/IdentityConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/IdentityConnectorType.md +5 -0
- package/docs/reference/type-aliases/IdentityProfileComponentConfig.md +19 -0
- package/docs/reference/type-aliases/IdentityProfileComponentType.md +5 -0
- package/docs/reference/type-aliases/IdentityProfileConnectorConfig.md +19 -0
- package/docs/reference/type-aliases/IdentityProfileConnectorType.md +5 -0
- package/docs/reference/type-aliases/ImmutableProofComponentConfig.md +39 -0
- package/docs/reference/type-aliases/ImmutableStorageConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/ImmutableStorageConnectorType.md +5 -0
- package/docs/reference/type-aliases/InformationComponentConfig.md +19 -0
- package/docs/reference/type-aliases/InformationComponentType.md +5 -0
- package/docs/reference/type-aliases/LoggingComponentConfig.md +19 -0
- package/docs/reference/type-aliases/LoggingComponentType.md +5 -0
- package/docs/reference/type-aliases/LoggingConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/LoggingConnectorType.md +5 -0
- package/docs/reference/type-aliases/MimeTypeProcessorConfig.md +15 -0
- package/docs/reference/type-aliases/MimeTypeProcessorType.md +5 -0
- package/docs/reference/type-aliases/NftComponentConfig.md +19 -0
- package/docs/reference/type-aliases/NftComponentType.md +5 -0
- package/docs/reference/type-aliases/NftConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/NftConnectorType.md +5 -0
- package/docs/reference/type-aliases/RestRouteGenerator.md +15 -0
- package/docs/reference/type-aliases/RestRouteProcessorConfig.md +5 -0
- package/docs/reference/type-aliases/RestRouteProcessorType.md +5 -0
- package/docs/reference/type-aliases/SocketRouteGenerator.md +15 -0
- package/docs/reference/type-aliases/SocketRouteProcessorConfig.md +5 -0
- package/docs/reference/type-aliases/SocketRouteProcessorType.md +5 -0
- package/docs/reference/type-aliases/TelemetryComponentConfig.md +19 -0
- package/docs/reference/type-aliases/TelemetryComponentType.md +5 -0
- package/docs/reference/type-aliases/TelemetryConnectorConfig.md +27 -0
- package/docs/reference/type-aliases/TelemetryConnectorType.md +5 -0
- package/docs/reference/type-aliases/VaultConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/VaultConnectorType.md +5 -0
- package/docs/reference/type-aliases/WalletConnectorConfig.md +5 -0
- package/docs/reference/type-aliases/WalletConnectorType.md +5 -0
- package/docs/reference/variables/AttestationComponentType.md +13 -0
- package/docs/reference/variables/AttestationConnectorType.md +19 -0
- package/docs/reference/variables/AuditableItemGraphComponentType.md +13 -0
- package/docs/reference/variables/AuditableItemStreamComponentType.md +13 -0
- package/docs/reference/variables/AuthenticationComponentType.md +13 -0
- package/docs/reference/variables/BackgroundTaskConnectorType.md +13 -0
- package/docs/reference/variables/BlobStorageComponentType.md +13 -0
- package/docs/reference/variables/BlobStorageConnectorType.md +43 -0
- package/docs/reference/variables/DltConfigType.md +13 -0
- package/docs/reference/variables/EngineCoreFactory.md +5 -0
- package/docs/reference/variables/EngineServerFactory.md +5 -0
- package/docs/reference/variables/EntityStorageComponentType.md +13 -0
- package/docs/reference/variables/EntityStorageConnectorType.md +43 -0
- package/docs/reference/variables/FaucetConnectorType.md +19 -0
- package/docs/reference/variables/IdentityComponentType.md +13 -0
- package/docs/reference/variables/IdentityConnectorType.md +19 -0
- package/docs/reference/variables/IdentityProfileComponentType.md +13 -0
- package/docs/reference/variables/IdentityProfileConnectorType.md +13 -0
- package/docs/reference/variables/ImmutableProofComponentType.md +13 -0
- package/docs/reference/variables/ImmutableStorageConnectorType.md +19 -0
- package/docs/reference/variables/InformationComponentType.md +13 -0
- package/docs/reference/variables/LoggingComponentType.md +13 -0
- package/docs/reference/variables/LoggingConnectorType.md +25 -0
- package/docs/reference/variables/MimeTypeProcessorType.md +13 -0
- package/docs/reference/variables/NftComponentType.md +13 -0
- package/docs/reference/variables/NftConnectorType.md +19 -0
- package/docs/reference/variables/RestRouteProcessorType.md +37 -0
- package/docs/reference/variables/SocketRouteProcessorType.md +37 -0
- package/docs/reference/variables/TelemetryComponentType.md +13 -0
- package/docs/reference/variables/TelemetryConnectorType.md +13 -0
- package/docs/reference/variables/VaultConnectorType.md +19 -0
- package/docs/reference/variables/WalletConnectorType.md +19 -0
- package/locales/en.json +1 -0
- package/package.json +101 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IConsoleLoggingConnectorConfig } from "@twin.org/logging-connector-console";
|
|
2
|
+
import type { IEntityStorageLoggingConnectorConfig } from "@twin.org/logging-connector-entity-storage";
|
|
3
|
+
import type { ILoggingLevelsConfig } from "@twin.org/logging-models";
|
|
4
|
+
import type { LoggingConnectorType } from "../../types/loggingConnectorType";
|
|
5
|
+
/**
|
|
6
|
+
* Logging config connector types.
|
|
7
|
+
*/
|
|
8
|
+
export type LoggingConnectorConfig = {
|
|
9
|
+
type: typeof LoggingConnectorType.EntityStorage;
|
|
10
|
+
options?: {
|
|
11
|
+
logEntryStorageConnectorType?: string;
|
|
12
|
+
config?: IEntityStorageLoggingConnectorConfig;
|
|
13
|
+
};
|
|
14
|
+
} | {
|
|
15
|
+
type: typeof LoggingConnectorType.Console;
|
|
16
|
+
options?: {
|
|
17
|
+
config?: IConsoleLoggingConnectorConfig;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
type: typeof LoggingConnectorType.Multi;
|
|
21
|
+
options: {
|
|
22
|
+
loggingConnectorTypes: string[];
|
|
23
|
+
config?: ILoggingLevelsConfig;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { INftServiceConfig } from "@twin.org/nft-service";
|
|
2
|
+
import type { NftComponentType } from "../../types/nftComponentType";
|
|
3
|
+
/**
|
|
4
|
+
* NFT component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type NftComponentConfig = {
|
|
7
|
+
type: typeof NftComponentType.Service;
|
|
8
|
+
options?: {
|
|
9
|
+
config?: INftServiceConfig;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IIotaNftConnectorConfig } from "@twin.org/nft-connector-iota";
|
|
2
|
+
import type { NftConnectorType } from "../../types/nftConnectorType";
|
|
3
|
+
/**
|
|
4
|
+
* NFT connector config types.
|
|
5
|
+
*/
|
|
6
|
+
export type NftConnectorConfig = {
|
|
7
|
+
type: typeof NftConnectorType.EntityStorage;
|
|
8
|
+
options?: {
|
|
9
|
+
nftEntityStorageType?: string;
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
type: typeof NftConnectorType.Iota;
|
|
13
|
+
options: {
|
|
14
|
+
vaultConnectorType?: string;
|
|
15
|
+
config: IIotaNftConnectorConfig;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IAuthHeaderProcessorConfig } from "@twin.org/api-auth-entity-storage-service";
|
|
2
|
+
import type { ILoggingProcessorConfig, IRouteProcessorConfig, IStaticUserIdentityProcessorConfig } from "@twin.org/api-processors";
|
|
3
|
+
import type { RestRouteProcessorType } from "../../types/restRouteProcessorType";
|
|
4
|
+
/**
|
|
5
|
+
* REST route processor config types.
|
|
6
|
+
*/
|
|
7
|
+
export type RestRouteProcessorConfig = {
|
|
8
|
+
type: typeof RestRouteProcessorType.AuthHeader;
|
|
9
|
+
options?: {
|
|
10
|
+
vaultConnectorType?: string;
|
|
11
|
+
config?: IAuthHeaderProcessorConfig;
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
type: typeof RestRouteProcessorType.Logging;
|
|
15
|
+
options?: {
|
|
16
|
+
loggingConnectorType?: string;
|
|
17
|
+
config?: ILoggingProcessorConfig;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
type: typeof RestRouteProcessorType.NodeIdentity;
|
|
21
|
+
options?: never;
|
|
22
|
+
} | {
|
|
23
|
+
type: typeof RestRouteProcessorType.StaticUserIdentity;
|
|
24
|
+
options: {
|
|
25
|
+
config: IStaticUserIdentityProcessorConfig;
|
|
26
|
+
};
|
|
27
|
+
} | {
|
|
28
|
+
type: typeof RestRouteProcessorType.RestRoute;
|
|
29
|
+
options?: {
|
|
30
|
+
config?: IRouteProcessorConfig;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IAuthHeaderProcessorConfig } from "@twin.org/api-auth-entity-storage-service";
|
|
2
|
+
import type { ILoggingProcessorConfig, IRouteProcessorConfig, IStaticUserIdentityProcessorConfig } from "@twin.org/api-processors";
|
|
3
|
+
import type { SocketRouteProcessorType } from "../../types/socketRouteProcessorType";
|
|
4
|
+
/**
|
|
5
|
+
* Socket route processor config types.
|
|
6
|
+
*/
|
|
7
|
+
export type SocketRouteProcessorConfig = {
|
|
8
|
+
type: typeof SocketRouteProcessorType.AuthHeader;
|
|
9
|
+
options?: {
|
|
10
|
+
vaultConnectorType?: string;
|
|
11
|
+
config?: IAuthHeaderProcessorConfig;
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
type: typeof SocketRouteProcessorType.Logging;
|
|
15
|
+
options: {
|
|
16
|
+
loggingConnectorType: string;
|
|
17
|
+
config: ILoggingProcessorConfig;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
type: typeof SocketRouteProcessorType.NodeIdentity;
|
|
21
|
+
options?: never;
|
|
22
|
+
} | {
|
|
23
|
+
type: typeof SocketRouteProcessorType.StaticUserIdentity;
|
|
24
|
+
options: {
|
|
25
|
+
config: IStaticUserIdentityProcessorConfig;
|
|
26
|
+
};
|
|
27
|
+
} | {
|
|
28
|
+
type: typeof SocketRouteProcessorType.SocketRoute;
|
|
29
|
+
options?: {
|
|
30
|
+
config?: IRouteProcessorConfig;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TelemetryComponentType } from "../../types/telemetryComponentType";
|
|
2
|
+
/**
|
|
3
|
+
* Telemetry component config types.
|
|
4
|
+
*/
|
|
5
|
+
export type TelemetryComponentConfig = {
|
|
6
|
+
type: typeof TelemetryComponentType.Service;
|
|
7
|
+
options?: {
|
|
8
|
+
telemetryConnectorType?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TelemetryConnectorType } from "../../types/telemetryConnectorType";
|
|
2
|
+
/**
|
|
3
|
+
* Telemetry connector config types.
|
|
4
|
+
*/
|
|
5
|
+
export type TelemetryConnectorConfig = {
|
|
6
|
+
type: typeof TelemetryConnectorType.EntityStorage;
|
|
7
|
+
options?: {
|
|
8
|
+
telemetryMetricStorageConnectorType?: string;
|
|
9
|
+
telemetryMetricValueStorageConnectorType?: string;
|
|
10
|
+
loggingConnectorType?: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IHashicorpVaultConnectorConfig } from "@twin.org/vault-connector-hashicorp";
|
|
2
|
+
import type { VaultConnectorType } from "../../types/vaultConnectorType";
|
|
3
|
+
/**
|
|
4
|
+
* Vault connector config types.
|
|
5
|
+
*/
|
|
6
|
+
export type VaultConnectorConfig = {
|
|
7
|
+
type: typeof VaultConnectorType.EntityStorage;
|
|
8
|
+
options?: {
|
|
9
|
+
vaultKeyEntityStorageType?: string;
|
|
10
|
+
vaultSecretEntityStorageType?: string;
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
type: typeof VaultConnectorType.Hashicorp;
|
|
14
|
+
options: {
|
|
15
|
+
config: IHashicorpVaultConnectorConfig;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IEntityStorageWalletConnectorConfig } from "@twin.org/wallet-connector-entity-storage";
|
|
2
|
+
import type { IIotaWalletConnectorConfig } from "@twin.org/wallet-connector-iota";
|
|
3
|
+
import type { WalletConnectorType } from "../../types/walletConnectorType";
|
|
4
|
+
/**
|
|
5
|
+
* Wallet connector config types.
|
|
6
|
+
*/
|
|
7
|
+
export type WalletConnectorConfig = {
|
|
8
|
+
type: typeof WalletConnectorType.EntityStorage;
|
|
9
|
+
options?: {
|
|
10
|
+
vaultConnectorType?: string;
|
|
11
|
+
faucetConnectorType?: string;
|
|
12
|
+
walletAddressEntityStorageType?: string;
|
|
13
|
+
config?: IEntityStorageWalletConnectorConfig;
|
|
14
|
+
};
|
|
15
|
+
} | {
|
|
16
|
+
type: typeof WalletConnectorType.Iota;
|
|
17
|
+
options: {
|
|
18
|
+
vaultConnectorType?: string;
|
|
19
|
+
faucetConnectorType?: string;
|
|
20
|
+
config: IIotaWalletConnectorConfig;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IEngineCoreTypeBaseConfig } from "./config/IEngineCoreTypeBaseConfig";
|
|
2
|
+
import type { IEngineCore } from "./IEngineCore";
|
|
3
|
+
import type { IEngineCoreContext } from "./IEngineCoreContext";
|
|
4
|
+
/**
|
|
5
|
+
* Method definition for the engine type initialiser.
|
|
6
|
+
*/
|
|
7
|
+
export type EngineTypeInitialiser<T extends IEngineCoreTypeBaseConfig = IEngineCoreTypeBaseConfig> = (engineCore: IEngineCore, context: IEngineCoreContext, instanceConfig: T, overrideInstanceType?: string) => string | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attestation component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AttestationComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Attestation component types.
|
|
12
|
+
*/
|
|
13
|
+
export type AttestationComponentType = (typeof AttestationComponentType)[keyof typeof AttestationComponentType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attestation connector types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AttestationConnectorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly EntityStorage: "entity-storage";
|
|
9
|
+
/**
|
|
10
|
+
* IOTA.
|
|
11
|
+
*/
|
|
12
|
+
readonly Iota: "iota";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Attestation connector types.
|
|
16
|
+
*/
|
|
17
|
+
export type AttestationConnectorType = (typeof AttestationConnectorType)[keyof typeof AttestationConnectorType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auditable item graph component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AuditableItemGraphComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Auditable item graph component types.
|
|
12
|
+
*/
|
|
13
|
+
export type AuditableItemGraphComponentType = (typeof AuditableItemGraphComponentType)[keyof typeof AuditableItemGraphComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auditable item stream component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AuditableItemStreamComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Auditable item stream component types.
|
|
12
|
+
*/
|
|
13
|
+
export type AuditableItemStreamComponentType = (typeof AuditableItemStreamComponentType)[keyof typeof AuditableItemStreamComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const AuthenticationComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Authentication entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly AuthEntityStorage: "auth-entity-storage";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Authentication component types.
|
|
12
|
+
*/
|
|
13
|
+
export type AuthenticationComponentType = (typeof AuthenticationComponentType)[keyof typeof AuthenticationComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
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];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blob storage component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const BlobStorageComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Blob storage component types.
|
|
12
|
+
*/
|
|
13
|
+
export type BlobStorageComponentType = (typeof BlobStorageComponentType)[keyof typeof BlobStorageComponentType];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blob storage connector types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const BlobStorageConnectorType: {
|
|
5
|
+
/**
|
|
6
|
+
* File storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly File: "file";
|
|
9
|
+
/**
|
|
10
|
+
* Memory.
|
|
11
|
+
*/
|
|
12
|
+
readonly Memory: "memory";
|
|
13
|
+
/**
|
|
14
|
+
* IPFS.
|
|
15
|
+
*/
|
|
16
|
+
readonly Ipfs: "ipfs";
|
|
17
|
+
/**
|
|
18
|
+
* AWS S3.
|
|
19
|
+
*/
|
|
20
|
+
readonly AwsS3: "aws-s3";
|
|
21
|
+
/**
|
|
22
|
+
* Azure Storage.
|
|
23
|
+
*/
|
|
24
|
+
readonly AzureStorage: "azure-storage";
|
|
25
|
+
/**
|
|
26
|
+
* GCP Storage.
|
|
27
|
+
*/
|
|
28
|
+
readonly GcpStorage: "gcp-storage";
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Blob storage connector types.
|
|
32
|
+
*/
|
|
33
|
+
export type BlobStorageConnectorType = (typeof BlobStorageConnectorType)[keyof typeof BlobStorageConnectorType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entity storage component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const EntityStorageComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Entity storage component types.
|
|
12
|
+
*/
|
|
13
|
+
export type EntityStorageComponentType = (typeof EntityStorageComponentType)[keyof typeof EntityStorageComponentType];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entity storage connector types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const EntityStorageConnectorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Use storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly File: "file";
|
|
9
|
+
/**
|
|
10
|
+
* Memory.
|
|
11
|
+
*/
|
|
12
|
+
readonly Memory: "memory";
|
|
13
|
+
/**
|
|
14
|
+
* ScyllaDb.
|
|
15
|
+
*/
|
|
16
|
+
readonly ScyllaDb: "scylladb";
|
|
17
|
+
/**
|
|
18
|
+
* AWS DynamoDB.
|
|
19
|
+
*/
|
|
20
|
+
readonly AwsDynamoDb: "aws-dynamodb";
|
|
21
|
+
/**
|
|
22
|
+
* Azure CosmosDB.
|
|
23
|
+
*/
|
|
24
|
+
readonly AzureCosmosDb: "azure-cosmosdb";
|
|
25
|
+
/**
|
|
26
|
+
* GCP Firestore.
|
|
27
|
+
*/
|
|
28
|
+
readonly GcpFirestoreDb: "gcp-firestoredb";
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Entity storage connector types.
|
|
32
|
+
*/
|
|
33
|
+
export type EntityStorageConnectorType = (typeof EntityStorageConnectorType)[keyof typeof EntityStorageConnectorType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Faucet connector types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const FaucetConnectorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly EntityStorage: "entity-storage";
|
|
9
|
+
/**
|
|
10
|
+
* IOTA.
|
|
11
|
+
*/
|
|
12
|
+
readonly Iota: "iota";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Faucet connector types.
|
|
16
|
+
*/
|
|
17
|
+
export type FaucetConnectorType = (typeof FaucetConnectorType)[keyof typeof FaucetConnectorType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const IdentityComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Identity component types.
|
|
12
|
+
*/
|
|
13
|
+
export type IdentityComponentType = (typeof IdentityComponentType)[keyof typeof IdentityComponentType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity connector types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const IdentityConnectorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly EntityStorage: "entity-storage";
|
|
9
|
+
/**
|
|
10
|
+
* IOTA.
|
|
11
|
+
*/
|
|
12
|
+
readonly Iota: "iota";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Identity connector types.
|
|
16
|
+
*/
|
|
17
|
+
export type IdentityConnectorType = (typeof IdentityConnectorType)[keyof typeof IdentityConnectorType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity profile component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const IdentityProfileComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Identity profile component types.
|
|
12
|
+
*/
|
|
13
|
+
export type IdentityProfileComponentType = (typeof IdentityProfileComponentType)[keyof typeof IdentityProfileComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity profile connector types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const IdentityProfileConnectorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly EntityStorage: "entity-storage";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Identity profile connector types.
|
|
12
|
+
*/
|
|
13
|
+
export type IdentityProfileConnectorType = (typeof IdentityProfileConnectorType)[keyof typeof IdentityProfileConnectorType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Immutable proof component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const ImmutableProofComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Immutable proof component types.
|
|
12
|
+
*/
|
|
13
|
+
export type IImmutableProofComponentType = (typeof ImmutableProofComponentType)[keyof typeof ImmutableProofComponentType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Immutable storage connector types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const ImmutableStorageConnectorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly EntityStorage: "entity-storage";
|
|
9
|
+
/**
|
|
10
|
+
* IOTA.
|
|
11
|
+
*/
|
|
12
|
+
readonly Iota: "iota";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Immutable storage connector types.
|
|
16
|
+
*/
|
|
17
|
+
export type ImmutableStorageConnectorType = (typeof ImmutableStorageConnectorType)[keyof typeof ImmutableStorageConnectorType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const InformationComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Information component types.
|
|
12
|
+
*/
|
|
13
|
+
export type InformationComponentType = (typeof InformationComponentType)[keyof typeof InformationComponentType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logging component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const LoggingComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Logging component types.
|
|
12
|
+
*/
|
|
13
|
+
export type LoggingComponentType = (typeof LoggingComponentType)[keyof typeof LoggingComponentType];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logging connector types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const LoggingConnectorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly EntityStorage: "entity-storage";
|
|
9
|
+
/**
|
|
10
|
+
* Console.
|
|
11
|
+
*/
|
|
12
|
+
readonly Console: "console";
|
|
13
|
+
/**
|
|
14
|
+
* Multi combines other loggers.
|
|
15
|
+
*/
|
|
16
|
+
readonly Multi: "multi";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Logging connector types.
|
|
20
|
+
*/
|
|
21
|
+
export type LoggingConnectorType = (typeof LoggingConnectorType)[keyof typeof LoggingConnectorType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mime type route processor types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const MimeTypeProcessorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Jwt.
|
|
7
|
+
*/
|
|
8
|
+
readonly Jwt: "jwt";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Mime type processor types.
|
|
12
|
+
*/
|
|
13
|
+
export type MimeTypeProcessorType = (typeof MimeTypeProcessorType)[keyof typeof MimeTypeProcessorType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NFT component types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const NftComponentType: {
|
|
5
|
+
/**
|
|
6
|
+
* Service.
|
|
7
|
+
*/
|
|
8
|
+
readonly Service: "service";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* NFT component types.
|
|
12
|
+
*/
|
|
13
|
+
export type NftComponentType = (typeof NftComponentType)[keyof typeof NftComponentType];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NFT connector types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const NftConnectorType: {
|
|
5
|
+
/**
|
|
6
|
+
* Entity storage.
|
|
7
|
+
*/
|
|
8
|
+
readonly EntityStorage: "entity-storage";
|
|
9
|
+
/**
|
|
10
|
+
* IOTA.
|
|
11
|
+
*/
|
|
12
|
+
readonly Iota: "iota";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* NFT connector types.
|
|
16
|
+
*/
|
|
17
|
+
export type NftConnectorType = (typeof NftConnectorType)[keyof typeof NftConnectorType];
|