@twin.org/engine 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.
@@ -0,0 +1,523 @@
1
+ # Interface: IEngineEnvironmentVariables
2
+
3
+ The engine core environment variables.
4
+
5
+ ## Properties
6
+
7
+ ### debug
8
+
9
+ > **debug**: `string`
10
+
11
+ Start the engine in debug mode.
12
+
13
+ ***
14
+
15
+ ### storageFileRoot
16
+
17
+ > **storageFileRoot**: `string`
18
+
19
+ The root directory for storing items like state file.
20
+
21
+ ***
22
+
23
+ ### stateFilename
24
+
25
+ > **stateFilename**: `string`
26
+
27
+ The name of the state file.
28
+
29
+ ***
30
+
31
+ ### entityStorageConnectorType
32
+
33
+ > **entityStorageConnectorType**: `string`
34
+
35
+ The type of the default entity storage: file, memory, aws-dynamodb, azure-cosmosdb, gcp-firestoredb, scylladb.
36
+
37
+ ***
38
+
39
+ ### entityStorageTablePrefix
40
+
41
+ > **entityStorageTablePrefix**: `string`
42
+
43
+ A prefix for all the table in entity-storage, can be empty.
44
+
45
+ ***
46
+
47
+ ### entityFileEnable
48
+
49
+ > **entityFileEnable**: `string`
50
+
51
+ Enable the file entity storage connector.
52
+
53
+ ***
54
+
55
+ ### entityMemoryEnable
56
+
57
+ > **entityMemoryEnable**: `string`
58
+
59
+ Enable the memory entity storage connector.
60
+
61
+ ***
62
+
63
+ ### awsDynamodbAccessKeyId
64
+
65
+ > **awsDynamodbAccessKeyId**: `string`
66
+
67
+ AWS Dynamo DB access key id.
68
+
69
+ ***
70
+
71
+ ### awsDynamodbEndpoint
72
+
73
+ > **awsDynamodbEndpoint**: `string`
74
+
75
+ AWS Dynamo DB Endpoint if running local instance.
76
+
77
+ ***
78
+
79
+ ### awsDynamodbRegion
80
+
81
+ > **awsDynamodbRegion**: `string`
82
+
83
+ AWS Dynamo DB region.
84
+
85
+ ***
86
+
87
+ ### awsDynamodbSecretAccessKey
88
+
89
+ > **awsDynamodbSecretAccessKey**: `string`
90
+
91
+ AWS Dynamo DB secret access key.
92
+
93
+ ***
94
+
95
+ ### azureCosmosdbKey
96
+
97
+ > **azureCosmosdbKey**: `string`
98
+
99
+ Azure Cosmos DB key.
100
+
101
+ ***
102
+
103
+ ### azureCosmosdbContainerId
104
+
105
+ > **azureCosmosdbContainerId**: `string`
106
+
107
+ Azure Cosmos DB container id.
108
+
109
+ ***
110
+
111
+ ### azureCosmosdbDatabaseId
112
+
113
+ > **azureCosmosdbDatabaseId**: `string`
114
+
115
+ Azure Cosmos DB database id.
116
+
117
+ ***
118
+
119
+ ### azureCosmosdbEndpoint
120
+
121
+ > **azureCosmosdbEndpoint**: `string`
122
+
123
+ Azure Cosmos DB endpoint.
124
+
125
+ ***
126
+
127
+ ### gcpFirestoreCollectionName
128
+
129
+ > **gcpFirestoreCollectionName**: `string`
130
+
131
+ GCP Firestore collection name.
132
+
133
+ ***
134
+
135
+ ### gcpFirestoreCredentials
136
+
137
+ > **gcpFirestoreCredentials**: `string`
138
+
139
+ GCP Firestore credentials.
140
+
141
+ ***
142
+
143
+ ### gcpFirestoreDatabaseId
144
+
145
+ > **gcpFirestoreDatabaseId**: `string`
146
+
147
+ GCP Firestore database id.
148
+
149
+ ***
150
+
151
+ ### gcpFirestoreApiEndpoint
152
+
153
+ > **gcpFirestoreApiEndpoint**: `string`
154
+
155
+ GCP Firestore endpoint.
156
+
157
+ ***
158
+
159
+ ### gcpFirestoreProjectId
160
+
161
+ > **gcpFirestoreProjectId**: `string`
162
+
163
+ GCP Firestore project id.
164
+
165
+ ***
166
+
167
+ ### scylladbHosts
168
+
169
+ > **scylladbHosts**: `string`
170
+
171
+ ScyllaDB hosts as comma separated string.
172
+
173
+ ***
174
+
175
+ ### scylladbKeyspace
176
+
177
+ > **scylladbKeyspace**: `string`
178
+
179
+ ScyllaDB keyspace.
180
+
181
+ ***
182
+
183
+ ### scylladbLocalDataCenter
184
+
185
+ > **scylladbLocalDataCenter**: `string`
186
+
187
+ ScyllaDB local data center.
188
+
189
+ ***
190
+
191
+ ### ipfsBearerToken
192
+
193
+ > **ipfsBearerToken**: `string`
194
+
195
+ The security token for accessing IPFS API.
196
+
197
+ ***
198
+
199
+ ### ipfsApiUrl
200
+
201
+ > **ipfsApiUrl**: `string`
202
+
203
+ The url for accessing IPFS API.
204
+
205
+ ***
206
+
207
+ ### blobStorageConnectorType
208
+
209
+ > **blobStorageConnectorType**: `string`
210
+
211
+ The type of the default blob storage: memory, file, ipfs, aws-s3, azure-storage, gcp-storage.
212
+
213
+ ***
214
+
215
+ ### blobStorageEnableEncryption
216
+
217
+ > **blobStorageEnableEncryption**: `string`
218
+
219
+ Enable encryption for the blob storage.
220
+
221
+ ***
222
+
223
+ ### blobStorageEncryptionKey
224
+
225
+ > **blobStorageEncryptionKey**: `string`
226
+
227
+ The encryption key for the blob storage.
228
+
229
+ ***
230
+
231
+ ### blobStoragePrefix
232
+
233
+ > **blobStoragePrefix**: `string`
234
+
235
+ A prefix for all the blobs in blob-storage, can be empty.
236
+
237
+ ***
238
+
239
+ ### blobFileEnable
240
+
241
+ > **blobFileEnable**: `string`
242
+
243
+ Enable the file blob storage connector.
244
+
245
+ ***
246
+
247
+ ### blobMemoryEnable
248
+
249
+ > **blobMemoryEnable**: `string`
250
+
251
+ Enable the memory blob storage connector.
252
+
253
+ ***
254
+
255
+ ### awsS3AccessKeyId
256
+
257
+ > **awsS3AccessKeyId**: `string`
258
+
259
+ AWS S3 access key id.
260
+
261
+ ***
262
+
263
+ ### awsS3BucketName
264
+
265
+ > **awsS3BucketName**: `string`
266
+
267
+ AWS S3 bucket name.
268
+
269
+ ***
270
+
271
+ ### awsS3Endpoint
272
+
273
+ > **awsS3Endpoint**: `string`
274
+
275
+ AWS S3 endpoint.
276
+
277
+ ***
278
+
279
+ ### awsS3Region
280
+
281
+ > **awsS3Region**: `string`
282
+
283
+ AWS S3 region.
284
+
285
+ ***
286
+
287
+ ### awsS3SecretAccessKey
288
+
289
+ > **awsS3SecretAccessKey**: `string`
290
+
291
+ AWS S3 secret access key.
292
+
293
+ ***
294
+
295
+ ### azureStorageAccountKey
296
+
297
+ > **azureStorageAccountKey**: `string`
298
+
299
+ Azure Storage account key.
300
+
301
+ ***
302
+
303
+ ### azureStorageAccountName
304
+
305
+ > **azureStorageAccountName**: `string`
306
+
307
+ Azure Storage account name.
308
+
309
+ ***
310
+
311
+ ### azureStorageContainerName
312
+
313
+ > **azureStorageContainerName**: `string`
314
+
315
+ Azure Storage container.
316
+
317
+ ***
318
+
319
+ ### azureStorageEndpoint
320
+
321
+ > **azureStorageEndpoint**: `string`
322
+
323
+ Azure Storage endpoint.
324
+
325
+ ***
326
+
327
+ ### gcpStorageBucketName
328
+
329
+ > **gcpStorageBucketName**: `string`
330
+
331
+ GCP Storage bucket.
332
+
333
+ ***
334
+
335
+ ### gcpStorageCredentials
336
+
337
+ > **gcpStorageCredentials**: `string`
338
+
339
+ GCP Storage credentials.
340
+
341
+ ***
342
+
343
+ ### gcpStorageEndpoint
344
+
345
+ > **gcpStorageEndpoint**: `string`
346
+
347
+ GCP Storage endpoint.
348
+
349
+ ***
350
+
351
+ ### gcpStorageProjectId
352
+
353
+ > **gcpStorageProjectId**: `string`
354
+
355
+ GCP Storage project id.
356
+
357
+ ***
358
+
359
+ ### vaultConnector
360
+
361
+ > **vaultConnector**: `string`
362
+
363
+ The type of the default vault connector: entity-storage, hashicorp.
364
+
365
+ ***
366
+
367
+ ### hashicorpVaultToken
368
+
369
+ > **hashicorpVaultToken**: `string`
370
+
371
+ Hashicorp Vault token.
372
+
373
+ ***
374
+
375
+ ### hashicorpVaultEndpoint
376
+
377
+ > **hashicorpVaultEndpoint**: `string`
378
+
379
+ Hashicorp Vault endpoint.
380
+
381
+ ***
382
+
383
+ ### loggingConnector
384
+
385
+ > **loggingConnector**: `string`
386
+
387
+ The type of background task connector, can be a comma separated list: console, entity-storage.
388
+
389
+ ***
390
+
391
+ ### backgroundTaskConnector
392
+
393
+ > **backgroundTaskConnector**: `string`
394
+
395
+ The type of background task connector: entity-storage.
396
+
397
+ ***
398
+
399
+ ### telemetryConnector
400
+
401
+ > **telemetryConnector**: `string`
402
+
403
+ The type of telemetry connector: entity-storage.
404
+
405
+ ***
406
+
407
+ ### faucetConnector
408
+
409
+ > **faucetConnector**: `string`
410
+
411
+ The type of faucet connector: entity-storage, iota.
412
+
413
+ ***
414
+
415
+ ### walletConnector
416
+
417
+ > **walletConnector**: `string`
418
+
419
+ The type of wallet connector: entity-storage, iota.
420
+
421
+ ***
422
+
423
+ ### nftConnector
424
+
425
+ > **nftConnector**: `string`
426
+
427
+ The type of NFT connector: entity-storage, iota.
428
+
429
+ ***
430
+
431
+ ### identityConnector
432
+
433
+ > **identityConnector**: `string`
434
+
435
+ The type of identity connector: entity-storage, iota.
436
+
437
+ ***
438
+
439
+ ### immutableStorageConnector
440
+
441
+ > **immutableStorageConnector**: `string`
442
+
443
+ The type of immutable storage connector: entity-storage, iota.
444
+
445
+ ***
446
+
447
+ ### iotaFaucetEndpoint
448
+
449
+ > **iotaFaucetEndpoint**: `string`
450
+
451
+ IOTA Faucet Endpoint.
452
+
453
+ ***
454
+
455
+ ### iotaNodeEndpoint
456
+
457
+ > **iotaNodeEndpoint**: `string`
458
+
459
+ IOTA Node Endpoint.
460
+
461
+ ***
462
+
463
+ ### iotaBech32Hrp
464
+
465
+ > **iotaBech32Hrp**: `string`
466
+
467
+ IOTA Bech32 HRP
468
+
469
+ ***
470
+
471
+ ### iotaCoinType
472
+
473
+ > **iotaCoinType**: `string`
474
+
475
+ IOTA coin type.
476
+
477
+ ***
478
+
479
+ ### iotaExplorerEndpoint
480
+
481
+ > **iotaExplorerEndpoint**: `string`
482
+
483
+ IOTA Explorer Endpoint.
484
+
485
+ ***
486
+
487
+ ### identityProfileConnector
488
+
489
+ > **identityProfileConnector**: `string`
490
+
491
+ The type of identity profile connector: entity-storage.
492
+
493
+ ***
494
+
495
+ ### immutableProofAssertionMethodId
496
+
497
+ > **immutableProofAssertionMethodId**: `string`
498
+
499
+ The identity assertion method id to use with immutable proofs.
500
+
501
+ ***
502
+
503
+ ### immutableProofHashKeyId
504
+
505
+ > **immutableProofHashKeyId**: `string`
506
+
507
+ The hash key from the vault to use with immutable proofs.
508
+
509
+ ***
510
+
511
+ ### attestationConnector
512
+
513
+ > **attestationConnector**: `string`
514
+
515
+ The type of attestation connector: entity-storage, iota.
516
+
517
+ ***
518
+
519
+ ### attestationAssertionMethodId
520
+
521
+ > **attestationAssertionMethodId**: `string`
522
+
523
+ The identity assertion method id to use with attestation.
@@ -0,0 +1,43 @@
1
+ {
2
+ "error": {
3
+ "engineCore": {
4
+ "connectorUnknownType": "Unknown connector type \"{type}\" specified for \"{connectorType}\"",
5
+ "componentUnknownType": "Unknown component type \"{type}\" specified for \"{componentType}\"",
6
+ "entityStorageCustomMissing": "Entity storage custom \"{typeCustom}\" missing for component \"{storageName}\"",
7
+ "entityStorageMissing": "Entity storage configuration missing for component \"{storageName}\"",
8
+ "bootstrapFailed": "Bootstrap failed for component \"{component}\", please check the logs for more information",
9
+ "componentStopFailed": "Failed to stop component \"{component}\"",
10
+ "moduleMethodFailed": "Failed to load method \"{method}\" from module \"{module}\""
11
+ },
12
+ "fileStateStorage": {
13
+ "failedLoading": "Failed to load file state storage from \"{filename}\"",
14
+ "failedSaving": "Failed to save file state storage to \"{filename}\""
15
+ }
16
+ },
17
+ "engineCore": {
18
+ "debuggingEnabled": "Debugging is enabled",
19
+ "starting": "Engine is starting",
20
+ "started": "Engine has started",
21
+ "stopping": "Engine is stopping",
22
+ "stopped": "Engine has stopped",
23
+ "configuring": "Configuring {element}",
24
+ "configuringEntityStorage": "Configuring {element} with name \"{storageName}\" using \"{storageType}\" connector",
25
+ "bootstrapStarted": "Bootstrap started",
26
+ "bootstrapComplete": "Bootstrap complete",
27
+ "bootstrapping": "Bootstrap {element}",
28
+ "componentsStarting": "Components are starting",
29
+ "componentsComplete": "Components have started",
30
+ "componentsStopping": "Components are stopping",
31
+ "componentsStopped": "Components have stopped",
32
+ "componentStarting": "Starting {element}",
33
+ "componentStopping": "Stopping {element}"
34
+ },
35
+ "fileStateStorage": {
36
+ "loading": "Loading state from file storage with filename \"{filename}\"",
37
+ "saving": "Saving state to file storage with filename \"{filename}\""
38
+ },
39
+ "memoryStateStorage": {
40
+ "loading": "Loading state from memory",
41
+ "saving": "Saving state to memory"
42
+ }
43
+ }
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@twin.org/engine",
3
+ "version": "0.0.1-next.14",
4
+ "description": "Engine implementation.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/twinfoundation/engine.git",
8
+ "directory": "packages/engine-core"
9
+ },
10
+ "author": "martyn.janes@iota.org",
11
+ "license": "Apache-2.0",
12
+ "type": "module",
13
+ "engines": {
14
+ "node": ">=20.0.0"
15
+ },
16
+ "dependencies": {
17
+ "@twin.org/core": "next",
18
+ "@twin.org/engine-core": "0.0.1-next.14",
19
+ "@twin.org/engine-types": "0.0.1-next.14"
20
+ },
21
+ "main": "./dist/cjs/index.cjs",
22
+ "module": "./dist/esm/index.mjs",
23
+ "types": "./dist/types/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "require": "./dist/cjs/index.cjs",
27
+ "import": "./dist/esm/index.mjs",
28
+ "types": "./dist/types/index.d.ts"
29
+ },
30
+ "./locales/*.json": "./locales/*.json"
31
+ },
32
+ "files": [
33
+ "dist/cjs",
34
+ "dist/esm",
35
+ "dist/types",
36
+ "locales",
37
+ "docs"
38
+ ]
39
+ }