@learncard/helpers 1.1.31 → 1.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/helpers.d.ts CHANGED
@@ -1,3595 +1,43 @@
1
1
  // Generated by dts-bundle-generator v6.13.0
2
2
 
3
3
  import { DataTransformer } from '@trpc/server';
4
+ import { Draft } from 'immer';
5
+ import { Dispatch, SetStateAction } from 'react';
6
+ import { DraftFunction, Updater } from 'use-immer';
4
7
 
5
8
  declare const UnsignedVCValidator: z.ZodObject<{
6
9
  "@context": z.ZodArray<z.ZodUnion<[
7
10
  z.ZodString,
8
11
  z.ZodRecord<z.ZodString, z.ZodAny>
9
- ]>, "many">;
10
- id: z.ZodOptional<z.ZodString>;
11
- type: z.ZodArray<z.ZodString, "atleastone">;
12
- issuer: z.ZodUnion<[
13
- z.ZodString,
14
- z.ZodObject<{
15
- id: z.ZodOptional<z.ZodString>;
16
- type: z.ZodUnion<[
17
- z.ZodString,
18
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
19
- ]>;
20
- name: z.ZodOptional<z.ZodString>;
21
- url: z.ZodOptional<z.ZodString>;
22
- phone: z.ZodOptional<z.ZodString>;
23
- description: z.ZodOptional<z.ZodString>;
24
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
25
- image: z.ZodOptional<z.ZodUnion<[
26
- z.ZodString,
27
- z.ZodObject<{
28
- id: z.ZodString;
29
- type: z.ZodString;
30
- caption: z.ZodOptional<z.ZodString>;
31
- }, "strip", z.ZodTypeAny, {
32
- type: string;
33
- id: string;
34
- caption?: string | undefined;
35
- }, {
36
- type: string;
37
- id: string;
38
- caption?: string | undefined;
39
- }>
40
- ]>>;
41
- email: z.ZodOptional<z.ZodString>;
42
- address: z.ZodOptional<z.ZodObject<{
43
- type: z.ZodUnion<[
44
- z.ZodString,
45
- z.ZodArray<z.ZodString, "atleastone">
46
- ]>;
47
- addressCountry: z.ZodOptional<z.ZodString>;
48
- addressCountryCode: z.ZodOptional<z.ZodString>;
49
- addressRegion: z.ZodOptional<z.ZodString>;
50
- addressLocality: z.ZodOptional<z.ZodString>;
51
- streetAddress: z.ZodOptional<z.ZodString>;
52
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
53
- postalCode: z.ZodOptional<z.ZodString>;
54
- geo: z.ZodOptional<z.ZodObject<{
55
- type: z.ZodUnion<[
56
- z.ZodString,
57
- z.ZodArray<z.ZodString, "atleastone">
58
- ]>;
59
- latitude: z.ZodNumber;
60
- longitude: z.ZodNumber;
61
- }, "strip", z.ZodTypeAny, {
62
- type: string | [
63
- string,
64
- ...string[]
65
- ];
66
- latitude: number;
67
- longitude: number;
68
- }, {
69
- type: string | [
70
- string,
71
- ...string[]
72
- ];
73
- latitude: number;
74
- longitude: number;
75
- }>>;
76
- }, "strip", z.ZodTypeAny, {
77
- type: string | [
78
- string,
79
- ...string[]
80
- ];
81
- addressCountry?: string | undefined;
82
- addressCountryCode?: string | undefined;
83
- addressRegion?: string | undefined;
84
- addressLocality?: string | undefined;
85
- streetAddress?: string | undefined;
86
- postOfficeBoxNumber?: string | undefined;
87
- postalCode?: string | undefined;
88
- geo?: {
89
- type: string | [
90
- string,
91
- ...string[]
92
- ];
93
- latitude: number;
94
- longitude: number;
95
- } | undefined;
96
- }, {
97
- type: string | [
98
- string,
99
- ...string[]
100
- ];
101
- addressCountry?: string | undefined;
102
- addressCountryCode?: string | undefined;
103
- addressRegion?: string | undefined;
104
- addressLocality?: string | undefined;
105
- streetAddress?: string | undefined;
106
- postOfficeBoxNumber?: string | undefined;
107
- postalCode?: string | undefined;
108
- geo?: {
109
- type: string | [
110
- string,
111
- ...string[]
112
- ];
113
- latitude: number;
114
- longitude: number;
115
- } | undefined;
116
- }>>;
117
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
- type: z.ZodUnion<[
119
- z.ZodString,
120
- z.ZodArray<z.ZodString, "atleastone">
121
- ]>;
122
- identifier: z.ZodString;
123
- identifierType: z.ZodUnion<[
124
- z.ZodEnum<[
125
- "sourcedId",
126
- "systemId",
127
- "productId",
128
- "userName",
129
- "accountId",
130
- "emailAddress",
131
- "nationalIdentityNumber",
132
- "isbn",
133
- "issn",
134
- "lisSourcedId",
135
- "oneRosterSourcedId",
136
- "sisSourcedId",
137
- "ltiContextId",
138
- "ltiDeploymentId",
139
- "ltiToolId",
140
- "ltiPlatformId",
141
- "ltiUserId",
142
- "identifier"
143
- ]>,
144
- z.ZodString
145
- ]>;
146
- }, "strip", z.ZodTypeAny, {
147
- type: string | [
148
- string,
149
- ...string[]
150
- ];
151
- identifier: string;
152
- identifierType: string;
153
- }, {
154
- type: string | [
155
- string,
156
- ...string[]
157
- ];
158
- identifier: string;
159
- identifierType: string;
160
- }>, "many">>;
161
- official: z.ZodOptional<z.ZodString>;
162
- parentOrg: z.ZodOptional<z.ZodAny>;
163
- familyName: z.ZodOptional<z.ZodString>;
164
- givenName: z.ZodOptional<z.ZodString>;
165
- additionalName: z.ZodOptional<z.ZodString>;
166
- patronymicName: z.ZodOptional<z.ZodString>;
167
- honorificPrefix: z.ZodOptional<z.ZodString>;
168
- honorificSuffix: z.ZodOptional<z.ZodString>;
169
- familyNamePrefix: z.ZodOptional<z.ZodString>;
170
- dateOfBirth: z.ZodOptional<z.ZodString>;
171
- }, "strip", z.ZodAny, z.objectOutputType<{
172
- id: z.ZodOptional<z.ZodString>;
173
- type: z.ZodUnion<[
174
- z.ZodString,
175
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
176
- ]>;
177
- name: z.ZodOptional<z.ZodString>;
178
- url: z.ZodOptional<z.ZodString>;
179
- phone: z.ZodOptional<z.ZodString>;
180
- description: z.ZodOptional<z.ZodString>;
181
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
182
- image: z.ZodOptional<z.ZodUnion<[
183
- z.ZodString,
184
- z.ZodObject<{
185
- id: z.ZodString;
186
- type: z.ZodString;
187
- caption: z.ZodOptional<z.ZodString>;
188
- }, "strip", z.ZodTypeAny, {
189
- type: string;
190
- id: string;
191
- caption?: string | undefined;
192
- }, {
193
- type: string;
194
- id: string;
195
- caption?: string | undefined;
196
- }>
197
- ]>>;
198
- email: z.ZodOptional<z.ZodString>;
199
- address: z.ZodOptional<z.ZodObject<{
200
- type: z.ZodUnion<[
201
- z.ZodString,
202
- z.ZodArray<z.ZodString, "atleastone">
203
- ]>;
204
- addressCountry: z.ZodOptional<z.ZodString>;
205
- addressCountryCode: z.ZodOptional<z.ZodString>;
206
- addressRegion: z.ZodOptional<z.ZodString>;
207
- addressLocality: z.ZodOptional<z.ZodString>;
208
- streetAddress: z.ZodOptional<z.ZodString>;
209
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
210
- postalCode: z.ZodOptional<z.ZodString>;
211
- geo: z.ZodOptional<z.ZodObject<{
212
- type: z.ZodUnion<[
213
- z.ZodString,
214
- z.ZodArray<z.ZodString, "atleastone">
215
- ]>;
216
- latitude: z.ZodNumber;
217
- longitude: z.ZodNumber;
218
- }, "strip", z.ZodTypeAny, {
219
- type: string | [
220
- string,
221
- ...string[]
222
- ];
223
- latitude: number;
224
- longitude: number;
225
- }, {
226
- type: string | [
227
- string,
228
- ...string[]
229
- ];
230
- latitude: number;
231
- longitude: number;
232
- }>>;
233
- }, "strip", z.ZodTypeAny, {
234
- type: string | [
235
- string,
236
- ...string[]
237
- ];
238
- addressCountry?: string | undefined;
239
- addressCountryCode?: string | undefined;
240
- addressRegion?: string | undefined;
241
- addressLocality?: string | undefined;
242
- streetAddress?: string | undefined;
243
- postOfficeBoxNumber?: string | undefined;
244
- postalCode?: string | undefined;
245
- geo?: {
246
- type: string | [
247
- string,
248
- ...string[]
249
- ];
250
- latitude: number;
251
- longitude: number;
252
- } | undefined;
253
- }, {
254
- type: string | [
255
- string,
256
- ...string[]
257
- ];
258
- addressCountry?: string | undefined;
259
- addressCountryCode?: string | undefined;
260
- addressRegion?: string | undefined;
261
- addressLocality?: string | undefined;
262
- streetAddress?: string | undefined;
263
- postOfficeBoxNumber?: string | undefined;
264
- postalCode?: string | undefined;
265
- geo?: {
266
- type: string | [
267
- string,
268
- ...string[]
269
- ];
270
- latitude: number;
271
- longitude: number;
272
- } | undefined;
273
- }>>;
274
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
275
- type: z.ZodUnion<[
276
- z.ZodString,
277
- z.ZodArray<z.ZodString, "atleastone">
278
- ]>;
279
- identifier: z.ZodString;
280
- identifierType: z.ZodUnion<[
281
- z.ZodEnum<[
282
- "sourcedId",
283
- "systemId",
284
- "productId",
285
- "userName",
286
- "accountId",
287
- "emailAddress",
288
- "nationalIdentityNumber",
289
- "isbn",
290
- "issn",
291
- "lisSourcedId",
292
- "oneRosterSourcedId",
293
- "sisSourcedId",
294
- "ltiContextId",
295
- "ltiDeploymentId",
296
- "ltiToolId",
297
- "ltiPlatformId",
298
- "ltiUserId",
299
- "identifier"
300
- ]>,
301
- z.ZodString
302
- ]>;
303
- }, "strip", z.ZodTypeAny, {
304
- type: string | [
305
- string,
306
- ...string[]
307
- ];
308
- identifier: string;
309
- identifierType: string;
310
- }, {
311
- type: string | [
312
- string,
313
- ...string[]
314
- ];
315
- identifier: string;
316
- identifierType: string;
317
- }>, "many">>;
318
- official: z.ZodOptional<z.ZodString>;
319
- parentOrg: z.ZodOptional<z.ZodAny>;
320
- familyName: z.ZodOptional<z.ZodString>;
321
- givenName: z.ZodOptional<z.ZodString>;
322
- additionalName: z.ZodOptional<z.ZodString>;
323
- patronymicName: z.ZodOptional<z.ZodString>;
324
- honorificPrefix: z.ZodOptional<z.ZodString>;
325
- honorificSuffix: z.ZodOptional<z.ZodString>;
326
- familyNamePrefix: z.ZodOptional<z.ZodString>;
327
- dateOfBirth: z.ZodOptional<z.ZodString>;
328
- }, z.ZodAny, "strip">, z.objectInputType<{
329
- id: z.ZodOptional<z.ZodString>;
330
- type: z.ZodUnion<[
331
- z.ZodString,
332
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
333
- ]>;
334
- name: z.ZodOptional<z.ZodString>;
335
- url: z.ZodOptional<z.ZodString>;
336
- phone: z.ZodOptional<z.ZodString>;
337
- description: z.ZodOptional<z.ZodString>;
338
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
339
- image: z.ZodOptional<z.ZodUnion<[
340
- z.ZodString,
341
- z.ZodObject<{
342
- id: z.ZodString;
343
- type: z.ZodString;
344
- caption: z.ZodOptional<z.ZodString>;
345
- }, "strip", z.ZodTypeAny, {
346
- type: string;
347
- id: string;
348
- caption?: string | undefined;
349
- }, {
350
- type: string;
351
- id: string;
352
- caption?: string | undefined;
353
- }>
354
- ]>>;
355
- email: z.ZodOptional<z.ZodString>;
356
- address: z.ZodOptional<z.ZodObject<{
357
- type: z.ZodUnion<[
358
- z.ZodString,
359
- z.ZodArray<z.ZodString, "atleastone">
360
- ]>;
361
- addressCountry: z.ZodOptional<z.ZodString>;
362
- addressCountryCode: z.ZodOptional<z.ZodString>;
363
- addressRegion: z.ZodOptional<z.ZodString>;
364
- addressLocality: z.ZodOptional<z.ZodString>;
365
- streetAddress: z.ZodOptional<z.ZodString>;
366
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
367
- postalCode: z.ZodOptional<z.ZodString>;
368
- geo: z.ZodOptional<z.ZodObject<{
369
- type: z.ZodUnion<[
370
- z.ZodString,
371
- z.ZodArray<z.ZodString, "atleastone">
372
- ]>;
373
- latitude: z.ZodNumber;
374
- longitude: z.ZodNumber;
375
- }, "strip", z.ZodTypeAny, {
376
- type: string | [
377
- string,
378
- ...string[]
379
- ];
380
- latitude: number;
381
- longitude: number;
382
- }, {
383
- type: string | [
384
- string,
385
- ...string[]
386
- ];
387
- latitude: number;
388
- longitude: number;
389
- }>>;
390
- }, "strip", z.ZodTypeAny, {
391
- type: string | [
392
- string,
393
- ...string[]
394
- ];
395
- addressCountry?: string | undefined;
396
- addressCountryCode?: string | undefined;
397
- addressRegion?: string | undefined;
398
- addressLocality?: string | undefined;
399
- streetAddress?: string | undefined;
400
- postOfficeBoxNumber?: string | undefined;
401
- postalCode?: string | undefined;
402
- geo?: {
403
- type: string | [
404
- string,
405
- ...string[]
406
- ];
407
- latitude: number;
408
- longitude: number;
409
- } | undefined;
410
- }, {
411
- type: string | [
412
- string,
413
- ...string[]
414
- ];
415
- addressCountry?: string | undefined;
416
- addressCountryCode?: string | undefined;
417
- addressRegion?: string | undefined;
418
- addressLocality?: string | undefined;
419
- streetAddress?: string | undefined;
420
- postOfficeBoxNumber?: string | undefined;
421
- postalCode?: string | undefined;
422
- geo?: {
423
- type: string | [
424
- string,
425
- ...string[]
426
- ];
427
- latitude: number;
428
- longitude: number;
429
- } | undefined;
430
- }>>;
431
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
432
- type: z.ZodUnion<[
433
- z.ZodString,
434
- z.ZodArray<z.ZodString, "atleastone">
435
- ]>;
436
- identifier: z.ZodString;
437
- identifierType: z.ZodUnion<[
438
- z.ZodEnum<[
439
- "sourcedId",
440
- "systemId",
441
- "productId",
442
- "userName",
443
- "accountId",
444
- "emailAddress",
445
- "nationalIdentityNumber",
446
- "isbn",
447
- "issn",
448
- "lisSourcedId",
449
- "oneRosterSourcedId",
450
- "sisSourcedId",
451
- "ltiContextId",
452
- "ltiDeploymentId",
453
- "ltiToolId",
454
- "ltiPlatformId",
455
- "ltiUserId",
456
- "identifier"
457
- ]>,
458
- z.ZodString
459
- ]>;
460
- }, "strip", z.ZodTypeAny, {
461
- type: string | [
462
- string,
463
- ...string[]
464
- ];
465
- identifier: string;
466
- identifierType: string;
467
- }, {
468
- type: string | [
469
- string,
470
- ...string[]
471
- ];
472
- identifier: string;
473
- identifierType: string;
474
- }>, "many">>;
475
- official: z.ZodOptional<z.ZodString>;
476
- parentOrg: z.ZodOptional<z.ZodAny>;
477
- familyName: z.ZodOptional<z.ZodString>;
478
- givenName: z.ZodOptional<z.ZodString>;
479
- additionalName: z.ZodOptional<z.ZodString>;
480
- patronymicName: z.ZodOptional<z.ZodString>;
481
- honorificPrefix: z.ZodOptional<z.ZodString>;
482
- honorificSuffix: z.ZodOptional<z.ZodString>;
483
- familyNamePrefix: z.ZodOptional<z.ZodString>;
484
- dateOfBirth: z.ZodOptional<z.ZodString>;
485
- }, z.ZodAny, "strip">>
486
- ]>;
487
- credentialSubject: z.ZodUnion<[
488
- z.ZodObject<{
489
- id: z.ZodOptional<z.ZodString>;
490
- }, "strip", z.ZodAny, z.objectOutputType<{
491
- id: z.ZodOptional<z.ZodString>;
492
- }, z.ZodAny, "strip">, z.objectInputType<{
493
- id: z.ZodOptional<z.ZodString>;
494
- }, z.ZodAny, "strip">>,
495
- z.ZodArray<z.ZodObject<{
496
- id: z.ZodOptional<z.ZodString>;
497
- }, "strip", z.ZodAny, z.objectOutputType<{
498
- id: z.ZodOptional<z.ZodString>;
499
- }, z.ZodAny, "strip">, z.objectInputType<{
500
- id: z.ZodOptional<z.ZodString>;
501
- }, z.ZodAny, "strip">>, "many">
502
- ]>;
503
- refreshService: z.ZodOptional<z.ZodUnion<[
504
- z.ZodObject<{
505
- id: z.ZodOptional<z.ZodString>;
506
- type: z.ZodString;
507
- }, "strip", z.ZodAny, z.objectOutputType<{
508
- id: z.ZodOptional<z.ZodString>;
509
- type: z.ZodString;
510
- }, z.ZodAny, "strip">, z.objectInputType<{
511
- id: z.ZodOptional<z.ZodString>;
512
- type: z.ZodString;
513
- }, z.ZodAny, "strip">>,
514
- z.ZodArray<z.ZodObject<{
515
- id: z.ZodOptional<z.ZodString>;
516
- type: z.ZodString;
517
- }, "strip", z.ZodAny, z.objectOutputType<{
518
- id: z.ZodOptional<z.ZodString>;
519
- type: z.ZodString;
520
- }, z.ZodAny, "strip">, z.objectInputType<{
521
- id: z.ZodOptional<z.ZodString>;
522
- type: z.ZodString;
523
- }, z.ZodAny, "strip">>, "many">
524
- ]>>;
525
- credentialSchema: z.ZodOptional<z.ZodUnion<[
526
- z.ZodObject<{
527
- id: z.ZodString;
528
- type: z.ZodString;
529
- }, "strip", z.ZodAny, z.objectOutputType<{
530
- id: z.ZodString;
531
- type: z.ZodString;
532
- }, z.ZodAny, "strip">, z.objectInputType<{
533
- id: z.ZodString;
534
- type: z.ZodString;
535
- }, z.ZodAny, "strip">>,
536
- z.ZodArray<z.ZodObject<{
537
- id: z.ZodString;
538
- type: z.ZodString;
539
- }, "strip", z.ZodAny, z.objectOutputType<{
540
- id: z.ZodString;
541
- type: z.ZodString;
542
- }, z.ZodAny, "strip">, z.objectInputType<{
543
- id: z.ZodString;
544
- type: z.ZodString;
545
- }, z.ZodAny, "strip">>, "many">
546
- ]>>;
547
- issuanceDate: z.ZodOptional<z.ZodString>;
548
- expirationDate: z.ZodOptional<z.ZodString>;
549
- credentialStatus: z.ZodOptional<z.ZodUnion<[
550
- z.ZodObject<{
551
- type: z.ZodString;
552
- id: z.ZodString;
553
- }, "strip", z.ZodAny, z.objectOutputType<{
554
- type: z.ZodString;
555
- id: z.ZodString;
556
- }, z.ZodAny, "strip">, z.objectInputType<{
557
- type: z.ZodString;
558
- id: z.ZodString;
559
- }, z.ZodAny, "strip">>,
560
- z.ZodArray<z.ZodObject<{
561
- type: z.ZodString;
562
- id: z.ZodString;
563
- }, "strip", z.ZodAny, z.objectOutputType<{
564
- type: z.ZodString;
565
- id: z.ZodString;
566
- }, z.ZodAny, "strip">, z.objectInputType<{
567
- type: z.ZodString;
568
- id: z.ZodString;
569
- }, z.ZodAny, "strip">>, "many">
570
- ]>>;
571
- name: z.ZodOptional<z.ZodString>;
572
- description: z.ZodOptional<z.ZodString>;
573
- validFrom: z.ZodOptional<z.ZodString>;
574
- validUntil: z.ZodOptional<z.ZodString>;
575
- status: z.ZodOptional<z.ZodUnion<[
576
- z.ZodObject<{
577
- type: z.ZodString;
578
- id: z.ZodString;
579
- }, "strip", z.ZodAny, z.objectOutputType<{
580
- type: z.ZodString;
581
- id: z.ZodString;
582
- }, z.ZodAny, "strip">, z.objectInputType<{
583
- type: z.ZodString;
584
- id: z.ZodString;
585
- }, z.ZodAny, "strip">>,
586
- z.ZodArray<z.ZodObject<{
587
- type: z.ZodString;
588
- id: z.ZodString;
589
- }, "strip", z.ZodAny, z.objectOutputType<{
590
- type: z.ZodString;
591
- id: z.ZodString;
592
- }, z.ZodAny, "strip">, z.objectInputType<{
593
- type: z.ZodString;
594
- id: z.ZodString;
595
- }, z.ZodAny, "strip">>, "many">
596
- ]>>;
597
- termsOfUse: z.ZodOptional<z.ZodUnion<[
598
- z.ZodObject<{
599
- type: z.ZodString;
600
- id: z.ZodOptional<z.ZodString>;
601
- }, "strip", z.ZodAny, z.objectOutputType<{
602
- type: z.ZodString;
603
- id: z.ZodOptional<z.ZodString>;
604
- }, z.ZodAny, "strip">, z.objectInputType<{
605
- type: z.ZodString;
606
- id: z.ZodOptional<z.ZodString>;
607
- }, z.ZodAny, "strip">>,
608
- z.ZodArray<z.ZodObject<{
609
- type: z.ZodString;
610
- id: z.ZodOptional<z.ZodString>;
611
- }, "strip", z.ZodAny, z.objectOutputType<{
612
- type: z.ZodString;
613
- id: z.ZodOptional<z.ZodString>;
614
- }, z.ZodAny, "strip">, z.objectInputType<{
615
- type: z.ZodString;
616
- id: z.ZodOptional<z.ZodString>;
617
- }, z.ZodAny, "strip">>, "many">
618
- ]>>;
619
- evidence: z.ZodOptional<z.ZodUnion<[
620
- z.ZodObject<{
621
- type: z.ZodUnion<[
622
- z.ZodString,
623
- z.ZodArray<z.ZodString, "atleastone">
624
- ]>;
625
- id: z.ZodOptional<z.ZodString>;
626
- }, "strip", z.ZodAny, z.objectOutputType<{
627
- type: z.ZodUnion<[
628
- z.ZodString,
629
- z.ZodArray<z.ZodString, "atleastone">
630
- ]>;
631
- id: z.ZodOptional<z.ZodString>;
632
- }, z.ZodAny, "strip">, z.objectInputType<{
633
- type: z.ZodUnion<[
634
- z.ZodString,
635
- z.ZodArray<z.ZodString, "atleastone">
636
- ]>;
637
- id: z.ZodOptional<z.ZodString>;
638
- }, z.ZodAny, "strip">>,
639
- z.ZodArray<z.ZodObject<{
640
- type: z.ZodUnion<[
641
- z.ZodString,
642
- z.ZodArray<z.ZodString, "atleastone">
643
- ]>;
644
- id: z.ZodOptional<z.ZodString>;
645
- }, "strip", z.ZodAny, z.objectOutputType<{
646
- type: z.ZodUnion<[
647
- z.ZodString,
648
- z.ZodArray<z.ZodString, "atleastone">
649
- ]>;
650
- id: z.ZodOptional<z.ZodString>;
651
- }, z.ZodAny, "strip">, z.objectInputType<{
652
- type: z.ZodUnion<[
653
- z.ZodString,
654
- z.ZodArray<z.ZodString, "atleastone">
655
- ]>;
656
- id: z.ZodOptional<z.ZodString>;
657
- }, z.ZodAny, "strip">>, "many">
658
- ]>>;
659
- }, "strip", z.ZodAny, z.objectOutputType<{
660
- "@context": z.ZodArray<z.ZodUnion<[
661
- z.ZodString,
662
- z.ZodRecord<z.ZodString, z.ZodAny>
663
- ]>, "many">;
664
- id: z.ZodOptional<z.ZodString>;
665
- type: z.ZodArray<z.ZodString, "atleastone">;
666
- issuer: z.ZodUnion<[
667
- z.ZodString,
668
- z.ZodObject<{
669
- id: z.ZodOptional<z.ZodString>;
670
- type: z.ZodUnion<[
671
- z.ZodString,
672
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
673
- ]>;
674
- name: z.ZodOptional<z.ZodString>;
675
- url: z.ZodOptional<z.ZodString>;
676
- phone: z.ZodOptional<z.ZodString>;
677
- description: z.ZodOptional<z.ZodString>;
678
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
679
- image: z.ZodOptional<z.ZodUnion<[
680
- z.ZodString,
681
- z.ZodObject<{
682
- id: z.ZodString;
683
- type: z.ZodString;
684
- caption: z.ZodOptional<z.ZodString>;
685
- }, "strip", z.ZodTypeAny, {
686
- type: string;
687
- id: string;
688
- caption?: string | undefined;
689
- }, {
690
- type: string;
691
- id: string;
692
- caption?: string | undefined;
693
- }>
694
- ]>>;
695
- email: z.ZodOptional<z.ZodString>;
696
- address: z.ZodOptional<z.ZodObject<{
697
- type: z.ZodUnion<[
698
- z.ZodString,
699
- z.ZodArray<z.ZodString, "atleastone">
700
- ]>;
701
- addressCountry: z.ZodOptional<z.ZodString>;
702
- addressCountryCode: z.ZodOptional<z.ZodString>;
703
- addressRegion: z.ZodOptional<z.ZodString>;
704
- addressLocality: z.ZodOptional<z.ZodString>;
705
- streetAddress: z.ZodOptional<z.ZodString>;
706
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
707
- postalCode: z.ZodOptional<z.ZodString>;
708
- geo: z.ZodOptional<z.ZodObject<{
709
- type: z.ZodUnion<[
710
- z.ZodString,
711
- z.ZodArray<z.ZodString, "atleastone">
712
- ]>;
713
- latitude: z.ZodNumber;
714
- longitude: z.ZodNumber;
715
- }, "strip", z.ZodTypeAny, {
716
- type: string | [
717
- string,
718
- ...string[]
719
- ];
720
- latitude: number;
721
- longitude: number;
722
- }, {
723
- type: string | [
724
- string,
725
- ...string[]
726
- ];
727
- latitude: number;
728
- longitude: number;
729
- }>>;
730
- }, "strip", z.ZodTypeAny, {
731
- type: string | [
732
- string,
733
- ...string[]
734
- ];
735
- addressCountry?: string | undefined;
736
- addressCountryCode?: string | undefined;
737
- addressRegion?: string | undefined;
738
- addressLocality?: string | undefined;
739
- streetAddress?: string | undefined;
740
- postOfficeBoxNumber?: string | undefined;
741
- postalCode?: string | undefined;
742
- geo?: {
743
- type: string | [
744
- string,
745
- ...string[]
746
- ];
747
- latitude: number;
748
- longitude: number;
749
- } | undefined;
750
- }, {
751
- type: string | [
752
- string,
753
- ...string[]
754
- ];
755
- addressCountry?: string | undefined;
756
- addressCountryCode?: string | undefined;
757
- addressRegion?: string | undefined;
758
- addressLocality?: string | undefined;
759
- streetAddress?: string | undefined;
760
- postOfficeBoxNumber?: string | undefined;
761
- postalCode?: string | undefined;
762
- geo?: {
763
- type: string | [
764
- string,
765
- ...string[]
766
- ];
767
- latitude: number;
768
- longitude: number;
769
- } | undefined;
770
- }>>;
771
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
772
- type: z.ZodUnion<[
773
- z.ZodString,
774
- z.ZodArray<z.ZodString, "atleastone">
775
- ]>;
776
- identifier: z.ZodString;
777
- identifierType: z.ZodUnion<[
778
- z.ZodEnum<[
779
- "sourcedId",
780
- "systemId",
781
- "productId",
782
- "userName",
783
- "accountId",
784
- "emailAddress",
785
- "nationalIdentityNumber",
786
- "isbn",
787
- "issn",
788
- "lisSourcedId",
789
- "oneRosterSourcedId",
790
- "sisSourcedId",
791
- "ltiContextId",
792
- "ltiDeploymentId",
793
- "ltiToolId",
794
- "ltiPlatformId",
795
- "ltiUserId",
796
- "identifier"
797
- ]>,
798
- z.ZodString
799
- ]>;
800
- }, "strip", z.ZodTypeAny, {
801
- type: string | [
802
- string,
803
- ...string[]
804
- ];
805
- identifier: string;
806
- identifierType: string;
807
- }, {
808
- type: string | [
809
- string,
810
- ...string[]
811
- ];
812
- identifier: string;
813
- identifierType: string;
814
- }>, "many">>;
815
- official: z.ZodOptional<z.ZodString>;
816
- parentOrg: z.ZodOptional<z.ZodAny>;
817
- familyName: z.ZodOptional<z.ZodString>;
818
- givenName: z.ZodOptional<z.ZodString>;
819
- additionalName: z.ZodOptional<z.ZodString>;
820
- patronymicName: z.ZodOptional<z.ZodString>;
821
- honorificPrefix: z.ZodOptional<z.ZodString>;
822
- honorificSuffix: z.ZodOptional<z.ZodString>;
823
- familyNamePrefix: z.ZodOptional<z.ZodString>;
824
- dateOfBirth: z.ZodOptional<z.ZodString>;
825
- }, "strip", z.ZodAny, z.objectOutputType<{
826
- id: z.ZodOptional<z.ZodString>;
827
- type: z.ZodUnion<[
828
- z.ZodString,
829
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
830
- ]>;
831
- name: z.ZodOptional<z.ZodString>;
832
- url: z.ZodOptional<z.ZodString>;
833
- phone: z.ZodOptional<z.ZodString>;
834
- description: z.ZodOptional<z.ZodString>;
835
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
836
- image: z.ZodOptional<z.ZodUnion<[
837
- z.ZodString,
838
- z.ZodObject<{
839
- id: z.ZodString;
840
- type: z.ZodString;
841
- caption: z.ZodOptional<z.ZodString>;
842
- }, "strip", z.ZodTypeAny, {
843
- type: string;
844
- id: string;
845
- caption?: string | undefined;
846
- }, {
847
- type: string;
848
- id: string;
849
- caption?: string | undefined;
850
- }>
851
- ]>>;
852
- email: z.ZodOptional<z.ZodString>;
853
- address: z.ZodOptional<z.ZodObject<{
854
- type: z.ZodUnion<[
855
- z.ZodString,
856
- z.ZodArray<z.ZodString, "atleastone">
857
- ]>;
858
- addressCountry: z.ZodOptional<z.ZodString>;
859
- addressCountryCode: z.ZodOptional<z.ZodString>;
860
- addressRegion: z.ZodOptional<z.ZodString>;
861
- addressLocality: z.ZodOptional<z.ZodString>;
862
- streetAddress: z.ZodOptional<z.ZodString>;
863
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
864
- postalCode: z.ZodOptional<z.ZodString>;
865
- geo: z.ZodOptional<z.ZodObject<{
866
- type: z.ZodUnion<[
867
- z.ZodString,
868
- z.ZodArray<z.ZodString, "atleastone">
869
- ]>;
870
- latitude: z.ZodNumber;
871
- longitude: z.ZodNumber;
872
- }, "strip", z.ZodTypeAny, {
873
- type: string | [
874
- string,
875
- ...string[]
876
- ];
877
- latitude: number;
878
- longitude: number;
879
- }, {
880
- type: string | [
881
- string,
882
- ...string[]
883
- ];
884
- latitude: number;
885
- longitude: number;
886
- }>>;
887
- }, "strip", z.ZodTypeAny, {
888
- type: string | [
889
- string,
890
- ...string[]
891
- ];
892
- addressCountry?: string | undefined;
893
- addressCountryCode?: string | undefined;
894
- addressRegion?: string | undefined;
895
- addressLocality?: string | undefined;
896
- streetAddress?: string | undefined;
897
- postOfficeBoxNumber?: string | undefined;
898
- postalCode?: string | undefined;
899
- geo?: {
900
- type: string | [
901
- string,
902
- ...string[]
903
- ];
904
- latitude: number;
905
- longitude: number;
906
- } | undefined;
907
- }, {
908
- type: string | [
909
- string,
910
- ...string[]
911
- ];
912
- addressCountry?: string | undefined;
913
- addressCountryCode?: string | undefined;
914
- addressRegion?: string | undefined;
915
- addressLocality?: string | undefined;
916
- streetAddress?: string | undefined;
917
- postOfficeBoxNumber?: string | undefined;
918
- postalCode?: string | undefined;
919
- geo?: {
920
- type: string | [
921
- string,
922
- ...string[]
923
- ];
924
- latitude: number;
925
- longitude: number;
926
- } | undefined;
927
- }>>;
928
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
929
- type: z.ZodUnion<[
930
- z.ZodString,
931
- z.ZodArray<z.ZodString, "atleastone">
932
- ]>;
933
- identifier: z.ZodString;
934
- identifierType: z.ZodUnion<[
935
- z.ZodEnum<[
936
- "sourcedId",
937
- "systemId",
938
- "productId",
939
- "userName",
940
- "accountId",
941
- "emailAddress",
942
- "nationalIdentityNumber",
943
- "isbn",
944
- "issn",
945
- "lisSourcedId",
946
- "oneRosterSourcedId",
947
- "sisSourcedId",
948
- "ltiContextId",
949
- "ltiDeploymentId",
950
- "ltiToolId",
951
- "ltiPlatformId",
952
- "ltiUserId",
953
- "identifier"
954
- ]>,
955
- z.ZodString
956
- ]>;
957
- }, "strip", z.ZodTypeAny, {
958
- type: string | [
959
- string,
960
- ...string[]
961
- ];
962
- identifier: string;
963
- identifierType: string;
964
- }, {
965
- type: string | [
966
- string,
967
- ...string[]
968
- ];
969
- identifier: string;
970
- identifierType: string;
971
- }>, "many">>;
972
- official: z.ZodOptional<z.ZodString>;
973
- parentOrg: z.ZodOptional<z.ZodAny>;
974
- familyName: z.ZodOptional<z.ZodString>;
975
- givenName: z.ZodOptional<z.ZodString>;
976
- additionalName: z.ZodOptional<z.ZodString>;
977
- patronymicName: z.ZodOptional<z.ZodString>;
978
- honorificPrefix: z.ZodOptional<z.ZodString>;
979
- honorificSuffix: z.ZodOptional<z.ZodString>;
980
- familyNamePrefix: z.ZodOptional<z.ZodString>;
981
- dateOfBirth: z.ZodOptional<z.ZodString>;
982
- }, z.ZodAny, "strip">, z.objectInputType<{
983
- id: z.ZodOptional<z.ZodString>;
984
- type: z.ZodUnion<[
985
- z.ZodString,
986
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
987
- ]>;
988
- name: z.ZodOptional<z.ZodString>;
989
- url: z.ZodOptional<z.ZodString>;
990
- phone: z.ZodOptional<z.ZodString>;
991
- description: z.ZodOptional<z.ZodString>;
992
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
993
- image: z.ZodOptional<z.ZodUnion<[
994
- z.ZodString,
995
- z.ZodObject<{
996
- id: z.ZodString;
997
- type: z.ZodString;
998
- caption: z.ZodOptional<z.ZodString>;
999
- }, "strip", z.ZodTypeAny, {
1000
- type: string;
1001
- id: string;
1002
- caption?: string | undefined;
1003
- }, {
1004
- type: string;
1005
- id: string;
1006
- caption?: string | undefined;
1007
- }>
1008
- ]>>;
1009
- email: z.ZodOptional<z.ZodString>;
1010
- address: z.ZodOptional<z.ZodObject<{
1011
- type: z.ZodUnion<[
1012
- z.ZodString,
1013
- z.ZodArray<z.ZodString, "atleastone">
1014
- ]>;
1015
- addressCountry: z.ZodOptional<z.ZodString>;
1016
- addressCountryCode: z.ZodOptional<z.ZodString>;
1017
- addressRegion: z.ZodOptional<z.ZodString>;
1018
- addressLocality: z.ZodOptional<z.ZodString>;
1019
- streetAddress: z.ZodOptional<z.ZodString>;
1020
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1021
- postalCode: z.ZodOptional<z.ZodString>;
1022
- geo: z.ZodOptional<z.ZodObject<{
1023
- type: z.ZodUnion<[
1024
- z.ZodString,
1025
- z.ZodArray<z.ZodString, "atleastone">
1026
- ]>;
1027
- latitude: z.ZodNumber;
1028
- longitude: z.ZodNumber;
1029
- }, "strip", z.ZodTypeAny, {
1030
- type: string | [
1031
- string,
1032
- ...string[]
1033
- ];
1034
- latitude: number;
1035
- longitude: number;
1036
- }, {
1037
- type: string | [
1038
- string,
1039
- ...string[]
1040
- ];
1041
- latitude: number;
1042
- longitude: number;
1043
- }>>;
1044
- }, "strip", z.ZodTypeAny, {
1045
- type: string | [
1046
- string,
1047
- ...string[]
1048
- ];
1049
- addressCountry?: string | undefined;
1050
- addressCountryCode?: string | undefined;
1051
- addressRegion?: string | undefined;
1052
- addressLocality?: string | undefined;
1053
- streetAddress?: string | undefined;
1054
- postOfficeBoxNumber?: string | undefined;
1055
- postalCode?: string | undefined;
1056
- geo?: {
1057
- type: string | [
1058
- string,
1059
- ...string[]
1060
- ];
1061
- latitude: number;
1062
- longitude: number;
1063
- } | undefined;
1064
- }, {
1065
- type: string | [
1066
- string,
1067
- ...string[]
1068
- ];
1069
- addressCountry?: string | undefined;
1070
- addressCountryCode?: string | undefined;
1071
- addressRegion?: string | undefined;
1072
- addressLocality?: string | undefined;
1073
- streetAddress?: string | undefined;
1074
- postOfficeBoxNumber?: string | undefined;
1075
- postalCode?: string | undefined;
1076
- geo?: {
1077
- type: string | [
1078
- string,
1079
- ...string[]
1080
- ];
1081
- latitude: number;
1082
- longitude: number;
1083
- } | undefined;
1084
- }>>;
1085
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1086
- type: z.ZodUnion<[
1087
- z.ZodString,
1088
- z.ZodArray<z.ZodString, "atleastone">
1089
- ]>;
1090
- identifier: z.ZodString;
1091
- identifierType: z.ZodUnion<[
1092
- z.ZodEnum<[
1093
- "sourcedId",
1094
- "systemId",
1095
- "productId",
1096
- "userName",
1097
- "accountId",
1098
- "emailAddress",
1099
- "nationalIdentityNumber",
1100
- "isbn",
1101
- "issn",
1102
- "lisSourcedId",
1103
- "oneRosterSourcedId",
1104
- "sisSourcedId",
1105
- "ltiContextId",
1106
- "ltiDeploymentId",
1107
- "ltiToolId",
1108
- "ltiPlatformId",
1109
- "ltiUserId",
1110
- "identifier"
1111
- ]>,
1112
- z.ZodString
1113
- ]>;
1114
- }, "strip", z.ZodTypeAny, {
1115
- type: string | [
1116
- string,
1117
- ...string[]
1118
- ];
1119
- identifier: string;
1120
- identifierType: string;
1121
- }, {
1122
- type: string | [
1123
- string,
1124
- ...string[]
1125
- ];
1126
- identifier: string;
1127
- identifierType: string;
1128
- }>, "many">>;
1129
- official: z.ZodOptional<z.ZodString>;
1130
- parentOrg: z.ZodOptional<z.ZodAny>;
1131
- familyName: z.ZodOptional<z.ZodString>;
1132
- givenName: z.ZodOptional<z.ZodString>;
1133
- additionalName: z.ZodOptional<z.ZodString>;
1134
- patronymicName: z.ZodOptional<z.ZodString>;
1135
- honorificPrefix: z.ZodOptional<z.ZodString>;
1136
- honorificSuffix: z.ZodOptional<z.ZodString>;
1137
- familyNamePrefix: z.ZodOptional<z.ZodString>;
1138
- dateOfBirth: z.ZodOptional<z.ZodString>;
1139
- }, z.ZodAny, "strip">>
1140
- ]>;
1141
- credentialSubject: z.ZodUnion<[
1142
- z.ZodObject<{
1143
- id: z.ZodOptional<z.ZodString>;
1144
- }, "strip", z.ZodAny, z.objectOutputType<{
1145
- id: z.ZodOptional<z.ZodString>;
1146
- }, z.ZodAny, "strip">, z.objectInputType<{
1147
- id: z.ZodOptional<z.ZodString>;
1148
- }, z.ZodAny, "strip">>,
1149
- z.ZodArray<z.ZodObject<{
1150
- id: z.ZodOptional<z.ZodString>;
1151
- }, "strip", z.ZodAny, z.objectOutputType<{
1152
- id: z.ZodOptional<z.ZodString>;
1153
- }, z.ZodAny, "strip">, z.objectInputType<{
1154
- id: z.ZodOptional<z.ZodString>;
1155
- }, z.ZodAny, "strip">>, "many">
1156
- ]>;
1157
- refreshService: z.ZodOptional<z.ZodUnion<[
1158
- z.ZodObject<{
1159
- id: z.ZodOptional<z.ZodString>;
1160
- type: z.ZodString;
1161
- }, "strip", z.ZodAny, z.objectOutputType<{
1162
- id: z.ZodOptional<z.ZodString>;
1163
- type: z.ZodString;
1164
- }, z.ZodAny, "strip">, z.objectInputType<{
1165
- id: z.ZodOptional<z.ZodString>;
1166
- type: z.ZodString;
1167
- }, z.ZodAny, "strip">>,
1168
- z.ZodArray<z.ZodObject<{
1169
- id: z.ZodOptional<z.ZodString>;
1170
- type: z.ZodString;
1171
- }, "strip", z.ZodAny, z.objectOutputType<{
1172
- id: z.ZodOptional<z.ZodString>;
1173
- type: z.ZodString;
1174
- }, z.ZodAny, "strip">, z.objectInputType<{
1175
- id: z.ZodOptional<z.ZodString>;
1176
- type: z.ZodString;
1177
- }, z.ZodAny, "strip">>, "many">
1178
- ]>>;
1179
- credentialSchema: z.ZodOptional<z.ZodUnion<[
1180
- z.ZodObject<{
1181
- id: z.ZodString;
1182
- type: z.ZodString;
1183
- }, "strip", z.ZodAny, z.objectOutputType<{
1184
- id: z.ZodString;
1185
- type: z.ZodString;
1186
- }, z.ZodAny, "strip">, z.objectInputType<{
1187
- id: z.ZodString;
1188
- type: z.ZodString;
1189
- }, z.ZodAny, "strip">>,
1190
- z.ZodArray<z.ZodObject<{
1191
- id: z.ZodString;
1192
- type: z.ZodString;
1193
- }, "strip", z.ZodAny, z.objectOutputType<{
1194
- id: z.ZodString;
1195
- type: z.ZodString;
1196
- }, z.ZodAny, "strip">, z.objectInputType<{
1197
- id: z.ZodString;
1198
- type: z.ZodString;
1199
- }, z.ZodAny, "strip">>, "many">
1200
- ]>>;
1201
- issuanceDate: z.ZodOptional<z.ZodString>;
1202
- expirationDate: z.ZodOptional<z.ZodString>;
1203
- credentialStatus: z.ZodOptional<z.ZodUnion<[
1204
- z.ZodObject<{
1205
- type: z.ZodString;
1206
- id: z.ZodString;
1207
- }, "strip", z.ZodAny, z.objectOutputType<{
1208
- type: z.ZodString;
1209
- id: z.ZodString;
1210
- }, z.ZodAny, "strip">, z.objectInputType<{
1211
- type: z.ZodString;
1212
- id: z.ZodString;
1213
- }, z.ZodAny, "strip">>,
1214
- z.ZodArray<z.ZodObject<{
1215
- type: z.ZodString;
1216
- id: z.ZodString;
1217
- }, "strip", z.ZodAny, z.objectOutputType<{
1218
- type: z.ZodString;
1219
- id: z.ZodString;
1220
- }, z.ZodAny, "strip">, z.objectInputType<{
1221
- type: z.ZodString;
1222
- id: z.ZodString;
1223
- }, z.ZodAny, "strip">>, "many">
1224
- ]>>;
1225
- name: z.ZodOptional<z.ZodString>;
1226
- description: z.ZodOptional<z.ZodString>;
1227
- validFrom: z.ZodOptional<z.ZodString>;
1228
- validUntil: z.ZodOptional<z.ZodString>;
1229
- status: z.ZodOptional<z.ZodUnion<[
1230
- z.ZodObject<{
1231
- type: z.ZodString;
1232
- id: z.ZodString;
1233
- }, "strip", z.ZodAny, z.objectOutputType<{
1234
- type: z.ZodString;
1235
- id: z.ZodString;
1236
- }, z.ZodAny, "strip">, z.objectInputType<{
1237
- type: z.ZodString;
1238
- id: z.ZodString;
1239
- }, z.ZodAny, "strip">>,
1240
- z.ZodArray<z.ZodObject<{
1241
- type: z.ZodString;
1242
- id: z.ZodString;
1243
- }, "strip", z.ZodAny, z.objectOutputType<{
1244
- type: z.ZodString;
1245
- id: z.ZodString;
1246
- }, z.ZodAny, "strip">, z.objectInputType<{
1247
- type: z.ZodString;
1248
- id: z.ZodString;
1249
- }, z.ZodAny, "strip">>, "many">
1250
- ]>>;
1251
- termsOfUse: z.ZodOptional<z.ZodUnion<[
1252
- z.ZodObject<{
1253
- type: z.ZodString;
1254
- id: z.ZodOptional<z.ZodString>;
1255
- }, "strip", z.ZodAny, z.objectOutputType<{
1256
- type: z.ZodString;
1257
- id: z.ZodOptional<z.ZodString>;
1258
- }, z.ZodAny, "strip">, z.objectInputType<{
1259
- type: z.ZodString;
1260
- id: z.ZodOptional<z.ZodString>;
1261
- }, z.ZodAny, "strip">>,
1262
- z.ZodArray<z.ZodObject<{
1263
- type: z.ZodString;
1264
- id: z.ZodOptional<z.ZodString>;
1265
- }, "strip", z.ZodAny, z.objectOutputType<{
1266
- type: z.ZodString;
1267
- id: z.ZodOptional<z.ZodString>;
1268
- }, z.ZodAny, "strip">, z.objectInputType<{
1269
- type: z.ZodString;
1270
- id: z.ZodOptional<z.ZodString>;
1271
- }, z.ZodAny, "strip">>, "many">
1272
- ]>>;
1273
- evidence: z.ZodOptional<z.ZodUnion<[
1274
- z.ZodObject<{
1275
- type: z.ZodUnion<[
1276
- z.ZodString,
1277
- z.ZodArray<z.ZodString, "atleastone">
1278
- ]>;
1279
- id: z.ZodOptional<z.ZodString>;
1280
- }, "strip", z.ZodAny, z.objectOutputType<{
1281
- type: z.ZodUnion<[
1282
- z.ZodString,
1283
- z.ZodArray<z.ZodString, "atleastone">
1284
- ]>;
1285
- id: z.ZodOptional<z.ZodString>;
1286
- }, z.ZodAny, "strip">, z.objectInputType<{
1287
- type: z.ZodUnion<[
1288
- z.ZodString,
1289
- z.ZodArray<z.ZodString, "atleastone">
1290
- ]>;
1291
- id: z.ZodOptional<z.ZodString>;
1292
- }, z.ZodAny, "strip">>,
1293
- z.ZodArray<z.ZodObject<{
1294
- type: z.ZodUnion<[
1295
- z.ZodString,
1296
- z.ZodArray<z.ZodString, "atleastone">
1297
- ]>;
1298
- id: z.ZodOptional<z.ZodString>;
1299
- }, "strip", z.ZodAny, z.objectOutputType<{
1300
- type: z.ZodUnion<[
1301
- z.ZodString,
1302
- z.ZodArray<z.ZodString, "atleastone">
1303
- ]>;
1304
- id: z.ZodOptional<z.ZodString>;
1305
- }, z.ZodAny, "strip">, z.objectInputType<{
1306
- type: z.ZodUnion<[
1307
- z.ZodString,
1308
- z.ZodArray<z.ZodString, "atleastone">
1309
- ]>;
1310
- id: z.ZodOptional<z.ZodString>;
1311
- }, z.ZodAny, "strip">>, "many">
1312
- ]>>;
1313
- }, z.ZodAny, "strip">, z.objectInputType<{
1314
- "@context": z.ZodArray<z.ZodUnion<[
1315
- z.ZodString,
1316
- z.ZodRecord<z.ZodString, z.ZodAny>
1317
- ]>, "many">;
1318
- id: z.ZodOptional<z.ZodString>;
1319
- type: z.ZodArray<z.ZodString, "atleastone">;
1320
- issuer: z.ZodUnion<[
1321
- z.ZodString,
1322
- z.ZodObject<{
1323
- id: z.ZodOptional<z.ZodString>;
1324
- type: z.ZodUnion<[
1325
- z.ZodString,
1326
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
1327
- ]>;
1328
- name: z.ZodOptional<z.ZodString>;
1329
- url: z.ZodOptional<z.ZodString>;
1330
- phone: z.ZodOptional<z.ZodString>;
1331
- description: z.ZodOptional<z.ZodString>;
1332
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1333
- image: z.ZodOptional<z.ZodUnion<[
1334
- z.ZodString,
1335
- z.ZodObject<{
1336
- id: z.ZodString;
1337
- type: z.ZodString;
1338
- caption: z.ZodOptional<z.ZodString>;
1339
- }, "strip", z.ZodTypeAny, {
1340
- type: string;
1341
- id: string;
1342
- caption?: string | undefined;
1343
- }, {
1344
- type: string;
1345
- id: string;
1346
- caption?: string | undefined;
1347
- }>
1348
- ]>>;
1349
- email: z.ZodOptional<z.ZodString>;
1350
- address: z.ZodOptional<z.ZodObject<{
1351
- type: z.ZodUnion<[
1352
- z.ZodString,
1353
- z.ZodArray<z.ZodString, "atleastone">
1354
- ]>;
1355
- addressCountry: z.ZodOptional<z.ZodString>;
1356
- addressCountryCode: z.ZodOptional<z.ZodString>;
1357
- addressRegion: z.ZodOptional<z.ZodString>;
1358
- addressLocality: z.ZodOptional<z.ZodString>;
1359
- streetAddress: z.ZodOptional<z.ZodString>;
1360
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1361
- postalCode: z.ZodOptional<z.ZodString>;
1362
- geo: z.ZodOptional<z.ZodObject<{
1363
- type: z.ZodUnion<[
1364
- z.ZodString,
1365
- z.ZodArray<z.ZodString, "atleastone">
1366
- ]>;
1367
- latitude: z.ZodNumber;
1368
- longitude: z.ZodNumber;
1369
- }, "strip", z.ZodTypeAny, {
1370
- type: string | [
1371
- string,
1372
- ...string[]
1373
- ];
1374
- latitude: number;
1375
- longitude: number;
1376
- }, {
1377
- type: string | [
1378
- string,
1379
- ...string[]
1380
- ];
1381
- latitude: number;
1382
- longitude: number;
1383
- }>>;
1384
- }, "strip", z.ZodTypeAny, {
1385
- type: string | [
1386
- string,
1387
- ...string[]
1388
- ];
1389
- addressCountry?: string | undefined;
1390
- addressCountryCode?: string | undefined;
1391
- addressRegion?: string | undefined;
1392
- addressLocality?: string | undefined;
1393
- streetAddress?: string | undefined;
1394
- postOfficeBoxNumber?: string | undefined;
1395
- postalCode?: string | undefined;
1396
- geo?: {
1397
- type: string | [
1398
- string,
1399
- ...string[]
1400
- ];
1401
- latitude: number;
1402
- longitude: number;
1403
- } | undefined;
1404
- }, {
1405
- type: string | [
1406
- string,
1407
- ...string[]
1408
- ];
1409
- addressCountry?: string | undefined;
1410
- addressCountryCode?: string | undefined;
1411
- addressRegion?: string | undefined;
1412
- addressLocality?: string | undefined;
1413
- streetAddress?: string | undefined;
1414
- postOfficeBoxNumber?: string | undefined;
1415
- postalCode?: string | undefined;
1416
- geo?: {
1417
- type: string | [
1418
- string,
1419
- ...string[]
1420
- ];
1421
- latitude: number;
1422
- longitude: number;
1423
- } | undefined;
1424
- }>>;
1425
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1426
- type: z.ZodUnion<[
1427
- z.ZodString,
1428
- z.ZodArray<z.ZodString, "atleastone">
1429
- ]>;
1430
- identifier: z.ZodString;
1431
- identifierType: z.ZodUnion<[
1432
- z.ZodEnum<[
1433
- "sourcedId",
1434
- "systemId",
1435
- "productId",
1436
- "userName",
1437
- "accountId",
1438
- "emailAddress",
1439
- "nationalIdentityNumber",
1440
- "isbn",
1441
- "issn",
1442
- "lisSourcedId",
1443
- "oneRosterSourcedId",
1444
- "sisSourcedId",
1445
- "ltiContextId",
1446
- "ltiDeploymentId",
1447
- "ltiToolId",
1448
- "ltiPlatformId",
1449
- "ltiUserId",
1450
- "identifier"
1451
- ]>,
1452
- z.ZodString
1453
- ]>;
1454
- }, "strip", z.ZodTypeAny, {
1455
- type: string | [
1456
- string,
1457
- ...string[]
1458
- ];
1459
- identifier: string;
1460
- identifierType: string;
1461
- }, {
1462
- type: string | [
1463
- string,
1464
- ...string[]
1465
- ];
1466
- identifier: string;
1467
- identifierType: string;
1468
- }>, "many">>;
1469
- official: z.ZodOptional<z.ZodString>;
1470
- parentOrg: z.ZodOptional<z.ZodAny>;
1471
- familyName: z.ZodOptional<z.ZodString>;
1472
- givenName: z.ZodOptional<z.ZodString>;
1473
- additionalName: z.ZodOptional<z.ZodString>;
1474
- patronymicName: z.ZodOptional<z.ZodString>;
1475
- honorificPrefix: z.ZodOptional<z.ZodString>;
1476
- honorificSuffix: z.ZodOptional<z.ZodString>;
1477
- familyNamePrefix: z.ZodOptional<z.ZodString>;
1478
- dateOfBirth: z.ZodOptional<z.ZodString>;
1479
- }, "strip", z.ZodAny, z.objectOutputType<{
1480
- id: z.ZodOptional<z.ZodString>;
1481
- type: z.ZodUnion<[
1482
- z.ZodString,
1483
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
1484
- ]>;
1485
- name: z.ZodOptional<z.ZodString>;
1486
- url: z.ZodOptional<z.ZodString>;
1487
- phone: z.ZodOptional<z.ZodString>;
1488
- description: z.ZodOptional<z.ZodString>;
1489
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1490
- image: z.ZodOptional<z.ZodUnion<[
1491
- z.ZodString,
1492
- z.ZodObject<{
1493
- id: z.ZodString;
1494
- type: z.ZodString;
1495
- caption: z.ZodOptional<z.ZodString>;
1496
- }, "strip", z.ZodTypeAny, {
1497
- type: string;
1498
- id: string;
1499
- caption?: string | undefined;
1500
- }, {
1501
- type: string;
1502
- id: string;
1503
- caption?: string | undefined;
1504
- }>
1505
- ]>>;
1506
- email: z.ZodOptional<z.ZodString>;
1507
- address: z.ZodOptional<z.ZodObject<{
1508
- type: z.ZodUnion<[
1509
- z.ZodString,
1510
- z.ZodArray<z.ZodString, "atleastone">
1511
- ]>;
1512
- addressCountry: z.ZodOptional<z.ZodString>;
1513
- addressCountryCode: z.ZodOptional<z.ZodString>;
1514
- addressRegion: z.ZodOptional<z.ZodString>;
1515
- addressLocality: z.ZodOptional<z.ZodString>;
1516
- streetAddress: z.ZodOptional<z.ZodString>;
1517
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1518
- postalCode: z.ZodOptional<z.ZodString>;
1519
- geo: z.ZodOptional<z.ZodObject<{
1520
- type: z.ZodUnion<[
1521
- z.ZodString,
1522
- z.ZodArray<z.ZodString, "atleastone">
1523
- ]>;
1524
- latitude: z.ZodNumber;
1525
- longitude: z.ZodNumber;
1526
- }, "strip", z.ZodTypeAny, {
1527
- type: string | [
1528
- string,
1529
- ...string[]
1530
- ];
1531
- latitude: number;
1532
- longitude: number;
1533
- }, {
1534
- type: string | [
1535
- string,
1536
- ...string[]
1537
- ];
1538
- latitude: number;
1539
- longitude: number;
1540
- }>>;
1541
- }, "strip", z.ZodTypeAny, {
1542
- type: string | [
1543
- string,
1544
- ...string[]
1545
- ];
1546
- addressCountry?: string | undefined;
1547
- addressCountryCode?: string | undefined;
1548
- addressRegion?: string | undefined;
1549
- addressLocality?: string | undefined;
1550
- streetAddress?: string | undefined;
1551
- postOfficeBoxNumber?: string | undefined;
1552
- postalCode?: string | undefined;
1553
- geo?: {
1554
- type: string | [
1555
- string,
1556
- ...string[]
1557
- ];
1558
- latitude: number;
1559
- longitude: number;
1560
- } | undefined;
1561
- }, {
1562
- type: string | [
1563
- string,
1564
- ...string[]
1565
- ];
1566
- addressCountry?: string | undefined;
1567
- addressCountryCode?: string | undefined;
1568
- addressRegion?: string | undefined;
1569
- addressLocality?: string | undefined;
1570
- streetAddress?: string | undefined;
1571
- postOfficeBoxNumber?: string | undefined;
1572
- postalCode?: string | undefined;
1573
- geo?: {
1574
- type: string | [
1575
- string,
1576
- ...string[]
1577
- ];
1578
- latitude: number;
1579
- longitude: number;
1580
- } | undefined;
1581
- }>>;
1582
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1583
- type: z.ZodUnion<[
1584
- z.ZodString,
1585
- z.ZodArray<z.ZodString, "atleastone">
1586
- ]>;
1587
- identifier: z.ZodString;
1588
- identifierType: z.ZodUnion<[
1589
- z.ZodEnum<[
1590
- "sourcedId",
1591
- "systemId",
1592
- "productId",
1593
- "userName",
1594
- "accountId",
1595
- "emailAddress",
1596
- "nationalIdentityNumber",
1597
- "isbn",
1598
- "issn",
1599
- "lisSourcedId",
1600
- "oneRosterSourcedId",
1601
- "sisSourcedId",
1602
- "ltiContextId",
1603
- "ltiDeploymentId",
1604
- "ltiToolId",
1605
- "ltiPlatformId",
1606
- "ltiUserId",
1607
- "identifier"
1608
- ]>,
1609
- z.ZodString
1610
- ]>;
1611
- }, "strip", z.ZodTypeAny, {
1612
- type: string | [
1613
- string,
1614
- ...string[]
1615
- ];
1616
- identifier: string;
1617
- identifierType: string;
1618
- }, {
1619
- type: string | [
1620
- string,
1621
- ...string[]
1622
- ];
1623
- identifier: string;
1624
- identifierType: string;
1625
- }>, "many">>;
1626
- official: z.ZodOptional<z.ZodString>;
1627
- parentOrg: z.ZodOptional<z.ZodAny>;
1628
- familyName: z.ZodOptional<z.ZodString>;
1629
- givenName: z.ZodOptional<z.ZodString>;
1630
- additionalName: z.ZodOptional<z.ZodString>;
1631
- patronymicName: z.ZodOptional<z.ZodString>;
1632
- honorificPrefix: z.ZodOptional<z.ZodString>;
1633
- honorificSuffix: z.ZodOptional<z.ZodString>;
1634
- familyNamePrefix: z.ZodOptional<z.ZodString>;
1635
- dateOfBirth: z.ZodOptional<z.ZodString>;
1636
- }, z.ZodAny, "strip">, z.objectInputType<{
1637
- id: z.ZodOptional<z.ZodString>;
1638
- type: z.ZodUnion<[
1639
- z.ZodString,
1640
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
1641
- ]>;
1642
- name: z.ZodOptional<z.ZodString>;
1643
- url: z.ZodOptional<z.ZodString>;
1644
- phone: z.ZodOptional<z.ZodString>;
1645
- description: z.ZodOptional<z.ZodString>;
1646
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1647
- image: z.ZodOptional<z.ZodUnion<[
1648
- z.ZodString,
1649
- z.ZodObject<{
1650
- id: z.ZodString;
1651
- type: z.ZodString;
1652
- caption: z.ZodOptional<z.ZodString>;
1653
- }, "strip", z.ZodTypeAny, {
1654
- type: string;
1655
- id: string;
1656
- caption?: string | undefined;
1657
- }, {
1658
- type: string;
1659
- id: string;
1660
- caption?: string | undefined;
1661
- }>
1662
- ]>>;
1663
- email: z.ZodOptional<z.ZodString>;
1664
- address: z.ZodOptional<z.ZodObject<{
1665
- type: z.ZodUnion<[
1666
- z.ZodString,
1667
- z.ZodArray<z.ZodString, "atleastone">
1668
- ]>;
1669
- addressCountry: z.ZodOptional<z.ZodString>;
1670
- addressCountryCode: z.ZodOptional<z.ZodString>;
1671
- addressRegion: z.ZodOptional<z.ZodString>;
1672
- addressLocality: z.ZodOptional<z.ZodString>;
1673
- streetAddress: z.ZodOptional<z.ZodString>;
1674
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
1675
- postalCode: z.ZodOptional<z.ZodString>;
1676
- geo: z.ZodOptional<z.ZodObject<{
1677
- type: z.ZodUnion<[
1678
- z.ZodString,
1679
- z.ZodArray<z.ZodString, "atleastone">
1680
- ]>;
1681
- latitude: z.ZodNumber;
1682
- longitude: z.ZodNumber;
1683
- }, "strip", z.ZodTypeAny, {
1684
- type: string | [
1685
- string,
1686
- ...string[]
1687
- ];
1688
- latitude: number;
1689
- longitude: number;
1690
- }, {
1691
- type: string | [
1692
- string,
1693
- ...string[]
1694
- ];
1695
- latitude: number;
1696
- longitude: number;
1697
- }>>;
1698
- }, "strip", z.ZodTypeAny, {
1699
- type: string | [
1700
- string,
1701
- ...string[]
1702
- ];
1703
- addressCountry?: string | undefined;
1704
- addressCountryCode?: string | undefined;
1705
- addressRegion?: string | undefined;
1706
- addressLocality?: string | undefined;
1707
- streetAddress?: string | undefined;
1708
- postOfficeBoxNumber?: string | undefined;
1709
- postalCode?: string | undefined;
1710
- geo?: {
1711
- type: string | [
1712
- string,
1713
- ...string[]
1714
- ];
1715
- latitude: number;
1716
- longitude: number;
1717
- } | undefined;
1718
- }, {
1719
- type: string | [
1720
- string,
1721
- ...string[]
1722
- ];
1723
- addressCountry?: string | undefined;
1724
- addressCountryCode?: string | undefined;
1725
- addressRegion?: string | undefined;
1726
- addressLocality?: string | undefined;
1727
- streetAddress?: string | undefined;
1728
- postOfficeBoxNumber?: string | undefined;
1729
- postalCode?: string | undefined;
1730
- geo?: {
1731
- type: string | [
1732
- string,
1733
- ...string[]
1734
- ];
1735
- latitude: number;
1736
- longitude: number;
1737
- } | undefined;
1738
- }>>;
1739
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1740
- type: z.ZodUnion<[
1741
- z.ZodString,
1742
- z.ZodArray<z.ZodString, "atleastone">
1743
- ]>;
1744
- identifier: z.ZodString;
1745
- identifierType: z.ZodUnion<[
1746
- z.ZodEnum<[
1747
- "sourcedId",
1748
- "systemId",
1749
- "productId",
1750
- "userName",
1751
- "accountId",
1752
- "emailAddress",
1753
- "nationalIdentityNumber",
1754
- "isbn",
1755
- "issn",
1756
- "lisSourcedId",
1757
- "oneRosterSourcedId",
1758
- "sisSourcedId",
1759
- "ltiContextId",
1760
- "ltiDeploymentId",
1761
- "ltiToolId",
1762
- "ltiPlatformId",
1763
- "ltiUserId",
1764
- "identifier"
1765
- ]>,
1766
- z.ZodString
1767
- ]>;
1768
- }, "strip", z.ZodTypeAny, {
1769
- type: string | [
1770
- string,
1771
- ...string[]
1772
- ];
1773
- identifier: string;
1774
- identifierType: string;
1775
- }, {
1776
- type: string | [
1777
- string,
1778
- ...string[]
1779
- ];
1780
- identifier: string;
1781
- identifierType: string;
1782
- }>, "many">>;
1783
- official: z.ZodOptional<z.ZodString>;
1784
- parentOrg: z.ZodOptional<z.ZodAny>;
1785
- familyName: z.ZodOptional<z.ZodString>;
1786
- givenName: z.ZodOptional<z.ZodString>;
1787
- additionalName: z.ZodOptional<z.ZodString>;
1788
- patronymicName: z.ZodOptional<z.ZodString>;
1789
- honorificPrefix: z.ZodOptional<z.ZodString>;
1790
- honorificSuffix: z.ZodOptional<z.ZodString>;
1791
- familyNamePrefix: z.ZodOptional<z.ZodString>;
1792
- dateOfBirth: z.ZodOptional<z.ZodString>;
1793
- }, z.ZodAny, "strip">>
1794
- ]>;
1795
- credentialSubject: z.ZodUnion<[
1796
- z.ZodObject<{
1797
- id: z.ZodOptional<z.ZodString>;
1798
- }, "strip", z.ZodAny, z.objectOutputType<{
1799
- id: z.ZodOptional<z.ZodString>;
1800
- }, z.ZodAny, "strip">, z.objectInputType<{
1801
- id: z.ZodOptional<z.ZodString>;
1802
- }, z.ZodAny, "strip">>,
1803
- z.ZodArray<z.ZodObject<{
1804
- id: z.ZodOptional<z.ZodString>;
1805
- }, "strip", z.ZodAny, z.objectOutputType<{
1806
- id: z.ZodOptional<z.ZodString>;
1807
- }, z.ZodAny, "strip">, z.objectInputType<{
1808
- id: z.ZodOptional<z.ZodString>;
1809
- }, z.ZodAny, "strip">>, "many">
1810
- ]>;
1811
- refreshService: z.ZodOptional<z.ZodUnion<[
1812
- z.ZodObject<{
1813
- id: z.ZodOptional<z.ZodString>;
1814
- type: z.ZodString;
1815
- }, "strip", z.ZodAny, z.objectOutputType<{
1816
- id: z.ZodOptional<z.ZodString>;
1817
- type: z.ZodString;
1818
- }, z.ZodAny, "strip">, z.objectInputType<{
1819
- id: z.ZodOptional<z.ZodString>;
1820
- type: z.ZodString;
1821
- }, z.ZodAny, "strip">>,
1822
- z.ZodArray<z.ZodObject<{
1823
- id: z.ZodOptional<z.ZodString>;
1824
- type: z.ZodString;
1825
- }, "strip", z.ZodAny, z.objectOutputType<{
1826
- id: z.ZodOptional<z.ZodString>;
1827
- type: z.ZodString;
1828
- }, z.ZodAny, "strip">, z.objectInputType<{
1829
- id: z.ZodOptional<z.ZodString>;
1830
- type: z.ZodString;
1831
- }, z.ZodAny, "strip">>, "many">
1832
- ]>>;
1833
- credentialSchema: z.ZodOptional<z.ZodUnion<[
1834
- z.ZodObject<{
1835
- id: z.ZodString;
1836
- type: z.ZodString;
1837
- }, "strip", z.ZodAny, z.objectOutputType<{
1838
- id: z.ZodString;
1839
- type: z.ZodString;
1840
- }, z.ZodAny, "strip">, z.objectInputType<{
1841
- id: z.ZodString;
1842
- type: z.ZodString;
1843
- }, z.ZodAny, "strip">>,
1844
- z.ZodArray<z.ZodObject<{
1845
- id: z.ZodString;
1846
- type: z.ZodString;
1847
- }, "strip", z.ZodAny, z.objectOutputType<{
1848
- id: z.ZodString;
1849
- type: z.ZodString;
1850
- }, z.ZodAny, "strip">, z.objectInputType<{
1851
- id: z.ZodString;
1852
- type: z.ZodString;
1853
- }, z.ZodAny, "strip">>, "many">
1854
- ]>>;
1855
- issuanceDate: z.ZodOptional<z.ZodString>;
1856
- expirationDate: z.ZodOptional<z.ZodString>;
1857
- credentialStatus: z.ZodOptional<z.ZodUnion<[
1858
- z.ZodObject<{
1859
- type: z.ZodString;
1860
- id: z.ZodString;
1861
- }, "strip", z.ZodAny, z.objectOutputType<{
1862
- type: z.ZodString;
1863
- id: z.ZodString;
1864
- }, z.ZodAny, "strip">, z.objectInputType<{
1865
- type: z.ZodString;
1866
- id: z.ZodString;
1867
- }, z.ZodAny, "strip">>,
1868
- z.ZodArray<z.ZodObject<{
1869
- type: z.ZodString;
1870
- id: z.ZodString;
1871
- }, "strip", z.ZodAny, z.objectOutputType<{
1872
- type: z.ZodString;
1873
- id: z.ZodString;
1874
- }, z.ZodAny, "strip">, z.objectInputType<{
1875
- type: z.ZodString;
1876
- id: z.ZodString;
1877
- }, z.ZodAny, "strip">>, "many">
1878
- ]>>;
1879
- name: z.ZodOptional<z.ZodString>;
1880
- description: z.ZodOptional<z.ZodString>;
1881
- validFrom: z.ZodOptional<z.ZodString>;
1882
- validUntil: z.ZodOptional<z.ZodString>;
1883
- status: z.ZodOptional<z.ZodUnion<[
1884
- z.ZodObject<{
1885
- type: z.ZodString;
1886
- id: z.ZodString;
1887
- }, "strip", z.ZodAny, z.objectOutputType<{
1888
- type: z.ZodString;
1889
- id: z.ZodString;
1890
- }, z.ZodAny, "strip">, z.objectInputType<{
1891
- type: z.ZodString;
1892
- id: z.ZodString;
1893
- }, z.ZodAny, "strip">>,
1894
- z.ZodArray<z.ZodObject<{
1895
- type: z.ZodString;
1896
- id: z.ZodString;
1897
- }, "strip", z.ZodAny, z.objectOutputType<{
1898
- type: z.ZodString;
1899
- id: z.ZodString;
1900
- }, z.ZodAny, "strip">, z.objectInputType<{
1901
- type: z.ZodString;
1902
- id: z.ZodString;
1903
- }, z.ZodAny, "strip">>, "many">
1904
- ]>>;
1905
- termsOfUse: z.ZodOptional<z.ZodUnion<[
1906
- z.ZodObject<{
1907
- type: z.ZodString;
1908
- id: z.ZodOptional<z.ZodString>;
1909
- }, "strip", z.ZodAny, z.objectOutputType<{
1910
- type: z.ZodString;
1911
- id: z.ZodOptional<z.ZodString>;
1912
- }, z.ZodAny, "strip">, z.objectInputType<{
1913
- type: z.ZodString;
1914
- id: z.ZodOptional<z.ZodString>;
1915
- }, z.ZodAny, "strip">>,
1916
- z.ZodArray<z.ZodObject<{
1917
- type: z.ZodString;
1918
- id: z.ZodOptional<z.ZodString>;
1919
- }, "strip", z.ZodAny, z.objectOutputType<{
1920
- type: z.ZodString;
1921
- id: z.ZodOptional<z.ZodString>;
1922
- }, z.ZodAny, "strip">, z.objectInputType<{
1923
- type: z.ZodString;
1924
- id: z.ZodOptional<z.ZodString>;
1925
- }, z.ZodAny, "strip">>, "many">
1926
- ]>>;
1927
- evidence: z.ZodOptional<z.ZodUnion<[
1928
- z.ZodObject<{
1929
- type: z.ZodUnion<[
1930
- z.ZodString,
1931
- z.ZodArray<z.ZodString, "atleastone">
1932
- ]>;
1933
- id: z.ZodOptional<z.ZodString>;
1934
- }, "strip", z.ZodAny, z.objectOutputType<{
1935
- type: z.ZodUnion<[
1936
- z.ZodString,
1937
- z.ZodArray<z.ZodString, "atleastone">
1938
- ]>;
1939
- id: z.ZodOptional<z.ZodString>;
1940
- }, z.ZodAny, "strip">, z.objectInputType<{
1941
- type: z.ZodUnion<[
1942
- z.ZodString,
1943
- z.ZodArray<z.ZodString, "atleastone">
1944
- ]>;
1945
- id: z.ZodOptional<z.ZodString>;
1946
- }, z.ZodAny, "strip">>,
1947
- z.ZodArray<z.ZodObject<{
1948
- type: z.ZodUnion<[
1949
- z.ZodString,
1950
- z.ZodArray<z.ZodString, "atleastone">
1951
- ]>;
1952
- id: z.ZodOptional<z.ZodString>;
1953
- }, "strip", z.ZodAny, z.objectOutputType<{
1954
- type: z.ZodUnion<[
1955
- z.ZodString,
1956
- z.ZodArray<z.ZodString, "atleastone">
1957
- ]>;
1958
- id: z.ZodOptional<z.ZodString>;
1959
- }, z.ZodAny, "strip">, z.objectInputType<{
1960
- type: z.ZodUnion<[
1961
- z.ZodString,
1962
- z.ZodArray<z.ZodString, "atleastone">
1963
- ]>;
1964
- id: z.ZodOptional<z.ZodString>;
1965
- }, z.ZodAny, "strip">>, "many">
1966
- ]>>;
1967
- }, z.ZodAny, "strip">>;
1968
- export type UnsignedVC = z.infer<typeof UnsignedVCValidator>;
1969
- declare const VCValidator: z.ZodObject<z.objectUtil.extendShape<{
1970
- "@context": z.ZodArray<z.ZodUnion<[
1971
- z.ZodString,
1972
- z.ZodRecord<z.ZodString, z.ZodAny>
1973
- ]>, "many">;
1974
- id: z.ZodOptional<z.ZodString>;
1975
- type: z.ZodArray<z.ZodString, "atleastone">;
1976
- issuer: z.ZodUnion<[
1977
- z.ZodString,
1978
- z.ZodObject<{
1979
- id: z.ZodOptional<z.ZodString>;
1980
- type: z.ZodUnion<[
1981
- z.ZodString,
1982
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
1983
- ]>;
1984
- name: z.ZodOptional<z.ZodString>;
1985
- url: z.ZodOptional<z.ZodString>;
1986
- phone: z.ZodOptional<z.ZodString>;
1987
- description: z.ZodOptional<z.ZodString>;
1988
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1989
- image: z.ZodOptional<z.ZodUnion<[
1990
- z.ZodString,
1991
- z.ZodObject<{
1992
- id: z.ZodString;
1993
- type: z.ZodString;
1994
- caption: z.ZodOptional<z.ZodString>;
1995
- }, "strip", z.ZodTypeAny, {
1996
- type: string;
1997
- id: string;
1998
- caption?: string | undefined;
1999
- }, {
2000
- type: string;
2001
- id: string;
2002
- caption?: string | undefined;
2003
- }>
2004
- ]>>;
2005
- email: z.ZodOptional<z.ZodString>;
2006
- address: z.ZodOptional<z.ZodObject<{
2007
- type: z.ZodUnion<[
2008
- z.ZodString,
2009
- z.ZodArray<z.ZodString, "atleastone">
2010
- ]>;
2011
- addressCountry: z.ZodOptional<z.ZodString>;
2012
- addressCountryCode: z.ZodOptional<z.ZodString>;
2013
- addressRegion: z.ZodOptional<z.ZodString>;
2014
- addressLocality: z.ZodOptional<z.ZodString>;
2015
- streetAddress: z.ZodOptional<z.ZodString>;
2016
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
2017
- postalCode: z.ZodOptional<z.ZodString>;
2018
- geo: z.ZodOptional<z.ZodObject<{
2019
- type: z.ZodUnion<[
2020
- z.ZodString,
2021
- z.ZodArray<z.ZodString, "atleastone">
2022
- ]>;
2023
- latitude: z.ZodNumber;
2024
- longitude: z.ZodNumber;
2025
- }, "strip", z.ZodTypeAny, {
2026
- type: string | [
2027
- string,
2028
- ...string[]
2029
- ];
2030
- latitude: number;
2031
- longitude: number;
2032
- }, {
2033
- type: string | [
2034
- string,
2035
- ...string[]
2036
- ];
2037
- latitude: number;
2038
- longitude: number;
2039
- }>>;
2040
- }, "strip", z.ZodTypeAny, {
2041
- type: string | [
2042
- string,
2043
- ...string[]
2044
- ];
2045
- addressCountry?: string | undefined;
2046
- addressCountryCode?: string | undefined;
2047
- addressRegion?: string | undefined;
2048
- addressLocality?: string | undefined;
2049
- streetAddress?: string | undefined;
2050
- postOfficeBoxNumber?: string | undefined;
2051
- postalCode?: string | undefined;
2052
- geo?: {
2053
- type: string | [
2054
- string,
2055
- ...string[]
2056
- ];
2057
- latitude: number;
2058
- longitude: number;
2059
- } | undefined;
2060
- }, {
2061
- type: string | [
2062
- string,
2063
- ...string[]
2064
- ];
2065
- addressCountry?: string | undefined;
2066
- addressCountryCode?: string | undefined;
2067
- addressRegion?: string | undefined;
2068
- addressLocality?: string | undefined;
2069
- streetAddress?: string | undefined;
2070
- postOfficeBoxNumber?: string | undefined;
2071
- postalCode?: string | undefined;
2072
- geo?: {
2073
- type: string | [
2074
- string,
2075
- ...string[]
2076
- ];
2077
- latitude: number;
2078
- longitude: number;
2079
- } | undefined;
2080
- }>>;
2081
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
2082
- type: z.ZodUnion<[
2083
- z.ZodString,
2084
- z.ZodArray<z.ZodString, "atleastone">
2085
- ]>;
2086
- identifier: z.ZodString;
2087
- identifierType: z.ZodUnion<[
2088
- z.ZodEnum<[
2089
- "sourcedId",
2090
- "systemId",
2091
- "productId",
2092
- "userName",
2093
- "accountId",
2094
- "emailAddress",
2095
- "nationalIdentityNumber",
2096
- "isbn",
2097
- "issn",
2098
- "lisSourcedId",
2099
- "oneRosterSourcedId",
2100
- "sisSourcedId",
2101
- "ltiContextId",
2102
- "ltiDeploymentId",
2103
- "ltiToolId",
2104
- "ltiPlatformId",
2105
- "ltiUserId",
2106
- "identifier"
2107
- ]>,
2108
- z.ZodString
2109
- ]>;
2110
- }, "strip", z.ZodTypeAny, {
2111
- type: string | [
2112
- string,
2113
- ...string[]
2114
- ];
2115
- identifier: string;
2116
- identifierType: string;
2117
- }, {
2118
- type: string | [
2119
- string,
2120
- ...string[]
2121
- ];
2122
- identifier: string;
2123
- identifierType: string;
2124
- }>, "many">>;
2125
- official: z.ZodOptional<z.ZodString>;
2126
- parentOrg: z.ZodOptional<z.ZodAny>;
2127
- familyName: z.ZodOptional<z.ZodString>;
2128
- givenName: z.ZodOptional<z.ZodString>;
2129
- additionalName: z.ZodOptional<z.ZodString>;
2130
- patronymicName: z.ZodOptional<z.ZodString>;
2131
- honorificPrefix: z.ZodOptional<z.ZodString>;
2132
- honorificSuffix: z.ZodOptional<z.ZodString>;
2133
- familyNamePrefix: z.ZodOptional<z.ZodString>;
2134
- dateOfBirth: z.ZodOptional<z.ZodString>;
2135
- }, "strip", z.ZodAny, z.objectOutputType<{
2136
- id: z.ZodOptional<z.ZodString>;
2137
- type: z.ZodUnion<[
2138
- z.ZodString,
2139
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
2140
- ]>;
2141
- name: z.ZodOptional<z.ZodString>;
2142
- url: z.ZodOptional<z.ZodString>;
2143
- phone: z.ZodOptional<z.ZodString>;
2144
- description: z.ZodOptional<z.ZodString>;
2145
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2146
- image: z.ZodOptional<z.ZodUnion<[
2147
- z.ZodString,
2148
- z.ZodObject<{
2149
- id: z.ZodString;
2150
- type: z.ZodString;
2151
- caption: z.ZodOptional<z.ZodString>;
2152
- }, "strip", z.ZodTypeAny, {
2153
- type: string;
2154
- id: string;
2155
- caption?: string | undefined;
2156
- }, {
2157
- type: string;
2158
- id: string;
2159
- caption?: string | undefined;
2160
- }>
2161
- ]>>;
2162
- email: z.ZodOptional<z.ZodString>;
2163
- address: z.ZodOptional<z.ZodObject<{
2164
- type: z.ZodUnion<[
2165
- z.ZodString,
2166
- z.ZodArray<z.ZodString, "atleastone">
2167
- ]>;
2168
- addressCountry: z.ZodOptional<z.ZodString>;
2169
- addressCountryCode: z.ZodOptional<z.ZodString>;
2170
- addressRegion: z.ZodOptional<z.ZodString>;
2171
- addressLocality: z.ZodOptional<z.ZodString>;
2172
- streetAddress: z.ZodOptional<z.ZodString>;
2173
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
2174
- postalCode: z.ZodOptional<z.ZodString>;
2175
- geo: z.ZodOptional<z.ZodObject<{
2176
- type: z.ZodUnion<[
2177
- z.ZodString,
2178
- z.ZodArray<z.ZodString, "atleastone">
2179
- ]>;
2180
- latitude: z.ZodNumber;
2181
- longitude: z.ZodNumber;
2182
- }, "strip", z.ZodTypeAny, {
2183
- type: string | [
2184
- string,
2185
- ...string[]
2186
- ];
2187
- latitude: number;
2188
- longitude: number;
2189
- }, {
2190
- type: string | [
2191
- string,
2192
- ...string[]
2193
- ];
2194
- latitude: number;
2195
- longitude: number;
2196
- }>>;
2197
- }, "strip", z.ZodTypeAny, {
2198
- type: string | [
2199
- string,
2200
- ...string[]
2201
- ];
2202
- addressCountry?: string | undefined;
2203
- addressCountryCode?: string | undefined;
2204
- addressRegion?: string | undefined;
2205
- addressLocality?: string | undefined;
2206
- streetAddress?: string | undefined;
2207
- postOfficeBoxNumber?: string | undefined;
2208
- postalCode?: string | undefined;
2209
- geo?: {
2210
- type: string | [
2211
- string,
2212
- ...string[]
2213
- ];
2214
- latitude: number;
2215
- longitude: number;
2216
- } | undefined;
2217
- }, {
2218
- type: string | [
2219
- string,
2220
- ...string[]
2221
- ];
2222
- addressCountry?: string | undefined;
2223
- addressCountryCode?: string | undefined;
2224
- addressRegion?: string | undefined;
2225
- addressLocality?: string | undefined;
2226
- streetAddress?: string | undefined;
2227
- postOfficeBoxNumber?: string | undefined;
2228
- postalCode?: string | undefined;
2229
- geo?: {
2230
- type: string | [
2231
- string,
2232
- ...string[]
2233
- ];
2234
- latitude: number;
2235
- longitude: number;
2236
- } | undefined;
2237
- }>>;
2238
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
2239
- type: z.ZodUnion<[
2240
- z.ZodString,
2241
- z.ZodArray<z.ZodString, "atleastone">
2242
- ]>;
2243
- identifier: z.ZodString;
2244
- identifierType: z.ZodUnion<[
2245
- z.ZodEnum<[
2246
- "sourcedId",
2247
- "systemId",
2248
- "productId",
2249
- "userName",
2250
- "accountId",
2251
- "emailAddress",
2252
- "nationalIdentityNumber",
2253
- "isbn",
2254
- "issn",
2255
- "lisSourcedId",
2256
- "oneRosterSourcedId",
2257
- "sisSourcedId",
2258
- "ltiContextId",
2259
- "ltiDeploymentId",
2260
- "ltiToolId",
2261
- "ltiPlatformId",
2262
- "ltiUserId",
2263
- "identifier"
2264
- ]>,
2265
- z.ZodString
2266
- ]>;
2267
- }, "strip", z.ZodTypeAny, {
2268
- type: string | [
2269
- string,
2270
- ...string[]
2271
- ];
2272
- identifier: string;
2273
- identifierType: string;
2274
- }, {
2275
- type: string | [
2276
- string,
2277
- ...string[]
2278
- ];
2279
- identifier: string;
2280
- identifierType: string;
2281
- }>, "many">>;
2282
- official: z.ZodOptional<z.ZodString>;
2283
- parentOrg: z.ZodOptional<z.ZodAny>;
2284
- familyName: z.ZodOptional<z.ZodString>;
2285
- givenName: z.ZodOptional<z.ZodString>;
2286
- additionalName: z.ZodOptional<z.ZodString>;
2287
- patronymicName: z.ZodOptional<z.ZodString>;
2288
- honorificPrefix: z.ZodOptional<z.ZodString>;
2289
- honorificSuffix: z.ZodOptional<z.ZodString>;
2290
- familyNamePrefix: z.ZodOptional<z.ZodString>;
2291
- dateOfBirth: z.ZodOptional<z.ZodString>;
2292
- }, z.ZodAny, "strip">, z.objectInputType<{
2293
- id: z.ZodOptional<z.ZodString>;
2294
- type: z.ZodUnion<[
2295
- z.ZodString,
2296
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
2297
- ]>;
2298
- name: z.ZodOptional<z.ZodString>;
2299
- url: z.ZodOptional<z.ZodString>;
2300
- phone: z.ZodOptional<z.ZodString>;
2301
- description: z.ZodOptional<z.ZodString>;
2302
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2303
- image: z.ZodOptional<z.ZodUnion<[
2304
- z.ZodString,
2305
- z.ZodObject<{
2306
- id: z.ZodString;
2307
- type: z.ZodString;
2308
- caption: z.ZodOptional<z.ZodString>;
2309
- }, "strip", z.ZodTypeAny, {
2310
- type: string;
2311
- id: string;
2312
- caption?: string | undefined;
2313
- }, {
2314
- type: string;
2315
- id: string;
2316
- caption?: string | undefined;
2317
- }>
2318
- ]>>;
2319
- email: z.ZodOptional<z.ZodString>;
2320
- address: z.ZodOptional<z.ZodObject<{
2321
- type: z.ZodUnion<[
2322
- z.ZodString,
2323
- z.ZodArray<z.ZodString, "atleastone">
2324
- ]>;
2325
- addressCountry: z.ZodOptional<z.ZodString>;
2326
- addressCountryCode: z.ZodOptional<z.ZodString>;
2327
- addressRegion: z.ZodOptional<z.ZodString>;
2328
- addressLocality: z.ZodOptional<z.ZodString>;
2329
- streetAddress: z.ZodOptional<z.ZodString>;
2330
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
2331
- postalCode: z.ZodOptional<z.ZodString>;
2332
- geo: z.ZodOptional<z.ZodObject<{
2333
- type: z.ZodUnion<[
2334
- z.ZodString,
2335
- z.ZodArray<z.ZodString, "atleastone">
2336
- ]>;
2337
- latitude: z.ZodNumber;
2338
- longitude: z.ZodNumber;
2339
- }, "strip", z.ZodTypeAny, {
2340
- type: string | [
2341
- string,
2342
- ...string[]
2343
- ];
2344
- latitude: number;
2345
- longitude: number;
2346
- }, {
2347
- type: string | [
2348
- string,
2349
- ...string[]
2350
- ];
2351
- latitude: number;
2352
- longitude: number;
2353
- }>>;
2354
- }, "strip", z.ZodTypeAny, {
2355
- type: string | [
2356
- string,
2357
- ...string[]
2358
- ];
2359
- addressCountry?: string | undefined;
2360
- addressCountryCode?: string | undefined;
2361
- addressRegion?: string | undefined;
2362
- addressLocality?: string | undefined;
2363
- streetAddress?: string | undefined;
2364
- postOfficeBoxNumber?: string | undefined;
2365
- postalCode?: string | undefined;
2366
- geo?: {
2367
- type: string | [
2368
- string,
2369
- ...string[]
2370
- ];
2371
- latitude: number;
2372
- longitude: number;
2373
- } | undefined;
2374
- }, {
2375
- type: string | [
2376
- string,
2377
- ...string[]
2378
- ];
2379
- addressCountry?: string | undefined;
2380
- addressCountryCode?: string | undefined;
2381
- addressRegion?: string | undefined;
2382
- addressLocality?: string | undefined;
2383
- streetAddress?: string | undefined;
2384
- postOfficeBoxNumber?: string | undefined;
2385
- postalCode?: string | undefined;
2386
- geo?: {
2387
- type: string | [
2388
- string,
2389
- ...string[]
2390
- ];
2391
- latitude: number;
2392
- longitude: number;
2393
- } | undefined;
2394
- }>>;
2395
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
2396
- type: z.ZodUnion<[
2397
- z.ZodString,
2398
- z.ZodArray<z.ZodString, "atleastone">
2399
- ]>;
2400
- identifier: z.ZodString;
2401
- identifierType: z.ZodUnion<[
2402
- z.ZodEnum<[
2403
- "sourcedId",
2404
- "systemId",
2405
- "productId",
2406
- "userName",
2407
- "accountId",
2408
- "emailAddress",
2409
- "nationalIdentityNumber",
2410
- "isbn",
2411
- "issn",
2412
- "lisSourcedId",
2413
- "oneRosterSourcedId",
2414
- "sisSourcedId",
2415
- "ltiContextId",
2416
- "ltiDeploymentId",
2417
- "ltiToolId",
2418
- "ltiPlatformId",
2419
- "ltiUserId",
2420
- "identifier"
2421
- ]>,
2422
- z.ZodString
2423
- ]>;
2424
- }, "strip", z.ZodTypeAny, {
2425
- type: string | [
2426
- string,
2427
- ...string[]
2428
- ];
2429
- identifier: string;
2430
- identifierType: string;
2431
- }, {
2432
- type: string | [
2433
- string,
2434
- ...string[]
2435
- ];
2436
- identifier: string;
2437
- identifierType: string;
2438
- }>, "many">>;
2439
- official: z.ZodOptional<z.ZodString>;
2440
- parentOrg: z.ZodOptional<z.ZodAny>;
2441
- familyName: z.ZodOptional<z.ZodString>;
2442
- givenName: z.ZodOptional<z.ZodString>;
2443
- additionalName: z.ZodOptional<z.ZodString>;
2444
- patronymicName: z.ZodOptional<z.ZodString>;
2445
- honorificPrefix: z.ZodOptional<z.ZodString>;
2446
- honorificSuffix: z.ZodOptional<z.ZodString>;
2447
- familyNamePrefix: z.ZodOptional<z.ZodString>;
2448
- dateOfBirth: z.ZodOptional<z.ZodString>;
2449
- }, z.ZodAny, "strip">>
2450
- ]>;
2451
- credentialSubject: z.ZodUnion<[
2452
- z.ZodObject<{
2453
- id: z.ZodOptional<z.ZodString>;
2454
- }, "strip", z.ZodAny, z.objectOutputType<{
2455
- id: z.ZodOptional<z.ZodString>;
2456
- }, z.ZodAny, "strip">, z.objectInputType<{
2457
- id: z.ZodOptional<z.ZodString>;
2458
- }, z.ZodAny, "strip">>,
2459
- z.ZodArray<z.ZodObject<{
2460
- id: z.ZodOptional<z.ZodString>;
2461
- }, "strip", z.ZodAny, z.objectOutputType<{
2462
- id: z.ZodOptional<z.ZodString>;
2463
- }, z.ZodAny, "strip">, z.objectInputType<{
2464
- id: z.ZodOptional<z.ZodString>;
2465
- }, z.ZodAny, "strip">>, "many">
2466
- ]>;
2467
- refreshService: z.ZodOptional<z.ZodUnion<[
2468
- z.ZodObject<{
2469
- id: z.ZodOptional<z.ZodString>;
2470
- type: z.ZodString;
2471
- }, "strip", z.ZodAny, z.objectOutputType<{
2472
- id: z.ZodOptional<z.ZodString>;
2473
- type: z.ZodString;
2474
- }, z.ZodAny, "strip">, z.objectInputType<{
2475
- id: z.ZodOptional<z.ZodString>;
2476
- type: z.ZodString;
2477
- }, z.ZodAny, "strip">>,
2478
- z.ZodArray<z.ZodObject<{
2479
- id: z.ZodOptional<z.ZodString>;
2480
- type: z.ZodString;
2481
- }, "strip", z.ZodAny, z.objectOutputType<{
2482
- id: z.ZodOptional<z.ZodString>;
2483
- type: z.ZodString;
2484
- }, z.ZodAny, "strip">, z.objectInputType<{
2485
- id: z.ZodOptional<z.ZodString>;
2486
- type: z.ZodString;
2487
- }, z.ZodAny, "strip">>, "many">
2488
- ]>>;
2489
- credentialSchema: z.ZodOptional<z.ZodUnion<[
2490
- z.ZodObject<{
2491
- id: z.ZodString;
2492
- type: z.ZodString;
2493
- }, "strip", z.ZodAny, z.objectOutputType<{
2494
- id: z.ZodString;
2495
- type: z.ZodString;
2496
- }, z.ZodAny, "strip">, z.objectInputType<{
2497
- id: z.ZodString;
2498
- type: z.ZodString;
2499
- }, z.ZodAny, "strip">>,
2500
- z.ZodArray<z.ZodObject<{
2501
- id: z.ZodString;
2502
- type: z.ZodString;
2503
- }, "strip", z.ZodAny, z.objectOutputType<{
2504
- id: z.ZodString;
2505
- type: z.ZodString;
2506
- }, z.ZodAny, "strip">, z.objectInputType<{
2507
- id: z.ZodString;
2508
- type: z.ZodString;
2509
- }, z.ZodAny, "strip">>, "many">
2510
- ]>>;
2511
- issuanceDate: z.ZodOptional<z.ZodString>;
2512
- expirationDate: z.ZodOptional<z.ZodString>;
2513
- credentialStatus: z.ZodOptional<z.ZodUnion<[
2514
- z.ZodObject<{
2515
- type: z.ZodString;
2516
- id: z.ZodString;
2517
- }, "strip", z.ZodAny, z.objectOutputType<{
2518
- type: z.ZodString;
2519
- id: z.ZodString;
2520
- }, z.ZodAny, "strip">, z.objectInputType<{
2521
- type: z.ZodString;
2522
- id: z.ZodString;
2523
- }, z.ZodAny, "strip">>,
2524
- z.ZodArray<z.ZodObject<{
2525
- type: z.ZodString;
2526
- id: z.ZodString;
2527
- }, "strip", z.ZodAny, z.objectOutputType<{
2528
- type: z.ZodString;
2529
- id: z.ZodString;
2530
- }, z.ZodAny, "strip">, z.objectInputType<{
2531
- type: z.ZodString;
2532
- id: z.ZodString;
2533
- }, z.ZodAny, "strip">>, "many">
2534
- ]>>;
2535
- name: z.ZodOptional<z.ZodString>;
2536
- description: z.ZodOptional<z.ZodString>;
2537
- validFrom: z.ZodOptional<z.ZodString>;
2538
- validUntil: z.ZodOptional<z.ZodString>;
2539
- status: z.ZodOptional<z.ZodUnion<[
2540
- z.ZodObject<{
2541
- type: z.ZodString;
2542
- id: z.ZodString;
2543
- }, "strip", z.ZodAny, z.objectOutputType<{
2544
- type: z.ZodString;
2545
- id: z.ZodString;
2546
- }, z.ZodAny, "strip">, z.objectInputType<{
2547
- type: z.ZodString;
2548
- id: z.ZodString;
2549
- }, z.ZodAny, "strip">>,
2550
- z.ZodArray<z.ZodObject<{
2551
- type: z.ZodString;
2552
- id: z.ZodString;
2553
- }, "strip", z.ZodAny, z.objectOutputType<{
2554
- type: z.ZodString;
2555
- id: z.ZodString;
2556
- }, z.ZodAny, "strip">, z.objectInputType<{
2557
- type: z.ZodString;
2558
- id: z.ZodString;
2559
- }, z.ZodAny, "strip">>, "many">
2560
- ]>>;
2561
- termsOfUse: z.ZodOptional<z.ZodUnion<[
2562
- z.ZodObject<{
2563
- type: z.ZodString;
2564
- id: z.ZodOptional<z.ZodString>;
2565
- }, "strip", z.ZodAny, z.objectOutputType<{
2566
- type: z.ZodString;
2567
- id: z.ZodOptional<z.ZodString>;
2568
- }, z.ZodAny, "strip">, z.objectInputType<{
2569
- type: z.ZodString;
2570
- id: z.ZodOptional<z.ZodString>;
2571
- }, z.ZodAny, "strip">>,
2572
- z.ZodArray<z.ZodObject<{
2573
- type: z.ZodString;
2574
- id: z.ZodOptional<z.ZodString>;
2575
- }, "strip", z.ZodAny, z.objectOutputType<{
2576
- type: z.ZodString;
2577
- id: z.ZodOptional<z.ZodString>;
2578
- }, z.ZodAny, "strip">, z.objectInputType<{
2579
- type: z.ZodString;
2580
- id: z.ZodOptional<z.ZodString>;
2581
- }, z.ZodAny, "strip">>, "many">
2582
- ]>>;
2583
- evidence: z.ZodOptional<z.ZodUnion<[
2584
- z.ZodObject<{
2585
- type: z.ZodUnion<[
2586
- z.ZodString,
2587
- z.ZodArray<z.ZodString, "atleastone">
2588
- ]>;
2589
- id: z.ZodOptional<z.ZodString>;
2590
- }, "strip", z.ZodAny, z.objectOutputType<{
2591
- type: z.ZodUnion<[
2592
- z.ZodString,
2593
- z.ZodArray<z.ZodString, "atleastone">
2594
- ]>;
2595
- id: z.ZodOptional<z.ZodString>;
2596
- }, z.ZodAny, "strip">, z.objectInputType<{
2597
- type: z.ZodUnion<[
2598
- z.ZodString,
2599
- z.ZodArray<z.ZodString, "atleastone">
2600
- ]>;
2601
- id: z.ZodOptional<z.ZodString>;
2602
- }, z.ZodAny, "strip">>,
2603
- z.ZodArray<z.ZodObject<{
2604
- type: z.ZodUnion<[
2605
- z.ZodString,
2606
- z.ZodArray<z.ZodString, "atleastone">
2607
- ]>;
2608
- id: z.ZodOptional<z.ZodString>;
2609
- }, "strip", z.ZodAny, z.objectOutputType<{
2610
- type: z.ZodUnion<[
2611
- z.ZodString,
2612
- z.ZodArray<z.ZodString, "atleastone">
2613
- ]>;
2614
- id: z.ZodOptional<z.ZodString>;
2615
- }, z.ZodAny, "strip">, z.objectInputType<{
2616
- type: z.ZodUnion<[
2617
- z.ZodString,
2618
- z.ZodArray<z.ZodString, "atleastone">
2619
- ]>;
2620
- id: z.ZodOptional<z.ZodString>;
2621
- }, z.ZodAny, "strip">>, "many">
2622
- ]>>;
2623
- }, {
2624
- proof: z.ZodUnion<[
2625
- z.ZodObject<{
2626
- type: z.ZodString;
2627
- created: z.ZodString;
2628
- challenge: z.ZodOptional<z.ZodString>;
2629
- domain: z.ZodOptional<z.ZodString>;
2630
- nonce: z.ZodOptional<z.ZodString>;
2631
- proofPurpose: z.ZodString;
2632
- verificationMethod: z.ZodString;
2633
- jws: z.ZodOptional<z.ZodString>;
2634
- }, "strip", z.ZodAny, z.objectOutputType<{
2635
- type: z.ZodString;
2636
- created: z.ZodString;
2637
- challenge: z.ZodOptional<z.ZodString>;
2638
- domain: z.ZodOptional<z.ZodString>;
2639
- nonce: z.ZodOptional<z.ZodString>;
2640
- proofPurpose: z.ZodString;
2641
- verificationMethod: z.ZodString;
2642
- jws: z.ZodOptional<z.ZodString>;
2643
- }, z.ZodAny, "strip">, z.objectInputType<{
2644
- type: z.ZodString;
2645
- created: z.ZodString;
2646
- challenge: z.ZodOptional<z.ZodString>;
2647
- domain: z.ZodOptional<z.ZodString>;
2648
- nonce: z.ZodOptional<z.ZodString>;
2649
- proofPurpose: z.ZodString;
2650
- verificationMethod: z.ZodString;
2651
- jws: z.ZodOptional<z.ZodString>;
2652
- }, z.ZodAny, "strip">>,
2653
- z.ZodArray<z.ZodObject<{
2654
- type: z.ZodString;
2655
- created: z.ZodString;
2656
- challenge: z.ZodOptional<z.ZodString>;
2657
- domain: z.ZodOptional<z.ZodString>;
2658
- nonce: z.ZodOptional<z.ZodString>;
2659
- proofPurpose: z.ZodString;
2660
- verificationMethod: z.ZodString;
2661
- jws: z.ZodOptional<z.ZodString>;
2662
- }, "strip", z.ZodAny, z.objectOutputType<{
2663
- type: z.ZodString;
2664
- created: z.ZodString;
2665
- challenge: z.ZodOptional<z.ZodString>;
2666
- domain: z.ZodOptional<z.ZodString>;
2667
- nonce: z.ZodOptional<z.ZodString>;
2668
- proofPurpose: z.ZodString;
2669
- verificationMethod: z.ZodString;
2670
- jws: z.ZodOptional<z.ZodString>;
2671
- }, z.ZodAny, "strip">, z.objectInputType<{
2672
- type: z.ZodString;
2673
- created: z.ZodString;
2674
- challenge: z.ZodOptional<z.ZodString>;
2675
- domain: z.ZodOptional<z.ZodString>;
2676
- nonce: z.ZodOptional<z.ZodString>;
2677
- proofPurpose: z.ZodString;
2678
- verificationMethod: z.ZodString;
2679
- jws: z.ZodOptional<z.ZodString>;
2680
- }, z.ZodAny, "strip">>, "many">
2681
- ]>;
2682
- }>, "strip", z.ZodAny, z.objectOutputType<z.objectUtil.extendShape<{
2683
- "@context": z.ZodArray<z.ZodUnion<[
2684
- z.ZodString,
2685
- z.ZodRecord<z.ZodString, z.ZodAny>
2686
- ]>, "many">;
2687
- id: z.ZodOptional<z.ZodString>;
2688
- type: z.ZodArray<z.ZodString, "atleastone">;
2689
- issuer: z.ZodUnion<[
2690
- z.ZodString,
2691
- z.ZodObject<{
2692
- id: z.ZodOptional<z.ZodString>;
2693
- type: z.ZodUnion<[
2694
- z.ZodString,
2695
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
2696
- ]>;
2697
- name: z.ZodOptional<z.ZodString>;
2698
- url: z.ZodOptional<z.ZodString>;
2699
- phone: z.ZodOptional<z.ZodString>;
2700
- description: z.ZodOptional<z.ZodString>;
2701
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2702
- image: z.ZodOptional<z.ZodUnion<[
2703
- z.ZodString,
2704
- z.ZodObject<{
2705
- id: z.ZodString;
2706
- type: z.ZodString;
2707
- caption: z.ZodOptional<z.ZodString>;
2708
- }, "strip", z.ZodTypeAny, {
2709
- type: string;
2710
- id: string;
2711
- caption?: string | undefined;
2712
- }, {
2713
- type: string;
2714
- id: string;
2715
- caption?: string | undefined;
2716
- }>
2717
- ]>>;
2718
- email: z.ZodOptional<z.ZodString>;
2719
- address: z.ZodOptional<z.ZodObject<{
2720
- type: z.ZodUnion<[
2721
- z.ZodString,
2722
- z.ZodArray<z.ZodString, "atleastone">
2723
- ]>;
2724
- addressCountry: z.ZodOptional<z.ZodString>;
2725
- addressCountryCode: z.ZodOptional<z.ZodString>;
2726
- addressRegion: z.ZodOptional<z.ZodString>;
2727
- addressLocality: z.ZodOptional<z.ZodString>;
2728
- streetAddress: z.ZodOptional<z.ZodString>;
2729
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
2730
- postalCode: z.ZodOptional<z.ZodString>;
2731
- geo: z.ZodOptional<z.ZodObject<{
2732
- type: z.ZodUnion<[
2733
- z.ZodString,
2734
- z.ZodArray<z.ZodString, "atleastone">
2735
- ]>;
2736
- latitude: z.ZodNumber;
2737
- longitude: z.ZodNumber;
2738
- }, "strip", z.ZodTypeAny, {
2739
- type: string | [
2740
- string,
2741
- ...string[]
2742
- ];
2743
- latitude: number;
2744
- longitude: number;
2745
- }, {
2746
- type: string | [
2747
- string,
2748
- ...string[]
2749
- ];
2750
- latitude: number;
2751
- longitude: number;
2752
- }>>;
2753
- }, "strip", z.ZodTypeAny, {
2754
- type: string | [
2755
- string,
2756
- ...string[]
2757
- ];
2758
- addressCountry?: string | undefined;
2759
- addressCountryCode?: string | undefined;
2760
- addressRegion?: string | undefined;
2761
- addressLocality?: string | undefined;
2762
- streetAddress?: string | undefined;
2763
- postOfficeBoxNumber?: string | undefined;
2764
- postalCode?: string | undefined;
2765
- geo?: {
2766
- type: string | [
2767
- string,
2768
- ...string[]
2769
- ];
2770
- latitude: number;
2771
- longitude: number;
2772
- } | undefined;
2773
- }, {
2774
- type: string | [
2775
- string,
2776
- ...string[]
2777
- ];
2778
- addressCountry?: string | undefined;
2779
- addressCountryCode?: string | undefined;
2780
- addressRegion?: string | undefined;
2781
- addressLocality?: string | undefined;
2782
- streetAddress?: string | undefined;
2783
- postOfficeBoxNumber?: string | undefined;
2784
- postalCode?: string | undefined;
2785
- geo?: {
2786
- type: string | [
2787
- string,
2788
- ...string[]
2789
- ];
2790
- latitude: number;
2791
- longitude: number;
2792
- } | undefined;
2793
- }>>;
2794
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
2795
- type: z.ZodUnion<[
2796
- z.ZodString,
2797
- z.ZodArray<z.ZodString, "atleastone">
2798
- ]>;
2799
- identifier: z.ZodString;
2800
- identifierType: z.ZodUnion<[
2801
- z.ZodEnum<[
2802
- "sourcedId",
2803
- "systemId",
2804
- "productId",
2805
- "userName",
2806
- "accountId",
2807
- "emailAddress",
2808
- "nationalIdentityNumber",
2809
- "isbn",
2810
- "issn",
2811
- "lisSourcedId",
2812
- "oneRosterSourcedId",
2813
- "sisSourcedId",
2814
- "ltiContextId",
2815
- "ltiDeploymentId",
2816
- "ltiToolId",
2817
- "ltiPlatformId",
2818
- "ltiUserId",
2819
- "identifier"
2820
- ]>,
2821
- z.ZodString
2822
- ]>;
2823
- }, "strip", z.ZodTypeAny, {
2824
- type: string | [
2825
- string,
2826
- ...string[]
2827
- ];
2828
- identifier: string;
2829
- identifierType: string;
2830
- }, {
2831
- type: string | [
2832
- string,
2833
- ...string[]
2834
- ];
2835
- identifier: string;
2836
- identifierType: string;
2837
- }>, "many">>;
2838
- official: z.ZodOptional<z.ZodString>;
2839
- parentOrg: z.ZodOptional<z.ZodAny>;
2840
- familyName: z.ZodOptional<z.ZodString>;
2841
- givenName: z.ZodOptional<z.ZodString>;
2842
- additionalName: z.ZodOptional<z.ZodString>;
2843
- patronymicName: z.ZodOptional<z.ZodString>;
2844
- honorificPrefix: z.ZodOptional<z.ZodString>;
2845
- honorificSuffix: z.ZodOptional<z.ZodString>;
2846
- familyNamePrefix: z.ZodOptional<z.ZodString>;
2847
- dateOfBirth: z.ZodOptional<z.ZodString>;
2848
- }, "strip", z.ZodAny, z.objectOutputType<{
2849
- id: z.ZodOptional<z.ZodString>;
2850
- type: z.ZodUnion<[
2851
- z.ZodString,
2852
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
2853
- ]>;
2854
- name: z.ZodOptional<z.ZodString>;
2855
- url: z.ZodOptional<z.ZodString>;
2856
- phone: z.ZodOptional<z.ZodString>;
2857
- description: z.ZodOptional<z.ZodString>;
2858
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2859
- image: z.ZodOptional<z.ZodUnion<[
2860
- z.ZodString,
2861
- z.ZodObject<{
2862
- id: z.ZodString;
2863
- type: z.ZodString;
2864
- caption: z.ZodOptional<z.ZodString>;
2865
- }, "strip", z.ZodTypeAny, {
2866
- type: string;
2867
- id: string;
2868
- caption?: string | undefined;
2869
- }, {
2870
- type: string;
2871
- id: string;
2872
- caption?: string | undefined;
2873
- }>
2874
- ]>>;
2875
- email: z.ZodOptional<z.ZodString>;
2876
- address: z.ZodOptional<z.ZodObject<{
2877
- type: z.ZodUnion<[
2878
- z.ZodString,
2879
- z.ZodArray<z.ZodString, "atleastone">
2880
- ]>;
2881
- addressCountry: z.ZodOptional<z.ZodString>;
2882
- addressCountryCode: z.ZodOptional<z.ZodString>;
2883
- addressRegion: z.ZodOptional<z.ZodString>;
2884
- addressLocality: z.ZodOptional<z.ZodString>;
2885
- streetAddress: z.ZodOptional<z.ZodString>;
2886
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
2887
- postalCode: z.ZodOptional<z.ZodString>;
2888
- geo: z.ZodOptional<z.ZodObject<{
2889
- type: z.ZodUnion<[
2890
- z.ZodString,
2891
- z.ZodArray<z.ZodString, "atleastone">
2892
- ]>;
2893
- latitude: z.ZodNumber;
2894
- longitude: z.ZodNumber;
2895
- }, "strip", z.ZodTypeAny, {
2896
- type: string | [
2897
- string,
2898
- ...string[]
2899
- ];
2900
- latitude: number;
2901
- longitude: number;
2902
- }, {
2903
- type: string | [
2904
- string,
2905
- ...string[]
2906
- ];
2907
- latitude: number;
2908
- longitude: number;
2909
- }>>;
2910
- }, "strip", z.ZodTypeAny, {
2911
- type: string | [
2912
- string,
2913
- ...string[]
2914
- ];
2915
- addressCountry?: string | undefined;
2916
- addressCountryCode?: string | undefined;
2917
- addressRegion?: string | undefined;
2918
- addressLocality?: string | undefined;
2919
- streetAddress?: string | undefined;
2920
- postOfficeBoxNumber?: string | undefined;
2921
- postalCode?: string | undefined;
2922
- geo?: {
2923
- type: string | [
2924
- string,
2925
- ...string[]
2926
- ];
2927
- latitude: number;
2928
- longitude: number;
2929
- } | undefined;
2930
- }, {
2931
- type: string | [
2932
- string,
2933
- ...string[]
2934
- ];
2935
- addressCountry?: string | undefined;
2936
- addressCountryCode?: string | undefined;
2937
- addressRegion?: string | undefined;
2938
- addressLocality?: string | undefined;
2939
- streetAddress?: string | undefined;
2940
- postOfficeBoxNumber?: string | undefined;
2941
- postalCode?: string | undefined;
2942
- geo?: {
2943
- type: string | [
2944
- string,
2945
- ...string[]
2946
- ];
2947
- latitude: number;
2948
- longitude: number;
2949
- } | undefined;
2950
- }>>;
2951
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
2952
- type: z.ZodUnion<[
2953
- z.ZodString,
2954
- z.ZodArray<z.ZodString, "atleastone">
2955
- ]>;
2956
- identifier: z.ZodString;
2957
- identifierType: z.ZodUnion<[
2958
- z.ZodEnum<[
2959
- "sourcedId",
2960
- "systemId",
2961
- "productId",
2962
- "userName",
2963
- "accountId",
2964
- "emailAddress",
2965
- "nationalIdentityNumber",
2966
- "isbn",
2967
- "issn",
2968
- "lisSourcedId",
2969
- "oneRosterSourcedId",
2970
- "sisSourcedId",
2971
- "ltiContextId",
2972
- "ltiDeploymentId",
2973
- "ltiToolId",
2974
- "ltiPlatformId",
2975
- "ltiUserId",
2976
- "identifier"
2977
- ]>,
2978
- z.ZodString
2979
- ]>;
2980
- }, "strip", z.ZodTypeAny, {
2981
- type: string | [
2982
- string,
2983
- ...string[]
2984
- ];
2985
- identifier: string;
2986
- identifierType: string;
2987
- }, {
2988
- type: string | [
2989
- string,
2990
- ...string[]
2991
- ];
2992
- identifier: string;
2993
- identifierType: string;
2994
- }>, "many">>;
2995
- official: z.ZodOptional<z.ZodString>;
2996
- parentOrg: z.ZodOptional<z.ZodAny>;
2997
- familyName: z.ZodOptional<z.ZodString>;
2998
- givenName: z.ZodOptional<z.ZodString>;
2999
- additionalName: z.ZodOptional<z.ZodString>;
3000
- patronymicName: z.ZodOptional<z.ZodString>;
3001
- honorificPrefix: z.ZodOptional<z.ZodString>;
3002
- honorificSuffix: z.ZodOptional<z.ZodString>;
3003
- familyNamePrefix: z.ZodOptional<z.ZodString>;
3004
- dateOfBirth: z.ZodOptional<z.ZodString>;
3005
- }, z.ZodAny, "strip">, z.objectInputType<{
3006
- id: z.ZodOptional<z.ZodString>;
3007
- type: z.ZodUnion<[
3008
- z.ZodString,
3009
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
3010
- ]>;
3011
- name: z.ZodOptional<z.ZodString>;
3012
- url: z.ZodOptional<z.ZodString>;
3013
- phone: z.ZodOptional<z.ZodString>;
3014
- description: z.ZodOptional<z.ZodString>;
3015
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
3016
- image: z.ZodOptional<z.ZodUnion<[
3017
- z.ZodString,
3018
- z.ZodObject<{
3019
- id: z.ZodString;
3020
- type: z.ZodString;
3021
- caption: z.ZodOptional<z.ZodString>;
3022
- }, "strip", z.ZodTypeAny, {
3023
- type: string;
3024
- id: string;
3025
- caption?: string | undefined;
3026
- }, {
3027
- type: string;
3028
- id: string;
3029
- caption?: string | undefined;
3030
- }>
3031
- ]>>;
3032
- email: z.ZodOptional<z.ZodString>;
3033
- address: z.ZodOptional<z.ZodObject<{
3034
- type: z.ZodUnion<[
3035
- z.ZodString,
3036
- z.ZodArray<z.ZodString, "atleastone">
3037
- ]>;
3038
- addressCountry: z.ZodOptional<z.ZodString>;
3039
- addressCountryCode: z.ZodOptional<z.ZodString>;
3040
- addressRegion: z.ZodOptional<z.ZodString>;
3041
- addressLocality: z.ZodOptional<z.ZodString>;
3042
- streetAddress: z.ZodOptional<z.ZodString>;
3043
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
3044
- postalCode: z.ZodOptional<z.ZodString>;
3045
- geo: z.ZodOptional<z.ZodObject<{
3046
- type: z.ZodUnion<[
3047
- z.ZodString,
3048
- z.ZodArray<z.ZodString, "atleastone">
3049
- ]>;
3050
- latitude: z.ZodNumber;
3051
- longitude: z.ZodNumber;
3052
- }, "strip", z.ZodTypeAny, {
3053
- type: string | [
3054
- string,
3055
- ...string[]
3056
- ];
3057
- latitude: number;
3058
- longitude: number;
3059
- }, {
3060
- type: string | [
3061
- string,
3062
- ...string[]
3063
- ];
3064
- latitude: number;
3065
- longitude: number;
3066
- }>>;
3067
- }, "strip", z.ZodTypeAny, {
3068
- type: string | [
3069
- string,
3070
- ...string[]
3071
- ];
3072
- addressCountry?: string | undefined;
3073
- addressCountryCode?: string | undefined;
3074
- addressRegion?: string | undefined;
3075
- addressLocality?: string | undefined;
3076
- streetAddress?: string | undefined;
3077
- postOfficeBoxNumber?: string | undefined;
3078
- postalCode?: string | undefined;
3079
- geo?: {
3080
- type: string | [
3081
- string,
3082
- ...string[]
3083
- ];
3084
- latitude: number;
3085
- longitude: number;
3086
- } | undefined;
3087
- }, {
3088
- type: string | [
3089
- string,
3090
- ...string[]
3091
- ];
3092
- addressCountry?: string | undefined;
3093
- addressCountryCode?: string | undefined;
3094
- addressRegion?: string | undefined;
3095
- addressLocality?: string | undefined;
3096
- streetAddress?: string | undefined;
3097
- postOfficeBoxNumber?: string | undefined;
3098
- postalCode?: string | undefined;
3099
- geo?: {
3100
- type: string | [
3101
- string,
3102
- ...string[]
3103
- ];
3104
- latitude: number;
3105
- longitude: number;
3106
- } | undefined;
3107
- }>>;
3108
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
3109
- type: z.ZodUnion<[
3110
- z.ZodString,
3111
- z.ZodArray<z.ZodString, "atleastone">
3112
- ]>;
3113
- identifier: z.ZodString;
3114
- identifierType: z.ZodUnion<[
3115
- z.ZodEnum<[
3116
- "sourcedId",
3117
- "systemId",
3118
- "productId",
3119
- "userName",
3120
- "accountId",
3121
- "emailAddress",
3122
- "nationalIdentityNumber",
3123
- "isbn",
3124
- "issn",
3125
- "lisSourcedId",
3126
- "oneRosterSourcedId",
3127
- "sisSourcedId",
3128
- "ltiContextId",
3129
- "ltiDeploymentId",
3130
- "ltiToolId",
3131
- "ltiPlatformId",
3132
- "ltiUserId",
3133
- "identifier"
3134
- ]>,
3135
- z.ZodString
3136
- ]>;
3137
- }, "strip", z.ZodTypeAny, {
3138
- type: string | [
3139
- string,
3140
- ...string[]
3141
- ];
3142
- identifier: string;
3143
- identifierType: string;
3144
- }, {
3145
- type: string | [
3146
- string,
3147
- ...string[]
3148
- ];
3149
- identifier: string;
3150
- identifierType: string;
3151
- }>, "many">>;
3152
- official: z.ZodOptional<z.ZodString>;
3153
- parentOrg: z.ZodOptional<z.ZodAny>;
3154
- familyName: z.ZodOptional<z.ZodString>;
3155
- givenName: z.ZodOptional<z.ZodString>;
3156
- additionalName: z.ZodOptional<z.ZodString>;
3157
- patronymicName: z.ZodOptional<z.ZodString>;
3158
- honorificPrefix: z.ZodOptional<z.ZodString>;
3159
- honorificSuffix: z.ZodOptional<z.ZodString>;
3160
- familyNamePrefix: z.ZodOptional<z.ZodString>;
3161
- dateOfBirth: z.ZodOptional<z.ZodString>;
3162
- }, z.ZodAny, "strip">>
3163
- ]>;
3164
- credentialSubject: z.ZodUnion<[
3165
- z.ZodObject<{
3166
- id: z.ZodOptional<z.ZodString>;
3167
- }, "strip", z.ZodAny, z.objectOutputType<{
3168
- id: z.ZodOptional<z.ZodString>;
3169
- }, z.ZodAny, "strip">, z.objectInputType<{
3170
- id: z.ZodOptional<z.ZodString>;
3171
- }, z.ZodAny, "strip">>,
3172
- z.ZodArray<z.ZodObject<{
3173
- id: z.ZodOptional<z.ZodString>;
3174
- }, "strip", z.ZodAny, z.objectOutputType<{
3175
- id: z.ZodOptional<z.ZodString>;
3176
- }, z.ZodAny, "strip">, z.objectInputType<{
3177
- id: z.ZodOptional<z.ZodString>;
3178
- }, z.ZodAny, "strip">>, "many">
3179
- ]>;
3180
- refreshService: z.ZodOptional<z.ZodUnion<[
3181
- z.ZodObject<{
3182
- id: z.ZodOptional<z.ZodString>;
3183
- type: z.ZodString;
3184
- }, "strip", z.ZodAny, z.objectOutputType<{
3185
- id: z.ZodOptional<z.ZodString>;
3186
- type: z.ZodString;
3187
- }, z.ZodAny, "strip">, z.objectInputType<{
3188
- id: z.ZodOptional<z.ZodString>;
3189
- type: z.ZodString;
3190
- }, z.ZodAny, "strip">>,
3191
- z.ZodArray<z.ZodObject<{
3192
- id: z.ZodOptional<z.ZodString>;
3193
- type: z.ZodString;
3194
- }, "strip", z.ZodAny, z.objectOutputType<{
3195
- id: z.ZodOptional<z.ZodString>;
3196
- type: z.ZodString;
3197
- }, z.ZodAny, "strip">, z.objectInputType<{
3198
- id: z.ZodOptional<z.ZodString>;
3199
- type: z.ZodString;
3200
- }, z.ZodAny, "strip">>, "many">
3201
- ]>>;
3202
- credentialSchema: z.ZodOptional<z.ZodUnion<[
3203
- z.ZodObject<{
3204
- id: z.ZodString;
3205
- type: z.ZodString;
3206
- }, "strip", z.ZodAny, z.objectOutputType<{
3207
- id: z.ZodString;
3208
- type: z.ZodString;
3209
- }, z.ZodAny, "strip">, z.objectInputType<{
3210
- id: z.ZodString;
3211
- type: z.ZodString;
3212
- }, z.ZodAny, "strip">>,
3213
- z.ZodArray<z.ZodObject<{
3214
- id: z.ZodString;
3215
- type: z.ZodString;
3216
- }, "strip", z.ZodAny, z.objectOutputType<{
3217
- id: z.ZodString;
3218
- type: z.ZodString;
3219
- }, z.ZodAny, "strip">, z.objectInputType<{
3220
- id: z.ZodString;
3221
- type: z.ZodString;
3222
- }, z.ZodAny, "strip">>, "many">
3223
- ]>>;
3224
- issuanceDate: z.ZodOptional<z.ZodString>;
3225
- expirationDate: z.ZodOptional<z.ZodString>;
3226
- credentialStatus: z.ZodOptional<z.ZodUnion<[
3227
- z.ZodObject<{
3228
- type: z.ZodString;
3229
- id: z.ZodString;
3230
- }, "strip", z.ZodAny, z.objectOutputType<{
3231
- type: z.ZodString;
3232
- id: z.ZodString;
3233
- }, z.ZodAny, "strip">, z.objectInputType<{
3234
- type: z.ZodString;
3235
- id: z.ZodString;
3236
- }, z.ZodAny, "strip">>,
3237
- z.ZodArray<z.ZodObject<{
3238
- type: z.ZodString;
3239
- id: z.ZodString;
3240
- }, "strip", z.ZodAny, z.objectOutputType<{
3241
- type: z.ZodString;
3242
- id: z.ZodString;
3243
- }, z.ZodAny, "strip">, z.objectInputType<{
3244
- type: z.ZodString;
3245
- id: z.ZodString;
3246
- }, z.ZodAny, "strip">>, "many">
3247
- ]>>;
3248
- name: z.ZodOptional<z.ZodString>;
3249
- description: z.ZodOptional<z.ZodString>;
3250
- validFrom: z.ZodOptional<z.ZodString>;
3251
- validUntil: z.ZodOptional<z.ZodString>;
3252
- status: z.ZodOptional<z.ZodUnion<[
3253
- z.ZodObject<{
3254
- type: z.ZodString;
3255
- id: z.ZodString;
3256
- }, "strip", z.ZodAny, z.objectOutputType<{
3257
- type: z.ZodString;
3258
- id: z.ZodString;
3259
- }, z.ZodAny, "strip">, z.objectInputType<{
3260
- type: z.ZodString;
3261
- id: z.ZodString;
3262
- }, z.ZodAny, "strip">>,
3263
- z.ZodArray<z.ZodObject<{
3264
- type: z.ZodString;
3265
- id: z.ZodString;
3266
- }, "strip", z.ZodAny, z.objectOutputType<{
3267
- type: z.ZodString;
3268
- id: z.ZodString;
3269
- }, z.ZodAny, "strip">, z.objectInputType<{
3270
- type: z.ZodString;
3271
- id: z.ZodString;
3272
- }, z.ZodAny, "strip">>, "many">
3273
- ]>>;
3274
- termsOfUse: z.ZodOptional<z.ZodUnion<[
3275
- z.ZodObject<{
3276
- type: z.ZodString;
3277
- id: z.ZodOptional<z.ZodString>;
3278
- }, "strip", z.ZodAny, z.objectOutputType<{
3279
- type: z.ZodString;
3280
- id: z.ZodOptional<z.ZodString>;
3281
- }, z.ZodAny, "strip">, z.objectInputType<{
3282
- type: z.ZodString;
3283
- id: z.ZodOptional<z.ZodString>;
3284
- }, z.ZodAny, "strip">>,
3285
- z.ZodArray<z.ZodObject<{
3286
- type: z.ZodString;
3287
- id: z.ZodOptional<z.ZodString>;
3288
- }, "strip", z.ZodAny, z.objectOutputType<{
3289
- type: z.ZodString;
3290
- id: z.ZodOptional<z.ZodString>;
3291
- }, z.ZodAny, "strip">, z.objectInputType<{
3292
- type: z.ZodString;
3293
- id: z.ZodOptional<z.ZodString>;
3294
- }, z.ZodAny, "strip">>, "many">
3295
- ]>>;
3296
- evidence: z.ZodOptional<z.ZodUnion<[
3297
- z.ZodObject<{
3298
- type: z.ZodUnion<[
3299
- z.ZodString,
3300
- z.ZodArray<z.ZodString, "atleastone">
3301
- ]>;
3302
- id: z.ZodOptional<z.ZodString>;
3303
- }, "strip", z.ZodAny, z.objectOutputType<{
3304
- type: z.ZodUnion<[
3305
- z.ZodString,
3306
- z.ZodArray<z.ZodString, "atleastone">
3307
- ]>;
3308
- id: z.ZodOptional<z.ZodString>;
3309
- }, z.ZodAny, "strip">, z.objectInputType<{
3310
- type: z.ZodUnion<[
3311
- z.ZodString,
3312
- z.ZodArray<z.ZodString, "atleastone">
3313
- ]>;
3314
- id: z.ZodOptional<z.ZodString>;
3315
- }, z.ZodAny, "strip">>,
3316
- z.ZodArray<z.ZodObject<{
3317
- type: z.ZodUnion<[
3318
- z.ZodString,
3319
- z.ZodArray<z.ZodString, "atleastone">
3320
- ]>;
3321
- id: z.ZodOptional<z.ZodString>;
3322
- }, "strip", z.ZodAny, z.objectOutputType<{
3323
- type: z.ZodUnion<[
3324
- z.ZodString,
3325
- z.ZodArray<z.ZodString, "atleastone">
3326
- ]>;
3327
- id: z.ZodOptional<z.ZodString>;
3328
- }, z.ZodAny, "strip">, z.objectInputType<{
3329
- type: z.ZodUnion<[
3330
- z.ZodString,
3331
- z.ZodArray<z.ZodString, "atleastone">
3332
- ]>;
3333
- id: z.ZodOptional<z.ZodString>;
3334
- }, z.ZodAny, "strip">>, "many">
3335
- ]>>;
3336
- }, {
3337
- proof: z.ZodUnion<[
3338
- z.ZodObject<{
3339
- type: z.ZodString;
3340
- created: z.ZodString;
3341
- challenge: z.ZodOptional<z.ZodString>;
3342
- domain: z.ZodOptional<z.ZodString>;
3343
- nonce: z.ZodOptional<z.ZodString>;
3344
- proofPurpose: z.ZodString;
3345
- verificationMethod: z.ZodString;
3346
- jws: z.ZodOptional<z.ZodString>;
3347
- }, "strip", z.ZodAny, z.objectOutputType<{
3348
- type: z.ZodString;
3349
- created: z.ZodString;
3350
- challenge: z.ZodOptional<z.ZodString>;
3351
- domain: z.ZodOptional<z.ZodString>;
3352
- nonce: z.ZodOptional<z.ZodString>;
3353
- proofPurpose: z.ZodString;
3354
- verificationMethod: z.ZodString;
3355
- jws: z.ZodOptional<z.ZodString>;
3356
- }, z.ZodAny, "strip">, z.objectInputType<{
3357
- type: z.ZodString;
3358
- created: z.ZodString;
3359
- challenge: z.ZodOptional<z.ZodString>;
3360
- domain: z.ZodOptional<z.ZodString>;
3361
- nonce: z.ZodOptional<z.ZodString>;
3362
- proofPurpose: z.ZodString;
3363
- verificationMethod: z.ZodString;
3364
- jws: z.ZodOptional<z.ZodString>;
3365
- }, z.ZodAny, "strip">>,
3366
- z.ZodArray<z.ZodObject<{
3367
- type: z.ZodString;
3368
- created: z.ZodString;
3369
- challenge: z.ZodOptional<z.ZodString>;
3370
- domain: z.ZodOptional<z.ZodString>;
3371
- nonce: z.ZodOptional<z.ZodString>;
3372
- proofPurpose: z.ZodString;
3373
- verificationMethod: z.ZodString;
3374
- jws: z.ZodOptional<z.ZodString>;
3375
- }, "strip", z.ZodAny, z.objectOutputType<{
3376
- type: z.ZodString;
3377
- created: z.ZodString;
3378
- challenge: z.ZodOptional<z.ZodString>;
3379
- domain: z.ZodOptional<z.ZodString>;
3380
- nonce: z.ZodOptional<z.ZodString>;
3381
- proofPurpose: z.ZodString;
3382
- verificationMethod: z.ZodString;
3383
- jws: z.ZodOptional<z.ZodString>;
3384
- }, z.ZodAny, "strip">, z.objectInputType<{
3385
- type: z.ZodString;
3386
- created: z.ZodString;
3387
- challenge: z.ZodOptional<z.ZodString>;
3388
- domain: z.ZodOptional<z.ZodString>;
3389
- nonce: z.ZodOptional<z.ZodString>;
3390
- proofPurpose: z.ZodString;
3391
- verificationMethod: z.ZodString;
3392
- jws: z.ZodOptional<z.ZodString>;
3393
- }, z.ZodAny, "strip">>, "many">
3394
- ]>;
3395
- }>, z.ZodAny, "strip">, z.objectInputType<z.objectUtil.extendShape<{
3396
- "@context": z.ZodArray<z.ZodUnion<[
3397
- z.ZodString,
3398
- z.ZodRecord<z.ZodString, z.ZodAny>
3399
- ]>, "many">;
3400
- id: z.ZodOptional<z.ZodString>;
3401
- type: z.ZodArray<z.ZodString, "atleastone">;
3402
- issuer: z.ZodUnion<[
3403
- z.ZodString,
3404
- z.ZodObject<{
3405
- id: z.ZodOptional<z.ZodString>;
3406
- type: z.ZodUnion<[
3407
- z.ZodString,
3408
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
3409
- ]>;
3410
- name: z.ZodOptional<z.ZodString>;
3411
- url: z.ZodOptional<z.ZodString>;
3412
- phone: z.ZodOptional<z.ZodString>;
3413
- description: z.ZodOptional<z.ZodString>;
3414
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
3415
- image: z.ZodOptional<z.ZodUnion<[
3416
- z.ZodString,
3417
- z.ZodObject<{
3418
- id: z.ZodString;
3419
- type: z.ZodString;
3420
- caption: z.ZodOptional<z.ZodString>;
3421
- }, "strip", z.ZodTypeAny, {
3422
- type: string;
3423
- id: string;
3424
- caption?: string | undefined;
3425
- }, {
3426
- type: string;
3427
- id: string;
3428
- caption?: string | undefined;
3429
- }>
3430
- ]>>;
3431
- email: z.ZodOptional<z.ZodString>;
3432
- address: z.ZodOptional<z.ZodObject<{
3433
- type: z.ZodUnion<[
3434
- z.ZodString,
3435
- z.ZodArray<z.ZodString, "atleastone">
3436
- ]>;
3437
- addressCountry: z.ZodOptional<z.ZodString>;
3438
- addressCountryCode: z.ZodOptional<z.ZodString>;
3439
- addressRegion: z.ZodOptional<z.ZodString>;
3440
- addressLocality: z.ZodOptional<z.ZodString>;
3441
- streetAddress: z.ZodOptional<z.ZodString>;
3442
- postOfficeBoxNumber: z.ZodOptional<z.ZodString>;
3443
- postalCode: z.ZodOptional<z.ZodString>;
3444
- geo: z.ZodOptional<z.ZodObject<{
3445
- type: z.ZodUnion<[
3446
- z.ZodString,
3447
- z.ZodArray<z.ZodString, "atleastone">
3448
- ]>;
3449
- latitude: z.ZodNumber;
3450
- longitude: z.ZodNumber;
3451
- }, "strip", z.ZodTypeAny, {
3452
- type: string | [
3453
- string,
3454
- ...string[]
3455
- ];
3456
- latitude: number;
3457
- longitude: number;
3458
- }, {
3459
- type: string | [
3460
- string,
3461
- ...string[]
3462
- ];
3463
- latitude: number;
3464
- longitude: number;
3465
- }>>;
3466
- }, "strip", z.ZodTypeAny, {
3467
- type: string | [
3468
- string,
3469
- ...string[]
3470
- ];
3471
- addressCountry?: string | undefined;
3472
- addressCountryCode?: string | undefined;
3473
- addressRegion?: string | undefined;
3474
- addressLocality?: string | undefined;
3475
- streetAddress?: string | undefined;
3476
- postOfficeBoxNumber?: string | undefined;
3477
- postalCode?: string | undefined;
3478
- geo?: {
3479
- type: string | [
3480
- string,
3481
- ...string[]
3482
- ];
3483
- latitude: number;
3484
- longitude: number;
3485
- } | undefined;
3486
- }, {
3487
- type: string | [
3488
- string,
3489
- ...string[]
3490
- ];
3491
- addressCountry?: string | undefined;
3492
- addressCountryCode?: string | undefined;
3493
- addressRegion?: string | undefined;
3494
- addressLocality?: string | undefined;
3495
- streetAddress?: string | undefined;
3496
- postOfficeBoxNumber?: string | undefined;
3497
- postalCode?: string | undefined;
3498
- geo?: {
3499
- type: string | [
3500
- string,
3501
- ...string[]
3502
- ];
3503
- latitude: number;
3504
- longitude: number;
3505
- } | undefined;
3506
- }>>;
3507
- otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
3508
- type: z.ZodUnion<[
3509
- z.ZodString,
3510
- z.ZodArray<z.ZodString, "atleastone">
3511
- ]>;
3512
- identifier: z.ZodString;
3513
- identifierType: z.ZodUnion<[
3514
- z.ZodEnum<[
3515
- "sourcedId",
3516
- "systemId",
3517
- "productId",
3518
- "userName",
3519
- "accountId",
3520
- "emailAddress",
3521
- "nationalIdentityNumber",
3522
- "isbn",
3523
- "issn",
3524
- "lisSourcedId",
3525
- "oneRosterSourcedId",
3526
- "sisSourcedId",
3527
- "ltiContextId",
3528
- "ltiDeploymentId",
3529
- "ltiToolId",
3530
- "ltiPlatformId",
3531
- "ltiUserId",
3532
- "identifier"
3533
- ]>,
3534
- z.ZodString
3535
- ]>;
3536
- }, "strip", z.ZodTypeAny, {
3537
- type: string | [
3538
- string,
3539
- ...string[]
3540
- ];
3541
- identifier: string;
3542
- identifierType: string;
3543
- }, {
3544
- type: string | [
3545
- string,
3546
- ...string[]
3547
- ];
3548
- identifier: string;
3549
- identifierType: string;
3550
- }>, "many">>;
3551
- official: z.ZodOptional<z.ZodString>;
3552
- parentOrg: z.ZodOptional<z.ZodAny>;
3553
- familyName: z.ZodOptional<z.ZodString>;
3554
- givenName: z.ZodOptional<z.ZodString>;
3555
- additionalName: z.ZodOptional<z.ZodString>;
3556
- patronymicName: z.ZodOptional<z.ZodString>;
3557
- honorificPrefix: z.ZodOptional<z.ZodString>;
3558
- honorificSuffix: z.ZodOptional<z.ZodString>;
3559
- familyNamePrefix: z.ZodOptional<z.ZodString>;
3560
- dateOfBirth: z.ZodOptional<z.ZodString>;
3561
- }, "strip", z.ZodAny, z.objectOutputType<{
12
+ ]>>;
13
+ id: z.ZodOptional<z.ZodString>;
14
+ type: z.ZodArray<z.ZodString>;
15
+ issuer: z.ZodUnion<[
16
+ z.ZodString,
17
+ z.ZodObject<{
3562
18
  id: z.ZodOptional<z.ZodString>;
3563
19
  type: z.ZodUnion<[
3564
20
  z.ZodString,
3565
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
21
+ z.ZodOptional<z.ZodArray<z.ZodString>>
3566
22
  ]>;
3567
23
  name: z.ZodOptional<z.ZodString>;
3568
24
  url: z.ZodOptional<z.ZodString>;
3569
25
  phone: z.ZodOptional<z.ZodString>;
3570
26
  description: z.ZodOptional<z.ZodString>;
3571
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
27
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3572
28
  image: z.ZodOptional<z.ZodUnion<[
3573
29
  z.ZodString,
3574
30
  z.ZodObject<{
3575
31
  id: z.ZodString;
3576
32
  type: z.ZodString;
3577
33
  caption: z.ZodOptional<z.ZodString>;
3578
- }, "strip", z.ZodTypeAny, {
3579
- type: string;
3580
- id: string;
3581
- caption?: string | undefined;
3582
- }, {
3583
- type: string;
3584
- id: string;
3585
- caption?: string | undefined;
3586
- }>
34
+ }, z.core.$strip>
3587
35
  ]>>;
3588
36
  email: z.ZodOptional<z.ZodString>;
3589
37
  address: z.ZodOptional<z.ZodObject<{
3590
38
  type: z.ZodUnion<[
3591
39
  z.ZodString,
3592
- z.ZodArray<z.ZodString, "atleastone">
40
+ z.ZodArray<z.ZodString>
3593
41
  ]>;
3594
42
  addressCountry: z.ZodOptional<z.ZodString>;
3595
43
  addressCountryCode: z.ZodOptional<z.ZodString>;
@@ -3601,110 +49,42 @@ declare const VCValidator: z.ZodObject<z.objectUtil.extendShape<{
3601
49
  geo: z.ZodOptional<z.ZodObject<{
3602
50
  type: z.ZodUnion<[
3603
51
  z.ZodString,
3604
- z.ZodArray<z.ZodString, "atleastone">
52
+ z.ZodArray<z.ZodString>
3605
53
  ]>;
3606
54
  latitude: z.ZodNumber;
3607
55
  longitude: z.ZodNumber;
3608
- }, "strip", z.ZodTypeAny, {
3609
- type: string | [
3610
- string,
3611
- ...string[]
3612
- ];
3613
- latitude: number;
3614
- longitude: number;
3615
- }, {
3616
- type: string | [
3617
- string,
3618
- ...string[]
3619
- ];
3620
- latitude: number;
3621
- longitude: number;
3622
- }>>;
3623
- }, "strip", z.ZodTypeAny, {
3624
- type: string | [
3625
- string,
3626
- ...string[]
3627
- ];
3628
- addressCountry?: string | undefined;
3629
- addressCountryCode?: string | undefined;
3630
- addressRegion?: string | undefined;
3631
- addressLocality?: string | undefined;
3632
- streetAddress?: string | undefined;
3633
- postOfficeBoxNumber?: string | undefined;
3634
- postalCode?: string | undefined;
3635
- geo?: {
3636
- type: string | [
3637
- string,
3638
- ...string[]
3639
- ];
3640
- latitude: number;
3641
- longitude: number;
3642
- } | undefined;
3643
- }, {
3644
- type: string | [
3645
- string,
3646
- ...string[]
3647
- ];
3648
- addressCountry?: string | undefined;
3649
- addressCountryCode?: string | undefined;
3650
- addressRegion?: string | undefined;
3651
- addressLocality?: string | undefined;
3652
- streetAddress?: string | undefined;
3653
- postOfficeBoxNumber?: string | undefined;
3654
- postalCode?: string | undefined;
3655
- geo?: {
3656
- type: string | [
3657
- string,
3658
- ...string[]
3659
- ];
3660
- latitude: number;
3661
- longitude: number;
3662
- } | undefined;
3663
- }>>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>>;
3664
58
  otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
3665
59
  type: z.ZodUnion<[
3666
60
  z.ZodString,
3667
- z.ZodArray<z.ZodString, "atleastone">
61
+ z.ZodArray<z.ZodString>
3668
62
  ]>;
3669
63
  identifier: z.ZodString;
3670
64
  identifierType: z.ZodUnion<[
3671
- z.ZodEnum<[
3672
- "sourcedId",
3673
- "systemId",
3674
- "productId",
3675
- "userName",
3676
- "accountId",
3677
- "emailAddress",
3678
- "nationalIdentityNumber",
3679
- "isbn",
3680
- "issn",
3681
- "lisSourcedId",
3682
- "oneRosterSourcedId",
3683
- "sisSourcedId",
3684
- "ltiContextId",
3685
- "ltiDeploymentId",
3686
- "ltiToolId",
3687
- "ltiPlatformId",
3688
- "ltiUserId",
3689
- "identifier"
3690
- ]>,
65
+ z.ZodEnum<{
66
+ sourcedId: "sourcedId";
67
+ systemId: "systemId";
68
+ productId: "productId";
69
+ userName: "userName";
70
+ accountId: "accountId";
71
+ emailAddress: "emailAddress";
72
+ nationalIdentityNumber: "nationalIdentityNumber";
73
+ isbn: "isbn";
74
+ issn: "issn";
75
+ lisSourcedId: "lisSourcedId";
76
+ oneRosterSourcedId: "oneRosterSourcedId";
77
+ sisSourcedId: "sisSourcedId";
78
+ ltiContextId: "ltiContextId";
79
+ ltiDeploymentId: "ltiDeploymentId";
80
+ ltiToolId: "ltiToolId";
81
+ ltiPlatformId: "ltiPlatformId";
82
+ ltiUserId: "ltiUserId";
83
+ identifier: "identifier";
84
+ }>,
3691
85
  z.ZodString
3692
86
  ]>;
3693
- }, "strip", z.ZodTypeAny, {
3694
- type: string | [
3695
- string,
3696
- ...string[]
3697
- ];
3698
- identifier: string;
3699
- identifierType: string;
3700
- }, {
3701
- type: string | [
3702
- string,
3703
- ...string[]
3704
- ];
3705
- identifier: string;
3706
- identifierType: string;
3707
- }>, "many">>;
87
+ }, z.core.$strip>>>;
3708
88
  official: z.ZodOptional<z.ZodString>;
3709
89
  parentOrg: z.ZodOptional<z.ZodAny>;
3710
90
  familyName: z.ZodOptional<z.ZodString>;
@@ -3715,38 +95,127 @@ declare const VCValidator: z.ZodObject<z.objectUtil.extendShape<{
3715
95
  honorificSuffix: z.ZodOptional<z.ZodString>;
3716
96
  familyNamePrefix: z.ZodOptional<z.ZodString>;
3717
97
  dateOfBirth: z.ZodOptional<z.ZodString>;
3718
- }, z.ZodAny, "strip">, z.objectInputType<{
98
+ }, z.core.$catchall<z.ZodAny>>
99
+ ]>;
100
+ credentialSubject: z.ZodUnion<[
101
+ z.ZodObject<{
102
+ id: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$catchall<z.ZodAny>>,
104
+ z.ZodArray<z.ZodObject<{
105
+ id: z.ZodOptional<z.ZodString>;
106
+ }, z.core.$catchall<z.ZodAny>>>
107
+ ]>;
108
+ refreshService: z.ZodOptional<z.ZodUnion<[
109
+ z.ZodObject<{
110
+ id: z.ZodOptional<z.ZodString>;
111
+ type: z.ZodString;
112
+ }, z.core.$catchall<z.ZodAny>>,
113
+ z.ZodArray<z.ZodObject<{
114
+ id: z.ZodOptional<z.ZodString>;
115
+ type: z.ZodString;
116
+ }, z.core.$catchall<z.ZodAny>>>
117
+ ]>>;
118
+ credentialSchema: z.ZodOptional<z.ZodUnion<[
119
+ z.ZodObject<{
120
+ id: z.ZodString;
121
+ type: z.ZodString;
122
+ }, z.core.$catchall<z.ZodAny>>,
123
+ z.ZodArray<z.ZodObject<{
124
+ id: z.ZodString;
125
+ type: z.ZodString;
126
+ }, z.core.$catchall<z.ZodAny>>>
127
+ ]>>;
128
+ issuanceDate: z.ZodOptional<z.ZodString>;
129
+ expirationDate: z.ZodOptional<z.ZodString>;
130
+ credentialStatus: z.ZodOptional<z.ZodUnion<[
131
+ z.ZodObject<{
132
+ type: z.ZodString;
133
+ id: z.ZodString;
134
+ }, z.core.$catchall<z.ZodAny>>,
135
+ z.ZodArray<z.ZodObject<{
136
+ type: z.ZodString;
137
+ id: z.ZodString;
138
+ }, z.core.$catchall<z.ZodAny>>>
139
+ ]>>;
140
+ name: z.ZodOptional<z.ZodString>;
141
+ description: z.ZodOptional<z.ZodString>;
142
+ validFrom: z.ZodOptional<z.ZodString>;
143
+ validUntil: z.ZodOptional<z.ZodString>;
144
+ status: z.ZodOptional<z.ZodUnion<[
145
+ z.ZodObject<{
146
+ type: z.ZodString;
147
+ id: z.ZodString;
148
+ }, z.core.$catchall<z.ZodAny>>,
149
+ z.ZodArray<z.ZodObject<{
150
+ type: z.ZodString;
151
+ id: z.ZodString;
152
+ }, z.core.$catchall<z.ZodAny>>>
153
+ ]>>;
154
+ termsOfUse: z.ZodOptional<z.ZodUnion<[
155
+ z.ZodObject<{
156
+ type: z.ZodString;
157
+ id: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$catchall<z.ZodAny>>,
159
+ z.ZodArray<z.ZodObject<{
160
+ type: z.ZodString;
161
+ id: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$catchall<z.ZodAny>>>
163
+ ]>>;
164
+ evidence: z.ZodOptional<z.ZodUnion<readonly [
165
+ z.ZodObject<{
166
+ id: z.ZodOptional<z.ZodString>;
167
+ type: z.ZodArray<z.ZodString>;
168
+ name: z.ZodOptional<z.ZodString>;
169
+ narrative: z.ZodOptional<z.ZodString>;
170
+ description: z.ZodOptional<z.ZodString>;
171
+ genre: z.ZodOptional<z.ZodString>;
172
+ audience: z.ZodOptional<z.ZodString>;
173
+ }, z.core.$catchall<z.ZodAny>>,
174
+ z.ZodArray<z.ZodObject<{
175
+ id: z.ZodOptional<z.ZodString>;
176
+ type: z.ZodArray<z.ZodString>;
177
+ name: z.ZodOptional<z.ZodString>;
178
+ narrative: z.ZodOptional<z.ZodString>;
179
+ description: z.ZodOptional<z.ZodString>;
180
+ genre: z.ZodOptional<z.ZodString>;
181
+ audience: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$catchall<z.ZodAny>>>
183
+ ]>>;
184
+ }, z.core.$catchall<z.ZodAny>>;
185
+ export type UnsignedVC = z.infer<typeof UnsignedVCValidator>;
186
+ declare const VCValidator: z.ZodObject<{
187
+ "@context": z.ZodArray<z.ZodUnion<[
188
+ z.ZodString,
189
+ z.ZodRecord<z.ZodString, z.ZodAny>
190
+ ]>>;
191
+ id: z.ZodOptional<z.ZodString>;
192
+ type: z.ZodArray<z.ZodString>;
193
+ issuer: z.ZodUnion<[
194
+ z.ZodString,
195
+ z.ZodObject<{
3719
196
  id: z.ZodOptional<z.ZodString>;
3720
197
  type: z.ZodUnion<[
3721
198
  z.ZodString,
3722
- z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>
199
+ z.ZodOptional<z.ZodArray<z.ZodString>>
3723
200
  ]>;
3724
201
  name: z.ZodOptional<z.ZodString>;
3725
202
  url: z.ZodOptional<z.ZodString>;
3726
203
  phone: z.ZodOptional<z.ZodString>;
3727
204
  description: z.ZodOptional<z.ZodString>;
3728
- endorsement: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
205
+ endorsement: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3729
206
  image: z.ZodOptional<z.ZodUnion<[
3730
207
  z.ZodString,
3731
208
  z.ZodObject<{
3732
209
  id: z.ZodString;
3733
210
  type: z.ZodString;
3734
211
  caption: z.ZodOptional<z.ZodString>;
3735
- }, "strip", z.ZodTypeAny, {
3736
- type: string;
3737
- id: string;
3738
- caption?: string | undefined;
3739
- }, {
3740
- type: string;
3741
- id: string;
3742
- caption?: string | undefined;
3743
- }>
212
+ }, z.core.$strip>
3744
213
  ]>>;
3745
214
  email: z.ZodOptional<z.ZodString>;
3746
215
  address: z.ZodOptional<z.ZodObject<{
3747
216
  type: z.ZodUnion<[
3748
217
  z.ZodString,
3749
- z.ZodArray<z.ZodString, "atleastone">
218
+ z.ZodArray<z.ZodString>
3750
219
  ]>;
3751
220
  addressCountry: z.ZodOptional<z.ZodString>;
3752
221
  addressCountryCode: z.ZodOptional<z.ZodString>;
@@ -3758,110 +227,42 @@ declare const VCValidator: z.ZodObject<z.objectUtil.extendShape<{
3758
227
  geo: z.ZodOptional<z.ZodObject<{
3759
228
  type: z.ZodUnion<[
3760
229
  z.ZodString,
3761
- z.ZodArray<z.ZodString, "atleastone">
230
+ z.ZodArray<z.ZodString>
3762
231
  ]>;
3763
232
  latitude: z.ZodNumber;
3764
233
  longitude: z.ZodNumber;
3765
- }, "strip", z.ZodTypeAny, {
3766
- type: string | [
3767
- string,
3768
- ...string[]
3769
- ];
3770
- latitude: number;
3771
- longitude: number;
3772
- }, {
3773
- type: string | [
3774
- string,
3775
- ...string[]
3776
- ];
3777
- latitude: number;
3778
- longitude: number;
3779
- }>>;
3780
- }, "strip", z.ZodTypeAny, {
3781
- type: string | [
3782
- string,
3783
- ...string[]
3784
- ];
3785
- addressCountry?: string | undefined;
3786
- addressCountryCode?: string | undefined;
3787
- addressRegion?: string | undefined;
3788
- addressLocality?: string | undefined;
3789
- streetAddress?: string | undefined;
3790
- postOfficeBoxNumber?: string | undefined;
3791
- postalCode?: string | undefined;
3792
- geo?: {
3793
- type: string | [
3794
- string,
3795
- ...string[]
3796
- ];
3797
- latitude: number;
3798
- longitude: number;
3799
- } | undefined;
3800
- }, {
3801
- type: string | [
3802
- string,
3803
- ...string[]
3804
- ];
3805
- addressCountry?: string | undefined;
3806
- addressCountryCode?: string | undefined;
3807
- addressRegion?: string | undefined;
3808
- addressLocality?: string | undefined;
3809
- streetAddress?: string | undefined;
3810
- postOfficeBoxNumber?: string | undefined;
3811
- postalCode?: string | undefined;
3812
- geo?: {
3813
- type: string | [
3814
- string,
3815
- ...string[]
3816
- ];
3817
- latitude: number;
3818
- longitude: number;
3819
- } | undefined;
3820
- }>>;
234
+ }, z.core.$strip>>;
235
+ }, z.core.$strip>>;
3821
236
  otherIdentifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
3822
237
  type: z.ZodUnion<[
3823
238
  z.ZodString,
3824
- z.ZodArray<z.ZodString, "atleastone">
239
+ z.ZodArray<z.ZodString>
3825
240
  ]>;
3826
241
  identifier: z.ZodString;
3827
242
  identifierType: z.ZodUnion<[
3828
- z.ZodEnum<[
3829
- "sourcedId",
3830
- "systemId",
3831
- "productId",
3832
- "userName",
3833
- "accountId",
3834
- "emailAddress",
3835
- "nationalIdentityNumber",
3836
- "isbn",
3837
- "issn",
3838
- "lisSourcedId",
3839
- "oneRosterSourcedId",
3840
- "sisSourcedId",
3841
- "ltiContextId",
3842
- "ltiDeploymentId",
3843
- "ltiToolId",
3844
- "ltiPlatformId",
3845
- "ltiUserId",
3846
- "identifier"
3847
- ]>,
243
+ z.ZodEnum<{
244
+ sourcedId: "sourcedId";
245
+ systemId: "systemId";
246
+ productId: "productId";
247
+ userName: "userName";
248
+ accountId: "accountId";
249
+ emailAddress: "emailAddress";
250
+ nationalIdentityNumber: "nationalIdentityNumber";
251
+ isbn: "isbn";
252
+ issn: "issn";
253
+ lisSourcedId: "lisSourcedId";
254
+ oneRosterSourcedId: "oneRosterSourcedId";
255
+ sisSourcedId: "sisSourcedId";
256
+ ltiContextId: "ltiContextId";
257
+ ltiDeploymentId: "ltiDeploymentId";
258
+ ltiToolId: "ltiToolId";
259
+ ltiPlatformId: "ltiPlatformId";
260
+ ltiUserId: "ltiUserId";
261
+ identifier: "identifier";
262
+ }>,
3848
263
  z.ZodString
3849
264
  ]>;
3850
- }, "strip", z.ZodTypeAny, {
3851
- type: string | [
3852
- string,
3853
- ...string[]
3854
- ];
3855
- identifier: string;
3856
- identifierType: string;
3857
- }, {
3858
- type: string | [
3859
- string,
3860
- ...string[]
3861
- ];
3862
- identifier: string;
3863
- identifierType: string;
3864
- }>, "many">>;
265
+ }, z.core.$strip>>>;
3865
266
  official: z.ZodOptional<z.ZodString>;
3866
267
  parentOrg: z.ZodOptional<z.ZodAny>;
3867
268
  familyName: z.ZodOptional<z.ZodString>;
@@ -3872,67 +273,35 @@ declare const VCValidator: z.ZodObject<z.objectUtil.extendShape<{
3872
273
  honorificSuffix: z.ZodOptional<z.ZodString>;
3873
274
  familyNamePrefix: z.ZodOptional<z.ZodString>;
3874
275
  dateOfBirth: z.ZodOptional<z.ZodString>;
3875
- }, z.ZodAny, "strip">>
276
+ }, z.core.$catchall<z.ZodAny>>
3876
277
  ]>;
