@twin.org/engine-types 0.0.1-next.14
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 +1640 -0
- package/dist/esm/index.mjs +1589 -0
- package/dist/types/components/attestation.d.ts +24 -0
- package/dist/types/components/auditableItemGraph.d.ts +13 -0
- package/dist/types/components/auditableItemStream.d.ts +13 -0
- package/dist/types/components/backgroundTask.d.ts +13 -0
- package/dist/types/components/blobStorage.d.ts +24 -0
- package/dist/types/components/entityStorage.d.ts +22 -0
- package/dist/types/components/faucet.d.ts +13 -0
- package/dist/types/components/identity.d.ts +24 -0
- package/dist/types/components/identityProfile.d.ts +24 -0
- package/dist/types/components/immutableProof.d.ts +13 -0
- package/dist/types/components/immutableStorage.d.ts +13 -0
- package/dist/types/components/logging.d.ts +24 -0
- package/dist/types/components/nft.d.ts +24 -0
- package/dist/types/components/telemetry.d.ts +24 -0
- package/dist/types/components/vault.d.ts +13 -0
- package/dist/types/components/wallet.d.ts +23 -0
- package/dist/types/index.d.ts +67 -0
- package/dist/types/models/IEngineCoreTypesConfig.d.ts +137 -0
- package/dist/types/models/config/attestationComponentConfig.d.ts +12 -0
- package/dist/types/models/config/attestationConnectorConfig.d.ts +21 -0
- package/dist/types/models/config/auditableItemGraphComponentConfig.d.ts +14 -0
- package/dist/types/models/config/auditableItemStreamComponentConfig.d.ts +14 -0
- package/dist/types/models/config/backgroundTaskConnectorConfig.d.ts +13 -0
- package/dist/types/models/config/blobStorageComponentConfig.d.ts +13 -0
- package/dist/types/models/config/blobStorageConnectorConfig.d.ts +42 -0
- package/dist/types/models/config/dltConfig.d.ts +11 -0
- package/dist/types/models/config/entityStorageComponentConfig.d.ts +12 -0
- package/dist/types/models/config/entityStorageConnectorConfig.d.ts +47 -0
- package/dist/types/models/config/faucetConnectorConfig.d.ts +18 -0
- package/dist/types/models/config/identityComponentConfig.d.ts +11 -0
- package/dist/types/models/config/identityConnectorConfig.d.ts +18 -0
- package/dist/types/models/config/identityProfileComponentConfig.d.ts +10 -0
- package/dist/types/models/config/identityProfileConnectorConfig.d.ts +10 -0
- package/dist/types/models/config/immutableProofComponentConfig.d.ts +16 -0
- package/dist/types/models/config/immutableStorageConnectorConfig.d.ts +17 -0
- package/dist/types/models/config/loggingComponentConfig.d.ts +10 -0
- package/dist/types/models/config/loggingConnectorConfig.d.ts +25 -0
- package/dist/types/models/config/nftComponentConfig.d.ts +11 -0
- package/dist/types/models/config/nftConnectorConfig.d.ts +17 -0
- package/dist/types/models/config/telemetryComponentConfig.d.ts +10 -0
- package/dist/types/models/config/telemetryConnectorConfig.d.ts +12 -0
- package/dist/types/models/config/vaultConnectorConfig.d.ts +17 -0
- package/dist/types/models/config/walletConnectorConfig.d.ts +22 -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/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/loggingComponentType.d.ts +13 -0
- package/dist/types/models/types/loggingConnectorType.d.ts +21 -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/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/functions/initialiseAttestationComponent.md +33 -0
- package/docs/reference/functions/initialiseAttestationConnector.md +33 -0
- package/docs/reference/functions/initialiseAuditableItemGraphComponent.md +33 -0
- package/docs/reference/functions/initialiseAuditableItemStreamComponent.md +33 -0
- package/docs/reference/functions/initialiseBackgroundTaskConnector.md +33 -0
- package/docs/reference/functions/initialiseBlobStorageComponent.md +33 -0
- package/docs/reference/functions/initialiseBlobStorageConnector.md +33 -0
- package/docs/reference/functions/initialiseEntityStorageComponent.md +33 -0
- package/docs/reference/functions/initialiseEntityStorageConnector.md +31 -0
- package/docs/reference/functions/initialiseFaucetConnector.md +33 -0
- package/docs/reference/functions/initialiseIdentityComponent.md +33 -0
- package/docs/reference/functions/initialiseIdentityConnector.md +33 -0
- package/docs/reference/functions/initialiseIdentityProfileComponent.md +33 -0
- package/docs/reference/functions/initialiseIdentityProfileConnector.md +33 -0
- package/docs/reference/functions/initialiseImmutableProofComponent.md +33 -0
- package/docs/reference/functions/initialiseImmutableStorageConnector.md +33 -0
- package/docs/reference/functions/initialiseLoggingComponent.md +33 -0
- package/docs/reference/functions/initialiseLoggingConnector.md +33 -0
- package/docs/reference/functions/initialiseNftComponent.md +33 -0
- package/docs/reference/functions/initialiseNftConnector.md +33 -0
- package/docs/reference/functions/initialiseTelemetryComponent.md +33 -0
- package/docs/reference/functions/initialiseTelemetryConnector.md +33 -0
- package/docs/reference/functions/initialiseVaultConnector.md +33 -0
- package/docs/reference/functions/initialiseWalletConnector.md +33 -0
- package/docs/reference/functions/initialiseWalletStorage.md +33 -0
- package/docs/reference/index.md +114 -0
- package/docs/reference/interfaces/IEngineCoreTypesConfig.md +173 -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/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/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/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/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/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/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/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/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/LoggingComponentType.md +13 -0
- package/docs/reference/variables/LoggingConnectorType.md +25 -0
- package/docs/reference/variables/NftComponentType.md +13 -0
- package/docs/reference/variables/NftConnectorType.md +19 -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 +91 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { IS3BlobStorageConnectorConfig } from "@twin.org/blob-storage-connector-aws-s3";
|
|
2
|
+
import type { IAzureBlobStorageConnectorConfig } from "@twin.org/blob-storage-connector-azure";
|
|
3
|
+
import type { IFileBlobStorageConnectorConfig } from "@twin.org/blob-storage-connector-file";
|
|
4
|
+
import type { IGcpBlobStorageConnectorConfig } from "@twin.org/blob-storage-connector-gcp";
|
|
5
|
+
import type { IIpfsBlobStorageConnectorConfig } from "@twin.org/blob-storage-connector-ipfs";
|
|
6
|
+
import type { BlobStorageConnectorType } from "../types/blobStorageConnectorType";
|
|
7
|
+
/**
|
|
8
|
+
* Blob storage connector config types.
|
|
9
|
+
*/
|
|
10
|
+
export type BlobStorageConnectorConfig = {
|
|
11
|
+
type: typeof BlobStorageConnectorType.File;
|
|
12
|
+
options: {
|
|
13
|
+
config: IFileBlobStorageConnectorConfig;
|
|
14
|
+
storagePrefix?: string;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
type: typeof BlobStorageConnectorType.Memory;
|
|
18
|
+
options?: never;
|
|
19
|
+
} | {
|
|
20
|
+
type: typeof BlobStorageConnectorType.AwsS3;
|
|
21
|
+
options: {
|
|
22
|
+
config: IS3BlobStorageConnectorConfig;
|
|
23
|
+
storagePrefix?: string;
|
|
24
|
+
};
|
|
25
|
+
} | {
|
|
26
|
+
type: typeof BlobStorageConnectorType.AzureStorage;
|
|
27
|
+
options: {
|
|
28
|
+
config: IAzureBlobStorageConnectorConfig;
|
|
29
|
+
storagePrefix?: string;
|
|
30
|
+
};
|
|
31
|
+
} | {
|
|
32
|
+
type: typeof BlobStorageConnectorType.GcpStorage;
|
|
33
|
+
options: {
|
|
34
|
+
config: IGcpBlobStorageConnectorConfig;
|
|
35
|
+
storagePrefix?: string;
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
type: typeof BlobStorageConnectorType.Ipfs;
|
|
39
|
+
options: {
|
|
40
|
+
config: IIpfsBlobStorageConnectorConfig;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IIotaConfig } from "@twin.org/dlt-iota";
|
|
2
|
+
import type { DltConfigType } from "../types/dltConfigType";
|
|
3
|
+
/**
|
|
4
|
+
* DLT config types.
|
|
5
|
+
*/
|
|
6
|
+
export type DltConfig = {
|
|
7
|
+
type: typeof DltConfigType.Iota;
|
|
8
|
+
options?: {
|
|
9
|
+
config?: IIotaConfig;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IEntityStorageConfig } from "@twin.org/entity-storage-service";
|
|
2
|
+
import type { EntityStorageComponentType } from "../types/entityStorageComponentType";
|
|
3
|
+
/**
|
|
4
|
+
* Entity storage component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type EntityStorageComponentConfig = {
|
|
7
|
+
type: typeof EntityStorageComponentType.Service;
|
|
8
|
+
options: {
|
|
9
|
+
entityStorageType: string;
|
|
10
|
+
config?: IEntityStorageConfig;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ICosmosDbEntityStorageConnectorConfig } from "@twin.org/entity-storage-connector-cosmosdb";
|
|
2
|
+
import type { IDynamoDbEntityStorageConnectorConfig } from "@twin.org/entity-storage-connector-dynamodb";
|
|
3
|
+
import type { IFileEntityStorageConnectorConfig } from "@twin.org/entity-storage-connector-file";
|
|
4
|
+
import type { IFirestoreEntityStorageConnectorConfig } from "@twin.org/entity-storage-connector-gcp-firestore";
|
|
5
|
+
import type { IScyllaDBTableConfig } from "@twin.org/entity-storage-connector-scylladb";
|
|
6
|
+
import type { EntityStorageConnectorType } from "../types/entityStorageConnectorType";
|
|
7
|
+
/**
|
|
8
|
+
* Entity storage connector config types.
|
|
9
|
+
*/
|
|
10
|
+
export type EntityStorageConnectorConfig = {
|
|
11
|
+
type: typeof EntityStorageConnectorType.File;
|
|
12
|
+
options: {
|
|
13
|
+
config: IFileEntityStorageConnectorConfig;
|
|
14
|
+
folderPrefix?: string;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
type: typeof EntityStorageConnectorType.Memory;
|
|
18
|
+
options?: never;
|
|
19
|
+
} | {
|
|
20
|
+
type: typeof EntityStorageConnectorType.AwsDynamoDb;
|
|
21
|
+
options: {
|
|
22
|
+
loggingConnectorType?: string;
|
|
23
|
+
config: Omit<IDynamoDbEntityStorageConnectorConfig, "tableName">;
|
|
24
|
+
tablePrefix?: string;
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
type: typeof EntityStorageConnectorType.AzureCosmosDb;
|
|
28
|
+
options: {
|
|
29
|
+
loggingConnectorType?: string;
|
|
30
|
+
config: Omit<ICosmosDbEntityStorageConnectorConfig, "tableName">;
|
|
31
|
+
tablePrefix?: string;
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
34
|
+
type: typeof EntityStorageConnectorType.GcpFirestoreDb;
|
|
35
|
+
options: {
|
|
36
|
+
loggingConnectorType?: string;
|
|
37
|
+
config: Omit<IFirestoreEntityStorageConnectorConfig, "tableName">;
|
|
38
|
+
tablePrefix?: string;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
type: typeof EntityStorageConnectorType.ScyllaDb;
|
|
42
|
+
options: {
|
|
43
|
+
loggingConnectorType?: string;
|
|
44
|
+
config: Omit<IScyllaDBTableConfig, "tableName">;
|
|
45
|
+
tablePrefix?: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IIotaFaucetConnectorConfig } from "@twin.org/wallet-connector-iota";
|
|
2
|
+
import type { FaucetConnectorType } from "../types/faucetConnectorType";
|
|
3
|
+
/**
|
|
4
|
+
* Faucet config types.
|
|
5
|
+
*/
|
|
6
|
+
export type FaucetConnectorConfig = {
|
|
7
|
+
type: typeof FaucetConnectorType.EntityStorage;
|
|
8
|
+
options?: {
|
|
9
|
+
walletAddressEntityStorageType?: string;
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
type: typeof FaucetConnectorType.Iota;
|
|
13
|
+
options: {
|
|
14
|
+
vaultConnectorType?: string;
|
|
15
|
+
faucetConnectorType?: string;
|
|
16
|
+
config: IIotaFaucetConnectorConfig;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IIdentityServiceConfig } from "@twin.org/identity-service";
|
|
2
|
+
import type { IdentityComponentType } from "../types/identityComponentType";
|
|
3
|
+
/**
|
|
4
|
+
* Identity component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type IdentityComponentConfig = {
|
|
7
|
+
type: typeof IdentityComponentType.Service;
|
|
8
|
+
options?: {
|
|
9
|
+
config?: IIdentityServiceConfig;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IIotaIdentityConnectorConfig } from "@twin.org/identity-connector-iota";
|
|
2
|
+
import type { IdentityConnectorType } from "../types/identityConnectorType";
|
|
3
|
+
/**
|
|
4
|
+
* Identity config connector types.
|
|
5
|
+
*/
|
|
6
|
+
export type IdentityConnectorConfig = {
|
|
7
|
+
type: typeof IdentityConnectorType.EntityStorage;
|
|
8
|
+
options?: {
|
|
9
|
+
didDocumentEntityStorageType?: string;
|
|
10
|
+
vaultConnectorType?: string;
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
type: typeof IdentityConnectorType.Iota;
|
|
14
|
+
options: {
|
|
15
|
+
vaultConnectorType?: string;
|
|
16
|
+
config: IIotaIdentityConnectorConfig;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IdentityComponentType } from "../types/identityComponentType";
|
|
2
|
+
/**
|
|
3
|
+
* Identity profile component config types.
|
|
4
|
+
*/
|
|
5
|
+
export type IdentityProfileComponentConfig = {
|
|
6
|
+
type: typeof IdentityComponentType.Service;
|
|
7
|
+
options?: {
|
|
8
|
+
profileEntityConnectorType?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IdentityProfileConnectorType } from "../types/identityProfileConnectorType";
|
|
2
|
+
/**
|
|
3
|
+
* Identity profile connector config types.
|
|
4
|
+
*/
|
|
5
|
+
export type IdentityProfileConnectorConfig = {
|
|
6
|
+
type: typeof IdentityProfileConnectorType.EntityStorage;
|
|
7
|
+
options?: {
|
|
8
|
+
profileEntityStorageType?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IImmutableProofServiceConfig } from "@twin.org/immutable-proof-service";
|
|
2
|
+
import type { ImmutableProofComponentType } from "../types/immutableProofComponentType";
|
|
3
|
+
/**
|
|
4
|
+
* Immutable proof component config types.
|
|
5
|
+
*/
|
|
6
|
+
export type ImmutableProofComponentConfig = {
|
|
7
|
+
type: typeof ImmutableProofComponentType.Service;
|
|
8
|
+
options?: {
|
|
9
|
+
vaultConnectorType?: string;
|
|
10
|
+
immutableProofEntityStorageType?: string;
|
|
11
|
+
immutableStorageType?: string;
|
|
12
|
+
identityConnectorType?: string;
|
|
13
|
+
backgroundTaskConnectorType?: string;
|
|
14
|
+
config?: IImmutableProofServiceConfig;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IIotaImmutableStorageConnectorConfig } from "@twin.org/immutable-storage-connector-iota";
|
|
2
|
+
import type { ImmutableStorageConnectorType } from "../types/immutableStorageConnectorType";
|
|
3
|
+
/**
|
|
4
|
+
* Immutable storage connector config types.
|
|
5
|
+
*/
|
|
6
|
+
export type ImmutableStorageConnectorConfig = {
|
|
7
|
+
type: typeof ImmutableStorageConnectorType.EntityStorage;
|
|
8
|
+
options?: {
|
|
9
|
+
immutableStorageEntityStorageType?: string;
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
type: typeof ImmutableStorageConnectorType.Iota;
|
|
13
|
+
options: {
|
|
14
|
+
vaultConnectorType?: string;
|
|
15
|
+
config: IIotaImmutableStorageConnectorConfig;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LoggingComponentType } from "../types/loggingComponentType";
|
|
2
|
+
/**
|
|
3
|
+
* Logging component config types.
|
|
4
|
+
*/
|
|
5
|
+
export type LoggingComponentConfig = {
|
|
6
|
+
type: typeof LoggingComponentType.Service;
|
|
7
|
+
options?: {
|
|
8
|
+
loggingConnectorType?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -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,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,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
|
+
* 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];
|