@twin.org/move-to-json 0.0.3-next.8 → 0.9.0-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.
@@ -108,6 +108,9 @@
108
108
  "bigint": "Property \"{property}\" must be a bigint, it is \"{value}\"",
109
109
  "boolean": "Property \"{property}\" must be a boolean, it is \"{value}\"",
110
110
  "date": "Property \"{property}\" must be a date, it is \"{value}\"",
111
+ "dateString": "Property \"{property}\" must be a date-only string in ISO 8601 format, it is \"{value}\"",
112
+ "dateTimeString": "Property \"{property}\" must be a date-time string in ISO 8601 format, it is \"{value}\"",
113
+ "timeString": "Property \"{property}\" must be a time string in ISO 8601 format, it is \"{value}\"",
111
114
  "timestampMilliseconds": "Property \"{property}\" must be a timestamp in milliseconds, it is \"{value}\"",
112
115
  "timestampSeconds": "Property \"{property}\" must be a timestamp in seconds, it is \"{value}\"",
113
116
  "objectUndefined": "Property \"{property}\" must be an object, it is \"undefined\"",
@@ -120,11 +123,12 @@
120
123
  "arrayEndsWith": "Property \"{property}\" must be an array ending with [{endValues}], it is \"{value}\"",
121
124
  "uint8Array": "Property \"{property}\" must be a Uint8Array, it is \"{value}\"",
122
125
  "function": "Property \"{property}\" must be a function, it is \"{value}\"",
123
- "urn": "Property \"{property}\" must be a Urn formatted string, it is \"{value}\"",
124
- "url": "Property \"{property}\" must be a Url formatted string, it is \"{value}\"",
126
+ "urn": "Property \"{property}\" must be a URN formatted string, it is \"{value}\"",
127
+ "url": "Property \"{property}\" must be a URL formatted string, it is \"{value}\"",
125
128
  "email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
126
129
  "uuidV7": "Property \"{property}\" must be a UUIDv7 formatted string, it is \"{value}\"",
127
130
  "uuidV7Compact": "Property \"{property}\" must be a UUIDv7 formatted string in compact mode, it is \"{value}\"",
131
+ "duration": "Property \"{property}\" must be an ISO 8601 duration string, it is \"{value}\"",
128
132
  "length32Multiple": "Property \"{property}\" should be a multiple of 32, it is {value}",
129
133
  "lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}"
130
134
  },
@@ -157,6 +161,18 @@
157
161
  "jsonHelper": {
158
162
  "failedPatch": "Failed to patch the JSON object, patch index \"{index}\" failed"
159
163
  },
