@twin.org/identity-cli 0.0.2-next.9 → 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 (54) 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 +10 -4
  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 +50 -0
  52. package/package.json +8 -10
  53. package/dist/cjs/index.cjs +0 -1248
  54. package/dist/esm/index.mjs +0 -1216
@@ -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,55 @@
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
+
3
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)
4
54
 
5
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-cli",
3
- "version": "0.0.2-next.9",
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.9",
25
- "@twin.org/identity-models": "0.0.2-next.9",
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.1"
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",