@nuggetslife/vc 0.1.0 → 0.2.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.
Files changed (58) hide show
  1. package/interop-allowlist.json +3 -0
  2. package/interop-smoke-allowlist.json +3 -0
  3. package/package.json +8 -7
  4. package/src/jsonld.rs +2 -1
  5. package/src/ld_signatures.rs +11 -2
  6. package/test-fixtures/interop/README.md +46 -0
  7. package/test-fixtures/interop/_contexts/README.md +51 -0
  8. package/test-fixtures/interop/_contexts/bbs-bound-v1.jsonld +92 -0
  9. package/test-fixtures/interop/_contexts/citizenship-v1.jsonld +58 -0
  10. package/test-fixtures/interop/_contexts/credentials-v1.jsonld +316 -0
  11. package/test-fixtures/interop/_contexts/elm-edc-ap.jsonld +809 -0
  12. package/test-fixtures/interop/_contexts/essif-schemas-vc-2020-v1.jsonld +47 -0
  13. package/test-fixtures/interop/_contexts/identity-v2.jsonld +195 -0
  14. package/test-fixtures/interop/_contexts/nuggets-identity-v1.jsonld +175 -0
  15. package/test-fixtures/interop/_contexts/nuggets-kyb-v1.jsonld +333 -0
  16. package/test-fixtures/interop/_contexts/openbadges-v3.jsonld +445 -0
  17. package/test-fixtures/interop/_contexts/security-bbs-v1.jsonld +93 -0
  18. package/test-fixtures/interop/ebsi/diploma-elm/README.md +29 -0
  19. package/test-fixtures/interop/ebsi/diploma-elm/expected.nq +70 -0
  20. package/test-fixtures/interop/ebsi/diploma-elm/frame.jsonld +24 -0
  21. package/test-fixtures/interop/ebsi/diploma-elm/input.jsonld +444 -0
  22. package/test-fixtures/interop/ebsi/diploma-simple/README.md +19 -0
  23. package/test-fixtures/interop/ebsi/diploma-simple/expected.nq +9 -0
  24. package/test-fixtures/interop/ebsi/diploma-simple/frame.jsonld +13 -0
  25. package/test-fixtures/interop/ebsi/diploma-simple/input.jsonld +24 -0
  26. package/test-fixtures/interop/idv2/full-disclosure/README.md +9 -0
  27. package/test-fixtures/interop/idv2/full-disclosure/expected.nq +59 -0
  28. package/test-fixtures/interop/idv2/full-disclosure/frame.jsonld +9 -0
  29. package/test-fixtures/interop/idv2/full-disclosure/input.jsonld +82 -0
  30. package/test-fixtures/interop/nuggets/identity-v1/README.md +17 -0
  31. package/test-fixtures/interop/nuggets/identity-v1/expected.nq +21 -0
  32. package/test-fixtures/interop/nuggets/identity-v1/frame.jsonld +17 -0
  33. package/test-fixtures/interop/nuggets/identity-v1/input.jsonld +31 -0
  34. package/test-fixtures/interop/nuggets/kyb-v1/README.md +15 -0
  35. package/test-fixtures/interop/nuggets/kyb-v1/expected.nq +18 -0
  36. package/test-fixtures/interop/nuggets/kyb-v1/frame.jsonld +24 -0
  37. package/test-fixtures/interop/nuggets/kyb-v1/input.jsonld +60 -0
  38. package/test-fixtures/interop/openbadges-v3/basic-achievement/README.md +17 -0
  39. package/test-fixtures/interop/openbadges-v3/basic-achievement/expected.nq +12 -0
  40. package/test-fixtures/interop/openbadges-v3/basic-achievement/frame.jsonld +17 -0
  41. package/test-fixtures/interop/openbadges-v3/basic-achievement/input.jsonld +25 -0
  42. package/test-fixtures/interop/openbadges-v3/with-allowed-values/README.md +11 -0
  43. package/test-fixtures/interop/openbadges-v3/with-allowed-values/expected.nq +25 -0
  44. package/test-fixtures/interop/openbadges-v3/with-allowed-values/frame.jsonld +22 -0
  45. package/test-fixtures/interop/openbadges-v3/with-allowed-values/input.jsonld +40 -0
  46. package/test-fixtures/interop/vp/single-vc-wrap/README.md +6 -0
  47. package/test-fixtures/interop/vp/single-vc-wrap/expected.nq +7 -0
  48. package/test-fixtures/interop/vp/single-vc-wrap/frame.jsonld +17 -0
  49. package/test-fixtures/interop/vp/single-vc-wrap/input.jsonld +27 -0
  50. package/test-fixtures/interop/w3c-vc-v1/permanent-resident-card/README.md +5 -0
  51. package/test-fixtures/interop/w3c-vc-v1/permanent-resident-card/expected.nq +13 -0
  52. package/test-fixtures/interop/w3c-vc-v1/permanent-resident-card/frame.jsonld +14 -0
  53. package/test-fixtures/interop/w3c-vc-v1/permanent-resident-card/input.jsonld +29 -0
  54. package/test_interop.mjs +184 -0
  55. package/test_interop_smoke.mjs +388 -0
  56. package/tools/regen_expected.mjs +108 -0
  57. package/w3c-baseline.json +27 -30
  58. package/w3c-denylist.json +6 -1
