dcql 0.2.4 → 0.2.5

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 (49) hide show
  1. package/dist/src/dcql-presentation/index.d.ts +2 -0
  2. package/dist/src/dcql-presentation/index.d.ts.map +1 -0
  3. package/dist/src/dcql-presentation/index.js +3 -0
  4. package/dist/src/dcql-presentation/index.js.map +1 -0
  5. package/dist/src/dcql-presentation/m-dcql-presentation-record.d.ts +20 -0
  6. package/dist/src/dcql-presentation/m-dcql-presentation-record.d.ts.map +1 -0
  7. package/dist/src/{dcql-query-vp-token/m-dcql-query-vp-token.js → dcql-presentation/m-dcql-presentation-record.js} +25 -14
  8. package/dist/src/dcql-presentation/m-dcql-presentation-record.js.map +1 -0
  9. package/dist/src/dcql-presentation/m-dcql-presentation.d.ts +2 -0
  10. package/dist/src/dcql-presentation/m-dcql-presentation.d.ts.map +1 -0
  11. package/dist/src/dcql-presentation/m-dcql-presentation.js +3 -0
  12. package/dist/src/dcql-presentation/m-dcql-presentation.js.map +1 -0
  13. package/dist/src/dcql-query/claims-path.test.js +13 -7
  14. package/dist/src/dcql-query/claims-path.test.js.map +1 -1
  15. package/dist/src/dcql-query/dcql-query.d.ts +4 -1
  16. package/dist/src/dcql-query/dcql-query.d.ts.map +1 -1
  17. package/dist/src/dcql-query/dcql-query.js +2 -2
  18. package/dist/src/dcql-query/dcql-query.js.map +1 -1
  19. package/dist/src/dcql-query/dcql-query.test.js +24 -1
  20. package/dist/src/dcql-query/dcql-query.test.js.map +1 -1
  21. package/dist/src/dcql-query/m-dcql-query.d.ts +269 -1
  22. package/dist/src/dcql-query/m-dcql-query.d.ts.map +1 -1
  23. package/dist/src/dcql-query/m-dcql-query.js +3 -1
  24. package/dist/src/dcql-query/m-dcql-query.js.map +1 -1
  25. package/dist/src/dcql-query-result/dcql-claims-query-result.d.ts +9 -68
  26. package/dist/src/dcql-query-result/dcql-claims-query-result.d.ts.map +1 -1
  27. package/dist/src/dcql-query-result/dcql-claims-query-result.js +40 -23
  28. package/dist/src/dcql-query-result/dcql-claims-query-result.js.map +1 -1
  29. package/dist/src/dcql-query-result/dcql-credential-query-result.d.ts +5 -35
  30. package/dist/src/dcql-query-result/dcql-credential-query-result.d.ts.map +1 -1
  31. package/dist/src/dcql-query-result/dcql-credential-query-result.js +6 -2
  32. package/dist/src/dcql-query-result/dcql-credential-query-result.js.map +1 -1
  33. package/dist/src/dcql-query-result/m-dcql-query-result.d.ts +26 -106
  34. package/dist/src/dcql-query-result/m-dcql-query-result.d.ts.map +1 -1
  35. package/dist/src/e-dcql.d.ts +13 -1
  36. package/dist/src/e-dcql.d.ts.map +1 -1
  37. package/dist/src/e-dcql.js +15 -3
  38. package/dist/src/e-dcql.js.map +1 -1
  39. package/dist/src/index.d.ts +1 -1
  40. package/dist/src/index.d.ts.map +1 -1
  41. package/dist/src/index.js +1 -3
  42. package/dist/src/index.js.map +1 -1
  43. package/dist/src/u-dcql.d.ts +7 -8
  44. package/dist/src/u-dcql.d.ts.map +1 -1
  45. package/dist/src/u-dcql.js.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/src/dcql-query-vp-token/m-dcql-query-vp-token.d.ts +0 -65
  48. package/dist/src/dcql-query-vp-token/m-dcql-query-vp-token.d.ts.map +0 -1
  49. package/dist/src/dcql-query-vp-token/m-dcql-query-vp-token.js.map +0 -1
