@twin.org/standards-w3c-did 0.10.0 → 0.11.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/dist/es/compiled/validators.js +4087 -0
- package/dist/es/compiled/validators.js.map +1 -0
- package/dist/es/dataTypes/didDataTypes.js +55 -26
- package/dist/es/dataTypes/didDataTypes.js.map +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/types/compiled/validators.d.ts +93 -0
- package/dist/types/index.d.ts +1 -0
- package/docs/changelog.md +62 -0
- package/docs/reference/index.md +23 -0
- package/docs/reference/variables/CompiledDataIntegrityProof.md +5 -0
- package/docs/reference/variables/CompiledDidCredentialSchema.md +5 -0
- package/docs/reference/variables/CompiledDidCredentialStatus.md +5 -0
- package/docs/reference/variables/CompiledDidCryptoSuites.md +5 -0
- package/docs/reference/variables/CompiledDidDocument.md +5 -0
- package/docs/reference/variables/CompiledDidDocumentVerificationMethod.md +5 -0
- package/docs/reference/variables/CompiledDidLabel.md +5 -0
- package/docs/reference/variables/CompiledDidPresentationVerification.md +5 -0
- package/docs/reference/variables/CompiledDidService.md +5 -0
- package/docs/reference/variables/CompiledDidTypes.md +5 -0
- package/docs/reference/variables/CompiledDidVerifiableCredential.md +5 -0
- package/docs/reference/variables/CompiledDidVerifiableCredentialCommon.md +5 -0
- package/docs/reference/variables/CompiledDidVerifiableCredentialV1.md +5 -0
- package/docs/reference/variables/CompiledDidVerifiableCredentialV2.md +5 -0
- package/docs/reference/variables/CompiledDidVerifiablePresentation.md +5 -0
- package/docs/reference/variables/CompiledDidVerifiablePresentationCommon.md +5 -0
- package/docs/reference/variables/CompiledDidVerifiablePresentationV1.md +5 -0
- package/docs/reference/variables/CompiledDidVerifiablePresentationV2.md +5 -0
- package/docs/reference/variables/CompiledDidVerificationMethodType.md +5 -0
- package/docs/reference/variables/CompiledJsonWebSignature2020Proof.md +5 -0
- package/docs/reference/variables/CompiledMultikey.md +5 -0
- package/docs/reference/variables/CompiledProof.md +5 -0
- package/docs/reference/variables/CompiledProofTypes.md +5 -0
- package/package.json +7 -7
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Copyright 2025 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
import { DataTypeHelper } from "@twin.org/data-core";
|
|
4
|
+
import { JsonLdDataTypes } from "@twin.org/data-json-ld";
|
|
5
|
+
import * as CompiledValidators from "../compiled/validators.js";
|
|
4
6
|
import { DidContexts } from "../models/didContexts.js";
|
|
5
7
|
import { DidTypes } from "../models/didTypes.js";
|
|
6
8
|
import DataIntegrityProofSchema from "../schemas/DataIntegrityProof.json" with { type: "json" };
|
|
@@ -34,112 +36,139 @@ export class DidDataTypes {
|
|
|
34
36
|
* Register all the data types.
|
|
35
37
|
*/
|
|
36
38
|
static registerTypes() {
|
|
39
|
+
// Register the types referenced by the schemas, which are only registered once.
|
|
40
|
+
JsonLdDataTypes.registerTypes();
|
|
37
41
|
const types = [
|
|
38
42
|
{
|
|
39
43
|
type: DidTypes.DataIntegrityProof,
|
|
40
|
-
schema: DataIntegrityProofSchema
|
|
44
|
+
schema: DataIntegrityProofSchema,
|
|
45
|
+
compiledValidator: CompiledValidators.CompiledDataIntegrityProof
|
|
41
46
|
},
|
|
42
47
|
{
|
|
43
48
|
type: DidTypes.CredentialSchema,
|
|
44
|
-
schema: DidCredentialSchemaSchema
|
|
49
|
+
schema: DidCredentialSchemaSchema,
|
|
50
|
+
compiledValidator: CompiledValidators.CompiledDidCredentialSchema
|
|
45
51
|
},
|
|
46
52
|
{
|
|
47
53
|
type: DidTypes.CredentialStatus,
|
|
48
|
-
schema: DidCredentialStatusSchema
|
|
54
|
+
schema: DidCredentialStatusSchema,
|
|
55
|
+
compiledValidator: CompiledValidators.CompiledDidCredentialStatus
|
|
49
56
|
},
|
|
50
57
|
{
|
|
51
58
|
type: DidTypes.CryptoSuites,
|
|
52
|
-
schema: DidCryptoSuitesSchema
|
|
59
|
+
schema: DidCryptoSuitesSchema,
|
|
60
|
+
compiledValidator: CompiledValidators.CompiledDidCryptoSuites
|
|
53
61
|
},
|
|
54
62
|
{
|
|
55
63
|
type: DidTypes.Document,
|
|
56
|
-
schema: DidDocumentSchema
|
|
64
|
+
schema: DidDocumentSchema,
|
|
65
|
+
compiledValidator: CompiledValidators.CompiledDidDocument
|
|
57
66
|
},
|
|
58
67
|
{
|
|
59
68
|
type: DidTypes.DocumentVerificationMethod,
|
|
60
|
-
schema: DidDocumentVerificationMethodSchema
|
|
69
|
+
schema: DidDocumentVerificationMethodSchema,
|
|
70
|
+
compiledValidator: CompiledValidators.CompiledDidDocumentVerificationMethod
|
|
61
71
|
},
|
|
62
72
|
{
|
|
63
73
|
type: DidTypes.Label,
|
|
64
|
-
schema: DidLabelSchema
|
|
74
|
+
schema: DidLabelSchema,
|
|
75
|
+
compiledValidator: CompiledValidators.CompiledDidLabel
|
|
65
76
|
},
|
|
66
77
|
{
|
|
67
78
|
type: DidTypes.PresentationVerification,
|
|
68
|
-
schema: DidPresentationVerificationSchema
|
|
79
|
+
schema: DidPresentationVerificationSchema,
|
|
80
|
+
compiledValidator: CompiledValidators.CompiledDidPresentationVerification
|
|
69
81
|
},
|
|
70
82
|
{
|
|
71
83
|
type: DidTypes.Service,
|
|
72
|
-
schema: DidServiceSchema
|
|
84
|
+
schema: DidServiceSchema,
|
|
85
|
+
compiledValidator: CompiledValidators.CompiledDidService
|
|
73
86
|
},
|
|
74
87
|
{
|
|
75
88
|
type: DidTypes.Types,
|
|
76
|
-
schema: DidTypesSchema
|
|
89
|
+
schema: DidTypesSchema,
|
|
90
|
+
compiledValidator: CompiledValidators.CompiledDidTypes
|
|
77
91
|
},
|
|
78
92
|
{
|
|
79
93
|
type: DidTypes.VerifiableCredential,
|
|
80
|
-
schema: DidVerifiableCredentialSchema
|
|
94
|
+
schema: DidVerifiableCredentialSchema,
|
|
95
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiableCredential
|
|
81
96
|
},
|
|
82
97
|
{
|
|
83
98
|
type: DidTypes.VerifiableCredentialCommon,
|
|
84
|
-
schema: DidVerifiableCredentialCommonSchema
|
|
99
|
+
schema: DidVerifiableCredentialCommonSchema,
|
|
100
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiableCredentialCommon
|
|
85
101
|
},
|
|
86
102
|
{
|
|
87
103
|
type: DidTypes.VerifiableCredentialV1,
|
|
88
|
-
schema: DidVerifiableCredentialV1Schema
|
|
104
|
+
schema: DidVerifiableCredentialV1Schema,
|
|
105
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiableCredentialV1
|
|
89
106
|
},
|
|
90
107
|
{
|
|
91
108
|
type: DidTypes.VerifiableCredentialV2,
|
|
92
|
-
schema: DidVerifiableCredentialV2Schema
|
|
109
|
+
schema: DidVerifiableCredentialV2Schema,
|
|
110
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiableCredentialV2
|
|
93
111
|
},
|
|
94
112
|
{
|
|
95
113
|
type: DidTypes.VerifiablePresentation,
|
|
96
|
-
schema: DidVerifiablePresentationSchema
|
|
114
|
+
schema: DidVerifiablePresentationSchema,
|
|
115
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiablePresentation
|
|
97
116
|
},
|
|
98
117
|
{
|
|
99
118
|
type: DidTypes.VerifiablePresentationCommon,
|
|
100
|
-
schema: DidVerifiablePresentationCommonSchema
|
|
119
|
+
schema: DidVerifiablePresentationCommonSchema,
|
|
120
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiablePresentationCommon
|
|
101
121
|
},
|
|
102
122
|
{
|
|
103
123
|
type: DidTypes.VerifiablePresentationV1,
|
|
104
|
-
schema: DidVerifiablePresentationV1Schema
|
|
124
|
+
schema: DidVerifiablePresentationV1Schema,
|
|
125
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiablePresentationV1
|
|
105
126
|
},
|
|
106
127
|
{
|
|
107
128
|
type: DidTypes.VerifiablePresentationV2,
|
|
108
|
-
schema: DidVerifiablePresentationV2Schema
|
|
129
|
+
schema: DidVerifiablePresentationV2Schema,
|
|
130
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiablePresentationV2
|
|
109
131
|
},
|
|
110
132
|
{
|
|
111
133
|
type: DidTypes.VerificationMethodType,
|
|
112
|
-
schema: DidVerificationMethodTypeSchema
|
|
134
|
+
schema: DidVerificationMethodTypeSchema,
|
|
135
|
+
compiledValidator: CompiledValidators.CompiledDidVerificationMethodType
|
|
113
136
|
},
|
|
114
137
|
{
|
|
115
138
|
type: DidTypes.JsonWebSignature2020Proof,
|
|
116
|
-
schema: JsonWebSignature2020ProofSchema
|
|
139
|
+
schema: JsonWebSignature2020ProofSchema,
|
|
140
|
+
compiledValidator: CompiledValidators.CompiledJsonWebSignature2020Proof
|
|
117
141
|
},
|
|
118
142
|
{
|
|
119
143
|
type: DidTypes.Multikey,
|
|
120
|
-
schema: MultikeySchema
|
|
144
|
+
schema: MultikeySchema,
|
|
145
|
+
compiledValidator: CompiledValidators.CompiledMultikey
|
|
121
146
|
},
|
|
122
147
|
{
|
|
123
148
|
type: DidTypes.Proof,
|
|
124
|
-
schema: ProofSchema
|
|
149
|
+
schema: ProofSchema,
|
|
150
|
+
compiledValidator: CompiledValidators.CompiledProof
|
|
125
151
|
},
|
|
126
152
|
{
|
|
127
153
|
type: DidTypes.ProofTypes,
|
|
128
|
-
schema: ProofTypesSchema
|
|
154
|
+
schema: ProofTypesSchema,
|
|
155
|
+
compiledValidator: CompiledValidators.CompiledProofTypes
|
|
129
156
|
}
|
|
130
157
|
];
|
|
131
158
|
DataTypeHelper.registerTypes(DidContexts.Namespace, undefined, types);
|
|
132
159
|
// The schema titles are not all the DID type prefixed with "Did", so the schemas
|
|
133
160
|
// are registered under their own titles, which is what the $refs between them use.
|
|
134
|
-
DataTypeHelper.registerTypes(DidContexts.JsonSchemaNamespace, undefined, types.map(t => ({ type: t.schema.title
|
|
161
|
+
DataTypeHelper.registerTypes(DidContexts.JsonSchemaNamespace, undefined, types.map(t => ({ ...t, type: t.schema.title })));
|
|
135
162
|
const typesCredentials = [
|
|
136
163
|
{
|
|
137
164
|
type: DidTypes.VerifiableCredential,
|
|
138
|
-
schema: DidVerifiableCredentialSchema
|
|
165
|
+
schema: DidVerifiableCredentialSchema,
|
|
166
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiableCredential
|
|
139
167
|
},
|
|
140
168
|
{
|
|
141
169
|
type: DidTypes.VerifiablePresentation,
|
|
142
|
-
schema: DidVerifiablePresentationSchema
|
|
170
|
+
schema: DidVerifiablePresentationSchema,
|
|
171
|
+
compiledValidator: CompiledValidators.CompiledDidVerifiablePresentation
|
|
143
172
|
}
|
|
144
173
|
];
|
|
145
174
|
DataTypeHelper.registerTypes(DidContexts.NamespaceVCv1, undefined, typesCredentials);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"didDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/didDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,wBAAwB,MAAM,oCAAoC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChG,OAAO,yBAAyB,MAAM,qCAAqC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAClG,OAAO,yBAAyB,MAAM,qCAAqC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAClG,OAAO,qBAAqB,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1F,OAAO,iBAAiB,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAClF,OAAO,mCAAmC,MAAM,+CAA+C,CAAC,OAAO,IAA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BACC,IAAI,EAAE,QAAQ,CAAC,sBAAsB;gBACrC,MAAM,EAAE,+BAA+B;aACvC;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,aAAa,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;QACrF,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,aAAa,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IACtF,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { DidContexts } from \"../models/didContexts.js\";\nimport { DidTypes } from \"../models/didTypes.js\";\nimport DataIntegrityProofSchema from \"../schemas/DataIntegrityProof.json\" with { type: \"json\" };\nimport DidCredentialSchemaSchema from \"../schemas/DidCredentialSchema.json\" with { type: \"json\" };\nimport DidCredentialStatusSchema from \"../schemas/DidCredentialStatus.json\" with { type: \"json\" };\nimport DidCryptoSuitesSchema from \"../schemas/DidCryptoSuites.json\" with { type: \"json\" };\nimport DidDocumentSchema from \"../schemas/DidDocument.json\" with { type: \"json\" };\nimport DidDocumentVerificationMethodSchema from \"../schemas/DidDocumentVerificationMethod.json\" with { type: \"json\" };\nimport DidLabelSchema from \"../schemas/DidLabel.json\" with { type: \"json\" };\nimport DidPresentationVerificationSchema from \"../schemas/DidPresentationVerification.json\" with { type: \"json\" };\nimport DidServiceSchema from \"../schemas/DidService.json\" with { type: \"json\" };\nimport DidTypesSchema from \"../schemas/DidTypes.json\" with { type: \"json\" };\nimport DidVerifiableCredentialSchema from \"../schemas/DidVerifiableCredential.json\" with { type: \"json\" };\nimport DidVerifiableCredentialCommonSchema from \"../schemas/DidVerifiableCredentialCommon.json\" with { type: \"json\" };\nimport DidVerifiableCredentialV1Schema from \"../schemas/DidVerifiableCredentialV1.json\" with { type: \"json\" };\nimport DidVerifiableCredentialV2Schema from \"../schemas/DidVerifiableCredentialV2.json\" with { type: \"json\" };\nimport DidVerifiablePresentationSchema from \"../schemas/DidVerifiablePresentation.json\" with { type: \"json\" };\nimport DidVerifiablePresentationCommonSchema from \"../schemas/DidVerifiablePresentationCommon.json\" with { type: \"json\" };\nimport DidVerifiablePresentationV1Schema from \"../schemas/DidVerifiablePresentationV1.json\" with { type: \"json\" };\nimport DidVerifiablePresentationV2Schema from \"../schemas/DidVerifiablePresentationV2.json\" with { type: \"json\" };\nimport DidVerificationMethodTypeSchema from \"../schemas/DidVerificationMethodType.json\" with { type: \"json\" };\nimport JsonWebSignature2020ProofSchema from \"../schemas/JsonWebSignature2020Proof.json\" with { type: \"json\" };\nimport MultikeySchema from \"../schemas/Multikey.json\" with { type: \"json\" };\nimport ProofSchema from \"../schemas/Proof.json\" with { type: \"json\" };\nimport ProofTypesSchema from \"../schemas/ProofTypes.json\" with { type: \"json\" };\n\n/**\n * Handles data type registration for DID.\n */\nexport abstract class DidDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DidTypes.DataIntegrityProof,\n\t\t\t\tschema: DataIntegrityProofSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.CredentialSchema,\n\t\t\t\tschema: DidCredentialSchemaSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.CredentialStatus,\n\t\t\t\tschema: DidCredentialStatusSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.CryptoSuites,\n\t\t\t\tschema: DidCryptoSuitesSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Document,\n\t\t\t\tschema: DidDocumentSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.DocumentVerificationMethod,\n\t\t\t\tschema: DidDocumentVerificationMethodSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Label,\n\t\t\t\tschema: DidLabelSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.PresentationVerification,\n\t\t\t\tschema: DidPresentationVerificationSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Service,\n\t\t\t\tschema: DidServiceSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Types,\n\t\t\t\tschema: DidTypesSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredential,\n\t\t\t\tschema: DidVerifiableCredentialSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredentialCommon,\n\t\t\t\tschema: DidVerifiableCredentialCommonSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredentialV1,\n\t\t\t\tschema: DidVerifiableCredentialV1Schema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredentialV2,\n\t\t\t\tschema: DidVerifiableCredentialV2Schema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentation,\n\t\t\t\tschema: DidVerifiablePresentationSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentationCommon,\n\t\t\t\tschema: DidVerifiablePresentationCommonSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentationV1,\n\t\t\t\tschema: DidVerifiablePresentationV1Schema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentationV2,\n\t\t\t\tschema: DidVerifiablePresentationV2Schema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerificationMethodType,\n\t\t\t\tschema: DidVerificationMethodTypeSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.JsonWebSignature2020Proof,\n\t\t\t\tschema: JsonWebSignature2020ProofSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Multikey,\n\t\t\t\tschema: MultikeySchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Proof,\n\t\t\t\tschema: ProofSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.ProofTypes,\n\t\t\t\tschema: ProofTypesSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(DidContexts.Namespace, undefined, types);\n\n\t\t// The schema titles are not all the DID type prefixed with \"Did\", so the schemas\n\t\t// are registered under their own titles, which is what the $refs between them use.\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDidContexts.JsonSchemaNamespace,\n\t\t\tundefined,\n\t\t\ttypes.map(t => ({ type: t.schema.title, schema: t.schema }))\n\t\t);\n\n\t\tconst typesCredentials = [\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredential,\n\t\t\t\tschema: DidVerifiableCredentialSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentation,\n\t\t\t\tschema: DidVerifiablePresentationSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(DidContexts.NamespaceVCv1, undefined, typesCredentials);\n\t\tDataTypeHelper.registerTypes(DidContexts.NamespaceVCv2, undefined, typesCredentials);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"didDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/didDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,wBAAwB,MAAM,oCAAoC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChG,OAAO,yBAAyB,MAAM,qCAAqC,CAAC,OAAO,IA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,CAAC,CAAC,CAChD,CAAC;QAEF,MAAM,gBAAgB,GAAG;YACxB;gBACC,IAAI,EAAE,QAAQ,CAAC,oBAAoB;gBACnC,MAAM,EAAE,6BAA6B;gBACrC,iBAAiB,EAAE,kBAAkB,CAAC,+BAA+B;aACrE;YACD;gBACC,IAAI,EAAE,QAAQ,CAAC,sBAAsB;gBACrC,MAAM,EAAE,+BAA+B;gBACvC,iBAAiB,EAAE,kBAAkB,CAAC,iCAAiC;aACvE;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,aAAa,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;QACrF,cAAc,CAAC,aAAa,CAAC,WAAW,CAAC,aAAa,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IACtF,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { JsonLdDataTypes } from \"@twin.org/data-json-ld\";\nimport * as CompiledValidators from \"../compiled/validators.js\";\nimport { DidContexts } from \"../models/didContexts.js\";\nimport { DidTypes } from \"../models/didTypes.js\";\nimport DataIntegrityProofSchema from \"../schemas/DataIntegrityProof.json\" with { type: \"json\" };\nimport DidCredentialSchemaSchema from \"../schemas/DidCredentialSchema.json\" with { type: \"json\" };\nimport DidCredentialStatusSchema from \"../schemas/DidCredentialStatus.json\" with { type: \"json\" };\nimport DidCryptoSuitesSchema from \"../schemas/DidCryptoSuites.json\" with { type: \"json\" };\nimport DidDocumentSchema from \"../schemas/DidDocument.json\" with { type: \"json\" };\nimport DidDocumentVerificationMethodSchema from \"../schemas/DidDocumentVerificationMethod.json\" with { type: \"json\" };\nimport DidLabelSchema from \"../schemas/DidLabel.json\" with { type: \"json\" };\nimport DidPresentationVerificationSchema from \"../schemas/DidPresentationVerification.json\" with { type: \"json\" };\nimport DidServiceSchema from \"../schemas/DidService.json\" with { type: \"json\" };\nimport DidTypesSchema from \"../schemas/DidTypes.json\" with { type: \"json\" };\nimport DidVerifiableCredentialSchema from \"../schemas/DidVerifiableCredential.json\" with { type: \"json\" };\nimport DidVerifiableCredentialCommonSchema from \"../schemas/DidVerifiableCredentialCommon.json\" with { type: \"json\" };\nimport DidVerifiableCredentialV1Schema from \"../schemas/DidVerifiableCredentialV1.json\" with { type: \"json\" };\nimport DidVerifiableCredentialV2Schema from \"../schemas/DidVerifiableCredentialV2.json\" with { type: \"json\" };\nimport DidVerifiablePresentationSchema from \"../schemas/DidVerifiablePresentation.json\" with { type: \"json\" };\nimport DidVerifiablePresentationCommonSchema from \"../schemas/DidVerifiablePresentationCommon.json\" with { type: \"json\" };\nimport DidVerifiablePresentationV1Schema from \"../schemas/DidVerifiablePresentationV1.json\" with { type: \"json\" };\nimport DidVerifiablePresentationV2Schema from \"../schemas/DidVerifiablePresentationV2.json\" with { type: \"json\" };\nimport DidVerificationMethodTypeSchema from \"../schemas/DidVerificationMethodType.json\" with { type: \"json\" };\nimport JsonWebSignature2020ProofSchema from \"../schemas/JsonWebSignature2020Proof.json\" with { type: \"json\" };\nimport MultikeySchema from \"../schemas/Multikey.json\" with { type: \"json\" };\nimport ProofSchema from \"../schemas/Proof.json\" with { type: \"json\" };\nimport ProofTypesSchema from \"../schemas/ProofTypes.json\" with { type: \"json\" };\n\n/**\n * Handles data type registration for DID.\n */\nexport abstract class DidDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\t// Register the types referenced by the schemas, which are only registered once.\n\t\tJsonLdDataTypes.registerTypes();\n\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DidTypes.DataIntegrityProof,\n\t\t\t\tschema: DataIntegrityProofSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDataIntegrityProof\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.CredentialSchema,\n\t\t\t\tschema: DidCredentialSchemaSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidCredentialSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.CredentialStatus,\n\t\t\t\tschema: DidCredentialStatusSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidCredentialStatus\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.CryptoSuites,\n\t\t\t\tschema: DidCryptoSuitesSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidCryptoSuites\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Document,\n\t\t\t\tschema: DidDocumentSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidDocument\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.DocumentVerificationMethod,\n\t\t\t\tschema: DidDocumentVerificationMethodSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidDocumentVerificationMethod\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Label,\n\t\t\t\tschema: DidLabelSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidLabel\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.PresentationVerification,\n\t\t\t\tschema: DidPresentationVerificationSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidPresentationVerification\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Service,\n\t\t\t\tschema: DidServiceSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidService\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Types,\n\t\t\t\tschema: DidTypesSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidTypes\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredential,\n\t\t\t\tschema: DidVerifiableCredentialSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiableCredential\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredentialCommon,\n\t\t\t\tschema: DidVerifiableCredentialCommonSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiableCredentialCommon\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredentialV1,\n\t\t\t\tschema: DidVerifiableCredentialV1Schema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiableCredentialV1\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredentialV2,\n\t\t\t\tschema: DidVerifiableCredentialV2Schema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiableCredentialV2\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentation,\n\t\t\t\tschema: DidVerifiablePresentationSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiablePresentation\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentationCommon,\n\t\t\t\tschema: DidVerifiablePresentationCommonSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiablePresentationCommon\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentationV1,\n\t\t\t\tschema: DidVerifiablePresentationV1Schema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiablePresentationV1\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentationV2,\n\t\t\t\tschema: DidVerifiablePresentationV2Schema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiablePresentationV2\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerificationMethodType,\n\t\t\t\tschema: DidVerificationMethodTypeSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerificationMethodType\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.JsonWebSignature2020Proof,\n\t\t\t\tschema: JsonWebSignature2020ProofSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledJsonWebSignature2020Proof\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Multikey,\n\t\t\t\tschema: MultikeySchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledMultikey\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.Proof,\n\t\t\t\tschema: ProofSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledProof\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.ProofTypes,\n\t\t\t\tschema: ProofTypesSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledProofTypes\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(DidContexts.Namespace, undefined, types);\n\n\t\t// The schema titles are not all the DID type prefixed with \"Did\", so the schemas\n\t\t// are registered under their own titles, which is what the $refs between them use.\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDidContexts.JsonSchemaNamespace,\n\t\t\tundefined,\n\t\t\ttypes.map(t => ({ ...t, type: t.schema.title }))\n\t\t);\n\n\t\tconst typesCredentials = [\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiableCredential,\n\t\t\t\tschema: DidVerifiableCredentialSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiableCredential\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DidTypes.VerifiablePresentation,\n\t\t\t\tschema: DidVerifiablePresentationSchema,\n\t\t\t\tcompiledValidator: CompiledValidators.CompiledDidVerifiablePresentation\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(DidContexts.NamespaceVCv1, undefined, typesCredentials);\n\t\tDataTypeHelper.registerTypes(DidContexts.NamespaceVCv2, undefined, typesCredentials);\n\t}\n}\n"]}
|
package/dist/es/index.js
CHANGED
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uBAAuB,CAAC;AACtC,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/didDataTypes.js\";\nexport * from \"./models/didContexts.js\";\nexport * from \"./models/didCryptoSuites.js\";\nexport * from \"./models/didTypes.js\";\nexport * from \"./models/didVerificationMethodType.js\";\nexport * from \"./models/IDataIntegrityProof.js\";\nexport * from \"./models/IDidCredentialSchema.js\";\nexport * from \"./models/IDidCredentialStatus.js\";\nexport * from \"./models/IDidDocument.js\";\nexport * from \"./models/IDidDocumentVerificationMethod.js\";\nexport * from \"./models/IDidLabel.js\";\nexport * from \"./models/IDidPresentationVerification.js\";\nexport * from \"./models/IDidService.js\";\nexport * from \"./models/IDidVerifiableCredential.js\";\nexport * from \"./models/IDidVerifiableCredentialCommon.js\";\nexport * from \"./models/IDidVerifiableCredentialV1.js\";\nexport * from \"./models/IDidVerifiableCredentialV2.js\";\nexport * from \"./models/IDidVerifiablePresentation.js\";\nexport * from \"./models/IDidVerifiablePresentationCommon.js\";\nexport * from \"./models/IDidVerifiablePresentationV1.js\";\nexport * from \"./models/IDidVerifiablePresentationV2.js\";\nexport * from \"./models/IJsonWebSignature2020Proof.js\";\nexport * from \"./models/jwsAlgorithms.js\";\nexport * from \"./models/IMultikey.js\";\nexport * from \"./models/IProof.js\";\nexport * from \"./models/IProofSignerVerifier.js\";\nexport * from \"./models/IProofSignerVerifierAsync.js\";\nexport * from \"./models/proofTypes.js\";\nexport * from \"./signerVerifiers/dataIntegrityProofSignerVerifier.js\";\nexport * from \"./signerVerifiers/dataIntegrityProofAsyncSignerVerifier.js\";\nexport * from \"./signerVerifiers/jsonWebSignature2020SignerVerifier.js\";\nexport * from \"./signerVerifiers/jsonWebSignature2020AsyncSignerVerifier.js\";\nexport * from \"./utils/multikeyHelper.js\";\nexport * from \"./utils/proofHelper.js\";\nexport * from \"./utils/verifiableCredentialHelper.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uBAAuB,CAAC;AACtC,cAAc,0CAA0C,CAAC;AACzD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uDAAuD,CAAC;AACtE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./compiled/validators.js\";\nexport * from \"./dataTypes/didDataTypes.js\";\nexport * from \"./models/didContexts.js\";\nexport * from \"./models/didCryptoSuites.js\";\nexport * from \"./models/didTypes.js\";\nexport * from \"./models/didVerificationMethodType.js\";\nexport * from \"./models/IDataIntegrityProof.js\";\nexport * from \"./models/IDidCredentialSchema.js\";\nexport * from \"./models/IDidCredentialStatus.js\";\nexport * from \"./models/IDidDocument.js\";\nexport * from \"./models/IDidDocumentVerificationMethod.js\";\nexport * from \"./models/IDidLabel.js\";\nexport * from \"./models/IDidPresentationVerification.js\";\nexport * from \"./models/IDidService.js\";\nexport * from \"./models/IDidVerifiableCredential.js\";\nexport * from \"./models/IDidVerifiableCredentialCommon.js\";\nexport * from \"./models/IDidVerifiableCredentialV1.js\";\nexport * from \"./models/IDidVerifiableCredentialV2.js\";\nexport * from \"./models/IDidVerifiablePresentation.js\";\nexport * from \"./models/IDidVerifiablePresentationCommon.js\";\nexport * from \"./models/IDidVerifiablePresentationV1.js\";\nexport * from \"./models/IDidVerifiablePresentationV2.js\";\nexport * from \"./models/IJsonWebSignature2020Proof.js\";\nexport * from \"./models/jwsAlgorithms.js\";\nexport * from \"./models/IMultikey.js\";\nexport * from \"./models/IProof.js\";\nexport * from \"./models/IProofSignerVerifier.js\";\nexport * from \"./models/IProofSignerVerifierAsync.js\";\nexport * from \"./models/proofTypes.js\";\nexport * from \"./signerVerifiers/dataIntegrityProofSignerVerifier.js\";\nexport * from \"./signerVerifiers/dataIntegrityProofAsyncSignerVerifier.js\";\nexport * from \"./signerVerifiers/jsonWebSignature2020SignerVerifier.js\";\nexport * from \"./signerVerifiers/jsonWebSignature2020AsyncSignerVerifier.js\";\nexport * from \"./utils/multikeyHelper.js\";\nexport * from \"./utils/proofHelper.js\";\nexport * from \"./utils/verifiableCredentialHelper.js\";\n"]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { type ICompiledValidator } from "@twin.org/data-core";
|
|
2
|
+
/**
|
|
3
|
+
* Compiled validator for the DidCryptoSuites schema.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CompiledDidCryptoSuites: ICompiledValidator;
|
|
6
|
+
/**
|
|
7
|
+
* Compiled validator for the DidTypes schema.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CompiledDidTypes: ICompiledValidator;
|
|
10
|
+
/**
|
|
11
|
+
* Compiled validator for the DidVerificationMethodType schema.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CompiledDidVerificationMethodType: ICompiledValidator;
|
|
14
|
+
/**
|
|
15
|
+
* Compiled validator for the DataIntegrityProof schema.
|
|
16
|
+
*/
|
|
17
|
+
export declare const CompiledDataIntegrityProof: ICompiledValidator;
|
|
18
|
+
/**
|
|
19
|
+
* Compiled validator for the DidCredentialSchema schema.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CompiledDidCredentialSchema: ICompiledValidator;
|
|
22
|
+
/**
|
|
23
|
+
* Compiled validator for the DidCredentialStatus schema.
|
|
24
|
+
*/
|
|
25
|
+
export declare const CompiledDidCredentialStatus: ICompiledValidator;
|
|
26
|
+
/**
|
|
27
|
+
* Compiled validator for the DidDocument schema.
|
|
28
|
+
*/
|
|
29
|
+
export declare const CompiledDidDocument: ICompiledValidator;
|
|
30
|
+
/**
|
|
31
|
+
* Compiled validator for the DidDocumentVerificationMethod schema.
|
|
32
|
+
*/
|
|
33
|
+
export declare const CompiledDidDocumentVerificationMethod: ICompiledValidator;
|
|
34
|
+
/**
|
|
35
|
+
* Compiled validator for the DidLabel schema.
|
|
36
|
+
*/
|
|
37
|
+
export declare const CompiledDidLabel: ICompiledValidator;
|
|
38
|
+
/**
|
|
39
|
+
* Compiled validator for the DidPresentationVerification schema.
|
|
40
|
+
*/
|
|
41
|
+
export declare const CompiledDidPresentationVerification: ICompiledValidator;
|
|
42
|
+
/**
|
|
43
|
+
* Compiled validator for the DidService schema.
|
|
44
|
+
*/
|
|
45
|
+
export declare const CompiledDidService: ICompiledValidator;
|
|
46
|
+
/**
|
|
47
|
+
* Compiled validator for the DidVerifiableCredential schema.
|
|
48
|
+
*/
|
|
49
|
+
export declare const CompiledDidVerifiableCredential: ICompiledValidator;
|
|
50
|
+
/**
|
|
51
|
+
* Compiled validator for the DidVerifiableCredentialCommon schema.
|
|
52
|
+
*/
|
|
53
|
+
export declare const CompiledDidVerifiableCredentialCommon: ICompiledValidator;
|
|
54
|
+
/**
|
|
55
|
+
* Compiled validator for the DidVerifiableCredentialV1 schema.
|
|
56
|
+
*/
|
|
57
|
+
export declare const CompiledDidVerifiableCredentialV1: ICompiledValidator;
|
|
58
|
+
/**
|
|
59
|
+
* Compiled validator for the DidVerifiableCredentialV2 schema.
|
|
60
|
+
*/
|
|
61
|
+
export declare const CompiledDidVerifiableCredentialV2: ICompiledValidator;
|
|
62
|
+
/**
|
|
63
|
+
* Compiled validator for the DidVerifiablePresentation schema.
|
|
64
|
+
*/
|
|
65
|
+
export declare const CompiledDidVerifiablePresentation: ICompiledValidator;
|
|
66
|
+
/**
|
|
67
|
+
* Compiled validator for the DidVerifiablePresentationCommon schema.
|
|
68
|
+
*/
|
|
69
|
+
export declare const CompiledDidVerifiablePresentationCommon: ICompiledValidator;
|
|
70
|
+
/**
|
|
71
|
+
* Compiled validator for the DidVerifiablePresentationV1 schema.
|
|
72
|
+
*/
|
|
73
|
+
export declare const CompiledDidVerifiablePresentationV1: ICompiledValidator;
|
|
74
|
+
/**
|
|
75
|
+
* Compiled validator for the DidVerifiablePresentationV2 schema.
|
|
76
|
+
*/
|
|
77
|
+
export declare const CompiledDidVerifiablePresentationV2: ICompiledValidator;
|
|
78
|
+
/**
|
|
79
|
+
* Compiled validator for the JsonWebSignature2020Proof schema.
|
|
80
|
+
*/
|
|
81
|
+
export declare const CompiledJsonWebSignature2020Proof: ICompiledValidator;
|
|
82
|
+
/**
|
|
83
|
+
* Compiled validator for the Multikey schema.
|
|
84
|
+
*/
|
|
85
|
+
export declare const CompiledMultikey: ICompiledValidator;
|
|
86
|
+
/**
|
|
87
|
+
* Compiled validator for the ProofTypes schema.
|
|
88
|
+
*/
|
|
89
|
+
export declare const CompiledProofTypes: ICompiledValidator;
|
|
90
|
+
/**
|
|
91
|
+
* Compiled validator for the Proof schema.
|
|
92
|
+
*/
|
|
93
|
+
export declare const CompiledProof: ICompiledValidator;
|
package/dist/types/index.d.ts
CHANGED
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.0](https://github.com/iotaledger/twin-standards/compare/standards-w3c-did-v0.11.0...standards-w3c-did-v0.11.0) (2026-09-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* release to production ([2ae4125](https://github.com/iotaledger/twin-standards/commit/2ae4125f305d4714b50036eb8a0bd47e4100a7be))
|
|
9
|
+
* release to production ([#246](https://github.com/iotaledger/twin-standards/issues/246)) ([6e6796b](https://github.com/iotaledger/twin-standards/commit/6e6796bd76aa70a9215eeb300ff479cde79368b8))
|
|
10
|
+
* release to production ([#265](https://github.com/iotaledger/twin-standards/issues/265)) ([b7b7b00](https://github.com/iotaledger/twin-standards/commit/b7b7b002b37fb737129967b582e2aa7a2b6d1f86))
|
|
11
|
+
* release to production ([#271](https://github.com/iotaledger/twin-standards/issues/271)) ([eea52d7](https://github.com/iotaledger/twin-standards/commit/eea52d788fd515cd2891a952edbeb7f390ffc4c9))
|
|
12
|
+
* release to production [skip ci] ([#283](https://github.com/iotaledger/twin-standards/issues/283)) ([1816ae8](https://github.com/iotaledger/twin-standards/commit/1816ae85543eb31a62994567745d73d5c83fe377))
|
|
13
|
+
* release to production [skip ci] ([#290](https://github.com/iotaledger/twin-standards/issues/290)) ([c392117](https://github.com/iotaledger/twin-standards/commit/c392117ba850759ee0019b74dce816932f0b70bb))
|
|
14
|
+
|
|
15
|
+
## [0.10.1-next.1](https://github.com/iotaledger/twin-standards/compare/standards-w3c-did-v0.10.1-next.0...standards-w3c-did-v0.10.1-next.1) (2026-09-26)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* Add additional properties to the verifiable credential data model ([#8](https://github.com/iotaledger/twin-standards/issues/8)) ([4b7af9c](https://github.com/iotaledger/twin-standards/commit/4b7af9cf892e071eb348f30737c035c0f94591b5))
|
|
21
|
+
* add async proof signing with callback support ([#162](https://github.com/iotaledger/twin-standards/issues/162)) ([d1d8559](https://github.com/iotaledger/twin-standards/commit/d1d8559cf75e98cebd460ed7bb4c8a41094b2468))
|
|
22
|
+
* add context id features ([#64](https://github.com/iotaledger/twin-standards/issues/64)) ([e68bb87](https://github.com/iotaledger/twin-standards/commit/e68bb87a215f3c3956cfd6400a5e1e2a16256085))
|
|
23
|
+
* add validate-locales ([838389c](https://github.com/iotaledger/twin-standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
|
|
24
|
+
* alg usage ([#19](https://github.com/iotaledger/twin-standards/issues/19)) ([3946fb2](https://github.com/iotaledger/twin-standards/commit/3946fb2e8bd9a486ad186765d1d09361fa75786b))
|
|
25
|
+
* compiled schemas ([7d626dc](https://github.com/iotaledger/twin-standards/commit/7d626dc6dc30d7f7918f4aa6e90f06dafd8d9da4))
|
|
26
|
+
* eslint migration to flat config ([648c1a1](https://github.com/iotaledger/twin-standards/commit/648c1a1e69d99b6b0cf69358ec6bdeecdbe3a5ea))
|
|
27
|
+
* export additional schemas ([4201127](https://github.com/iotaledger/twin-standards/commit/42011276a0b9110b75557c555f859db4d7382aca))
|
|
28
|
+
* improve caching ([#196](https://github.com/iotaledger/twin-standards/issues/196)) ([968e61a](https://github.com/iotaledger/twin-standards/commit/968e61a04156a22cf5ffc3ba237a42a81ec2e0c1))
|
|
29
|
+
* improve type definitions ([#278](https://github.com/iotaledger/twin-standards/issues/278)) ([bf3f37e](https://github.com/iotaledger/twin-standards/commit/bf3f37e1c191770f2a88b65bec3d59506c93c263))
|
|
30
|
+
* improved namespaces and contexts ([#102](https://github.com/iotaledger/twin-standards/issues/102)) ([c74c370](https://github.com/iotaledger/twin-standards/commit/c74c370cd8145d6166ca4454353f3774c302ac3b))
|
|
31
|
+
* linting and dependency update ([25c96f7](https://github.com/iotaledger/twin-standards/commit/25c96f7994c363d42c913fe18185a36003686a25))
|
|
32
|
+
* normalise type outputs ([0b3aed7](https://github.com/iotaledger/twin-standards/commit/0b3aed7df0802cd609423bbd7fda6bde601d3ceb))
|
|
33
|
+
* register schemas at hosted location ([#128](https://github.com/iotaledger/twin-standards/issues/128)) ([ab35298](https://github.com/iotaledger/twin-standards/commit/ab35298c812d69f043f69c35ab5aa1ac4a6aaa90))
|
|
34
|
+
* remove gaia-x ([3e87ac1](https://github.com/iotaledger/twin-standards/commit/3e87ac14480758289cd43c8da7fa02dd251ed6c4))
|
|
35
|
+
* remove IJsonLdNodeObject base interfaces ([#172](https://github.com/iotaledger/twin-standards/issues/172)) ([8ff8d7a](https://github.com/iotaledger/twin-standards/commit/8ff8d7a2892d626879b76ba5da912469ff899954))
|
|
36
|
+
* separate DID VC v1 and v2 properties ([935cf0a](https://github.com/iotaledger/twin-standards/commit/935cf0a9cdee28c6f2d5480f1f2de126c838caf5))
|
|
37
|
+
* separate DID VP v1 and v2 properties ([335a3c2](https://github.com/iotaledger/twin-standards/commit/335a3c2543ca5dbaae785568617ea85c0a8269ad))
|
|
38
|
+
* typescript 6 update ([79bfb52](https://github.com/iotaledger/twin-standards/commit/79bfb52e3dcb24689cec7b201dde822bcee970c5))
|
|
39
|
+
* unece type codes ([#146](https://github.com/iotaledger/twin-standards/issues/146)) ([7fb94cd](https://github.com/iotaledger/twin-standards/commit/7fb94cd5c920c7371782dd9d4d52faa7d1aa51ca))
|
|
40
|
+
* update dependencies ([e422ed3](https://github.com/iotaledger/twin-standards/commit/e422ed351fb09e2deea5ef741326c37b0802af3a))
|
|
41
|
+
* update framework core ([58c0c3d](https://github.com/iotaledger/twin-standards/commit/58c0c3dd6cea0e4c2393dc0e3e1eb33a6d06f617))
|
|
42
|
+
* update schemas ([c3c11e0](https://github.com/iotaledger/twin-standards/commit/c3c11e07da6c0d3eac5ea4a68e3ad57f022b2351))
|
|
43
|
+
* update schemas to support additional properties ([4679e21](https://github.com/iotaledger/twin-standards/commit/4679e21728a54cb587f120874841c3d1ed3771de))
|
|
44
|
+
* update schemas with new enum format ([4851603](https://github.com/iotaledger/twin-standards/commit/4851603f26910fafd7fe22b46533814dba3b041c))
|
|
45
|
+
* update to latest JSON schema spec ([7a23930](https://github.com/iotaledger/twin-standards/commit/7a2393032d7f48bfb20d3a484f981fb6dd83a92c))
|
|
46
|
+
* update to new ts-ts-schema and generic constructs ([4dff991](https://github.com/iotaledger/twin-standards/commit/4dff991fb70de4320668641ed94abf8e9b06acad))
|
|
47
|
+
* update ts-to-schema generation ([ba4e76d](https://github.com/iotaledger/twin-standards/commit/ba4e76d677556a1817092f8079d4cce67dee94bc))
|
|
48
|
+
* update ts-to-schema generation ([0905daa](https://github.com/iotaledger/twin-standards/commit/0905daa4a344ed35fc37b7f12fcf9ce9d34e4bd6))
|
|
49
|
+
* use local LD contexts in tests instead of remote ones ([#201](https://github.com/iotaledger/twin-standards/issues/201)) ([7d6c6ea](https://github.com/iotaledger/twin-standards/commit/7d6c6ea7b952fb9e2240ff252f8ce85c42d78985))
|
|
50
|
+
* use shared store mechanism ([#11](https://github.com/iotaledger/twin-standards/issues/11)) ([96fa237](https://github.com/iotaledger/twin-standards/commit/96fa23735f69c1fc7e3d0019b527634fa0a042d9))
|
|
51
|
+
* vc helper methods ([#148](https://github.com/iotaledger/twin-standards/issues/148)) ([c07ddf8](https://github.com/iotaledger/twin-standards/commit/c07ddf84ed4926ce38cdffbfa3a01cac7d0ee01d))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Bug Fixes
|
|
55
|
+
|
|
56
|
+
* updating the missing packages ([#114](https://github.com/iotaledger/twin-standards/issues/114)) ([90b03f8](https://github.com/iotaledger/twin-standards/commit/90b03f8bdcd81506284d74a445840386c2da2d35))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Dependencies
|
|
60
|
+
|
|
61
|
+
* The following workspace dependencies were updated
|
|
62
|
+
* devDependencies
|
|
63
|
+
* @twin.org/standards-ld-contexts bumped from 0.10.1-next.0 to 0.10.1-next.1
|
|
64
|
+
|
|
3
65
|
## [0.10.0](https://github.com/iotaledger/twin-standards/compare/standards-w3c-did-v0.10.0...standards-w3c-did-v0.10.0) (2026-09-16)
|
|
4
66
|
|
|
5
67
|
|
package/docs/reference/index.md
CHANGED
|
@@ -46,6 +46,29 @@
|
|
|
46
46
|
|
|
47
47
|
## Variables
|
|
48
48
|
|
|
49
|
+
- [CompiledDidCryptoSuites](variables/CompiledDidCryptoSuites.md)
|
|
50
|
+
- [CompiledDidTypes](variables/CompiledDidTypes.md)
|
|
51
|
+
- [CompiledDidVerificationMethodType](variables/CompiledDidVerificationMethodType.md)
|
|
52
|
+
- [CompiledDataIntegrityProof](variables/CompiledDataIntegrityProof.md)
|
|
53
|
+
- [CompiledDidCredentialSchema](variables/CompiledDidCredentialSchema.md)
|
|
54
|
+
- [CompiledDidCredentialStatus](variables/CompiledDidCredentialStatus.md)
|
|
55
|
+
- [CompiledDidDocument](variables/CompiledDidDocument.md)
|
|
56
|
+
- [CompiledDidDocumentVerificationMethod](variables/CompiledDidDocumentVerificationMethod.md)
|
|
57
|
+
- [CompiledDidLabel](variables/CompiledDidLabel.md)
|
|
58
|
+
- [CompiledDidPresentationVerification](variables/CompiledDidPresentationVerification.md)
|
|
59
|
+
- [CompiledDidService](variables/CompiledDidService.md)
|
|
60
|
+
- [CompiledDidVerifiableCredential](variables/CompiledDidVerifiableCredential.md)
|
|
61
|
+
- [CompiledDidVerifiableCredentialCommon](variables/CompiledDidVerifiableCredentialCommon.md)
|
|
62
|
+
- [CompiledDidVerifiableCredentialV1](variables/CompiledDidVerifiableCredentialV1.md)
|
|
63
|
+
- [CompiledDidVerifiableCredentialV2](variables/CompiledDidVerifiableCredentialV2.md)
|
|
64
|
+
- [CompiledDidVerifiablePresentation](variables/CompiledDidVerifiablePresentation.md)
|
|
65
|
+
- [CompiledDidVerifiablePresentationCommon](variables/CompiledDidVerifiablePresentationCommon.md)
|
|
66
|
+
- [CompiledDidVerifiablePresentationV1](variables/CompiledDidVerifiablePresentationV1.md)
|
|
67
|
+
- [CompiledDidVerifiablePresentationV2](variables/CompiledDidVerifiablePresentationV2.md)
|
|
68
|
+
- [CompiledJsonWebSignature2020Proof](variables/CompiledJsonWebSignature2020Proof.md)
|
|
69
|
+
- [CompiledMultikey](variables/CompiledMultikey.md)
|
|
70
|
+
- [CompiledProofTypes](variables/CompiledProofTypes.md)
|
|
71
|
+
- [CompiledProof](variables/CompiledProof.md)
|
|
49
72
|
- [DidContexts](variables/DidContexts.md)
|
|
50
73
|
- [DidCryptoSuites](variables/DidCryptoSuites.md)
|
|
51
74
|
- [DidTypes](variables/DidTypes.md)
|