3877
278
  credentialSubject: z.ZodUnion<[
3878
279
  z.ZodObject<{
3879
280
  id: z.ZodOptional<z.ZodString>;
3880
- }, "strip", z.ZodAny, z.objectOutputType<{
3881
- id: z.ZodOptional<z.ZodString>;
3882
- }, z.ZodAny, "strip">, z.objectInputType<{
3883
- id: z.ZodOptional<z.ZodString>;
3884
- }, z.ZodAny, "strip">>,
281
+ }, z.core.$catchall<z.ZodAny>>,
3885
282
  z.ZodArray<z.ZodObject<{
3886
283
  id: z.ZodOptional<z.ZodString>;
3887
- }, "strip", z.ZodAny, z.objectOutputType<{
3888
- id: z.ZodOptional<z.ZodString>;
3889
- }, z.ZodAny, "strip">, z.objectInputType<{
3890
- id: z.ZodOptional<z.ZodString>;
3891
- }, z.ZodAny, "strip">>, "many">
284
+ }, z.core.$catchall<z.ZodAny>>>
3892
285
  ]>;
3893
286
  refreshService: z.ZodOptional<z.ZodUnion<[
3894
287
  z.ZodObject<{
3895
288
  id: z.ZodOptional<z.ZodString>;
3896
289
  type: z.ZodString;
3897
- }, "strip", z.ZodAny, z.objectOutputType<{
3898
- id: z.ZodOptional<z.ZodString>;
3899
- type: z.ZodString;
3900
- }, z.ZodAny, "strip">, z.objectInputType<{
3901
- id: z.ZodOptional<z.ZodString>;
3902
- type: z.ZodString;
3903
- }, z.ZodAny, "strip">>,
290
+ }, z.core.$catchall<z.ZodAny>>,
3904
291
  z.ZodArray<z.ZodObject<{
3905
292
  id: z.ZodOptional<z.ZodString>;
3906
293
  type: z.ZodString;
3907
- }, "strip", z.ZodAny, z.objectOutputType<{
3908
- id: z.ZodOptional<z.ZodString>;
3909
- type: z.ZodString;
3910
- }, z.ZodAny, "strip">, z.objectInputType<{
3911
- id: z.ZodOptional<z.ZodString>;
3912
- type: z.ZodString;
3913
- }, z.ZodAny, "strip">>, "many">
294
+ }, z.core.$catchall<z.ZodAny>>>
3914
295
  ]>>;
