@twin.org/attestation-models 0.0.1-next.6 → 0.0.1-next.7

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.
@@ -14,13 +14,13 @@ export interface IAttestationComponent extends IComponent {
14
14
  * @param nodeIdentity The node identity to include in the attestation.
15
15
  * @returns The collated attestation data.
16
16
  */
17
- attest<T extends IJsonLdNodeObject = IJsonLdNodeObject>(verificationMethodId: string, data: T, namespace?: string, identity?: string, nodeIdentity?: string): Promise<IAttestationInformation<T>>;
17
+ attest<T extends IJsonLdNodeObject>(verificationMethodId: string, data: T, namespace?: string, identity?: string, nodeIdentity?: string): Promise<IAttestationInformation<T>>;
18
18
  /**
19
19
  * Resolve and verify the attestation id.
20
20
  * @param attestationId The attestation id to verify.
21
21
  * @returns The verified attestation details.
22
22
  */
23
- verify<T extends IJsonLdNodeObject = IJsonLdNodeObject>(attestationId: string): Promise<{
23
+ verify<T extends IJsonLdNodeObject>(attestationId: string): Promise<{
24
24
  verified: boolean;
25
25
  failure?: string;
26
26
  information?: Partial<IAttestationInformation<T>>;
@@ -32,7 +32,7 @@ export interface IAttestationComponent extends IComponent {
32
32
  * @param identity The identity to perform the attestation operation with.
33
33
  * @returns The updated attestation details.
34
34
  */
35
- transfer<T extends IJsonLdNodeObject = IJsonLdNodeObject>(attestationId: string, holderIdentity: string, identity?: string): Promise<IAttestationInformation<T>>;
35
+ transfer<T extends IJsonLdNodeObject>(attestationId: string, holderIdentity: string, identity?: string): Promise<IAttestationInformation<T>>;
36
36
  /**
37
37
  * Destroy the attestation.
38
38
  * @param attestationId The attestation to transfer.
@@ -13,13 +13,13 @@ export interface IAttestationConnector extends IComponent {
13
13
  * @param data The data to attest.
14
14
  * @returns The collated attestation data.
15
15
  */
16
- attest<T extends IJsonLdNodeObject = IJsonLdNodeObject>(controller: string, address: string, verificationMethodId: string, data: T): Promise<IAttestationInformation<T>>;
16
+ attest<T extends IJsonLdNodeObject>(controller: string, address: string, verificationMethodId: string, data: T): Promise<IAttestationInformation<T>>;
17
17
  /**
18
18
  * Resolve and verify the attestation id.
19
19
  * @param attestationId The attestation id to verify.
20
20
  * @returns The verified attestation details.
21
21
  */
22
- verify<T extends IJsonLdNodeObject = IJsonLdNodeObject>(attestationId: string): Promise<{
22
+ verify<T extends IJsonLdNodeObject>(attestationId: string): Promise<{
23
23
  verified: boolean;
24
24
  failure?: string;
25
25
  information?: Partial<IAttestationInformation<T>>;
@@ -32,7 +32,7 @@ export interface IAttestationConnector extends IComponent {
32
32
  * @param holderAddress The new controller address of the attestation belonging to the holder.
33
33
  * @returns The updated attestation details.
34
34
  */
35
- transfer<T extends IJsonLdNodeObject = IJsonLdNodeObject>(controller: string, attestationId: string, holderIdentity: string, holderAddress: string): Promise<IAttestationInformation<T>>;
35
+ transfer<T extends IJsonLdNodeObject>(controller: string, attestationId: string, holderIdentity: string, holderAddress: string): Promise<IAttestationInformation<T>>;
36
36
  /**
37
37
  * Destroy the attestation.
38
38
  * @param controller The controller identity of the user to access the vault keys.
@@ -7,6 +7,9 @@ export interface IAttestationAttestResponse {
7
7
  * The result of the attestation process.
8
8
  */
9
9
  body: {
10
+ /**
11
+ * The attestation information.
12
+ */
10
13
  information: IAttestationInformation;
11
14
  };
12
15
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/attestation-models - Changelog
2
2
 
3
- ## v0.0.1-next.6
3
+ ## v0.0.1-next.7
4
4
 
5
5
  - Initial Release
@@ -13,3 +13,5 @@ The result of the attestation process.
13
13
  #### information
14
14
 
15
15
  > **information**: [`IAttestationInformation`](IAttestationInformation.md)\<`IJsonLdNodeObject`\>
16
+
17
+ The attestation information.
@@ -16,7 +16,7 @@ Attest the data and return the collated information.
16
16
 
17
17
  #### Type Parameters
18
18
 
19
- • **T** *extends* `IJsonLdNodeObject` = `IJsonLdNodeObject`
19
+ • **T** *extends* `IJsonLdNodeObject`
20
20
 
21
21
  #### Parameters
22
22
 
@@ -56,7 +56,7 @@ Resolve and verify the attestation id.
56
56
 
57
57
  #### Type Parameters
58
58
 
59
- • **T** *extends* `IJsonLdNodeObject` = `IJsonLdNodeObject`
59
+ • **T** *extends* `IJsonLdNodeObject`
60
60
 
61
61
  #### Parameters
62
62
 
@@ -92,7 +92,7 @@ Transfer the attestation to a new holder.
92
92
 
93
93
  #### Type Parameters
94
94
 
95
- • **T** *extends* `IJsonLdNodeObject` = `IJsonLdNodeObject`
95
+ • **T** *extends* `IJsonLdNodeObject`
96
96
 
97
97
  #### Parameters
98
98
 
@@ -16,7 +16,7 @@ Attest the data and return the collated information.
16
16
 
17
17
  #### Type Parameters
18
18
 
19
- • **T** *extends* `IJsonLdNodeObject` = `IJsonLdNodeObject`
19
+ • **T** *extends* `IJsonLdNodeObject`
20
20
 
21
21
  #### Parameters
22
22
 
@@ -52,7 +52,7 @@ Resolve and verify the attestation id.
52
52
 
53
53
  #### Type Parameters
54
54
 
55
- • **T** *extends* `IJsonLdNodeObject` = `IJsonLdNodeObject`
55
+ • **T** *extends* `IJsonLdNodeObject`
56
56
 
57
57
  #### Parameters
58
58
 
@@ -88,7 +88,7 @@ Transfer the attestation to a new holder.
88
88
 
89
89
  #### Type Parameters
90
90
 
91
- • **T** *extends* `IJsonLdNodeObject` = `IJsonLdNodeObject`
91
+ • **T** *extends* `IJsonLdNodeObject`
92
92
 
93
93
  #### Parameters
94
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/attestation-models",
3
- "version": "0.0.1-next.6",
3
+ "version": "0.0.1-next.7",
4
4
  "description": "Models which define the structure of the attestation connectors and services",
5
5
  "repository": {
6
6
  "type": "git",