@pagopa/io-react-native-wallet 2.0.0-next.2 → 2.0.0-next.4

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 (146) hide show
  1. package/lib/commonjs/credential/issuance/03-start-user-authorization.js +38 -24
  2. package/lib/commonjs/credential/issuance/03-start-user-authorization.js.map +1 -1
  3. package/lib/commonjs/credential/issuance/04-complete-user-authorization.js +75 -57
  4. package/lib/commonjs/credential/issuance/04-complete-user-authorization.js.map +1 -1
  5. package/lib/commonjs/credential/issuance/05-authorize-access.js +6 -10
  6. package/lib/commonjs/credential/issuance/05-authorize-access.js.map +1 -1
  7. package/lib/commonjs/credential/issuance/06-obtain-credential.js +43 -11
  8. package/lib/commonjs/credential/issuance/06-obtain-credential.js.map +1 -1
  9. package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js +51 -48
  10. package/lib/commonjs/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
  11. package/lib/commonjs/credential/issuance/README.md +77 -45
  12. package/lib/commonjs/credential/issuance/const.js +1 -1
  13. package/lib/commonjs/credential/issuance/types.js +17 -10
  14. package/lib/commonjs/credential/issuance/types.js.map +1 -1
  15. package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js +6 -13
  16. package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js.map +1 -1
  17. package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js +10 -11
  18. package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js.map +1 -1
  19. package/lib/commonjs/credential/presentation/types.js +1 -1
  20. package/lib/commonjs/credential/presentation/types.js.map +1 -1
  21. package/lib/commonjs/credential/status/README.md +0 -1
  22. package/lib/commonjs/sd-jwt/__test__/index.test.js +11 -15
  23. package/lib/commonjs/sd-jwt/__test__/index.test.js.map +1 -1
  24. package/lib/commonjs/sd-jwt/__test__/types.test.js +5 -2
  25. package/lib/commonjs/sd-jwt/__test__/types.test.js.map +1 -1
  26. package/lib/commonjs/sd-jwt/__test__/utils.test.js +37 -0
  27. package/lib/commonjs/sd-jwt/__test__/utils.test.js.map +1 -0
  28. package/lib/commonjs/sd-jwt/index.js +26 -1
  29. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  30. package/lib/commonjs/sd-jwt/types.js +71 -8
  31. package/lib/commonjs/sd-jwt/types.js.map +1 -1
  32. package/lib/commonjs/sd-jwt/utils.js +64 -0
  33. package/lib/commonjs/sd-jwt/utils.js.map +1 -0
  34. package/lib/commonjs/trust/types.js +18 -13
  35. package/lib/commonjs/trust/types.js.map +1 -1
  36. package/lib/commonjs/utils/par.js +32 -22
  37. package/lib/commonjs/utils/par.js.map +1 -1
  38. package/lib/commonjs/utils/pop.js +1 -1
  39. package/lib/commonjs/utils/pop.js.map +1 -1
  40. package/lib/commonjs/wallet-instance-attestation/types.js +4 -1
  41. package/lib/commonjs/wallet-instance-attestation/types.js.map +1 -1
  42. package/lib/module/credential/issuance/03-start-user-authorization.js +38 -24
  43. package/lib/module/credential/issuance/03-start-user-authorization.js.map +1 -1
  44. package/lib/module/credential/issuance/04-complete-user-authorization.js +76 -58
  45. package/lib/module/credential/issuance/04-complete-user-authorization.js.map +1 -1
  46. package/lib/module/credential/issuance/05-authorize-access.js +6 -10
  47. package/lib/module/credential/issuance/05-authorize-access.js.map +1 -1
  48. package/lib/module/credential/issuance/06-obtain-credential.js +44 -12
  49. package/lib/module/credential/issuance/06-obtain-credential.js.map +1 -1
  50. package/lib/module/credential/issuance/07-verify-and-parse-credential.js +51 -48
  51. package/lib/module/credential/issuance/07-verify-and-parse-credential.js.map +1 -1
  52. package/lib/module/credential/issuance/README.md +77 -45
  53. package/lib/module/credential/issuance/const.js +1 -1
  54. package/lib/module/credential/issuance/types.js +13 -8
  55. package/lib/module/credential/issuance/types.js.map +1 -1
  56. package/lib/module/credential/presentation/07-evaluate-dcql-query.js +6 -13
  57. package/lib/module/credential/presentation/07-evaluate-dcql-query.js.map +1 -1
  58. package/lib/module/credential/presentation/07-evaluate-input-descriptor.js +10 -11
  59. package/lib/module/credential/presentation/07-evaluate-input-descriptor.js.map +1 -1
  60. package/lib/module/credential/presentation/types.js +1 -1
  61. package/lib/module/credential/presentation/types.js.map +1 -1
  62. package/lib/module/credential/status/README.md +0 -1
  63. package/lib/module/sd-jwt/__test__/index.test.js +11 -16
  64. package/lib/module/sd-jwt/__test__/index.test.js.map +1 -1
  65. package/lib/module/sd-jwt/__test__/types.test.js +5 -2
  66. package/lib/module/sd-jwt/__test__/types.test.js.map +1 -1
  67. package/lib/module/sd-jwt/__test__/utils.test.js +35 -0
  68. package/lib/module/sd-jwt/__test__/utils.test.js.map +1 -0
  69. package/lib/module/sd-jwt/index.js +7 -1
  70. package/lib/module/sd-jwt/index.js.map +1 -1
  71. package/lib/module/sd-jwt/types.js +70 -7
  72. package/lib/module/sd-jwt/types.js.map +1 -1
  73. package/lib/module/sd-jwt/utils.js +57 -0
  74. package/lib/module/sd-jwt/utils.js.map +1 -0
  75. package/lib/module/trust/types.js +18 -13
  76. package/lib/module/trust/types.js.map +1 -1
  77. package/lib/module/utils/par.js +29 -20
  78. package/lib/module/utils/par.js.map +1 -1
  79. package/lib/module/utils/pop.js +1 -1
  80. package/lib/module/utils/pop.js.map +1 -1
  81. package/lib/module/wallet-instance-attestation/types.js +4 -1
  82. package/lib/module/wallet-instance-attestation/types.js.map +1 -1
  83. package/lib/typescript/client/generated/wallet-provider.d.ts +12 -12
  84. package/lib/typescript/credential/issuance/01-start-flow.d.ts +2 -2
  85. package/lib/typescript/credential/issuance/01-start-flow.d.ts.map +1 -1
  86. package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts +7 -6
  87. package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts.map +1 -1
  88. package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts +7 -14
  89. package/lib/typescript/credential/issuance/04-complete-user-authorization.d.ts.map +1 -1
  90. package/lib/typescript/credential/issuance/05-authorize-access.d.ts.map +1 -1
  91. package/lib/typescript/credential/issuance/06-obtain-credential.d.ts +10 -5
  92. package/lib/typescript/credential/issuance/06-obtain-credential.d.ts.map +1 -1
  93. package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts +3 -2
  94. package/lib/typescript/credential/issuance/07-verify-and-parse-credential.d.ts.map +1 -1
  95. package/lib/typescript/credential/issuance/const.d.ts +1 -1
  96. package/lib/typescript/credential/issuance/types.d.ts +49 -26
  97. package/lib/typescript/credential/issuance/types.d.ts.map +1 -1
  98. package/lib/typescript/credential/presentation/01-start-flow.d.ts +2 -2
  99. package/lib/typescript/credential/presentation/07-evaluate-dcql-query.d.ts +4 -3
  100. package/lib/typescript/credential/presentation/07-evaluate-dcql-query.d.ts.map +1 -1
  101. package/lib/typescript/credential/presentation/07-evaluate-input-descriptor.d.ts +9 -5
  102. package/lib/typescript/credential/presentation/07-evaluate-input-descriptor.d.ts.map +1 -1
  103. package/lib/typescript/credential/presentation/types.d.ts +3 -4
  104. package/lib/typescript/credential/presentation/types.d.ts.map +1 -1
  105. package/lib/typescript/credential/status/types.d.ts +4 -4
  106. package/lib/typescript/pid/sd-jwt/types.d.ts +7 -7
  107. package/lib/typescript/sd-jwt/__test__/utils.test.d.ts +2 -0
  108. package/lib/typescript/sd-jwt/__test__/utils.test.d.ts.map +1 -0
  109. package/lib/typescript/sd-jwt/index.d.ts +69 -28
  110. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  111. package/lib/typescript/sd-jwt/types.d.ts +264 -31
  112. package/lib/typescript/sd-jwt/types.d.ts.map +1 -1
  113. package/lib/typescript/sd-jwt/utils.d.ts +18 -0
  114. package/lib/typescript/sd-jwt/utils.d.ts.map +1 -0
  115. package/lib/typescript/trust/build-chain.d.ts +30 -14
  116. package/lib/typescript/trust/build-chain.d.ts.map +1 -1
  117. package/lib/typescript/trust/types.d.ts +322 -158
  118. package/lib/typescript/trust/types.d.ts.map +1 -1
  119. package/lib/typescript/utils/par.d.ts +29 -13
  120. package/lib/typescript/utils/par.d.ts.map +1 -1
  121. package/lib/typescript/wallet-instance-attestation/types.d.ts +9 -9
  122. package/lib/typescript/wallet-instance-attestation/types.d.ts.map +1 -1
  123. package/package.json +1 -1
  124. package/src/credential/issuance/01-start-flow.ts +2 -2
  125. package/src/credential/issuance/03-start-user-authorization.ts +57 -38
  126. package/src/credential/issuance/04-complete-user-authorization.ts +79 -85
  127. package/src/credential/issuance/05-authorize-access.ts +5 -11
  128. package/src/credential/issuance/06-obtain-credential.ts +56 -23
  129. package/src/credential/issuance/07-verify-and-parse-credential.ts +54 -62
  130. package/src/credential/issuance/README.md +77 -45
  131. package/src/credential/issuance/const.ts +1 -1
  132. package/src/credential/issuance/types.ts +19 -8
  133. package/src/credential/presentation/07-evaluate-dcql-query.ts +16 -17
  134. package/src/credential/presentation/07-evaluate-input-descriptor.ts +19 -16
  135. package/src/credential/presentation/types.ts +1 -2
  136. package/src/credential/status/README.md +0 -1
  137. package/src/sd-jwt/__test__/index.test.ts +8 -29
  138. package/src/sd-jwt/__test__/types.test.ts +6 -2
  139. package/src/sd-jwt/__test__/utils.test.ts +37 -0
  140. package/src/sd-jwt/index.ts +7 -1
  141. package/src/sd-jwt/types.ts +68 -7
  142. package/src/sd-jwt/utils.ts +73 -0
  143. package/src/trust/types.ts +23 -17
  144. package/src/utils/par.ts +37 -21
  145. package/src/utils/pop.ts +1 -1
  146. package/src/wallet-instance-attestation/types.ts +3 -1
