@learncard/types 5.2.8 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/crypto.d.ts +342 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +7 -0
- package/dist/lcn.d.ts +371 -0
- package/dist/learncard.d.ts +638 -0
- package/dist/learncloud.d.ts +515 -0
- package/dist/mongo.d.ts +23 -0
- package/dist/obv3.d.ts +18265 -0
- package/dist/types.cjs.development.js +4000 -0
- package/dist/types.cjs.development.js.map +7 -0
- package/dist/types.cjs.production.min.js +1 -0
- package/dist/types.cjs.production.min.js.map +7 -0
- package/dist/types.esm.js +539 -0
- package/dist/types.esm.js.map +7 -0
- package/dist/vc.d.ts +4108 -0
- package/dist/wasm.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const VerificationCheckValidator: z.ZodObject<{
|
|
3
|
+
checks: z.ZodArray<z.ZodString, "many">;
|
|
4
|
+
warnings: z.ZodArray<z.ZodString, "many">;
|
|
5
|
+
errors: z.ZodArray<z.ZodString, "many">;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
checks: string[];
|
|
8
|
+
warnings: string[];
|
|
9
|
+
errors: string[];
|
|
10
|
+
}, {
|
|
11
|
+
checks: string[];
|
|
12
|
+
warnings: string[];
|
|
13
|
+
errors: string[];
|
|
14
|
+
}>;
|
|
15
|
+
export type VerificationCheck = z.infer<typeof VerificationCheckValidator>;
|
|
16
|
+
export declare const VerificationStatusValidator: z.ZodEnum<["Success", "Failed", "Error"]>;
|
|
17
|
+
export type VerificationStatus = z.infer<typeof VerificationStatusValidator>;
|
|
18
|
+
export declare const VerificationStatusEnum: z.Values<["Success", "Failed", "Error"]>;
|
|
19
|
+
export declare const VerificationItemValidator: z.ZodObject<{
|
|
20
|
+
check: z.ZodString;
|
|
21
|
+
status: z.ZodEnum<["Success", "Failed", "Error"]>;
|
|
22
|
+
message: z.ZodOptional<z.ZodString>;
|
|
23
|
+
details: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
message?: string | undefined;
|
|
26
|
+
details?: string | undefined;
|
|
27
|
+
status: "Failed" | "Success" | "Error";
|
|
28
|
+
check: string;
|
|
29
|
+
}, {
|
|
30
|
+
message?: string | undefined;
|
|
31
|
+
details?: string | undefined;
|
|
32
|
+
status: "Failed" | "Success" | "Error";
|
|
33
|
+
check: string;
|
|
34
|
+
}>;
|
|
35
|
+
export type VerificationItem = z.infer<typeof VerificationItemValidator>;
|
|
36
|
+
export declare const CredentialInfoValidator: z.ZodObject<{
|
|
37
|
+
title: z.ZodOptional<z.ZodString>;
|
|
38
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
39
|
+
issuer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
40
|
+
id: z.ZodOptional<z.ZodString>;
|
|
41
|
+
type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
|
|
42
|
+
name: z.ZodOptional<z.ZodString>;
|
|
43
|
+
url: z.ZodOptional<z.ZodString>;
|
|
44
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
45
|
+
description: z.ZodOptional<z.ZodString>;
|
|
46
|
+
endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
47
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
type: z.ZodString;
|
|
50
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
caption?: string | undefined;
|
|
53
|
+
type: string;
|
|
54
|
+
id: string;
|
|
55
|
+
}, {
|
|
56
|
+
caption?: string | undefined;
|
|
57
|
+
type: string;
|
|
58
|
+
id: string;
|
|
59
|
+
}>]>>;
|
|
60
|
+
email: z.ZodOptional<z.ZodString>;
|
|
61
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
type: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
|
|
63
|
+
addressCountry: z.ZodOptional<z.ZodString>;
|
|
64
|
+
addressCountryCode: z.ZodOptional<z.ZodString>;
|
|
65
|
+
addressRegion: z.ZodOptional<z.ZodString>;
|
|
66
|
+
addressLocality: z.ZodOptional<z.ZodString>;
|
|
67
|
+
streetAddress: z.ZodOptional<z.ZodString>;
|
|
68
|
+
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
|
69
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
70
|
+
geo: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
type: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
|
|
72
|
+
latitude: z.ZodNumber;
|
|
73
|
+
longitude: z.ZodNumber;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
type: string | [string, ...string[]];
|
|
76
|
+
latitude: number;
|
|
77
|
+
longitude: number;
|
|
78
|
+
}, {
|
|
79
|
+
type: string | [string, ...string[]];
|
|
80
|
+
latitude: number;
|
|
81
|
+
longitude: number;
|
|
82
|
+
}>>;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
addressCountry?: string | undefined;
|
|
85
|
+
addressCountryCode?: string | undefined;
|
|
86
|
+
addressRegion?: string | undefined;
|
|
87
|
+
addressLocality?: string | undefined;
|
|
88
|
+
streetAddress?: string | undefined;
|
|
89
|
+
postOfficeBoxNumber?: string | undefined;
|
|
90
|
+
postalCode?: string | undefined;
|
|
91
|
+
geo?: {
|
|
92
|
+
type: string | [string, ...string[]];
|
|
93
|
+
latitude: number;
|
|
94
|
+
longitude: number;
|
|
95
|
+
} | undefined;
|
|
96
|
+
type: string | [string, ...string[]];
|
|
97
|
+
}, {
|
|
98
|
+
addressCountry?: string | undefined;
|
|
99
|
+
addressCountryCode?: string | undefined;
|
|
100
|
+
addressRegion?: string | undefined;
|
|
101
|
+
addressLocality?: string | undefined;
|
|
102
|
+
streetAddress?: string | undefined;
|
|
103
|
+
postOfficeBoxNumber?: string | undefined;
|
|
104
|
+
postalCode?: string | undefined;
|
|
105
|
+
geo?: {
|
|
106
|
+
type: string | [string, ...string[]];
|
|
107
|
+
latitude: number;
|
|
108
|
+
longitude: number;
|
|
109
|
+
} | undefined;
|
|
110
|
+
type: string | [string, ...string[]];
|
|
111
|
+
}>>;
|
|
112
|
+
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
+
type: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
|
|
114
|
+
identifier: z.ZodString;
|
|
115
|
+
identifierType: z.ZodUnion<[z.ZodEnum<["sourcedId", "systemId", "productId", "userName", "accountId", "emailAddress", "nationalIdentityNumber", "isbn", "issn", "lisSourcedId", "oneRosterSourcedId", "sisSourcedId", "ltiContextId", "ltiDeploymentId", "ltiToolId", "ltiPlatformId", "ltiUserId", "identifier"]>, z.ZodString]>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
type: string | [string, ...string[]];
|
|
118
|
+
identifier: string;
|
|
119
|
+
identifierType: string;
|
|
120
|
+
}, {
|
|
121
|
+
type: string | [string, ...string[]];
|
|
122
|
+
identifier: string;
|
|
123
|
+
identifierType: string;
|
|
124
|
+
}>, "many">>;
|
|
125
|
+
official: z.ZodOptional<z.ZodString>;
|
|
126
|
+
parentOrg: z.ZodOptional<z.ZodAny>;
|
|
127
|
+
familyName: z.ZodOptional<z.ZodString>;
|
|
128
|
+
givenName: z.ZodOptional<z.ZodString>;
|
|
129
|
+
additionalName: z.ZodOptional<z.ZodString>;
|
|
130
|
+
patronymicName: z.ZodOptional<z.ZodString>;
|
|
131
|
+
honorificPrefix: z.ZodOptional<z.ZodString>;
|
|
132
|
+
honorificSuffix: z.ZodOptional<z.ZodString>;
|
|
133
|
+
familyNamePrefix: z.ZodOptional<z.ZodString>;
|
|
134
|
+
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, "strip", z.ZodAny, {
|
|
136
|
+
[x: string]: any;
|
|
137
|
+
type?: string | [string, ...string[]] | undefined;
|
|
138
|
+
id?: string | undefined;
|
|
139
|
+
name?: string | undefined;
|
|
140
|
+
url?: string | undefined;
|
|
141
|
+
phone?: string | undefined;
|
|
142
|
+
description?: string | undefined;
|
|
143
|
+
endorsement?: any[] | undefined;
|
|
144
|
+
image?: string | {
|
|
145
|
+
caption?: string | undefined;
|
|
146
|
+
type: string;
|
|
147
|
+
id: string;
|
|
148
|
+
} | undefined;
|
|
149
|
+
email?: string | undefined;
|
|
150
|
+
address?: {
|
|
151
|
+
addressCountry?: string | undefined;
|
|
152
|
+
addressCountryCode?: string | undefined;
|
|
153
|
+
addressRegion?: string | undefined;
|
|
154
|
+
addressLocality?: string | undefined;
|
|
155
|
+
streetAddress?: string | undefined;
|
|
156
|
+
postOfficeBoxNumber?: string | undefined;
|
|
157
|
+
postalCode?: string | undefined;
|
|
158
|
+
geo?: {
|
|
159
|
+
type: string | [string, ...string[]];
|
|
160
|
+
latitude: number;
|
|
161
|
+
longitude: number;
|
|
162
|
+
} | undefined;
|
|
163
|
+
type: string | [string, ...string[]];
|
|
164
|
+
} | undefined;
|
|
165
|
+
otherIdentifier?: {
|
|
166
|
+
type: string | [string, ...string[]];
|
|
167
|
+
identifier: string;
|
|
168
|
+
identifierType: string;
|
|
169
|
+
}[] | undefined;
|
|
170
|
+
official?: string | undefined;
|
|
171
|
+
parentOrg?: any;
|
|
172
|
+
familyName?: string | undefined;
|
|
173
|
+
givenName?: string | undefined;
|
|
174
|
+
additionalName?: string | undefined;
|
|
175
|
+
patronymicName?: string | undefined;
|
|
176
|
+
honorificPrefix?: string | undefined;
|
|
177
|
+
honorificSuffix?: string | undefined;
|
|
178
|
+
familyNamePrefix?: string | undefined;
|
|
179
|
+
dateOfBirth?: string | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
[x: string]: any;
|
|
182
|
+
type?: string | [string, ...string[]] | undefined;
|
|
183
|
+
id?: string | undefined;
|
|
184
|
+
name?: string | undefined;
|
|
185
|
+
url?: string | undefined;
|
|
186
|
+
phone?: string | undefined;
|
|
187
|
+
description?: string | undefined;
|
|
188
|
+
endorsement?: any[] | undefined;
|
|
189
|
+
image?: string | {
|
|
190
|
+
caption?: string | undefined;
|
|
191
|
+
type: string;
|
|
192
|
+
id: string;
|
|
193
|
+
} | undefined;
|
|
194
|
+
email?: string | undefined;
|
|
195
|
+
address?: {
|
|
196
|
+
addressCountry?: string | undefined;
|
|
197
|
+
addressCountryCode?: string | undefined;
|
|
198
|
+
addressRegion?: string | undefined;
|
|
199
|
+
addressLocality?: string | undefined;
|
|
200
|
+
streetAddress?: string | undefined;
|
|
201
|
+
postOfficeBoxNumber?: string | undefined;
|
|
202
|
+
postalCode?: string | undefined;
|
|
203
|
+
geo?: {
|
|
204
|
+
type: string | [string, ...string[]];
|
|
205
|
+
latitude: number;
|
|
206
|
+
longitude: number;
|
|
207
|
+
} | undefined;
|
|
208
|
+
type: string | [string, ...string[]];
|
|
209
|
+
} | undefined;
|
|
210
|
+
otherIdentifier?: {
|
|
211
|
+
type: string | [string, ...string[]];
|
|
212
|
+
identifier: string;
|
|
213
|
+
identifierType: string;
|
|
214
|
+
}[] | undefined;
|
|
215
|
+
official?: string | undefined;
|
|
216
|
+
parentOrg?: any;
|
|
217
|
+
familyName?: string | undefined;
|
|
218
|
+
givenName?: string | undefined;
|
|
219
|
+
additionalName?: string | undefined;
|
|
220
|
+
patronymicName?: string | undefined;
|
|
221
|
+
honorificPrefix?: string | undefined;
|
|
222
|
+
honorificSuffix?: string | undefined;
|
|
223
|
+
familyNamePrefix?: string | undefined;
|
|
224
|
+
dateOfBirth?: string | undefined;
|
|
225
|
+
}>]>>;
|
|
226
|
+
issuee: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
227
|
+
id: z.ZodOptional<z.ZodString>;
|
|
228
|
+
type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
|
|
229
|
+
name: z.ZodOptional<z.ZodString>;
|
|
230
|
+
url: z.ZodOptional<z.ZodString>;
|
|
231
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
232
|
+
description: z.ZodOptional<z.ZodString>;
|
|
233
|
+
endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
234
|
+
image: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
235
|
+
id: z.ZodString;
|
|
236
|
+
type: z.ZodString;
|
|
237
|
+
caption: z.ZodOptional<z.ZodString>;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
caption?: string | undefined;
|
|
240
|
+
type: string;
|
|
241
|
+
id: string;
|
|
242
|
+
}, {
|
|
243
|
+
caption?: string | undefined;
|
|
244
|
+
type: string;
|
|
245
|
+
id: string;
|
|
246
|
+
}>]>>;
|
|
247
|
+
email: z.ZodOptional<z.ZodString>;
|
|
248
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
type: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
|
|
250
|
+
addressCountry: z.ZodOptional<z.ZodString>;
|
|
251
|
+
addressCountryCode: z.ZodOptional<z.ZodString>;
|
|
252
|
+
addressRegion: z.ZodOptional<z.ZodString>;
|
|
253
|
+
addressLocality: z.ZodOptional<z.ZodString>;
|
|
254
|
+
streetAddress: z.ZodOptional<z.ZodString>;
|
|
255
|
+
postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
|
|
256
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
257
|
+
geo: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
type: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
|
|
259
|
+
latitude: z.ZodNumber;
|
|
260
|
+
longitude: z.ZodNumber;
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
type: string | [string, ...string[]];
|
|
263
|
+
latitude: number;
|
|
264
|
+
longitude: number;
|
|
265
|
+
}, {
|
|
266
|
+
type: string | [string, ...string[]];
|
|
267
|
+
latitude: number;
|
|
268
|
+
longitude: number;
|
|
269
|
+
}>>;
|
|
270
|
+
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
addressCountry?: string | undefined;
|
|
272
|
+
addressCountryCode?: string | undefined;
|
|
273
|
+
addressRegion?: string | undefined;
|
|
274
|
+
addressLocality?: string | undefined;
|
|
275
|
+
streetAddress?: string | undefined;
|
|
276
|
+
postOfficeBoxNumber?: string | undefined;
|
|
277
|
+
postalCode?: string | undefined;
|
|
278
|
+
geo?: {
|
|
279
|
+
type: string | [string, ...string[]];
|
|
280
|
+
latitude: number;
|
|
281
|
+
longitude: number;
|
|
282
|
+
} | undefined;
|
|
283
|
+
type: string | [string, ...string[]];
|
|
284
|
+
}, {
|
|
285
|
+
addressCountry?: string | undefined;
|
|
286
|
+
addressCountryCode?: string | undefined;
|
|
287
|
+
addressRegion?: string | undefined;
|
|
288
|
+
addressLocality?: string | undefined;
|
|
289
|
+
streetAddress?: string | undefined;
|
|
290
|
+
postOfficeBoxNumber?: string | undefined;
|
|
291
|
+
postalCode?: string | undefined;
|
|
292
|
+
geo?: {
|
|
293
|
+
type: string | [string, ...string[]];
|
|
294
|
+
latitude: number;
|
|
295
|
+
longitude: number;
|
|
296
|
+
} | undefined;
|
|
297
|
+
type: string | [string, ...string[]];
|
|
298
|
+
}>>;
|
|
299
|
+
otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
300
|
+
type: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "atleastone">]>;
|
|
301
|
+
identifier: z.ZodString;
|
|
302
|
+
identifierType: z.ZodUnion<[z.ZodEnum<["sourcedId", "systemId", "productId", "userName", "accountId", "emailAddress", "nationalIdentityNumber", "isbn", "issn", "lisSourcedId", "oneRosterSourcedId", "sisSourcedId", "ltiContextId", "ltiDeploymentId", "ltiToolId", "ltiPlatformId", "ltiUserId", "identifier"]>, z.ZodString]>;
|
|
303
|
+
}, "strip", z.ZodTypeAny, {
|
|
304
|
+
type: string | [string, ...string[]];
|
|
305
|
+
identifier: string;
|
|
306
|
+
identifierType: string;
|
|
307
|
+
}, {
|
|
308
|
+
type: string | [string, ...string[]];
|
|
309
|
+
identifier: string;
|
|
310
|
+
identifierType: string;
|
|
311
|
+
}>, "many">>;
|
|
312
|
+
official: z.ZodOptional<z.ZodString>;
|
|
313
|
+
parentOrg: z.ZodOptional<z.ZodAny>;
|
|
314
|
+
familyName: z.ZodOptional<z.ZodString>;
|
|
315
|
+
givenName: z.ZodOptional<z.ZodString>;
|
|
316
|
+
additionalName: z.ZodOptional<z.ZodString>;
|
|
317
|
+
patronymicName: z.ZodOptional<z.ZodString>;
|
|
318
|
+
honorificPrefix: z.ZodOptional<z.ZodString>;
|
|
319
|
+
honorificSuffix: z.ZodOptional<z.ZodString>;
|
|
320
|
+
familyNamePrefix: z.ZodOptional<z.ZodString>;
|
|
321
|
+
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
322
|
+
}, "strip", z.ZodAny, {
|
|
323
|
+
[x: string]: any;
|
|
324
|
+
type?: string | [string, ...string[]] | undefined;
|
|
325
|
+
id?: string | undefined;
|
|
326
|
+
name?: string | undefined;
|
|
327
|
+
url?: string | undefined;
|
|
328
|
+
phone?: string | undefined;
|
|
329
|
+
description?: string | undefined;
|
|
330
|
+
endorsement?: any[] | undefined;
|
|
331
|
+
image?: string | {
|
|
332
|
+
caption?: string | undefined;
|
|
333
|
+
type: string;
|
|
334
|
+
id: string;
|
|
335
|
+
} | undefined;
|
|
336
|
+
email?: string | undefined;
|
|
337
|
+
address?: {
|
|
338
|
+
addressCountry?: string | undefined;
|
|
339
|
+
addressCountryCode?: string | undefined;
|
|
340
|
+
addressRegion?: string | undefined;
|
|
341
|
+
addressLocality?: string | undefined;
|
|
342
|
+
streetAddress?: string | undefined;
|
|
343
|
+
postOfficeBoxNumber?: string | undefined;
|
|
344
|
+
postalCode?: string | undefined;
|
|
345
|
+
geo?: {
|
|
346
|
+
type: string | [string, ...string[]];
|
|
347
|
+
latitude: number;
|
|
348
|
+
longitude: number;
|
|
349
|
+
} | undefined;
|
|
350
|
+
type: string | [string, ...string[]];
|
|
351
|
+
} | undefined;
|
|
352
|
+
otherIdentifier?: {
|
|
353
|
+
type: string | [string, ...string[]];
|
|
354
|
+
identifier: string;
|
|
355
|
+
identifierType: string;
|
|
356
|
+
}[] | undefined;
|
|
357
|
+
official?: string | undefined;
|
|
358
|
+
parentOrg?: any;
|
|
359
|
+
familyName?: string | undefined;
|
|
360
|
+
givenName?: string | undefined;
|
|
361
|
+
additionalName?: string | undefined;
|
|
362
|
+
patronymicName?: string | undefined;
|
|
363
|
+
honorificPrefix?: string | undefined;
|
|
364
|
+
honorificSuffix?: string | undefined;
|
|
365
|
+
familyNamePrefix?: string | undefined;
|
|
366
|
+
dateOfBirth?: string | undefined;
|
|
367
|
+
}, {
|
|
368
|
+
[x: string]: any;
|
|
369
|
+
type?: string | [string, ...string[]] | undefined;
|
|
370
|
+
id?: string | undefined;
|
|
371
|
+
name?: string | undefined;
|
|
372
|
+
url?: string | undefined;
|
|
373
|
+
phone?: string | undefined;
|
|
374
|
+
description?: string | undefined;
|
|
375
|
+
endorsement?: any[] | undefined;
|
|
376
|
+
image?: string | {
|
|
377
|
+
caption?: string | undefined;
|
|
378
|
+
type: string;
|
|
379
|
+
id: string;
|
|
380
|
+
} | undefined;
|
|
381
|
+
email?: string | undefined;
|
|
382
|
+
address?: {
|
|
383
|
+
addressCountry?: string | undefined;
|
|
384
|
+
addressCountryCode?: string | undefined;
|
|
385
|
+
addressRegion?: string | undefined;
|
|
386
|
+
addressLocality?: string | undefined;
|
|
387
|
+
streetAddress?: string | undefined;
|
|
388
|
+
postOfficeBoxNumber?: string | undefined;
|
|
389
|
+
postalCode?: string | undefined;
|
|
390
|
+
geo?: {
|
|
391
|
+
type: string | [string, ...string[]];
|
|
392
|
+
latitude: number;
|
|
393
|
+
longitude: number;
|
|
394
|
+
} | undefined;
|
|
395
|
+
type: string | [string, ...string[]];
|
|
396
|
+
} | undefined;
|
|
397
|
+
otherIdentifier?: {
|
|
398
|
+
type: string | [string, ...string[]];
|
|
399
|
+
identifier: string;
|
|
400
|
+
identifierType: string;
|
|
401
|
+
}[] | undefined;
|
|
402
|
+
official?: string | undefined;
|
|
403
|
+
parentOrg?: any;
|
|
404
|
+
familyName?: string | undefined;
|
|
405
|
+
givenName?: string | undefined;
|
|
406
|
+
additionalName?: string | undefined;
|
|
407
|
+
patronymicName?: string | undefined;
|
|
408
|
+
honorificPrefix?: string | undefined;
|
|
409
|
+
honorificSuffix?: string | undefined;
|
|
410
|
+
familyNamePrefix?: string | undefined;
|
|
411
|
+
dateOfBirth?: string | undefined;
|
|
412
|
+
}>]>>;
|
|
413
|
+
credentialSubject: z.ZodOptional<z.ZodObject<{
|
|
414
|
+
id: z.ZodOptional<z.ZodString>;
|
|
415
|
+
}, "strip", z.ZodAny, {
|
|
416
|
+
[x: string]: any;
|
|
417
|
+
id?: string | undefined;
|
|
418
|
+
}, {
|
|
419
|
+
[x: string]: any;
|
|
420
|
+
id?: string | undefined;
|
|
421
|
+
}>>;
|
|
422
|
+
}, "strip", z.ZodTypeAny, {
|
|
423
|
+
issuer?: string | {
|
|
424
|
+
[x: string]: any;
|
|
425
|
+
type?: string | [string, ...string[]] | undefined;
|
|
426
|
+
id?: string | undefined;
|
|
427
|
+
name?: string | undefined;
|
|
428
|
+
url?: string | undefined;
|
|
429
|
+
phone?: string | undefined;
|
|
430
|
+
description?: string | undefined;
|
|
431
|
+
endorsement?: any[] | undefined;
|
|
432
|
+
image?: string | {
|
|
433
|
+
caption?: string | undefined;
|
|
434
|
+
type: string;
|
|
435
|
+
id: string;
|
|
436
|
+
} | undefined;
|
|
437
|
+
email?: string | undefined;
|
|
438
|
+
address?: {
|
|
439
|
+
addressCountry?: string | undefined;
|
|
440
|
+
addressCountryCode?: string | undefined;
|
|
441
|
+
addressRegion?: string | undefined;
|
|
442
|
+
addressLocality?: string | undefined;
|
|
443
|
+
streetAddress?: string | undefined;
|
|
444
|
+
postOfficeBoxNumber?: string | undefined;
|
|
445
|
+
postalCode?: string | undefined;
|
|
446
|
+
geo?: {
|
|
447
|
+
type: string | [string, ...string[]];
|
|
448
|
+
latitude: number;
|
|
449
|
+
longitude: number;
|
|
450
|
+
} | undefined;
|
|
451
|
+
type: string | [string, ...string[]];
|
|
452
|
+
} | undefined;
|
|
453
|
+
otherIdentifier?: {
|
|
454
|
+
type: string | [string, ...string[]];
|
|
455
|
+
identifier: string;
|
|
456
|
+
identifierType: string;
|
|
457
|
+
}[] | undefined;
|
|
458
|
+
official?: string | undefined;
|
|
459
|
+
parentOrg?: any;
|
|
460
|
+
familyName?: string | undefined;
|
|
461
|
+
givenName?: string | undefined;
|
|
462
|
+
additionalName?: string | undefined;
|
|
463
|
+
patronymicName?: string | undefined;
|
|
464
|
+
honorificPrefix?: string | undefined;
|
|
465
|
+
honorificSuffix?: string | undefined;
|
|
466
|
+
familyNamePrefix?: string | undefined;
|
|
467
|
+
dateOfBirth?: string | undefined;
|
|
468
|
+
} | undefined;
|
|
469
|
+
credentialSubject?: {
|
|
470
|
+
[x: string]: any;
|
|
471
|
+
id?: string | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
title?: string | undefined;
|
|
474
|
+
createdAt?: string | undefined;
|
|
475
|
+
issuee?: string | {
|
|
476
|
+
[x: string]: any;
|
|
477
|
+
type?: string | [string, ...string[]] | undefined;
|
|
478
|
+
id?: string | undefined;
|
|
479
|
+
name?: string | undefined;
|
|
480
|
+
url?: string | undefined;
|
|
481
|
+
phone?: string | undefined;
|
|
482
|
+
description?: string | undefined;
|
|
483
|
+
endorsement?: any[] | undefined;
|
|
484
|
+
image?: string | {
|
|
485
|
+
caption?: string | undefined;
|
|
486
|
+
type: string;
|
|
487
|
+
id: string;
|
|
488
|
+
} | undefined;
|
|
489
|
+
email?: string | undefined;
|
|
490
|
+
address?: {
|
|
491
|
+
addressCountry?: string | undefined;
|
|
492
|
+
addressCountryCode?: string | undefined;
|
|
493
|
+
addressRegion?: string | undefined;
|
|
494
|
+
addressLocality?: string | undefined;
|
|
495
|
+
streetAddress?: string | undefined;
|
|
496
|
+
postOfficeBoxNumber?: string | undefined;
|
|
497
|
+
postalCode?: string | undefined;
|
|
498
|
+
geo?: {
|
|
499
|
+
type: string | [string, ...string[]];
|
|
500
|
+
latitude: number;
|
|
501
|
+
longitude: number;
|
|
502
|
+
} | undefined;
|
|
503
|
+
type: string | [string, ...string[]];
|
|
504
|
+
} | undefined;
|
|
505
|
+
otherIdentifier?: {
|
|
506
|
+
type: string | [string, ...string[]];
|
|
507
|
+
identifier: string;
|
|
508
|
+
identifierType: string;
|
|
509
|
+
}[] | undefined;
|
|
510
|
+
official?: string | undefined;
|
|
511
|
+
parentOrg?: any;
|
|
512
|
+
familyName?: string | undefined;
|
|
513
|
+
givenName?: string | undefined;
|
|
514
|
+
additionalName?: string | undefined;
|
|
515
|
+
patronymicName?: string | undefined;
|
|
516
|
+
honorificPrefix?: string | undefined;
|
|
517
|
+
honorificSuffix?: string | undefined;
|
|
518
|
+
familyNamePrefix?: string | undefined;
|
|
519
|
+
dateOfBirth?: string | undefined;
|
|
520
|
+
} | undefined;
|
|
521
|
+
}, {
|
|
522
|
+
issuer?: string | {
|
|
523
|
+
[x: string]: any;
|
|
524
|
+
type?: string | [string, ...string[]] | undefined;
|
|
525
|
+
id?: string | undefined;
|
|
526
|
+
name?: string | undefined;
|
|
527
|
+
url?: string | undefined;
|
|
528
|
+
phone?: string | undefined;
|
|
529
|
+
description?: string | undefined;
|
|
530
|
+
endorsement?: any[] | undefined;
|
|
531
|
+
image?: string | {
|
|
532
|
+
caption?: string | undefined;
|
|
533
|
+
type: string;
|
|
534
|
+
id: string;
|
|
535
|
+
} | undefined;
|
|
536
|
+
email?: string | undefined;
|
|
537
|
+
address?: {
|
|
538
|
+
addressCountry?: string | undefined;
|
|
539
|
+
addressCountryCode?: string | undefined;
|
|
540
|
+
addressRegion?: string | undefined;
|
|
541
|
+
addressLocality?: string | undefined;
|
|
542
|
+
streetAddress?: string | undefined;
|
|
543
|
+
postOfficeBoxNumber?: string | undefined;
|
|
544
|
+
postalCode?: string | undefined;
|
|
545
|
+
geo?: {
|
|
546
|
+
type: string | [string, ...string[]];
|
|
547
|
+
latitude: number;
|
|
548
|
+
longitude: number;
|
|
549
|
+
} | undefined;
|
|
550
|
+
type: string | [string, ...string[]];
|
|
551
|
+
} | undefined;
|
|
552
|
+
otherIdentifier?: {
|
|
553
|
+
type: string | [string, ...string[]];
|
|
554
|
+
identifier: string;
|
|
555
|
+
identifierType: string;
|
|
556
|
+
}[] | undefined;
|
|
557
|
+
official?: string | undefined;
|
|
558
|
+
parentOrg?: any;
|
|
559
|
+
familyName?: string | undefined;
|
|
560
|
+
givenName?: string | undefined;
|
|
561
|
+
additionalName?: string | undefined;
|
|
562
|
+
patronymicName?: string | undefined;
|
|
563
|
+
honorificPrefix?: string | undefined;
|
|
564
|
+
honorificSuffix?: string | undefined;
|
|
565
|
+
familyNamePrefix?: string | undefined;
|
|
566
|
+
dateOfBirth?: string | undefined;
|
|
567
|
+
} | undefined;
|
|
568
|
+
credentialSubject?: {
|
|
569
|
+
[x: string]: any;
|
|
570
|
+
id?: string | undefined;
|
|
571
|
+
} | undefined;
|
|
572
|
+
title?: string | undefined;
|
|
573
|
+
createdAt?: string | undefined;
|
|
574
|
+
issuee?: string | {
|
|
575
|
+
[x: string]: any;
|
|
576
|
+
type?: string | [string, ...string[]] | undefined;
|
|
577
|
+
id?: string | undefined;
|
|
578
|
+
name?: string | undefined;
|
|
579
|
+
url?: string | undefined;
|
|
580
|
+
phone?: string | undefined;
|
|
581
|
+
description?: string | undefined;
|
|
582
|
+
endorsement?: any[] | undefined;
|
|
583
|
+
image?: string | {
|
|
584
|
+
caption?: string | undefined;
|
|
585
|
+
type: string;
|
|
586
|
+
id: string;
|
|
587
|
+
} | undefined;
|
|
588
|
+
email?: string | undefined;
|
|
589
|
+
address?: {
|
|
590
|
+
addressCountry?: string | undefined;
|
|
591
|
+
addressCountryCode?: string | undefined;
|
|
592
|
+
addressRegion?: string | undefined;
|
|
593
|
+
addressLocality?: string | undefined;
|
|
594
|
+
streetAddress?: string | undefined;
|
|
595
|
+
postOfficeBoxNumber?: string | undefined;
|
|
596
|
+
postalCode?: string | undefined;
|
|
597
|
+
geo?: {
|
|
598
|
+
type: string | [string, ...string[]];
|
|
599
|
+
latitude: number;
|
|
600
|
+
longitude: number;
|
|
601
|
+
} | undefined;
|
|
602
|
+
type: string | [string, ...string[]];
|
|
603
|
+
} | undefined;
|
|
604
|
+
otherIdentifier?: {
|
|
605
|
+
type: string | [string, ...string[]];
|
|
606
|
+
identifier: string;
|
|
607
|
+
identifierType: string;
|
|
608
|
+
}[] | undefined;
|
|
609
|
+
official?: string | undefined;
|
|
610
|
+
parentOrg?: any;
|
|
611
|
+
familyName?: string | undefined;
|
|
612
|
+
givenName?: string | undefined;
|
|
613
|
+
additionalName?: string | undefined;
|
|
614
|
+
patronymicName?: string | undefined;
|
|
615
|
+
honorificPrefix?: string | undefined;
|
|
616
|
+
honorificSuffix?: string | undefined;
|
|
617
|
+
familyNamePrefix?: string | undefined;
|
|
618
|
+
dateOfBirth?: string | undefined;
|
|
619
|
+
} | undefined;
|
|
620
|
+
}>;
|
|
621
|
+
export type CredentialInfo = z.infer<typeof CredentialInfoValidator>;
|
|
622
|
+
export type CredentialRecord<Metadata extends Record<string, any> = Record<never, never>> = {
|
|
623
|
+
id: string;
|
|
624
|
+
uri: string;
|
|
625
|
+
[key: string]: any;
|
|
626
|
+
} & Metadata;
|
|
627
|
+
export declare const CredentialRecordValidator: z.ZodObject<{
|
|
628
|
+
id: z.ZodString;
|
|
629
|
+
uri: z.ZodString;
|
|
630
|
+
}, "strip", z.ZodAny, {
|
|
631
|
+
[x: string]: any;
|
|
632
|
+
id: string;
|
|
633
|
+
uri: string;
|
|
634
|
+
}, {
|
|
635
|
+
[x: string]: any;
|
|
636
|
+
id: string;
|
|
637
|
+
uri: string;
|
|
638
|
+
}>;
|