3915
296
  credentialSchema: z.ZodOptional<z.ZodUnion<[
3916
297
  z.ZodObject<{
3917
298
  id: z.ZodString;
3918
299
  type: z.ZodString;
3919
- }, "strip", z.ZodAny, z.objectOutputType<{
3920
- id: z.ZodString;
3921
- type: z.ZodString;
3922
- }, z.ZodAny, "strip">, z.objectInputType<{
3923
- id: z.ZodString;
3924
- type: z.ZodString;
3925
- }, z.ZodAny, "strip">>,
300
+ }, z.core.$catchall<z.ZodAny>>,
3926
301
  z.ZodArray<z.ZodObject<{
3927
302
  id: z.ZodString;
3928
303
  type: z.ZodString;
3929
- }, "strip", z.ZodAny, z.objectOutputType<{
3930
- id: z.ZodString;
3931
- type: z.ZodString;
3932
- }, z.ZodAny, "strip">, z.objectInputType<{
3933
- id: z.ZodString;
3934
- type: z.ZodString;
3935
- }, z.ZodAny, "strip">>, "many">
304
+ }, z.core.$catchall<z.ZodAny>>>
3936
305
  ]>>;
3937
306
  issuanceDate: z.ZodOptional<z.ZodString>;
3938
307
  expirationDate: z.ZodOptional<z.ZodString>;
