@twin.org/identity-cli 0.0.2-next.8 → 0.0.3-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.
Files changed (55) hide show
  1. package/bin/index.js +1 -1
  2. package/dist/es/cli.js +69 -0
  3. package/dist/es/cli.js.map +1 -0
  4. package/dist/es/commands/identityCreate.js +96 -0
  5. package/dist/es/commands/identityCreate.js.map +1 -0
  6. package/dist/es/commands/identityResolve.js +87 -0
  7. package/dist/es/commands/identityResolve.js.map +1 -0
  8. package/dist/es/commands/proofCreate.js +102 -0
  9. package/dist/es/commands/proofCreate.js.map +1 -0
  10. package/dist/es/commands/proofVerify.js +92 -0
  11. package/dist/es/commands/proofVerify.js.map +1 -0
  12. package/dist/es/commands/serviceAdd.js +112 -0
  13. package/dist/es/commands/serviceAdd.js.map +1 -0
  14. package/dist/es/commands/serviceRemove.js +93 -0
  15. package/dist/es/commands/serviceRemove.js.map +1 -0
  16. package/dist/es/commands/setupCommands.js +66 -0
  17. package/dist/es/commands/setupCommands.js.map +1 -0
  18. package/dist/es/commands/verifiableCredentialCreate.js +113 -0
  19. package/dist/es/commands/verifiableCredentialCreate.js.map +1 -0
  20. package/dist/es/commands/verifiableCredentialRevoke.js +77 -0
  21. package/dist/es/commands/verifiableCredentialRevoke.js.map +1 -0
  22. package/dist/es/commands/verifiableCredentialUnrevoke.js +77 -0
  23. package/dist/es/commands/verifiableCredentialUnrevoke.js.map +1 -0
  24. package/dist/es/commands/verifiableCredentialVerify.js +83 -0
  25. package/dist/es/commands/verifiableCredentialVerify.js.map +1 -0
  26. package/dist/es/commands/verificationMethodAdd.js +140 -0
  27. package/dist/es/commands/verificationMethodAdd.js.map +1 -0
  28. package/dist/es/commands/verificationMethodRemove.js +93 -0
  29. package/dist/es/commands/verificationMethodRemove.js.map +1 -0
  30. package/dist/es/index.js +19 -0
  31. package/dist/es/index.js.map +1 -0
  32. package/dist/es/models/identityConnectorTypes.js +13 -0
  33. package/dist/es/models/identityConnectorTypes.js.map +1 -0
  34. package/dist/es/models/identityResolverConnectorTypes.js +13 -0
  35. package/dist/es/models/identityResolverConnectorTypes.js.map +1 -0
  36. package/dist/locales/en.json +40 -98
  37. package/dist/types/commands/identityCreate.d.ts +1 -1
  38. package/dist/types/commands/identityResolve.d.ts +1 -1
  39. package/dist/types/commands/proofCreate.d.ts +1 -1
  40. package/dist/types/commands/proofVerify.d.ts +1 -1
  41. package/dist/types/commands/serviceAdd.d.ts +1 -1
  42. package/dist/types/commands/serviceRemove.d.ts +1 -1
  43. package/dist/types/commands/setupCommands.d.ts +2 -2
  44. package/dist/types/commands/verifiableCredentialCreate.d.ts +1 -1
  45. package/dist/types/commands/verifiableCredentialRevoke.d.ts +1 -1
  46. package/dist/types/commands/verifiableCredentialUnrevoke.d.ts +1 -1
  47. package/dist/types/commands/verifiableCredentialVerify.d.ts +1 -1
  48. package/dist/types/commands/verificationMethodAdd.d.ts +1 -1
  49. package/dist/types/commands/verificationMethodRemove.d.ts +1 -1
  50. package/dist/types/index.d.ts +16 -16
  51. package/docs/changelog.md +65 -0
  52. package/locales/en.json +7 -5
  53. package/package.json +24 -11
  54. package/dist/cjs/index.cjs +0 -1248
  55. package/dist/esm/index.mjs +0 -1216
@@ -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}\""
@@ -81,8 +83,8 @@
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
85
  "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}"