@@ -29,20 +29,33 @@ export type DisclosureWithEncoded = {
29
29
  decoded: Disclosure;
30
30
  encoded: string;
31
31
  };
32
+ /**
33
+ * Type for a Verifiable Credential in SD-JWT format.
34
+ * It supports both the older and the new data model for backward compatibility.
35
+ */
32
36
  export type SdJwt4VC = z.infer<typeof SdJwt4VC>;
33
37
  export declare const SdJwt4VC: z.ZodObject<{
34
38
  header: z.ZodObject<{
35
- typ: z.ZodLiteral<"vc+sd-jwt">;
39
+ typ: z.ZodEnum<["vc+sd-jwt", "dc+sd-jwt"]>;
36
40
  alg: z.ZodString;
37
- kid: z.ZodOptional<z.ZodString>;
41
+ kid: z.ZodString;
42
+ trust_chain: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ vctm: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
38
45
  }, "strip", z.ZodTypeAny, {
39
46
  alg: string;
40
- typ: "vc+sd-jwt";
41
- kid?: string | undefined;
47
+ kid: string;
48
+ typ: "vc+sd-jwt" | "dc+sd-jwt";
49
+ trust_chain?: string[] | undefined;
50
+ x5c?: string[] | undefined;
51
+ vctm?: string[] | undefined;
42
52
  }, {
43
53
  alg: string;
44
- typ: "vc+sd-jwt";
45
- kid?: string | undefined;
54
+ kid: string;
55
+ typ: "vc+sd-jwt" | "dc+sd-jwt";
56
+ trust_chain?: string[] | undefined;
57
+ x5c?: string[] | undefined;
58
+ vctm?: string[] | undefined;
46
59
  }>;
47
60
  payload: z.ZodIntersection<z.ZodObject<{
48
61
  iss: z.ZodString;
@@ -50,7 +63,23 @@ export declare const SdJwt4VC: z.ZodObject<{
50
63
  iat: z.ZodOptional<z.ZodNumber>;
51
64
  exp: z.ZodNumber;
52
65
  _sd_alg: z.ZodLiteral<"sha-256">;
53
- status: z.ZodObject<{
66
+ status: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
67
+ status_assertion: z.ZodObject<{
68
+ credential_hash_alg: z.ZodLiteral<"sha-256">;
69
+ }, "strip", z.ZodTypeAny, {
70
+ credential_hash_alg: "sha-256";
71
+ }, {
72
+ credential_hash_alg: "sha-256";
73
+ }>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ status_assertion: {
76
+ credential_hash_alg: "sha-256";
77
+ };
78
+ }, {
79
+ status_assertion: {
80
+ credential_hash_alg: "sha-256";
81
+ };
82
+ }>, z.ZodObject<{
54
83
  status_attestation: z.ZodObject<{
55
84
  credential_hash_alg: z.ZodLiteral<"sha-256">;
56
85
  }, "strip", z.ZodTypeAny, {
@@ -66,7 +95,7 @@ export declare const SdJwt4VC: z.ZodObject<{
66
95
  status_attestation: {
67
96
  credential_hash_alg: "sha-256";
68
97
  };
69
- }>;
98
+ }>]>>;
70
99
  cnf: z.ZodObject<{
71
100
  jwk: z.ZodObject<{
72
101
  alg: z.ZodOptional<z.ZodString>;
@@ -190,13 +219,11 @@ export declare const SdJwt4VC: z.ZodObject<{
190
219
  };
191
220
  }>;
192
221
  vct: z.ZodString;
222
+ "vct#integrity": z.ZodOptional<z.ZodString>;
223
+ issuing_authority: z.ZodOptional<z.ZodString>;
224
+ issuing_country: z.ZodOptional<z.ZodString>;
193
225
  }, "strip", z.ZodTypeAny, {
194
226
  iss: string;
195
- status: {
196
- status_attestation: {
197
- credential_hash_alg: "sha-256";
198
- };
199
- };
200
227
  sub: string;
201
228
  exp: number;
202
229
  _sd_alg: "sha-256";
@@ -228,13 +255,20 @@ export declare const SdJwt4VC: z.ZodObject<{
228
255
  };
229
256
  vct: string;
230
257
  iat?: number | undefined;
231
- }, {
232
- iss: string;
233
- status: {
258
+ status?: {
259
+ status_assertion: {
260
+ credential_hash_alg: "sha-256";
261
+ };
262
+ } | {
234
263
  status_attestation: {
235
264
  credential_hash_alg: "sha-256";
236
265
  };
237
- };
266
+ } | undefined;
267
+ "vct#integrity"?: string | undefined;
268
+ issuing_authority?: string | undefined;
269
+ issuing_country?: string | undefined;
270
+ }, {
271
+ iss: string;
238
272
  sub: string;
239
273
  exp: number;
240
274
  _sd_alg: "sha-256";
@@ -266,6 +300,18 @@ export declare const SdJwt4VC: z.ZodObject<{
266
300
  };
267
301
  vct: string;
268
302
  iat?: number | undefined;
303
+ status?: {
304
+ status_assertion: {
305
+ credential_hash_alg: "sha-256";
306
+ };
307
+ } | {
308
+ status_attestation: {
309
+ credential_hash_alg: "sha-256";
310
+ };
311
+ } | undefined;
312
+ "vct#integrity"?: string | undefined;
313
+ issuing_authority?: string | undefined;
314
+ issuing_country?: string | undefined;
269
315
  }>, z.ZodObject<{
270
316
  _sd: z.ZodArray<z.ZodString, "many">;
271
317
  }, "strip", z.ZodTypeAny, {
@@ -276,16 +322,14 @@ export declare const SdJwt4VC: z.ZodObject<{
276
322
  }, "strip", z.ZodTypeAny, {
277
323
  header: {
278
324
  alg: string;
279
- typ: "vc+sd-jwt";
280
- kid?: string | undefined;
325
+ kid: string;
326
+ typ: "vc+sd-jwt" | "dc+sd-jwt";
327
+ trust_chain?: string[] | undefined;
328
+ x5c?: string[] | undefined;
329
+ vctm?: string[] | undefined;
281
330
  };
282
331
  payload: {
283
332
  iss: string;
284
- status: {
285
- status_attestation: {
286
- credential_hash_alg: "sha-256";
287
- };
288
- };
289
333
  sub: string;
290
334
  exp: number;
291
335
  _sd_alg: "sha-256";
@@ -317,22 +361,32 @@ export declare const SdJwt4VC: z.ZodObject<{
317
361
  };
318
362
  vct: string;
319
363
  iat?: number | undefined;
364
+ status?: {
365
+ status_assertion: {
366
+ credential_hash_alg: "sha-256";
367
+ };
368
+ } | {
369
+ status_attestation: {
370
+ credential_hash_alg: "sha-256";
371
+ };
372
+ } | undefined;
373
+ "vct#integrity"?: string | undefined;
374
+ issuing_authority?: string | undefined;
375
+ issuing_country?: string | undefined;
320
376
  } & {
321
377
  _sd: string[];
322
378
  };
323
379
  }, {
324
380
  header: {
325
381
  alg: string;
326
- typ: "vc+sd-jwt";
327
- kid?: string | undefined;
382
+ kid: string;
383
+ typ: "vc+sd-jwt" | "dc+sd-jwt";
384
+ trust_chain?: string[] | undefined;
385
+ x5c?: string[] | undefined;
386
+ vctm?: string[] | undefined;
328
387
  };
329
388
  payload: {
330
389
  iss: string;
331
- status: {
332
- status_attestation: {
333
- credential_hash_alg: "sha-256";
334
- };
335
- };
336
390
  sub: string;
337
391
  exp: number;
338
392
  _sd_alg: "sha-256";
@@ -364,8 +418,187 @@ export declare const SdJwt4VC: z.ZodObject<{
364
418
  };
365
419
  vct: string;
366
420
  iat?: number | undefined;
421
+ status?: {
422
+ status_assertion: {
423
+ credential_hash_alg: "sha-256";
424
+ };
425
+ } | {
426
+ status_attestation: {
427
+ credential_hash_alg: "sha-256";
428
+ };
429
+ } | undefined;
430
+ "vct#integrity"?: string | undefined;
431
+ issuing_authority?: string | undefined;
432
+ issuing_country?: string | undefined;
367
433
  } & {
368
434
  _sd: string[];
369
435
  };
370
436
  }>;
437
+ /**
438
+ * Object containing User authentication and User data verification information.
439
+ * Useful to extract the assurance level to determine L2/L3 authentication.
440
+ */
441
+ export type Verification = z.infer<typeof Verification>;
442
+ export declare const Verification: z.ZodObject<{
443
+ trust_framework: z.ZodString;
444
+ assurance_level: z.ZodString;
445
+ evidence: z.ZodArray<z.ZodObject<{
446
+ type: z.ZodLiteral<"vouch">;
447
+ time: z.ZodString;
448
+ attestation: z.ZodObject<{
449
+ type: z.ZodLiteral<"digital_attestation">;
450
+ reference_number: z.ZodString;
451
+ date_of_issuance: z.ZodString;
452
+ voucher: z.ZodObject<{
453
+ organization: z.ZodString;
454
+ }, "strip", z.ZodTypeAny, {
455
+ organization: string;
456
+ }, {
457
+ organization: string;
458
+ }>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ type: "digital_attestation";
461
+ reference_number: string;
462
+ date_of_issuance: string;
463
+ voucher: {
464
+ organization: string;
465
+ };
466
+ }, {
467
+ type: "digital_attestation";
468
+ reference_number: string;
469
+ date_of_issuance: string;
470
+ voucher: {
471
+ organization: string;
472
+ };
473
+ }>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ type: "vouch";
476
+ time: string;
477
+ attestation: {
478
+ type: "digital_attestation";
479
+ reference_number: string;
480
+ date_of_issuance: string;
481
+ voucher: {
482
+ organization: string;
483
+ };
484
+ };
485
+ }, {
486
+ type: "vouch";
487
+ time: string;
488
+ attestation: {
489
+ type: "digital_attestation";
490
+ reference_number: string;
491
+ date_of_issuance: string;
492
+ voucher: {
493
+ organization: string;
494
+ };
495
+ };
496
+ }>, "many">;
497
+ }, "strip", z.ZodTypeAny, {
498
+ trust_framework: string;
499
+ assurance_level: string;
500
+ evidence: {
501
+ type: "vouch";
502
+ time: string;
503
+ attestation: {
504
+ type: "digital_attestation";
505
+ reference_number: string;
506
+ date_of_issuance: string;
507
+ voucher: {
508
+ organization: string;
509
+ };
510
+ };
511
+ }[];
512
+ }, {
513
+ trust_framework: string;
514
+ assurance_level: string;
515
+ evidence: {
516
+ type: "vouch";
517
+ time: string;
518
+ attestation: {
519
+ type: "digital_attestation";
520
+ reference_number: string;
521
+ date_of_issuance: string;
522
+ voucher: {
523
+ organization: string;
524
+ };
525
+ };
526
+ }[];
527
+ }>;
528
+ /**
529
+ * Metadata for a digital credential. This information is retrieved from the URL defined in the `vct` claim.
530
+ *
531
+ * @see https://italia.github.io/eid-wallet-it-docs/v0.9.1/en/pid-eaa-data-model.html#digital-credential-metadata-type
532
+ */
533
+ export type TypeMetadata = z.infer<typeof TypeMetadata>;
534
+ export declare const TypeMetadata: z.ZodObject<{
535
+ name: z.ZodString;
536
+ description: z.ZodString;
537
+ data_source: z.ZodObject<{
538
+ trust_framework: z.ZodString;
539
+ authentic_source: z.ZodObject<{
540
+ organization_name: z.ZodString;
541
+ organization_code: z.ZodString;
542
+ contacts: z.ZodArray<z.ZodString, "many">;
543
+ homepage_uri: z.ZodString;
544
+ logo_uri: z.ZodString;
545
+ }, "strip", z.ZodTypeAny, {
546
+ organization_name: string;
547
+ organization_code: string;
548
+ contacts: string[];
549
+ homepage_uri: string;
550
+ logo_uri: string;
551
+ }, {
552
+ organization_name: string;
553
+ organization_code: string;
554
+ contacts: string[];
555
+ homepage_uri: string;
556
+ logo_uri: string;
557
+ }>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ trust_framework: string;
560
+ authentic_source: {
561
+ organization_name: string;
562
+ organization_code: string;
563
+ contacts: string[];
564
+ homepage_uri: string;
565
+ logo_uri: string;
566
+ };
567
+ }, {
568
+ trust_framework: string;
569
+ authentic_source: {
570
+ organization_name: string;
571
+ organization_code: string;
572
+ contacts: string[];
573
+ homepage_uri: string;
574
+ logo_uri: string;
575
+ };
576
+ }>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ name: string;
579
+ description: string;
580
+ data_source: {
581
+ trust_framework: string;
582
+ authentic_source: {
583
+ organization_name: string;
584
+ organization_code: string;
585
+ contacts: string[];
586
+ homepage_uri: string;
587
+ logo_uri: string;
588
+ };
589
+ };
590
+ }, {
591
+ name: string;
592
+ description: string;
593
+ data_source: {
594
+ trust_framework: string;
595
+ authentic_source: {
596
+ organization_name: string;
597
+ organization_code: string;
598
+ contacts: string[];
599
+ homepage_uri: string;
600
+ logo_uri: string;
601
+ };
602
+ };
603
+ }>;
371
604
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ,aAAuC,CAAC;AAC7D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;;;EAAyC,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD,eAAO,MAAM,UAAU,4DAIrB,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAChD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCnB,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAevB,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcvB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { TypeMetadata, Verification } from "./types";
2
+ /**
3
+ * Retrieve the Type Metadata for a credential and verify its integrity.
4
+ * @param vct The VCT as a valid HTTPS url
5
+ * @param vctIntegrity The integrity hash
6
+ * @param context.appFetch (optional) fetch api implementation. Default: built-in fetch
7
+ * @returns The credential metadata {@link TypeMetadata}
8
+ */
9
+ export declare const fetchTypeMetadata: (vct: string, vctIntegrity: string, context?: {
10
+ appFetch?: GlobalFetch["fetch"];
11
+ }) => Promise<TypeMetadata>;
12
+ /**
13
+ * Extract and validate the `verification` claim from disclosures.
14
+ * @param credentialSdJwt The raw credential SD-JWT
15
+ * @returns The verification claim or undefined if it wasn't found
16
+ */
17
+ export declare const getVerification: (credentialSdJwt: string) => Verification | undefined;
18
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/sd-jwt/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AASrD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,QACvB,MAAM,gBACG,MAAM,YACX;IACP,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,KACA,QAAQ,YAAY,CA8BtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,oBACT,MAAM,KACtB,YAAY,GAAG,SASjB,CAAC"}
@@ -260,33 +260,41 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
260
260
  }[];
261
261
  credential_issuer: string;
262
262
  credential_endpoint: string;
263
- revocation_endpoint: string;
263
+ nonce_endpoint: string;
264
264
  status_attestation_endpoint: string;
265
- credential_configurations_supported: Record<string, {
266
- format: "vc+sd-jwt" | "vc+mdoc-cbor";
265
+ credential_configurations_supported: Record<string, ({
266
+ vct: string;
267
+ format: "dc+sd-jwt";
268
+ } | {
269
+ format: "mso_mdoc";
270
+ doctype: string;
271
+ }) & {
267
272
  scope: string;
268
273
  display: {
269
274
  name: string;
270
275
  locale: string;
271
276
  }[];
272
- claims: Record<string, {
273
- value_type: string;
277
+ claims: {
278
+ path: string[];
274
279
  display: {
275
280
  name: string;
276
281
  locale: string;
277
282
  }[];
278
- }>;
283
+ }[];
279
284
  cryptographic_binding_methods_supported: string[];
280
285
  credential_signing_alg_values_supported: string[];
281
286
  authentic_source?: string | undefined;
282
287
  issuance_errors_supported?: Record<string, {
283
288
  display: {
289
+ description: string;
284
290
  locale: string;
285
291
  title: string;
286
- description: string;
287
292
  }[];
288
293
  }> | undefined;
289
294
  }>;
295
+ trust_frameworks_supported: string[];
296
+ evidence_supported: string[];
297
+ revocation_endpoint?: string | undefined;
290
298
  };
291
299
  oauth_authorization_server: {
292
300
  request_object_signing_alg_values_supported: string[];
@@ -795,33 +803,41 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
795
803
  }[];
796
804
  credential_issuer: string;
797
805
  credential_endpoint: string;
798
- revocation_endpoint: string;
806
+ nonce_endpoint: string;
799
807
  status_attestation_endpoint: string;
800
- credential_configurations_supported: Record<string, {
801
- format: "vc+sd-jwt" | "vc+mdoc-cbor";
808
+ credential_configurations_supported: Record<string, ({
809
+ vct: string;
810
+ format: "dc+sd-jwt";
811
+ } | {
812
+ format: "mso_mdoc";
813
+ doctype: string;
814
+ }) & {
802
815
  scope: string;
803
816
  display: {
804
817
  name: string;
805
818
  locale: string;
806
819
  }[];
807
- claims: Record<string, {
808
- value_type: string;
820
+ claims: {
821
+ path: string[];
809
822
  display: {
810
823
  name: string;
811
824
  locale: string;
812
825
  }[];
813
- }>;
826
+ }[];
814
827
  cryptographic_binding_methods_supported: string[];
815
828
  credential_signing_alg_values_supported: string[];
816
829
  authentic_source?: string | undefined;
817
830
  issuance_errors_supported?: Record<string, {
818
831
  display: {
832
+ description: string;
819
833
  locale: string;
820
834
  title: string;
821
- description: string;
822
835
  }[];
823
836
  }> | undefined;
824
837
  }>;
838
+ trust_frameworks_supported: string[];
839
+ evidence_supported: string[];
840
+ revocation_endpoint?: string | undefined;
825
841
  };
826
842
  oauth_authorization_server: {
827
843
  request_object_signing_alg_values_supported: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"build-chain.d.ts","sourceRoot":"","sources":["../../../src/trust/build-chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AASxC,OAAO,EACL,mCAAmC,EACnC,mBAAmB,EAGnB,+BAA+B,EAC/B,8BAA8B,EAC9B,iCAAiC,EAClC,MAAM,SAAS,CAAC;AAIjB;;;;;;;;;;;;;;;;;GAiBG;AACH,iBAAe,gCAA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