@@ -3940,23 +309,11 @@ declare const VCValidator: z.ZodObject<z.objectUtil.extendShape<{
3940
309
  z.ZodObject<{
3941
310
  type: z.ZodString;
3942
311
  id: z.ZodString;
3943
- }, "strip", z.ZodAny, z.objectOutputType<{
3944
- type: z.ZodString;
3945
- id: z.ZodString;
3946
- }, z.ZodAny, "strip">, z.objectInputType<{
3947
- type: z.ZodString;
3948
- id: z.ZodString;
3949
- }, z.ZodAny, "strip">>,
312
+ }, z.core.$catchall<z.ZodAny>>,
3950
313
  z.ZodArray<z.ZodObject<{
3951
314
  type: z.ZodString;
3952
315
  id: z.ZodString;
3953
- }, "strip", z.ZodAny, z.objectOutputType<{
3954
- type: z.ZodString;
3955
- id: z.ZodString;
3956
- }, z.ZodAny, "strip">, z.objectInputType<{
3957
- type: z.ZodString;
3958
- id: z.ZodString;
3959
- }, z.ZodAny, "strip">>, "many">
316
+ }, z.core.$catchall<z.ZodAny>>>
3960
317
  ]>>;
3961
318
  name: z.ZodOptional<z.ZodString>;