86
+ "didPartsTooFew": "The DID \"{value}\" is invalid: expected at least 3 parts but got fewer",
87
+ "didInvalidStart": "The DID \"{value}\" is invalid: expected to start with 'did'"
86
88
  },
87
89
  "objectHelper": {
88
90
  "failedBytesToJSON": "Failed converting bytes to JSON",
@@ -98,7 +100,7 @@
98
100
  "noGet": "The requested {typeName} \"{name}\" does not exist in the factory"
99
101
  },
100
102
  "bitString": {
101
- "outOfRange": "The index should be >= 0 and less than the length of the bit string"
103
+ "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
104
  },
103
105
  "base32": {
104
106
  "invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
@@ -112,10 +114,6 @@
112
114
  "jsonHelper": {
113
115
  "failedPatch": "Failed to patch the JSON object, patch index \"{index}\" failed"
114
116
  },
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
117
  "ed25519": {
120
118
  "privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
121
119
  "publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
@@ -124,13 +122,6 @@
124
122
  "privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
125
123
  "publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
126
124
  },
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
125
  "sha512": {
135
126
  "bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
136
127
  },
@@ -153,46 +144,28 @@
153
144
  "lowerUpper": "The address my use either lowercase or uppercase, \"{bech32}\"",
154
145
  "dataTooShort": "The address does not contain enough data to decode, \"{bech32}\""
155
146
  },
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
147
  "bip44": {
168
148
  "unsupportedKeyType": "The key type \"{keyType}\" is not supported"
169
149
  },
170
150
  "slip0010": {
171
151
  "invalidSeed": "The seed is invalid \"{seed}\""
172
152
  },
173
- "rsa": {
174
- "noPrivateKey": "Private key is required for this operation",
175
- "invalidKeySize": "Invalid RSA key size"
176
- },
177
153
  "commands": {
178
154
  "common": {
179
155
  "missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
180
156
  "optionInvalidHex": "The \"{option}\" does not appear to be hex. \"{value}\"",
181
157
  "optionInvalidBase64": "The \"{option}\" does not appear to be base64. \"{value}\"",
182
158
  "optionInvalidHexBase64": "The \"{option}\" does not appear to be hex or base64. \"{value}\"",
183
- "optionInvalidBech32": "The \"{option}\" does not appear to be bech32. \"{value}\"",
184
159
  "optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
185
160
  "optionMaxValue": "The \"{option}\" option must be less than or equal to {maxValue}, it is {value}."
186
161
  },
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
162
  "verifiable-credential-create": {
193
163
  "subjectJsonFileNotFound": "The subject JSON file was not found."
194
164
  },
195
165
  "proof-create": {
166
+ "documentJsonFileNotFound": "The document JSON file was not found."
167
+ },
168
+ "proof-verify": {
196
169
  "documentJsonFileNotFound": "The document JSON file was not found.",
197
170
  "proofJsonFileNotFound": "The proof JSON file was not found."
198
171
  }
@@ -213,11 +186,12 @@
213
186
  "invalidEntityKeys": "The entity had additional properties that are not in the schema, \"{keys}\""
214
187
  },
215
188
  "fetchHelper": {
216
- "decodingJSON": "Decoding JSON failed for route \"{route}\"",
189
+ "decodingJSON": "Decoding JSON failed for route \"{url}\"",
217
190
  "failureStatusText": "The request to the API failed: \"{statusText}\"",
218
191
  "connectivity": "The request failed, the API could be offline, or there are other connectivity issues",
219
192
  "timeout": "The request timed out",
220
- "general": "A general failure occurred during the request"
193
+ "general": "A general failure occurred during the request",
194
+ "retryLimitExceeded": "The retry limit was exceeded for route \"{url}\""
221
195
  },
222
196
  "jwt": {
223
197
  "noKeyOrSigner": "No key or signer was provided for JWT creation",
@@ -233,32 +207,31 @@
233
207
  "createFailed": "Failed to create JWS",
234
208
  "verifyFailed": "Failed to verify JWS"
235
209
  },
