@twin.org/identity-cli 0.0.3-next.2 → 0.0.3-next.20

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 (49) hide show
  1. package/README.md +5 -5
  2. package/dist/es/cli.js +9 -1
  3. package/dist/es/cli.js.map +1 -1
  4. package/dist/es/commands/alsoKnownAsAdd.js +108 -0
  5. package/dist/es/commands/alsoKnownAsAdd.js.map +1 -0
  6. package/dist/es/commands/alsoKnownAsRemove.js +106 -0
  7. package/dist/es/commands/alsoKnownAsRemove.js.map +1 -0
  8. package/dist/es/commands/identityCreate.js +2 -1
  9. package/dist/es/commands/identityCreate.js.map +1 -1
  10. package/dist/es/commands/proofCreate.js +4 -9
  11. package/dist/es/commands/proofCreate.js.map +1 -1
  12. package/dist/es/commands/serviceAdd.js +4 -3
  13. package/dist/es/commands/serviceAdd.js.map +1 -1
  14. package/dist/es/commands/serviceRemove.js +3 -3
  15. package/dist/es/commands/serviceRemove.js.map +1 -1
  16. package/dist/es/commands/verifiableCredentialCreate.js +18 -16
  17. package/dist/es/commands/verifiableCredentialCreate.js.map +1 -1
  18. package/dist/es/commands/verifiableCredentialVerify.js +24 -5
  19. package/dist/es/commands/verifiableCredentialVerify.js.map +1 -1
  20. package/dist/es/commands/verifiablePresentationCreate.js +137 -0
  21. package/dist/es/commands/verifiablePresentationCreate.js.map +1 -0
  22. package/dist/es/commands/verifiablePresentationVerify.js +107 -0
  23. package/dist/es/commands/verifiablePresentationVerify.js.map +1 -0
  24. package/dist/es/commands/verificationMethodAdd.js +31 -10
  25. package/dist/es/commands/verificationMethodAdd.js.map +1 -1
  26. package/dist/es/index.js +2 -0
  27. package/dist/es/index.js.map +1 -1
  28. package/dist/locales/en.json +196 -38
  29. package/dist/types/commands/alsoKnownAsAdd.d.ts +30 -0
  30. package/dist/types/commands/alsoKnownAsRemove.d.ts +30 -0
  31. package/dist/types/commands/identityCreate.d.ts +1 -0
  32. package/dist/types/commands/proofCreate.d.ts +0 -2
  33. package/dist/types/commands/verifiableCredentialCreate.d.ts +4 -4
  34. package/dist/types/commands/verifiableCredentialVerify.d.ts +3 -1
  35. package/dist/types/commands/verifiablePresentationCreate.d.ts +32 -0
  36. package/dist/types/commands/verifiablePresentationVerify.d.ts +24 -0
  37. package/dist/types/index.d.ts +2 -0
  38. package/docs/changelog.md +404 -90
  39. package/docs/reference/classes/CLI.md +1 -1
  40. package/docs/reference/functions/actionCommandVerifiablePresentationCreate.md +17 -0
  41. package/docs/reference/functions/actionCommandVerifiablePresentationVerify.md +17 -0
  42. package/docs/reference/functions/buildCommandVerifiablePresentationCreate.md +11 -0
  43. package/docs/reference/functions/buildCommandVerifiablePresentationVerify.md +11 -0
  44. package/docs/reference/index.md +4 -0
  45. package/docs/reference/variables/IdentityConnectorTypes.md +1 -1
  46. package/docs/reference/variables/IdentityResolverConnectorTypes.md +1 -1
  47. package/docs/{examples.md → usage.md} +23 -27
  48. package/locales/en.json +153 -12
  49. package/package.json +5 -5
@@ -22,7 +22,7 @@ The main entry point for the CLI.
22
22
 
23
23
  ## Methods
24
24
 
25
- ### run()
25
+ ### run() {#run}
26
26
 
27
27
  > **run**(`argv`, `localesDirectory?`, `options?`): `Promise`\<`number`\>
28
28
 
