@learncard/types 2.0.1 → 2.1.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 +3 -0
- package/dist/learncard.d.ts +611 -0
- package/dist/obv3.d.ts +18386 -0
- package/dist/types.cjs.development.js +359 -7
- 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 +358 -8
- package/dist/types.esm.js.map +3 -3
- package/dist/vc.d.ts +2758 -0
- package/package.json +10 -7
- package/dist/types.d.ts +0 -75
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@learncard/types",
|
3
|
-
"version": "2.0
|
3
|
+
"version": "2.1.0",
|
4
4
|
"description": "Shared types for learn card",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/types.esm.js",
|
@@ -36,16 +36,19 @@
|
|
36
36
|
"url": "https://github.com/WeLibraryOS/LearnCard/issues"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
+
"@size-limit/preset-small-lib": "^7.0.8",
|
40
|
+
"@types/node": "^17.0.38",
|
39
41
|
"aqu": "0.3.2",
|
40
|
-
"np": "^7.6.1",
|
41
|
-
"lint-staged": "^13.0.0",
|
42
42
|
"husky": "^8.0.1",
|
43
|
+
"lint-staged": "^13.0.0",
|
44
|
+
"np": "^7.6.1",
|
43
45
|
"size-limit": "^7.0.8",
|
44
|
-
"
|
45
|
-
|
46
|
-
|
46
|
+
"typescript": "^4.7.2"
|
47
|
+
},
|
48
|
+
"types": "./dist/index.d.ts",
|
49
|
+
"dependencies": {
|
50
|
+
"zod": "^3.17.3"
|
47
51
|
},
|
48
|
-
"types": "./dist/types.d.ts",
|
49
52
|
"scripts": {
|
50
53
|
"build": "aqu build",
|
51
54
|
"start": "aqu watch",
|
package/dist/types.d.ts
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
// Generated by dts-bundle-generator v5.9.0
|
2
|
-
|
3
|
-
export declare enum VerificationStatus {
|
4
|
-
Success = "Success",
|
5
|
-
Failed = "Failed",
|
6
|
-
Error = "Error"
|
7
|
-
}
|
8
|
-
export declare type VerificationItem = {
|
9
|
-
check: string;
|
10
|
-
status: VerificationStatus;
|
11
|
-
message?: string;
|
12
|
-
details?: string;
|
13
|
-
};
|
14
|
-
export declare type AchievementCriteria = {
|
15
|
-
type?: string;
|
16
|
-
narrative?: string;
|
17
|
-
};
|
18
|
-
export declare type CredentialSubjectAchievement = {
|
19
|
-
type?: string;
|
20
|
-
name?: string;
|
21
|
-
description?: string;
|
22
|
-
criteria?: AchievementCriteria;
|
23
|
-
image?: string;
|
24
|
-
};
|
25
|
-
export declare type CredentialSubject = {
|
26
|
-
type?: string;
|
27
|
-
id?: string;
|
28
|
-
achievement?: CredentialSubjectAchievement;
|
29
|
-
};
|
30
|
-
export declare type Issuer = string | {
|
31
|
-
type?: string;
|
32
|
-
id?: string;
|
33
|
-
name?: string;
|
34
|
-
url?: string;
|
35
|
-
image?: string;
|
36
|
-
};
|
37
|
-
export declare type CredentialInfo = {
|
38
|
-
title?: string;
|
39
|
-
createdAt?: string;
|
40
|
-
issuer?: Issuer;
|
41
|
-
issuee?: Issuer;
|
42
|
-
credentialSubject?: CredentialSubject;
|
43
|
-
};
|
44
|
-
export declare type Proof = {
|
45
|
-
type: string;
|
46
|
-
proofPurpose: string;
|
47
|
-
verificationMethod: string;
|
48
|
-
jws: string;
|
49
|
-
created: string;
|
50
|
-
};
|
51
|
-
export declare type UnsignedVC = {
|
52
|
-
[key: string]: any;
|
53
|
-
"@context": string | string[];
|
54
|
-
credentialSubject: CredentialSubject;
|
55
|
-
id: string;
|
56
|
-
issuanceDate: string;
|
57
|
-
expirationDate?: string;
|
58
|
-
issuer: Issuer;
|
59
|
-
type: string[];
|
60
|
-
};
|
61
|
-
export declare type VC = UnsignedVC & {
|
62
|
-
proof: Proof;
|
63
|
-
};
|
64
|
-
export declare type UnsignedVP = {
|
65
|
-
[key: string]: any;
|
66
|
-
"@context": string | string[];
|
67
|
-
holder: string;
|
68
|
-
type: string[];
|
69
|
-
verifiableCredential: VC;
|
70
|
-
};
|
71
|
-
export declare type VP = UnsignedVP & {
|
72
|
-
proof: Proof;
|
73
|
-
};
|
74
|
-
|
75
|
-
export {};
|