210
+ "contextIdHelper": {
211
+ "contextIdMissing": "The context ID \"{key}\" is missing from the provided context IDs",
212
+ "contextIdSplitMismatch": "The context ID split parts length \"{actual}\" does not match the provided keys length \"{expected}\""
213
+ },
214
+ "contextIdStore": {
215
+ "asyncHooksNotAvailable": "Async Hooks are not available in this environment, please ensure you are running in Node.js"
216
+ },
236
217
  "verificationHelper": {
237
218
  "jwtDecodeFailed": "Decoding the JWT failed",
238
- "proofTypeNotSupported": "The proof type \"{proofType}\" is not supported",
239
219
  "proofMissingVerificationMethod": "The proof is missing the verification method"
240
220
  },
241
221
  "documentHelper": {
242
222
  "verificationMethodNotFound": "The verification method \"{methodName}\" of type \"{methodType}\" could not be found",
243
223
  "verificationMethodJwkNotFound": "The verification method \"{methodName}\" of type \"{methodType}\" is missing the JWK"
244
224
  },
245
- "idHelper": {
246
- "invalidDocumentId": "The document id \"{id}\" is invalid"
247
- },
248
225
  "proofHelper": {
249
- "unsupportedProofType": "Proof type \"{proofType}\" not supported.",
250
- "proofMissing": "Proof is missing."
226
+ "unsupportedProofType": "Proof type \"{proofType}\" not supported."
251
227
  },
252
228
  "jsonWebSignature2020SignerVerifier": {
253
- "missingPrivateKey": "Private key is missing.",
254
- "missingPublicKey": "Public key is missing.",
255
- "missingProofValue": "Proof value is missing."
229
+ "missingJws": "JWS is missing from proof."
256
230
  },
257
231
  "dataIntegrityProofSignerVerifier": {
258
- "cryptosuiteNotSupported": "Cryptosuite \"{cryptosuite}\" is not supported.",
232
+ "cryptosuiteNotSupported": "Cryptosuite \"{cryptoSuite}\" is not supported.",
259
233
  "missingPrivateKey": "Private key is missing.",
260
- "missingPublicKey": "Public key is missing.",
261
- "missingProofValue": "Proof value is missing."
234
+ "missingPublicKey": "Public key is missing."
262
235
  },
263
236
  "multikeyHelper": {
264
237
  "invalidPublicKeyMultibase": "Public key multibase \"{publicKeyMultibase}\" is invalid.",
@@ -296,24 +269,14 @@
296
269
  "verifyProofFailed": "Verifying the signature for the data failed",
297
270
  "revokeVerifiableCredentialsFailed": "Revoking verifiable credentials failed",
298
271
  "unrevokeVerifiableCredentialsFailed": "Unrevoking verifiable credentials failed",
299
- "proofType": "The proof type must be DataIntegrityProof, it is currently {proofType}",
300
- "integerNegative": "The value must be a positive integer, it is currently {value}",
301
- "invalidDocumentIdFormat": "The document ID format is invalid, it is currently {documentId}",
302
272
  "invalidSubjectId": "The subject id format is invalid it must be a Url or Urn, it is \"{subjectId}\"",
303
273
  "missingControllerToken": "The controller token is missing",
304
- "unexpectedExecutionResult": "Could not extract DID from transaction result",
305
- "objectIdNotFound": "The object ID was not found in the created object",
306
- "gasStationError": "Gas station transaction execution failed",
307
- "gasStationTransactionBuildFailed": "Gas station transaction build failed",
308
- "gasStationTransactionFailed": "Gas station transaction failed",
309
- "gasStationDocumentUpdateFailed": "Gas station document update failed",
310
- "didExtractionFailed": "Failed to extract DID from transaction execution result",
311
- "transactionConfirmationTimeout": "Transaction confirmation timed out",
312
- "transactionBuildFailed": "Transaction build failed - unexpected build result format",
313
- "didResolutionFailed": "DID resolution failed",
314
- "didResolutionFailedAllRetries": "DID resolution failed after all retries",
315
- "invalidMaxRetries": "The maximum number of retries must be a positive integer, it is currently {maxRetries}",
316
- "invalidBaseDelay": "The base delay must be a positive integer, it is currently {baseDelay}"
274
+ "identityNotFound": "The identity could not be found \"{notFoundId}\"",
275
+ "revocationServiceNotFound": "The revocation service could not be found in the document",
276
+ "didExtractionFailed": "Extracting the DID from the document id failed",
277
+ "transactionConfirmationTimeout": "The transaction was not confirmed in the expected time",
278
+ "transactionBuildFailed": "Building the transaction failed",
279
+ "gasStationTransactionBuildFailed": "Building the gas station transaction failed"
317
280
  },
