@pagopa/io-react-native-wallet 3.8.4 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +1 -6
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.4.6/03-complete-user-authorization.js +1 -5
- package/lib/commonjs/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/presentation/README.md +2 -1
- package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +2 -2
- package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/05-verify-request-object.js +7 -1
- package/lib/commonjs/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.js +42 -20
- package/lib/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +2 -0
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.4.6/mappers.js +2 -0
- package/lib/commonjs/credentials-catalogue/v1.4.6/mappers.js.map +1 -1
- package/lib/commonjs/mdoc/index.js +7 -2
- package/lib/commonjs/mdoc/index.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +1 -6
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.4.6/03-complete-user-authorization.js +1 -5
- package/lib/module/credential/issuance/v1.4.6/03-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/presentation/README.md +2 -1
- package/lib/module/credential/presentation/api/types.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +2 -2
- package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/05-verify-request-object.js +8 -2
- package/lib/module/credential/presentation/v1.4.6/05-verify-request-object.js.map +1 -1
- package/lib/module/credential/presentation/v1.4.6/07-send-authorization-response.js +44 -22
- package/lib/module/credential/presentation/v1.4.6/07-send-authorization-response.js.map +1 -1
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +2 -0
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.4.6/mappers.js +2 -0
- package/lib/module/credentials-catalogue/v1.4.6/mappers.js.map +1 -1
- package/lib/module/mdoc/index.js +7 -2
- package/lib/module/mdoc/index.js.map +1 -1
- package/lib/typescript/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/commonjs/credential/presentation/api/07-send-authorization-response.d.ts +5 -8
- package/lib/typescript/commonjs/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/commonjs/credential/presentation/api/types.d.ts +0 -1
- package/lib/typescript/commonjs/credential/presentation/api/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map +1 -1
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.d.ts +4 -3
- package/lib/typescript/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +6 -0
- package/lib/typescript/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
- package/lib/typescript/commonjs/credentials-catalogue/v1.0.0/mappers.d.ts +2 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/commonjs/credentials-catalogue/v1.4.6/mappers.d.ts +2 -0
- package/lib/typescript/commonjs/credentials-catalogue/v1.4.6/mappers.d.ts.map +1 -1
- package/lib/typescript/commonjs/mdoc/index.d.ts +5 -1
- package/lib/typescript/commonjs/mdoc/index.d.ts.map +1 -1
- package/lib/typescript/module/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/module/credential/presentation/api/07-send-authorization-response.d.ts +5 -8
- package/lib/typescript/module/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/module/credential/presentation/api/types.d.ts +0 -1
- package/lib/typescript/module/credential/presentation/api/types.d.ts.map +1 -1
- package/lib/typescript/module/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map +1 -1
- package/lib/typescript/module/credential/presentation/v1.4.6/07-send-authorization-response.d.ts +4 -3
- package/lib/typescript/module/credential/presentation/v1.4.6/07-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/module/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +6 -0
- package/lib/typescript/module/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
- package/lib/typescript/module/credentials-catalogue/v1.0.0/mappers.d.ts +2 -0
- package/lib/typescript/module/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/module/credentials-catalogue/v1.4.6/mappers.d.ts +2 -0
- package/lib/typescript/module/credentials-catalogue/v1.4.6/mappers.d.ts.map +1 -1
- package/lib/typescript/module/mdoc/index.d.ts +5 -1
- package/lib/typescript/module/mdoc/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +1 -7
- package/src/credential/issuance/v1.4.6/03-complete-user-authorization.ts +1 -5
- package/src/credential/presentation/README.md +2 -1
- package/src/credential/presentation/api/07-send-authorization-response.ts +6 -8
- package/src/credential/presentation/api/types.ts +0 -1
- package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +3 -3
- package/src/credential/presentation/v1.4.6/05-verify-request-object.ts +15 -2
- package/src/credential/presentation/v1.4.6/07-send-authorization-response.ts +61 -37
- package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +2 -0
- package/src/credentials-catalogue/v1.4.6/mappers.ts +2 -0
- package/src/mdoc/index.ts +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AAEtD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,eAAO,MAAM,kBAAkB;;;;;;;;;iBAM7B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,eAAO,MAAM,cAAc;;;;;;;;;;iBAazB,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAC;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;iBAG1C,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;EAOxB,CAAC;AAEH,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAe,MAAM,CAAkB,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GACxB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,GACvC;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,MAAM,EAAE,0BAA0B,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC;AAE3C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACO,MAAM;IACzB,iBAAiB;IAC6B,aAAa;CACzE,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,iBAAiB,GAAG,SAAS,CAAC;CACtD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AAEtD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,eAAO,MAAM,kBAAkB;;;;;;;;;iBAM7B,CA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AAM,WAAW,kBAAkB;IACjC,aAAa,EAAE;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;CACL;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,cAAc,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,iBAAiB,CAAC;IACjC,aAAa,EAAE,UAAU,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC,EAAE,MAAM,EAAE,CAAC;IAClD,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CAC1E,CAAC"}
|
package/lib/typescript/commonjs/credential/presentation/v1.4.6/05-verify-request-object.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/v1.4.6/05-verify-request-object.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/v1.4.6/05-verify-request-object.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAcxE,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,CAAC,qBAAqB,CA0C1E,CAAC"}
|
package/lib/typescript/commonjs/credential/presentation/v1.4.6/07-send-authorization-response.d.ts
CHANGED
|
@@ -5,11 +5,12 @@ import type { RemotePresentationApi } from "../api";
|
|
|
5
5
|
* For each credential, this function:
|
|
6
6
|
* - Validates the credential format (currently supports 'mso_mdoc' or 'dc+sd-jwt').
|
|
7
7
|
* - Generates a verifiable presentation token (vpToken) using the appropriate method.
|
|
8
|
-
* - For ISO 18013-7,
|
|
8
|
+
* - For ISO 18013-7, binds the DeviceResponse to the thumbprint of the response encryption key.
|
|
9
9
|
*
|
|
10
10
|
* @param credentials - An array of credential items containing format, credential data, requested claims, and key information.
|
|
11
|
-
* @param
|
|
12
|
-
* @
|
|
11
|
+
* @param requestObject - The Request Object of the presentation.
|
|
12
|
+
* @param rpConf - Optional Relying Party configuration (OpenID Federation clients only).
|
|
13
|
+
* @returns A promise that resolves to an object containing an array of presentations.
|
|
13
14
|
* @throws {CredentialNotFoundError} When the credential format is unsupported.
|
|
14
15
|
*/
|
|
15
16
|
export declare const prepareRemotePresentations: RemotePresentationApi["prepareRemotePresentations"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/v1.4.6/07-send-authorization-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/v1.4.6/07-send-authorization-response.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAyDxE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,0BAA0B,EAAE,qBAAqB,CAAC,4BAA4B,CAqDxF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,qBAAqB,CAAC,2BAA2B,CA6CtF,CAAC;AAEJ,eAAO,MAAM,8BAA8B,EAAE,qBAAqB,CAAC,gCAAgC,CAqBhG,CAAC"}
|
|
@@ -23,6 +23,8 @@ declare const AuthenticSource: z.ZodObject<{
|
|
|
23
23
|
value: z.ZodString;
|
|
24
24
|
}, z.core.$strip>>>;
|
|
25
25
|
data_origin_l10n_id: z.ZodOptional<z.ZodString>;
|
|
26
|
+
dataset_logo_uri: z.ZodOptional<z.ZodString>;
|
|
27
|
+
"dataset_logo_uri#integrity": z.ZodOptional<z.ZodString>;
|
|
26
28
|
homepage_uri: z.ZodOptional<z.ZodString>;
|
|
27
29
|
id: z.ZodString;
|
|
28
30
|
logo_uri: z.ZodOptional<z.ZodString>;
|
|
@@ -68,6 +70,8 @@ export declare const DigitalCredential: z.ZodObject<{
|
|
|
68
70
|
value: z.ZodString;
|
|
69
71
|
}, z.core.$strip>>>;
|
|
70
72
|
data_origin_l10n_id: z.ZodOptional<z.ZodString>;
|
|
73
|
+
dataset_logo_uri: z.ZodOptional<z.ZodString>;
|
|
74
|
+
"dataset_logo_uri#integrity": z.ZodOptional<z.ZodString>;
|
|
71
75
|
homepage_uri: z.ZodOptional<z.ZodString>;
|
|
72
76
|
id: z.ZodString;
|
|
73
77
|
logo_uri: z.ZodOptional<z.ZodString>;
|
|
@@ -209,6 +213,8 @@ export declare const DigitalCredentialsCatalogue: z.ZodObject<{
|
|
|
209
213
|
value: z.ZodString;
|
|
210
214
|
}, z.core.$strip>>>;
|
|
211
215
|
data_origin_l10n_id: z.ZodOptional<z.ZodString>;
|
|
216
|
+
dataset_logo_uri: z.ZodOptional<z.ZodString>;
|
|
217
|
+
"dataset_logo_uri#integrity": z.ZodOptional<z.ZodString>;
|
|
212
218
|
homepage_uri: z.ZodOptional<z.ZodString>;
|
|
213
219
|
id: z.ZodString;
|
|
214
220
|
logo_uri: z.ZodOptional<z.ZodString>;
|
package/lib/typescript/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DigitalCredentialsCatalogue.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AACH;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAOhE,eAAO,MAAM,YAAY;;;iCAKF,CAAC;AAExB,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAyBxD,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"DigitalCredentialsCatalogue.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AACH;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAOhE,eAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQtC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAC"}
|
|
@@ -10,6 +10,8 @@ export declare const mapToCredentialsCatalogue: (input: unknown) => {
|
|
|
10
10
|
value: string;
|
|
11
11
|
}[] | undefined;
|
|
12
12
|
data_origin_l10n_id?: string | undefined;
|
|
13
|
+
dataset_logo_uri?: string | undefined;
|
|
14
|
+
"dataset_logo_uri#integrity"?: string | undefined;
|
|
13
15
|
homepage_uri?: string | undefined;
|
|
14
16
|
logo_uri?: string | undefined;
|
|
15
17
|
organization_code?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/v1.0.0/mappers.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/v1.0.0/mappers.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BrC,CAAC"}
|
|
@@ -211,6 +211,8 @@ export declare const mapToCredentialsCatalogue: (input: [{
|
|
|
211
211
|
value: string;
|
|
212
212
|
}[] | undefined;
|
|
213
213
|
data_origin_l10n_id?: string | undefined;
|
|
214
|
+
dataset_logo_uri?: string | undefined;
|
|
215
|
+
"dataset_logo_uri#integrity"?: string | undefined;
|
|
214
216
|
homepage_uri?: string | undefined;
|
|
215
217
|
logo_uri?: string | undefined;
|
|
216
218
|
organization_code?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/v1.4.6/mappers.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/v1.4.6/mappers.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGrC,CAAC"}
|
|
@@ -4,7 +4,11 @@ export * from "./utils";
|
|
|
4
4
|
export declare const verify: (token: string, x509CertRoot: string) => Promise<{
|
|
5
5
|
issuerSigned: CBOR.IssuerSigned;
|
|
6
6
|
}>;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @param jwkThumbprint - base64url SHA-256 thumbprint (RFC 7638) of the key used to encrypt the authorization response,
|
|
9
|
+
* or null for an unencrypted response. It is part of the OpenID4VP session transcript.
|
|
10
|
+
*/
|
|
11
|
+
export declare const prepareVpTokenMdoc: (requestNonce: string, jwkThumbprint: null | string, clientId: string, responseUri: string, docType: string, keyTag: string, [verifiableCredential, presentationFrame]: Presentation) => Promise<{
|
|
8
12
|
vp_token: string;
|
|
9
13
|
}>;
|
|
10
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mdoc/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAoB,MAAM,kCAAkC,CAAC;AAI1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAM/D,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,MAAM,GACjB,OAAO,MAAM,EACb,cAAc,MAAM,KACnB,OAAO,CAAC;IAAE,YAAY,EAAE,IAAI,CAAC,YAAY,CAAA;CAAE,CAoC7C,CAAC;AA2BF,eAAO,MAAM,kBAAkB,GAC7B,cAAc,MAAM,EACpB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mdoc/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAoB,MAAM,kCAAkC,CAAC;AAI1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAM/D,cAAc,SAAS,CAAC;AAExB,eAAO,MAAM,MAAM,GACjB,OAAO,MAAM,EACb,cAAc,MAAM,KACnB,OAAO,CAAC;IAAE,YAAY,EAAE,IAAI,CAAC,YAAY,CAAA;CAAE,CAoC7C,CAAC;AA2BF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,cAAc,MAAM,EACpB,eAAe,IAAI,GAAG,MAAM,EAC5B,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,QAAQ,MAAM,EACd,2CAA2C,YAAY,KACtD,OAAO,CAAC;IACT,QAAQ,EAAE,MAAM,CAAC;CAClB,CAwBA,CAAC"}
|
package/lib/typescript/module/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"03-complete-user-authorization.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/issuance/v1.0.0/03-complete-user-authorization.ts"],"names":[],"mappings":"AAQA,OAAO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package/lib/typescript/module/credential/presentation/api/07-send-authorization-response.d.ts
CHANGED
|
@@ -9,17 +9,14 @@ export interface SendAuthorizationResponseApi {
|
|
|
9
9
|
* For each credential, this function:
|
|
10
10
|
* - Validates the credential format (currently supports 'mso_mdoc' or 'dc+sd-jwt').
|
|
11
11
|
* - Generates a verifiable presentation token (vpToken) using the appropriate method.
|
|
12
|
-
* - For ISO 18013-7,
|
|
12
|
+
* - For ISO 18013-7, binds the DeviceResponse to the thumbprint of the key used to encrypt the authorization response.
|
|
13
13
|
*
|
|
14
14
|
* @param credentials - An array of credential items containing format, credential data, requested claims, and key information.
|
|
15
|
-
* @param
|
|
16
|
-
* @
|
|
15
|
+
* @param requestObject - The Request Object of the presentation.
|
|
16
|
+
* @param rpConf - Optional Relying Party configuration (OpenID Federation clients only). Pass the same value given to `sendAuthorizationResponse`.
|
|
17
|
+
* @returns A promise that resolves to an object containing an array of presentations.
|
|
17
18
|
*/
|
|
18
|
-
prepareRemotePresentations(credentials: Out<EvaluateDcqlQueryApi["evaluateDcqlQuery"]>,
|
|
19
|
-
clientId: string;
|
|
20
|
-
nonce: string;
|
|
21
|
-
responseUri: string;
|
|
22
|
-
}): Promise<RemotePresentation>;
|
|
19
|
+
prepareRemotePresentations(credentials: Out<EvaluateDcqlQueryApi["evaluateDcqlQuery"]>, requestObject: RequestObject, rpConf?: RelyingPartyConfig): Promise<RemotePresentation>;
|
|
23
20
|
/**
|
|
24
21
|
* Sends the authorization error response to the Relying Party (RP).
|
|
25
22
|
* This function completes the presentation flow in an OpenID 4 Verifiable Presentations scenario.
|
package/lib/typescript/module/credential/presentation/api/07-send-authorization-response.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/api/07-send-authorization-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA0B,CAAC;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAC/D,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACd,MAAM,YAAS,CAAC;AACjB,MAAM,WAAW,4BAA4B;IAC3C
|
|
1
|
+
{"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/api/07-send-authorization-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA0B,CAAC;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAC/D,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACd,MAAM,YAAS,CAAC;AACjB,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;;;;;OAYG;IACH,0BAA0B,CACxB,WAAW,EAAE,GAAG,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC,EAC3D,aAAa,EAAE,aAAa,EAC5B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE/B;;;;;;;;;OASG;IACH,8BAA8B,CAC5B,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE;QAAE,KAAK,EAAE,aAAa,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAE,EACzD,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;;;;;;;;OAUG;IACH,yBAAyB,CACvB,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB,EACtC,MAAM,CAAC,EAAE,kBAAkB,EAC3B,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACnC;AAED,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,OAAO,KAAK,CAAC;CACzB"}
|
|
@@ -101,7 +101,6 @@ export interface PresentationFrame {
|
|
|
101
101
|
* A object that associate the information needed to multiple remote presentation
|
|
102
102
|
*/
|
|
103
103
|
export interface RemotePresentation {
|
|
104
|
-
generatedNonce?: string;
|
|
105
104
|
presentations: {
|
|
106
105
|
credentialId: string;
|
|
107
106
|
format: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AAEtD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAAuB,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,eAAO,MAAM,kBAAkB;;;;;;;;;iBAM7B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,eAAO,MAAM,cAAc;;;;;;;;;;iBAazB,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAC;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;iBAG1C,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa;;;;;;;EAOxB,CAAC;AAEH,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAe,MAAM,CAAkB,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GACxB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,GACvC;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,MAAM,EAAE,0BAA0B,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC;AAE3C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACO,MAAM;IACzB,iBAAiB;IAC6B,aAAa;CACzE,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,iBAAiB,GAAG,SAAS,CAAC;CACtD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AAEtD,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAAuB,CAAC;AAExE,MAAM,MAAM,kBAAk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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/v1.4.6/05-verify-request-object.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,iBAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/v1.4.6/05-verify-request-object.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,iBAAQ,CAAC;AAcxE,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,CAAC,qBAAqB,CA0C1E,CAAC"}
|
package/lib/typescript/module/credential/presentation/v1.4.6/07-send-authorization-response.d.ts
CHANGED
|
@@ -5,11 +5,12 @@ import type { RemotePresentationApi } from "../api/index.js";
|
|
|
5
5
|
* For each credential, this function:
|
|
6
6
|
* - Validates the credential format (currently supports 'mso_mdoc' or 'dc+sd-jwt').
|
|
7
7
|
* - Generates a verifiable presentation token (vpToken) using the appropriate method.
|
|
8
|
-
* - For ISO 18013-7,
|
|
8
|
+
* - For ISO 18013-7, binds the DeviceResponse to the thumbprint of the response encryption key.
|
|
9
9
|
*
|
|
10
10
|
* @param credentials - An array of credential items containing format, credential data, requested claims, and key information.
|
|
11
|
-
* @param
|
|
12
|
-
* @
|
|
11
|
+
* @param requestObject - The Request Object of the presentation.
|
|
12
|
+
* @param rpConf - Optional Relying Party configuration (OpenID Federation clients only).
|
|
13
|
+
* @returns A promise that resolves to an object containing an array of presentations.
|
|
13
14
|
* @throws {CredentialNotFoundError} When the credential format is unsupported.
|
|
14
15
|
*/
|
|
15
16
|
export declare const prepareRemotePresentations: RemotePresentationApi["prepareRemotePresentations"];
|
package/lib/typescript/module/credential/presentation/v1.4.6/07-send-authorization-response.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/v1.4.6/07-send-authorization-response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/v1.4.6/07-send-authorization-response.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,iBAAQ,CAAC;AAyDxE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,0BAA0B,EAAE,qBAAqB,CAAC,4BAA4B,CAqDxF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,qBAAqB,CAAC,2BAA2B,CA6CtF,CAAC;AAEJ,eAAO,MAAM,8BAA8B,EAAE,qBAAqB,CAAC,gCAAgC,CAqBhG,CAAC"}
|
|
@@ -23,6 +23,8 @@ declare const AuthenticSource: z.ZodObject<{
|
|
|
23
23
|
value: z.ZodString;
|
|
24
24
|
}, z.core.$strip>>>;
|
|
25
25
|
data_origin_l10n_id: z.ZodOptional<z.ZodString>;
|
|
26
|
+
dataset_logo_uri: z.ZodOptional<z.ZodString>;
|
|
27
|
+
"dataset_logo_uri#integrity": z.ZodOptional<z.ZodString>;
|
|
26
28
|
homepage_uri: z.ZodOptional<z.ZodString>;
|
|
27
29
|
id: z.ZodString;
|
|
28
30
|
logo_uri: z.ZodOptional<z.ZodString>;
|
|
@@ -68,6 +70,8 @@ export declare const DigitalCredential: z.ZodObject<{
|
|
|
68
70
|
value: z.ZodString;
|
|
69
71
|
}, z.core.$strip>>>;
|
|
70
72
|
data_origin_l10n_id: z.ZodOptional<z.ZodString>;
|
|
73
|
+
dataset_logo_uri: z.ZodOptional<z.ZodString>;
|
|
74
|
+
"dataset_logo_uri#integrity": z.ZodOptional<z.ZodString>;
|
|
71
75
|
homepage_uri: z.ZodOptional<z.ZodString>;
|
|
72
76
|
id: z.ZodString;
|
|
73
77
|
logo_uri: z.ZodOptional<z.ZodString>;
|
|
@@ -209,6 +213,8 @@ export declare const DigitalCredentialsCatalogue: z.ZodObject<{
|
|
|
209
213
|
value: z.ZodString;
|
|
210
214
|
}, z.core.$strip>>>;
|
|
211
215
|
data_origin_l10n_id: z.ZodOptional<z.ZodString>;
|
|
216
|
+
dataset_logo_uri: z.ZodOptional<z.ZodString>;
|
|
217
|
+
"dataset_logo_uri#integrity": z.ZodOptional<z.ZodString>;
|
|
212
218
|
homepage_uri: z.ZodOptional<z.ZodString>;
|
|
213
219
|
id: z.ZodString;
|
|
214
220
|
logo_uri: z.ZodOptional<z.ZodString>;
|
package/lib/typescript/module/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DigitalCredentialsCatalogue.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AACH;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAOhE,eAAO,MAAM,YAAY;;;iCAKF,CAAC;AAExB,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAyBxD,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"DigitalCredentialsCatalogue.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AACH;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,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;;;;;;;;;;;;iBAOnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQtC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAC"}
|
|
@@ -10,6 +10,8 @@ export declare const mapToCredentialsCatalogue: (input: unknown) => {
|
|
|
10
10
|
value: string;
|
|
11
11
|
}[] | undefined;
|
|
12
12
|
data_origin_l10n_id?: string | undefined;
|
|
13
|
+
dataset_logo_uri?: string | undefined;
|
|
14
|
+
"dataset_logo_uri#integrity"?: string | undefined;
|
|
13
15
|
homepage_uri?: string | undefined;
|
|
14
16
|
logo_uri?: string | undefined;
|
|
15
17
|
organization_code?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/v1.0.0/mappers.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/v1.0.0/mappers.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BrC,CAAC"}
|
|
@@ -211,6 +211,8 @@ export declare const mapToCredentialsCatalogue: (input: [{
|
|
|
211
211
|
value: string;
|
|
212
212
|
}[] | undefined;
|
|
213
213
|
data_origin_l10n_id?: string | undefined;
|
|
214
|
+
dataset_logo_uri?: string | undefined;
|
|
215
|
+
"dataset_logo_uri#integrity"?: string | undefined;
|
|
214
216
|
homepage_uri?: string | undefined;
|
|
215
217
|
logo_uri?: string | undefined;
|
|
216
218
|
organization_code?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/v1.4.6/mappers.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credentials-catalogue/v1.4.6/mappers.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGrC,CAAC"}
|
|
@@ -4,7 +4,11 @@ export * from "./utils.js";
|
|
|
4
4
|
export declare const verify: (token: string, x509CertRoot: string) => Promise<{
|
|
5
5
|
issuerSigned: CBOR.IssuerSigned;
|
|
6
6
|
}>;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* @param jwkThumbprint - base64url SHA-256 thumbprint (RFC 7638) of the key used to encrypt the authorization response,
|
|
9
|
+
* or null for an unencrypted response. It is part of the OpenID4VP session transcript.
|
|
10
|
+
*/
|
|
11
|
+
export declare const prepareVpTokenMdoc: (requestNonce: string, jwkThumbprint: null | string, clientId: string, responseUri: string, docType: string, keyTag: string, [verifiableCredential, presentationFrame]: Presentation) => Promise<{
|
|
8
12
|
vp_token: string;
|
|
9
13
|
}>;
|
|
10
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mdoc/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAoB,MAAM,kCAAkC,CAAC;AAI1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAA4B,CAAC;AAM/D,cAAc,YAAS,CAAC;AAExB,eAAO,MAAM,MAAM,GACjB,OAAO,MAAM,EACb,cAAc,MAAM,KACnB,OAAO,CAAC;IAAE,YAAY,EAAE,IAAI,CAAC,YAAY,CAAA;CAAE,CAoC7C,CAAC;AA2BF,eAAO,MAAM,kBAAkB,GAC7B,cAAc,MAAM,EACpB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mdoc/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAoB,MAAM,kCAAkC,CAAC;AAI1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAA4B,CAAC;AAM/D,cAAc,YAAS,CAAC;AAExB,eAAO,MAAM,MAAM,GACjB,OAAO,MAAM,EACb,cAAc,MAAM,KACnB,OAAO,CAAC;IAAE,YAAY,EAAE,IAAI,CAAC,YAAY,CAAA;CAAE,CAoC7C,CAAC;AA2BF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,cAAc,MAAM,EACpB,eAAe,IAAI,GAAG,MAAM,EAC5B,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,QAAQ,MAAM,EACd,2CAA2C,YAAY,KACtD,OAAO,CAAC;IACT,QAAQ,EAAE,MAAM,CAAC;CAClB,CAwBA,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagopa/io-react-native-wallet",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Provide data structures, helpers and API for IO Wallet",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@pagopa/io-react-native-iso18013": "*",
|
|
58
58
|
"@pagopa/io-react-native-jwt": "*",
|
|
59
59
|
"react": "19.2.3",
|
|
60
|
-
"react-native": "0.
|
|
60
|
+
"react-native": "0.86.3",
|
|
61
61
|
"react-native-quick-crypto": "*"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"zod": "4.3.6"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@pagopa/io-react-native-iso18013": "^0.
|
|
83
|
+
"@pagopa/io-react-native-iso18013": "^0.9.0",
|
|
84
84
|
"@types/jsrsasign": "^10.5.15",
|
|
85
85
|
"auto-changelog": "^2.6.0",
|
|
86
86
|
"react-native-builder-bob": "^0.43.0",
|
|
@@ -150,16 +150,10 @@ export const completeUserAuthorizationWithFormPostJwtMode: IssuanceApi["complete
|
|
|
150
150
|
`The requeste credential is not a PersonIdentificationData, completing the user authorization with form_post.jwt mode`,
|
|
151
151
|
);
|
|
152
152
|
|
|
153
|
-
const authRequestObject = {
|
|
154
|
-
clientId: requestObject.client_id,
|
|
155
|
-
nonce: requestObject.nonce,
|
|
156
|
-
responseUri: requestObject.response_uri,
|
|
157
|
-
};
|
|
158
|
-
|
|
159
153
|
const remotePresentation =
|
|
160
154
|
await RemotePresentationFlow.prepareRemotePresentations(
|
|
161
155
|
evaluatedDcqlQuery,
|
|
162
|
-
|
|
156
|
+
requestObject,
|
|
163
157
|
);
|
|
164
158
|
|
|
165
159
|
const authzResponsePayload = await createAuthzResponsePayload({
|
|
@@ -276,11 +276,7 @@ const processPidPresentationAndCreateAuthzResponse = async ({
|
|
|
276
276
|
const remotePresentation =
|
|
277
277
|
await RemotePresentationFlow.prepareRemotePresentations(
|
|
278
278
|
evaluatedDcqlQuery,
|
|
279
|
-
|
|
280
|
-
clientId: requestObject.client_id,
|
|
281
|
-
nonce: requestObject.nonce,
|
|
282
|
-
responseUri: requestObject.response_uri,
|
|
283
|
-
},
|
|
279
|
+
requestObject,
|
|
284
280
|
);
|
|
285
281
|
|
|
286
282
|
const vp_token = remotePresentation.presentations.reduce(
|
|
@@ -97,7 +97,8 @@ const credentialsToPresent = result.map(
|
|
|
97
97
|
const remotePresentations =
|
|
98
98
|
await wallet.RemotePresentation.prepareRemotePresentations(
|
|
99
99
|
credentialsToPresent,
|
|
100
|
-
requestObject
|
|
100
|
+
requestObject,
|
|
101
|
+
rpConf
|
|
101
102
|
);
|
|
102
103
|
|
|
103
104
|
const authResponse = await wallet.RemotePresentation.sendAuthorizationResponse(
|
|
@@ -14,19 +14,17 @@ export interface SendAuthorizationResponseApi {
|
|
|
14
14
|
* For each credential, this function:
|
|
15
15
|
* - Validates the credential format (currently supports 'mso_mdoc' or 'dc+sd-jwt').
|
|
16
16
|
* - Generates a verifiable presentation token (vpToken) using the appropriate method.
|
|
17
|
-
* - For ISO 18013-7,
|
|
17
|
+
* - For ISO 18013-7, binds the DeviceResponse to the thumbprint of the key used to encrypt the authorization response.
|
|
18
18
|
*
|
|
19
19
|
* @param credentials - An array of credential items containing format, credential data, requested claims, and key information.
|
|
20
|
-
* @param
|
|
21
|
-
* @
|
|
20
|
+
* @param requestObject - The Request Object of the presentation.
|
|
21
|
+
* @param rpConf - Optional Relying Party configuration (OpenID Federation clients only). Pass the same value given to `sendAuthorizationResponse`.
|
|
22
|
+
* @returns A promise that resolves to an object containing an array of presentations.
|
|
22
23
|
*/
|
|
23
24
|
prepareRemotePresentations(
|
|
24
25
|
credentials: Out<EvaluateDcqlQueryApi["evaluateDcqlQuery"]>,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
nonce: string;
|
|
28
|
-
responseUri: string;
|
|
29
|
-
},
|
|
26
|
+
requestObject: RequestObject,
|
|
27
|
+
rpConf?: RelyingPartyConfig,
|
|
30
28
|
): Promise<RemotePresentation>;
|
|
31
29
|
|
|
32
30
|
/**
|
|
@@ -101,7 +101,6 @@ export interface PresentationFrame {
|
|
|
101
101
|
* A object that associate the information needed to multiple remote presentation
|
|
102
102
|
*/
|
|
103
103
|
export interface RemotePresentation {
|
|
104
|
-
generatedNonce?: string /* nonce generated by app, used in mdoc presentation */;
|
|
105
104
|
presentations: {
|
|
106
105
|
credentialId: string;
|
|
107
106
|
format: string;
|
|
@@ -89,12 +89,12 @@ export const buildDirectPostJwtBody = async (
|
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
export const prepareRemotePresentations: RemotePresentationApi["prepareRemotePresentations"] =
|
|
92
|
-
async (credentials,
|
|
92
|
+
async (credentials, requestObject) => {
|
|
93
93
|
const presentations = await Promise.all(
|
|
94
94
|
credentials.map(async (item) => {
|
|
95
95
|
const { vp_token } = await prepareVpToken(
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
requestObject.nonce,
|
|
97
|
+
requestObject.client_id,
|
|
98
98
|
[
|
|
99
99
|
item.credential,
|
|
100
100
|
item.presentationFrame,
|
|
@@ -8,9 +8,13 @@ import {
|
|
|
8
8
|
import type { RelyingPartyConfig, RemotePresentationApi } from "../api";
|
|
9
9
|
import type { RawRequestObject } from "./types";
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
createVerifyJwtFromJwks,
|
|
13
|
+
partialCallbacks,
|
|
14
|
+
} from "../../../utils/callbacks";
|
|
12
15
|
import { sdkConfigV1_4 } from "../../../utils/config";
|
|
13
16
|
import { IoWalletError } from "../../../utils/errors";
|
|
17
|
+
import { JWKS } from "../../../utils/jwk";
|
|
14
18
|
import { InvalidRequestObjectError } from "../common/errors";
|
|
15
19
|
import { mapToRequestObject } from "./mappers";
|
|
16
20
|
import { mapSdkRequestObjectError } from "./sdkErrorMapper";
|
|
@@ -19,7 +23,16 @@ export const verifyRequestObject: RemotePresentationApi["verifyRequestObject"] =
|
|
|
19
23
|
async (requestObjectEncodedJwt, { clientId: fullClientId, rpConf }) => {
|
|
20
24
|
const parsedRequestObject = await sdkParseAuthorizeRequest({
|
|
21
25
|
callbacks: {
|
|
22
|
-
verifyJwt:
|
|
26
|
+
verifyJwt: (signer, jwt) => {
|
|
27
|
+
if (signer.method === "federation" && !signer.trustChain && rpConf) {
|
|
28
|
+
return createVerifyJwtFromJwks(JWKS.parse(rpConf.jwks).keys)(
|
|
29
|
+
signer,
|
|
30
|
+
jwt,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return partialCallbacks.verifyJwt(signer, jwt);
|
|
35
|
+
},
|
|
23
36
|
},
|
|
24
37
|
config: sdkConfigV1_4,
|
|
25
38
|
requestObjectJwt: requestObjectEncodedJwt,
|