@twin.org/identity-cli 0.0.3-next.9 → 0.9.0
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/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 +11 -8
- 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 +669 -117
- 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
|
@@ -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";
|