@learncard/types 3.1.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/idx.d.ts CHANGED
@@ -1,17 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  /** @group IDXPlugin */
3
- export declare const StorageTypeValidator: z.ZodEnum<["ceramic"]>;
4
- /** @group IDXPlugin */
5
- export declare const StorageTypeEnum: {
6
- ceramic: "ceramic";
7
- };
8
- /** @group IDXPlugin */
9
- export declare type StorageType = z.infer<typeof StorageTypeValidator>;
10
- /** @group IDXPlugin */
11
3
  export declare type IDXCredential<Metadata extends Record<string, any> = Record<never, never>> = {
12
4
  id: string;
13
- title: string;
14
- storageType?: StorageType;
5
+ uri: string;
15
6
  [key: string]: any;
16
7
  } & Metadata;
17
8
  /** @group IDXPlugin */
@@ -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;