@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,550 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@twin.org/core');
|
|
4
|
+
|
|
5
|
+
// Copyright 2024 IOTA Stiftung.
|
|
6
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
7
|
+
/**
|
|
8
|
+
* Factory for creating engine cores.
|
|
9
|
+
*/
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11
|
+
const EngineCoreFactory = core.Factory.createFactory("engine-core");
|
|
12
|
+
|
|
13
|
+
// Copyright 2024 IOTA Stiftung.
|
|
14
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
15
|
+
/**
|
|
16
|
+
* Factory for creating engine servers.
|
|
17
|
+
*/
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19
|
+
const EngineServerFactory = core.Factory.createFactory("engine-server");
|
|
20
|
+
|
|
21
|
+
// Copyright 2024 IOTA Stiftung.
|
|
22
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
23
|
+
/**
|
|
24
|
+
* Attestation component types.
|
|
25
|
+
*/
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
27
|
+
const AttestationComponentType = {
|
|
28
|
+
/**
|
|
29
|
+
* Service.
|
|
30
|
+
*/
|
|
31
|
+
Service: "service"
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// Copyright 2024 IOTA Stiftung.
|
|
35
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
36
|
+
/**
|
|
37
|
+
* Attestation connector types.
|
|
38
|
+
*/
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
40
|
+
const AttestationConnectorType = {
|
|
41
|
+
/**
|
|
42
|
+
* Entity storage.
|
|
43
|
+
*/
|
|
44
|
+
EntityStorage: "entity-storage",
|
|
45
|
+
/**
|
|
46
|
+
* IOTA.
|
|
47
|
+
*/
|
|
48
|
+
Iota: "iota"
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// Copyright 2024 IOTA Stiftung.
|
|
52
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
53
|
+
/**
|
|
54
|
+
* Auditable item graph component types.
|
|
55
|
+
*/
|
|
56
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
57
|
+
const AuditableItemGraphComponentType = {
|
|
58
|
+
/**
|
|
59
|
+
* Service.
|
|
60
|
+
*/
|
|
61
|
+
Service: "service"
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// Copyright 2024 IOTA Stiftung.
|
|
65
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
66
|
+
/**
|
|
67
|
+
* Auditable item stream component types.
|
|
68
|
+
*/
|
|
69
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
70
|
+
const AuditableItemStreamComponentType = {
|
|
71
|
+
/**
|
|
72
|
+
* Service.
|
|
73
|
+
*/
|
|
74
|
+
Service: "service"
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// Copyright 2024 IOTA Stiftung.
|
|
78
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
79
|
+
/**
|
|
80
|
+
* Authentication component types.
|
|
81
|
+
*/
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
83
|
+
const AuthenticationComponentType = {
|
|
84
|
+
/**
|
|
85
|
+
* Authentication entity storage.
|
|
86
|
+
*/
|
|
87
|
+
AuthEntityStorage: "auth-entity-storage"
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// Copyright 2024 IOTA Stiftung.
|
|
91
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
92
|
+
/**
|
|
93
|
+
* Background task connector types.
|
|
94
|
+
*/
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
96
|
+
const BackgroundTaskConnectorType = {
|
|
97
|
+
/**
|
|
98
|
+
* Entity storage.
|
|
99
|
+
*/
|
|
100
|
+
EntityStorage: "entity-storage"
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// Copyright 2024 IOTA Stiftung.
|
|
104
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
105
|
+
/**
|
|
106
|
+
* Blob storage component types.
|
|
107
|
+
*/
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
109
|
+
const BlobStorageComponentType = {
|
|
110
|
+
/**
|
|
111
|
+
* Service.
|
|
112
|
+
*/
|
|
113
|
+
Service: "service"
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// Copyright 2024 IOTA Stiftung.
|
|
117
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
118
|
+
/**
|
|
119
|
+
* Blob storage connector types.
|
|
120
|
+
*/
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
122
|
+
const BlobStorageConnectorType = {
|
|
123
|
+
/**
|
|
124
|
+
* File storage.
|
|
125
|
+
*/
|
|
126
|
+
File: "file",
|
|
127
|
+
/**
|
|
128
|
+
* Memory.
|
|
129
|
+
*/
|
|
130
|
+
Memory: "memory",
|
|
131
|
+
/**
|
|
132
|
+
* IPFS.
|
|
133
|
+
*/
|
|
134
|
+
Ipfs: "ipfs",
|
|
135
|
+
/**
|
|
136
|
+
* AWS S3.
|
|
137
|
+
*/
|
|
138
|
+
AwsS3: "aws-s3",
|
|
139
|
+
/**
|
|
140
|
+
* Azure Storage.
|
|
141
|
+
*/
|
|
142
|
+
AzureStorage: "azure-storage",
|
|
143
|
+
/**
|
|
144
|
+
* GCP Storage.
|
|
145
|
+
*/
|
|
146
|
+
GcpStorage: "gcp-storage"
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
// Copyright 2024 IOTA Stiftung.
|
|
150
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
151
|
+
/**
|
|
152
|
+
* DLT config types.
|
|
153
|
+
*/
|
|
154
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
155
|
+
const DltConfigType = {
|
|
156
|
+
/**
|
|
157
|
+
* IOTA.
|
|
158
|
+
*/
|
|
159
|
+
Iota: "iota"
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
// Copyright 2024 IOTA Stiftung.
|
|
163
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
164
|
+
/**
|
|
165
|
+
* Entity storage component types.
|
|
166
|
+
*/
|
|
167
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
168
|
+
const EntityStorageComponentType = {
|
|
169
|
+
/**
|
|
170
|
+
* Service.
|
|
171
|
+
*/
|
|
172
|
+
Service: "service"
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// Copyright 2024 IOTA Stiftung.
|
|
176
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
177
|
+
/**
|
|
178
|
+
* Entity storage connector types.
|
|
179
|
+
*/
|
|
180
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
181
|
+
const EntityStorageConnectorType = {
|
|
182
|
+
/**
|
|
183
|
+
* Use storage.
|
|
184
|
+
*/
|
|
185
|
+
File: "file",
|
|
186
|
+
/**
|
|
187
|
+
* Memory.
|
|
188
|
+
*/
|
|
189
|
+
Memory: "memory",
|
|
190
|
+
/**
|
|
191
|
+
* ScyllaDb.
|
|
192
|
+
*/
|
|
193
|
+
ScyllaDb: "scylladb",
|
|
194
|
+
/**
|
|
195
|
+
* AWS DynamoDB.
|
|
196
|
+
*/
|
|
197
|
+
AwsDynamoDb: "aws-dynamodb",
|
|
198
|
+
/**
|
|
199
|
+
* Azure CosmosDB.
|
|
200
|
+
*/
|
|
201
|
+
AzureCosmosDb: "azure-cosmosdb",
|
|
202
|
+
/**
|
|
203
|
+
* GCP Firestore.
|
|
204
|
+
*/
|
|
205
|
+
GcpFirestoreDb: "gcp-firestoredb"
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
// Copyright 2024 IOTA Stiftung.
|
|
209
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
210
|
+
/**
|
|
211
|
+
* Faucet connector types.
|
|
212
|
+
*/
|
|
213
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
214
|
+
const FaucetConnectorType = {
|
|
215
|
+
/**
|
|
216
|
+
* Entity storage.
|
|
217
|
+
*/
|
|
218
|
+
EntityStorage: "entity-storage",
|
|
219
|
+
/**
|
|
220
|
+
* IOTA.
|
|
221
|
+
*/
|
|
222
|
+
Iota: "iota"
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
// Copyright 2024 IOTA Stiftung.
|
|
226
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
227
|
+
/**
|
|
228
|
+
* Identity component types.
|
|
229
|
+
*/
|
|
230
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
231
|
+
const IdentityComponentType = {
|
|
232
|
+
/**
|
|
233
|
+
* Service.
|
|
234
|
+
*/
|
|
235
|
+
Service: "service"
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
// Copyright 2024 IOTA Stiftung.
|
|
239
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
240
|
+
/**
|
|
241
|
+
* Identity connector types.
|
|
242
|
+
*/
|
|
243
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
244
|
+
const IdentityConnectorType = {
|
|
245
|
+
/**
|
|
246
|
+
* Entity storage.
|
|
247
|
+
*/
|
|
248
|
+
EntityStorage: "entity-storage",
|
|
249
|
+
/**
|
|
250
|
+
* IOTA.
|
|
251
|
+
*/
|
|
252
|
+
Iota: "iota"
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
// Copyright 2024 IOTA Stiftung.
|
|
256
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
257
|
+
/**
|
|
258
|
+
* Identity profile component types.
|
|
259
|
+
*/
|
|
260
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
261
|
+
const IdentityProfileComponentType = {
|
|
262
|
+
/**
|
|
263
|
+
* Service.
|
|
264
|
+
*/
|
|
265
|
+
Service: "service"
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
// Copyright 2024 IOTA Stiftung.
|
|
269
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
270
|
+
/**
|
|
271
|
+
* Identity profile connector types.
|
|
272
|
+
*/
|
|
273
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
274
|
+
const IdentityProfileConnectorType = {
|
|
275
|
+
/**
|
|
276
|
+
* Entity storage.
|
|
277
|
+
*/
|
|
278
|
+
EntityStorage: "entity-storage"
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
// Copyright 2024 IOTA Stiftung.
|
|
282
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
283
|
+
/**
|
|
284
|
+
* Immutable proof component types.
|
|
285
|
+
*/
|
|
286
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
287
|
+
const ImmutableProofComponentType = {
|
|
288
|
+
/**
|
|
289
|
+
* Service.
|
|
290
|
+
*/
|
|
291
|
+
Service: "service"
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
// Copyright 2024 IOTA Stiftung.
|
|
295
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
296
|
+
/**
|
|
297
|
+
* Immutable storage connector types.
|
|
298
|
+
*/
|
|
299
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
300
|
+
const ImmutableStorageConnectorType = {
|
|
301
|
+
/**
|
|
302
|
+
* Entity storage.
|
|
303
|
+
*/
|
|
304
|
+
EntityStorage: "entity-storage",
|
|
305
|
+
/**
|
|
306
|
+
* IOTA.
|
|
307
|
+
*/
|
|
308
|
+
Iota: "iota"
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
// Copyright 2024 IOTA Stiftung.
|
|
312
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
313
|
+
/**
|
|
314
|
+
* Information component types.
|
|
315
|
+
*/
|
|
316
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
317
|
+
const InformationComponentType = {
|
|
318
|
+
/**
|
|
319
|
+
* Service.
|
|
320
|
+
*/
|
|
321
|
+
Service: "service"
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
// Copyright 2024 IOTA Stiftung.
|
|
325
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
326
|
+
/**
|
|
327
|
+
* Logging component types.
|
|
328
|
+
*/
|
|
329
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
330
|
+
const LoggingComponentType = {
|
|
331
|
+
/**
|
|
332
|
+
* Service.
|
|
333
|
+
*/
|
|
334
|
+
Service: "service"
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
// Copyright 2024 IOTA Stiftung.
|
|
338
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
339
|
+
/**
|
|
340
|
+
* Logging connector types.
|
|
341
|
+
*/
|
|
342
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
343
|
+
const LoggingConnectorType = {
|
|
344
|
+
/**
|
|
345
|
+
* Entity storage.
|
|
346
|
+
*/
|
|
347
|
+
EntityStorage: "entity-storage",
|
|
348
|
+
/**
|
|
349
|
+
* Console.
|
|
350
|
+
*/
|
|
351
|
+
Console: "console",
|
|
352
|
+
/**
|
|
353
|
+
* Multi combines other loggers.
|
|
354
|
+
*/
|
|
355
|
+
Multi: "multi"
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
// Copyright 2024 IOTA Stiftung.
|
|
359
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
360
|
+
/**
|
|
361
|
+
* Mime type route processor types.
|
|
362
|
+
*/
|
|
363
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
364
|
+
const MimeTypeProcessorType = {
|
|
365
|
+
/**
|
|
366
|
+
* Jwt.
|
|
367
|
+
*/
|
|
368
|
+
Jwt: "jwt"
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
// Copyright 2024 IOTA Stiftung.
|
|
372
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
373
|
+
/**
|
|
374
|
+
* NFT component types.
|
|
375
|
+
*/
|
|
376
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
377
|
+
const NftComponentType = {
|
|
378
|
+
/**
|
|
379
|
+
* Service.
|
|
380
|
+
*/
|
|
381
|
+
Service: "service"
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
// Copyright 2024 IOTA Stiftung.
|
|
385
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
386
|
+
/**
|
|
387
|
+
* NFT connector types.
|
|
388
|
+
*/
|
|
389
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
390
|
+
const NftConnectorType = {
|
|
391
|
+
/**
|
|
392
|
+
* Entity storage.
|
|
393
|
+
*/
|
|
394
|
+
EntityStorage: "entity-storage",
|
|
395
|
+
/**
|
|
396
|
+
* IOTA.
|
|
397
|
+
*/
|
|
398
|
+
Iota: "iota"
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
// Copyright 2024 IOTA Stiftung.
|
|
402
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
403
|
+
/**
|
|
404
|
+
* REST route processor types.
|
|
405
|
+
*/
|
|
406
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
407
|
+
const RestRouteProcessorType = {
|
|
408
|
+
/**
|
|
409
|
+
* Auth header.
|
|
410
|
+
*/
|
|
411
|
+
AuthHeader: "auth-header",
|
|
412
|
+
/**
|
|
413
|
+
* Logging.
|
|
414
|
+
*/
|
|
415
|
+
Logging: "logging",
|
|
416
|
+
/**
|
|
417
|
+
* Node Identity.
|
|
418
|
+
*/
|
|
419
|
+
NodeIdentity: "node-identity",
|
|
420
|
+
/**
|
|
421
|
+
* Static User Identity.
|
|
422
|
+
*/
|
|
423
|
+
StaticUserIdentity: "static-user-identity",
|
|
424
|
+
/**
|
|
425
|
+
* REST Route.
|
|
426
|
+
*/
|
|
427
|
+
RestRoute: "rest-route"
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
// Copyright 2024 IOTA Stiftung.
|
|
431
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
432
|
+
/**
|
|
433
|
+
* Socket route processor types.
|
|
434
|
+
*/
|
|
435
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
436
|
+
const SocketRouteProcessorType = {
|
|
437
|
+
/**
|
|
438
|
+
* Auth header.
|
|
439
|
+
*/
|
|
440
|
+
AuthHeader: "auth-header",
|
|
441
|
+
/**
|
|
442
|
+
* Logging.
|
|
443
|
+
*/
|
|
444
|
+
Logging: "logging",
|
|
445
|
+
/**
|
|
446
|
+
* Node Identity.
|
|
447
|
+
*/
|
|
448
|
+
NodeIdentity: "node-identity",
|
|
449
|
+
/**
|
|
450
|
+
* Static User Identity.
|
|
451
|
+
*/
|
|
452
|
+
StaticUserIdentity: "static-user-identity",
|
|
453
|
+
/**
|
|
454
|
+
* Socket Route.
|
|
455
|
+
*/
|
|
456
|
+
SocketRoute: "socket-route"
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
// Copyright 2024 IOTA Stiftung.
|
|
460
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
461
|
+
/**
|
|
462
|
+
* Telemetry component types.
|
|
463
|
+
*/
|
|
464
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
465
|
+
const TelemetryComponentType = {
|
|
466
|
+
/**
|
|
467
|
+
* Service.
|
|
468
|
+
*/
|
|
469
|
+
Service: "service"
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
// Copyright 2024 IOTA Stiftung.
|
|
473
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
474
|
+
/**
|
|
475
|
+
* Telemetry connector types.
|
|
476
|
+
*/
|
|
477
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
478
|
+
const TelemetryConnectorType = {
|
|
479
|
+
/**
|
|
480
|
+
* Entity storage.
|
|
481
|
+
*/
|
|
482
|
+
EntityStorage: "entity-storage"
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
// Copyright 2024 IOTA Stiftung.
|
|
486
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
487
|
+
/**
|
|
488
|
+
* Vault connector types.
|
|
489
|
+
*/
|
|
490
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
491
|
+
const VaultConnectorType = {
|
|
492
|
+
/**
|
|
493
|
+
* Entity storage.
|
|
494
|
+
*/
|
|
495
|
+
EntityStorage: "entity-storage",
|
|
496
|
+
/**
|
|
497
|
+
* Hashicorp.
|
|
498
|
+
*/
|
|
499
|
+
Hashicorp: "hashicorp"
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
// Copyright 2024 IOTA Stiftung.
|
|
503
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
504
|
+
/**
|
|
505
|
+
* Wallet connector types.
|
|
506
|
+
*/
|
|
507
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
508
|
+
const WalletConnectorType = {
|
|
509
|
+
/**
|
|
510
|
+
* Entity storage.
|
|
511
|
+
*/
|
|
512
|
+
EntityStorage: "entity-storage",
|
|
513
|
+
/**
|
|
514
|
+
* IOTA.
|
|
515
|
+
*/
|
|
516
|
+
Iota: "iota"
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
exports.AttestationComponentType = AttestationComponentType;
|
|
520
|
+
exports.AttestationConnectorType = AttestationConnectorType;
|
|
521
|
+
exports.AuditableItemGraphComponentType = AuditableItemGraphComponentType;
|
|
522
|
+
exports.AuditableItemStreamComponentType = AuditableItemStreamComponentType;
|
|
523
|
+
exports.AuthenticationComponentType = AuthenticationComponentType;
|
|
524
|
+
exports.BackgroundTaskConnectorType = BackgroundTaskConnectorType;
|
|
525
|
+
exports.BlobStorageComponentType = BlobStorageComponentType;
|
|
526
|
+
exports.BlobStorageConnectorType = BlobStorageConnectorType;
|
|
527
|
+
exports.DltConfigType = DltConfigType;
|
|
528
|
+
exports.EngineCoreFactory = EngineCoreFactory;
|
|
529
|
+
exports.EngineServerFactory = EngineServerFactory;
|
|
530
|
+
exports.EntityStorageComponentType = EntityStorageComponentType;
|
|
531
|
+
exports.EntityStorageConnectorType = EntityStorageConnectorType;
|
|
532
|
+
exports.FaucetConnectorType = FaucetConnectorType;
|
|
533
|
+
exports.IdentityComponentType = IdentityComponentType;
|
|
534
|
+
exports.IdentityConnectorType = IdentityConnectorType;
|
|
535
|
+
exports.IdentityProfileComponentType = IdentityProfileComponentType;
|
|
536
|
+
exports.IdentityProfileConnectorType = IdentityProfileConnectorType;
|
|
537
|
+
exports.ImmutableProofComponentType = ImmutableProofComponentType;
|
|
538
|
+
exports.ImmutableStorageConnectorType = ImmutableStorageConnectorType;
|
|
539
|
+
exports.InformationComponentType = InformationComponentType;
|
|
540
|
+
exports.LoggingComponentType = LoggingComponentType;
|
|
541
|
+
exports.LoggingConnectorType = LoggingConnectorType;
|
|
542
|
+
exports.MimeTypeProcessorType = MimeTypeProcessorType;
|
|
543
|
+
exports.NftComponentType = NftComponentType;
|
|
544
|
+
exports.NftConnectorType = NftConnectorType;
|
|
545
|
+
exports.RestRouteProcessorType = RestRouteProcessorType;
|
|
546
|
+
exports.SocketRouteProcessorType = SocketRouteProcessorType;
|
|
547
|
+
exports.TelemetryComponentType = TelemetryComponentType;
|
|
548
|
+
exports.TelemetryConnectorType = TelemetryConnectorType;
|
|
549
|
+
exports.VaultConnectorType = VaultConnectorType;
|
|
550
|
+
exports.WalletConnectorType = WalletConnectorType;
|