3962
319
  description: z.ZodOptional<z.ZodString>;
@@ -3966,87 +323,42 @@ declare const VCValidator: z.ZodObject<z.objectUtil.extendShape<{
3966
323
  z.ZodObject<{
3967
324
  type: z.ZodString;
3968
325
  id: z.ZodString;
3969
- }, "strip", z.ZodAny, z.objectOutputType<{
3970
- type: z.ZodString;
3971
- id: z.ZodString;
3972
- }, z.ZodAny, "strip">, z.objectInputType<{
3973
- type: z.ZodString;
3974
- id: z.ZodString;
3975
- }, z.ZodAny, "strip">>,
326
+ }, z.core.$catchall<z.ZodAny>>,
3976
327
  z.ZodArray<z.ZodObject<{
3977
328
  type: z.ZodString;
3978
329
  id: z.ZodString;
3979
- }, "strip", z.ZodAny, z.objectOutputType<{
3980
- type: z.ZodString;
3981
- id: z.ZodString;
3982
- }, z.ZodAny, "strip">, z.objectInputType<{
3983
- type: z.ZodString;
3984
- id: z.ZodString;
3985
- }, z.ZodAny, "strip">>, "many">
330
+ }, z.core.$catchall<z.ZodAny>>>
3986
331
  ]>>;
