@learncard/vc-plugin 1.1.38 → 1.1.40
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.
@@ -3,23 +3,67 @@ import { ProofOptions } from '@learncard/didkit-plugin';
|
|
3
3
|
import { VCDependentLearnCard, VCImplicitLearnCard } from './types';
|
4
4
|
export declare const issueCredential: (initLearnCard: VCDependentLearnCard) => (learnCard: VCImplicitLearnCard, credential: UnsignedVC, signingOptions?: Partial<ProofOptions>) => Promise<{
|
5
5
|
[x: string]: any;
|
6
|
+
status?: {
|
7
|
+
[x: string]: any;
|
8
|
+
type: string;
|
9
|
+
id: string;
|
10
|
+
} | {
|
11
|
+
[x: string]: any;
|
12
|
+
type: string;
|
13
|
+
id: string;
|
14
|
+
}[] | undefined;
|
6
15
|
id?: string | undefined;
|
16
|
+
name?: string | undefined;
|
17
|
+
description?: string | undefined;
|
18
|
+
refreshService?: {
|
19
|
+
[x: string]: any;
|
20
|
+
id?: string | undefined;
|
21
|
+
type: string;
|
22
|
+
} | {
|
23
|
+
[x: string]: any;
|
24
|
+
id?: string | undefined;
|
25
|
+
type: string;
|
26
|
+
}[] | undefined;
|
27
|
+
credentialSchema?: {
|
28
|
+
[x: string]: any;
|
29
|
+
type: string;
|
30
|
+
id: string;
|
31
|
+
} | {
|
32
|
+
[x: string]: any;
|
33
|
+
type: string;
|
34
|
+
id: string;
|
35
|
+
}[] | undefined;
|
36
|
+
issuanceDate?: string | undefined;
|
7
37
|
expirationDate?: string | undefined;
|
8
38
|
credentialStatus?: {
|
9
39
|
[x: string]: any;
|
10
40
|
type: string;
|
11
41
|
id: string;
|
12
|
-
} |
|
13
|
-
credentialSchema?: {
|
42
|
+
} | {
|
14
43
|
[x: string]: any;
|
15
44
|
type: string;
|
16
45
|
id: string;
|
17
46
|
}[] | undefined;
|
18
|
-
|
47
|
+
validFrom?: string | undefined;
|
48
|
+
validUntil?: string | undefined;
|
49
|
+
termsOfUse?: {
|
19
50
|
[x: string]: any;
|
51
|
+
id?: string | undefined;
|
20
52
|
type: string;
|
21
|
-
|
22
|
-
|
53
|
+
} | {
|
54
|
+
[x: string]: any;
|
55
|
+
id?: string | undefined;
|
56
|
+
type: string;
|
57
|
+
}[] | undefined;
|
58
|
+
evidence?: {
|
59
|
+
[x: string]: any;
|
60
|
+
id?: string | undefined;
|
61
|
+
type: string | [string, ...string[]];
|
62
|
+
} | {
|
63
|
+
[x: string]: any;
|
64
|
+
id?: string | undefined;
|
65
|
+
type: string | [string, ...string[]];
|
66
|
+
}[] | undefined;
|
23
67
|
type: [string, ...string[]];
|
24
68
|
'@context': (string | Record<string, any>)[];
|
25
69
|
issuer: string | {
|
@@ -68,7 +112,6 @@ export declare const issueCredential: (initLearnCard: VCDependentLearnCard) => (
|
|
68
112
|
familyNamePrefix?: string | undefined;
|
69
113
|
dateOfBirth?: string | undefined;
|
70
114
|
};
|
71
|
-
issuanceDate: string;
|
72
115
|
credentialSubject: {
|
73
116
|
[x: string]: any;
|
74
117
|
id?: string | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"issueCredential.d.ts","sourceRoot":"","sources":["../src/issueCredential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGpE,eAAO,MAAM,eAAe,kBAAmB,oBAAoB,iBAEhD,mBAAmB,cAClB,UAAU,mBACN,OAAO,CAAC,YAAY,CAAC
|
1
|
+
{"version":3,"file":"issueCredential.d.ts","sourceRoot":"","sources":["../src/issueCredential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGpE,eAAO,MAAM,eAAe,kBAAmB,oBAAoB,iBAEhD,mBAAmB,cAClB,UAAU,mBACN,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;UA4Biq+C,CAAC;;;;UAA0F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAipB,CAAC;;;;UAA0F,CAAC;;;;;UAAsH,CAAC;;;;UAAkH,CAAC;;;;;;;YAAyO,CAAC;UAAwD,CAAC;YAAkC,CAAC;WAAiC,CAAC;aAAmC,CAAC;mBAAyC,CAAC;mBAAyC,CAAC;aAAkC,CAAC;mBAAgC,CAAC;;;;aAA4G,CAAC;eAAqC,CAAC;0BAA8B,CAAC;8BAAoD,CAAC;yBAA+C,CAAC;2BAAiD,CAAC;yBAA+C,CAAC;+BAAqD,CAAC;sBAA4C,CAAC;eAAqC,CAAC;;;;;;;uBAA0P,CAAC;;;;;gBAAmK,CAAC;iBAAuC,CAAC;kBAAyB,CAAC;iBAAuC,CAAC;sBAA4C,CAAC;sBAA4C,CAAC;uBAA6C,CAAC;uBAA6C,CAAC;wBAA8C,CAAC;mBAAyC,CAAC;;;;UAA0F,CAAC;;;UAAoE,CAAC;;;;iBAAuF,CAAC;cAAoC,CAAC;aAAmC,CAAC;WAAiC,CAAC;;;;;;;iBAA4L,CAAC;cAAoC,CAAC;aAAmC,CAAC;WAAiC,CAAC;;;;;;EADzslD,CAAC"}
|
@@ -6,23 +6,67 @@ export declare const issuePresentation: (initLearnCard: VCDependentLearnCard) =>
|
|
6
6
|
id?: string | undefined;
|
7
7
|
verifiableCredential?: {
|
8
8
|
[x: string]: any;
|
9
|
+
status?: {
|
10
|
+
[x: string]: any;
|
11
|
+
type: string;
|
12
|
+
id: string;
|
13
|
+
} | {
|
14
|
+
[x: string]: any;
|
15
|
+
type: string;
|
16
|
+
id: string;
|
17
|
+
}[] | undefined;
|
9
18
|
id?: string | undefined;
|
19
|
+
name?: string | undefined;
|
20
|
+
description?: string | undefined;
|
21
|
+
refreshService?: {
|
22
|
+
[x: string]: any;
|
23
|
+
id?: string | undefined;
|
24
|
+
type: string;
|
25
|
+
} | {
|
26
|
+
[x: string]: any;
|
27
|
+
id?: string | undefined;
|
28
|
+
type: string;
|
29
|
+
}[] | undefined;
|
30
|
+
credentialSchema?: {
|
31
|
+
[x: string]: any;
|
32
|
+
type: string;
|
33
|
+
id: string;
|
34
|
+
} | {
|
35
|
+
[x: string]: any;
|
36
|
+
type: string;
|
37
|
+
id: string;
|
38
|
+
}[] | undefined;
|
39
|
+
issuanceDate?: string | undefined;
|
10
40
|
expirationDate?: string | undefined;
|
11
41
|
credentialStatus?: {
|
12
42
|
[x: string]: any;
|
13
43
|
type: string;
|
14
44
|
id: string;
|
15
|
-
} |
|
16
|
-
credentialSchema?: {
|
45
|
+
} | {
|
17
46
|
[x: string]: any;
|
18
47
|
type: string;
|
19
48
|
id: string;
|
20
49
|
}[] | undefined;
|
21
|
-
|
50
|
+
validFrom?: string | undefined;
|
51
|
+
validUntil?: string | undefined;
|
52
|
+
termsOfUse?: {
|
22
53
|
[x: string]: any;
|
54
|
+
id?: string | undefined;
|
23
55
|
type: string;
|
24
|
-
|
25
|
-
|
56
|
+
} | {
|
57
|
+
[x: string]: any;
|
58
|
+
id?: string | undefined;
|
59
|
+
type: string;
|
60
|
+
}[] | undefined;
|
61
|
+
evidence?: {
|
62
|
+
[x: string]: any;
|
63
|
+
id?: string | undefined;
|
64
|
+
type: string | [string, ...string[]];
|
65
|
+
} | {
|
66
|
+
[x: string]: any;
|
67
|
+
id?: string | undefined;
|
68
|
+
type: string | [string, ...string[]];
|
69
|
+
}[] | undefined;
|
26
70
|
type: [string, ...string[]];
|
27
71
|
"@context": (string | Record<string, any>)[];
|
28
72
|
issuer: string | {
|
@@ -71,7 +115,6 @@ export declare const issuePresentation: (initLearnCard: VCDependentLearnCard) =>
|
|
71
115
|
familyNamePrefix?: string | undefined;
|
72
116
|
dateOfBirth?: string | undefined;
|
73
117
|
};
|
74
|
-
issuanceDate: string;
|
75
118
|
credentialSubject: {
|
76
119
|
[x: string]: any;
|
77
120
|
id?: string | undefined;
|
@@ -102,23 +145,67 @@ export declare const issuePresentation: (initLearnCard: VCDependentLearnCard) =>
|
|
102
145
|
}[];
|
103
146
|
} | {
|
104
147
|
[x: string]: any;
|
148
|
+
status?: {
|
149
|
+
[x: string]: any;
|
150
|
+
type: string;
|
151
|
+
id: string;
|
152
|
+
} | {
|
153
|
+
[x: string]: any;
|
154
|
+
type: string;
|
155
|
+
id: string;
|
156
|
+
}[] | undefined;
|
105
157
|
id?: string | undefined;
|
158
|
+
name?: string | undefined;
|
159
|
+
description?: string | undefined;
|
160
|
+
refreshService?: {
|
161
|
+
[x: string]: any;
|
162
|
+
id?: string | undefined;
|
163
|
+
type: string;
|
164
|
+
} | {
|
165
|
+
[x: string]: any;
|
166
|
+
id?: string | undefined;
|
167
|
+
type: string;
|
168
|
+
}[] | undefined;
|
169
|
+
credentialSchema?: {
|
170
|
+
[x: string]: any;
|
171
|
+
type: string;
|
172
|
+
id: string;
|
173
|
+
} | {
|
174
|
+
[x: string]: any;
|
175
|
+
type: string;
|
176
|
+
id: string;
|
177
|
+
}[] | undefined;
|
178
|
+
issuanceDate?: string | undefined;
|
106
179
|
expirationDate?: string | undefined;
|
107
180
|
credentialStatus?: {
|
108
181
|
[x: string]: any;
|
109
182
|
type: string;
|
110
183
|
id: string;
|
111
|
-
} |
|
112
|
-
credentialSchema?: {
|
184
|
+
} | {
|
113
185
|
[x: string]: any;
|
114
186
|
type: string;
|
115
187
|
id: string;
|
116
188
|
}[] | undefined;
|
117
|
-
|
189
|
+
validFrom?: string | undefined;
|
190
|
+
validUntil?: string | undefined;
|
191
|
+
termsOfUse?: {
|
118
192
|
[x: string]: any;
|
193
|
+
id?: string | undefined;
|
119
194
|
type: string;
|
120
|
-
|
121
|
-
|
195
|
+
} | {
|
196
|
+
[x: string]: any;
|
197
|
+
id?: string | undefined;
|
198
|
+
type: string;
|
199
|
+
}[] | undefined;
|
200
|
+
evidence?: {
|
201
|
+
[x: string]: any;
|
202
|
+
id?: string | undefined;
|
203
|
+
type: string | [string, ...string[]];
|
204
|
+
} | {
|
205
|
+
[x: string]: any;
|
206
|
+
id?: string | undefined;
|
207
|
+
type: string | [string, ...string[]];
|
208
|
+
}[] | undefined;
|
122
209
|
type: [string, ...string[]];
|
123
210
|
"@context": (string | Record<string, any>)[];
|
124
211
|
issuer: string | {
|
@@ -167,7 +254,6 @@ export declare const issuePresentation: (initLearnCard: VCDependentLearnCard) =>
|
|
167
254
|
familyNamePrefix?: string | undefined;
|
168
255
|
dateOfBirth?: string | undefined;
|
169
256
|
};
|
170
|
-
issuanceDate: string;
|
171
257
|
credentialSubject: {
|
172
258
|
[x: string]: any;
|
173
259
|
id?: string | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"issuePresentation.d.ts","sourceRoot":"","sources":["../src/issuePresentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGpE,eAAO,MAAM,iBAAiB,kBAAmB,oBAAoB,iBAElD,mBAAmB,gBAChB,UAAU,mBACR,OAAO,CAAC,YAAY,CAAC;;;;;
|
1
|
+
{"version":3,"file":"issuePresentation.d.ts","sourceRoot":"","sources":["../src/issuePresentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGpE,eAAO,MAAM,iBAAiB,kBAAmB,oBAAoB,iBAElD,mBAAmB,gBAChB,UAAU,mBACR,OAAO,CAAC,YAAY,CAA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AC;;;;cAAkI,CAAC;;;;;;;gBAAqQ,CAAC;cAA4D,CAAC;gBAAsC,CAAC;eAAqC,CAAC;iBAAuC,CAAC;uBAA6C,CAAC;uBAA6C,CAAC;iBAAsC,CAAC;uBAAoC,CAAC;;;;iBAA4H,CAAC;mBAAyC,CAAC;8BAAkC,CAAC;kCAAwD,CAAC;6BAAmD,CAAC;+BAAqD,CAAC;6BAAmD,CAAC;mCAAyD,CAAC;0BAAgD,CAAC;mBAAyC,CAAC;;;;;;;2BAAsR,CAAC;;;;;oBAAuL,CAAC;qBAA2C,CAAC;sBAA6B,CAAC;qBAA2C,CAAC;0BAAgD,CAAC;0BAAgD,CAAC;2BAAiD,CAAC;2BAAiD,CAAC;4BAAkD,CAAC;uBAA6C,CAAC;;;;cAA0G,CAAC;;;cAAgF,CAAC;;;;qBAAuG,CAAC;kBAAwC,CAAC;iBAAuC,CAAC;eAAqC,CAAC;;;;;;;qBAAwN,CAAC;kBAAwC,CAAC;iBAAuC,CAAC;eAAqC,CAAC;;;;;;;;;;;;iBAA8W,CAAC;cAAoC,CAAC;aAAmC,CAAC;WAAiC,CAAC;;;;;;;iBAA4L,CAAC;cAAoC,CAAC;aAAmC,CAAC;WAAiC,CAAC;;;;;;EADv4zL,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@learncard/vc-plugin",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.40",
|
4
4
|
"description": "",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"module": "./dist/vc-plugin.esm.js",
|
@@ -30,9 +30,9 @@
|
|
30
30
|
},
|
31
31
|
"types": "./dist/index.d.ts",
|
32
32
|
"dependencies": {
|
33
|
-
"@learncard/core": "9.3.
|
34
|
-
"@learncard/didkit-plugin": "^1.5.
|
35
|
-
"@learncard/types": "5.6.
|
33
|
+
"@learncard/core": "9.3.25",
|
34
|
+
"@learncard/didkit-plugin": "^1.5.11",
|
35
|
+
"@learncard/types": "5.6.12"
|
36
36
|
},
|
37
37
|
"scripts": {
|
38
38
|
"build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",
|