164
+ "mutex": {
165
+ "lockNotFound": "The key \"{key}\" has no active lock",
166
+ "lockAlreadyReleased": "The key \"{key}\" is not currently locked",
167
+ "lockTimeout": "Failed to acquire lock for key \"{key}\" within the timeout of {timeout} milliseconds",
168
+ "bufferFetchFailed": "Failed to retrieve shared buffer for key \"{key}\" from the main thread",
169
+ "invalidTimeout": "The timeout value \"{timeoutMs}\" is invalid, it must be a non-negative integer"
170
+ },
171
+ "sharedObjectBuffer": {
172
+ "notCreated": "The shared buffer for object \"{objectId}\" has not been created",
173
+ "capacityExceeded": "The payload size of {required} bytes exceeds the maximum capacity of {capacity} bytes for object \"{objectId}\"",
174
+ "bufferFetchFailed": "Failed to retrieve shared buffer for object \"{objectId}\" from the main thread"
175
+ },
160
176
  "ed25519": {
161
177
  "privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
162
178
  "publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
@@ -193,6 +209,9 @@
193
209
  "slip0010": {
194
210
  "invalidSeed": "The seed is invalid \"{seed}\""
195
211
  },
212
+ "pbkdf2": {
213
+ "keyLengthTooSmall": "The key length must be at least 1, it is \"{keyLength}\""
214
+ },
196
215
  "iota": {
197
216
  "insufficientFunds": "There were insufficient funds to complete the operation",
198
217
  "packageNotFoundOnNetwork": "The package \"{packageId}\" was not found on the network",
@@ -201,7 +220,13 @@
201
220
  "transactionFailed": "The transaction failed",
202
221
  "addressNotFound": "The address is missing could not be found from the seed \"{address}\"",
203
222
  "gasStationTransactionFailed": "The gas station transaction failed",
204
- "dryRunFailed": "The dry run execution failed"
223
+ "dryRunFailed": "The dry run execution failed",
224
+ "fundingFailed": "Fund the address from faucet failed",
225
+ "faucetRateLimit": "Faucet rate limit exceeded",
226
+ "missingPublicKey": "The public key is missing for vault key \"{keyName}\""
227
+ },
228
+ "vaultJwkStorage": {
229
+ "generateNotSupported": "Key generation is not supported; keys are managed by the vault"
205
230
  },
206
231
  "iotaIdentityUtils": {
207
232
  "getControllerCapInfoFailed": "Getting the controller capability info for the identity failed",
@@ -226,13 +251,18 @@
226
251
  "adminCapNotFound": "AdminCap object not found for type \"{adminCapType}\" and address \"{adminAddress}\"",
227
252
  "migrationStateNotFound": "MigrationState object not found for type \"{migrationStateType}\" and address \"{adminAddress}\""
228
253
  },
254
+ "entitySchemaDiffHelper": {
255
+ "duplicateOldProperty": "The oldProperties array contains a duplicate property key \"{property}\"",
256
+ "duplicateNewProperty": "The newProperties array contains a duplicate property key \"{property}\""
257
+ },
229
258
  "entitySchemaHelper": {
230
259
  "noIsPrimary": "Property \"entitySchema.properties\" must contain a value with isPrimary set",
231
260
  "multipleIsPrimary": "Property \"entitySchema.properties\" contains more than one property with isPrimary set",
232
261
  "invalidEntityProperties": "The schema has no properties defined, but the entity has properties",
233
262
  "invalidEntityProperty": "The entity value of \"{value}\" does not match the type \"{type}\" for property \"{property}\"",
234
263
  "invalidOptional": "The entity property \"{property}\" of type \"{type}\" is not optional, but no value has been provided",
235
- "invalidEntityKeys": "The entity had additional properties that are not in the schema, \"{keys}\""
264
+ "invalidEntityKeys": "The entity had additional properties that are not in the schema, \"{keys}\"",
265
+ "versionMustBeGreaterThanOrEqualZero": "Property \"entitySchema.version\" must be an integer >= 0, but got {version}"
236
266
  },
237
267
  "vaultConnectorHelper": {
238
268
  "invalidSignature": "The JSON Web token signature could not be verified"
@@ -263,13 +293,33 @@
263
293
  "invalidLinkHeaderURL": "URL for Link header cannot contain \">\" character.",
264
294
  "invalidLinkHeaderRel": "Relation type for Link header cannot contain \" character."
265
295
  },
296
+ "contextIdHelper": {
297
+ "contextIdMissing": "The context ID \"{key}\" is missing from the provided context IDs",
298
+ "contextIdSplitMismatch": "The context ID split parts length \"{actual}\" does not match the provided keys length \"{expected}\""
299
+ },
300
+ "contextIdStore": {
301
+ "asyncHooksNotAvailable": "Async Hooks are not available in this environment, please ensure you are running in Node.js"
302
+ },
303
+ "entityStorageHelper": {
304
+ "sortNotIndexed": "The property \"{property}\" is not indexed and cannot be used for sorting",
305
+ "propertyNotInSchema": "The property \"{property}\" does not exist in the schema and cannot be used for projection"
306
+ },
307
+ "migrationHelper": {
308
+ "migrateSchemaFailed": "Migration failed for schema \"{schemaName}\".",
309
+ "transformRequiredForProperty": "A transformation function is required to migrate property \"{from}\" to \"{to}\" of type \"{type}\"",
310
+ "coercionProducedUndefined": "Coercion of property \"{property}\" to type \"{type}\" produced undefined but the property is not optional"
311
+ },
312
+ "entityStorageVaultConnector": {
313
+ "keyAlreadyExists": "The key \"{existingId}\" already exists in the vault",
314
+ "keyNotFound": "The key \"{notFoundId}\" was not found in the vault",
315
+ "secretNotFound": "The secret \"{notFoundId}\" was not found in the vault",
316
+ "unsupportedKeyType": "The key type \"{keyType}\" is not supported",
317
+ "symmetricKeyHasNoPrivateKey": "The symmetric key \"{name}\" does not have a separate private key component",
318
+ "keyTypeMismatch": "The key type \"{keyType}\" does not match the requested encryption method \"{encryptionType}\""
319
+ },
266
320
  "iotaWalletConnector": {
267
321
  "transferFailed": "The wallet transfer failed."
268
322
  },
269
- "iotaFaucetConnector": {
270
- "fundingFailed": "Fund the address from faucet failed",
271
- "faucetRateLimit": "Faucet rate limit exceeded"
272
- },
273
323
  "envSetup": {
274
324
  "mnemonicMissing": "Missing required DEPLOYER_MNEMONIC environment variable for {network}. Set DEPLOYER_MNEMONIC in your environment or use --load-env to load from configuration file (e.g., configs/{network}.env).\n\nYou can generate a mnemonic using:\nnpx \"@twin.org/wallet-cli\" mnemonic --env wallet.env\n\nThen add the MNEMONIC value to your configs/{network}.env file:\n{mnemonicVar}=\"word1 word2 word3 ... word24\"\n\nSee configs/{network}.env.example for reference.",
275
325
  "mnemonicInvalidFormat": "Invalid DEPLOYER_MNEMONIC environment variable format for {network}. Please ensure {mnemonicVar} in your environment or configs/{network}.env contains a valid 24-word mnemonic phrase.",
@@ -351,10 +401,21 @@
351
401
  "info": {
352
402
  "iota": {
353
403
  "transactionCosts": "Transaction costs for operation \"{operation}\", \"{cost}\""
404
+ },
405
+ "memoryEntityStorageConnector": {
406
+ "storeTearingDown": "Tearing down entity storage",
407
+ "storeTornDown": "Entity storage torn down"
408
+ },
409
+ "migrationHelper": {
410
+ "migrateSchemaStarting": "Migrating schema \"{schemaName}\"",
411
+ "migrateSchemaFinalizing": "Finalizing migration of schema \"{schemaName}\"",
412
+ "migrateSchemaComplete": "Migration of schema \"{schemaName}\" complete"
354
413
  }
355
414
  },
356
- "errorMessages": {
357
- "fetch": "Fetch"
415
+ "health": {
416
+ "memoryEntityStorageConnector": {
417
+ "healthDescription": "Memory entity storage for \"{entityType}\" is always available"
418
+ }
358
419
  },
359
420
  "commands": {
360
421
  "build": {
@@ -1,6 +1,7 @@
1
1
  export * from "./cli.js";
2
2
  export * from "./commands/build.js";
3
3
  export * from "./commands/deploy.js";
4
+ export * from "./models/IContractConfig.js";
4
5
  export * from "./models/INetworkConfig.js";
5
6
  export * from "./utils/envSetup.js";
6
7
  export * from "./utils/iotaUtils.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Contract configuration interface
3
+ */
4
+ export interface IContractConfig {
5
+ /**
6
+ * The module name
7
+ */
8
+ moduleName: string;
9
+ /**
10
+ * The dependencies
11
+ */
12
+ dependencies?: string[];
13
+ /**
14
+ * The package controller configuration
15
+ */
16
+ packageController?: {
17
+ addressIndex: number;
18
+ };
19
+ }
@@ -1,4 +1,5 @@
1
1
  import type { NetworkTypes } from "@twin.org/dlt-iota";
2
+ import type { IContractConfig } from "./IContractConfig.js";
2
3
  /**
3
4
  * Network configuration interface
4
5
  */
@@ -36,12 +37,6 @@ export interface INetworkConfig {
36
37
  * The contracts configuration
37
38
  */
38
39
  contracts?: {
39
- [key: string]: {
40
- moduleName: string;
41
- dependencies?: string[];
42
- packageController?: {
43
- addressIndex: number;
44
- };
45
- };
40
+ [key: string]: IContractConfig;
46
41
  };
47
42
  }