@learncard/types 4.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +0 -1
- package/dist/learncard.d.ts +16 -10
- package/dist/obv3.d.ts +170 -170
- package/dist/types.cjs.development.js +10 -13
- package/dist/types.cjs.development.js.map +3 -3
- package/dist/types.cjs.production.min.js +1 -1
- package/dist/types.cjs.production.min.js.map +3 -3
- package/dist/types.esm.js +10 -13
- package/dist/types.esm.js.map +3 -3
- package/dist/vc.d.ts +41 -41
- package/package.json +1 -1
- package/dist/idx.d.ts +0 -9
package/dist/index.d.ts
CHANGED
package/dist/learncard.d.ts
CHANGED
@@ -42,7 +42,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
42
42
|
createdAt: z.ZodOptional<z.ZodString>;
|
43
43
|
issuer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
44
44
|
id: z.ZodOptional<z.ZodString>;
|
45
|
-
type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone"
|
45
|
+
type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
|
46
46
|
name: z.ZodOptional<z.ZodString>;
|
47
47
|
url: z.ZodOptional<z.ZodString>;
|
48
48
|
phone: z.ZodOptional<z.ZodString>;
|
@@ -138,7 +138,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
138
138
|
dateOfBirth: z.ZodOptional<z.ZodString>;
|
139
139
|
}, "strip", z.ZodAny, {
|
140
140
|
[x: string]: any;
|
141
|
-
type?: [string, ...string[]] | undefined;
|
141
|
+
type?: string | [string, ...string[]] | undefined;
|
142
142
|
id?: string | undefined;
|
143
143
|
name?: string | undefined;
|
144
144
|
url?: string | undefined;
|
@@ -183,7 +183,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
183
183
|
dateOfBirth?: string | undefined;
|
184
184
|
}, {
|
185
185
|
[x: string]: any;
|
186
|
-
type?: [string, ...string[]] | undefined;
|
186
|
+
type?: string | [string, ...string[]] | undefined;
|
187
187
|
id?: string | undefined;
|
188
188
|
name?: string | undefined;
|
189
189
|
url?: string | undefined;
|
@@ -229,7 +229,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
229
229
|
}>]>>;
|
230
230
|
issuee: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
231
231
|
id: z.ZodOptional<z.ZodString>;
|
232
|
-
type: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone"
|
232
|
+
type: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>]>;
|
233
233
|
name: z.ZodOptional<z.ZodString>;
|
234
234
|
url: z.ZodOptional<z.ZodString>;
|
235
235
|
phone: z.ZodOptional<z.ZodString>;
|
@@ -325,7 +325,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
325
325
|
dateOfBirth: z.ZodOptional<z.ZodString>;
|
326
326
|
}, "strip", z.ZodAny, {
|
327
327
|
[x: string]: any;
|
328
|
-
type?: [string, ...string[]] | undefined;
|
328
|
+
type?: string | [string, ...string[]] | undefined;
|
329
329
|
id?: string | undefined;
|
330
330
|
name?: string | undefined;
|
331
331
|
url?: string | undefined;
|
@@ -370,7 +370,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
370
370
|
dateOfBirth?: string | undefined;
|
371
371
|
}, {
|
372
372
|
[x: string]: any;
|
373
|
-
type?: [string, ...string[]] | undefined;
|
373
|
+
type?: string | [string, ...string[]] | undefined;
|
374
374
|
id?: string | undefined;
|
375
375
|
name?: string | undefined;
|
376
376
|
url?: string | undefined;
|
@@ -426,7 +426,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
426
426
|
}, "strip", z.ZodTypeAny, {
|
427
427
|
issuer?: string | {
|
428
428
|
[x: string]: any;
|
429
|
-
type?: [string, ...string[]] | undefined;
|
429
|
+
type?: string | [string, ...string[]] | undefined;
|
430
430
|
id?: string | undefined;
|
431
431
|
name?: string | undefined;
|
432
432
|
url?: string | undefined;
|
@@ -478,7 +478,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
478
478
|
createdAt?: string | undefined;
|
479
479
|
issuee?: string | {
|
480
480
|
[x: string]: any;
|
481
|
-
type?: [string, ...string[]] | undefined;
|
481
|
+
type?: string | [string, ...string[]] | undefined;
|
482
482
|
id?: string | undefined;
|
483
483
|
name?: string | undefined;
|
484
484
|
url?: string | undefined;
|
@@ -525,7 +525,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
525
525
|
}, {
|
526
526
|
issuer?: string | {
|
527
527
|
[x: string]: any;
|
528
|
-
type?: [string, ...string[]] | undefined;
|
528
|
+
type?: string | [string, ...string[]] | undefined;
|
529
529
|
id?: string | undefined;
|
530
530
|
name?: string | undefined;
|
531
531
|
url?: string | undefined;
|
@@ -577,7 +577,7 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
577
577
|
createdAt?: string | undefined;
|
578
578
|
issuee?: string | {
|
579
579
|
[x: string]: any;
|
580
|
-
type?: [string, ...string[]] | undefined;
|
580
|
+
type?: string | [string, ...string[]] | undefined;
|
581
581
|
id?: string | undefined;
|
582
582
|
name?: string | undefined;
|
583
583
|
url?: string | undefined;
|
@@ -623,3 +623,9 @@ export declare const CredentialInfoValidator: z.ZodObject<{
|
|
623
623
|
} | undefined;
|
624
624
|
}>;
|
625
625
|
export declare type CredentialInfo = z.infer<typeof CredentialInfoValidator>;
|
626
|
+
export declare type CredentialRecord<Metadata extends Record<string, any> = Record<never, never>> = {
|
627
|
+
id: string;
|
628
|
+
uri: string;
|
629
|
+
[key: string]: any;
|
630
|
+
} & Metadata;
|
631
|
+
export declare const CredentialRecordValidator: z.ZodType<CredentialRecord>;
|