@twin.org/attestation-models 0.0.1-next.16 → 0.0.1-next.18
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/cjs/index.cjs +12 -12
- package/dist/esm/index.mjs +12 -12
- package/dist/types/models/IAttestationInformation.d.ts +5 -1
- package/dist/types/models/attestationTypes.d.ts +4 -0
- package/docs/changelog.md +1 -1
- package/docs/reference/interfaces/IAttestationInformation.md +1 -1
- package/docs/reference/variables/AttestationTypes.md +6 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
@@ -14,6 +14,10 @@ const AttestationTypes = {
|
|
14
14
|
* The context root for the attestation types.
|
15
15
|
*/
|
16
16
|
ContextRoot: "https://schema.twindev.org/attestation/",
|
17
|
+
/**
|
18
|
+
* The context root for the common types.
|
19
|
+
*/
|
20
|
+
ContextRootCommon: "https://schema.twindev.org/common/",
|
17
21
|
/**
|
18
22
|
* Represents attestation information.
|
19
23
|
*/
|
@@ -27,25 +31,21 @@ const AttestationTypes = {
|
|
27
31
|
var type$1 = "object";
|
28
32
|
var properties$1 = {
|
29
33
|
"@context": {
|
30
|
-
|
34
|
+
type: "array",
|
35
|
+
minItems: 2,
|
36
|
+
items: [
|
31
37
|
{
|
32
38
|
type: "string",
|
33
39
|
"const": "https://schema.twindev.org/attestation/"
|
34
40
|
},
|
35
41
|
{
|
36
|
-
type: "
|
37
|
-
|
38
|
-
items: [
|
39
|
-
{
|
40
|
-
type: "string",
|
41
|
-
"const": "https://schema.twindev.org/attestation/"
|
42
|
-
}
|
43
|
-
],
|
44
|
-
additionalItems: {
|
45
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
46
|
-
}
|
42
|
+
type: "string",
|
43
|
+
"const": "https://schema.twindev.org/common/"
|
47
44
|
}
|
48
45
|
],
|
46
|
+
additionalItems: {
|
47
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
48
|
+
},
|
49
49
|
description: "JSON-LD Context."
|
50
50
|
},
|
51
51
|
type: {
|
package/dist/esm/index.mjs
CHANGED
@@ -12,6 +12,10 @@ const AttestationTypes = {
|
|
12
12
|
* The context root for the attestation types.
|
13
13
|
*/
|
14
14
|
ContextRoot: "https://schema.twindev.org/attestation/",
|
15
|
+
/**
|
16
|
+
* The context root for the common types.
|
17
|
+
*/
|
18
|
+
ContextRootCommon: "https://schema.twindev.org/common/",
|
15
19
|
/**
|
16
20
|
* Represents attestation information.
|
17
21
|
*/
|
@@ -25,25 +29,21 @@ const AttestationTypes = {
|
|
25
29
|
var type$1 = "object";
|
26
30
|
var properties$1 = {
|
27
31
|
"@context": {
|
28
|
-
|
32
|
+
type: "array",
|
33
|
+
minItems: 2,
|
34
|
+
items: [
|
29
35
|
{
|
30
36
|
type: "string",
|
31
37
|
"const": "https://schema.twindev.org/attestation/"
|
32
38
|
},
|
33
39
|
{
|
34
|
-
type: "
|
35
|
-
|
36
|
-
items: [
|
37
|
-
{
|
38
|
-
type: "string",
|
39
|
-
"const": "https://schema.twindev.org/attestation/"
|
40
|
-
}
|
41
|
-
],
|
42
|
-
additionalItems: {
|
43
|
-
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
44
|
-
}
|
40
|
+
type: "string",
|
41
|
+
"const": "https://schema.twindev.org/common/"
|
45
42
|
}
|
46
43
|
],
|
44
|
+
additionalItems: {
|
45
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
46
|
+
},
|
47
47
|
description: "JSON-LD Context."
|
48
48
|
},
|
49
49
|
type: {
|
@@ -7,7 +7,11 @@ export interface IAttestationInformation {
|
|
7
7
|
/**
|
8
8
|
* JSON-LD Context.
|
9
9
|
*/
|
10
|
-
"@context":
|
10
|
+
"@context": [
|
11
|
+
typeof AttestationTypes.ContextRoot,
|
12
|
+
typeof AttestationTypes.ContextRootCommon,
|
13
|
+
...IJsonLdContextDefinitionElement[]
|
14
|
+
];
|
11
15
|
/**
|
12
16
|
* JSON-LD Type.
|
13
17
|
*/
|
@@ -6,6 +6,10 @@ export declare const AttestationTypes: {
|
|
6
6
|
* The context root for the attestation types.
|
7
7
|
*/
|
8
8
|
readonly ContextRoot: "https://schema.twindev.org/attestation/";
|
9
|
+
/**
|
10
|
+
* The context root for the common types.
|
11
|
+
*/
|
12
|
+
readonly ContextRootCommon: "https://schema.twindev.org/common/";
|
9
13
|
/**
|
10
14
|
* Represents attestation information.
|
11
15
|
*/
|
package/docs/changelog.md
CHANGED
@@ -6,7 +6,7 @@ Interface describing the collated attestation information.
|
|
6
6
|
|
7
7
|
### @context
|
8
8
|
|
9
|
-
> **@context**: `"https://schema.twindev.org/attestation/"
|
9
|
+
> **@context**: \[`"https://schema.twindev.org/attestation/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
|
10
10
|
|
11
11
|
JSON-LD Context.
|
12
12
|
|
@@ -12,6 +12,12 @@ The types of attestation data.
|
|
12
12
|
|
13
13
|
The context root for the attestation types.
|
14
14
|
|
15
|
+
### ContextRootCommon
|
16
|
+
|
17
|
+
> `readonly` **ContextRootCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
18
|
+
|
19
|
+
The context root for the common types.
|
20
|
+
|
15
21
|
### Information
|
16
22
|
|
17
23
|
> `readonly` **Information**: `"Information"` = `"Information"`
|