@twin.org/identity-cli 0.0.3-next.8 → 0.9.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/es/cli.js +10 -1
- package/dist/es/cli.js.map +1 -1
- package/dist/es/commands/alsoKnownAsAdd.js +108 -0
- package/dist/es/commands/alsoKnownAsAdd.js.map +1 -0
- package/dist/es/commands/alsoKnownAsRemove.js +106 -0
- package/dist/es/commands/alsoKnownAsRemove.js.map +1 -0
- package/dist/es/commands/proofCreate.js +2 -3
- package/dist/es/commands/proofCreate.js.map +1 -1
- package/dist/es/commands/serviceAdd.js +4 -3
- package/dist/es/commands/serviceAdd.js.map +1 -1
- package/dist/es/commands/serviceRemove.js +3 -3
- package/dist/es/commands/serviceRemove.js.map +1 -1
- package/dist/es/commands/setupCommands.js +4 -6
- package/dist/es/commands/setupCommands.js.map +1 -1
- package/dist/es/commands/verifiableCredentialCreate.js +12 -10
- package/dist/es/commands/verifiableCredentialCreate.js.map +1 -1
- package/dist/es/commands/verifiableCredentialVerify.js +24 -5
- package/dist/es/commands/verifiableCredentialVerify.js.map +1 -1
- package/dist/es/commands/verifiablePresentationCreate.js +137 -0
- package/dist/es/commands/verifiablePresentationCreate.js.map +1 -0
- package/dist/es/commands/verifiablePresentationVerify.js +107 -0
- package/dist/es/commands/verifiablePresentationVerify.js.map +1 -0
- package/dist/es/commands/verificationMethodAdd.js +8 -8
- package/dist/es/commands/verificationMethodAdd.js.map +1 -1
- package/dist/es/index.js +2 -0
- package/dist/es/index.js.map +1 -1
- package/dist/locales/en.json +251 -39
- package/dist/types/commands/alsoKnownAsAdd.d.ts +30 -0
- package/dist/types/commands/alsoKnownAsRemove.d.ts +30 -0
- package/dist/types/commands/setupCommands.d.ts +2 -2
- package/dist/types/commands/verifiableCredentialCreate.d.ts +2 -2
- package/dist/types/commands/verifiableCredentialVerify.d.ts +3 -1
- package/dist/types/commands/verifiablePresentationCreate.d.ts +32 -0
- package/dist/types/commands/verifiablePresentationVerify.d.ts +24 -0
- package/dist/types/index.d.ts +2 -0
- package/docs/changelog.md +673 -115
- package/docs/reference/classes/CLI.md +1 -1
- package/docs/reference/functions/actionCommandVerifiablePresentationCreate.md +17 -0
- package/docs/reference/functions/actionCommandVerifiablePresentationVerify.md +17 -0
- package/docs/reference/functions/buildCommandVerifiablePresentationCreate.md +11 -0
- package/docs/reference/functions/buildCommandVerifiablePresentationVerify.md +11 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/variables/IdentityConnectorTypes.md +1 -1
- package/docs/reference/variables/IdentityResolverConnectorTypes.md +1 -1
- package/docs/{examples.md → usage.md} +23 -27
- package/locales/en.json +142 -2
- package/package.json +22 -22
package/dist/locales/en.json
CHANGED
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"atLeastOneNumber": "The value should contain at least one number",
|
|
48
48
|
"atLeastOneSpecialChar": "The value should contain at least one symbol",
|
|
49
49
|
"schema": {
|
|
50
|
-
"failedValidation": "The JSON schema failed validation, {message}",
|
|
51
50
|
"missingType": "Failed to validate as there is no handler for type \"{dataType}\""
|
|
52
|
-
}
|
|
51
|
+
},
|
|
52
|
+
"schemaFailed": "Schema failed validation, \"{message}\", keyword: \"{keyword}\", schemaPath: \"{schemaPath}\""
|
|
53
53
|
},
|
|
54
54
|
"guard": {
|
|
55
55
|
"undefined": "Property \"{property}\" must be defined, it is \"{value}\"",
|
|
@@ -66,6 +66,9 @@
|
|
|
66
66
|
"bigint": "Property \"{property}\" must be a bigint, it is \"{value}\"",
|
|
67
67
|
"boolean": "Property \"{property}\" must be a boolean, it is \"{value}\"",
|
|
68
68
|
"date": "Property \"{property}\" must be a date, it is \"{value}\"",
|
|
69
|
+
"dateString": "Property \"{property}\" must be a date-only string in ISO 8601 format, it is \"{value}\"",
|
|
70
|
+
"dateTimeString": "Property \"{property}\" must be a date-time string in ISO 8601 format, it is \"{value}\"",
|
|
71
|
+
"timeString": "Property \"{property}\" must be a time string in ISO 8601 format, it is \"{value}\"",
|
|
69
72
|
"timestampMilliseconds": "Property \"{property}\" must be a timestamp in milliseconds, it is \"{value}\"",
|
|
70
73
|
"timestampSeconds": "Property \"{property}\" must be a timestamp in seconds, it is \"{value}\"",
|
|
71
74
|
"objectUndefined": "Property \"{property}\" must be an object, it is \"undefined\"",
|
|
@@ -78,11 +81,12 @@
|
|
|
78
81
|
"arrayEndsWith": "Property \"{property}\" must be an array ending with [{endValues}], it is \"{value}\"",
|
|
79
82
|
"uint8Array": "Property \"{property}\" must be a Uint8Array, it is \"{value}\"",
|
|
80
83
|
"function": "Property \"{property}\" must be a function, it is \"{value}\"",
|
|
81
|
-
"urn": "Property \"{property}\" must be a
|
|
82
|
-
"url": "Property \"{property}\" must be a
|
|
84
|
+
"urn": "Property \"{property}\" must be a URN formatted string, it is \"{value}\"",
|
|
85
|
+
"url": "Property \"{property}\" must be a URL formatted string, it is \"{value}\"",
|
|
83
86
|
"email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
|
|
84
87
|
"uuidV7": "Property \"{property}\" must be a UUIDv7 formatted string, it is \"{value}\"",
|
|
85
88
|
"uuidV7Compact": "Property \"{property}\" must be a UUIDv7 formatted string in compact mode, it is \"{value}\"",
|
|
89
|
+
"duration": "Property \"{property}\" must be an ISO 8601 duration string, it is \"{value}\"",
|
|
86
90
|
"length32Multiple": "Property \"{property}\" should be a multiple of 32, it is {value}",
|
|
87
91
|
"lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}",
|
|
88
92
|
"didPartsTooFew": "The DID \"{value}\" is invalid: expected at least 3 parts but got fewer",
|
|
@@ -99,7 +103,8 @@
|
|
|
99
103
|
},
|
|
100
104
|
"factory": {
|
|
101
105
|
"noUnregister": "There is no {typeName} registered with the name \"{name}\"",
|
|
102
|
-
"noGet": "The requested {typeName} \"{name}\" does not exist in the factory"
|
|
106
|
+
"noGet": "The requested {typeName} \"{name}\" does not exist in the factory",
|
|
107
|
+
"noCreate": "The requested {typeName} \"{name}\" cannot be created by the factory, with params \"{params}\""
|
|
103
108
|
},
|
|
104
109
|
"bitString": {
|
|
105
110
|
"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}\""
|
|
@@ -116,6 +121,18 @@
|
|
|
116
121
|
"jsonHelper": {
|
|
117
122
|
"failedPatch": "Failed to patch the JSON object, patch index \"{index}\" failed"
|
|
118
123
|
},
|
|
124
|
+
"mutex": {
|
|
125
|
+
"lockNotFound": "The key \"{key}\" has no active lock",
|
|
126
|
+
"lockAlreadyReleased": "The key \"{key}\" is not currently locked",
|
|
127
|
+
"lockTimeout": "Failed to acquire lock for key \"{key}\" within the timeout of {timeout} milliseconds",
|
|
128
|
+
"bufferFetchFailed": "Failed to retrieve shared buffer for key \"{key}\" from the main thread",
|
|
129
|
+
"invalidTimeout": "The timeout value \"{timeoutMs}\" is invalid, it must be a non-negative integer"
|
|
130
|
+
},
|
|
131
|
+
"sharedObjectBuffer": {
|
|
132
|
+
"notCreated": "The shared buffer for object \"{objectId}\" has not been created",
|
|
133
|
+
"capacityExceeded": "The payload size of {required} bytes exceeds the maximum capacity of {capacity} bytes for object \"{objectId}\"",
|
|
134
|
+
"bufferFetchFailed": "Failed to retrieve shared buffer for object \"{objectId}\" from the main thread"
|
|
135
|
+
},
|
|
119
136
|
"ed25519": {
|
|
120
137
|
"privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
|
|
121
138
|
"publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
|
|
@@ -152,6 +169,9 @@
|
|
|
152
169
|
"slip0010": {
|
|
153
170
|
"invalidSeed": "The seed is invalid \"{seed}\""
|
|
154
171
|
},
|
|
172
|
+
"pbkdf2": {
|
|
173
|
+
"keyLengthTooSmall": "The key length must be at least 1, it is \"{keyLength}\""
|
|
174
|
+
},
|
|
155
175
|
"commands": {
|
|
156
176
|
"common": {
|
|
157
177
|
"missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
|
|
@@ -161,6 +181,18 @@
|
|
|
161
181
|
"optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
|
|
162
182
|
"optionMaxValue": "The \"{option}\" option must be less than or equal to {maxValue}, it is {value}."
|
|
163
183
|
},
|
|
184
|
+
"verifiable-presentation-create": {
|
|
185
|
+
"noCredentialsProvided": "Either --jwt or --json-ld must be provided with at least one credential.",
|
|
186
|
+
"jsonLdFileNotFound": "The JSON-LD credential file was not found."
|
|
187
|
+
},
|
|
188
|
+
"verifiable-credential-verify": {
|
|
189
|
+
"noCredentialProvided": "Either --jwt or --json-ld must be provided.",
|
|
190
|
+
"jsonLdFileNotFound": "The JSON-LD file was not found."
|
|
191
|
+
},
|
|
192
|
+
"verifiable-presentation-verify": {
|
|
193
|
+
"noPresentationProvided": "Either --jwt or --json-ld must be provided.",
|
|
194
|
+
"jsonLdFileNotFound": "The JSON-LD file was not found."
|
|
195
|
+
},
|
|
164
196
|
"verifiable-credential-create": {
|
|
165
197
|
"subjectJsonFileNotFound": "The subject JSON file was not found."
|
|
166
198
|
},
|
|
@@ -179,13 +211,18 @@
|
|
|
179
211
|
"invalidUrl": "The JSON-LD processing failed to retrieve from the following url \"{url}\"",
|
|
180
212
|
"jsonLdError": "The JSON-LD processing failed due to the following error: \"{code}\""
|
|
181
213
|
},
|
|
214
|
+
"entitySchemaDiffHelper": {
|
|
215
|
+
"duplicateOldProperty": "The oldProperties array contains a duplicate property key \"{property}\"",
|
|
216
|
+
"duplicateNewProperty": "The newProperties array contains a duplicate property key \"{property}\""
|
|
217
|
+
},
|
|
182
218
|
"entitySchemaHelper": {
|
|
183
219
|
"noIsPrimary": "Property \"entitySchema.properties\" must contain a value with isPrimary set",
|
|
184
220
|
"multipleIsPrimary": "Property \"entitySchema.properties\" contains more than one property with isPrimary set",
|
|
185
221
|
"invalidEntityProperties": "The schema has no properties defined, but the entity has properties",
|
|
186
222
|
"invalidEntityProperty": "The entity value of \"{value}\" does not match the type \"{type}\" for property \"{property}\"",
|
|
187
223
|
"invalidOptional": "The entity property \"{property}\" of type \"{type}\" is not optional, but no value has been provided",
|
|
188
|
-
"invalidEntityKeys": "The entity had additional properties that are not in the schema, \"{keys}\""
|
|
224
|
+
"invalidEntityKeys": "The entity had additional properties that are not in the schema, \"{keys}\"",
|
|
225
|
+
"versionMustBeGreaterThanOrEqualZero": "Property \"entitySchema.version\" must be an integer >= 0, but got {version}"
|
|
189
226
|
},
|
|
190
227
|
"fetchHelper": {
|
|
191
228
|
"decodingJSON": "Decoding JSON failed for route \"{url}\"",
|
|
@@ -220,6 +257,15 @@
|
|
|
220
257
|
"contextIdStore": {
|
|
221
258
|
"asyncHooksNotAvailable": "Async Hooks are not available in this environment, please ensure you are running in Node.js"
|
|
222
259
|
},
|
|
260
|
+
"entityStorageHelper": {
|
|
261
|
+
"sortNotIndexed": "The property \"{property}\" is not indexed and cannot be used for sorting",
|
|
262
|
+
"propertyNotInSchema": "The property \"{property}\" does not exist in the schema and cannot be used for projection"
|
|
263
|
+
},
|
|
264
|
+
"migrationHelper": {
|
|
265
|
+
"migrateSchemaFailed": "Migration failed for schema \"{schemaName}\".",
|
|
266
|
+
"transformRequiredForProperty": "A transformation function is required to migrate property \"{from}\" to \"{to}\" of type \"{type}\"",
|
|
267
|
+
"coercionProducedUndefined": "Coercion of property \"{property}\" to type \"{type}\" produced undefined but the property is not optional"
|
|
268
|
+
},
|
|
223
269
|
"verificationHelper": {
|
|
224
270
|
"jwtDecodeFailed": "Decoding the JWT failed",
|
|
225
271
|
"proofMissingVerificationMethod": "The proof is missing the verification method"
|
|
@@ -247,42 +293,48 @@
|
|
|
247
293
|
"publicKeyMultibaseMissingHeader": "Public key multibase \"{publicKeyMultibase}\" is missing the multi codec header",
|
|
248
294
|
"secretKeyMultibaseMissingHeader": "Secret key multibase \"{secretKeyMultibase}\" is missing the multi codec header"
|
|
249
295
|
},
|
|
296
|
+
"silentTelemetryConnector": {
|
|
297
|
+
"notSupported": "The method \"{methodName}\" is not supported on silent telemetry connector."
|
|
298
|
+
},
|
|
250
299
|
"iotaIdentityResolverConnector": {
|
|
251
300
|
"documentNotFound": "The document could not be found",
|
|
252
301
|
"resolveDocumentFailed": "Resolving the document failed \"{documentId}\""
|
|
253
302
|
},
|
|
254
303
|
"iotaIdentityConnector": {
|
|
255
|
-
"
|
|
256
|
-
"removeDocumentFailed": "Removing the document failed",
|
|
257
|
-
"missingDid": "The full id including DID is required",
|
|
258
|
-
"addVerificationMethodFailed": "Adding the verification method failed",
|
|
259
|
-
"removeVerificationMethodFailed": "Removing the verification method failed",
|
|
304
|
+
"addAlsoKnownAsFailed": "Adding to the alsoKnownAs property failed",
|
|
260
305
|
"addServiceFailed": "Adding the service failed",
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"verificationMethodNotFound": "The verification method could not be found",
|
|
264
|
-
"serviceNotFound": "The service could not be found",
|
|
265
|
-
"publicKeyJwkMissing": "The verification method contains no publicKeyJwk in JWK \"{jwk}\"",
|
|
266
|
-
"publicKeyJwkMethodMissing": "The verification method contains no publicKeyJwk in method \"{method}\"",
|
|
267
|
-
"privateKeyMissing": "The verification method contains no privateKey \"{keyId}\"",
|
|
268
|
-
"verificationKeyMissing": "The verification key is missing from the vault for method \"{method}\"",
|
|
269
|
-
"createVerifiableCredentialFailed": "Creating the verifiable credential failed",
|
|
306
|
+
"addVerificationMethodFailed": "Adding the verification method failed",
|
|
307
|
+
"algorithmKeyTypeMismatch": "Algorithm \"{algorithm}\" requires key type \"{expectedKeyType}\", but key \"{keyId}\" has type \"{actualKeyType}\"",
|
|
270
308
|
"checkingVerifiableCredentialFailed": "Checking the verifiable credential failed",
|
|
271
|
-
"createVerifiablePresentationFailed": "Creating the verifiable presentation failed",
|
|
272
309
|
"checkingVerifiablePresentationFailed": "Checking the verifiable presentation failed",
|
|
310
|
+
"createDocumentFailed": "Creating the document failed",
|
|
273
311
|
"createProofFailed": "Creating the signature for the data failed",
|
|
274
|
-
"
|
|
275
|
-
"
|
|
276
|
-
"
|
|
277
|
-
"
|
|
312
|
+
"createVerifiableCredentialFailed": "Creating the verifiable credential failed",
|
|
313
|
+
"createVerifiablePresentationFailed": "Creating the verifiable presentation failed",
|
|
314
|
+
"didExtractionFailed": "Extracting the DID from the document id failed",
|
|
315
|
+
"documentNotFound": "The document could not be found",
|
|
316
|
+
"gasStationTransactionBuildFailed": "Building the gas station transaction failed",
|
|
317
|
+
"identityNotFound": "The identity could not be found \"{notFoundId}\"",
|
|
318
|
+
"invalidAlias": "The alias is invalid it must be a Url or Urn, it is \"{alias}\"",
|
|
278
319
|
"invalidSubjectId": "The subject id format is invalid it must be a Url or Urn, it is \"{subjectId}\"",
|
|
320
|
+
"methodMissing": "The verification method specified does not exist \"{method}\"",
|
|
279
321
|
"missingControllerToken": "The controller token is missing",
|
|
280
|
-
"
|
|
322
|
+
"missingDid": "The full id including DID is required",
|
|
323
|
+
"privateKeyMissing": "The verification method contains no privateKey \"{keyId}\"",
|
|
324
|
+
"publicKeyJwkMethodMissing": "The verification method contains no publicKeyJwk in method \"{method}\"",
|
|
325
|
+
"removeAlsoKnownAsFailed": "Removing from the alsoKnownAs property failed",
|
|
326
|
+
"removeDocumentFailed": "Removing the document failed",
|
|
327
|
+
"removeServiceFailed": "Removing the service failed",
|
|
328
|
+
"removeVerificationMethodFailed": "Removing the verification method failed",
|
|
281
329
|
"revocationServiceNotFound": "The revocation service could not be found in the document",
|
|
282
|
-
"
|
|
283
|
-
"
|
|
330
|
+
"revokeVerifiableCredentialsFailed": "Revoking verifiable credentials failed",
|
|
331
|
+
"serviceNotFound": "The service could not be found",
|
|
284
332
|
"transactionBuildFailed": "Building the transaction failed",
|
|
285
|
-
"
|
|
333
|
+
"transactionConfirmationTimeout": "The transaction was not confirmed in the expected time",
|
|
334
|
+
"unrevokeVerifiableCredentialsFailed": "Unrevoking verifiable credentials failed",
|
|
335
|
+
"verificationKeyMissing": "The verification key is missing from the vault for method \"{method}\"",
|
|
336
|
+
"verificationMethodNotFound": "The verification method could not be found",
|
|
337
|
+
"verifyProofFailed": "Verifying the signature for the data failed"
|
|
286
338
|
},
|
|
287
339
|
"iota": {
|
|
288
340
|
"insufficientFunds": "There were insufficient funds to complete the operation",
|
|
@@ -292,7 +344,19 @@
|
|
|
292
344
|
"transactionFailed": "The transaction failed",
|
|
293
345
|
"addressNotFound": "The address is missing could not be found from the seed \"{address}\"",
|
|
294
346
|
"gasStationTransactionFailed": "The gas station transaction failed",
|
|
295
|
-
"dryRunFailed": "The dry run execution failed"
|
|
347
|
+
"dryRunFailed": "The dry run execution failed",
|
|
348
|
+
"fundingFailed": "Fund the address from faucet failed",
|
|
349
|
+
"faucetRateLimit": "Faucet rate limit exceeded",
|
|
350
|
+
"missingPublicKey": "The public key is missing for vault key \"{keyName}\""
|
|
351
|
+
},
|
|
352
|
+
"vaultJwkStorage": {
|
|
353
|
+
"generateNotSupported": "Key generation is not supported; keys are managed by the vault"
|
|
354
|
+
},
|
|
355
|
+
"iotaIdentityUtils": {
|
|
356
|
+
"getControllerCapInfoFailed": "Getting the controller capability info for the identity failed",
|
|
357
|
+
"identityNotFound": "The identity could not be found \"{notFoundId}\"",
|
|
358
|
+
"identityDeleted": "The identity \"{identityId}\" has been deleted and cannot be used for minting",
|
|
359
|
+
"controllerTokenNotFound": "No controller token found for the identity \"{notFoundId}\" with the provided controller address"
|
|
296
360
|
},
|
|
297
361
|
"iotaSmartContractUtils": {
|
|
298
362
|
"migrationFailed": "Smart contract migration failed",
|
|
@@ -319,14 +383,11 @@
|
|
|
319
383
|
"keyNotFound": "The key \"{notFoundId}\" was not found in the vault",
|
|
320
384
|
"secretNotFound": "The secret \"{notFoundId}\" was not found in the vault",
|
|
321
385
|
"unsupportedKeyType": "The key type \"{keyType}\" is not supported",
|
|
386
|
+
"symmetricKeyHasNoPrivateKey": "The symmetric key \"{name}\" does not have a separate private key component",
|
|
322
387
|
"keyTypeMismatch": "The key type \"{keyType}\" does not match the requested encryption method \"{encryptionType}\""
|
|
323
388
|
},
|
|
324
389
|
"iotaWalletConnector": {
|
|
325
390
|
"transferFailed": "The wallet transfer failed."
|
|
326
|
-
},
|
|
327
|
-
"iotaFaucetConnector": {
|
|
328
|
-
"fundingFailed": "Fund the address from faucet failed",
|
|
329
|
-
"faucetRateLimit": "Faucet rate limit exceeded"
|
|
330
391
|
}
|
|
331
392
|
},
|
|
332
393
|
"errorNames": {
|
|
@@ -721,12 +782,77 @@
|
|
|
721
782
|
"addressIndex": "Address Index"
|
|
722
783
|
}
|
|
723
784
|
},
|
|
785
|
+
"verifiable-presentation-create": {
|
|
786
|
+
"summary": "Create a verifiable presentation.",
|
|
787
|
+
"description": "Create a verifiable presentation.",
|
|
788
|
+
"options": {
|
|
789
|
+
"verification-method-id": {
|
|
790
|
+
"param": "--verification-method-id '<'verification-method-id'>'",
|
|
791
|
+
"description": "The full verification method id including did, or start with ! to read environment variable."
|
|
792
|
+
},
|
|
793
|
+
"private-key": {
|
|
794
|
+
"param": "--private-key '<'private-key'>'",
|
|
795
|
+
"description": "The private key for the verification method id, in either hex or base64 form, or start with ! to read environment variable."
|
|
796
|
+
},
|
|
797
|
+
"presentation-id": {
|
|
798
|
+
"param": "--presentation-id '<'presentation-id'>'",
|
|
799
|
+
"description": "The presentation id which uniquely identifies the presentation."
|
|
800
|
+
},
|
|
801
|
+
"jwt": {
|
|
802
|
+
"param": "--jwt '<'jwt'>'",
|
|
803
|
+
"description": "Comma-separated list of verifiable credential JWTs to include in the presentation, or start with ! to read environment variable."
|
|
804
|
+
},
|
|
805
|
+
"json-ld": {
|
|
806
|
+
"param": "--json-ld '<'json-ld'>'",
|
|
807
|
+
"description": "Comma-separated list of JSON-LD filenames containing verifiable credentials to include in the presentation."
|
|
808
|
+
},
|
|
809
|
+
"expiration-date": {
|
|
810
|
+
"param": "--expiration-date '<'ISO Date'>'",
|
|
811
|
+
"description": "The expiration date for the presentation."
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"progress": {
|
|
815
|
+
"creatingVerifiablePresentation": "Creating Verifiable Presentation",
|
|
816
|
+
"loadingCredentialData": "Loading Credential Data"
|
|
817
|
+
},
|
|
818
|
+
"labels": {
|
|
819
|
+
"verificationMethodId": "Verification Method Id",
|
|
820
|
+
"presentationId": "Presentation Id",
|
|
821
|
+
"jwt": "JWT Credentials",
|
|
822
|
+
"jsonLd": "JSON-LD Credentials",
|
|
823
|
+
"verifiablePresentation": "Verifiable Presentation",
|
|
824
|
+
"expirationDate": "Expiration Date"
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
"verifiable-presentation-verify": {
|
|
828
|
+
"summary": "Verify a verifiable presentation.",
|
|
829
|
+
"description": "Verify a verifiable presentation.",
|
|
830
|
+
"options": {
|
|
831
|
+
"jwt": {
|
|
832
|
+
"param": "--jwt '<'jwt'>'",
|
|
833
|
+
"description": "The verifiable presentation as a JSON web token to verify, or start with ! to read environment variable."
|
|
834
|
+
},
|
|
835
|
+
"json-ld": {
|
|
836
|
+
"param": "--json-ld '<'json-ld'>'",
|
|
837
|
+
"description": "A JSON-LD file containing the verifiable presentation to verify."
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"progress": {
|
|
841
|
+
"verifyingPresentation": "Verifying Presentation"
|
|
842
|
+
},
|
|
843
|
+
"labels": {
|
|
844
|
+
"jwt": "JWT",
|
|
845
|
+
"jsonLd": "JSON-LD",
|
|
846
|
+
"isVerified": "Is Verified",
|
|
847
|
+
"isRevoked": "Is Revoked"
|
|
848
|
+
}
|
|
849
|
+
},
|
|
724
850
|
"verifiable-credential-create": {
|
|
725
851
|
"summary": "Create a verifiable credential.",
|
|
726
852
|
"description": "Create a verifiable credential.",
|
|
727
853
|
"options": {
|
|
728
|
-
"id": {
|
|
729
|
-
"param": "--id '<'id'>'",
|
|
854
|
+
"verification-method-id": {
|
|
855
|
+
"param": "--verification-method-id '<'verification-method-id'>'",
|
|
730
856
|
"description": "The full verification method id including did, or start with ! to read environment variable."
|
|
731
857
|
},
|
|
732
858
|
"private-key": {
|
|
@@ -770,6 +896,10 @@
|
|
|
770
896
|
"jwt": {
|
|
771
897
|
"param": "--jwt '<'jwt'>'",
|
|
772
898
|
"description": "The verifiable credential as a JSON web token to verify, or start with ! to read environment variable."
|
|
899
|
+
},
|
|
900
|
+
"json-ld": {
|
|
901
|
+
"param": "--json-ld '<'json-ld'>'",
|
|
902
|
+
"description": "A JSON-LD file containing the verifiable credential to verify."
|
|
773
903
|
}
|
|
774
904
|
},
|
|
775
905
|
"progress": {
|
|
@@ -777,6 +907,7 @@
|
|
|
777
907
|
},
|
|
778
908
|
"labels": {
|
|
779
909
|
"jwt": "JWT",
|
|
910
|
+
"jsonLd": "JSON-LD",
|
|
780
911
|
"isVerified": "Is Verified",
|
|
781
912
|
"isRevoked": "Is Revoked"
|
|
782
913
|
}
|
|
@@ -885,14 +1016,95 @@
|
|
|
885
1016
|
"proofFilename": "Proof Filename",
|
|
886
1017
|
"isVerified": "Is Verified"
|
|
887
1018
|
}
|
|
1019
|
+
},
|
|
1020
|
+
"also-known-as-add": {
|
|
1021
|
+
"summary": "Add an alias (alsoKnownAs) to a DID.",
|
|
1022
|
+
"description": "Add an alias (alsoKnownAs) to a DID.",
|
|
1023
|
+
"options": {
|
|
1024
|
+
"seed": {
|
|
1025
|
+
"param": "--seed '<'seed'>'",
|
|
1026
|
+
"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."
|
|
1027
|
+
},
|
|
1028
|
+
"did": {
|
|
1029
|
+
"param": "--did '<'did'>'",
|
|
1030
|
+
"description": "The identifier to add the alias to, or start with ! to read environment variable."
|
|
1031
|
+
},
|
|
1032
|
+
"alias": {
|
|
1033
|
+
"param": "--alias '<'alias'>'",
|
|
1034
|
+
"description": "The alias (alsoKnownAs) value to add."
|
|
1035
|
+
},
|
|
1036
|
+
"addressIndex": {
|
|
1037
|
+
"param": "--address-index '<'index'>'",
|
|
1038
|
+
"description": "The address index to use for the identity controller."
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"progress": {
|
|
1042
|
+
"addingAlsoKnownAs": "Adding Alias (alsoKnownAs)"
|
|
1043
|
+
},
|
|
1044
|
+
"labels": {
|
|
1045
|
+
"alias": "Alias (alsoKnownAs)",
|
|
1046
|
+
"addressIndex": "Address Index"
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
"also-known-as-remove": {
|
|
1050
|
+
"summary": "Remove an alias (alsoKnownAs) from a DID.",
|
|
1051
|
+
"description": "Remove an alias (alsoKnownAs) from a DID.",
|
|
1052
|
+
"options": {
|
|
1053
|
+
"seed": {
|
|
1054
|
+
"param": "--seed '<'seed'>'",
|
|
1055
|
+
"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."
|
|
1056
|
+
},
|
|
1057
|
+
"did": {
|
|
1058
|
+
"param": "--did '<'did'>'",
|
|
1059
|
+
"description": "The identifier to remove the alias from, or start with ! to read environment variable."
|
|
1060
|
+
},
|
|
1061
|
+
"alias": {
|
|
1062
|
+
"param": "--alias '<'alias'>'",
|
|
1063
|
+
"description": "The alias (alsoKnownAs) value to remove."
|
|
1064
|
+
},
|
|
1065
|
+
"addressIndex": {
|
|
1066
|
+
"param": "--address-index '<'index'>'",
|
|
1067
|
+
"description": "The address index to use for the identity controller."
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
"progress": {
|
|
1071
|
+
"removingAlsoKnownAs": "Removing Alias (alsoKnownAs)"
|
|
1072
|
+
},
|
|
1073
|
+
"labels": {
|
|
1074
|
+
"alias": "Alias (alsoKnownAs)",
|
|
1075
|
+
"addressIndex": "Address Index"
|
|
1076
|
+
}
|
|
888
1077
|
}
|
|
889
1078
|
},
|
|
890
|
-
"errorMessages": {
|
|
891
|
-
"fetch": "Fetch"
|
|
892
|
-
},
|
|
893
1079
|
"info": {
|
|
1080
|
+
"memoryEntityStorageConnector": {
|
|
1081
|
+
"storeTearingDown": "Tearing down entity storage",
|
|
1082
|
+
"storeTornDown": "Entity storage torn down"
|
|
1083
|
+
},
|
|
1084
|
+
"migrationHelper": {
|
|
1085
|
+
"migrateSchemaStarting": "Migrating schema \"{schemaName}\"",
|
|
1086
|
+
"migrateSchemaFinalizing": "Finalizing migration of schema \"{schemaName}\"",
|
|
1087
|
+
"migrateSchemaComplete": "Migration of schema \"{schemaName}\" complete"
|
|
1088
|
+
},
|
|
894
1089
|
"iota": {
|
|
895
1090
|
"transactionCosts": "Transaction costs for operation \"{operation}\", \"{cost}\""
|
|
896
1091
|
}
|
|
1092
|
+
},
|
|
1093
|
+
"health": {
|
|
1094
|
+
"memoryEntityStorageConnector": {
|
|
1095
|
+
"healthDescription": "Memory entity storage for \"{entityType}\" is always available"
|
|
1096
|
+
},
|
|
1097
|
+
"iotaIdentityConnector": {
|
|
1098
|
+
"healthDescription": "Connectivity and availability of the IOTA node \"{endpoint}\"",
|
|
1099
|
+
"nodeHealthCheckFailed": "Failed to check IOTA node health status \"{endpoint}\""
|
|
1100
|
+
},
|
|
1101
|
+
"iotaIdentityConnectorGasStation": {
|
|
1102
|
+
"healthDescription": "Connectivity and availability of the IOTA gas station \"{endpoint}\"",
|
|
1103
|
+
"healthCheckFailed": "Failed to check gas station health status \"{endpoint}\""
|
|
1104
|
+
},
|
|
1105
|
+
"iotaIdentityResolverConnector": {
|
|
1106
|
+
"healthDescription": "Connectivity and availability of the IOTA resolver node \"{endpoint}\"",
|
|
1107
|
+
"nodeHealthCheckFailed": "Failed to check IOTA node health status \"{endpoint}\""
|
|
1108
|
+
}
|
|
897
1109
|
}
|
|
898
1110
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type CliOutputOptions } from "@twin.org/cli-core";
|
|
2
|
+
import { Command } from "commander";
|
|
3
|
+
import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
|
|
4
|
+
/**
|
|
5
|
+
* Build the alsoKnownAs add command for the CLI.
|
|
6
|
+
* @returns The command.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildCommandAlsoKnownAsAdd(): Command;
|
|
9
|
+
/**
|
|
10
|
+
* Action the alsoKnownAs add command.
|
|
11
|
+
* @param opts The options for the command.
|
|
12
|
+
* @param opts.seed The private key for the controller.
|
|
13
|
+
* @param opts.did The identity of the document to add to.
|
|
14
|
+
* @param opts.alias The alsoKnownAs value to add.
|
|
15
|
+
* @param opts.addressIndex The address index to use for key derivation (if applicable).
|
|
16
|
+
* @param opts.connector The connector to perform the operations with.
|
|
17
|
+
* @param opts.node The node URL.
|
|
18
|
+
* @param opts.network The network to use for connector.
|
|
19
|
+
* @param opts.explorer The explorer URL.
|
|
20
|
+
*/
|
|
21
|
+
export declare function actionCommandAlsoKnownAsAdd(opts: {
|
|
22
|
+
seed: string;
|
|
23
|
+
did: string;
|
|
24
|
+
alias: string;
|
|
25
|
+
addressIndex?: string;
|
|
26
|
+
connector?: IdentityConnectorTypes;
|
|
27
|
+
node: string;
|
|
28
|
+
network?: string;
|
|
29
|
+
explorer: string;
|
|
30
|
+
} & CliOutputOptions): Promise<void>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type CliOutputOptions } from "@twin.org/cli-core";
|
|
2
|
+
import { Command } from "commander";
|
|
3
|
+
import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
|
|
4
|
+
/**
|
|
5
|
+
* Build the alsoKnownAs remove command for the CLI.
|
|
6
|
+
* @returns The command.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildCommandAlsoKnownAsRemove(): Command;
|
|
9
|
+
/**
|
|
10
|
+
* Action the alsoKnownAs remove command.
|
|
11
|
+
* @param opts The options for the command.
|
|
12
|
+
* @param opts.seed The private key for the controller.
|
|
13
|
+
* @param opts.did The identity of the document to remove from.
|
|
14
|
+
* @param opts.alias The alsoKnownAs value to remove.
|
|
15
|
+
* @param opts.addressIndex The address index to use for key derivation (if applicable).
|
|
16
|
+
* @param opts.connector The connector to perform the operations with.
|
|
17
|
+
* @param opts.node The node URL.
|
|
18
|
+
* @param opts.network The network to use for connector.
|
|
19
|
+
* @param opts.explorer The explorer URL.
|
|
20
|
+
*/
|
|
21
|
+
export declare function actionCommandAlsoKnownAsRemove(opts: {
|
|
22
|
+
seed: string;
|
|
23
|
+
did: string;
|
|
24
|
+
alias: string;
|
|
25
|
+
addressIndex?: string;
|
|
26
|
+
connector?: IdentityConnectorTypes;
|
|
27
|
+
node: string;
|
|
28
|
+
network?: string;
|
|
29
|
+
explorer: string;
|
|
30
|
+
} & CliOutputOptions): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IIdentityConnector, IIdentityResolverConnector } from "@twin.org/identity-models";
|
|
2
|
-
import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
|
|
3
|
-
import { IdentityResolverConnectorTypes } from "../models/identityResolverConnectorTypes.js";
|
|
2
|
+
import type { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
|
|
3
|
+
import type { IdentityResolverConnectorTypes } from "../models/identityResolverConnectorTypes.js";
|
|
4
4
|
/**
|
|
5
5
|
* Setup the vault for use in the CLI commands.
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@ export declare function buildCommandVerifiableCredentialCreate(): Command;
|
|
|
9
9
|
/**
|
|
10
10
|
* Action the verifiable credential create command.
|
|
11
11
|
* @param opts The options for the command.
|
|
12
|
-
* @param opts.
|
|
12
|
+
* @param opts.verificationMethodId The id of the verification method to use for the credential.
|
|
13
13
|
* @param opts.privateKey The private key for the verification method.
|
|
14
14
|
* @param opts.credentialId The id of the credential.
|
|
15
15
|
* @param opts.subjectJson The JSON data for the subject.
|
|
@@ -19,7 +19,7 @@ export declare function buildCommandVerifiableCredentialCreate(): Command;
|
|
|
19
19
|
* @param opts.node The node URL.
|
|
20
20
|
*/
|
|
21
21
|
export declare function actionCommandVerifiableCredentialCreate(opts: {
|
|
22
|
-
|
|
22
|
+
verificationMethodId: string;
|
|
23
23
|
privateKey: string;
|
|
24
24
|
credentialId?: string;
|
|
25
25
|
subjectJson: string;
|
|
@@ -10,11 +10,13 @@ export declare function buildCommandVerifiableCredentialVerify(): Command;
|
|
|
10
10
|
* Action the verifiable credential verify command.
|
|
11
11
|
* @param opts The options for the command.
|
|
12
12
|
* @param opts.jwt The JSON web token for the verifiable credential.
|
|
13
|
+
* @param opts.jsonLd The filename of a JSON-LD verifiable credential to verify.
|
|
13
14
|
* @param opts.connector The connector to perform the operations with.
|
|
14
15
|
* @param opts.node The node URL.
|
|
15
16
|
*/
|
|
16
17
|
export declare function actionCommandVerifiableCredentialVerify(opts: {
|
|
17
|
-
jwt
|
|
18
|
+
jwt?: string;
|
|
19
|
+
jsonLd?: string;
|
|
18
20
|
connector?: IdentityConnectorTypes;
|
|
19
21
|
node: string;
|
|
20
22
|
network?: string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type CliOutputOptions } from "@twin.org/cli-core";
|
|
2
|
+
import { Command } from "commander";
|
|
3
|
+
import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
|
|
4
|
+
/**
|
|
5
|
+
* Build the verifiable presentation create command for the CLI.
|
|
6
|
+
* @returns The command.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildCommandVerifiablePresentationCreate(): Command;
|
|
9
|
+
/**
|
|
10
|
+
* Action the verifiable presentation create command.
|
|
11
|
+
* @param opts The options for the command.
|
|
12
|
+
* @param opts.verificationMethodId The id of the verification method to use.
|
|
13
|
+
* @param opts.privateKey The private key for the verification method.
|
|
14
|
+
* @param opts.presentationId The optional id of the presentation.
|
|
15
|
+
* @param opts.jwt Comma-separated JWT credential strings to include.
|
|
16
|
+
* @param opts.jsonLd Comma-separated JSON-LD filenames to include.
|
|
17
|
+
* @param opts.expirationDate The expiration date for the presentation.
|
|
18
|
+
* @param opts.connector The connector to perform the operations with.
|
|
19
|
+
* @param opts.node The node URL.
|
|
20
|
+
* @param opts.network The network name.
|
|
21
|
+
*/
|
|
22
|
+
export declare function actionCommandVerifiablePresentationCreate(opts: {
|
|
23
|
+
verificationMethodId: string;
|
|
24
|
+
privateKey: string;
|
|
25
|
+
presentationId?: string;
|
|
26
|
+
jwt?: string;
|
|
27
|
+
jsonLd?: string;
|
|
28
|
+
expirationDate?: string;
|
|
29
|
+
connector?: IdentityConnectorTypes;
|
|
30
|
+
node: string;
|
|
31
|
+
network?: string;
|
|
32
|
+
} & CliOutputOptions): Promise<void>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type CliOutputOptions } from "@twin.org/cli-core";
|
|
2
|
+
import { Command } from "commander";
|
|
3
|
+
import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
|
|
4
|
+
/**
|
|
5
|
+
* Build the verifiable presentation verify command for the CLI.
|
|
6
|
+
* @returns The command.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildCommandVerifiablePresentationVerify(): Command;
|
|
9
|
+
/**
|
|
10
|
+
* Action the verifiable presentation verify command.
|
|
11
|
+
* @param opts The options for the command.
|
|
12
|
+
* @param opts.jwt The JSON web token for the verifiable presentation.
|
|
13
|
+
* @param opts.jsonLd The filename of a JSON-LD verifiable presentation to verify.
|
|
14
|
+
* @param opts.connector The connector to perform the operations with.
|
|
15
|
+
* @param opts.node The node URL.
|
|
16
|
+
* @param opts.network The network name.
|
|
17
|
+
*/
|
|
18
|
+
export declare function actionCommandVerifiablePresentationVerify(opts: {
|
|
19
|
+
jwt?: string;
|
|
20
|
+
jsonLd?: string;
|
|
21
|
+
connector?: IdentityConnectorTypes;
|
|
22
|
+
node: string;
|
|
23
|
+
network?: string;
|
|
24
|
+
} & CliOutputOptions): Promise<void>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export * from "./commands/serviceAdd.js";
|
|
|
7
7
|
export * from "./commands/serviceRemove.js";
|
|
8
8
|
export * from "./commands/setupCommands.js";
|
|
9
9
|
export * from "./commands/verifiableCredentialCreate.js";
|
|
10
|
+
export * from "./commands/verifiablePresentationCreate.js";
|
|
11
|
+
export * from "./commands/verifiablePresentationVerify.js";
|
|
10
12
|
export * from "./commands/verifiableCredentialRevoke.js";
|
|
11
13
|
export * from "./commands/verifiableCredentialUnrevoke.js";
|
|
12
14
|
export * from "./commands/verifiableCredentialVerify.js";
|