3987
332
  termsOfUse: z.ZodOptional<z.ZodUnion<[
3988
333
  z.ZodObject<{
3989
334
  type: z.ZodString;
3990
335
  id: z.ZodOptional<z.ZodString>;
3991
- }, "strip", z.ZodAny, z.objectOutputType<{
3992
- type: z.ZodString;
3993
- id: z.ZodOptional<z.ZodString>;
3994
- }, z.ZodAny, "strip">, z.objectInputType<{
3995
- type: z.ZodString;
3996
- id: z.ZodOptional<z.ZodString>;
3997
- }, z.ZodAny, "strip">>,
336
+ }, z.core.$catchall<z.ZodAny>>,
3998
337
  z.ZodArray<z.ZodObject<{
3999
338
  type: z.ZodString;
4000
339
  id: z.ZodOptional<z.ZodString>;
4001
- }, "strip", z.ZodAny, z.objectOutputType<{
4002
- type: z.ZodString;
4003
- id: z.ZodOptional<z.ZodString>;
4004
- }, z.ZodAny, "strip">, z.objectInputType<{
4005
- type: z.ZodString;
4006
- id: z.ZodOptional<z.ZodString>;
4007
- }, z.ZodAny, "strip">>, "many">
340
+ }, z.core.$catchall<z.ZodAny>>>
4008
341
  ]>>;