@@ -0,0 +1,17 @@
1
+ # Function: actionCommandVerifiablePresentationCreate()
2
+
3
+ > **actionCommandVerifiablePresentationCreate**(`opts`): `Promise`\<`void`\>
4
+
5
+ Action the verifiable presentation create command.
6
+
7
+ ## Parameters
8
+
9
+ ### opts
10
+
11
+ `object` & `ICliOutputOptionsConsole` & `ICliOutputOptionsEnv` & `ICliOutputOptionsJson`
12
+
13
+ The options for the command.
14
+
15
+ ## Returns
16
+
17
+ `Promise`\<`void`\>
@@ -0,0 +1,17 @@
1
+ # Function: actionCommandVerifiablePresentationVerify()
2
+
3
+ > **actionCommandVerifiablePresentationVerify**(`opts`): `Promise`\<`void`\>
4
+
5
+ Action the verifiable presentation verify command.
6
+
7
+ ## Parameters
8
+
9
+ ### opts
10
+
11
+ `object` & `ICliOutputOptionsConsole` & `ICliOutputOptionsEnv` & `ICliOutputOptionsJson`
12
+
13
+ The options for the command.
14
+
15
+ ## Returns
16
+
17
+ `Promise`\<`void`\>
@@ -0,0 +1,11 @@
1
+ # Function: buildCommandVerifiablePresentationCreate()
2
+
3
+ > **buildCommandVerifiablePresentationCreate**(): `Command`
4
+
5
+ Build the verifiable presentation create command for the CLI.
6
+
7
+ ## Returns
8
+
9
+ `Command`
10
+
11
+ The command.
@@ -0,0 +1,11 @@
1
+ # Function: buildCommandVerifiablePresentationVerify()
2
+
3
+ > **buildCommandVerifiablePresentationVerify**(): `Command`
4
+
5
+ Build the verifiable presentation verify command for the CLI.
6
+
7
+ ## Returns
8
+
9
+ `Command`
10
+
11
+ The command.
@@ -39,6 +39,10 @@
39
39
  - [actionCommandVerifiableCredentialUnrevoke](functions/actionCommandVerifiableCredentialUnrevoke.md)
40
40
  - [buildCommandVerifiableCredentialVerify](functions/buildCommandVerifiableCredentialVerify.md)
41
41
  - [actionCommandVerifiableCredentialVerify](functions/actionCommandVerifiableCredentialVerify.md)
42
+ - [buildCommandVerifiablePresentationCreate](functions/buildCommandVerifiablePresentationCreate.md)
43
+ - [actionCommandVerifiablePresentationCreate](functions/actionCommandVerifiablePresentationCreate.md)
44
+ - [buildCommandVerifiablePresentationVerify](functions/buildCommandVerifiablePresentationVerify.md)
45
+ - [actionCommandVerifiablePresentationVerify](functions/actionCommandVerifiablePresentationVerify.md)
42
46
  - [buildCommandVerificationMethodAdd](functions/buildCommandVerificationMethodAdd.md)
43
47
  - [actionCommandVerificationMethodAdd](functions/actionCommandVerificationMethodAdd.md)
44
48
  - [buildCommandVerificationMethodRemove](functions/buildCommandVerificationMethodRemove.md)
@@ -6,7 +6,7 @@ The identity connector types.
6
6
 
7
7
  ## Type Declaration
8
8
 
9
- ### Iota
9
+ ### Iota {#iota}
10
10
 
11
11
  > `readonly` **Iota**: `"iota"` = `"iota"`
12
12
 
@@ -6,7 +6,7 @@ The identity resolver connector types.
6
6
 
7
7
  ## Type Declaration
8
8
 
9
- ### Iota
9
+ ### Iota {#iota}
10
10
 
11
11
  > `readonly` **Iota**: `"iota"` = `"iota"`
12
12
 
@@ -1,4 +1,6 @@
1
- # @twin.org/identity-cli - Examples
1
+ # Identity CLI Usage
2
+
3
+ Use this output to check available commands quickly before running identity workflows from your terminal.
2
4
 
3
5
  ## Running
4
6
 
