@midnight-ntwrk/midnight-did-domain 0.5.0-rc1
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/LICENSE +201 -0
- package/README.md +74 -0
- package/dist/crypto-codecs.d.ts +9 -0
- package/dist/crypto-codecs.d.ts.map +1 -0
- package/dist/crypto-codecs.js +102 -0
- package/dist/crypto-codecs.js.map +1 -0
- package/dist/did-document.d.ts +365 -0
- package/dist/did-document.d.ts.map +1 -0
- package/dist/did-document.js +483 -0
- package/dist/did-document.js.map +1 -0
- package/dist/did-registrar.d.ts +10 -0
- package/dist/did-registrar.d.ts.map +1 -0
- package/dist/did-registrar.js +2 -0
- package/dist/did-registrar.js.map +1 -0
- package/dist/did-resolver.d.ts +5 -0
- package/dist/did-resolver.d.ts.map +1 -0
- package/dist/did-resolver.js +2 -0
- package/dist/did-resolver.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/ledger-utils.d.ts +7 -0
- package/dist/ledger-utils.d.ts.map +1 -0
- package/dist/ledger-utils.js +81 -0
- package/dist/ledger-utils.js.map +1 -0
- package/dist/midnight.d.ts +24 -0
- package/dist/midnight.d.ts.map +1 -0
- package/dist/midnight.js +85 -0
- package/dist/midnight.js.map +1 -0
- package/dist/offchain-midnight.d.ts +111 -0
- package/dist/offchain-midnight.d.ts.map +1 -0
- package/dist/offchain-midnight.js +454 -0
- package/dist/offchain-midnight.js.map +1 -0
- package/dist/uri-normalization.d.ts +3 -0
- package/dist/uri-normalization.d.ts.map +1 -0
- package/dist/uri-normalization.js +51 -0
- package/dist/uri-normalization.js.map +1 -0
- package/package.json +62 -0
- package/tsconfig.build.json +9 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { z } from "zod/v4-mini";
|
|
2
|
+
/** DID URL schema */
|
|
3
|
+
export declare const DIDURLSchema: z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">;
|
|
4
|
+
export type DIDURL = z.infer<typeof DIDURLSchema>;
|
|
5
|
+
export declare const KeyIDSchema: z.core.$ZodBranded<z.ZodMiniString<string>, "KeyID", "out">;
|
|
6
|
+
export type KeyID = z.infer<typeof KeyIDSchema>;
|
|
7
|
+
export declare const RelativeURLSchema: z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">;
|
|
8
|
+
export type RelativeURL = z.infer<typeof RelativeURLSchema>;
|
|
9
|
+
/** DID Key ID (e.g. did:example:123#key-1 or #key-1) */
|
|
10
|
+
export declare const DIDKeyIDSchema: z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">;
|
|
11
|
+
export type DIDKeyID = z.infer<typeof DIDKeyIDSchema>;
|
|
12
|
+
/** DID schema (no path/query/fragment) */
|
|
13
|
+
export declare const DIDStringSchema: z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">;
|
|
14
|
+
export type DIDString = z.infer<typeof DIDStringSchema>;
|
|
15
|
+
/** Verification Method Types */
|
|
16
|
+
export declare enum VerificationMethodType {
|
|
17
|
+
Undefined = "Undefined",
|
|
18
|
+
JsonWebKey = "JsonWebKey"
|
|
19
|
+
}
|
|
20
|
+
export declare const VerificationMethodTypeSchema: z.ZodMiniEnum<typeof VerificationMethodType>;
|
|
21
|
+
export declare enum KeyType {
|
|
22
|
+
EC = "EC",
|
|
23
|
+
RSA = "RSA",
|
|
24
|
+
oct = "oct",
|
|
25
|
+
OKP = "OKP"
|
|
26
|
+
}
|
|
27
|
+
export declare const KeyTypeSchema: z.ZodMiniEnum<typeof KeyType>;
|
|
28
|
+
export declare enum CurveType {
|
|
29
|
+
Ed25519 = "Ed25519",
|
|
30
|
+
X25519 = "X25519",
|
|
31
|
+
Jubjub = "Jubjub",
|
|
32
|
+
P256 = "P-256",
|
|
33
|
+
Secp256k1 = "secp256k1",
|
|
34
|
+
BLS12381G1 = "BLS12381G1",
|
|
35
|
+
BLS12381G2 = "BLS12381G2"
|
|
36
|
+
}
|
|
37
|
+
export declare const CurveTypeSchema: z.ZodMiniEnum<typeof CurveType>;
|
|
38
|
+
export type PublicKeyJwkCoordinate = "x" | "y";
|
|
39
|
+
export type PublicKeyJwkProfile = {
|
|
40
|
+
readonly kty: KeyType;
|
|
41
|
+
readonly crv: CurveType;
|
|
42
|
+
};
|
|
43
|
+
export declare const publicKeyJwkCoordinateByteLength: (profile: PublicKeyJwkProfile, coordinate: PublicKeyJwkCoordinate) => number | undefined;
|
|
44
|
+
export declare const PublicKeyJwkSchema: z.ZodMiniObject<{
|
|
45
|
+
kty: z.ZodMiniEnum<typeof KeyType>;
|
|
46
|
+
crv: z.ZodMiniEnum<typeof CurveType>;
|
|
47
|
+
x: z.ZodMiniString<string>;
|
|
48
|
+
y: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
|
+
export type PublicKeyJwk = z.infer<typeof PublicKeyJwkSchema>;
|
|
51
|
+
/** Verification Method */
|
|
52
|
+
export declare const VerificationMethodSchema: z.ZodMiniObject<{
|
|
53
|
+
id: z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">;
|
|
54
|
+
type: z.ZodMiniEnum<typeof VerificationMethodType>;
|
|
55
|
+
controller: z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">;
|
|
56
|
+
publicKeyJwk: z.ZodMiniObject<{
|
|
57
|
+
kty: z.ZodMiniEnum<typeof KeyType>;
|
|
58
|
+
crv: z.ZodMiniEnum<typeof CurveType>;
|
|
59
|
+
x: z.ZodMiniString<string>;
|
|
60
|
+
y: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type VerificationMethod = z.infer<typeof VerificationMethodSchema>;
|
|
64
|
+
/** Verification Method Relation */
|
|
65
|
+
export declare enum VerificationMethodRelationType {
|
|
66
|
+
Undefined = "Undefined",
|
|
67
|
+
Authentication = "Authentication",
|
|
68
|
+
AssertionMethod = "AssertionMethod",
|
|
69
|
+
KeyAgreement = "KeyAgreement",
|
|
70
|
+
CapabilityInvocation = "CapabilityInvocation",
|
|
71
|
+
CapabilityDelegation = "CapabilityDelegation"
|
|
72
|
+
}
|
|
73
|
+
export declare const VerificationMethodRelationTypeSchema: z.ZodMiniEnum<typeof VerificationMethodRelationType>;
|
|
74
|
+
export type VerificationMethodRelation = z.infer<typeof VerificationMethodRelationTypeSchema>;
|
|
75
|
+
export declare const URIStringSchema: z.ZodMiniString<string>;
|
|
76
|
+
export type URIString = z.infer<typeof URIStringSchema>;
|
|
77
|
+
export declare const ServiceEndpointObjectSchema: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>;
|
|
78
|
+
export type ServiceEndpointObject = z.infer<typeof ServiceEndpointObjectSchema>;
|
|
79
|
+
export declare const ServiceEndpointArrayEntrySchema: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>]>;
|
|
80
|
+
export type ServiceEndpointArrayEntry = z.infer<typeof ServiceEndpointArrayEntrySchema>;
|
|
81
|
+
export declare const ServiceEndpointSchema: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>]>>]>;
|
|
82
|
+
export type ServiceEndpoint = z.infer<typeof URIStringSchema> | ServiceEndpointObject | Array<ServiceEndpointArrayEntry>;
|
|
83
|
+
export declare function normalizeServiceEndpoint(endpoint: ServiceEndpoint): ServiceEndpoint;
|
|
84
|
+
export declare const ServiceIdSchema: z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>;
|
|
85
|
+
export type ServiceId = z.infer<typeof ServiceIdSchema>;
|
|
86
|
+
/** Service */
|
|
87
|
+
export declare const ServiceSchema: z.ZodMiniObject<{
|
|
88
|
+
id: z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>;
|
|
89
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>;
|
|
90
|
+
serviceEndpoint: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>]>>]>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type Service = z.infer<typeof ServiceSchema>;
|
|
93
|
+
/** DID Document (W3C DID Core 1.0 compliant - generic) */
|
|
94
|
+
export declare const DIDDocumentSchema: z.ZodMiniObject<{
|
|
95
|
+
"@context": z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>;
|
|
96
|
+
id: z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">;
|
|
97
|
+
alsoKnownAs: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
98
|
+
controller: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">, z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">>]>>>;
|
|
99
|
+
verificationMethod: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
100
|
+
id: z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">;
|
|
101
|
+
type: z.ZodMiniEnum<typeof VerificationMethodType>;
|
|
102
|
+
controller: z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">;
|
|
103
|
+
publicKeyJwk: z.ZodMiniObject<{
|
|
104
|
+
kty: z.ZodMiniEnum<typeof KeyType>;
|
|
105
|
+
crv: z.ZodMiniEnum<typeof CurveType>;
|
|
106
|
+
x: z.ZodMiniString<string>;
|
|
107
|
+
y: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
108
|
+
}, z.core.$loose>;
|
|
109
|
+
}, z.core.$strip>>>>;
|
|
110
|
+
authentication: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
111
|
+
assertionMethod: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
112
|
+
keyAgreement: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
113
|
+
capabilityInvocation: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
114
|
+
capabilityDelegation: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
115
|
+
service: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
116
|
+
id: z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>;
|
|
117
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>;
|
|
118
|
+
serviceEndpoint: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>]>>]>;
|
|
119
|
+
}, z.core.$strip>>>>;
|
|
120
|
+
}, z.core.$loose>;
|
|
121
|
+
export type DIDDocument = z.infer<typeof DIDDocumentSchema>;
|
|
122
|
+
export declare const DIDDocumentMetadataSchema: z.ZodMiniObject<{
|
|
123
|
+
created: z.ZodMiniOptional<z.ZodMiniNullable<z.iso.ZodMiniISODateTime>>;
|
|
124
|
+
updated: z.ZodMiniOptional<z.ZodMiniNullable<z.iso.ZodMiniISODateTime>>;
|
|
125
|
+
deactivated: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniBoolean<boolean>>>;
|
|
126
|
+
versionId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
127
|
+
nextUpdate: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
128
|
+
nextVersionId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
129
|
+
equivalentId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
130
|
+
canonicalId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
131
|
+
}, z.core.$loose>;
|
|
132
|
+
export type DIDDocumentMetadata = z.infer<typeof DIDDocumentMetadataSchema>;
|
|
133
|
+
export declare const DIDDocumentRepresentationMediaTypesSchema: z.ZodMiniEnum<{
|
|
134
|
+
"application/did+ld+json": "application/did+ld+json";
|
|
135
|
+
"application/did+json": "application/did+json";
|
|
136
|
+
}>;
|
|
137
|
+
/** DID Document representation media types allowed in DID resolution metadata. */
|
|
138
|
+
export type DIDDocumentRepresentationMediaTypes = z.infer<typeof DIDDocumentRepresentationMediaTypesSchema>;
|
|
139
|
+
export declare const DIDResolutionEnvelopeMediaTypesSchema: z.ZodMiniEnum<{
|
|
140
|
+
"application/ld+json": "application/ld+json";
|
|
141
|
+
"application/json": "application/json";
|
|
142
|
+
}>;
|
|
143
|
+
/** Media types for envelopes that carry DID Resolution Result objects. */
|
|
144
|
+
export type DIDResolutionEnvelopeMediaTypes = z.infer<typeof DIDResolutionEnvelopeMediaTypesSchema>;
|
|
145
|
+
export declare const KnownDIDMediaTypesSchema: z.ZodMiniEnum<{
|
|
146
|
+
"application/did+ld+json": "application/did+ld+json";
|
|
147
|
+
"application/did+json": "application/did+json";
|
|
148
|
+
"application/ld+json": "application/ld+json";
|
|
149
|
+
"application/json": "application/json";
|
|
150
|
+
}>;
|
|
151
|
+
/** Known DID Document representation and resolution envelope media types. */
|
|
152
|
+
export type KnownDIDMediaTypes = z.infer<typeof KnownDIDMediaTypesSchema>;
|
|
153
|
+
export declare const KnownDIDResolutionErrorCodeSchema: z.ZodMiniEnum<{
|
|
154
|
+
invalidDid: "invalidDid";
|
|
155
|
+
internalError: "internalError";
|
|
156
|
+
invalidPublicKey: "invalidPublicKey";
|
|
157
|
+
invalidPublicKeyLength: "invalidPublicKeyLength";
|
|
158
|
+
invalidPublicKeyType: "invalidPublicKeyType";
|
|
159
|
+
methodNotSupported: "methodNotSupported";
|
|
160
|
+
notAllowedCertificate: "notAllowedCertificate";
|
|
161
|
+
notAllowedGlobalDuplicateKey: "notAllowedGlobalDuplicateKey";
|
|
162
|
+
notAllowedKeyType: "notAllowedKeyType";
|
|
163
|
+
notAllowedLocalDerivedKey: "notAllowedLocalDerivedKey";
|
|
164
|
+
notAllowedLocalDuplicateKey: "notAllowedLocalDuplicateKey";
|
|
165
|
+
notAllowedMethod: "notAllowedMethod";
|
|
166
|
+
notAllowedVerificationMethodType: "notAllowedVerificationMethodType";
|
|
167
|
+
notFound: "notFound";
|
|
168
|
+
representationNotSupported: "representationNotSupported";
|
|
169
|
+
unsupportedPublicKeyType: "unsupportedPublicKeyType";
|
|
170
|
+
}>;
|
|
171
|
+
/**
|
|
172
|
+
* Known registered DID resolution metadata error codes.
|
|
173
|
+
*
|
|
174
|
+
* This enum is exported for callers that want registry-only validation. The
|
|
175
|
+
* resolution result schema below uses the generic keyword schema instead so
|
|
176
|
+
* resolver-specific extension keywords remain valid.
|
|
177
|
+
*
|
|
178
|
+
* Source: https://www.w3.org/TR/2024/NOTE-did-spec-registries-20240701/#error
|
|
179
|
+
*/
|
|
180
|
+
export type KnownDIDResolutionErrorCode = z.infer<typeof KnownDIDResolutionErrorCodeSchema>;
|
|
181
|
+
export declare const DIDResolutionErrorCodeSchema: z.ZodMiniString<string>;
|
|
182
|
+
/**
|
|
183
|
+
* DID resolution error keyword, including registered extension values.
|
|
184
|
+
*
|
|
185
|
+
* The resolution result schema intentionally validates this generic keyword
|
|
186
|
+
* shape instead of the known enum so resolver-specific extension keywords remain
|
|
187
|
+
* valid.
|
|
188
|
+
*/
|
|
189
|
+
export type DIDResolutionErrorCode = z.infer<typeof DIDResolutionErrorCodeSchema>;
|
|
190
|
+
/** DID Resolution Result */
|
|
191
|
+
export declare const DIDResolutionResultSchema: z.ZodMiniObject<{
|
|
192
|
+
"@context": z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>>>;
|
|
193
|
+
didDocument: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
194
|
+
"@context": z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>;
|
|
195
|
+
id: z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">;
|
|
196
|
+
alsoKnownAs: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
197
|
+
controller: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">, z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">>]>>>;
|
|
198
|
+
verificationMethod: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
199
|
+
id: z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">;
|
|
200
|
+
type: z.ZodMiniEnum<typeof VerificationMethodType>;
|
|
201
|
+
controller: z.core.$ZodBranded<z.ZodMiniString<string>, "DID", "out">;
|
|
202
|
+
publicKeyJwk: z.ZodMiniObject<{
|
|
203
|
+
kty: z.ZodMiniEnum<typeof KeyType>;
|
|
204
|
+
crv: z.ZodMiniEnum<typeof CurveType>;
|
|
205
|
+
x: z.ZodMiniString<string>;
|
|
206
|
+
y: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
207
|
+
}, z.core.$loose>;
|
|
208
|
+
}, z.core.$strip>>>>;
|
|
209
|
+
authentication: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
210
|
+
assertionMethod: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
211
|
+
keyAgreement: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
212
|
+
capabilityInvocation: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
213
|
+
capabilityDelegation: z.ZodMiniOptional<z.ZodMiniArray<z.core.$ZodBranded<z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>, "DIDKeyID", "out">>>;
|
|
214
|
+
service: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject<{
|
|
215
|
+
id: z.ZodMiniUnion<readonly [z.core.$ZodBranded<z.ZodMiniString<string>, "DIDURL", "out">, z.core.$ZodBranded<z.ZodMiniString<string>, "RelativeURL", "out">]>;
|
|
216
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniArray<z.ZodMiniString<string>>]>;
|
|
217
|
+
serviceEndpoint: z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>, z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>]>>]>;
|
|
218
|
+
}, z.core.$strip>>>>;
|
|
219
|
+
}, z.core.$loose>>>;
|
|
220
|
+
didDocumentMetadata: z.ZodMiniObject<{
|
|
221
|
+
created: z.ZodMiniOptional<z.ZodMiniNullable<z.iso.ZodMiniISODateTime>>;
|
|
222
|
+
updated: z.ZodMiniOptional<z.ZodMiniNullable<z.iso.ZodMiniISODateTime>>;
|
|
223
|
+
deactivated: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniBoolean<boolean>>>;
|
|
224
|
+
versionId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
225
|
+
nextUpdate: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
226
|
+
nextVersionId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
227
|
+
equivalentId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
228
|
+
canonicalId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
229
|
+
}, z.core.$loose>;
|
|
230
|
+
didResolutionMetadata: z.ZodMiniObject<{
|
|
231
|
+
contentType: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
232
|
+
"application/did+ld+json": "application/did+ld+json";
|
|
233
|
+
"application/did+json": "application/did+json";
|
|
234
|
+
}>>>;
|
|
235
|
+
error: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
236
|
+
}, z.core.$loose>;
|
|
237
|
+
}, z.core.$loose>;
|
|
238
|
+
export type DIDResolutionResult = z.infer<typeof DIDResolutionResultSchema>;
|
|
239
|
+
/** Parsing Helpers */
|
|
240
|
+
export declare const parseDIDDocument: (input: unknown) => {
|
|
241
|
+
[x: string]: unknown;
|
|
242
|
+
"@context": string | string[];
|
|
243
|
+
id: string & z.core.$brand<"DID">;
|
|
244
|
+
alsoKnownAs?: string[] | null | undefined;
|
|
245
|
+
controller?: (string & z.core.$brand<"DID">) | (string & z.core.$brand<"DID">)[] | null | undefined;
|
|
246
|
+
verificationMethod?: {
|
|
247
|
+
id: ((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">);
|
|
248
|
+
type: VerificationMethodType;
|
|
249
|
+
controller: string & z.core.$brand<"DID">;
|
|
250
|
+
publicKeyJwk: {
|
|
251
|
+
[x: string]: unknown;
|
|
252
|
+
kty: KeyType;
|
|
253
|
+
crv: CurveType;
|
|
254
|
+
x: string;
|
|
255
|
+
y?: string | undefined;
|
|
256
|
+
};
|
|
257
|
+
}[] | null | undefined;
|
|
258
|
+
authentication?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
259
|
+
assertionMethod?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
260
|
+
keyAgreement?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
261
|
+
capabilityInvocation?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
262
|
+
capabilityDelegation?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
263
|
+
service?: {
|
|
264
|
+
id: (string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">);
|
|
265
|
+
type: string | string[];
|
|
266
|
+
serviceEndpoint: string | Record<string, unknown> | (string | Record<string, unknown>)[];
|
|
267
|
+
}[] | null | undefined;
|
|
268
|
+
};
|
|
269
|
+
export declare const parseDIDURL: (input: unknown) => string & z.core.$brand<"DIDURL">;
|
|
270
|
+
export declare const parseDIDKeyID: (input: unknown) => ((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">);
|
|
271
|
+
export declare const parseDID: (input: unknown) => string & z.core.$brand<"DID">;
|
|
272
|
+
export declare const parseVerificationMethod: (input: unknown) => {
|
|
273
|
+
id: ((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">);
|
|
274
|
+
type: VerificationMethodType;
|
|
275
|
+
controller: string & z.core.$brand<"DID">;
|
|
276
|
+
publicKeyJwk: {
|
|
277
|
+
[x: string]: unknown;
|
|
278
|
+
kty: KeyType;
|
|
279
|
+
crv: CurveType;
|
|
280
|
+
x: string;
|
|
281
|
+
y?: string | undefined;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
export declare const parseService: (input: unknown) => {
|
|
285
|
+
serviceEndpoint: ServiceEndpoint;
|
|
286
|
+
id: (string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">);
|
|
287
|
+
type: string | string[];
|
|
288
|
+
};
|
|
289
|
+
export declare const parseDIDResolutionResult: (input: unknown) => {
|
|
290
|
+
[x: string]: unknown;
|
|
291
|
+
didDocumentMetadata: {
|
|
292
|
+
[x: string]: unknown;
|
|
293
|
+
created?: string | null | undefined;
|
|
294
|
+
updated?: string | null | undefined;
|
|
295
|
+
deactivated?: boolean | null | undefined;
|
|
296
|
+
versionId?: string | null | undefined;
|
|
297
|
+
nextUpdate?: string | null | undefined;
|
|
298
|
+
nextVersionId?: string | null | undefined;
|
|
299
|
+
equivalentId?: string[] | null | undefined;
|
|
300
|
+
canonicalId?: string | null | undefined;
|
|
301
|
+
};
|
|
302
|
+
didResolutionMetadata: {
|
|
303
|
+
[x: string]: unknown;
|
|
304
|
+
contentType?: "application/did+ld+json" | "application/did+json" | null | undefined;
|
|
305
|
+
error?: string | null | undefined;
|
|
306
|
+
};
|
|
307
|
+
"@context"?: string | string[] | null | undefined;
|
|
308
|
+
didDocument?: {
|
|
309
|
+
[x: string]: unknown;
|
|
310
|
+
"@context": string | string[];
|
|
311
|
+
id: string & z.core.$brand<"DID">;
|
|
312
|
+
alsoKnownAs?: string[] | null | undefined;
|
|
313
|
+
controller?: (string & z.core.$brand<"DID">) | (string & z.core.$brand<"DID">)[] | null | undefined;
|
|
314
|
+
verificationMethod?: {
|
|
315
|
+
id: ((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">);
|
|
316
|
+
type: VerificationMethodType;
|
|
317
|
+
controller: string & z.core.$brand<"DID">;
|
|
318
|
+
publicKeyJwk: {
|
|
319
|
+
[x: string]: unknown;
|
|
320
|
+
kty: KeyType;
|
|
321
|
+
crv: CurveType;
|
|
322
|
+
x: string;
|
|
323
|
+
y?: string | undefined;
|
|
324
|
+
};
|
|
325
|
+
}[] | null | undefined;
|
|
326
|
+
authentication?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
327
|
+
assertionMethod?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
328
|
+
keyAgreement?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
329
|
+
capabilityInvocation?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
330
|
+
capabilityDelegation?: (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & (((string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">)) & z.core.$brand<"DIDKeyID">))[] | undefined;
|
|
331
|
+
service?: {
|
|
332
|
+
id: (string & z.core.$brand<"DIDURL">) | (string & z.core.$brand<"RelativeURL">);
|
|
333
|
+
type: string | string[];
|
|
334
|
+
serviceEndpoint: string | Record<string, unknown> | (string | Record<string, unknown>)[];
|
|
335
|
+
}[] | null | undefined;
|
|
336
|
+
} | null | undefined;
|
|
337
|
+
};
|
|
338
|
+
export declare const parseVerificationMethodType: (input: unknown) => VerificationMethodType;
|
|
339
|
+
export declare const parseVerificationMethodRelation: (input: unknown) => VerificationMethodRelationType;
|
|
340
|
+
/** Creation Helpers */
|
|
341
|
+
export declare function createVerificationMethod(params: {
|
|
342
|
+
id: string;
|
|
343
|
+
type: VerificationMethodType;
|
|
344
|
+
controller: string;
|
|
345
|
+
publicKeyJwk: PublicKeyJwk;
|
|
346
|
+
}): VerificationMethod;
|
|
347
|
+
export declare function createService(params: {
|
|
348
|
+
id: string;
|
|
349
|
+
type: string | string[];
|
|
350
|
+
serviceEndpoint: ServiceEndpoint;
|
|
351
|
+
}): Service;
|
|
352
|
+
export declare function createDIDDocument(params: {
|
|
353
|
+
id: string;
|
|
354
|
+
context?: string | string[];
|
|
355
|
+
alsoKnownAs?: URIString[];
|
|
356
|
+
controller?: string | string[];
|
|
357
|
+
verificationMethod?: VerificationMethod[];
|
|
358
|
+
authentication?: string[];
|
|
359
|
+
assertionMethod?: string[];
|
|
360
|
+
keyAgreement?: string[];
|
|
361
|
+
capabilityInvocation?: string[];
|
|
362
|
+
capabilityDelegation?: string[];
|
|
363
|
+
service?: Service[];
|
|
364
|
+
}): DIDDocument;
|
|
365
|
+
//# sourceMappingURL=did-document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"did-document.d.ts","sourceRoot":"","sources":["../src/did-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AAIhC,qBAAqB;AACrB,eAAO,MAAM,YAAY,8DAOP,CAAC;AACnB,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,WAAW,6DAMP,CAAC;AAElB,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAkBhD,eAAO,MAAM,iBAAiB,mEAQP,CAAC;AACxB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAY5D,wDAAwD;AACxD,eAAO,MAAM,cAAc,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