@twin.org/standards-w3c-did 0.0.1-next.4 → 0.0.1-next.6
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/dist/types/models/IDidVerifiableCredential.d.ts +3 -3
- package/dist/types/models/IDidVerifiablePresentation.d.ts +2 -1
- package/docs/changelog.md +1 -1
- package/docs/reference/interfaces/IDidVerifiableCredential.md +2 -6
- package/docs/reference/interfaces/IDidVerifiablePresentation.md +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { IJsonLdContextDefinitionRoot } from "@twin.org/data-json-ld";
|
|
1
|
+
import type { IJsonLdContextDefinitionRoot, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { IDidCredentialStatus } from "./IDidCredentialStatus";
|
|
3
3
|
import type { IDidProof } from "./IDidProof";
|
|
4
4
|
/**
|
|
5
5
|
* Interface describing a verifiable credential.
|
|
6
6
|
*/
|
|
7
|
-
export interface IDidVerifiableCredential
|
|
7
|
+
export interface IDidVerifiableCredential {
|
|
8
8
|
/**
|
|
9
9
|
* The context for the verifiable credential.
|
|
10
10
|
*/
|
|
@@ -20,7 +20,7 @@ export interface IDidVerifiableCredential<T = unknown> {
|
|
|
20
20
|
/**
|
|
21
21
|
* The data for the verifiable credential.
|
|
22
22
|
*/
|
|
23
|
-
credentialSubject:
|
|
23
|
+
credentialSubject: IJsonLdNodeObject | IJsonLdNodeObject[];
|
|
24
24
|
/**
|
|
25
25
|
* Used to discover information about the current status of the
|
|
26
26
|
* verifiable credential, such as whether it is suspended or revoked.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionRoot } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { IDidProof } from "./IDidProof";
|
|
3
|
+
import type { IDidVerifiableCredential } from "./IDidVerifiableCredential";
|
|
3
4
|
/**
|
|
4
5
|
* Interface describing a verifiable presentation.
|
|
5
6
|
*/
|
|
@@ -19,7 +20,7 @@ export interface IDidVerifiablePresentation {
|
|
|
19
20
|
/**
|
|
20
21
|
* The data for the verifiable credentials.
|
|
21
22
|
*/
|
|
22
|
-
verifiableCredential: string[];
|
|
23
|
+
verifiableCredential: (string | IDidVerifiableCredential)[];
|
|
23
24
|
/**
|
|
24
25
|
* The entity generating the presentation.
|
|
25
26
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
# Interface: IDidVerifiableCredential
|
|
1
|
+
# Interface: IDidVerifiableCredential
|
|
2
2
|
|
|
3
3
|
Interface describing a verifiable credential.
|
|
4
4
|
|
|
5
|
-
## Type Parameters
|
|
6
|
-
|
|
7
|
-
• **T** = `unknown`
|
|
8
|
-
|
|
9
5
|
## Properties
|
|
10
6
|
|
|
11
7
|
### @context
|
|
@@ -34,7 +30,7 @@ The types of the data stored in the verifiable credential.
|
|
|
34
30
|
|
|
35
31
|
### credentialSubject
|
|
36
32
|
|
|
37
|
-
> **credentialSubject**: `
|
|
33
|
+
> **credentialSubject**: `IJsonLdNodeObject` \| `IJsonLdNodeObject`[]
|
|
38
34
|
|
|
39
35
|
The data for the verifiable credential.
|
|
40
36
|
|
|
@@ -30,7 +30,7 @@ The types of the data stored in the verifiable credential.
|
|
|
30
30
|
|
|
31
31
|
### verifiableCredential
|
|
32
32
|
|
|
33
|
-
> **verifiableCredential**: `string`[]
|
|
33
|
+
> **verifiableCredential**: (`string` \| [`IDidVerifiableCredential`](IDidVerifiableCredential.md))[]
|
|
34
34
|
|
|
35
35
|
The data for the verifiable credentials.
|
|
36
36
|
|