@@ -15,7 +17,7 @@ or run directly using NPX:
15
17
  npx "@twin.org/identity-cli"
16
18
  ```
17
19
 
18
- Output
20
+ ## Help
19
21
 
20
22
  ```shell
21
23
  🌍 TWIN Identity v1.0.0
@@ -47,13 +49,7 @@ Commands:
47
49
  proof-verify [options] Verify a proof for some data using a verification method.
48
50
  ```
49
51
 
50
- You can get further detail on the sub commands by using the help option for the individual commands.
51
-
52
- ```shell
53
- twin-identity identity-create --help
54
- ```
55
-
56
- Output
52
+ ## identity-create --help
57
53
 
58
54
  ```shell
59
55
  🌍 TWIN Identity v1.0.0
@@ -75,13 +71,19 @@ Options:
75
71
  -h, --help display help for command
76
72
  ```
77
73
 
74
+ ## Example
75
+
76
+ ```shell
77
+ twin-identity identity-resolve --load-env config.env identity.env --did !DID --json did-document.json
78
+ ```
79
+
78
80
  The commands `mnemonic`, `address`, `faucet` and `transfer` are described in more detail in the examples for `crypto-cli` and `wallet-cli`.
79
81
 
80
82
  ## Command
81
83
 
82
84
  ### identity-create
83
85
 
84
- Use this command to create a new DID, the wallet address must have sufficient funds to store the identity. The seed and the funds can be generated using the `mnemonic` and `faucet` commands.
86
+ Use this command to create a new DID. The wallet address must have sufficient funds to store the identity. The seed and the funds can be generated using the `mnemonic` and `faucet` commands.
85
87
 
86
88
  ```shell
87
89
  # Generate a seed and mnemonic and store it in the env file
@@ -90,7 +92,7 @@ twin-identity mnemonic --env wallet.env
90
92
  twin-identity address --load-env wallet.env --hrp tst --seed !SEED --count 4 --env wallet.env --merge-env
91
93
  ```
92
94
 
93
- To run this on the IOTA testnet you will need an env file with the following settings. Store the following config as config.env
95
+ To run this on the IOTA testnet you will need an env file with the following settings. Store the following config as config.env.
94
96
 
95
97
  ```shell
96
98
  NODE_URL="https://api.devnet.iota.cafe"
@@ -111,7 +113,7 @@ twin-identity identity-create --load-env config.env wallet.env --seed !SEED --en
111
113
 
112
114
  ### identity-resolve
113
115
 
114
- The identity resolve will lookup and identity by DID to check it exists and return the DID document.
116
+ The identity resolve command looks up an identity by DID to check it exists and return the DID document.
115
117
 
116
118
  ```shell
117
119
  twin-identity identity-resolve --load-env config.env identity.env --did !DID --json did-document.json
@@ -119,7 +121,7 @@ twin-identity identity-resolve --load-env config.env identity.env --did !DID --j
119
121
 
120
122
  ### verification-method-add
121
123
 
122
- This command will add a verification method to a DID document.
124
+ This command adds a verification method to a DID document.
123
125
 
124
126
  ```shell
125
127
  twin-identity verification-method-add --load-env config.env wallet.env identity.env --seed !SEED --did !DID --type verificationMethod --env verification-method.env
@@ -127,7 +129,7 @@ twin-identity verification-method-add --load-env config.env wallet.env identity.
127
129
 
128
130
  ### verification-method-remove
129
131
 
130
- This command will remove a verification method from a DID document.
132
+ This command removes a verification method from a DID document.
131
133
 
132
134
  ```shell
133
135
  twin-identity verification-method-remove --load-env config.env wallet.env identity.env verification-method.env --seed !SEED --id !DID_VERIFICATION_METHOD_ID
@@ -135,15 +137,15 @@ twin-identity verification-method-remove --load-env config.env wallet.env identi
135
137
 
136
138
  ### service-add
137
139
 
138
- This command will add a service to a DID document.
140
+ This command adds a service to a DID document.
139
141
 
140
142
  ```shell