4009
- evidence: z.ZodOptional<z.ZodUnion<[
342
+ evidence: z.ZodOptional<z.ZodUnion<readonly [
4010
343
  z.ZodObject<{
4011
- type: z.ZodUnion<[
4012
- z.ZodString,
4013
- z.ZodArray<z.ZodString, "atleastone">
4014
- ]>;
4015
344
  id: z.ZodOptional<z.ZodString>;
4016
- }, "strip", z.ZodAny, z.objectOutputType<{
4017
- type: z.ZodUnion<[
4018
- z.ZodString,
4019
- z.ZodArray<z.ZodString, "atleastone">
4020
- ]>;
4021
- id: z.ZodOptional<z.ZodString>;
4022
- }, z.ZodAny, "strip">, z.objectInputType<{
4023
- type: z.ZodUnion<[
4024
- z.ZodString,
4025
- z.ZodArray<z.ZodString, "atleastone">
4026
- ]>;
4027
- id: z.ZodOptional<z.ZodString>;
4028
- }, z.ZodAny, "strip">>,
345
+ type: z.ZodArray<z.ZodString>;
346
+ name: z.ZodOptional<z.ZodString>;
347
+ narrative: z.ZodOptional<z.ZodString>;
348
+ description: z.ZodOptional<z.ZodString>;
349
+ genre: z.ZodOptional<z.ZodString>;
350
+ audience: z.ZodOptional<z.ZodString>;
351
+ }, z.core.$catchall<z.ZodAny>>,
4029
352
  z.ZodArray<z.ZodObject<{
4030
- type: z.ZodUnion<[
4031
- z.ZodString,
4032
- z.ZodArray<z.ZodString, "atleastone">
4033
- ]>;
4034
- id: z.ZodOptional<z.ZodString>;
4035
- }, "strip", z.ZodAny, z.objectOutputType<{
4036
- type: z.ZodUnion<[
4037
- z.ZodString,
4038
- z.ZodArray<z.ZodString, "atleastone">
4039
- ]>;
4040
- id: z.ZodOptional<z.ZodString>;
4041
- }, z.ZodAny, "strip">, z.objectInputType<{
4042
- type: z.ZodUnion<[
4043
- z.ZodString,
4044
- z.ZodArray<z.ZodString, "atleastone">
4045
- ]>;
4046
353
  id: z.ZodOptional<z.ZodString>;
4047
- }, z.ZodAny, "strip">>, "many">
354
+ type: z.ZodArray<z.ZodString>;
355
+ name: z.ZodOptional<z.ZodString>;
356
+ narrative: z.ZodOptional<z.ZodString>;
357
+ description: z.ZodOptional<z.ZodString>;
358
+ genre: z.ZodOptional<z.ZodString>;
359
+ audience: z.ZodOptional<z.ZodString>;
360
+ }, z.core.$catchall<z.ZodAny>>>
4048
361
  ]>>;
