@owf/eudi-lote 0.0.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/README.md +384 -0
- package/dist/index.d.mts +1229 -0
- package/dist/index.mjs +573 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +42 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,1229 @@
|
|
|
1
|
+
import { IdentityException } from "@owf/identity-common";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { Signer } from "@owf/crypto";
|
|
4
|
+
|
|
5
|
+
//#region src/schemas.d.ts
|
|
6
|
+
declare const LocalizedStringSchema: z.ZodObject<{
|
|
7
|
+
lang: z.ZodString;
|
|
8
|
+
value: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const LocalizedURISchema: z.ZodObject<{
|
|
11
|
+
lang: z.ZodString;
|
|
12
|
+
uriValue: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const PostalAddressSchema: z.ZodObject<{
|
|
15
|
+
lang: z.ZodString;
|
|
16
|
+
StreetAddress: z.ZodString;
|
|
17
|
+
Locality: z.ZodString;
|
|
18
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
19
|
+
PostalCode: z.ZodString;
|
|
20
|
+
Country: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
declare const SchemeOperatorAddressSchema: z.ZodObject<{
|
|
23
|
+
SchemeOperatorPostalAddress: z.ZodArray<z.ZodObject<{
|
|
24
|
+
lang: z.ZodString;
|
|
25
|
+
StreetAddress: z.ZodString;
|
|
26
|
+
Locality: z.ZodString;
|
|
27
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
28
|
+
PostalCode: z.ZodString;
|
|
29
|
+
Country: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
SchemeOperatorElectronicAddress: z.ZodArray<z.ZodObject<{
|
|
32
|
+
lang: z.ZodString;
|
|
33
|
+
uriValue: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const TrustedEntityAddressSchema: z.ZodObject<{
|
|
37
|
+
TEPostalAddress: z.ZodArray<z.ZodObject<{
|
|
38
|
+
lang: z.ZodString;
|
|
39
|
+
StreetAddress: z.ZodString;
|
|
40
|
+
Locality: z.ZodString;
|
|
41
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
42
|
+
PostalCode: z.ZodString;
|
|
43
|
+
Country: z.ZodString;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
TEElectronicAddress: z.ZodArray<z.ZodObject<{
|
|
46
|
+
lang: z.ZodString;
|
|
47
|
+
uriValue: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
declare const PkiObjectSchema: z.ZodObject<{
|
|
51
|
+
encoding: z.ZodOptional<z.ZodString>;
|
|
52
|
+
specRef: z.ZodOptional<z.ZodString>;
|
|
53
|
+
val: z.ZodString;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
declare const X509CertificateRefSchema: z.ZodObject<{
|
|
56
|
+
val: z.ZodString;
|
|
57
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
58
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
declare const JWKPublicKeySchema: z.ZodObject<{
|
|
61
|
+
kty: z.ZodEnum<{
|
|
62
|
+
RSA: "RSA";
|
|
63
|
+
EC: "EC";
|
|
64
|
+
OKP: "OKP";
|
|
65
|
+
}>;
|
|
66
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
67
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
sig: "sig";
|
|
69
|
+
enc: "enc";
|
|
70
|
+
}>>;
|
|
71
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$loose>;
|
|
73
|
+
declare const ServiceDigitalIdentitySchema: z.ZodObject<{
|
|
74
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
75
|
+
val: z.ZodString;
|
|
76
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
77
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
|
+
kty: z.ZodEnum<{
|
|
82
|
+
RSA: "RSA";
|
|
83
|
+
EC: "EC";
|
|
84
|
+
OKP: "OKP";
|
|
85
|
+
}>;
|
|
86
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
87
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
sig: "sig";
|
|
89
|
+
enc: "enc";
|
|
90
|
+
}>>;
|
|
91
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$loose>>>;
|
|
93
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
declare const ServiceSupplyPointSchema: z.ZodObject<{
|
|
97
|
+
ServiceType: z.ZodString;
|
|
98
|
+
uriValue: z.ZodString;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
declare const ServiceInformationSchema: z.ZodObject<{
|
|
101
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
102
|
+
lang: z.ZodString;
|
|
103
|
+
value: z.ZodString;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
106
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
+
val: z.ZodString;
|
|
108
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
109
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
110
|
+
}, z.core.$strip>>>;
|
|
111
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
+
kty: z.ZodEnum<{
|
|
114
|
+
RSA: "RSA";
|
|
115
|
+
EC: "EC";
|
|
116
|
+
OKP: "OKP";
|
|
117
|
+
}>;
|
|
118
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
119
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
120
|
+
sig: "sig";
|
|
121
|
+
enc: "enc";
|
|
122
|
+
}>>;
|
|
123
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$loose>>>;
|
|
125
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
126
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
129
|
+
ServiceStatus: z.ZodOptional<z.ZodString>;
|
|
130
|
+
StatusStartingTime: z.ZodOptional<z.ZodString>;
|
|
131
|
+
SchemeServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
+
lang: z.ZodString;
|
|
133
|
+
uriValue: z.ZodString;
|
|
134
|
+
}, z.core.$strip>>>;
|
|
135
|
+
ServiceSupplyPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
136
|
+
ServiceType: z.ZodString;
|
|
137
|
+
uriValue: z.ZodString;
|
|
138
|
+
}, z.core.$strip>>>;
|
|
139
|
+
ServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
|
+
lang: z.ZodString;
|
|
141
|
+
uriValue: z.ZodString;
|
|
142
|
+
}, z.core.$strip>>>;
|
|
143
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
declare const ServiceHistoryInstanceSchema: z.ZodObject<{
|
|
146
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
147
|
+
lang: z.ZodString;
|
|
148
|
+
value: z.ZodString;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
151
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
152
|
+
val: z.ZodString;
|
|
153
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
154
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
155
|
+
}, z.core.$strip>>>;
|
|
156
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
157
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
158
|
+
kty: z.ZodEnum<{
|
|
159
|
+
RSA: "RSA";
|
|
160
|
+
EC: "EC";
|
|
161
|
+
OKP: "OKP";
|
|
162
|
+
}>;
|
|
163
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
164
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
165
|
+
sig: "sig";
|
|
166
|
+
enc: "enc";
|
|
167
|
+
}>>;
|
|
168
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$loose>>>;
|
|
170
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
171
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
ServiceStatus: z.ZodString;
|
|
174
|
+
StatusStartingTime: z.ZodString;
|
|
175
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
176
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
declare const TrustedEntityServiceSchema: z.ZodObject<{
|
|
179
|
+
ServiceInformation: z.ZodObject<{
|
|
180
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
181
|
+
lang: z.ZodString;
|
|
182
|
+
value: z.ZodString;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
185
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
186
|
+
val: z.ZodString;
|
|
187
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
188
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
189
|
+
}, z.core.$strip>>>;
|
|
190
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
191
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
192
|
+
kty: z.ZodEnum<{
|
|
193
|
+
RSA: "RSA";
|
|
194
|
+
EC: "EC";
|
|
195
|
+
OKP: "OKP";
|
|
196
|
+
}>;
|
|
197
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
198
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
sig: "sig";
|
|
200
|
+
enc: "enc";
|
|
201
|
+
}>>;
|
|
202
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$loose>>>;
|
|
204
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
205
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
208
|
+
ServiceStatus: z.ZodOptional<z.ZodString>;
|
|
209
|
+
StatusStartingTime: z.ZodOptional<z.ZodString>;
|
|
210
|
+
SchemeServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
211
|
+
lang: z.ZodString;
|
|
212
|
+
uriValue: z.ZodString;
|
|
213
|
+
}, z.core.$strip>>>;
|
|
214
|
+
ServiceSupplyPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
215
|
+
ServiceType: z.ZodString;
|
|
216
|
+
uriValue: z.ZodString;
|
|
217
|
+
}, z.core.$strip>>>;
|
|
218
|
+
ServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
219
|
+
lang: z.ZodString;
|
|
220
|
+
uriValue: z.ZodString;
|
|
221
|
+
}, z.core.$strip>>>;
|
|
222
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
ServiceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
225
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
226
|
+
lang: z.ZodString;
|
|
227
|
+
value: z.ZodString;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
230
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
231
|
+
val: z.ZodString;
|
|
232
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
233
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
234
|
+
}, z.core.$strip>>>;
|
|
235
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
236
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
237
|
+
kty: z.ZodEnum<{
|
|
238
|
+
RSA: "RSA";
|
|
239
|
+
EC: "EC";
|
|
240
|
+
OKP: "OKP";
|
|
241
|
+
}>;
|
|
242
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
243
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
sig: "sig";
|
|
245
|
+
enc: "enc";
|
|
246
|
+
}>>;
|
|
247
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$loose>>>;
|
|
249
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
250
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
ServiceStatus: z.ZodString;
|
|
253
|
+
StatusStartingTime: z.ZodString;
|
|
254
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
255
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
256
|
+
}, z.core.$strip>>>;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
declare const TrustedEntityInformationSchema: z.ZodObject<{
|
|
259
|
+
TEName: z.ZodArray<z.ZodObject<{
|
|
260
|
+
lang: z.ZodString;
|
|
261
|
+
value: z.ZodString;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
TETradeName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
264
|
+
lang: z.ZodString;
|
|
265
|
+
value: z.ZodString;
|
|
266
|
+
}, z.core.$strip>>>;
|
|
267
|
+
TEAddress: z.ZodObject<{
|
|
268
|
+
TEPostalAddress: z.ZodArray<z.ZodObject<{
|
|
269
|
+
lang: z.ZodString;
|
|
270
|
+
StreetAddress: z.ZodString;
|
|
271
|
+
Locality: z.ZodString;
|
|
272
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
273
|
+
PostalCode: z.ZodString;
|
|
274
|
+
Country: z.ZodString;
|
|
275
|
+
}, z.core.$strip>>;
|
|
276
|
+
TEElectronicAddress: z.ZodArray<z.ZodObject<{
|
|
277
|
+
lang: z.ZodString;
|
|
278
|
+
uriValue: z.ZodString;
|
|
279
|
+
}, z.core.$strip>>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
TEInformationURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
282
|
+
lang: z.ZodString;
|
|
283
|
+
uriValue: z.ZodString;
|
|
284
|
+
}, z.core.$strip>>>;
|
|
285
|
+
TEInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
declare const TrustedEntitySchema: z.ZodObject<{
|
|
288
|
+
TrustedEntityInformation: z.ZodObject<{
|
|
289
|
+
TEName: z.ZodArray<z.ZodObject<{
|
|
290
|
+
lang: z.ZodString;
|
|
291
|
+
value: z.ZodString;
|
|
292
|
+
}, z.core.$strip>>;
|
|
293
|
+
TETradeName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
+
lang: z.ZodString;
|
|
295
|
+
value: z.ZodString;
|
|
296
|
+
}, z.core.$strip>>>;
|
|
297
|
+
TEAddress: z.ZodObject<{
|
|
298
|
+
TEPostalAddress: z.ZodArray<z.ZodObject<{
|
|
299
|
+
lang: z.ZodString;
|
|
300
|
+
StreetAddress: z.ZodString;
|
|
301
|
+
Locality: z.ZodString;
|
|
302
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
303
|
+
PostalCode: z.ZodString;
|
|
304
|
+
Country: z.ZodString;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
TEElectronicAddress: z.ZodArray<z.ZodObject<{
|
|
307
|
+
lang: z.ZodString;
|
|
308
|
+
uriValue: z.ZodString;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
TEInformationURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
312
|
+
lang: z.ZodString;
|
|
313
|
+
uriValue: z.ZodString;
|
|
314
|
+
}, z.core.$strip>>>;
|
|
315
|
+
TEInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
TrustedEntityServices: z.ZodArray<z.ZodObject<{
|
|
318
|
+
ServiceInformation: z.ZodObject<{
|
|
319
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
320
|
+
lang: z.ZodString;
|
|
321
|
+
value: z.ZodString;
|
|
322
|
+
}, z.core.$strip>>;
|
|
323
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
324
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
325
|
+
val: z.ZodString;
|
|
326
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
327
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
328
|
+
}, z.core.$strip>>>;
|
|
329
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
330
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
331
|
+
kty: z.ZodEnum<{
|
|
332
|
+
RSA: "RSA";
|
|
333
|
+
EC: "EC";
|
|
334
|
+
OKP: "OKP";
|
|
335
|
+
}>;
|
|
336
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
337
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
338
|
+
sig: "sig";
|
|
339
|
+
enc: "enc";
|
|
340
|
+
}>>;
|
|
341
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
342
|
+
}, z.core.$loose>>>;
|
|
343
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
344
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
347
|
+
ServiceStatus: z.ZodOptional<z.ZodString>;
|
|
348
|
+
StatusStartingTime: z.ZodOptional<z.ZodString>;
|
|
349
|
+
SchemeServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
+
lang: z.ZodString;
|
|
351
|
+
uriValue: z.ZodString;
|
|
352
|
+
}, z.core.$strip>>>;
|
|
353
|
+
ServiceSupplyPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
354
|
+
ServiceType: z.ZodString;
|
|
355
|
+
uriValue: z.ZodString;
|
|
356
|
+
}, z.core.$strip>>>;
|
|
357
|
+
ServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
358
|
+
lang: z.ZodString;
|
|
359
|
+
uriValue: z.ZodString;
|
|
360
|
+
}, z.core.$strip>>>;
|
|
361
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
ServiceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
364
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
365
|
+
lang: z.ZodString;
|
|
366
|
+
value: z.ZodString;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
369
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
370
|
+
val: z.ZodString;
|
|
371
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
372
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
373
|
+
}, z.core.$strip>>>;
|
|
374
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
375
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
376
|
+
kty: z.ZodEnum<{
|
|
377
|
+
RSA: "RSA";
|
|
378
|
+
EC: "EC";
|
|
379
|
+
OKP: "OKP";
|
|
380
|
+
}>;
|
|
381
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
382
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
383
|
+
sig: "sig";
|
|
384
|
+
enc: "enc";
|
|
385
|
+
}>>;
|
|
386
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
387
|
+
}, z.core.$loose>>>;
|
|
388
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
389
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
390
|
+
}, z.core.$strip>;
|
|
391
|
+
ServiceStatus: z.ZodString;
|
|
392
|
+
StatusStartingTime: z.ZodString;
|
|
393
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
394
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
395
|
+
}, z.core.$strip>>>;
|
|
396
|
+
}, z.core.$strip>>;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
declare const PolicyOrLegalNoticeSchema: z.ZodObject<{
|
|
399
|
+
LoTEPolicy: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
lang: z.ZodString;
|
|
401
|
+
uriValue: z.ZodString;
|
|
402
|
+
}, z.core.$strip>>;
|
|
403
|
+
LoTELegalNotice: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
lang: z.ZodString;
|
|
405
|
+
value: z.ZodString;
|
|
406
|
+
}, z.core.$strip>>;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
declare const LoTEQualifierSchema: z.ZodObject<{
|
|
409
|
+
LoTEType: z.ZodString;
|
|
410
|
+
SchemeOperatorName: z.ZodArray<z.ZodObject<{
|
|
411
|
+
lang: z.ZodString;
|
|
412
|
+
value: z.ZodString;
|
|
413
|
+
}, z.core.$strip>>;
|
|
414
|
+
SchemeTypeCommunityRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
415
|
+
lang: z.ZodString;
|
|
416
|
+
uriValue: z.ZodString;
|
|
417
|
+
}, z.core.$strip>>>;
|
|
418
|
+
SchemeTerritory: z.ZodOptional<z.ZodString>;
|
|
419
|
+
MimeType: z.ZodString;
|
|
420
|
+
}, z.core.$strip>;
|
|
421
|
+
declare const OtherLoTEPointerSchema: z.ZodObject<{
|
|
422
|
+
LoTELocation: z.ZodString;
|
|
423
|
+
ServiceDigitalIdentities: z.ZodArray<z.ZodObject<{
|
|
424
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
425
|
+
val: z.ZodString;
|
|
426
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
427
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
428
|
+
}, z.core.$strip>>>;
|
|
429
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
430
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
431
|
+
kty: z.ZodEnum<{
|
|
432
|
+
RSA: "RSA";
|
|
433
|
+
EC: "EC";
|
|
434
|
+
OKP: "OKP";
|
|
435
|
+
}>;
|
|
436
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
437
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
438
|
+
sig: "sig";
|
|
439
|
+
enc: "enc";
|
|
440
|
+
}>>;
|
|
441
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
442
|
+
}, z.core.$loose>>>;
|
|
443
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
444
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
445
|
+
}, z.core.$strip>>;
|
|
446
|
+
LoTEQualifiers: z.ZodArray<z.ZodObject<{
|
|
447
|
+
LoTEType: z.ZodString;
|
|
448
|
+
SchemeOperatorName: z.ZodArray<z.ZodObject<{
|
|
449
|
+
lang: z.ZodString;
|
|
450
|
+
value: z.ZodString;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
SchemeTypeCommunityRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
453
|
+
lang: z.ZodString;
|
|
454
|
+
uriValue: z.ZodString;
|
|
455
|
+
}, z.core.$strip>>>;
|
|
456
|
+
SchemeTerritory: z.ZodOptional<z.ZodString>;
|
|
457
|
+
MimeType: z.ZodString;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
}, z.core.$strip>;
|
|
460
|
+
declare const ListAndSchemeInformationSchema: z.ZodObject<{
|
|
461
|
+
LoTEVersionIdentifier: z.ZodNumber;
|
|
462
|
+
LoTESequenceNumber: z.ZodNumber;
|
|
463
|
+
LoTEType: z.ZodOptional<z.ZodString>;
|
|
464
|
+
SchemeOperatorName: z.ZodArray<z.ZodObject<{
|
|
465
|
+
lang: z.ZodString;
|
|
466
|
+
value: z.ZodString;
|
|
467
|
+
}, z.core.$strip>>;
|
|
468
|
+
SchemeOperatorAddress: z.ZodOptional<z.ZodObject<{
|
|
469
|
+
SchemeOperatorPostalAddress: z.ZodArray<z.ZodObject<{
|
|
470
|
+
lang: z.ZodString;
|
|
471
|
+
StreetAddress: z.ZodString;
|
|
472
|
+
Locality: z.ZodString;
|
|
473
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
474
|
+
PostalCode: z.ZodString;
|
|
475
|
+
Country: z.ZodString;
|
|
476
|
+
}, z.core.$strip>>;
|
|
477
|
+
SchemeOperatorElectronicAddress: z.ZodArray<z.ZodObject<{
|
|
478
|
+
lang: z.ZodString;
|
|
479
|
+
uriValue: z.ZodString;
|
|
480
|
+
}, z.core.$strip>>;
|
|
481
|
+
}, z.core.$strip>>;
|
|
482
|
+
SchemeName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
483
|
+
lang: z.ZodString;
|
|
484
|
+
value: z.ZodString;
|
|
485
|
+
}, z.core.$strip>>>;
|
|
486
|
+
SchemeInformationURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
487
|
+
lang: z.ZodString;
|
|
488
|
+
uriValue: z.ZodString;
|
|
489
|
+
}, z.core.$strip>>>;
|
|
490
|
+
StatusDeterminationApproach: z.ZodOptional<z.ZodString>;
|
|
491
|
+
SchemeTypeCommunityRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
492
|
+
lang: z.ZodString;
|
|
493
|
+
uriValue: z.ZodString;
|
|
494
|
+
}, z.core.$strip>>>;
|
|
495
|
+
SchemeTerritory: z.ZodOptional<z.ZodString>;
|
|
496
|
+
PolicyOrLegalNotice: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
497
|
+
LoTEPolicy: z.ZodOptional<z.ZodObject<{
|
|
498
|
+
lang: z.ZodString;
|
|
499
|
+
uriValue: z.ZodString;
|
|
500
|
+
}, z.core.$strip>>;
|
|
501
|
+
LoTELegalNotice: z.ZodOptional<z.ZodObject<{
|
|
502
|
+
lang: z.ZodString;
|
|
503
|
+
value: z.ZodString;
|
|
504
|
+
}, z.core.$strip>>;
|
|
505
|
+
}, z.core.$strip>>>;
|
|
506
|
+
HistoricalInformationPeriod: z.ZodOptional<z.ZodNumber>;
|
|
507
|
+
PointersToOtherLoTE: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
508
|
+
LoTELocation: z.ZodString;
|
|
509
|
+
ServiceDigitalIdentities: z.ZodArray<z.ZodObject<{
|
|
510
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
511
|
+
val: z.ZodString;
|
|
512
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
513
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
514
|
+
}, z.core.$strip>>>;
|
|
515
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
516
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
517
|
+
kty: z.ZodEnum<{
|
|
518
|
+
RSA: "RSA";
|
|
519
|
+
EC: "EC";
|
|
520
|
+
OKP: "OKP";
|
|
521
|
+
}>;
|
|
522
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
523
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
524
|
+
sig: "sig";
|
|
525
|
+
enc: "enc";
|
|
526
|
+
}>>;
|
|
527
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, z.core.$loose>>>;
|
|
529
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
530
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
531
|
+
}, z.core.$strip>>;
|
|
532
|
+
LoTEQualifiers: z.ZodArray<z.ZodObject<{
|
|
533
|
+
LoTEType: z.ZodString;
|
|
534
|
+
SchemeOperatorName: z.ZodArray<z.ZodObject<{
|
|
535
|
+
lang: z.ZodString;
|
|
536
|
+
value: z.ZodString;
|
|
537
|
+
}, z.core.$strip>>;
|
|
538
|
+
SchemeTypeCommunityRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
539
|
+
lang: z.ZodString;
|
|
540
|
+
uriValue: z.ZodString;
|
|
541
|
+
}, z.core.$strip>>>;
|
|
542
|
+
SchemeTerritory: z.ZodOptional<z.ZodString>;
|
|
543
|
+
MimeType: z.ZodString;
|
|
544
|
+
}, z.core.$strip>>;
|
|
545
|
+
}, z.core.$strip>>>;
|
|
546
|
+
ListIssueDateTime: z.ZodString;
|
|
547
|
+
NextUpdate: z.ZodString;
|
|
548
|
+
DistributionPoints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
549
|
+
SchemeExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
550
|
+
}, z.core.$strip>;
|
|
551
|
+
declare const LoTESchema: z.ZodObject<{
|
|
552
|
+
ListAndSchemeInformation: z.ZodObject<{
|
|
553
|
+
LoTEVersionIdentifier: z.ZodNumber;
|
|
554
|
+
LoTESequenceNumber: z.ZodNumber;
|
|
555
|
+
LoTEType: z.ZodOptional<z.ZodString>;
|
|
556
|
+
SchemeOperatorName: z.ZodArray<z.ZodObject<{
|
|
557
|
+
lang: z.ZodString;
|
|
558
|
+
value: z.ZodString;
|
|
559
|
+
}, z.core.$strip>>;
|
|
560
|
+
SchemeOperatorAddress: z.ZodOptional<z.ZodObject<{
|
|
561
|
+
SchemeOperatorPostalAddress: z.ZodArray<z.ZodObject<{
|
|
562
|
+
lang: z.ZodString;
|
|
563
|
+
StreetAddress: z.ZodString;
|
|
564
|
+
Locality: z.ZodString;
|
|
565
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
566
|
+
PostalCode: z.ZodString;
|
|
567
|
+
Country: z.ZodString;
|
|
568
|
+
}, z.core.$strip>>;
|
|
569
|
+
SchemeOperatorElectronicAddress: z.ZodArray<z.ZodObject<{
|
|
570
|
+
lang: z.ZodString;
|
|
571
|
+
uriValue: z.ZodString;
|
|
572
|
+
}, z.core.$strip>>;
|
|
573
|
+
}, z.core.$strip>>;
|
|
574
|
+
SchemeName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
575
|
+
lang: z.ZodString;
|
|
576
|
+
value: z.ZodString;
|
|
577
|
+
}, z.core.$strip>>>;
|
|
578
|
+
SchemeInformationURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
579
|
+
lang: z.ZodString;
|
|
580
|
+
uriValue: z.ZodString;
|
|
581
|
+
}, z.core.$strip>>>;
|
|
582
|
+
StatusDeterminationApproach: z.ZodOptional<z.ZodString>;
|
|
583
|
+
SchemeTypeCommunityRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
584
|
+
lang: z.ZodString;
|
|
585
|
+
uriValue: z.ZodString;
|
|
586
|
+
}, z.core.$strip>>>;
|
|
587
|
+
SchemeTerritory: z.ZodOptional<z.ZodString>;
|
|
588
|
+
PolicyOrLegalNotice: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
589
|
+
LoTEPolicy: z.ZodOptional<z.ZodObject<{
|
|
590
|
+
lang: z.ZodString;
|
|
591
|
+
uriValue: z.ZodString;
|
|
592
|
+
}, z.core.$strip>>;
|
|
593
|
+
LoTELegalNotice: z.ZodOptional<z.ZodObject<{
|
|
594
|
+
lang: z.ZodString;
|
|
595
|
+
value: z.ZodString;
|
|
596
|
+
}, z.core.$strip>>;
|
|
597
|
+
}, z.core.$strip>>>;
|
|
598
|
+
HistoricalInformationPeriod: z.ZodOptional<z.ZodNumber>;
|
|
599
|
+
PointersToOtherLoTE: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
600
|
+
LoTELocation: z.ZodString;
|
|
601
|
+
ServiceDigitalIdentities: z.ZodArray<z.ZodObject<{
|
|
602
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
603
|
+
val: z.ZodString;
|
|
604
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
605
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
606
|
+
}, z.core.$strip>>>;
|
|
607
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
608
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
609
|
+
kty: z.ZodEnum<{
|
|
610
|
+
RSA: "RSA";
|
|
611
|
+
EC: "EC";
|
|
612
|
+
OKP: "OKP";
|
|
613
|
+
}>;
|
|
614
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
615
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
616
|
+
sig: "sig";
|
|
617
|
+
enc: "enc";
|
|
618
|
+
}>>;
|
|
619
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
620
|
+
}, z.core.$loose>>>;
|
|
621
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
622
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
623
|
+
}, z.core.$strip>>;
|
|
624
|
+
LoTEQualifiers: z.ZodArray<z.ZodObject<{
|
|
625
|
+
LoTEType: z.ZodString;
|
|
626
|
+
SchemeOperatorName: z.ZodArray<z.ZodObject<{
|
|
627
|
+
lang: z.ZodString;
|
|
628
|
+
value: z.ZodString;
|
|
629
|
+
}, z.core.$strip>>;
|
|
630
|
+
SchemeTypeCommunityRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
631
|
+
lang: z.ZodString;
|
|
632
|
+
uriValue: z.ZodString;
|
|
633
|
+
}, z.core.$strip>>>;
|
|
634
|
+
SchemeTerritory: z.ZodOptional<z.ZodString>;
|
|
635
|
+
MimeType: z.ZodString;
|
|
636
|
+
}, z.core.$strip>>;
|
|
637
|
+
}, z.core.$strip>>>;
|
|
638
|
+
ListIssueDateTime: z.ZodString;
|
|
639
|
+
NextUpdate: z.ZodString;
|
|
640
|
+
DistributionPoints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
641
|
+
SchemeExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
642
|
+
}, z.core.$strip>;
|
|
643
|
+
TrustedEntitiesList: z.ZodArray<z.ZodObject<{
|
|
644
|
+
TrustedEntityInformation: z.ZodObject<{
|
|
645
|
+
TEName: z.ZodArray<z.ZodObject<{
|
|
646
|
+
lang: z.ZodString;
|
|
647
|
+
value: z.ZodString;
|
|
648
|
+
}, z.core.$strip>>;
|
|
649
|
+
TETradeName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
650
|
+
lang: z.ZodString;
|
|
651
|
+
value: z.ZodString;
|
|
652
|
+
}, z.core.$strip>>>;
|
|
653
|
+
TEAddress: z.ZodObject<{
|
|
654
|
+
TEPostalAddress: z.ZodArray<z.ZodObject<{
|
|
655
|
+
lang: z.ZodString;
|
|
656
|
+
StreetAddress: z.ZodString;
|
|
657
|
+
Locality: z.ZodString;
|
|
658
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
659
|
+
PostalCode: z.ZodString;
|
|
660
|
+
Country: z.ZodString;
|
|
661
|
+
}, z.core.$strip>>;
|
|
662
|
+
TEElectronicAddress: z.ZodArray<z.ZodObject<{
|
|
663
|
+
lang: z.ZodString;
|
|
664
|
+
uriValue: z.ZodString;
|
|
665
|
+
}, z.core.$strip>>;
|
|
666
|
+
}, z.core.$strip>;
|
|
667
|
+
TEInformationURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
668
|
+
lang: z.ZodString;
|
|
669
|
+
uriValue: z.ZodString;
|
|
670
|
+
}, z.core.$strip>>>;
|
|
671
|
+
TEInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
672
|
+
}, z.core.$strip>;
|
|
673
|
+
TrustedEntityServices: z.ZodArray<z.ZodObject<{
|
|
674
|
+
ServiceInformation: z.ZodObject<{
|
|
675
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
676
|
+
lang: z.ZodString;
|
|
677
|
+
value: z.ZodString;
|
|
678
|
+
}, z.core.$strip>>;
|
|
679
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
680
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
681
|
+
val: z.ZodString;
|
|
682
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
683
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
684
|
+
}, z.core.$strip>>>;
|
|
685
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
686
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
687
|
+
kty: z.ZodEnum<{
|
|
688
|
+
RSA: "RSA";
|
|
689
|
+
EC: "EC";
|
|
690
|
+
OKP: "OKP";
|
|
691
|
+
}>;
|
|
692
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
693
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
694
|
+
sig: "sig";
|
|
695
|
+
enc: "enc";
|
|
696
|
+
}>>;
|
|
697
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
698
|
+
}, z.core.$loose>>>;
|
|
699
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
700
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
701
|
+
}, z.core.$strip>;
|
|
702
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
703
|
+
ServiceStatus: z.ZodOptional<z.ZodString>;
|
|
704
|
+
StatusStartingTime: z.ZodOptional<z.ZodString>;
|
|
705
|
+
SchemeServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
706
|
+
lang: z.ZodString;
|
|
707
|
+
uriValue: z.ZodString;
|
|
708
|
+
}, z.core.$strip>>>;
|
|
709
|
+
ServiceSupplyPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
710
|
+
ServiceType: z.ZodString;
|
|
711
|
+
uriValue: z.ZodString;
|
|
712
|
+
}, z.core.$strip>>>;
|
|
713
|
+
ServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
714
|
+
lang: z.ZodString;
|
|
715
|
+
uriValue: z.ZodString;
|
|
716
|
+
}, z.core.$strip>>>;
|
|
717
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
718
|
+
}, z.core.$strip>;
|
|
719
|
+
ServiceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
720
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
721
|
+
lang: z.ZodString;
|
|
722
|
+
value: z.ZodString;
|
|
723
|
+
}, z.core.$strip>>;
|
|
724
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
725
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
726
|
+
val: z.ZodString;
|
|
727
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
728
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
729
|
+
}, z.core.$strip>>>;
|
|
730
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
731
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
732
|
+
kty: z.ZodEnum<{
|
|
733
|
+
RSA: "RSA";
|
|
734
|
+
EC: "EC";
|
|
735
|
+
OKP: "OKP";
|
|
736
|
+
}>;
|
|
737
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
738
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
739
|
+
sig: "sig";
|
|
740
|
+
enc: "enc";
|
|
741
|
+
}>>;
|
|
742
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
743
|
+
}, z.core.$loose>>>;
|
|
744
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
745
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
746
|
+
}, z.core.$strip>;
|
|
747
|
+
ServiceStatus: z.ZodString;
|
|
748
|
+
StatusStartingTime: z.ZodString;
|
|
749
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
750
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
751
|
+
}, z.core.$strip>>>;
|
|
752
|
+
}, z.core.$strip>>;
|
|
753
|
+
}, z.core.$strip>>;
|
|
754
|
+
}, z.core.$strip>;
|
|
755
|
+
declare const LoTEDocumentSchema: z.ZodObject<{
|
|
756
|
+
LoTE: z.ZodObject<{
|
|
757
|
+
ListAndSchemeInformation: z.ZodObject<{
|
|
758
|
+
LoTEVersionIdentifier: z.ZodNumber;
|
|
759
|
+
LoTESequenceNumber: z.ZodNumber;
|
|
760
|
+
LoTEType: z.ZodOptional<z.ZodString>;
|
|
761
|
+
SchemeOperatorName: z.ZodArray<z.ZodObject<{
|
|
762
|
+
lang: z.ZodString;
|
|
763
|
+
value: z.ZodString;
|
|
764
|
+
}, z.core.$strip>>;
|
|
765
|
+
SchemeOperatorAddress: z.ZodOptional<z.ZodObject<{
|
|
766
|
+
SchemeOperatorPostalAddress: z.ZodArray<z.ZodObject<{
|
|
767
|
+
lang: z.ZodString;
|
|
768
|
+
StreetAddress: z.ZodString;
|
|
769
|
+
Locality: z.ZodString;
|
|
770
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
771
|
+
PostalCode: z.ZodString;
|
|
772
|
+
Country: z.ZodString;
|
|
773
|
+
}, z.core.$strip>>;
|
|
774
|
+
SchemeOperatorElectronicAddress: z.ZodArray<z.ZodObject<{
|
|
775
|
+
lang: z.ZodString;
|
|
776
|
+
uriValue: z.ZodString;
|
|
777
|
+
}, z.core.$strip>>;
|
|
778
|
+
}, z.core.$strip>>;
|
|
779
|
+
SchemeName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
780
|
+
lang: z.ZodString;
|
|
781
|
+
value: z.ZodString;
|
|
782
|
+
}, z.core.$strip>>>;
|
|
783
|
+
SchemeInformationURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
784
|
+
lang: z.ZodString;
|
|
785
|
+
uriValue: z.ZodString;
|
|
786
|
+
}, z.core.$strip>>>;
|
|
787
|
+
StatusDeterminationApproach: z.ZodOptional<z.ZodString>;
|
|
788
|
+
SchemeTypeCommunityRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
789
|
+
lang: z.ZodString;
|
|
790
|
+
uriValue: z.ZodString;
|
|
791
|
+
}, z.core.$strip>>>;
|
|
792
|
+
SchemeTerritory: z.ZodOptional<z.ZodString>;
|
|
793
|
+
PolicyOrLegalNotice: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
794
|
+
LoTEPolicy: z.ZodOptional<z.ZodObject<{
|
|
795
|
+
lang: z.ZodString;
|
|
796
|
+
uriValue: z.ZodString;
|
|
797
|
+
}, z.core.$strip>>;
|
|
798
|
+
LoTELegalNotice: z.ZodOptional<z.ZodObject<{
|
|
799
|
+
lang: z.ZodString;
|
|
800
|
+
value: z.ZodString;
|
|
801
|
+
}, z.core.$strip>>;
|
|
802
|
+
}, z.core.$strip>>>;
|
|
803
|
+
HistoricalInformationPeriod: z.ZodOptional<z.ZodNumber>;
|
|
804
|
+
PointersToOtherLoTE: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
805
|
+
LoTELocation: z.ZodString;
|
|
806
|
+
ServiceDigitalIdentities: z.ZodArray<z.ZodObject<{
|
|
807
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
808
|
+
val: z.ZodString;
|
|
809
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
810
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
811
|
+
}, z.core.$strip>>>;
|
|
812
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
813
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
814
|
+
kty: z.ZodEnum<{
|
|
815
|
+
RSA: "RSA";
|
|
816
|
+
EC: "EC";
|
|
817
|
+
OKP: "OKP";
|
|
818
|
+
}>;
|
|
819
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
820
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
821
|
+
sig: "sig";
|
|
822
|
+
enc: "enc";
|
|
823
|
+
}>>;
|
|
824
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
825
|
+
}, z.core.$loose>>>;
|
|
826
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
827
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
828
|
+
}, z.core.$strip>>;
|
|
829
|
+
LoTEQualifiers: z.ZodArray<z.ZodObject<{
|
|
830
|
+
LoTEType: z.ZodString;
|
|
831
|
+
SchemeOperatorName: z.ZodArray<z.ZodObject<{
|
|
832
|
+
lang: z.ZodString;
|
|
833
|
+
value: z.ZodString;
|
|
834
|
+
}, z.core.$strip>>;
|
|
835
|
+
SchemeTypeCommunityRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
836
|
+
lang: z.ZodString;
|
|
837
|
+
uriValue: z.ZodString;
|
|
838
|
+
}, z.core.$strip>>>;
|
|
839
|
+
SchemeTerritory: z.ZodOptional<z.ZodString>;
|
|
840
|
+
MimeType: z.ZodString;
|
|
841
|
+
}, z.core.$strip>>;
|
|
842
|
+
}, z.core.$strip>>>;
|
|
843
|
+
ListIssueDateTime: z.ZodString;
|
|
844
|
+
NextUpdate: z.ZodString;
|
|
845
|
+
DistributionPoints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
846
|
+
SchemeExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
847
|
+
}, z.core.$strip>;
|
|
848
|
+
TrustedEntitiesList: z.ZodArray<z.ZodObject<{
|
|
849
|
+
TrustedEntityInformation: z.ZodObject<{
|
|
850
|
+
TEName: z.ZodArray<z.ZodObject<{
|
|
851
|
+
lang: z.ZodString;
|
|
852
|
+
value: z.ZodString;
|
|
853
|
+
}, z.core.$strip>>;
|
|
854
|
+
TETradeName: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
855
|
+
lang: z.ZodString;
|
|
856
|
+
value: z.ZodString;
|
|
857
|
+
}, z.core.$strip>>>;
|
|
858
|
+
TEAddress: z.ZodObject<{
|
|
859
|
+
TEPostalAddress: z.ZodArray<z.ZodObject<{
|
|
860
|
+
lang: z.ZodString;
|
|
861
|
+
StreetAddress: z.ZodString;
|
|
862
|
+
Locality: z.ZodString;
|
|
863
|
+
StateOrProvince: z.ZodOptional<z.ZodString>;
|
|
864
|
+
PostalCode: z.ZodString;
|
|
865
|
+
Country: z.ZodString;
|
|
866
|
+
}, z.core.$strip>>;
|
|
867
|
+
TEElectronicAddress: z.ZodArray<z.ZodObject<{
|
|
868
|
+
lang: z.ZodString;
|
|
869
|
+
uriValue: z.ZodString;
|
|
870
|
+
}, z.core.$strip>>;
|
|
871
|
+
}, z.core.$strip>;
|
|
872
|
+
TEInformationURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
873
|
+
lang: z.ZodString;
|
|
874
|
+
uriValue: z.ZodString;
|
|
875
|
+
}, z.core.$strip>>>;
|
|
876
|
+
TEInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
877
|
+
}, z.core.$strip>;
|
|
878
|
+
TrustedEntityServices: z.ZodArray<z.ZodObject<{
|
|
879
|
+
ServiceInformation: z.ZodObject<{
|
|
880
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
881
|
+
lang: z.ZodString;
|
|
882
|
+
value: z.ZodString;
|
|
883
|
+
}, z.core.$strip>>;
|
|
884
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
885
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
886
|
+
val: z.ZodString;
|
|
887
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
888
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
889
|
+
}, z.core.$strip>>>;
|
|
890
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
891
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
892
|
+
kty: z.ZodEnum<{
|
|
893
|
+
RSA: "RSA";
|
|
894
|
+
EC: "EC";
|
|
895
|
+
OKP: "OKP";
|
|
896
|
+
}>;
|
|
897
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
898
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
899
|
+
sig: "sig";
|
|
900
|
+
enc: "enc";
|
|
901
|
+
}>>;
|
|
902
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
903
|
+
}, z.core.$loose>>>;
|
|
904
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
905
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
906
|
+
}, z.core.$strip>;
|
|
907
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
908
|
+
ServiceStatus: z.ZodOptional<z.ZodString>;
|
|
909
|
+
StatusStartingTime: z.ZodOptional<z.ZodString>;
|
|
910
|
+
SchemeServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
911
|
+
lang: z.ZodString;
|
|
912
|
+
uriValue: z.ZodString;
|
|
913
|
+
}, z.core.$strip>>>;
|
|
914
|
+
ServiceSupplyPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
915
|
+
ServiceType: z.ZodString;
|
|
916
|
+
uriValue: z.ZodString;
|
|
917
|
+
}, z.core.$strip>>>;
|
|
918
|
+
ServiceDefinitionURI: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
919
|
+
lang: z.ZodString;
|
|
920
|
+
uriValue: z.ZodString;
|
|
921
|
+
}, z.core.$strip>>>;
|
|
922
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
923
|
+
}, z.core.$strip>;
|
|
924
|
+
ServiceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
925
|
+
ServiceName: z.ZodArray<z.ZodObject<{
|
|
926
|
+
lang: z.ZodString;
|
|
927
|
+
value: z.ZodString;
|
|
928
|
+
}, z.core.$strip>>;
|
|
929
|
+
ServiceDigitalIdentity: z.ZodObject<{
|
|
930
|
+
X509Certificates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
931
|
+
val: z.ZodString;
|
|
932
|
+
encoding: z.ZodOptional<z.ZodLiteral<"urn:ietf:params:tls-cert-type:x509">>;
|
|
933
|
+
specRef: z.ZodOptional<z.ZodLiteral<"RFC5280">>;
|
|
934
|
+
}, z.core.$strip>>>;
|
|
935
|
+
X509SubjectNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
936
|
+
PublicKeyValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
937
|
+
kty: z.ZodEnum<{
|
|
938
|
+
RSA: "RSA";
|
|
939
|
+
EC: "EC";
|
|
940
|
+
OKP: "OKP";
|
|
941
|
+
}>;
|
|
942
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
943
|
+
use: z.ZodOptional<z.ZodEnum<{
|
|
944
|
+
sig: "sig";
|
|
945
|
+
enc: "enc";
|
|
946
|
+
}>>;
|
|
947
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
948
|
+
}, z.core.$loose>>>;
|
|
949
|
+
X509SKIs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
950
|
+
OtherIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
951
|
+
}, z.core.$strip>;
|
|
952
|
+
ServiceStatus: z.ZodString;
|
|
953
|
+
StatusStartingTime: z.ZodString;
|
|
954
|
+
ServiceTypeIdentifier: z.ZodOptional<z.ZodString>;
|
|
955
|
+
ServiceInformationExtensions: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
956
|
+
}, z.core.$strip>>>;
|
|
957
|
+
}, z.core.$strip>>;
|
|
958
|
+
}, z.core.$strip>>;
|
|
959
|
+
}, z.core.$strip>;
|
|
960
|
+
}, z.core.$strip>;
|
|
961
|
+
//#endregion
|
|
962
|
+
//#region src/types.d.ts
|
|
963
|
+
type LocalizedString = z.infer<typeof LocalizedStringSchema>;
|
|
964
|
+
type LocalizedURI = z.infer<typeof LocalizedURISchema>;
|
|
965
|
+
type PostalAddress = z.infer<typeof PostalAddressSchema>;
|
|
966
|
+
type SchemeOperatorAddress = z.infer<typeof SchemeOperatorAddressSchema>;
|
|
967
|
+
type TrustedEntityAddress = z.infer<typeof TrustedEntityAddressSchema>;
|
|
968
|
+
type PkiObject = z.infer<typeof PkiObjectSchema>;
|
|
969
|
+
type X509CertificateRef = z.infer<typeof X509CertificateRefSchema>;
|
|
970
|
+
type JWKPublicKey = z.infer<typeof JWKPublicKeySchema>;
|
|
971
|
+
type ServiceDigitalIdentity = z.infer<typeof ServiceDigitalIdentitySchema>;
|
|
972
|
+
type ServiceSupplyPoint = z.infer<typeof ServiceSupplyPointSchema>;
|
|
973
|
+
type ServiceInformationExtensions = unknown[];
|
|
974
|
+
type ServiceInformation = z.infer<typeof ServiceInformationSchema>;
|
|
975
|
+
type ServiceHistoryInstance = z.infer<typeof ServiceHistoryInstanceSchema>;
|
|
976
|
+
type ServiceHistory = ServiceHistoryInstance[];
|
|
977
|
+
type TrustedEntityService = z.infer<typeof TrustedEntityServiceSchema>;
|
|
978
|
+
type TEInformationExtensions = unknown[];
|
|
979
|
+
type TrustedEntityInformation = z.infer<typeof TrustedEntityInformationSchema>;
|
|
980
|
+
type TrustedEntity = z.infer<typeof TrustedEntitySchema>;
|
|
981
|
+
type PolicyOrLegalNotice = z.infer<typeof PolicyOrLegalNoticeSchema>;
|
|
982
|
+
type LoTEQualifier = z.infer<typeof LoTEQualifierSchema>;
|
|
983
|
+
type OtherLoTEPointer = z.infer<typeof OtherLoTEPointerSchema>;
|
|
984
|
+
type PointersToOtherLoTE = OtherLoTEPointer[];
|
|
985
|
+
type SchemeExtensions = unknown[];
|
|
986
|
+
type ListAndSchemeInformation = z.infer<typeof ListAndSchemeInformationSchema>;
|
|
987
|
+
type LoTE = z.infer<typeof LoTESchema>;
|
|
988
|
+
type LoTEDocument = z.infer<typeof LoTEDocumentSchema>;
|
|
989
|
+
/** Signed LoTE document (JWS format) */
|
|
990
|
+
interface SignedLoTE {
|
|
991
|
+
/** The compact JWS string */
|
|
992
|
+
jws: string;
|
|
993
|
+
/** Decoded header */
|
|
994
|
+
header: {
|
|
995
|
+
alg: string;
|
|
996
|
+
typ: string;
|
|
997
|
+
kid?: string;
|
|
998
|
+
x5c?: string[];
|
|
999
|
+
};
|
|
1000
|
+
/** Decoded payload */
|
|
1001
|
+
payload: LoTEDocument;
|
|
1002
|
+
}
|
|
1003
|
+
/** Options for signing a LoTE document */
|
|
1004
|
+
interface SignOptions {
|
|
1005
|
+
/** The LoTE document to sign */
|
|
1006
|
+
lote: LoTEDocument;
|
|
1007
|
+
/** Key ID for the signing key */
|
|
1008
|
+
keyId: string;
|
|
1009
|
+
/** Algorithm (default: ES256) */
|
|
1010
|
+
algorithm?: 'ES256' | 'ES384' | 'ES512' | 'RS256' | 'RS384' | 'RS512';
|
|
1011
|
+
/** PEM-encoded certificates for x5c header (each element is a single PEM certificate) */
|
|
1012
|
+
certificates?: string[];
|
|
1013
|
+
/** Signer function for signing the JWS */
|
|
1014
|
+
signer: Signer;
|
|
1015
|
+
}
|
|
1016
|
+
//#endregion
|
|
1017
|
+
//#region src/builders.d.ts
|
|
1018
|
+
/**
|
|
1019
|
+
* Builder for creating TrustedEntity objects with a fluent API
|
|
1020
|
+
*/
|
|
1021
|
+
declare class TrustedEntityBuilder {
|
|
1022
|
+
private info;
|
|
1023
|
+
private services;
|
|
1024
|
+
/**
|
|
1025
|
+
* Set the entity name
|
|
1026
|
+
*/
|
|
1027
|
+
name(value: string, lang?: string): this;
|
|
1028
|
+
/**
|
|
1029
|
+
* Set the trade name
|
|
1030
|
+
*/
|
|
1031
|
+
tradeName(value: string, lang?: string): this;
|
|
1032
|
+
/**
|
|
1033
|
+
* Set the postal address
|
|
1034
|
+
*/
|
|
1035
|
+
postalAddress(address: Omit<PostalAddress, 'lang'>, lang?: string): this;
|
|
1036
|
+
/**
|
|
1037
|
+
* Add an electronic address (email)
|
|
1038
|
+
*/
|
|
1039
|
+
email(email: string, lang?: string): this;
|
|
1040
|
+
/**
|
|
1041
|
+
* Add an information URI
|
|
1042
|
+
*/
|
|
1043
|
+
infoUri(uri: string, lang?: string): this;
|
|
1044
|
+
/**
|
|
1045
|
+
* Add a website URL as an electronic address
|
|
1046
|
+
*/
|
|
1047
|
+
website(url: string, lang?: string): this;
|
|
1048
|
+
/**
|
|
1049
|
+
* Add custom extensions
|
|
1050
|
+
*/
|
|
1051
|
+
addExtension(extension: unknown): this;
|
|
1052
|
+
/**
|
|
1053
|
+
* Add a service to the entity
|
|
1054
|
+
*/
|
|
1055
|
+
addService(service: TrustedEntityService): this;
|
|
1056
|
+
/**
|
|
1057
|
+
* Build the TrustedEntity object
|
|
1058
|
+
*/
|
|
1059
|
+
build(): TrustedEntity;
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Builder for creating TrustedEntityService objects
|
|
1063
|
+
*/
|
|
1064
|
+
declare class ServiceBuilder {
|
|
1065
|
+
private info;
|
|
1066
|
+
private history;
|
|
1067
|
+
/**
|
|
1068
|
+
* Set the service name
|
|
1069
|
+
*/
|
|
1070
|
+
name(value: string, lang?: string): this;
|
|
1071
|
+
/**
|
|
1072
|
+
* Set the service type identifier
|
|
1073
|
+
*/
|
|
1074
|
+
type(typeUri: string): this;
|
|
1075
|
+
/**
|
|
1076
|
+
* Set the service status
|
|
1077
|
+
*/
|
|
1078
|
+
status(statusUri: string, startingTime?: Date): this;
|
|
1079
|
+
/**
|
|
1080
|
+
* Add an X.509 certificate to the digital identity
|
|
1081
|
+
*/
|
|
1082
|
+
addCertificate(certBase64: string): this;
|
|
1083
|
+
/**
|
|
1084
|
+
* Add an X.509 subject name (DN format) to the digital identity
|
|
1085
|
+
*/
|
|
1086
|
+
addX509SubjectName(subjectName: string): this;
|
|
1087
|
+
/**
|
|
1088
|
+
* Add an X.509 Subject Key Identifier (base64-encoded) to the digital identity
|
|
1089
|
+
*/
|
|
1090
|
+
addX509SKI(ski: string): this;
|
|
1091
|
+
/**
|
|
1092
|
+
* Add another identifier to the digital identity
|
|
1093
|
+
*/
|
|
1094
|
+
addOtherId(id: string): this;
|
|
1095
|
+
/**
|
|
1096
|
+
* Add a public key (JWK) to the digital identity
|
|
1097
|
+
*/
|
|
1098
|
+
addPublicKey(jwk: JWKPublicKey): this;
|
|
1099
|
+
/**
|
|
1100
|
+
* Add a service endpoint
|
|
1101
|
+
*/
|
|
1102
|
+
addEndpoint(type: string, uri: string): this;
|
|
1103
|
+
/**
|
|
1104
|
+
* Add a service definition URI
|
|
1105
|
+
*/
|
|
1106
|
+
addDefinitionUri(uri: string, lang?: string): this;
|
|
1107
|
+
/**
|
|
1108
|
+
* Add custom service information extensions
|
|
1109
|
+
*/
|
|
1110
|
+
addExtension(extension: unknown): this;
|
|
1111
|
+
/**
|
|
1112
|
+
* Add a historical service instance
|
|
1113
|
+
*/
|
|
1114
|
+
addHistoryEntry(historyInstance: ServiceHistoryInstance): this;
|
|
1115
|
+
/**
|
|
1116
|
+
* Build the TrustedEntityService object
|
|
1117
|
+
*/
|
|
1118
|
+
build(): TrustedEntityService;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Create a new TrustedEntityBuilder
|
|
1122
|
+
*/
|
|
1123
|
+
declare function trustedEntity(): TrustedEntityBuilder;
|
|
1124
|
+
/**
|
|
1125
|
+
* Create a new ServiceBuilder
|
|
1126
|
+
*/
|
|
1127
|
+
declare function service(): ServiceBuilder;
|
|
1128
|
+
//#endregion
|
|
1129
|
+
//#region src/lote-exception.d.ts
|
|
1130
|
+
/**
|
|
1131
|
+
* LoTEException is a custom error class for LoTE-related exceptions.
|
|
1132
|
+
*/
|
|
1133
|
+
declare class LoTEException extends IdentityException {
|
|
1134
|
+
constructor(message: string, details?: unknown);
|
|
1135
|
+
}
|
|
1136
|
+
//#endregion
|
|
1137
|
+
//#region src/signer.d.ts
|
|
1138
|
+
/**
|
|
1139
|
+
* Sign a LoTE document
|
|
1140
|
+
*
|
|
1141
|
+
* @param options - Signing options including LoTE document, key ID, and signer function
|
|
1142
|
+
* @returns The signed LoTE document as a JWS
|
|
1143
|
+
*
|
|
1144
|
+
* @example Using a local key via @owf/crypto:
|
|
1145
|
+
* ```typescript
|
|
1146
|
+
* import { ES256 } from '@owf/crypto';
|
|
1147
|
+
* import { signLoTE } from '@owf/eudi-lote';
|
|
1148
|
+
*
|
|
1149
|
+
* const { privateKey } = await ES256.generateKeyPair();
|
|
1150
|
+
* const signer = await ES256.getSigner(privateKey);
|
|
1151
|
+
* const signed = await signLoTE({
|
|
1152
|
+
* lote: myLoTE,
|
|
1153
|
+
* keyId: 'lote-signer-2025',
|
|
1154
|
+
* signer,
|
|
1155
|
+
* });
|
|
1156
|
+
* ```
|
|
1157
|
+
*
|
|
1158
|
+
* @example Using an external KMS:
|
|
1159
|
+
* ```typescript
|
|
1160
|
+
* const signed = await signLoTE({
|
|
1161
|
+
* lote: myLoTE,
|
|
1162
|
+
* keyId: 'lote-signer-2025',
|
|
1163
|
+
* signer: async (data) => myKms.sign('ES256', data),
|
|
1164
|
+
* });
|
|
1165
|
+
* ```
|
|
1166
|
+
*/
|
|
1167
|
+
declare function signLoTE(options: SignOptions): Promise<SignedLoTE>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Create a new LoTE document with required structure
|
|
1170
|
+
* Per ETSI TS 119 602, only SchemeOperatorName, ListIssueDateTime and NextUpdate are required
|
|
1171
|
+
*/
|
|
1172
|
+
declare function createLoTE(schemeInfo: Partial<ListAndSchemeInformation> & Pick<ListAndSchemeInformation, 'SchemeOperatorName'>, entities?: TrustedEntity[]): LoTEDocument;
|
|
1173
|
+
/**
|
|
1174
|
+
* Increment the sequence number and update timestamps for a new version
|
|
1175
|
+
*/
|
|
1176
|
+
declare function updateLoTEVersion(lote: LoTEDocument): LoTEDocument;
|
|
1177
|
+
/**
|
|
1178
|
+
* Add a trusted entity to a LoTE document
|
|
1179
|
+
*/
|
|
1180
|
+
declare function addTrustedEntity(lote: LoTEDocument, entity: TrustedEntity): LoTEDocument;
|
|
1181
|
+
/**
|
|
1182
|
+
* Remove a trusted entity from a LoTE document by name
|
|
1183
|
+
*/
|
|
1184
|
+
declare function removeTrustedEntity(lote: LoTEDocument, entityName: string): LoTEDocument;
|
|
1185
|
+
//#endregion
|
|
1186
|
+
//#region src/validator.d.ts
|
|
1187
|
+
/**
|
|
1188
|
+
* Validation error detail
|
|
1189
|
+
*/
|
|
1190
|
+
interface ValidationError {
|
|
1191
|
+
/** Path to the invalid field */
|
|
1192
|
+
path: string;
|
|
1193
|
+
/** Error message */
|
|
1194
|
+
message: string;
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Validation result
|
|
1198
|
+
*/
|
|
1199
|
+
interface ValidationResult {
|
|
1200
|
+
/** Whether the LoTE document is valid */
|
|
1201
|
+
valid: boolean;
|
|
1202
|
+
/** List of validation errors (if invalid) */
|
|
1203
|
+
errors: ValidationError[];
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Validate a LoTE document against ETSI TS 119 602 schema
|
|
1207
|
+
*
|
|
1208
|
+
* @param loteDocument - The LoTE document to validate
|
|
1209
|
+
* @returns Validation result with errors if invalid
|
|
1210
|
+
*
|
|
1211
|
+
* @example
|
|
1212
|
+
* ```typescript
|
|
1213
|
+
* const result = validateLoTE(myLoTE);
|
|
1214
|
+
* if (!result.valid) {
|
|
1215
|
+
* console.error('Validation errors:', result.errors);
|
|
1216
|
+
* }
|
|
1217
|
+
* ```
|
|
1218
|
+
*/
|
|
1219
|
+
declare function validateLoTE(loteDocument: unknown): ValidationResult;
|
|
1220
|
+
/**
|
|
1221
|
+
* Assert that a LoTE document is valid, throwing if not
|
|
1222
|
+
*
|
|
1223
|
+
* @param loteDocument - The LoTE document to validate
|
|
1224
|
+
* @throws Error if validation fails
|
|
1225
|
+
*/
|
|
1226
|
+
declare function assertValidLoTE(loteDocument: unknown): asserts loteDocument is LoTEDocument;
|
|
1227
|
+
//#endregion
|
|
1228
|
+
export { type JWKPublicKey, JWKPublicKeySchema, type ListAndSchemeInformation, ListAndSchemeInformationSchema, type LoTE, type LoTEDocument, LoTEDocumentSchema, LoTEException, type LoTEQualifier, LoTEQualifierSchema, LoTESchema, type LocalizedString, LocalizedStringSchema, type LocalizedURI, LocalizedURISchema, type OtherLoTEPointer, OtherLoTEPointerSchema, type PkiObject, PkiObjectSchema, type PointersToOtherLoTE, type PolicyOrLegalNotice, PolicyOrLegalNoticeSchema, type PostalAddress, PostalAddressSchema, type SchemeExtensions, type SchemeOperatorAddress, SchemeOperatorAddressSchema, ServiceBuilder, type ServiceDigitalIdentity, ServiceDigitalIdentitySchema, type ServiceHistory, type ServiceHistoryInstance, ServiceHistoryInstanceSchema, type ServiceInformation, type ServiceInformationExtensions, ServiceInformationSchema, type ServiceSupplyPoint, ServiceSupplyPointSchema, type SignOptions, type SignedLoTE, type TEInformationExtensions, type TrustedEntity, type TrustedEntityAddress, TrustedEntityAddressSchema, TrustedEntityBuilder, type TrustedEntityInformation, TrustedEntityInformationSchema, TrustedEntitySchema, type TrustedEntityService, TrustedEntityServiceSchema, type ValidationError, type ValidationResult, type X509CertificateRef, X509CertificateRefSchema, addTrustedEntity, assertValidLoTE, createLoTE, removeTrustedEntity, service, signLoTE, trustedEntity, updateLoTEVersion, validateLoTE };
|
|
1229
|
+
//# sourceMappingURL=index.d.mts.map
|