141
- twin-identity service-add --load-env config.env wallet.env identity.env --seed !SEED --did !DID --id linked-domain --type LinkedDomains --endpoint https://www.twindev.org --env service.env
143
+ twin-identity service-add --load-env config.env wallet.env identity.env --seed !SEED --did !DID --id linked-domain --type LinkedDomains --endpoint https://example.org --env service.env
142
144
  ```
143
145
 
144
146
  ### service-remove
145
147
 
146
- This command will remove a service from the DID document.
148
+ This command removes a service from the DID document.
147
149
 
148
150
  ```shell
149
151
  twin-identity service-remove --load-env config.env wallet.env identity.env service.env --seed !SEED --did !DID --id !DID_SERVICE_ID
@@ -151,7 +153,7 @@ twin-identity service-remove --load-env config.env wallet.env identity.env servi
151
153
 
152
154
  ## verifiable-credential-create
153
155
 
154
- This command will generate a verifiable credential using the specified verification method. You will need to supply the data as a json file
156
+ This command generates a verifiable credential using the specified verification method. You will need to supply the data as a json file.
155
157
 
156
158
  ```json
157
159
  {
@@ -164,11 +166,7 @@ This command will generate a verifiable credential using the specified verificat
164
166
  twin-identity verifiable-credential-create --load-env config.env verification-method.env --id !DID_VERIFICATION_METHOD_ID --private-key !DID_VERIFICATION_METHOD_PRIVATE_KEY --credential-id https://example.edu/credentials/3732 --types UniversityDegreeCredential --subject-json subject.json --env vc.env --revocation-index 0
165
167
  ```
166
168
 
167
- This will output the verifiable credential as a JSON Web Token e.g.
168
-
169
- ```shell
170
- eyJraWQiOiJkaWQ6aW90YTp0c3Q6MHgxZTQ3YWQ0MjY4YWI5ZWNhNTFkYTkwNmRkNzE4MDIxZmJkNGYyZGUxYmU5NjA4NmRjMTMzZDQ0MmIwYjk3MzIyI2V5em9GMHFEUmtSQ0FlU1Rmdjd6WWFQNU00U2c2TkJLQUZ6eElhQVBTQzAiLCJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.eyJpc3MiOiJkaWQ6aW90YTp0c3Q6MHgxZTQ3YWQ0MjY4YWI5ZWNhNTFkYTkwNmRkNzE4MDIxZmJkNGYyZGUxYmU5NjA4NmRjMTMzZDQ0MmIwYjk3MzIyIiwibmJmIjoxNzE4MTk3NDA5LCJqdGkiOiJodHRwczovL2V4YW1wbGUuZWR1L2NyZWRlbnRpYWxzLzM3MzIiLCJ2YyI6eyJAY29udGV4dCI6Imh0dHBzOi8vd3d3LnczLm9yZy8yMDE4L2NyZWRlbnRpYWxzL3YxIiwidHlwZSI6WyJWZXJpZmlhYmxlQ3JlZGVudGlhbCIsIlVuaXZlcnNpdHlEZWdyZWVDcmVkZW50aWFsIl0sImNyZWRlbnRpYWxTdWJqZWN0Ijp7ImRlZ3JlZU5hbWUiOiJCYWNoZWxvciBvZiBTY2llbmNlIGFuZCBBcnRzIiwibmFtZSI6IkFsaWNlIn0sImNyZWRlbnRpYWxTdGF0dXMiOnsiaWQiOiJkaWQ6aW90YTp0c3Q6MHgxZTQ3YWQ0MjY4YWI5ZWNhNTFkYTkwNmRkNzE4MDIxZmJkNGYyZGUxYmU5NjA4NmRjMTMzZDQ0MmIwYjk3MzIyI3Jldm9jYXRpb24iLCJ0eXBlIjoiUmV2b2NhdGlvbkJpdG1hcDIwMjIiLCJyZXZvY2F0aW9uQml0bWFwSW5kZXgiOiIwIn19fQ.O3tMQ1UdGSI2qv9ia3xiT1yTmvpnJKd749POMSy42-SWTWN99HyYr5SEVIDj5cLdCORRP3Se4O7wxPe7_tfmCw
171
- ```
169
+ This command outputs the verifiable credential as a JSON Web Token.
172
170
 