@@ -2,80 +2,21 @@ import * as v from 'valibot';
2
2
  import { DcqlClaimsQuery } from '../dcql-query/m-dcql-claims-query.js';
3
3
  import type { DcqlCredentialQuery } from '../dcql-query/m-dcql-credential-query.js';
4
4
  export declare const getNamespacesParser: (claimsQueries: DcqlClaimsQuery.Mdoc[]) => v.ObjectSchema<any, undefined>;
5
- export declare const getJsonClaimsParser: (claimsQueries: DcqlClaimsQuery.W3cAndSdJwtVc[]) => v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<string | number | boolean | {
6
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
7
- } | (string | number | boolean | {
8
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
9
- } | (string | number | boolean | {
10
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
11
- } | (string | number | boolean | {
12
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
13
- } | (string | number | boolean | {
14
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
15
- } | (string | number | boolean | {
16
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
17
- } | (string | number | boolean | {
18
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
19
- } | (string | number | boolean | {
20
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
21
- } | (string | number | boolean | {
22
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
23
- } | (string | number | boolean | {
24
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
25
- } | (string | number | boolean | {
26
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
27
- } | (string | number | boolean | {
28
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
29
- } | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, string | number | boolean | {
30
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
31
- } | (string | number | boolean | {
32
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
33
- } | (string | number | boolean | {
34
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
35
- } | (string | number | boolean | {
36
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
37
- } | (string | number | boolean | {
38
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
39
- } | (string | number | boolean | {
40
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
41
- } | (string | number | boolean | {
42
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
43
- } | (string | number | boolean | {
44
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
45
- } | (string | number | boolean | {
46
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
47
- } | (string | number | boolean | {
48
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
49
- } | (string | number | boolean | {
50
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
51
- } | (string | number | boolean | {
52
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
53
- } | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, v.BaseIssue<unknown>>, undefined>[], undefined>;
5
+ export declare const getJsonClaimsParser: (claimsQueries: DcqlClaimsQuery.W3cAndSdJwtVc[], ctx: {
6
+ presentation: boolean;
7
+ }) => v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>[], undefined>;
54
8
  export declare const getMdocClaimsQueriesForClaimSet: (claimsQueries: DcqlClaimsQuery.Mdoc[], claimSet: string[]) => DcqlClaimsQuery.Mdoc[];
55
9
  export declare const getJsonClaimsQueriesForClaimSet: (claimsQueries: DcqlClaimsQuery.W3cAndSdJwtVc[], claimSet: string[]) => DcqlClaimsQuery.W3cAndSdJwtVc[];
56
- export declare const getCredentialParser: (credentialQuery: DcqlCredentialQuery, claimSet?: NonNullable<DcqlCredentialQuery["claim_sets"]>[number]) => v.ObjectSchema<{
10
+ export declare const getCredentialParser: (credentialQuery: DcqlCredentialQuery, ctx: {
11
+ claimSet?: NonNullable<DcqlCredentialQuery["claim_sets"]>[number];
12
+ presentation: boolean;
13
+ }) => v.ObjectSchema<{
57
14
  readonly docType: v.StringSchema<undefined> | v.LiteralSchema<string, undefined>;
58
15
  readonly namespaces: v.ObjectSchema<any, undefined> | v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
59
16
  }, undefined> | v.ObjectSchema<{
60
17
  readonly vct: v.StringSchema<undefined> | v.PicklistSchema<string[], undefined>;
61
- readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<string | number | boolean | {
62
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
63
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, string | number | boolean | {
64
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
65
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, v.BaseIssue<unknown>>, undefined> | v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<string | number | boolean | {
66
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
67
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, string | number | boolean | {
68
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
69
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, v.BaseIssue<unknown>>, undefined>[], undefined>;
18
+ readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined> | v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>[], undefined>;
70
19
  }, undefined> | v.ObjectSchema<{
71
- readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<string | number | boolean | {
72
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
73
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, string | number | boolean | {
74
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
75
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, v.BaseIssue<unknown>>, undefined> | v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<string | number | boolean | {
76
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
77
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, string | number | boolean | {
78
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
79
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, v.BaseIssue<unknown>>, undefined>[], undefined>;
20
+ readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined> | v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>[], undefined>;
80
21
  }, undefined>;
81
22
  //# sourceMappingURL=dcql-claims-query-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dcql-claims-query-result.d.ts","sourceRoot":"","sources":["../../../src/dcql-query-result/dcql-claims-query-result.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAoBpF,eAAO,MAAM,mBAAmB,kBAAmB,eAAe,CAAC,IAAI,EAAE,mCAwBxE,CAAC;AAoCF,eAAO,MAAM,mBAAmB,kBACf,eAAe,CAAC,aAAa,EAAE;;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CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAClE,YAAY,EAAE,OAAO,CAAC;CACvB;;;;;;;;aAaF,CAAC"}
@@ -24,7 +24,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.getCredentialParser = exports.getJsonClaimsQueriesForClaimSet = exports.getMdocClaimsQueriesForClaimSet = exports.getJsonClaimsParser = exports.getNamespacesParser = void 0;
27
- /* eslint-disable @typescript-eslint/no-non-null-assertion */
28
27
  const v = __importStar(require("valibot"));
29
28
  const m_dcql_claims_query_js_1 = require("../dcql-query/m-dcql-claims-query.js");
30
29
  const e_dcql_js_1 = require("../e-dcql.js");
@@ -56,28 +55,42 @@ const getNamespacesParser = (claimsQueries) => {
56
55
  return v.object(Object.fromEntries(parsersForNamespaces));
57
56
  };
58
57
  exports.getNamespacesParser = getNamespacesParser;
59
- const getParserForClaimQuery = (claimQuery, index) => {
58
+ const getParserForClaimQuery = (claimQuery, ctx) => {
59
+ const { index, presentation } = ctx;
60
60
  const pathElement = claimQuery.path[index];
61
61
  const isLast = index === claimQuery.path.length - 1;
62
- const claimParser = claimQuery.values ? getClaimParser(claimQuery) : u_dcql_js_1.vJson;
62
+ const vClaimParser = claimQuery.values ? getClaimParser(claimQuery) : u_dcql_js_1.vJson;
63
63
  if (typeof pathElement === 'number') {
64
- return isLast
65
- ? v.pipe(v.array(claimParser), v.transform(input => input[pathElement]))
66
- : v.pipe(v.array(getParserForClaimQuery(claimQuery, index + 1)), v.transform(input => input[pathElement]));
64
+ const elementParser = isLast
65
+ ? vClaimParser
66
+ : getParserForClaimQuery(claimQuery, { ...ctx, index: index + 1 });
67
+ if (presentation) {
68
+ // We allow both the concrete value and an array of one value
69
+ return v.union([
70
+ v.pipe(v.array(u_dcql_js_1.vJson), v.length(1), v.transform(input => input[0]), elementParser),
71
+ elementParser,
72
+ ]);
73
+ }
74
+ return v.pipe(v.array(u_dcql_js_1.vJson), v.transform(input => input[pathElement]), elementParser);
67
75
  }
68
- if (typeof pathElement === 'string') {
76
+ else if (typeof pathElement === 'string') {
69
77
  return v.object({
70
78
  [pathElement]: isLast
71
- ? claimParser
72
- : getParserForClaimQuery(claimQuery, index + 1),
79
+ ? vClaimParser
80
+ : getParserForClaimQuery(claimQuery, { ...ctx, index: index + 1 }),
73
81
  });
74
82
  }
75
- return isLast
76
- ? v.array(claimParser)
77
- : v.array(getParserForClaimQuery(claimQuery, index + 1));
83
+ else {
84
+ return isLast
85
+ ? v.array(vClaimParser)
86
+ : v.array(getParserForClaimQuery(claimQuery, { ...ctx, index: index + 1 }));
87
+ }
78
88
  };
79
- const getJsonClaimsParser = (claimsQueries) => {
80
- const claimParser = v.intersect(claimsQueries.map(claimQuery => getParserForClaimQuery(claimQuery, 0)));
89
+ const getJsonClaimsParser = (claimsQueries, ctx) => {
90
+ const claimParser = v.intersect(claimsQueries.map(claimQuery => getParserForClaimQuery(claimQuery, {
91
+ ...ctx,
92
+ index: 0,
93
+ })));
81
94
  return claimParser;
82
95
  };
83
96
  exports.getJsonClaimsParser = getJsonClaimsParser;
@@ -105,7 +118,8 @@ const getJsonClaimsQueriesForClaimSet = (claimsQueries, claimSet) => {
105
118
  });
106
119
  };
107
120
  exports.getJsonClaimsQueriesForClaimSet = getJsonClaimsQueriesForClaimSet;
108
- const getMdocCredentialParser = (credentialQuery, claimSet) => {
121
+ const getMdocCredentialParser = (credentialQuery, ctx) => {
122
+ const { claimSet } = ctx;
109
123
  const vDocType = credentialQuery.meta?.doctype_value
110
124
  ? v.literal(credentialQuery.meta.doctype_value)
111
125
  : v.string();
@@ -120,7 +134,8 @@ const getMdocCredentialParser = (credentialQuery, claimSet) => {
120
134
  });
121
135
  return credentialParser;
122
136
  };
123
- const getJsonCredentialParser = (credentialQuery, claimSet) => {
137
+ const getJsonCredentialParser = (credentialQuery, ctx) => {
138
+ const { claimSet } = ctx;
124
139
  const claimSetQueries = credentialQuery.claims && claimSet
125
140
  ? (0, exports.getJsonClaimsQueriesForClaimSet)(credentialQuery.claims, claimSet)
126
141
  : credentialQuery.claims;
@@ -130,28 +145,30 @@ const getJsonCredentialParser = (credentialQuery, claimSet) => {
130
145
  ? v.picklist(credentialQuery.meta.vct_values)
131
146
  : v.string(),
132
147
  claims: claimSetQueries
133
- ? (0, exports.getJsonClaimsParser)(claimSetQueries)
148
+ ? (0, exports.getJsonClaimsParser)(claimSetQueries, ctx)
134
149
  : u_dcql_js_1.vJsonRecord,
135
150
  });
136
151
  }
137
152
  else {
138
153
  const credentialParser = v.object({
139
154
  claims: claimSetQueries
140
- ? (0, exports.getJsonClaimsParser)(claimSetQueries)
155
+ ? (0, exports.getJsonClaimsParser)(claimSetQueries, ctx)
141
156
  : u_dcql_js_1.vJsonRecord,
142
157
  });
143
158
  return credentialParser;
144
159
  }
145
160
  };
146
- const getCredentialParser = (credentialQuery, claimSet) => {
147
- if (credentialQuery.claim_sets && !claimSet) {
148
- throw new Error('asdfasdf');
161
+ const getCredentialParser = (credentialQuery, ctx) => {
162
+ if (credentialQuery.claim_sets && !ctx.claimSet) {
163
+ throw new e_dcql_js_1.DcqlMissingClaimSetParseError({
164
+ message: `credentialQuery specifies claim_sets but no claim_set for parsing is provided.`,
165
+ });
149
166
  }
150
167
  if (credentialQuery.format === 'mso_mdoc') {
151
- return getMdocCredentialParser(credentialQuery, claimSet);
168
+ return getMdocCredentialParser(credentialQuery, ctx);
152
169
  }
153
170
  else {
154
- return getJsonCredentialParser(credentialQuery, claimSet);
171
+ return getJsonCredentialParser(credentialQuery, ctx);
155
172
  }
156
173
  };
157
174
  exports.getCredentialParser = getCredentialParser;
@@ -1 +1 @@
1
- {"version":3,"file":"dcql-claims-query-result.js","sourceRoot":"","sources":["../../../src/dcql-query-result/dcql-claims-query-result.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA6D;AAC7D,2CAA6B;AAC7B,iFAAuE;AAEvE,4CAA6D;AAC7D,4CAAk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MAAM,KAAK,WAAW,EAAE,CAAC;QAC3C,OAAO,CAAC,CAAC,MAAM,CAAC;YACd,GAAG,EAAE,eAAe,CAAC,IAAI,EAAE,UAAU;gBACnC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC;gBAC7C,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE;YACd,MAAM,EAAE,eAAe;gBACrB,CAAC,CAAC,IAAA,2BAAmB,EAAC,eAAe,CAAC;gBACtC,CAAC,CAAC,uBAAW;SAChB,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;YAChC,MAAM,EAAE,eAAe;gBACrB,CAAC,CAAC,IAAA,2BAAmB,EAAC,eAAe,CAAC;gBACtC,CAAC,CAAC,uBAAW;SAChB,CAAC,CAAC;QAEH,OAAO,gBAAgB,CAAC;IAC1B,CAAC;AACH,CAAC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CACjC,eAAoC,EACpC,QAAiE,EACjE,EAAE;IACF,IAAI,eAAe,CAAC,UAAU,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC5C,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC;IAC9B,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,uBAAuB,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;SAAM,CAAC;QACN,OAAO,uBAAuB,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,mBAAmB,uBAa9B"}
1
+ {"version":3,"file":"dcql-claims-query-result.js","sourceRoot":"","sources":["../../../src/dcql-query-result/dcql-claims-query-result.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,iFAAuE;AAEvE,4CAGsB;AACtB,4CAA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AEK,MAAM,mBAAmB,GAAG,CACjC,eAAoC,EACpC,GAGC,EACD,EAAE;IACF,IAAI,eAAe,CAAC,UAAU,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAChD,MAAM,IAAI,yCAA6B,CAAC;YACtC,OAAO,EAAE,gFAAgF;SAC1F,CAAC,CAAC;IACL,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,uBAAuB,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IACvD,CAAC;SAAM,CAAC;QACN,OAAO,uBAAuB,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IACvD,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,mBAAmB,uBAkB9B"}
@@ -1,38 +1,8 @@
1
1
  import type { DcqlCredentialQuery } from '../dcql-query/m-dcql-credential-query.js';
2
2
  import type { DcqlCredentialRepresentation } from '../u-dcql-credential-representation.js';
3
- export declare const queryCredentialFromCredentialQuery: (credentialQuery: DcqlCredentialQuery, credentials: DcqlCredentialRepresentation[]) => ({
4
- output: unknown;
5
- success: false;
6
- typed: boolean;
7
- issues: unknown[];
8
- claim_set_index: number | undefined;
9
- credential_index: number;
10
- } | {
11
- output: {
12
- claims: {
13
- [x: string]: string | number | boolean | {
14
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
15
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
16
- };
17
- } | {
18
- claims: {
19
- [x: string]: string | number | boolean | {
20
- [key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
21
- } | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
22
- };
23
- vct: string;
24
- } | {
25
- docType: string;
26
- namespaces: {
27
- [x: string]: {
28
- [x: string]: unknown;
29
- };
30
- };
31
- };
32
- success: true;
33
- typed: true;
34
- claim_set_index: number | undefined;
35
- credential_index: number;
36
- issues?: undefined;
37
- } | undefined)[][];
3
+ import type { DcqlQueryResult } from './m-dcql-query-result.js';
4
+ export declare const queryCredentialFromCredentialQuery: (credentialQuery: DcqlCredentialQuery, ctx: {
5
+ credentials: DcqlCredentialRepresentation[];
6
+ presentation: boolean;
7
+ }) => DcqlQueryResult.CredentialQueryResult;
38
8
  //# sourceMappingURL=dcql-credential-query-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dcql-credential-query-result.d.ts","sourceRoot":"","sources":["../../../src/dcql-query-result/dcql-credential-query-result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAK3F,eAAO,MAAM,kCAAkC,oBAC5B,mBAAmB,eACvB,4BAA4B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsC5C,CAAC"}
1
+ {"version":3,"file":"dcql-credential-query-result.d.ts","sourceRoot":"","sources":["../../../src/dcql-query-result/dcql-credential-query-result.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAG3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,eAAO,MAAM,kCAAkC,oBAC5B,mBAAmB,OAC/B;IACH,WAAW,EAAE,4BAA4B,EAAE,CAAC;IAC5C,YAAY,EAAE,OAAO,CAAC;CACvB,KACA,eAAe,CAAC,qBA0ClB,CAAC"}
@@ -27,12 +27,16 @@ exports.queryCredentialFromCredentialQuery = void 0;
27
27
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
28
28
  const v = __importStar(require("valibot"));
29
29
  const dcql_claims_query_result_js_1 = require("./dcql-claims-query-result.js");
30
- const queryCredentialFromCredentialQuery = (credentialQuery, credentials) => {
30
+ const queryCredentialFromCredentialQuery = (credentialQuery, ctx) => {
31
+ const { credentials, presentation } = ctx;
31
32
  const claimSets = credentialQuery.claim_sets ?? [undefined];
32
33
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
33
34
  const credentialQueryResult = new Array(claimSets.length).fill([]);
34
35
  for (const [claimSetIndex, claim_set] of claimSets.entries()) {
35
- const credentialParser = (0, dcql_claims_query_result_js_1.getCredentialParser)(credentialQuery, claim_set);
36
+ const credentialParser = (0, dcql_claims_query_result_js_1.getCredentialParser)(credentialQuery, {
37
+ claimSet: claim_set,
38
+ presentation,
39
+ });
36
40
  for (const [credentialIndex, credential] of credentials.entries()) {
37
41
  if (claimSetIndex > 0) {
38
42
  // if one the credential was successfully parsed against a previous claimsset we don't need to further validate other claim sets
@@ -1 +1 @@
1
- {"version":3,"file":"dcql-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AAC,CAAC,OAAO,CAA0B,WAAW,CAAC,MAAM,CAAC;iBAClE,CAAC;gBACF,gBAAgB,EAAE,eAAe;gBACjC,eAAe,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS;aACxE,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,qBAAqB,CAAC;AAC/B,CAAC,CAAC;AAxCW,QAAA,kCAAkC,sCAwC7C"}
1
+ {"version":3,"file":"dcql-credential-query-result.js","sourceRoot":"","sources":["../../../src/dcql-query-result/dcql-credential-query-result.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA6D;AAC7D,2CAA6B;AAI7B,+EAAoE;AAG7D,MAAM,kCAAkC,GAAG,CAChD,eAAoC,EACpC,GAGC,EACsC,EAAE;IACzC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC;IAC1C,MAAM,SAAS,GAAG,eAAe,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,CAAC;IAE5D,mEAAmE;IACnE,MAAM,qBAAqB,GAEvB,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEzC,KAAK,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;QAC7D,MAAM,gBAAgB,GAAG,IAAA,iDAAmB,EAAC,eAAe,EAAE;YAC5D,QAAQ,EAAE,SAAS;YACnB,YAAY;SACb,CAAC,CAAC;QAEH,KAAK,MAAM,CAAC,eAAe,EAAE,UAAU,CAAC,IAAI,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC;YAClE,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;gBACtB,gIAAgI;gBAChI,MAAM,QAAQ,GACZ,qBAAqB,CAAC,aAAa,GAAG,CAAC,CAAE,CAAC,eAAe,CAAC,CAAC;gBAE7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