4049
- }, {
4050
362
  proof: z.ZodUnion<[
4051
363
  z.ZodObject<{
4052
364
  type: z.ZodString;
@@ -4057,25 +369,7 @@ declare const VCValidator: z.ZodObject<z.objectUtil.extendShape<{
4057
369
  proofPurpose: z.ZodString;
4058
370
  verificationMethod: z.ZodString;
4059
371
  jws: z.ZodOptional<z.ZodString>;
4060
- }, "strip", z.ZodAny, z.objectOutputType<{
4061
- type: z.ZodString;
4062
- created: z.ZodString;
4063
- challenge: z.ZodOptional<z.ZodString>;
4064
- domain: z.ZodOptional<z.ZodString>;
4065
- nonce: z.ZodOptional<z.ZodString>;
4066
- proofPurpose: z.ZodString;
4067
- verificationMethod: z.ZodString;
4068
- jws: z.ZodOptional<z.ZodString>;
4069
- }, z.ZodAny, "strip">, z.objectInputType<{
4070
- type: z.ZodString;
4071
- created: z.ZodString;
4072
- challenge: z.ZodOptional<z.ZodString>;
4073
- domain: z.ZodOptional<z.ZodString>;
4074
- nonce: z.ZodOptional<z.ZodString>;
4075
- proofPurpose: z.ZodString;
4076
- verificationMethod: z.ZodString;
4077
- jws: z.ZodOptional<z.ZodString>;
4078
- }, z.ZodAny, "strip">>,
372
+ }, z.core.$catchall<z.ZodAny>>,
4079
373
  z.ZodArray<z.ZodObject<{
4080
374
  type: z.ZodString;
4081
375
  created: z.ZodString;
@@ -4085,27 +379,9 @@ declare const VCValidator: z.ZodObject<z.objectUtil.extendShape<{
4085
379
  proofPurpose: z.ZodString;
4086
380
  verificationMethod: z.ZodString;
4087
381
  jws: z.ZodOptional<z.ZodString>;
4088
- }, "strip", z.ZodAny, z.objectOutputType<{
4089
- type: z.ZodString;
4090
- created: z.ZodString;
4091
- challenge: z.ZodOptional<z.ZodString>;
4092
- domain: z.ZodOptional<z.ZodString>;
4093
- nonce: z.ZodOptional<z.ZodString>;
4094
- proofPurpose: z.ZodString;
4095
- verificationMethod: z.ZodString;
4096
- jws: z.ZodOptional<z.ZodString>;
4097
- }, z.ZodAny, "strip">, z.objectInputType<{
4098
- type: z.ZodString;
4099
- created: z.ZodString;
4100
- challenge: z.ZodOptional<z.ZodString>;
4101
- domain: z.ZodOptional<z.ZodString>;
4102
- nonce: z.ZodOptional<z.ZodString>;
4103
- proofPurpose: z.ZodString;
4104
- verificationMethod: z.ZodString;
4105
- jws: z.ZodOptional<z.ZodString>;
4106
- }, z.ZodAny, "strip">>, "many">
382
+ }, z.core.$catchall<z.ZodAny>>>
4107
383
  ]>;
4108
- }>, z.ZodAny, "strip">>;
384
+ }, z.core.$catchall<z.ZodAny>>;
4109
385
  export type VC = z.infer<typeof VCValidator>;
4110
386
  declare const JWEValidator: z.ZodObject<{
4111
387
  protected: z.ZodString;
@@ -4125,145 +401,239 @@ declare const JWEValidator: z.ZodObject<{
4125
401
  y: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4126
402
  n: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4127
403
  d: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4128
- }, "strip", z.ZodTypeAny, {
4129
- kty?: string | undefined;
4130
- crv?: string | undefined;
4131
- x?: string | undefined;
4132
- y?: string | undefined;
4133
- n?: string | undefined;
4134
- d?: string | undefined;
4135
- }, {
4136
- kty?: string | undefined;
4137
- crv?: string | undefined;
4138
- x?: string | undefined;
4139
- y?: string | undefined;
4140
- n?: string | undefined;
4141
- d?: string | undefined;
4142
- }>>;
404
+ }, z.core.$strip>>;
4143
405
  kid: z.ZodOptional<z.ZodString>;
4144
406
  apv: z.ZodOptional<z.ZodString>;
4145
407
  apu: z.ZodOptional<z.ZodString>;
4146
- }, "strip", z.ZodTypeAny, {
4147
- alg: string;
4148
- iv: string;
4149
- tag: string;
4150
- epk?: {
4151
- kty?: string | undefined;
4152
- crv?: string | undefined;
4153
- x?: string | undefined;
4154
- y?: string | undefined;
4155
- n?: string | undefined;
4156
- d?: string | undefined;
4157
- } | undefined;
4158
- kid?: string | undefined;
4159
- apv?: string | undefined;
4160
- apu?: string | undefined;
4161
- }, {
4162
- alg: string;
4163
- iv: string;
4164
- tag: string;
4165
- epk?: {
4166
- kty?: string | undefined;
4167
- crv?: string | undefined;
4168
- x?: string | undefined;
4169
- y?: string | undefined;
4170
- n?: string | undefined;
4171
- d?: string | undefined;
4172
- } | undefined;
4173
- kid?: string | undefined;
4174
- apv?: string | undefined;
4175
- apu?: string | undefined;
4176
- }>;
408
+ }, z.core.$strip>;
4177
409
  encrypted_key: z.ZodString;
4178
- }, "strip", z.ZodTypeAny, {
4179
- header: {
4180
- alg: string;
4181
- iv: string;
4182
- tag: string;
4183
- epk?: {
4184
- kty?: string | undefined;
4185
- crv?: string | undefined;
4186
- x?: string | undefined;
4187
- y?: string | undefined;
4188
- n?: string | undefined;
4189
- d?: string | undefined;
4190
- } | undefined;
4191
- kid?: string | undefined;
4192
- apv?: string | undefined;
4193
- apu?: string | undefined;
4194
- };
4195
- encrypted_key: string;
4196
- }, {
4197
- header: {
4198
- alg: string;
4199
- iv: string;
4200
- tag: string;
4201
- epk?: {
4202
- kty?: string | undefined;
4203
- crv?: string | undefined;
4204
- x?: string | undefined;
4205
- y?: string | undefined;
4206
- n?: string | undefined;
4207
- d?: string | undefined;
4208
- } | undefined;
4209
- kid?: string | undefined;
4210
- apv?: string | undefined;
4211
- apu?: string | undefined;
4212
- };
4213
- encrypted_key: string;
4214
- }>, "many">>;
4215
- }, "strip", z.ZodTypeAny, {
4216
- iv: string;
4217
- tag: string;
4218
- protected: string;
4219
- ciphertext: string;
4220
- aad?: string | undefined;
4221
- recipients?: {
4222
- header: {
4223
- alg: string;
4224
- iv: string;
4225
- tag: string;
4226
- epk?: {
4227
- kty?: string | undefined;
4228
- crv?: string | undefined;
4229
- x?: string | undefined;
4230
- y?: string | undefined;
4231
- n?: string | undefined;
4232
- d?: string | undefined;
4233
- } | undefined;
4234
- kid?: string | undefined;
4235
- apv?: string | undefined;
4236
- apu?: string | undefined;
4237
- };
4238
- encrypted_key: string;
4239
- }[] | undefined;
4240
- }, {
4241
- iv: string;
4242
- tag: string;
4243
- protected: string;
4244
- ciphertext: string;
4245
- aad?: string | undefined;
4246
- recipients?: {
4247
- header: {
4248
- alg: string;
4249
- iv: string;
4250
- tag: string;
4251
- epk?: {
4252
- kty?: string | undefined;
4253
- crv?: string | undefined;
4254
- x?: string | undefined;
4255
- y?: string | undefined;
4256
- n?: string | undefined;
4257
- d?: string | undefined;
4258
- } | undefined;
4259
- kid?: string | undefined;
4260
- apv?: string | undefined;
4261
- apu?: string | undefined;
4262
- };
4263
- encrypted_key: string;
4264
- }[] | undefined;
4265
- }>;
410
+ }, z.core.$strip>>>;
411
+ }, z.core.$strip>;
4266
412
  export type JWE = z.infer<typeof JWEValidator>;
413
+ declare const Providers: {
414
+ filestack: typeof filestack;
415
+ unsplash: typeof unsplash;
416
+ discord: typeof discord;
417
+ };
418
+ export declare const getProvider: (url?: string) => keyof typeof Providers | null;
419
+ export declare const changeQuality: (url: string, quality: number) => string;
420
+ export declare const fixUrl: (url: string, mimetype?: string, webp?: boolean) => string;
421
+ export declare const generateSrcSet: (url: string, resolutions: number[], options?: {
422
+ mimetype?: string;
423
+ fix?: boolean;
424
+ webp?: boolean;
425
+ }) => string;
426
+ export declare const resizeAndChangeQuality: (url: string, size: number, quality: number, options?: {
427
+ mimetype?: string;
428
+ fix?: boolean;
429
+ webp?: boolean;
430
+ }) => string;
431
+ export declare const DEFAULT_RESOLUTIONS: number[];
432
+ /**
433
+ * Gets an array of URLs from a srcSet string
434
+ *
435
+ * @param srcSet HTML srcSet string (e.g. 'test.com/img 100w, test.com/img2 200w')
436
+ *
437
+ * @return URLs
438
+ */
439
+ export declare const getUrlsFromSrcSet: (srcSet: string) => [
440
+ string,
441
+ string
442
+ ][];
443
+ /** Quantizes a number to the closest number in an array of numbers */
444
+ export declare const quantizeValue: (value: number, array: number[]) => number;
445
+ export declare const isNotMaybe: <T>(value?: T | null | undefined) => value is T;
446
+ export declare const filterMaybes: <T>(array?: (T | null | undefined)[]) => T[];
447
+ export declare const capitalizeFirstLetter: (string: string) => string;
448
+ /**
449
+ * Formats a number into a friendlier string i.e. 1,234 becomes 1.2K
450
+ */
451
+ export declare const formatNumber: (num: number) => string;
452
+ export type SetState<T> = Dispatch<SetStateAction<T>>;
453
+ export type UpdaterArgs<T> = T | DraftFunction<T>;
454
+ export type CurriedReturn<ValueArg, Value> = undefined extends ValueArg ? (innerValue: Value) => void : void;
455
+ export type InnerImmerOuterImmer<State> = <Field extends keyof Draft<State>, Value extends UpdaterArgs<Draft<State>[Field]>, ValueArg extends Value | undefined>(field: Field, value?: ValueArg) => CurriedReturn<ValueArg, Value>;
456
+ export type InnerReactOuterImmer<State> = <Field extends keyof Draft<State>, Value extends SetStateAction<Draft<State>[Field]>, ValueArg extends Value | undefined>(field: Field, value?: ValueArg) => CurriedReturn<ValueArg, Value>;
457
+ export type InnerImmerOuterReact<State> = <Field extends keyof State, Value extends UpdaterArgs<State[Field]>, ValueArg extends Value | undefined>(field: Field, value?: ValueArg) => CurriedReturn<ValueArg, Value>;
458
+ export type InnerReactOuterReact<State> = <Field extends keyof State, Value extends SetStateAction<State[Field]>, ValueArg extends Value | undefined>(field: Field, value?: ValueArg) => CurriedReturn<ValueArg, Value>;
459
+ export declare function innerImmerOuterImmer<State, Field extends keyof Draft<State>, Value extends UpdaterArgs<Draft<State>[Field]>>(setState: Updater<State>, field: Field): (innerValue: NonNullable<Value>) => void;
460
+ export declare function innerImmerOuterImmer<State, Field extends keyof Draft<State>, Value extends UpdaterArgs<Draft<State>[Field]>, ValueArg extends Value | undefined>(setState: Updater<State>, field: Field, value: ValueArg): void;
461
+ /**
462
+ * Curry function to allow innerImmerOuterImmer to be used without constantly passing in setState
463
+ *
464
+ * Use like so:
465
+ *
466
+ * [state, setState] = useImmer<{ num: number; string: string; }>({ num: 1, string: 'str' });
467
+ *
468
+ * const updateField = curriedInnerImmerOuterImmer(setState);
469
+ *
470
+ * updateField('num', 3); // Updates state to { num: 3, string: 'str' }
471
+ *
472
+ * updateField(
473
+ * 'num',
474
+ * oldNum => {
475
+ * oldNum += 1;
476
+ * },
477
+ * ); // Updates state to { num: 4, string: 'str' }
478
+ *
479
+ * updateField(setState, 'num', 'three'); // TS Error due to invalid type
480
+ */
481
+ export declare const curriedInnerImmerOuterImmer: <State>(setState: Updater<State>) => InnerImmerOuterImmer<State>;
482
+ export declare function innerReactOuterImmer<State, Field extends keyof Draft<State>, Value extends SetStateAction<Draft<State>[Field]>>(setState: Updater<State>, field: Field): (innerValue: NonNullable<Value>) => void;
483
+ export declare function innerReactOuterImmer<State, Field extends keyof Draft<State>, Value extends SetStateAction<Draft<State>[Field]>, ValueArg extends Value | undefined>(setState: Updater<State>, field: Field, value: ValueArg): void;
484
+ /**
485
+ * Curry function to allow innerReactOuterImmer to be used without constantly passing in setState
486
+ *
487
+ * Use like so:
488
+ *
489
+ * [state, setState] = useImmer<{ num: number; string: string; }>({ num: 1, string: 'str' });
490
+ *
491
+ * const updateField = curriedUpdateImmerSetStateField(setState);
492
+ *
493
+ * updateField('num', 3); // Updates state to { num: 3, string: 'str' }
494
+ *
495
+ * updateField('num', oldNum => oldNum + 1); // Updates state to { num: 4, string: 'str' }
496
+ *
497
+ * updateField(setState, 'num', 'three'); // TS Error due to invalid type
498
+ */
499
+ export declare const curriedInnerReactOuterImmer: <State>(setState: Updater<State>) => InnerReactOuterImmer<State>;
500
+ export declare function innerImmerOuterReact<State, Field extends keyof State, Value extends UpdaterArgs<State[Field]>>(setState: SetState<State>, field: Field): (innerValue: NonNullable<Value>) => void;
501
+ export declare function innerImmerOuterReact<State, Field extends keyof State, Value extends UpdaterArgs<State[Field]>, ValueArg extends Value | undefined>(setState: SetState<State>, field: Field, value: ValueArg): void;
502
+ /**
503
+ * Curry function to allow innerImmerOuterReact to be used without constantly passing in setState
504
+ *
505
+ * Use like so:
506
+ *
507
+ * [state, setState] = useImmer<{ num: number; string: string; }>({ num: 1, string: 'str' });
508
+ *
509
+ * const updateField = curriedInnerImmerOuterImmer(setState);
510
+ *
511
+ * updateField('num', 3); // Updates state to { num: 3, string: 'str' }
512
+ *
513
+ * updateField(
514
+ * 'num',
515
+ * oldNum => {
516
+ * oldNum += 1;
517
+ * },
518
+ * ); // Updates state to { num: 4, string: 'str' }
519
+ *
520
+ * updateField(setState, 'num', 'three'); // TS Error due to invalid type
521
+ */
522
+ export declare const curriedInnerImmerOuterReact: <State>(setState: SetState<State>) => InnerImmerOuterReact<State>;
523
+ export declare function innerReactOuterReact<State, Field extends keyof State, Value extends SetStateAction<State[Field]>>(setState: SetState<State>, field: Field): (innerValue: NonNullable<Value>) => void;
524
+ export declare function innerReactOuterReact<State, Field extends keyof State, Value extends SetStateAction<State[Field]>, ValueArg extends Value | undefined>(setState: SetState<State>, field: Field, value: ValueArg): void;
525
+ /**
526
+ * Curry function to allow updateSetStateField to be used without constantly passing in setState
527
+ *
528
+ * If possible, please consider updating your useState calls to useImmer and using the immer
529
+ * versions of these functions
530
+ *
531
+ * Use like so:
532
+ *
533
+ * [state, setState] = useState<{ num: number; string: string; }>({ num: 1, string: 'str' });
534
+ *
535
+ * const updateField = curriedInnerReactOuterReact(setState);
536
+ *
537
+ * updateField('num', 3); // Updates state to { num: 3, string: 'str' }
538
+ *
539
+ * updateField('num', oldNum => oldNum + 1); // Updates state to { num: 4, string: 'str' }
540
+ *
541
+ * updateField(setState, 'num', 'three'); // TS Error due to invalid type
542
+ */
543
+ export declare const curriedInnerReactOuterReact: <State>(setState: SetState<State>) => InnerReactOuterReact<State>;
544
+ export declare function curriedStateSlice<State>(setState: Updater<State>): InnerImmerOuterImmer<State>;
545
+ export declare function curriedStateSlice<State>(setState: Updater<State>, options: {
546
+ inner: "immer";
547
+ outer: "immer";
548
+ }): InnerImmerOuterImmer<State>;
549
+ export declare function curriedStateSlice<State>(setState: Updater<State>, options: {
550
+ inner: "immer";
551
+ outer: "react";
552
+ }): InnerImmerOuterReact<State>;
553
+ export declare function curriedStateSlice<State>(setState: SetState<State>, options: {
554
+ inner: "react";
555
+ outer: "immer";
556
+ }): InnerReactOuterImmer<State>;
557
+ export declare function curriedStateSlice<State>(setState: SetState<State>, options: {
558
+ inner: "react";
559
+ outer: "react";
560
+ }): InnerReactOuterReact<State>;
561
+ export type UpdateSlice<State> = {
562
+ (index: number): Updater<State>;
563
+ (index: number, value: UpdaterArgs<State>): void;
564
+ };
565
+ export type CurriedArraySlice = {
566
+ <State>(setState: SetState<State[]>): UpdateSlice<State>;
567
+ <State>(setState: SetState<State[]>, index: number): Updater<State>;
568
+ <State>(setState: SetState<State[]>, index: number, value: State): void;
569
+ };
570
+ export declare const curriedArraySlice: CurriedArraySlice;
571
+ export type ImmerArraySlice = {
572
+ <State>(setState: Updater<State[]>): UpdateSlice<State>;
573
+ <State>(setState: Updater<State[]>, index: number): Updater<State>;
574
+ <State>(setState: Updater<State[]>, index: number, value: State): void;
575
+ };
576
+ export declare const immerArraySlice: ImmerArraySlice;
577
+ export declare const ImageResizingValidator: z.ZodObject<{
578
+ type: z.ZodLiteral<"resizing">;
579
+ }, z.core.$strip>;
580
+ export type ImageResizing = z.infer<typeof ImageResizingValidator>;
581
+ export declare const ImageUploadingValidator: z.ZodObject<{
582
+ type: z.ZodLiteral<"uploading">;
583
+ progress: z.ZodOptional<z.ZodNumber>;
584
+ }, z.core.$strip>;
585
+ export type ImageUploading = z.infer<typeof ImageUploadingValidator>;
586
+ export declare const ImageWithLoadingStateValdator: z.ZodObject<{
587
+ image: z.ZodString;
588
+ loading: z.ZodOptional<z.ZodUnion<readonly [
589
+ z.ZodObject<{
590
+ type: z.ZodLiteral<"resizing">;
591
+ }, z.core.$strip>,
592
+ z.ZodObject<{
593
+ type: z.ZodLiteral<"uploading">;
594
+ progress: z.ZodOptional<z.ZodNumber>;
595
+ }, z.core.$strip>
596
+ ]>>;
597
+ }, z.core.$strip>;
598
+ export type ImageWithLoadingState = z.infer<typeof ImageWithLoadingStateValdator>;
599
+ export type FilestackImage = {
600
+ filename: string;
601
+ handle: string;
602
+ mimetype: string;
603
+ originalFile: {
604
+ name: string;
605
+ size: number;
606
+ type: string;
607
+ };
608
+ originalPath: string;
609
+ size: number;
610
+ source: string;
611
+ status: string;
612
+ uploadId: string;
613
+ url: string;
614
+ };
615
+ export type Simplify<T> = {
616
+ [KeyType in keyof T]: T[KeyType];
617
+ };
618
+ export type Maybify<T> = Simplify<{
619
+ [P in keyof T]?: Maybify<T[P]> | null;
620
+ }>;
621
+ /** If Maybify gives you an exceeds maximum length error, try this one! */
622
+ export type PerformantMaybify<T> = {
623
+ [P in keyof T]?: PerformantMaybify<T[P]> | null;
624
+ };
625
+ export type DeepValues<ObjectType extends object> = {
626
+ [Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? DeepValues<ObjectType[Key]> : ObjectType[Key];
627
+ }[keyof ObjectType & (string | number)];
628
+ export interface Nothing {
629
+ }
630
+ export type Other<T> = T & Nothing;
631
+ export type SuggestString<Literals extends string> = Literals | Other<string>;
632
+ export type DeepPartial<T> = T extends Date ? T : T extends object ? {
633
+ [P in keyof T]?: DeepPartial<T[P]>;
634
+ } : T;
635
+ export declare const isNotUndefined: <T>(value: T | null | undefined) => value is T;
636
+ export declare const filterUndefined: <T>(arr: (T | null | undefined)[]) => T[];
4267
637
  /**
4268
638
  * Determines whether or not a string is a valid hexadecimal string
4269
639
  *