@@ -0,0 +1,333 @@
1
+ {
2
+ "__url__": "https://schemas.nuggets.life/kybV1.json",
3
+ "@context": {
4
+ "@version": 1.1,
5
+ "schema": "http://schema.org/",
6
+ "kyb": "https://schemas.nuggets.life/kybV1.json#",
7
+ "KybCredential": {
8
+ "@id": "https://schemas.nuggets.life/kybV1.json#KybCredential",
9
+ "@context": {
10
+ "@version": 1.1,
11
+ "id": "@id",
12
+ "type": "@type",
13
+ "name": "schema:name",
14
+ "description": "schema:description",
15
+ "identifier": "schema:identifier"
16
+ }
17
+ },
18
+ "Kyb": {
19
+ "@id": "https://schemas.nuggets.life/kybV1.json#Kyb",
20
+ "@context": {
21
+ "@version": 1.1,
22
+ "id": "@id",
23
+ "type": "@type",
24
+ "result": {
25
+ "@id": "https://schemas.nuggets.life/kybV1.json#result",
26
+ "@context": {
27
+ "@version": 1.1,
28
+ "businessAddress": {
29
+ "@id": "https://schemas.nuggets.life/kybV1.json#businessAddress",
30
+ "@context": {
31
+ "@version": 1.1,
32
+ "country": "schema:addressCountry",
33
+ "address1": "schema:streetAddress",
34
+ "address2": "schema:streetAddress",
35
+ "city": "schema:addressLocality",
36
+ "region": "schema:addressRegion",
37
+ "postalCode": "schema:postalCode"
38
+ }
39
+ },
40
+ "businessMailingAddress": {
41
+ "@id": "https://schemas.nuggets.life/kybV1.json#businessMailingAddress",
42
+ "@context": {
43
+ "@version": 1.1,
44
+ "country": "schema:addressCountry",
45
+ "address1": "schema:streetAddress",
46
+ "address2": "schema:streetAddress",
47
+ "city": "schema:addressLocality",
48
+ "region": "schema:addressRegion",
49
+ "postalCode": "schema:postalCode"
50
+ }
51
+ },
52
+ "businessInfo": {
53
+ "@id": "https://schemas.nuggets.life/kybV1.json#businessInfo",
54
+ "@context": {
55
+ "@version": 1.1,
56
+ "businessName": "schema:name",
57
+ "legalStatus": "schema:legalName",
58
+ "lastAnnualRevenue": "schema:annualRevenue",
59
+ "employeeNumbers": "schema:numberOfEmployees",
60
+ "ownerNumbers": "schema:numberOfOwners",
61
+ "dunsNumber": "schema:identifier",
62
+ "domain": "schema:url"
63
+ }
64
+ },
65
+ "director": {
66
+ "@id": "https://schemas.nuggets.life/kybV1.json#director",
67
+ "@container": "@set",
68
+ "@context": {
69
+ "@version": 1.1,
70
+ "id": "@id",
71
+ "type": "@type",
72
+ "birthDate": "schema:birthDate",
73
+ "familyName": "schema:familyName",
74
+ "gender": "schema:gender",
75
+ "givenName": "schema:givenName",
76
+ "identifier": "schema:identifier",
77
+ "nationality": "schema:nationality",
78
+ "emailAddress": "schema:email"
79
+ }
80
+ },
81
+ "evidence": {
82
+ "@id": "https://schemas.nuggets.life/kybV1.json#evidence",
83
+ "@context": {
84
+ "duns": "schema:Identifier",
85
+ "registeredAddress": {
86
+ "@id": "https://schemas.nuggets.life/kybV1.json#registeredAddress",
87
+ "@context": {
88
+ "language": {
89
+ "@id": "https://schemas.nuggets.life/kybV1.json#registeredAddress/language",
90
+ "@context": {
91
+ "description": "schema:Text",
92
+ "dnbCode": "schema:Number"
93
+ }
94
+ },
95
+ "addressCountry": {
96
+ "@id": "https://schemas.nuggets.life/kybV1.json#registeredAddress/addressCountry",
97
+ "@context": {
98
+ "name": "schema:Text",
99
+ "isoAlpha2Code": "schema:Text"
100
+ }
101
+ },
102
+ "addressLocality": {
103
+ "@id": "https://schemas.nuggets.life/kybV1.json#registeredAddress/addressLocality",
104
+ "@context": {
105
+ "name": "schema:Text"
106
+ }
107
+ },
108
+ "minorTownName": "schema:Text",
109
+ "addressRegion": {
110
+ "@id": "https://schemas.nuggets.life/kybV1.json#registeredAddress/addressRegion",
111
+ "@context": {
112
+ "name": "schema:Text",
113
+ "abbreviatedName": "schema:Text"
114
+ }
115
+ },
116
+ "addressCounty": "schema:Text",
117
+ "postalCode": "schema:Text",
118
+ "postalCodePosition": "schema:Text",
119
+ "streetNumber": "schema:Text",
120
+ "streetName": "schema:Text",
121
+ "streetAddress": {
122
+ "@id": "https://schemas.nuggets.life/kybV1.json#registeredAddress/streetAddress",
123
+ "@context": {
124
+ "line1": "schema:Text",
125
+ "line2": "schema:Text"
126
+ }
127
+ },
128
+ "postOfficeBox": "schema:Text"
129
+ }
130
+ },
131
+ "mostSeniorPrincipal": {
132
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal",
133
+ "@context": {
134
+ "subjectType": "schema:Text",
135
+ "birthDate": "schema:Date",
136
+ "givenName": "schema:Text",
137
+ "middleName": "schema:Text",
138
+ "familyName": "schema:Text",
139
+ "fullName": "schema:Text",
140
+ "namePrefix": "schema:Text",
141
+ "nameSuffix": "schema:Text",
142
+ "associationStartDate": "schema:Date",
143
+ "otherLanguageNames": "schema:Text",
144
+ "nationality": {
145
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/nationality",
146
+ "@context": {
147
+ "isoAlpha2Code": "schema:Text",
148
+ "name": "schema:Text"
149
+ }
150
+ },
151
+ "gender": {
152
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/gender",
153
+ "@context": {
154
+ "description": "schema:Text",
155
+ "dnbCode": "schema:Number"
156
+ }
157
+ },
158
+ "zodiacSign": "schema:Text",
159
+ "premiseLocationType": "schema:Text",
160
+ "telephones": "schema:Text",
161
+ "hobbies": "schema:Text",
162
+ "graduationSchoolName": "schema:Text",
163
+ "educationalQualifications": "schema:Text",
164
+ "primaryAddress": {
165
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/primaryAddress",
166
+ "@context": {
167
+ "addressCountry": {
168
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/primaryAddress/addressCountry",
169
+ "@context": {
170
+ "name": "schema:Text",
171
+ "isoAlpha2Code": "schema:Text"
172
+ }
173
+ },
174
+ "continentalRegion": "schema:Text",
175
+ "addressLocality": {
176
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/primaryAddress/addressLocality",
177
+ "@context": {
178
+ "name": "schema:Text"
179
+ }
180
+ },
181
+ "minorTownName": "schema:Text",
182
+ "addressRegion": "schema:Text",
183
+ "addressCounty": "schema:Text",
184
+ "postalCode": "schema:Text",
185
+ "postalCodePosition": "schema:Text",
186
+ "streetNumber": "schema:Text",
187
+ "streetName": "schema:Text",
188
+ "streetAddress": {
189
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/primaryAddress/streetAddress",
190
+ "@context": {
191
+ "line1": "schema:Text",
192
+ "line2": "schema:Text"
193
+ }
194
+ },
195
+ "postOfficeBox": "schema:Text",
196
+ "standardAddressCodes": "schema:Text"
197
+ }
198
+ },
199
+ "birthAddress": "schema:PostalAddress",
200
+ "responsibleAreas": "schema:Text",
201
+ "positions": "schema:Text",
202
+ "jobTitles": {
203
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/jobTitles",
204
+ "@context": {
205
+ "title": "schema:Text"
206
+ }
207
+ },
208
+ "managementResponsibilities": {
209
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/managementResponsibilities",
210
+ "@context": {
211
+ "description": "schema:Text",
212
+ "mrcCode": "schema:Text"
213
+ }
214
+ },
215
+ "idNumbers": {
216
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/idNumbers",
217
+ "@context": {
218
+ "idNumber": "schema:Text",
219
+ "idType": {
220
+ "@id": "https://schemas.nuggets.life/kybV1.json#mostSeniorPrincipal/idNumbers/idType",
221
+ "@context": {
222
+ "description": "schema:Text",
223
+ "dnbCode": "schema:Number"
224
+ }
225
+ }
226
+ }
227
+ },
228
+ "isSigningAuthority": "schema:Boolean",
229
+ "hasBankruptcyHistory": "schema:Boolean",
230
+ "isDisqualifiedDirector": "schema:Boolean",
231
+ "disqualifications": "schema:Text",
232
+ "associations": "schema:Text"
233
+ }
234
+ },
235
+ "websiteAddress": {
236
+ "@id": "https://schemas.nuggets.life/kybV1.json#websiteAddress",
237
+ "@context": {
238
+ "url": "schema:URL",
239
+ "domainName": "schema:Text"
240
+ }
241
+ },
242
+ "mailingAddress": "https://schemas.nuggets.life/kybV1.json#mailingAddress",
243
+ "currentPrincipals": {
244
+ "@id": "https://schemas.nuggets.life/kybV1.json#currentPrincipals",
245
+ "@context": {
246
+ "subjectType": "schema:Text",
247
+ "birthDate": "schema:Date",
248
+ "givenName": "schema:Text",
249
+ "middleName": "schema:Text",
250
+ "familyName": "schema:Text",
251
+ "fullName": "schema:Text",
252
+ "namePrefix": "schema:Text",
253
+ "nameSuffix": "schema:Text",
254
+ "associationStartDate": "schema:Date",
255
+ "otherLanguageNames": "schema:Text",
256
+ "nationality": {
257
+ "@id": "https://schemas.nuggets.life/kybV1.json#currentPrincipals/nationality",
258
+ "@context": {
259
+ "isoAlpha2Code": "schema:Text",
260
+ "name": "schema:Text"
261
+ }
262
+ },
263
+ "gender": {
264
+ "@id": "https://schemas.nuggets.life/kybV1.json#currentPrincipals/gender",
265
+ "@context": {
266
+ "description": "schema:Text",
267
+ "dnbCode": "schema:Number"
268
+ }
269
+ },
270
+ "telephones": "schema:Text",
271
+ "hobbies": "schema:Text",
272
+ "graduationSchoolName": "schema:Text",
273
+ "primaryAddress": {
274
+ "@id": "https://schemas.nuggets.life/kybV1.json#currentPrincipals/primaryAddress",
275
+ "@context": {
276
+ "addressCountry": {
277
+ "@id": "https://schemas.nuggets.life/kybV1.json#currentPrincipals/primaryAddress/addressCountry",
278
+ "@context": {
279
+ "name": "schema:Text",
280
+ "isoAlpha2Code": "schema:Text"
281
+ }
282
+ },
283
+ "continentalRegion": "schema:Text",
284
+ "addressLocality": {
285
+ "@id": "https://schemas.nuggets.life/kybV1.json#currentPrincipals/primaryAddress/addressLocality",
286
+ "@context": {
287
+ "name": "schema:Text"
288
+ }
289
+ },
290
+ "minorTownName": "schema:Text",
291
+ "addressRegion": "schema:Text",
292
+ "addressCounty": "schema:Text",
293
+ "postalCode": "schema:PostalCode",
294
+ "postalCodePosition": "schema:Text",
295
+ "streetNumber": "schema:Number",
296
+ "streetName": "schema:Text",
297
+ "streetAddress": {
298
+ "@id": "https://schemas.nuggets.life/kybV1.json#currentPrincipals/primaryAddress/streetAddress",
299
+ "@context": {
300
+ "line1": "schema:Text",
301
+ "line2": "schema:Text"
302
+ }
303
+ },
304
+ "postOfficeBox": "schema:PostOfficeBox"
305
+ }
306
+ },
307
+ "idNumbers": {
308
+ "@id": "https://schemas.nuggets.life/kybV1.json#currentPrincipals/idNumbers",
309
+ "@context": {
310
+ "idNumber": "schema:Text",
311
+ "idType": {
312
+ "@id": "https://schemas.nuggets.life/kybV1.json#currentPrincipals/idNumbers/idType",
313
+ "@context": {
314
+ "description": "schema:Text",
315
+ "dnbCode": "schema:Number"
316
+ }
317
+ }
318
+ }
319
+ }
320
+ }
321
+ }
322
+ }
323
+ },
324
+ "dnbData": {
325
+ "@id": "https://schemas.nuggets.life/kybV1.json#organization",
326
+ "@type": "@json"
327
+ }
328
+ }
329
+ }
330
+ }
331
+ }
332
+ }
333
+ }