173
171
  ## verifiable-credential-verify
174
172
 
@@ -196,17 +194,15 @@ twin-identity verifiable-credential-unrevoke --load-env config.env wallet.env id
196
194
 
197
195
  ## proof-create
198
196
 
199
- This command will generate a proof using the specified verification method.
197
+ This command generates a proof using the specified verification method.
200
198
 
201
199
  ```shell
202
200
  twin-identity proof-create --load-env config.env verification-method.env --id !DID_VERIFICATION_METHOD_ID --private-key !DID_VERIFICATION_METHOD_PRIVATE_KEY --document-filename unsecured.json --json data-proof.json
203
201
  ```
204
202
 
205
- This will output the proof.
206
-
207
203
  ## proof-verify
208
204
 
209
- This command will verify a proof for a document.
205
+ This command verifies a proof for a document.
210
206
 
211
207
  ```shell
212
208
  twin-identity proof-verify --load-env config.env verification-method.env --id !DID_VERIFICATION_METHOD_ID --document-filename unsecured.json --proof-filename data-proof.json
package/locales/en.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "error": {
3
3
  "commands": {
4
+ "verifiable-presentation-create": {
5
+ "noCredentialsProvided": "Either --jwt or --json-ld must be provided with at least one credential.",
6
+ "jsonLdFileNotFound": "The JSON-LD credential file was not found."
7
+ },
8
+ "verifiable-credential-verify": {
9
+ "noCredentialProvided": "Either --jwt or --json-ld must be provided.",
10
+ "jsonLdFileNotFound": "The JSON-LD file was not found."
11
+ },
12
+ "verifiable-presentation-verify": {
13
+ "noPresentationProvided": "Either --jwt or --json-ld must be provided.",
14
+ "jsonLdFileNotFound": "The JSON-LD file was not found."
15
+ },
4
16
  "verifiable-credential-create": {
5
17
  "subjectJsonFileNotFound": "The subject JSON file was not found."
6
18
  },
@@ -22,6 +34,10 @@
22
34
  "param": "--seed '<'seed'>'",
23
35
  "description": "The seed for the controller address in hex or base64 used to create the DID, or start with ! to read environment variable."
24
36
  },
37
+ "controller": {
38
+ "param": "--controller '<'controller'>'",
39
+ "description": "The controller for the DID, or start with ! to read environment variable."
40
+ },
25
41
  "addressIndex": {
26
42
  "param": "--address-index '<'index'>'",
27
43
  "description": "The address index to use for the creation."
@@ -82,6 +98,8 @@
82
98
  "labels": {
83
99
  "verificationMethodType": "Verification Method Type",
84
100
  "verificationMethodId": "Verification Method Id",
101
+ "privateKeyBase64Url": "Private Key Base64 Url",
102
+ "publicKeyBase64Url": "Public Key Base64 Url",
85
103
  "privateKeyBase64": "Private Key Base64",
86
104
  "publicKeyBase64": "Public Key Base64",
87
105
  "privateKeyHex": "Private Key Hex",
@@ -179,12 +197,77 @@
179
197
  "addressIndex": "Address Index"
180
198
  }
181
199
  },
200
+ "verifiable-presentation-create": {
201
+ "summary": "Create a verifiable presentation.",
202
+ "description": "Create a verifiable presentation.",
203
+ "options": {
204
+ "verification-method-id": {
205
+ "param": "--verification-method-id '<'verification-method-id'>'",
206
+ "description": "The full verification method id including did, or start with ! to read environment variable."
207
+ },
208
+ "private-key": {
209
+ "param": "--private-key '<'private-key'>'",
210
+ "description": "The private key for the verification method id, in either hex or base64 form, or start with ! to read environment variable."
211
+ },
212
+ "presentation-id": {
213
+ "param": "--presentation-id '<'presentation-id'>'",
214
+ "description": "The presentation id which uniquely identifies the presentation."
215
+ },
216
+ "jwt": {
217
+ "param": "--jwt '<'jwt'>'",
218
+ "description": "Comma-separated list of verifiable credential JWTs to include in the presentation, or start with ! to read environment variable."
219
+ },
220
+ "json-ld": {
221
+ "param": "--json-ld '<'json-ld'>'",
222
+ "description": "Comma-separated list of JSON-LD filenames containing verifiable credentials to include in the presentation."
223
+ },
224
+ "expiration-date": {
225
+ "param": "--expiration-date '<'ISO Date'>'",
226
+ "description": "The expiration date for the presentation."
227
+ }
228
+ },
229
+ "progress": {
230
+ "creatingVerifiablePresentation": "Creating Verifiable Presentation",
231
+ "loadingCredentialData": "Loading Credential Data"
232
+ },
233
+ "labels": {
234
+ "verificationMethodId": "Verification Method Id",
235
+ "presentationId": "Presentation Id",
236
+ "jwt": "JWT Credentials",
237
+ "jsonLd": "JSON-LD Credentials",
238
+ "verifiablePresentation": "Verifiable Presentation",
239
+ "expirationDate": "Expiration Date"
240
+ }
241
+ },
242
+ "verifiable-presentation-verify": {
243
+ "summary": "Verify a verifiable presentation.",
244
+ "description": "Verify a verifiable presentation.",
245
+ "options": {
246
+ "jwt": {
247
+ "param": "--jwt '<'jwt'>'",
248
+ "description": "The verifiable presentation as a JSON web token to verify, or start with ! to read environment variable."
249
+ },
250
+ "json-ld": {
251
+ "param": "--json-ld '<'json-ld'>'",
252
+ "description": "A JSON-LD file containing the verifiable presentation to verify."
253
+ }
254
+ },
255
+ "progress": {
256
+ "verifyingPresentation": "Verifying Presentation"
257
+ },
258
+ "labels": {
259
+ "jwt": "JWT",
260
+ "jsonLd": "JSON-LD",
261
+ "isVerified": "Is Verified",
262
+ "isRevoked": "Is Revoked"
263
+ }
264
+ },
182
265
  "verifiable-credential-create": {
183
266
  "summary": "Create a verifiable credential.",
184
267
  "description": "Create a verifiable credential.",
185
268
  "options": {
186
- "id": {
187
- "param": "--id '<'id'>'",
269
+ "verification-method-id": {
270
+ "param": "--verification-method-id '<'verification-method-id'>'",
188
271
  "description": "The full verification method id including did, or start with ! to read environment variable."
189
272
  },
190
273
  "private-key": {
@@ -203,9 +286,9 @@
203
286
  "param": "--revocation-index '<'revocation-index'>'",
204
287
  "description": "The revocation index in the issuing document to use if revoking the credential."
205
288
  },
206
- "addressIndex": {
207
- "param": "--address-index '<'index'>'",
208
- "description": "The address index to use for the identity controller."
289
+ "expiration-date": {
290
+ "param": "--expiration-date '<'ISO Date'>'",
291
+ "description": "The expiration date for the credential."
209
292
  }
210
293
  },
211
294
  "progress": {
@@ -218,7 +301,7 @@
218
301
  "subjectJson": "Subject JSON",
219
302
  "revocationIndex": "Revocation Index",
220
303
  "verifiableCredential": "Verifiable Credential",
221
- "addressIndex": "Address Index"
304
+ "expirationDate": "Expiration Date"
222
305
  }
223
306
  },
224
307
  "verifiable-credential-verify": {
@@ -228,6 +311,10 @@
228
311
  "jwt": {
229
312
  "param": "--jwt '<'jwt'>'",
230
313
  "description": "The verifiable credential as a JSON web token to verify, or start with ! to read environment variable."
314
+ },
315
+ "json-ld": {
316
+ "param": "--json-ld '<'json-ld'>'",
317
+ "description": "A JSON-LD file containing the verifiable credential to verify."
231
318
  }
232
319
  },
233
320
  "progress": {
@@ -235,6 +322,7 @@
235
322
  },
236
323
  "labels": {
237
324
  "jwt": "JWT",
325
+ "jsonLd": "JSON-LD",
238
326
  "isVerified": "Is Verified",
239
327
  "isRevoked": "Is Revoked"
240
328
  }
@@ -312,10 +400,6 @@
312
400
  "document-filename": {
313
401
  "param": "--document-filename '<'document-filename'>'",
314
402
  "description": "The filename of a JSON-LD document to create the proof for."
315
- },
316
- "addressIndex": {
317
- "param": "--address-index '<'index'>'",
318
- "description": "The address index to use for the identity controller."
319
403
  }
320
404
  },
321
405
  "progress": {
@@ -323,8 +407,7 @@
323
407
  },
324
408
  "labels": {
325
409
  "documentFilename": "Document Filename",
326
- "verificationMethodId": "Verification Method Id",
327
- "addressIndex": "Address Index"
410
+ "verificationMethodId": "Verification Method Id"
328
411
  }
329
412
  },
330
413
  "proof-verify": {
@@ -349,6 +432,64 @@
349
432
  "isVerified": "Is Verified"
350
433
  }
351
434
  },
435
+ "also-known-as-add": {
436
+ "summary": "Add an alias (alsoKnownAs) to a DID.",
437
+ "description": "Add an alias (alsoKnownAs) to a DID.",
438
+ "options": {
439
+ "seed": {
440
+ "param": "--seed '<'seed'>'",
441
+ "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."
442
+ },
443
+ "did": {
444
+ "param": "--did '<'did'>'",
445
+ "description": "The identifier to add the alias to, or start with ! to read environment variable."
446
+ },
447
+ "alias": {
448
+ "param": "--alias '<'alias'>'",
449
+ "description": "The alias (alsoKnownAs) value to add."
450
+ },
451
+ "addressIndex": {
452
+ "param": "--address-index '<'index'>'",
453
+ "description": "The address index to use for the identity controller."
454
+ }
455
+ },
456
+ "progress": {
457
+ "addingAlsoKnownAs": "Adding Alias (alsoKnownAs)"
458
+ },
459
+ "labels": {
460
+ "alias": "Alias (alsoKnownAs)",
461
+ "addressIndex": "Address Index"
462
+ }
463
+ },
464
+ "also-known-as-remove": {
465
+ "summary": "Remove an alias (alsoKnownAs) from a DID.",
466
+ "description": "Remove an alias (alsoKnownAs) from a DID.",
467
+ "options": {
468
+ "seed": {
469
+ "param": "--seed '<'seed'>'",
470
+ "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."
471
+ },
472
+ "did": {
473
+ "param": "--did '<'did'>'",
474
+ "description": "The identifier to remove the alias from, or start with ! to read environment variable."
475
+ },
476
+ "alias": {
477
+ "param": "--alias '<'alias'>'",
478
+ "description": "The alias (alsoKnownAs) value to remove."
479
+ },
480
+ "addressIndex": {
481
+ "param": "--address-index '<'index'>'",
482
+ "description": "The address index to use for the identity controller."
483
+ }
484
+ },
485
+ "progress": {
486
+ "removingAlsoKnownAs": "Removing Alias (alsoKnownAs)"
487
+ },
488
+ "labels": {
489
+ "alias": "Alias (alsoKnownAs)",
490
+ "addressIndex": "Address Index"
491
+ }
492
+ },
352
493
  "common": {
353
494
  "options": {
354
495
  "connector": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@twin.org/identity-cli",
3
- "version": "0.0.3-next.2",
4
- "description": "A command line interface for interacting with the identity connectors",
3
+ "version": "0.0.3-next.20",
4
+ "description": "Command line tool for running identity workflows in local development and automation pipelines.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/twinfoundation/identity.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.3-next.2",
25
- "@twin.org/identity-models": "0.0.3-next.2",
24
+ "@twin.org/identity-connector-iota": "0.0.3-next.20",
25
+ "@twin.org/identity-models": "0.0.3-next.20",
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.2"
34
+ "commander": "14.0.3"
35
35
  },
36
36
  "main": "./dist/es/index.js",
37
37
  "types": "./dist/types/index.d.ts",