318
281
  "iota": {
319
282
  "insufficientFunds": "There were insufficient funds to complete the operation",
@@ -323,8 +286,7 @@
323
286
  "transactionFailed": "The transaction failed",
324
287
  "addressNotFound": "The address is missing could not be found from the seed \"{address}\"",
325
288
  "gasStationTransactionFailed": "The gas station transaction failed",
326
- "gasReservationFailed": "The gas reservation failed",
327
- "gasStationExecutionFailed": "The gas station execution failed"
289
+ "dryRunFailed": "The dry run execution failed"
328
290
  },
329
291
  "iotaSmartContractUtils": {
330
292
  "migrationFailed": "Smart contract migration failed",
@@ -371,7 +333,8 @@
371
333
  "alreadyExistsError": "Already Exists",
372
334
  "notImplementedError": "Not Implemented",
373
335
  "validationError": "Validation",
374
- "unprocessableError": "Unprocessable"
336
+ "unprocessableError": "Unprocessable",
337
+ "unauthorizedError": "Unauthorized"
375
338
  },
376
339
  "validation": {
377
340
  "defaultFieldName": "The field"
@@ -436,27 +399,11 @@
436
399
  "param": "--seed-format '<'format'>'",
437
400
  "description": "The format to output the seed."
438
401
  },
439
- "no-console": {
440
- "param": "--no-console",
441
- "description": "Hides the mnemonic and seed in the console."
442
- },
443
- "json": {
444
- "param": "--json '<'filename'>'",
445
- "description": "Creates a JSON file containing the mnemonic and seed."
446
- },
447
- "env": {
448
- "param": "--env '<'filename'>'",
449
- "description": "Creates an env file containing the mnemonic and seed."
450
- },
451
402
  "env-prefix": {
452
403
  "param": "--env-prefix '<'prefix'>'",
453
404
  "description": "Prefixes the env variables with the value."
454
405
  }
455
406
  },
456
- "progress": {
457
- "writingJsonFile": "Writing JSON file",
458
- "writingEnvFile": "Writing env file"
459
- },
460
407
  "labels": {
461
408
  "mnemonic": "Mnemonic",
462
409
  "seed": "Seed",
@@ -681,10 +628,6 @@
681
628
  "param": "--seed '<'seed'>'",
682
629
  "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."
683
630
  },
