@twin.org/trust-models 0.0.3-next.7 → 0.0.3-next.8

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.
@@ -1,4 +1,2 @@
1
- // Copyright 2025 IOTA Stiftung.
2
- // SPDX-License-Identifier: Apache-2.0.
3
1
  export {};
4
2
  //# sourceMappingURL=ITrustVerificationInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ITrustVerificationInfo.js","sourceRoot":"","sources":["../../../src/models/ITrustVerificationInfo.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Interface describing a trust verifier information.\n */\nexport interface ITrustVerificationInfo {\n\t[key: string]: unknown;\n\n\t/**\n\t * The identity associated with the payload.\n\t */\n\tidentity: string;\n}\n"]}
1
+ {"version":3,"file":"ITrustVerificationInfo.js","sourceRoot":"","sources":["../../../src/models/ITrustVerificationInfo.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * Interface describing a trust verifier information.\n */\nexport interface ITrustVerificationInfo {\n\t/**\n\t * The identity associated with the payload.\n\t */\n\tidentity: string;\n\n\t/**\n\t * Additional JSON-LD node objects associated with the verification.\n\t */\n\tdata?: {\n\t\t[key: string]: IJsonLdNodeObject;\n\t};\n}\n"]}
@@ -1,10 +1,16 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
1
2
  /**
2
3
  * Interface describing a trust verifier information.
3
4
  */
4
5
  export interface ITrustVerificationInfo {
5
- [key: string]: unknown;
6
6
  /**
7
7
  * The identity associated with the payload.
8
8
  */
9
9
  identity: string;
10
+ /**
11
+ * Additional JSON-LD node objects associated with the verification.
12
+ */
13
+ data?: {
14
+ [key: string]: IJsonLdNodeObject;
15
+ };
10
16
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.8](https://github.com/twinfoundation/trust/compare/trust-models-v0.0.3-next.7...trust-models-v0.0.3-next.8) (2026-01-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * verification info structure ([#10](https://github.com/twinfoundation/trust/issues/10)) ([8b09ec8](https://github.com/twinfoundation/trust/commit/8b09ec8128214b659f427fc3a985eb8ced9ed5dc))
9
+
3
10
  ## [0.0.3-next.7](https://github.com/twinfoundation/trust/compare/trust-models-v0.0.3-next.6...trust-models-v0.0.3-next.7) (2025-12-04)
4
11
 
5
12
 
@@ -2,10 +2,6 @@
2
2
 
3
3
  Interface describing a trust verifier information.
4
4
 
5
- ## Indexable
6
-
7
- \[`key`: `string`\]: `unknown`
8
-
9
5
  ## Properties
10
6
 
11
7
  ### identity
@@ -13,3 +9,15 @@ Interface describing a trust verifier information.
13
9
  > **identity**: `string`
14
10
 
15
11
  The identity associated with the payload.
12
+
13
+ ***
14
+
15
+ ### data?
16
+
17
+ > `optional` **data**: `object`
18
+
19
+ Additional JSON-LD node objects associated with the verification.
20
+
21
+ #### Index Signature
22
+
23
+ \[`key`: `string`\]: `IJsonLdNodeObject`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/trust-models",
3
- "version": "0.0.3-next.7",
3
+ "version": "0.0.3-next.8",
4
4
  "description": "Models which define the structure of the trust contracts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,6 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/core": "next",
18
+ "@twin.org/data-json-ld": "next",
18
19
  "@twin.org/nameof": "next"
19
20
  },
20
21
  "main": "./dist/es/index.js",