@twin.org/identity-cli 0.0.2-next.7 → 0.0.2-next.9

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.
@@ -1182,7 +1182,7 @@ class CLI extends cliCore.CLIBase {
1182
1182
  return this.execute({
1183
1183
  title: "TWIN Identity",
1184
1184
  appName: "twin-identity",
1185
- version: "0.0.2-next.7", // x-release-please-version
1185
+ version: "0.0.2-next.9", // x-release-please-version
1186
1186
  icon: "🌍",
1187
1187
  supportsEnvFiles: true,
1188
1188
  overrideOutputWidth: options?.overrideOutputWidth,
@@ -1179,7 +1179,7 @@ class CLI extends CLIBase {
1179
1179
  return this.execute({
1180
1180
  title: "TWIN Identity",
1181
1181
  appName: "twin-identity",
1182
- version: "0.0.2-next.7", // x-release-please-version
1182
+ version: "0.0.2-next.9", // x-release-please-version
1183
1183
  icon: "🌍",
1184
1184
  supportsEnvFiles: true,
1185
1185
  overrideOutputWidth: options?.overrideOutputWidth,
@@ -39,11 +39,13 @@
39
39
  "beUrl": "{fieldName} must be a correctly formatted url",
40
40
  "beJSON": "{fieldName} must be correctly formatted JSON",
41
41
  "beEmail": "{fieldName} must be a correctly formatted e-mail address",
42
- "failed": "Validation failed",
43
- "failedObject": "Validation of \"{objectName}\" failed",
44
- "properties": {
45
- "keyAlreadyExists": "The key already exists"
46
- },
42
+ "minLengthRequired": "The value length should be at least {minLength}, it is {actualLength}",
43
+ "maxLengthRequired": "The value length should be at most {maxLength}, it is {actualLength}",
44
+ "repeatedCharacters": "The value should not contain repeated characters in sequence",
45
+ "atLeastOneLowerCase": "The value should contain at least one lowercase character",
46
+ "atLeastOneUpperCase": "The value should contain at least one uppercase character",
47
+ "atLeastOneNumber": "The value should contain at least one number",
48
+ "atLeastOneSpecialChar": "The value should contain at least one symbol",
47
49
  "schema": {
48
50
  "failedValidation": "The JSON schema failed validation, {message}",
49
51
  "missingType": "Failed to validate as there is no handler for type \"{dataType}\""
@@ -80,9 +82,7 @@
80
82
  "url": "Property \"{property}\" must be a Url formatted string, it is \"{value}\"",
81
83
  "email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
82
84
  "length32Multiple": "Property \"{property}\" should be a multiple of 32, it is {value}",
83
- "lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}",
84
- "length3Multiple": "Property \"{property}\" should be a multiple of 3, it is {value}",
85
- "greaterThan0": "Property \"{property}\" must be greater than zero, it is {value}"
85
+ "lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}"
86
86
  },
87
87
  "objectHelper": {
88
88
  "failedBytesToJSON": "Failed converting bytes to JSON",
@@ -98,7 +98,7 @@
98
98
  "noGet": "The requested {typeName} \"{name}\" does not exist in the factory"
99
99
  },
100
100
  "bitString": {
101
- "outOfRange": "The index should be >= 0 and less than the length of the bit string"
101
+ "outOfRange": "The index should be >= 0 and less than the length of the bit string, the index is \"{index}\" and the number of bit is \"{numberBits}\""
102
102
  },
103
103
  "base32": {
104
104
  "invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
@@ -112,10 +112,6 @@
112
112
  "jsonHelper": {
113
113
  "failedPatch": "Failed to patch the JSON object, patch index \"{index}\" failed"
114
114
  },
115
- "bip39": {
116
- "missingMnemonicWord": "The mnemonic contains a word not in the wordlist, \"{value}\"",
117
- "checksumMismatch": "The checksum does not match \"{newChecksum}\" != \"{checksumBits}\""
118
- },
119
115
  "ed25519": {
120
116
  "privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
121
117
  "publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
@@ -124,13 +120,6 @@
124
120
  "privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
125
121
  "publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
126
122
  },
127
- "x25519": {
128
- "invalidPublicKey": "Invalid Ed25519 Public Key"
129
- },
130
- "blake2b": {
131
- "outputLength64": "The output length should be between 1 and 64, it is \"{outputLength}\"",
132
- "keyLength64": "The key length should be between 1 and 64, it is \"{keyLength}\""
133
- },
134
123
  "sha512": {
135
124
  "bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
136
125
  },
@@ -153,46 +142,28 @@
153
142
  "lowerUpper": "The address my use either lowercase or uppercase, \"{bech32}\"",
154
143
  "dataTooShort": "The address does not contain enough data to decode, \"{bech32}\""
155
144
  },
156
- "pbkdf2": {
157
- "keyTooLong": "The requested key length \"{keyLength}\" is too long, based on the \"{macLength}\""
158
- },
159
- "chaCha20Poly1305": {
160
- "noAadWithData": "You can not set the aad when there is already data",
161
- "noAuthTag": "Can not finalise when the auth tag is not set",
162
- "authenticationFailed": "The data could not be authenticated",
163
- "authTagDecrypting": "Can not get the auth tag when decrypting",
164
- "authTagEncrypting": "Can not set the auth tag when encrypting",
165
- "noAuthTagSet": "The auth tag has not been set"
166
- },
167
145
  "bip44": {
168
146
  "unsupportedKeyType": "The key type \"{keyType}\" is not supported"
169
147
  },
170
148
  "slip0010": {
171
149
  "invalidSeed": "The seed is invalid \"{seed}\""
172
150
  },
173
- "rsa": {
174
- "noPrivateKey": "Private key is required for this operation",
175
- "invalidKeySize": "Invalid RSA key size"
176
- },
177
151
  "commands": {
178
152
  "common": {
179
153
  "missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
180
154
  "optionInvalidHex": "The \"{option}\" does not appear to be hex. \"{value}\"",
181
155
  "optionInvalidBase64": "The \"{option}\" does not appear to be base64. \"{value}\"",
182
156
  "optionInvalidHexBase64": "The \"{option}\" does not appear to be hex or base64. \"{value}\"",
183
- "optionInvalidBech32": "The \"{option}\" does not appear to be bech32. \"{value}\"",
184
157
  "optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
185
158
  "optionMaxValue": "The \"{option}\" option must be less than or equal to {maxValue}, it is {value}."
186
159
  },
187
- "address": {
188
- "seedMissingEnv": "The seed does not appear to be hex or base64, assuming it is an environment variable, but there is no environment variable with the name \"{env}\" set.",
189
- "seedInvalidEnv": "The seed does not appear to be hex or base64, assuming it is an environment variable, but there the environment variable is neither hex or base64. \"{envValue}\"",
190
- "seedInvalidFormat": "The seed does not appear to be hex, base64 or an environment variable. \"{seed}\""
191
- },
192
160
  "verifiable-credential-create": {
193
161
  "subjectJsonFileNotFound": "The subject JSON file was not found."
194
162
  },
195
163
  "proof-create": {
164
+ "documentJsonFileNotFound": "The document JSON file was not found."
165
+ },
166
+ "proof-verify": {
196
167
  "documentJsonFileNotFound": "The document JSON file was not found.",
197
168
  "proofJsonFileNotFound": "The proof JSON file was not found."
198
169
  }
@@ -213,11 +184,12 @@
213
184
  "invalidEntityKeys": "The entity had additional properties that are not in the schema, \"{keys}\""
214
185
  },
215
186
  "fetchHelper": {
216
- "decodingJSON": "Decoding JSON failed for route \"{route}\"",
187
+ "decodingJSON": "Decoding JSON failed for route \"{url}\"",
217
188
  "failureStatusText": "The request to the API failed: \"{statusText}\"",
218
189
  "connectivity": "The request failed, the API could be offline, or there are other connectivity issues",
219
190
  "timeout": "The request timed out",
220
- "general": "A general failure occurred during the request"
191
+ "general": "A general failure occurred during the request",
192
+ "retryLimitExceeded": "The retry limit was exceeded for route \"{url}\""
221
193
  },
222
194
  "jwt": {
223
195
  "noKeyOrSigner": "No key or signer was provided for JWT creation",
@@ -235,27 +207,25 @@
235
207
  },
236
208
  "verificationHelper": {
237
209
  "jwtDecodeFailed": "Decoding the JWT failed",
238
- "proofTypeNotSupported": "The proof type \"{proofType}\" is not supported",
239
210
  "proofMissingVerificationMethod": "The proof is missing the verification method"
240
211
  },
241
212
  "documentHelper": {
242
213
  "verificationMethodNotFound": "The verification method \"{methodName}\" of type \"{methodType}\" could not be found",
243
214
  "verificationMethodJwkNotFound": "The verification method \"{methodName}\" of type \"{methodType}\" is missing the JWK"
244
215
  },
216
+ "idHelper": {
217
+ "invalidDocumentId": "The document id \"{id}\" is invalid"
218
+ },
245
219
  "proofHelper": {
246
- "unsupportedProofType": "Proof type \"{proofType}\" not supported.",
247
- "proofMissing": "Proof is missing."
220
+ "unsupportedProofType": "Proof type \"{proofType}\" not supported."
248
221
  },
249
222
  "jsonWebSignature2020SignerVerifier": {
250
- "missingPrivateKey": "Private key is missing.",
251
- "missingPublicKey": "Public key is missing.",
252
- "missingProofValue": "Proof value is missing."
223
+ "missingJws": "JWS is missing from proof."
253
224
  },
254
225
  "dataIntegrityProofSignerVerifier": {
255
- "cryptosuiteNotSupported": "Cryptosuite \"{cryptosuite}\" is not supported.",
226
+ "cryptosuiteNotSupported": "Cryptosuite \"{cryptoSuite}\" is not supported.",
256
227
  "missingPrivateKey": "Private key is missing.",
257
- "missingPublicKey": "Public key is missing.",
258
- "missingProofValue": "Proof value is missing."
228
+ "missingPublicKey": "Public key is missing."
259
229
  },
260
230
  "multikeyHelper": {
261
231
  "invalidPublicKeyMultibase": "Public key multibase \"{publicKeyMultibase}\" is invalid.",
@@ -293,24 +263,14 @@
293
263
  "verifyProofFailed": "Verifying the signature for the data failed",
294
264
  "revokeVerifiableCredentialsFailed": "Revoking verifiable credentials failed",
295
265
  "unrevokeVerifiableCredentialsFailed": "Unrevoking verifiable credentials failed",
296
- "proofType": "The proof type must be DataIntegrityProof, it is currently {proofType}",
297
- "integerNegative": "The value must be a positive integer, it is currently {value}",
298
- "invalidDocumentIdFormat": "The document ID format is invalid, it is currently {documentId}",
299
266
  "invalidSubjectId": "The subject id format is invalid it must be a Url or Urn, it is \"{subjectId}\"",
300
267
  "missingControllerToken": "The controller token is missing",
301
- "unexpectedExecutionResult": "Could not extract DID from transaction result",
302
- "objectIdNotFound": "The object ID was not found in the created object",
303
- "gasStationError": "Gas station transaction execution failed",
304
- "gasStationTransactionBuildFailed": "Gas station transaction build failed",
305
- "gasStationTransactionFailed": "Gas station transaction failed",
306
- "gasStationDocumentUpdateFailed": "Gas station document update failed",
307
- "didExtractionFailed": "Failed to extract DID from transaction execution result",
308
- "transactionConfirmationTimeout": "Transaction confirmation timed out",
309
- "transactionBuildFailed": "Transaction build failed - unexpected build result format",
310
- "didResolutionFailed": "DID resolution failed",
311
- "didResolutionFailedAllRetries": "DID resolution failed after all retries",
312
- "invalidMaxRetries": "The maximum number of retries must be a positive integer, it is currently {maxRetries}",
313
- "invalidBaseDelay": "The base delay must be a positive integer, it is currently {baseDelay}"
268
+ "identityNotFound": "The identity could not be found \"{notFoundId}\"",
269
+ "revocationServiceNotFound": "The revocation service could not be found in the document",
270
+ "didExtractionFailed": "Extracting the DID from the document id failed",
271
+ "transactionConfirmationTimeout": "The transaction was not confirmed in the expected time",
272
+ "transactionBuildFailed": "Building the transaction failed",
273
+ "gasStationTransactionBuildFailed": "Building the gas station transaction failed"
314
274
  },
315
275
  "iota": {
316
276
  "insufficientFunds": "There were insufficient funds to complete the operation",
@@ -320,8 +280,7 @@
320
280
  "transactionFailed": "The transaction failed",
321
281
  "addressNotFound": "The address is missing could not be found from the seed \"{address}\"",
322
282
  "gasStationTransactionFailed": "The gas station transaction failed",
323
- "gasReservationFailed": "The gas reservation failed",
324
- "gasStationExecutionFailed": "The gas station execution failed"
283
+ "dryRunFailed": "The dry run execution failed"
325
284
  },
326
285
  "iotaSmartContractUtils": {
327
286
  "migrationFailed": "Smart contract migration failed",
@@ -368,7 +327,8 @@
368
327
  "alreadyExistsError": "Already Exists",
369
328
  "notImplementedError": "Not Implemented",
370
329
  "validationError": "Validation",
371
- "unprocessableError": "Unprocessable"
330
+ "unprocessableError": "Unprocessable",
331
+ "unauthorizedError": "Unauthorized"
372
332
  },
373
333
  "validation": {
374
334
  "defaultFieldName": "The field"
@@ -433,27 +393,11 @@
433
393
  "param": "--seed-format '<'format'>'",
434
394
  "description": "The format to output the seed."
435
395
  },
436
- "no-console": {
437
- "param": "--no-console",
438
- "description": "Hides the mnemonic and seed in the console."
439
- },
440
- "json": {
441
- "param": "--json '<'filename'>'",
442
- "description": "Creates a JSON file containing the mnemonic and seed."
443
- },
444
- "env": {
445
- "param": "--env '<'filename'>'",
446
- "description": "Creates an env file containing the mnemonic and seed."
447
- },
448
396
  "env-prefix": {
449
397
  "param": "--env-prefix '<'prefix'>'",
450
398
  "description": "Prefixes the env variables with the value."
451
399
  }
452
400
  },
453
- "progress": {
454
- "writingJsonFile": "Writing JSON file",
455
- "writingEnvFile": "Writing env file"
456
- },
457
401
  "labels": {
458
402
  "mnemonic": "Mnemonic",
459
403
  "seed": "Seed",
@@ -678,10 +622,6 @@
678
622
  "param": "--seed '<'seed'>'",
679
623
  "description": "The seed for the private key for the controller address of the document in hex or base64, or start with ! to read environment variable."
680
624
  },
681
- "did": {
682
- "param": "--did '<'did'>'",
683
- "description": "The identifier to remove the verification method from, or start with ! to read environment variable."
684
- },
685
625
  "id": {
686
626
  "param": "--id '<'id'>'",
687
627
  "description": "The id of verification method to remove."
@@ -937,10 +877,9 @@
937
877
  "errorMessages": {
938
878
  "fetch": "Fetch"
939
879
  },
940
- "verifiableCredentialStates": {
941
- "pendingVerification": "Pending Verification",
942
- "rejected": "Rejected",
943
- "issued": "Issued",
944
- "revoked": "Revoked"
880
+ "info": {
881
+ "iota": {
882
+ "transactionCosts": "Transaction costs for operation \"{operation}\", \"{cost}\""
883
+ }
945
884
  }
946
885
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @twin.org/identity-cli - Changelog
2
2
 
3
+ ## [0.0.2-next.9](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.2-next.8...identity-cli-v0.0.2-next.9) (2025-10-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * add validate-locales ([04d74b4](https://github.com/twinfoundation/identity/commit/04d74b4d1ebe42672e8ca75a7bdb8e3556afd0be))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/identity-models bumped from 0.0.2-next.8 to 0.0.2-next.9
16
+ * @twin.org/identity-connector-iota bumped from 0.0.2-next.8 to 0.0.2-next.9
17
+
18
+ ## [0.0.2-next.8](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.2-next.7...identity-cli-v0.0.2-next.8) (2025-09-25)
19
+
20
+
21
+ ### Miscellaneous Chores
22
+
23
+ * **identity-cli:** Synchronize repo versions
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/identity-models bumped from 0.0.2-next.7 to 0.0.2-next.8
31
+ * @twin.org/identity-connector-iota bumped from 0.0.2-next.7 to 0.0.2-next.8
32
+
3
33
  ## [0.0.2-next.7](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.2-next.6...identity-cli-v0.0.2-next.7) (2025-09-23)
4
34
 
5
35
 
package/locales/en.json CHANGED
@@ -5,6 +5,9 @@
5
5
  "subjectJsonFileNotFound": "The subject JSON file was not found."
6
6
  },
7
7
  "proof-create": {
8
+ "documentJsonFileNotFound": "The document JSON file was not found."
9
+ },
10
+ "proof-verify": {
8
11
  "documentJsonFileNotFound": "The document JSON file was not found.",
9
12
  "proofJsonFileNotFound": "The proof JSON file was not found."
10
13
  }
@@ -95,10 +98,6 @@
95
98
  "param": "--seed '<'seed'>'",
96
99
  "description": "The seed for the private key for the controller address of the document in hex or base64, or start with ! to read environment variable."
97
100
  },
98
- "did": {
99
- "param": "--did '<'did'>'",
100
- "description": "The identifier to remove the verification method from, or start with ! to read environment variable."
101
- },
102
101
  "id": {
103
102
  "param": "--id '<'id'>'",
104
103
  "description": "The id of verification method to remove."
@@ -363,6 +362,10 @@
363
362
  "network": {
364
363
  "param": "--network '<'network'>'",
365
364
  "description": "The network to use for the identity operation."
365
+ },
366
+ "explorer": {
367
+ "param": "--explorer '<'url'>'",
368
+ "description": "The url for the explorer endpoint, or an environment variable name containing the url."
366
369
  }
367
370
  },
368
371
  "labels": {
@@ -370,7 +373,6 @@
370
373
  "node": "Node",
371
374
  "explorer": "Explorer",
372
375
  "explore": "Explore",
373
- "connector": "Connector",
374
376
  "network": "Network"
375
377
  }
376
378
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-cli",
3
- "version": "0.0.2-next.7",
3
+ "version": "0.0.2-next.9",
4
4
  "description": "A command line interface for interacting with the identity connectors",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "@twin.org/data-json-ld": "next",
22
22
  "@twin.org/entity": "next",
23
23
  "@twin.org/entity-storage-connector-memory": "next",
24
- "@twin.org/identity-connector-iota": "0.0.2-next.7",
25
- "@twin.org/identity-models": "0.0.2-next.7",
24
+ "@twin.org/identity-connector-iota": "0.0.2-next.9",
25
+ "@twin.org/identity-models": "0.0.2-next.9",
26
26
  "@twin.org/nameof": "next",
27
27
  "@twin.org/standards-w3c-did": "next",
28
28
  "@twin.org/vault-connector-entity-storage": "next",
@@ -31,7 +31,7 @@
31
31
  "@twin.org/wallet-connector-iota": "next",
32
32
  "@twin.org/wallet-models": "next",
33
33
  "@twin.org/web": "next",
34
- "commander": "14.0.0"
34
+ "commander": "14.0.1"
35
35
  },
36
36
  "main": "./dist/cjs/index.cjs",
37
37
  "module": "./dist/esm/index.mjs",
@@ -54,5 +54,20 @@
54
54
  ],
55
55
  "bin": {
56
56
  "twin-identity": "bin/index.js"
57
- }
57
+ },
58
+ "keywords": [
59
+ "twin",
60
+ "trade",
61
+ "iota",
62
+ "framework",
63
+ "blockchain",
64
+ "identity",
65
+ "did",
66
+ "credentials",
67
+ "authentication"
68
+ ],
69
+ "bugs": {
70
+ "url": "git+https://github.com/twinfoundation/identity/issues"
71
+ },
72
+ "homepage": "https://twindev.org"
58
73
  }