684
- "did": {
685
- "param": "--did '<'did'>'",
686
- "description": "The identifier to remove the verification method from, or start with ! to read environment variable."
687
- },
688
631
  "id": {
689
632
  "param": "--id '<'id'>'",
690
633
  "description": "The id of verification method to remove."
@@ -940,10 +883,9 @@
940
883
  "errorMessages": {
941
884
  "fetch": "Fetch"
942
885
  },
943
- "verifiableCredentialStates": {
944
- "pendingVerification": "Pending Verification",
945
- "rejected": "Rejected",
946
- "issued": "Issued",
947
- "revoked": "Revoked"
886
+ "info": {
887
+ "iota": {
888
+ "transactionCosts": "Transaction costs for operation \"{operation}\", \"{cost}\""
889
+ }
948
890
  }
949
891
  }
@@ -1,6 +1,6 @@
1
1
  import { type CliOutputOptions } from "@twin.org/cli-core";
2
2
  import { Command } from "commander";
3
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
3
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
4
4
  /**
5
5
  * Build the identity create command for the CLI.
6
6
  * @returns The command.
@@ -1,6 +1,6 @@
1
1
  import { type CliOutputOptions } from "@twin.org/cli-core";
2
2
  import { Command } from "commander";
3
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
3
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
4
4
  /**
5
5
  * Build the identity resolve command for the CLI.
6
6
  * @returns The command.
@@ -1,6 +1,6 @@
1
1
  import { type CliOutputOptions } from "@twin.org/cli-core";
2
2
  import { Command } from "commander";
3
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
3
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
4
4
  /**
5
5
  * Build the proof create command for the CLI.
6
6
  * @returns The command.
@@ -1,6 +1,6 @@
1
1
  import { type CliOutputOptions } from "@twin.org/cli-core";
2
2
  import { Command } from "commander";
3
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
3
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
4
4
  /**
5
5
  * Build the proof verify command for the CLI.
6
6
  * @returns The command.
@@ -1,6 +1,6 @@
1
1
  import { type CliOutputOptions } from "@twin.org/cli-core";
2
2
  import { Command } from "commander";
3
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
3
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
4
4
  /**
5
5
  * Build the service add command for the CLI.
6
6
  * @returns The command.
@@ -1,5 +1,5 @@
1
1
  import { Command } from "commander";
2
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
2
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
3
3
  /**
4
4
  * Build the service remove command for the CLI.
5
5
  * @returns The command.
@@ -1,6 +1,6 @@
1
1
  import type { IIdentityConnector, IIdentityResolverConnector } from "@twin.org/identity-models";
2
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
3
- import { IdentityResolverConnectorTypes } from "../models/identityResolverConnectorTypes";
2
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
3
+ import { IdentityResolverConnectorTypes } from "../models/identityResolverConnectorTypes.js";
4
4
  /**
5
5
  * Setup the vault for use in the CLI commands.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { type CliOutputOptions } from "@twin.org/cli-core";
2
2
  import { Command } from "commander";
3
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
3
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
4
4
  /**
5
5
  * Build the verifiable credential create command for the CLI.
6
6
  * @returns The command.
@@ -1,5 +1,5 @@
1
1
  import { Command } from "commander";
2
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
2
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
3
3
  /**
4
4
  * Build the verifiable credential revoke command for the CLI.
5
5
  * @returns The command.
@@ -1,5 +1,5 @@
1
1
  import { Command } from "commander";
2
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
2
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
3
3
  /**
4
4
  * Build the verifiable credential unrevoke command for the CLI.
5
5
  * @returns The command.
@@ -1,6 +1,6 @@
1
1
  import { type CliOutputOptions } from "@twin.org/cli-core";
2
2
  import { Command } from "commander";
3
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
3
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
4
4
  /**
5
5
  * Build the verifiable credential verify command for the CLI.
6
6
  * @returns The command.
@@ -1,7 +1,7 @@
1
1
  import { type CliOutputOptions } from "@twin.org/cli-core";
2
2
  import { DidVerificationMethodType } from "@twin.org/standards-w3c-did";
3
3
  import { Command } from "commander";
4
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
4
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
5
5
  /**
6
6
  * Build the verification method add command for the CLI.
7
7
  * @returns The command.
@@ -1,5 +1,5 @@
1
1
  import { Command } from "commander";
2
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes";
2
+ import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
3
3
  /**
4
4
  * Build the verification method remove command for the CLI.
5
5
  * @returns The command.
@@ -1,16 +1,16 @@
1
- export * from "./cli";
2
- export * from "./commands/identityCreate";
3
- export * from "./commands/identityResolve";
4
- export * from "./commands/proofCreate";
5
- export * from "./commands/proofVerify";
6
- export * from "./commands/serviceAdd";
7
- export * from "./commands/serviceRemove";
8
- export * from "./commands/setupCommands";
9
- export * from "./commands/verifiableCredentialCreate";
10
- export * from "./commands/verifiableCredentialRevoke";
11
- export * from "./commands/verifiableCredentialUnrevoke";
12
- export * from "./commands/verifiableCredentialVerify";
13
- export * from "./commands/verificationMethodAdd";
14
- export * from "./commands/verificationMethodRemove";
15
- export * from "./models/identityConnectorTypes";
16
- export * from "./models/identityResolverConnectorTypes";
1
+ export * from "./cli.js";
2
+ export * from "./commands/identityCreate.js";
3
+ export * from "./commands/identityResolve.js";
4
+ export * from "./commands/proofCreate.js";
5
+ export * from "./commands/proofVerify.js";
6
+ export * from "./commands/serviceAdd.js";
7
+ export * from "./commands/serviceRemove.js";
8
+ export * from "./commands/setupCommands.js";
9
+ export * from "./commands/verifiableCredentialCreate.js";
10
+ export * from "./commands/verifiableCredentialRevoke.js";
11
+ export * from "./commands/verifiableCredentialUnrevoke.js";
12
+ export * from "./commands/verifiableCredentialVerify.js";
13
+ export * from "./commands/verificationMethodAdd.js";
14
+ export * from "./commands/verificationMethodRemove.js";
15
+ export * from "./models/identityConnectorTypes.js";
16
+ export * from "./models/identityResolverConnectorTypes.js";
package/docs/changelog.md CHANGED
@@ -1,5 +1,70 @@
1
1
  # @twin.org/identity-cli - Changelog
2
2
 
3
+ ## [0.0.3-next.1](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.3-next.0...identity-cli-v0.0.3-next.1) (2025-11-11)
4
+
5
+
6
+ ### Features
7
+
8
+ * add addressIndex option to all commands ([a644674](https://github.com/twinfoundation/identity/commit/a644674017d1a8fe5d8685950316bec922a9b195))
9
+ * add context id features ([#62](https://github.com/twinfoundation/identity/issues/62)) ([e02ecca](https://github.com/twinfoundation/identity/commit/e02ecca9c45a849104bfbf7bc18a1f44e6eea8a1))
10
+ * add expiration date option to vc creation ([73e05e1](https://github.com/twinfoundation/identity/commit/73e05e1ae61112c7e056889969751f4ff82d9f29))
11
+ * add mainnet support ([af56a38](https://github.com/twinfoundation/identity/commit/af56a382837896cd4e13d5814c0924c46658b99c))
12
+ * add validate-locales ([04d74b4](https://github.com/twinfoundation/identity/commit/04d74b4d1ebe42672e8ca75a7bdb8e3556afd0be))
13
+ * eslint migration to flat config ([fd6246d](https://github.com/twinfoundation/identity/commit/fd6246d566280b6d5d10a108eb1e92c4b510f2f2))
14
+ * identity key separator use slash ([1319d0d](https://github.com/twinfoundation/identity/commit/1319d0d07164a36b3ec279e6421b8835ffefc3d3))
15
+ * iota rebased release ([5d14674](https://github.com/twinfoundation/identity/commit/5d146744ca9eed622ef7eb34a7fa935216f9e975))
16
+ * support mainnet for alias extraction ([1114e0f](https://github.com/twinfoundation/identity/commit/1114e0f518070ef930d7d6ed73a616cce647206c))
17
+ * update framework core ([c824497](https://github.com/twinfoundation/identity/commit/c82449709af0215eb7af496cf687c93fb30b5ae0))
18
+ * use new generateKid method ([f0fe779](https://github.com/twinfoundation/identity/commit/f0fe779323b675575bb9f80aa74f1957dc57a094))
19
+ * use shared store mechanism ([#27](https://github.com/twinfoundation/identity/issues/27)) ([ce41f3f](https://github.com/twinfoundation/identity/commit/ce41f3fc3da1b206ec06da7ea5b2c968f788804d))
20
+ * verification method output JWK and hex on CLI ([49db9da](https://github.com/twinfoundation/identity/commit/49db9da2371eafdcd7176ce44303961b9b8b8380))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * correctly display mainnet explorer urls ([45a9f3c](https://github.com/twinfoundation/identity/commit/45a9f3cc041cce7b40a86e98df306931a95f48ea))
26
+ * explorer urls in CLI ([82a745d](https://github.com/twinfoundation/identity/commit/82a745d536e8fe42554e7ad92a7468a653fc0cfb))
27
+ * Import path and bump version ([#21](https://github.com/twinfoundation/identity/issues/21)) ([ccea845](https://github.com/twinfoundation/identity/commit/ccea845bf32562267280bc1b3dde1c9af1a00360))
28
+ * Install sdk-wasm ([#20](https://github.com/twinfoundation/identity/issues/20)) ([75ec14e](https://github.com/twinfoundation/identity/commit/75ec14e072f8c219863a1c028a3b0783802086e9))
29
+
30
+
31
+ ### Dependencies
32
+
33
+ * The following workspace dependencies were updated
34
+ * dependencies
35
+ * @twin.org/identity-models bumped from 0.0.3-next.0 to 0.0.3-next.1
36
+ * @twin.org/identity-connector-iota bumped from 0.0.3-next.0 to 0.0.3-next.1
37
+
38
+ ## [0.0.2-next.10](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.2-next.9...identity-cli-v0.0.2-next.10) (2025-10-27)
39
+
40
+
41
+ ### Miscellaneous Chores
42
+
43
+ * **identity-cli:** Synchronize repo versions
44
+
45
+
46
+ ### Dependencies
47
+
48
+ * The following workspace dependencies were updated
49
+ * dependencies
50
+ * @twin.org/identity-models bumped from 0.0.2-next.9 to 0.0.2-next.10
51
+ * @twin.org/identity-connector-iota bumped from 0.0.2-next.9 to 0.0.2-next.10
52
+
53
+ ## [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)
54
+
55
+
56
+ ### Features
57
+
58
+ * add validate-locales ([04d74b4](https://github.com/twinfoundation/identity/commit/04d74b4d1ebe42672e8ca75a7bdb8e3556afd0be))
59
+
60
+
61
+ ### Dependencies
62
+
63
+ * The following workspace dependencies were updated
64
+ * dependencies
65
+ * @twin.org/identity-models bumped from 0.0.2-next.8 to 0.0.2-next.9
66
+ * @twin.org/identity-connector-iota bumped from 0.0.2-next.8 to 0.0.2-next.9
67
+
3
68
  ## [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)
4
69
 
5
70
 
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.8",
3
+ "version": "0.0.3-next.1",
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.8",
25
- "@twin.org/identity-models": "0.0.2-next.8",
24
+ "@twin.org/identity-connector-iota": "0.0.3-next.1",
25
+ "@twin.org/identity-models": "0.0.3-next.1",
26
26
  "@twin.org/nameof": "next",
27
27
  "@twin.org/standards-w3c-did": "next",
28
28
  "@twin.org/vault-connector-entity-storage": "next",
@@ -31,22 +31,20 @@
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.2"
35
35
  },
36
- "main": "./dist/cjs/index.cjs",
37
- "module": "./dist/esm/index.mjs",
36
+ "main": "./dist/es/index.js",
38
37
  "types": "./dist/types/index.d.ts",
39
38
  "exports": {
40
39
  ".": {
41
40
  "types": "./dist/types/index.d.ts",
42
- "require": "./dist/cjs/index.cjs",
43
- "import": "./dist/esm/index.mjs"
41
+ "import": "./dist/es/index.js",
42
+ "default": "./dist/es/index.js"
44
43
  }
45
44
  },
46
45
  "files": [
47
46
  "bin",
48
- "dist/cjs",
49
- "dist/esm",
47
+ "dist/es",
50
48
  "dist/types",
51
49
  "dist/locales",
52
50
  "locales",
@@ -54,5 +52,20 @@
54
52
  ],
55
53
  "bin": {
56
54
  "twin-identity": "bin/index.js"
57
- }
55
+ },
56
+ "keywords": [
57
+ "twin",
58
+ "trade",
59
+ "iota",
60
+ "framework",
61
+ "blockchain",
62
+ "identity",
63
+ "did",
64
+ "credentials",
65
+ "authentication"
66
+ ],
67
+ "bugs": {
68
+ "url": "git+https://github.com/twinfoundation/identity/issues"
69
+ },
70
+ "homepage": "https://twindev.org"
58
71
  }