@learncard/types 5.1.1 → 5.2.1
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/crypto.d.ts +322 -1
- package/dist/index.d.ts +1 -0
- package/dist/lcn.d.ts +110 -0
- package/dist/learncard.d.ts +6 -10
- package/dist/obv3.d.ts +1321 -1484
- package/dist/types.cjs.development.js +65 -7
- package/dist/types.cjs.development.js.map +4 -4
- package/dist/types.cjs.production.min.js +1 -1
- package/dist/types.cjs.production.min.js.map +4 -4
- package/dist/types.esm.js +65 -7
- package/dist/types.esm.js.map +4 -4
- package/dist/vc.d.ts +41 -47
- package/package.json +4 -10
package/dist/crypto.d.ts
CHANGED
|
@@ -4,18 +4,339 @@ export declare const JWKValidator: z.ZodObject<{
|
|
|
4
4
|
crv: z.ZodString;
|
|
5
5
|
x: z.ZodString;
|
|
6
6
|
y: z.ZodOptional<z.ZodString>;
|
|
7
|
+
n: z.ZodOptional<z.ZodString>;
|
|
7
8
|
d: z.ZodString;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
9
10
|
y?: string | undefined;
|
|
11
|
+
n?: string | undefined;
|
|
10
12
|
kty: string;
|
|
11
13
|
crv: string;
|
|
12
14
|
x: string;
|
|
13
15
|
d: string;
|
|
14
16
|
}, {
|
|
15
17
|
y?: string | undefined;
|
|
18
|
+
n?: string | undefined;
|
|
16
19
|
kty: string;
|
|
17
20
|
crv: string;
|
|
18
21
|
x: string;
|
|
19
22
|
d: string;
|
|
20
23
|
}>;
|
|
21
|
-
export
|
|
24
|
+
export type JWK = z.infer<typeof JWKValidator>;
|
|
25
|
+
export declare const JWERecipientHeaderValidator: z.ZodObject<{
|
|
26
|
+
alg: z.ZodString;
|
|
27
|
+
iv: z.ZodString;
|
|
28
|
+
tag: z.ZodString;
|
|
29
|
+
epk: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
kty: z.ZodOptional<z.ZodString>;
|
|
31
|
+
crv: z.ZodOptional<z.ZodString>;
|
|
32
|
+
x: z.ZodOptional<z.ZodString>;
|
|
33
|
+
y: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
n: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
35
|
+
d: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
kty?: string | undefined;
|
|
38
|
+
crv?: string | undefined;
|
|
39
|
+
x?: string | undefined;
|
|
40
|
+
y?: string | undefined;
|
|
41
|
+
n?: string | undefined;
|
|
42
|
+
d?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
kty?: string | undefined;
|
|
45
|
+
crv?: string | undefined;
|
|
46
|
+
x?: string | undefined;
|
|
47
|
+
y?: string | undefined;
|
|
48
|
+
n?: string | undefined;
|
|
49
|
+
d?: string | undefined;
|
|
50
|
+
}>>;
|
|
51
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
52
|
+
apv: z.ZodOptional<z.ZodString>;
|
|
53
|
+
apu: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
epk?: {
|
|
56
|
+
kty?: string | undefined;
|
|
57
|
+
crv?: string | undefined;
|
|
58
|
+
x?: string | undefined;
|
|
59
|
+
y?: string | undefined;
|
|
60
|
+
n?: string | undefined;
|
|
61
|
+
d?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
kid?: string | undefined;
|
|
64
|
+
apv?: string | undefined;
|
|
65
|
+
apu?: string | undefined;
|
|
66
|
+
alg: string;
|
|
67
|
+
iv: string;
|
|
68
|
+
tag: string;
|
|
69
|
+
}, {
|
|
70
|
+
epk?: {
|
|
71
|
+
kty?: string | undefined;
|
|
72
|
+
crv?: string | undefined;
|
|
73
|
+
x?: string | undefined;
|
|
74
|
+
y?: string | undefined;
|
|
75
|
+
n?: string | undefined;
|
|
76
|
+
d?: string | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
kid?: string | undefined;
|
|
79
|
+
apv?: string | undefined;
|
|
80
|
+
apu?: string | undefined;
|
|
81
|
+
alg: string;
|
|
82
|
+
iv: string;
|
|
83
|
+
tag: string;
|
|
84
|
+
}>;
|
|
85
|
+
export type JWERecipientHeader = z.infer<typeof JWERecipientHeaderValidator>;
|
|
86
|
+
export declare const JWERecipientValidator: z.ZodObject<{
|
|
87
|
+
header: z.ZodObject<{
|
|
88
|
+
alg: z.ZodString;
|
|
89
|
+
iv: z.ZodString;
|
|
90
|
+
tag: z.ZodString;
|
|
91
|
+
epk: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
kty: z.ZodOptional<z.ZodString>;
|
|
93
|
+
crv: z.ZodOptional<z.ZodString>;
|
|
94
|
+
x: z.ZodOptional<z.ZodString>;
|
|
95
|
+
y: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
96
|
+
n: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
97
|
+
d: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
kty?: string | undefined;
|
|
100
|
+
crv?: string | undefined;
|
|
101
|
+
x?: string | undefined;
|
|
102
|
+
y?: string | undefined;
|
|
103
|
+
n?: string | undefined;
|
|
104
|
+
d?: string | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
kty?: string | undefined;
|
|
107
|
+
crv?: string | undefined;
|
|
108
|
+
x?: string | undefined;
|
|
109
|
+
y?: string | undefined;
|
|
110
|
+
n?: string | undefined;
|
|
111
|
+
d?: string | undefined;
|
|
112
|
+
}>>;
|
|
113
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
114
|
+
apv: z.ZodOptional<z.ZodString>;
|
|
115
|
+
apu: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
epk?: {
|
|
118
|
+
kty?: string | undefined;
|
|
119
|
+
crv?: string | undefined;
|
|
120
|
+
x?: string | undefined;
|
|
121
|
+
y?: string | undefined;
|
|
122
|
+
n?: string | undefined;
|
|
123
|
+
d?: string | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
kid?: string | undefined;
|
|
126
|
+
apv?: string | undefined;
|
|
127
|
+
apu?: string | undefined;
|
|
128
|
+
alg: string;
|
|
129
|
+
iv: string;
|
|
130
|
+
tag: string;
|
|
131
|
+
}, {
|
|
132
|
+
epk?: {
|
|
133
|
+
kty?: string | undefined;
|
|
134
|
+
crv?: string | undefined;
|
|
135
|
+
x?: string | undefined;
|
|
136
|
+
y?: string | undefined;
|
|
137
|
+
n?: string | undefined;
|
|
138
|
+
d?: string | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
kid?: string | undefined;
|
|
141
|
+
apv?: string | undefined;
|
|
142
|
+
apu?: string | undefined;
|
|
143
|
+
alg: string;
|
|
144
|
+
iv: string;
|
|
145
|
+
tag: string;
|
|
146
|
+
}>;
|
|
147
|
+
encrypted_key: z.ZodString;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
header: {
|
|
150
|
+
epk?: {
|
|
151
|
+
kty?: string | undefined;
|
|
152
|
+
crv?: string | undefined;
|
|
153
|
+
x?: string | undefined;
|
|
154
|
+
y?: string | undefined;
|
|
155
|
+
n?: string | undefined;
|
|
156
|
+
d?: string | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
kid?: string | undefined;
|
|
159
|
+
apv?: string | undefined;
|
|
160
|
+
apu?: string | undefined;
|
|
161
|
+
alg: string;
|
|
162
|
+
iv: string;
|
|
163
|
+
tag: string;
|
|
164
|
+
};
|
|
165
|
+
encrypted_key: string;
|
|
166
|
+
}, {
|
|
167
|
+
header: {
|
|
168
|
+
epk?: {
|
|
169
|
+
kty?: string | undefined;
|
|
170
|
+
crv?: string | undefined;
|
|
171
|
+
x?: string | undefined;
|
|
172
|
+
y?: string | undefined;
|
|
173
|
+
n?: string | undefined;
|
|
174
|
+
d?: string | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
kid?: string | undefined;
|
|
177
|
+
apv?: string | undefined;
|
|
178
|
+
apu?: string | undefined;
|
|
179
|
+
alg: string;
|
|
180
|
+
iv: string;
|
|
181
|
+
tag: string;
|
|
182
|
+
};
|
|
183
|
+
encrypted_key: string;
|
|
184
|
+
}>;
|
|
185
|
+
export type JWERecipient = z.infer<typeof JWERecipientValidator>;
|
|
186
|
+
export declare const JWEValidator: z.ZodObject<{
|
|
187
|
+
protected: z.ZodString;
|
|
188
|
+
iv: z.ZodString;
|
|
189
|
+
ciphertext: z.ZodString;
|
|
190
|
+
tag: z.ZodString;
|
|
191
|
+
aad: z.ZodOptional<z.ZodString>;
|
|
192
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
|
+
header: z.ZodObject<{
|
|
194
|
+
alg: z.ZodString;
|
|
195
|
+
iv: z.ZodString;
|
|
196
|
+
tag: z.ZodString;
|
|
197
|
+
epk: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
kty: z.ZodOptional<z.ZodString>;
|
|
199
|
+
crv: z.ZodOptional<z.ZodString>;
|
|
200
|
+
x: z.ZodOptional<z.ZodString>;
|
|
201
|
+
y: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
202
|
+
n: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
203
|
+
d: z.ZodOptional<z.ZodString>;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
kty?: string | undefined;
|
|
206
|
+
crv?: string | undefined;
|
|
207
|
+
x?: string | undefined;
|
|
208
|
+
y?: string | undefined;
|
|
209
|
+
n?: string | undefined;
|
|
210
|
+
d?: string | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
kty?: string | undefined;
|
|
213
|
+
crv?: string | undefined;
|
|
214
|
+
x?: string | undefined;
|
|
215
|
+
y?: string | undefined;
|
|
216
|
+
n?: string | undefined;
|
|
217
|
+
d?: string | undefined;
|
|
218
|
+
}>>;
|
|
219
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
220
|
+
apv: z.ZodOptional<z.ZodString>;
|
|
221
|
+
apu: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
epk?: {
|
|
224
|
+
kty?: string | undefined;
|
|
225
|
+
crv?: string | undefined;
|
|
226
|
+
x?: string | undefined;
|
|
227
|
+
y?: string | undefined;
|
|
228
|
+
n?: string | undefined;
|
|
229
|
+
d?: string | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
kid?: string | undefined;
|
|
232
|
+
apv?: string | undefined;
|
|
233
|
+
apu?: string | undefined;
|
|
234
|
+
alg: string;
|
|
235
|
+
iv: string;
|
|
236
|
+
tag: string;
|
|
237
|
+
}, {
|
|
238
|
+
epk?: {
|
|
239
|
+
kty?: string | undefined;
|
|
240
|
+
crv?: string | undefined;
|
|
241
|
+
x?: string | undefined;
|
|
242
|
+
y?: string | undefined;
|
|
243
|
+
n?: string | undefined;
|
|
244
|
+
d?: string | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
kid?: string | undefined;
|
|
247
|
+
apv?: string | undefined;
|
|
248
|
+
apu?: string | undefined;
|
|
249
|
+
alg: string;
|
|
250
|
+
iv: string;
|
|
251
|
+
tag: string;
|
|
252
|
+
}>;
|
|
253
|
+
encrypted_key: z.ZodString;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
header: {
|
|
256
|
+
epk?: {
|
|
257
|
+
kty?: string | undefined;
|
|
258
|
+
crv?: string | undefined;
|
|
259
|
+
x?: string | undefined;
|
|
260
|
+
y?: string | undefined;
|
|
261
|
+
n?: string | undefined;
|
|
262
|
+
d?: string | undefined;
|
|
263
|
+
} | undefined;
|
|
264
|
+
kid?: string | undefined;
|
|
265
|
+
apv?: string | undefined;
|
|
266
|
+
apu?: string | undefined;
|
|
267
|
+
alg: string;
|
|
268
|
+
iv: string;
|
|
269
|
+
tag: string;
|
|
270
|
+
};
|
|
271
|
+
encrypted_key: string;
|
|
272
|
+
}, {
|
|
273
|
+
header: {
|
|
274
|
+
epk?: {
|
|
275
|
+
kty?: string | undefined;
|
|
276
|
+
crv?: string | undefined;
|
|
277
|
+
x?: string | undefined;
|
|
278
|
+
y?: string | undefined;
|
|
279
|
+
n?: string | undefined;
|
|
280
|
+
d?: string | undefined;
|
|
281
|
+
} | undefined;
|
|
282
|
+
kid?: string | undefined;
|
|
283
|
+
apv?: string | undefined;
|
|
284
|
+
apu?: string | undefined;
|
|
285
|
+
alg: string;
|
|
286
|
+
iv: string;
|
|
287
|
+
tag: string;
|
|
288
|
+
};
|
|
289
|
+
encrypted_key: string;
|
|
290
|
+
}>, "many">>;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
aad?: string | undefined;
|
|
293
|
+
recipients?: {
|
|
294
|
+
header: {
|
|
295
|
+
epk?: {
|
|
296
|
+
kty?: string | undefined;
|
|
297
|
+
crv?: string | undefined;
|
|
298
|
+
x?: string | undefined;
|
|
299
|
+
y?: string | undefined;
|
|
300
|
+
n?: string | undefined;
|
|
301
|
+
d?: string | undefined;
|
|
302
|
+
} | undefined;
|
|
303
|
+
kid?: string | undefined;
|
|
304
|
+
apv?: string | undefined;
|
|
305
|
+
apu?: string | undefined;
|
|
306
|
+
alg: string;
|
|
307
|
+
iv: string;
|
|
308
|
+
tag: string;
|
|
309
|
+
};
|
|
310
|
+
encrypted_key: string;
|
|
311
|
+
}[] | undefined;
|
|
312
|
+
iv: string;
|
|
313
|
+
tag: string;
|
|
314
|
+
protected: string;
|
|
315
|
+
ciphertext: string;
|
|
316
|
+
}, {
|
|
317
|
+
aad?: string | undefined;
|
|
318
|
+
recipients?: {
|
|
319
|
+
header: {
|
|
320
|
+
epk?: {
|
|
321
|
+
kty?: string | undefined;
|
|
322
|
+
crv?: string | undefined;
|
|
323
|
+
x?: string | undefined;
|
|
324
|
+
y?: string | undefined;
|
|
325
|
+
n?: string | undefined;
|
|
326
|
+
d?: string | undefined;
|
|
327
|
+
} | undefined;
|
|
328
|
+
kid?: string | undefined;
|
|
329
|
+
apv?: string | undefined;
|
|
330
|
+
apu?: string | undefined;
|
|
331
|
+
alg: string;
|
|
332
|
+
iv: string;
|
|
333
|
+
tag: string;
|
|
334
|
+
};
|
|
335
|
+
encrypted_key: string;
|
|
336
|
+
}[] | undefined;
|
|
337
|
+
iv: string;
|
|
338
|
+
tag: string;
|
|
339
|
+
protected: string;
|
|
340
|
+
ciphertext: string;
|
|
341
|
+
}>;
|
|
342
|
+
export type JWE = z.infer<typeof JWEValidator>;
|
package/dist/index.d.ts
CHANGED
package/dist/lcn.d.ts
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LCNProfileValidator: z.ZodObject<{
|
|
3
|
+
profileId: z.ZodString;
|
|
4
|
+
displayName: z.ZodDefault<z.ZodString>;
|
|
5
|
+
did: z.ZodString;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
image: z.ZodOptional<z.ZodString>;
|
|
8
|
+
isServiceProfile: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
image?: string | undefined;
|
|
11
|
+
email?: string | undefined;
|
|
12
|
+
isServiceProfile?: boolean | undefined;
|
|
13
|
+
profileId: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
did: string;
|
|
16
|
+
}, {
|
|
17
|
+
image?: string | undefined;
|
|
18
|
+
email?: string | undefined;
|
|
19
|
+
displayName?: string | undefined;
|
|
20
|
+
isServiceProfile?: boolean | undefined;
|
|
21
|
+
profileId: string;
|
|
22
|
+
did: string;
|
|
23
|
+
}>;
|
|
24
|
+
export type LCNProfile = z.infer<typeof LCNProfileValidator>;
|
|
25
|
+
export declare const SentCredentialInfoValidator: z.ZodObject<{
|
|
26
|
+
uri: z.ZodString;
|
|
27
|
+
to: z.ZodString;
|
|
28
|
+
from: z.ZodString;
|
|
29
|
+
sent: z.ZodString;
|
|
30
|
+
received: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
received?: string | undefined;
|
|
33
|
+
uri: string;
|
|
34
|
+
to: string;
|
|
35
|
+
from: string;
|
|
36
|
+
sent: string;
|
|
37
|
+
}, {
|
|
38
|
+
received?: string | undefined;
|
|
39
|
+
uri: string;
|
|
40
|
+
to: string;
|
|
41
|
+
from: string;
|
|
42
|
+
sent: string;
|
|
43
|
+
}>;
|
|
44
|
+
export type SentCredentialInfo = z.infer<typeof SentCredentialInfoValidator>;
|
|
45
|
+
export declare const BoostValidator: z.ZodObject<{
|
|
46
|
+
uri: z.ZodString;
|
|
47
|
+
name: z.ZodOptional<z.ZodString>;
|
|
48
|
+
type: z.ZodOptional<z.ZodString>;
|
|
49
|
+
category: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
type?: string | undefined;
|
|
52
|
+
name?: string | undefined;
|
|
53
|
+
category?: string | undefined;
|
|
54
|
+
uri: string;
|
|
55
|
+
}, {
|
|
56
|
+
type?: string | undefined;
|
|
57
|
+
name?: string | undefined;
|
|
58
|
+
category?: string | undefined;
|
|
59
|
+
uri: string;
|
|
60
|
+
}>;
|
|
61
|
+
export type Boost = z.infer<typeof BoostValidator>;
|
|
62
|
+
export declare const BoostRecipientValidator: z.ZodObject<{
|
|
63
|
+
to: z.ZodObject<{
|
|
64
|
+
profileId: z.ZodString;
|
|
65
|
+
displayName: z.ZodDefault<z.ZodString>;
|
|
66
|
+
did: z.ZodString;
|
|
67
|
+
email: z.ZodOptional<z.ZodString>;
|
|
68
|
+
image: z.ZodOptional<z.ZodString>;
|
|
69
|
+
isServiceProfile: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
image?: string | undefined;
|
|
72
|
+
email?: string | undefined;
|
|
73
|
+
isServiceProfile?: boolean | undefined;
|
|
74
|
+
profileId: string;
|
|
75
|
+
displayName: string;
|
|
76
|
+
did: string;
|
|
77
|
+
}, {
|
|
78
|
+
image?: string | undefined;
|
|
79
|
+
email?: string | undefined;
|
|
80
|
+
displayName?: string | undefined;
|
|
81
|
+
isServiceProfile?: boolean | undefined;
|
|
82
|
+
profileId: string;
|
|
83
|
+
did: string;
|
|
84
|
+
}>;
|
|
85
|
+
from: z.ZodString;
|
|
86
|
+
received: z.ZodString;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
received: string;
|
|
89
|
+
to: {
|
|
90
|
+
image?: string | undefined;
|
|
91
|
+
email?: string | undefined;
|
|
92
|
+
isServiceProfile?: boolean | undefined;
|
|
93
|
+
profileId: string;
|
|
94
|
+
displayName: string;
|
|
95
|
+
did: string;
|
|
96
|
+
};
|
|
97
|
+
from: string;
|
|
98
|
+
}, {
|
|
99
|
+
received: string;
|
|
100
|
+
to: {
|
|
101
|
+
image?: string | undefined;
|
|
102
|
+
email?: string | undefined;
|
|
103
|
+
displayName?: string | undefined;
|
|
104
|
+
isServiceProfile?: boolean | undefined;
|
|
105
|
+
profileId: string;
|
|
106
|
+
did: string;
|
|
107
|
+
};
|
|
108
|
+
from: string;
|
|
109
|
+
}>;
|
|
110
|
+
export type BoostRecipientInfo = z.infer<typeof BoostRecipientValidator>;
|
package/dist/learncard.d.ts
CHANGED
|
@@ -12,14 +12,10 @@ export declare const VerificationCheckValidator: z.ZodObject<{
|
|
|
12
12
|
warnings: string[];
|
|
13
13
|
errors: string[];
|
|
14
14
|
}>;
|
|
15
|
-
export
|
|
15
|
+
export type VerificationCheck = z.infer<typeof VerificationCheckValidator>;
|
|
16
16
|
export declare const VerificationStatusValidator: z.ZodEnum<["Success", "Failed", "Error"]>;
|
|
17
|
-
export
|
|
18
|
-
export declare const VerificationStatusEnum:
|
|
19
|
-
Failed: "Failed";
|
|
20
|
-
Success: "Success";
|
|
21
|
-
Error: "Error";
|
|
22
|
-
};
|
|
17
|
+
export type VerificationStatus = z.infer<typeof VerificationStatusValidator>;
|
|
18
|
+
export declare const VerificationStatusEnum: z.Values<["Success", "Failed", "Error"]>;
|
|
23
19
|
export declare const VerificationItemValidator: z.ZodObject<{
|
|
24
20
|
check: z.ZodString;
|
|
25
21
|
status: z.ZodEnum<["Success", "Failed", "Error"]>;
|
|
@@ -36,7 +32,7 @@ export declare const VerificationItemValidator: z.ZodObject<{
|
|
|
36
32
|
status: "Failed" | "Success" | "Error";
|
|
37
33
|
check: string;
|
|
38
34
|
}>;
|
|
39
|
-
export
|
|
35
|
+
export type VerificationItem = z.infer<typeof VerificationItemValidator>;
|
|
40
36
|
export declare const CredentialInfoValidator: z.ZodObject<{
|
|
41
37
|
title: z.ZodOptional<z.ZodString>;
|
|
42
38
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -622,8 +618,8 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
|
622
618
|
dateOfBirth?: string | undefined;
|
|
623
619
|
} | undefined;
|
|
624
620
|
}>;
|
|
625
|
-
export
|
|
626
|
-
export
|
|
621
|
+
export type CredentialInfo = z.infer<typeof CredentialInfoValidator>;
|
|
622
|
+
export type CredentialRecord<Metadata extends Record<string, any> = Record<never, never>> = {
|
|
627
623
|
id: string;
|
|
628
624
|
uri: string;
|
|
629
625
|
[key: string]: any;
|