@pagopa/io-react-native-wallet 3.3.0 → 3.4.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/README.md +1 -1
- package/lib/commonjs/credential/issuance/README.md +32 -14
- package/lib/commonjs/credential/issuance/api/IssuerConfig.js +1 -0
- package/lib/commonjs/credential/issuance/api/IssuerConfig.js.map +1 -1
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +5 -3
- package/lib/commonjs/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js +2 -1
- package/lib/commonjs/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +8 -5
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/index.js +2 -1
- package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/mappers.js +3 -1
- package/lib/commonjs/credential/issuance/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js +1 -1
- package/lib/commonjs/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +108 -69
- package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js +1 -1
- package/lib/commonjs/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.3.3/index.js +2 -1
- package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.3.3/mappers.js +9 -10
- package/lib/commonjs/credential/issuance/v1.3.3/mappers.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/common/utils/http.js +9 -4
- package/lib/commonjs/credential/presentation/common/utils/http.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +3 -1
- package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js +11 -10
- package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js +2 -0
- package/lib/commonjs/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.3.3/mappers.js +1 -1
- package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +2 -1
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js +23 -0
- package/lib/commonjs/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -0
- package/lib/commonjs/credentials-catalogue/v1.0.0/index.js +3 -1
- package/lib/commonjs/credentials-catalogue/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/index.js +3 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/index.js.map +1 -1
- package/lib/commonjs/utils/config.js +9 -1
- package/lib/commonjs/utils/config.js.map +1 -1
- package/lib/module/credential/issuance/README.md +32 -14
- package/lib/module/credential/issuance/api/IssuerConfig.js +1 -0
- package/lib/module/credential/issuance/api/IssuerConfig.js.map +1 -1
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js +5 -3
- package/lib/module/credential/issuance/common/06-verify-and-parse-credential.sdjwt.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js +2 -1
- package/lib/module/credential/issuance/v1.0.0/02-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +6 -4
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/index.js +3 -2
- package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/mappers.js +3 -1
- package/lib/module/credential/issuance/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js +1 -1
- package/lib/module/credential/issuance/v1.3.3/02-start-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +108 -70
- package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js +1 -1
- package/lib/module/credential/issuance/v1.3.3/05-obtain-credential.js.map +1 -1
- package/lib/module/credential/issuance/v1.3.3/index.js +3 -2
- package/lib/module/credential/issuance/v1.3.3/index.js.map +1 -1
- package/lib/module/credential/issuance/v1.3.3/mappers.js +9 -10
- package/lib/module/credential/issuance/v1.3.3/mappers.js.map +1 -1
- package/lib/module/credential/presentation/api/types.js.map +1 -1
- package/lib/module/credential/presentation/common/utils/http.js +9 -4
- package/lib/module/credential/presentation/common/utils/http.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +3 -1
- package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
- package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js +11 -10
- package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js.map +1 -1
- package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js +2 -0
- package/lib/module/credential/presentation/v1.3.3/07-send-authorization-response.js.map +1 -1
- package/lib/module/credential/presentation/v1.3.3/mappers.js +1 -1
- package/lib/module/credential/presentation/v1.3.3/mappers.js.map +1 -1
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +1 -1
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js +16 -0
- package/lib/module/credentials-catalogue/common/get-status-l10n-ids.js.map +1 -0
- package/lib/module/credentials-catalogue/v1.0.0/index.js +3 -1
- package/lib/module/credentials-catalogue/v1.0.0/index.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.3.3/index.js +3 -1
- package/lib/module/credentials-catalogue/v1.3.3/index.js.map +1 -1
- package/lib/module/utils/config.js +7 -0
- package/lib/module/utils/config.js.map +1 -1
- package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts +1 -0
- package/lib/typescript/credential/issuance/api/02-start-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts +19 -5
- package/lib/typescript/credential/issuance/api/03-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts +1 -0
- package/lib/typescript/credential/issuance/api/IssuerConfig.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/common/06-verify-and-parse-credential.sdjwt.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/02-start-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts +2 -1
- package/lib/typescript/credential/issuance/v1.0.0/03-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts +2 -1
- package/lib/typescript/credential/issuance/v1.3.3/03-complete-user-authorization.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts +7 -4
- package/lib/typescript/credential/issuance/v1.3.3/mappers.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/05-verify-request-object.d.ts +1 -1
- package/lib/typescript/credential/presentation/api/types.d.ts +3 -7
- package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/common/utils/http.d.ts +1 -1
- package/lib/typescript/credential/presentation/common/utils/http.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.3.3/05-verify-request-object.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.3.3/07-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts +8 -8
- package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +8 -8
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +6 -0
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/api/index.d.ts +14 -2
- package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts +9 -0
- package/lib/typescript/credentials-catalogue/common/get-status-l10n-ids.d.ts.map +1 -0
- package/lib/typescript/credentials-catalogue/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.3.3/index.d.ts.map +1 -1
- package/lib/typescript/trust/v1.3.3/types.d.ts +6 -4
- package/lib/typescript/trust/v1.3.3/types.d.ts.map +1 -1
- package/lib/typescript/utils/config.d.ts +4 -0
- package/lib/typescript/utils/config.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/credential/issuance/README.md +32 -14
- package/src/credential/issuance/api/02-start-user-authorization.ts +1 -0
- package/src/credential/issuance/api/03-complete-user-authorization.ts +26 -5
- package/src/credential/issuance/api/IssuerConfig.ts +1 -0
- package/src/credential/issuance/common/06-verify-and-parse-credential.sdjwt.ts +8 -4
- package/src/credential/issuance/v1.0.0/02-start-user-authorization.ts +7 -1
- package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +16 -4
- package/src/credential/issuance/v1.0.0/index.ts +4 -2
- package/src/credential/issuance/v1.0.0/mappers.ts +5 -0
- package/src/credential/issuance/v1.3.3/02-start-user-authorization.ts +1 -1
- package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +138 -94
- package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +1 -1
- package/src/credential/issuance/v1.3.3/index.ts +4 -2
- package/src/credential/issuance/v1.3.3/mappers.ts +9 -10
- package/src/credential/presentation/api/05-verify-request-object.ts +1 -1
- package/src/credential/presentation/api/types.ts +3 -7
- package/src/credential/presentation/common/utils/http.ts +2 -2
- package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +1 -1
- package/src/credential/presentation/v1.3.3/05-verify-request-object.ts +15 -14
- package/src/credential/presentation/v1.3.3/07-send-authorization-response.ts +2 -0
- package/src/credential/presentation/v1.3.3/mappers.ts +1 -1
- package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +4 -1
- package/src/credentials-catalogue/api/index.ts +15 -0
- package/src/credentials-catalogue/common/get-status-l10n-ids.ts +25 -0
- package/src/credentials-catalogue/v1.0.0/index.ts +2 -0
- package/src/credentials-catalogue/v1.3.3/index.ts +2 -0
- package/src/utils/config.ts +7 -0
- package/lib/commonjs/credential/presentation/common/utils.js +0 -28
- package/lib/commonjs/credential/presentation/common/utils.js.map +0 -1
- package/lib/module/credential/presentation/common/utils.js +0 -21
- package/lib/module/credential/presentation/common/utils.js.map +0 -1
- package/lib/typescript/credential/presentation/common/utils.d.ts +0 -11
- package/lib/typescript/credential/presentation/common/utils.d.ts.map +0 -1
- package/src/credential/presentation/common/utils.ts +0 -30
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credential/issuance/v1.3.3/mappers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,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iD,CAAC;uBAA+C,CAAC;uBAA6C,CAAC;uBAA+C,CAAC;8BAAoD,CAAC;uBAA6C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAXzo+N,CAAC;AAEF,eAAO,MAAM,kBAAkB,wDAQ5B,CAAC"}
|
|
@@ -6,7 +6,7 @@ export interface VerifyRequestObjectApi {
|
|
|
6
6
|
* @since 1.0.0
|
|
7
7
|
*
|
|
8
8
|
* @param requestObjectEncodedJwt The Request Object in JWT format
|
|
9
|
-
* @param params.clientId The client ID to verify
|
|
9
|
+
* @param params.clientId The client ID to verify (it may include a prefix)
|
|
10
10
|
* @param params.rpConf Optional Relying Party configuration (OpenID Federation clients only)
|
|
11
11
|
* @param params.state Optional state
|
|
12
12
|
* @returns The verified Request Object
|
|
@@ -73,15 +73,11 @@ export type RemotePresentationDetails = {
|
|
|
73
73
|
type ClientMetadata = {
|
|
74
74
|
jwks: jsonWebKeySet;
|
|
75
75
|
encrypted_response_enc_values_supported: string[];
|
|
76
|
-
client_id: string;
|
|
77
|
-
client_name: string;
|
|
78
|
-
logo_uri: string;
|
|
79
|
-
application_type: "web";
|
|
80
|
-
request_uris: string[];
|
|
81
|
-
response_uris: string[];
|
|
82
76
|
vp_formats_supported: Record<string, {
|
|
83
77
|
"sd-jwt_alg_values"?: string[];
|
|
84
78
|
}>;
|
|
79
|
+
client_name?: string;
|
|
80
|
+
logo_uri?: string;
|
|
85
81
|
};
|
|
86
82
|
/**
|
|
87
83
|
* Common Request Object type, decoupled from specific IT-Wallet versions
|
|
@@ -90,7 +86,7 @@ export type RequestObject = {
|
|
|
90
86
|
iss: string;
|
|
91
87
|
response_uri: string;
|
|
92
88
|
nonce: string;
|
|
93
|
-
state
|
|
89
|
+
state?: string;
|
|
94
90
|
client_id: string;
|
|
95
91
|
dcql_query: Record<string, unknown>;
|
|
96
92
|
response_type: "vp_token";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,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,MAAM,qBAAqB,GAAG;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,aAAa,CAAC;IACpB,uCAAuC,EAAE,MAAM,EAAE,CAAC;IAClD,
|
|
1
|
+
{"version":3,"file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,GACpC;IAAE,MAAM,EAAE,0BAA0B,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5C,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC"}
|
|
@@ -7,5 +7,5 @@ import type { DirectAuthorizationBodyPayload } from "../../v1.0.0/types";
|
|
|
7
7
|
* @param payload - Object that contains either the VP token to encrypt and the stringified mapping of the credential disclosures or the error code
|
|
8
8
|
* @returns A URL-encoded string suitable for an `application/x-www-form-urlencoded` POST body.
|
|
9
9
|
*/
|
|
10
|
-
export declare const buildDirectPostBody: (
|
|
10
|
+
export declare const buildDirectPostBody: ({ state }: RequestObject, payload: DirectAuthorizationBodyPayload) => Promise<string>;
|
|
11
11
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/common/utils/http.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../../../src/credential/presentation/common/utils/http.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,WAAW,aAAa,EACxB,SAAS,8BAA8B,KACtC,OAAO,CAAC,MAAM,CAgBhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/05-verify-request-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAexE,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"05-verify-request-object.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/05-verify-request-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAexE,eAAO,MAAM,mBAAmB,EAAE,qBAAqB,CAAC,qBAAqB,CAiC1E,CAAC"}
|
package/lib/typescript/credential/presentation/v1.3.3/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.3.3/07-send-authorization-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"07-send-authorization-response.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/07-send-authorization-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAkBpD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,EAAE,qBAAqB,CAAC,4BAA4B,CA2DxF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,qBAAqB,CAAC,2BAA2B,CAmDtF,CAAC;AAEJ,eAAO,MAAM,8BAA8B,EAAE,qBAAqB,CAAC,gCAAgC,CAqBhG,CAAC"}
|
|
@@ -148,12 +148,8 @@ export declare const mapToRequestObject: (input: {
|
|
|
148
148
|
response_mode: "direct_post.jwt";
|
|
149
149
|
response_type: "vp_token";
|
|
150
150
|
response_uri: string;
|
|
151
|
-
state: string;
|
|
152
151
|
client_metadata?: {
|
|
153
152
|
[x: string]: unknown;
|
|
154
|
-
application_type: "web";
|
|
155
|
-
client_id: string;
|
|
156
|
-
client_name: string;
|
|
157
153
|
encrypted_response_enc_values_supported: string[];
|
|
158
154
|
jwks: {
|
|
159
155
|
keys: {
|
|
@@ -169,9 +165,6 @@ export declare const mapToRequestObject: (input: {
|
|
|
169
165
|
x5u?: string | undefined;
|
|
170
166
|
}[];
|
|
171
167
|
};
|
|
172
|
-
logo_uri: string;
|
|
173
|
-
request_uris: string[];
|
|
174
|
-
response_uris: string[];
|
|
175
168
|
vp_formats_supported: Record<string, {
|
|
176
169
|
alg?: string[] | undefined;
|
|
177
170
|
deviceauth_alg_values?: number[] | undefined;
|
|
@@ -179,16 +172,22 @@ export declare const mapToRequestObject: (input: {
|
|
|
179
172
|
"kb-jwt_alg_values"?: string[] | undefined;
|
|
180
173
|
"sd-jwt_alg_values"?: string[] | undefined;
|
|
181
174
|
}>;
|
|
175
|
+
application_type?: "web" | undefined;
|
|
176
|
+
client_id?: string | undefined;
|
|
177
|
+
client_name?: string | undefined;
|
|
182
178
|
erasure_endpoint?: string | undefined;
|
|
179
|
+
logo_uri?: string | undefined;
|
|
180
|
+
request_uris?: string[] | undefined;
|
|
181
|
+
response_uris?: string[] | undefined;
|
|
183
182
|
} | undefined;
|
|
184
183
|
request_uri?: string | undefined;
|
|
185
184
|
request_uri_method?: string | undefined;
|
|
186
185
|
scope?: string | undefined;
|
|
186
|
+
state?: string | undefined;
|
|
187
187
|
transaction_data?: string[] | undefined;
|
|
188
188
|
transaction_data_hashes_alg?: string[] | undefined;
|
|
189
189
|
wallet_nonce?: string | undefined;
|
|
190
190
|
} & {
|
|
191
|
-
iss: string;
|
|
192
191
|
aud?: string | undefined;
|
|
193
192
|
cnf?: {
|
|
194
193
|
[x: string]: unknown;
|
|
@@ -227,6 +226,7 @@ export declare const mapToRequestObject: (input: {
|
|
|
227
226
|
} | undefined;
|
|
228
227
|
exp?: number | undefined;
|
|
229
228
|
iat?: number | undefined;
|
|
229
|
+
iss?: string | undefined;
|
|
230
230
|
jti?: string | undefined;
|
|
231
231
|
nbf?: number | undefined;
|
|
232
232
|
nonce?: string | undefined;
|
|
@@ -11,9 +11,9 @@ export declare const RawRequestObject: z.ZodObject<{
|
|
|
11
11
|
payload: z.ZodIntersection<z.ZodObject<{
|
|
12
12
|
client_id: z.ZodString;
|
|
13
13
|
client_metadata: z.ZodOptional<z.ZodObject<{
|
|
14
|
-
application_type: z.ZodLiteral<"web"
|
|
15
|
-
client_id: z.ZodURL
|
|
16
|
-
client_name: z.ZodString
|
|
14
|
+
application_type: z.ZodOptional<z.ZodLiteral<"web">>;
|
|
15
|
+
client_id: z.ZodOptional<z.ZodURL>;
|
|
16
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
17
17
|
encrypted_response_enc_values_supported: z.ZodArray<z.ZodString>;
|
|
18
18
|
erasure_endpoint: z.ZodOptional<z.ZodURL>;
|
|
19
19
|
jwks: z.ZodObject<{
|
|
@@ -29,9 +29,9 @@ export declare const RawRequestObject: z.ZodObject<{
|
|
|
29
29
|
x5u: z.ZodOptional<z.ZodString>;
|
|
30
30
|
}, z.core.$loose>>;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
|
-
logo_uri: z.ZodURL
|
|
33
|
-
request_uris: z.ZodArray<z.ZodURL
|
|
34
|
-
response_uris: z.ZodArray<z.ZodURL
|
|
32
|
+
logo_uri: z.ZodOptional<z.ZodURL>;
|
|
33
|
+
request_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
34
|
+
response_uris: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
35
35
|
vp_formats_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
36
36
|
alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
37
|
deviceauth_alg_values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
@@ -48,12 +48,11 @@ export declare const RawRequestObject: z.ZodObject<{
|
|
|
48
48
|
response_type: z.ZodLiteral<"vp_token">;
|
|
49
49
|
response_uri: z.ZodURL;
|
|
50
50
|
scope: z.ZodOptional<z.ZodString>;
|
|
51
|
-
state: z.ZodString
|
|
51
|
+
state: z.ZodOptional<z.ZodString>;
|
|
52
52
|
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
53
|
transaction_data_hashes_alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
54
|
wallet_nonce: z.ZodOptional<z.ZodString>;
|
|
55
55
|
}, z.core.$loose>, z.ZodObject<{
|
|
56
|
-
iss: z.ZodString;
|
|
57
56
|
aud: z.ZodOptional<z.ZodString>;
|
|
58
57
|
cnf: z.ZodOptional<z.ZodObject<{
|
|
59
58
|
jkt: z.ZodOptional<z.ZodString>;
|
|
@@ -89,6 +88,7 @@ export declare const RawRequestObject: z.ZodObject<{
|
|
|
89
88
|
}, z.core.$loose>>;
|
|
90
89
|
exp: z.ZodOptional<z.ZodNumber>;
|
|
91
90
|
iat: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
iss: z.ZodOptional<z.ZodString>;
|
|
92
92
|
jti: z.ZodOptional<z.ZodString>;
|
|
93
93
|
nbf: z.ZodOptional<z.ZodNumber>;
|
|
94
94
|
nonce: z.ZodOptional<z.ZodString>;
|
|
@@ -11,6 +11,11 @@ export type LocalizationInfo = z.infer<typeof LocalizationInfo>;
|
|
|
11
11
|
* Each locale maps l10n_id keys to their translated string values.
|
|
12
12
|
*/
|
|
13
13
|
export type CatalogueTranslations = Record<string, Record<string, string>>;
|
|
14
|
+
export declare const AllowedState: z.ZodObject<{
|
|
15
|
+
title_l10n_id: z.ZodString;
|
|
16
|
+
description_l10n_id: z.ZodString;
|
|
17
|
+
}, z.core.$catchall<z.ZodString>>;
|
|
18
|
+
export type AllowedState = z.infer<typeof AllowedState>;
|
|
14
19
|
declare const AuthenticSource: z.ZodObject<{
|
|
15
20
|
id: z.ZodString;
|
|
16
21
|
organization_name: z.ZodOptional<z.ZodString>;
|
|
@@ -123,6 +128,7 @@ export declare const DigitalCredential: z.ZodObject<{
|
|
|
123
128
|
"schema_uri#integrity": z.ZodOptional<z.ZodString>;
|
|
124
129
|
}, z.core.$strip>>>;
|
|
125
130
|
}, z.core.$strip>;
|
|
131
|
+
export type DigitalCredential = z.infer<typeof DigitalCredential>;
|
|
126
132
|
declare const TaxonomyPurpose: z.ZodObject<{
|
|
127
133
|
id: z.ZodString;
|
|
128
134
|
name_l10n_id: z.ZodString;
|
|
@@ -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;AAGzB,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"DigitalCredentialsCatalogue.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQtC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CatalogueTranslations, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy } from "./DigitalCredentialsCatalogue";
|
|
1
|
+
import { type CatalogueTranslations, type DigitalCredential, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy } from "./DigitalCredentialsCatalogue";
|
|
2
2
|
type FetchContext = {
|
|
3
3
|
appFetch?: GlobalFetch["fetch"];
|
|
4
4
|
};
|
|
@@ -34,6 +34,18 @@ export interface CredentialsCatalogueApi {
|
|
|
34
34
|
* @returns Record keyed by locale, each containing merged translation key→value pairs
|
|
35
35
|
*/
|
|
36
36
|
fetchTranslations?(localizations: FetchTranslationsLocalizations, locales: string[], ctx?: FetchContext): Promise<CatalogueTranslations>;
|
|
37
|
+
/**
|
|
38
|
+
* Given a statusBit (e.g. "0x00", "0x0B") and a DigitalCredential from the
|
|
39
|
+
* catalogue, returns the matching l10n IDs or undefined if not found.
|
|
40
|
+
* The comparison is case-insensitive to handle uppercase statusBit values
|
|
41
|
+
* returned by verifyAndParseStatusList against lowercase keys in the catalogue.
|
|
42
|
+
*
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
getStatusL10nIds(statusBit: string, credentialConfig: DigitalCredential): {
|
|
46
|
+
titleL10nId: string;
|
|
47
|
+
descriptionL10nId: string;
|
|
48
|
+
} | undefined;
|
|
37
49
|
}
|
|
38
|
-
export { type CatalogueTranslations, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy, };
|
|
50
|
+
export { type CatalogueTranslations, type DigitalCredential, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy, };
|
|
39
51
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAEvC,KAAK,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAExD,KAAK,8BAA8B,GAAG;IACpC,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;OAQG;IACH,sBAAsB,CACpB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,CAAC,EAAE,YAAY,GACjB,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CAAC,CAChB,aAAa,EAAE,8BAA8B,EAC7C,OAAO,EAAE,MAAM,EAAE,EACjB,GAAG,CAAC,EAAE,YAAY,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AAEvC,KAAK,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAExD,KAAK,8BAA8B,GAAG;IACpC,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;OAQG;IACH,sBAAsB,CACpB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,CAAC,EAAE,YAAY,GACjB,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAExC;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CAAC,CAChB,aAAa,EAAE,8BAA8B,EAC7C,OAAO,EAAE,MAAM,EAAE,EACjB,GAAG,CAAC,EAAE,YAAY,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,gBAAgB,CACd,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,iBAAiB,GAClC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACnE;AAED,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,QAAQ,GACd,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type CredentialsCatalogueApi } from "../api";
|
|
2
|
+
/**
|
|
3
|
+
* Given a statusBit (e.g. "0x00", "0x0B") and a DigitalCredential from the
|
|
4
|
+
* catalogue, returns the matching l10n IDs or undefined if not found.
|
|
5
|
+
* The comparison is case-insensitive to handle uppercase statusBit values
|
|
6
|
+
* returned by verifyAndParseStatusList against lowercase keys in the catalogue.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getStatusL10nIds: CredentialsCatalogueApi["getStatusL10nIds"];
|
|
9
|
+
//# sourceMappingURL=get-status-l10n-ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-status-l10n-ids.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/common/get-status-l10n-ids.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,uBAAuB,CAAC,kBAAkB,CAexE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.0.0/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.0.0/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAItD,eAAO,MAAM,oBAAoB,EAAE,uBAGlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.3.3/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.3.3/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAC;AAKtD,eAAO,MAAM,oBAAoB,EAAE,uBAIlC,CAAC"}
|
|
@@ -97,9 +97,11 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
|
97
97
|
batch_size: z.ZodNumber;
|
|
98
98
|
}, z.core.$strip>>;
|
|
99
99
|
credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
100
|
+
credential_signing_alg_values_supported: z.ZodArray<z.ZodString>;
|
|
100
101
|
format: z.ZodLiteral<"dc+sd-jwt">;
|
|
101
102
|
vct: z.ZodString;
|
|
102
103
|
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
credential_signing_alg_values_supported: z.ZodArray<z.ZodNumber>;
|
|
103
105
|
doctype: z.ZodString;
|
|
104
106
|
format: z.ZodLiteral<"mso_mdoc">;
|
|
105
107
|
}, z.core.$strip>], "format">, z.ZodObject<{
|
|
@@ -143,7 +145,6 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
|
143
145
|
}, z.core.$strip>>;
|
|
144
146
|
}, z.core.$strip>>>;
|
|
145
147
|
}, z.core.$strip>;
|
|
146
|
-
credential_signing_alg_values_supported: z.ZodArray<z.ZodString>;
|
|
147
148
|
cryptographic_binding_methods_supported: z.ZodArray<z.ZodString>;
|
|
148
149
|
proof_types_supported: z.ZodObject<{
|
|
149
150
|
jwt: z.ZodObject<{
|
|
@@ -207,7 +208,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
|
207
208
|
nonce_endpoint: z.ZodOptional<z.ZodURL>;
|
|
208
209
|
notification_endpoint: z.ZodOptional<z.ZodURL>;
|
|
209
210
|
status_list_aggregation_endpoint: z.ZodOptional<z.ZodURL>;
|
|
210
|
-
trust_frameworks_supported: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"eudi_wallet">, z.ZodLiteral<"it_cie">, z.ZodLiteral<"it_wallet">, z.ZodLiteral<"it_l2+document_proof">]>>;
|
|
211
|
+
trust_frameworks_supported: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"eudi_wallet">, z.ZodLiteral<"it_cie">, z.ZodLiteral<"it_wallet">, z.ZodLiteral<"it_l2+document_proof">, z.ZodLiteral<"it_spid">]>>;
|
|
211
212
|
}, z.core.$loose>;
|
|
212
213
|
oauth_authorization_server: z.ZodObject<{
|
|
213
214
|
acr_values_supported: z.ZodArray<z.ZodString>;
|
|
@@ -661,9 +662,11 @@ export declare const EntityConfiguration: z.ZodUnion<readonly [z.ZodIntersection
|
|
|
661
662
|
batch_size: z.ZodNumber;
|
|
662
663
|
}, z.core.$strip>>;
|
|
663
664
|
credential_configurations_supported: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
665
|
+
credential_signing_alg_values_supported: z.ZodArray<z.ZodString>;
|
|
664
666
|
format: z.ZodLiteral<"dc+sd-jwt">;
|
|
665
667
|
vct: z.ZodString;
|
|
666
668
|
}, z.core.$strip>, z.ZodObject<{
|
|
669
|
+
credential_signing_alg_values_supported: z.ZodArray<z.ZodNumber>;
|
|
667
670
|
doctype: z.ZodString;
|
|
668
671
|
format: z.ZodLiteral<"mso_mdoc">;
|
|
669
672
|
}, z.core.$strip>], "format">, z.ZodObject<{
|
|
@@ -707,7 +710,6 @@ export declare const EntityConfiguration: z.ZodUnion<readonly [z.ZodIntersection
|
|
|
707
710
|
}, z.core.$strip>>;
|
|
708
711
|
}, z.core.$strip>>>;
|
|
709
712
|
}, z.core.$strip>;
|
|
710
|
-
credential_signing_alg_values_supported: z.ZodArray<z.ZodString>;
|
|
711
713
|
cryptographic_binding_methods_supported: z.ZodArray<z.ZodString>;
|
|
712
714
|
proof_types_supported: z.ZodObject<{
|
|
713
715
|
jwt: z.ZodObject<{
|
|
@@ -771,7 +773,7 @@ export declare const EntityConfiguration: z.ZodUnion<readonly [z.ZodIntersection
|
|
|
771
773
|
nonce_endpoint: z.ZodOptional<z.ZodURL>;
|
|
772
774
|
notification_endpoint: z.ZodOptional<z.ZodURL>;
|
|
773
775
|
status_list_aggregation_endpoint: z.ZodOptional<z.ZodURL>;
|
|
774
|
-
trust_frameworks_supported: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"eudi_wallet">, z.ZodLiteral<"it_cie">, z.ZodLiteral<"it_wallet">, z.ZodLiteral<"it_l2+document_proof">]>>;
|
|
776
|
+
trust_frameworks_supported: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"eudi_wallet">, z.ZodLiteral<"it_cie">, z.ZodLiteral<"it_wallet">, z.ZodLiteral<"it_l2+document_proof">, z.ZodLiteral<"it_spid">]>>;
|
|
775
777
|
}, z.core.$loose>;
|
|
776
778
|
oauth_authorization_server: z.ZodObject<{
|
|
777
779
|
acr_values_supported: z.ZodArray<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/trust/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAWzB,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAC;AACF,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/trust/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAWzB,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAC;AACF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAY/C,CAAC;AAGF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,+BAA+B,CACvC,CAAC;AACF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQ3C,CAAC;AAGF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,iCAAiC,CACzC,CAAC;AACF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQ7C,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAMwC,CAAC"}
|
|
@@ -7,4 +7,8 @@ export declare const sdkConfigV1_0: IoWalletSdkConfig<ItWalletSpecsVersion.V1_0>
|
|
|
7
7
|
* IO Wallet SDK configuration object for v1.3 specs.
|
|
8
8
|
*/
|
|
9
9
|
export declare const sdkConfigV1_3: IoWalletSdkConfig<ItWalletSpecsVersion.V1_3>;
|
|
10
|
+
/**
|
|
11
|
+
* IO Wallet SDK configuration object for v1.4 specs.
|
|
12
|
+
*/
|
|
13
|
+
export declare const sdkConfigV1_4: IoWalletSdkConfig<ItWalletSpecsVersion.V1_4>;
|
|
10
14
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,CAAC"}
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,8CAExB,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.4.0",
|
|
4
4
|
"description": "Provide data structures, helpers and API for IO Wallet",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -140,11 +140,11 @@
|
|
|
140
140
|
]
|
|
141
141
|
},
|
|
142
142
|
"dependencies": {
|
|
143
|
-
"@pagopa/io-wallet-oauth2": "1.4.
|
|
144
|
-
"@pagopa/io-wallet-
|
|
145
|
-
"@pagopa/io-wallet-
|
|
146
|
-
"@pagopa/io-wallet-
|
|
147
|
-
"@pagopa/io-wallet-utils": "1.4.
|
|
143
|
+
"@pagopa/io-wallet-oauth2": "1.4.2",
|
|
144
|
+
"@pagopa/io-wallet-oid-federation": "1.4.2",
|
|
145
|
+
"@pagopa/io-wallet-oid4vci": "1.4.2",
|
|
146
|
+
"@pagopa/io-wallet-oid4vp": "1.4.2",
|
|
147
|
+
"@pagopa/io-wallet-utils": "1.4.2",
|
|
148
148
|
"@sd-jwt/core": "^0.19.0",
|
|
149
149
|
"@sd-jwt/crypto-nodejs": "^0.19.0",
|
|
150
150
|
"@sd-jwt/jwt-status-list": "^0.19.0",
|
|
@@ -19,8 +19,8 @@ graph TD;
|
|
|
19
19
|
2[evaluateIssuerTrust]
|
|
20
20
|
3[startUserAuthorization]
|
|
21
21
|
C4[getRequestedCredentialToBePresented]
|
|
22
|
-
C4.1[
|
|
23
|
-
E4[
|
|
22
|
+
C4.1[completeEaaUserAuthorizationWithQueryMode]
|
|
23
|
+
E4[completePidUserAuthorizationWithQueryMode]
|
|
24
24
|
5[authorizeAccess]
|
|
25
25
|
6[WalletUnitAttestation.getAttestation]
|
|
26
26
|
7[obtainCredential]
|
|
@@ -86,11 +86,15 @@ MRTD Verification is a sub-flow of the Issuance flow and is used when the reques
|
|
|
86
86
|
1. **Primary Authentication**: LoA3 electronic identification (SPID or CIEid L2).
|
|
87
87
|
2. **MRTD Proof of Possession (PoP)**: Electronic document reading and cryptographic verification.
|
|
88
88
|
|
|
89
|
-
This process is initiated by the Authorization Server responding to the primary authentication step with a redirect that includes a challenge in the query string, which is handled by the `continueUserAuthorizationWithMRTDPoPChallenge` function. Once the MRTD PoP is completed, the user must continue the PID issuance flow with the `
|
|
89
|
+
This process is initiated by the Authorization Server responding to the primary authentication step with a redirect that includes a challenge in the query string, which is handled by the `continueUserAuthorizationWithMRTDPoPChallenge` function. Once the MRTD PoP is completed, the user must continue the PID issuance flow with the `completePidUserAuthorizationWithQueryMode` function.
|
|
90
90
|
|
|
91
91
|
Complete documentation for the MRTD PoP flow can be found here: [mrtd-pop](./mrtd-pop/README.md)
|
|
92
92
|
|
|
93
|
-
## Authentication through credentials (
|
|
93
|
+
## Authentication through credentials (Query Mode) - v1.3
|
|
94
|
+
|
|
95
|
+
When the credential is different than an eID, the flow requires the user to present other credentials in order to obtain the requested one. Starting from IT-Wallet specifications v1.3, the EAA issuance flow uses the query mode to complete the user authorization. This is done through the `getRequestedCredentialToBePresented` followed by the `completeEaaUserAuthorizationWithQueryMode`.
|
|
96
|
+
|
|
97
|
+
## Authentication through credentials (Form Post JWT Mode) - v1.0
|
|
94
98
|
|
|
95
99
|
When the credential is different than an eID, the flow requires the user to present other credentials in order to obtain the requested one. This is done through the `getRequestedCredentialToBePresented` followed by the `completeUserAuthorizationWithFormPostJwtMode`.
|
|
96
100
|
|
|
@@ -163,7 +167,7 @@ const credentialCryptoContext = createCryptoContextFor(credentialKeyTag);
|
|
|
163
167
|
const { issuerConf } = await wallet.CredentialIssuance.evaluateIssuerTrust(WALLET_EAA_PROVIDER_BASE_URL);
|
|
164
168
|
|
|
165
169
|
// Start user authorization
|
|
166
|
-
const { issuerRequestUri, clientId, codeVerifier } =
|
|
170
|
+
const { issuerRequestUri, clientId, codeVerifier, responseMode } =
|
|
167
171
|
await wallet.CredentialIssuance.startUserAuthorization(
|
|
168
172
|
issuerConf,
|
|
169
173
|
["someCredentialId"],
|
|
@@ -184,13 +188,27 @@ const requestObject =
|
|
|
184
188
|
appFetch
|
|
185
189
|
);
|
|
186
190
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
let code: string;
|
|
192
|
+
if (responseMode === "form_post.jwt") {
|
|
193
|
+
// Complete the user authorization via form_post.jwt mode
|
|
194
|
+
({ code } =
|
|
195
|
+
await wallet.CredentialIssuance.completeUserAuthorizationWithFormPostJwtMode(
|
|
196
|
+
requestObject,
|
|
197
|
+
issuerConf,
|
|
198
|
+
[pid.keyTag, pid.credential],
|
|
199
|
+
{ wiaCryptoContext, appFetch }
|
|
200
|
+
));
|
|
201
|
+
} else {
|
|
202
|
+
// Complete the user authorization via query mode
|
|
203
|
+
({ code } =
|
|
204
|
+
await wallet.CredentialIssuance.completeEaaUserAuthorizationWithQueryMode(
|
|
205
|
+
requestObject,
|
|
206
|
+
issuerConf,
|
|
207
|
+
[pid.keyTag, pid.credential],
|
|
208
|
+
REDIRECT_URI,
|
|
209
|
+
{ appFetch }
|
|
210
|
+
));
|
|
211
|
+
}
|
|
194
212
|
|
|
195
213
|
// Generate the DPoP context which will be used for the whole issuance flow
|
|
196
214
|
await regenerateCryptoKey(DPOP_KEYTAG); // Let's assume this function regenerates this ephemeral key for the DPoP
|
|
@@ -330,7 +348,7 @@ const { issuerConf } = await wallet.CredentialIssuance.evaluateIssuerTrust(
|
|
|
330
348
|
const { issuerRequestUri, clientId, codeVerifier, credentialDefinition } =
|
|
331
349
|
await wallet.CredentialIssuance.startUserAuthorization(
|
|
332
350
|
issuerConf,
|
|
333
|
-
["
|
|
351
|
+
["dc_sd_jwt_pid"], // Request authorization for one or more credentials
|
|
334
352
|
{ proofType: "none" },
|
|
335
353
|
{
|
|
336
354
|
walletInstanceAttestation,
|
|
@@ -342,7 +360,7 @@ const { issuerRequestUri, clientId, codeVerifier, credentialDefinition } =
|
|
|
342
360
|
|
|
343
361
|
// Complete the authorization process with query mode with the authorizationContext which opens the browser
|
|
344
362
|
const { code } =
|
|
345
|
-
await wallet.CredentialIssuance.
|
|
363
|
+
await wallet.CredentialIssuance.completePidUserAuthorizationWithQueryMode(
|
|
346
364
|
issuerRequestUri
|
|
347
365
|
);
|
|
348
366
|
|
|
@@ -39,10 +39,32 @@ export interface CompleteUserAuthorizationApi {
|
|
|
39
39
|
* @param authRedirectUrl The URL to which the end user should be redirected to start the authentication flow
|
|
40
40
|
* @returns the authorization response which contains code, state and iss
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
completePidUserAuthorizationWithQueryMode(
|
|
43
43
|
authRedirectUrl: string
|
|
44
44
|
): Promise<AuthorizationResult>;
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Complete user authorization when the response mode is "query" and the requested credential is an Electronic Attestation of Attributes (EAA).
|
|
48
|
+
* This type of credentials requires a PID to be presented to complete the authorization process and then obtain an access token.
|
|
49
|
+
* @since 1.3.3
|
|
50
|
+
*
|
|
51
|
+
* @param requestObject The request object containing the necessary parameters for authorization.
|
|
52
|
+
* @param issuerConfig The issuer configuration returned by {@link evaluateIssuerTrust}
|
|
53
|
+
* @param pid The PID to present as a tuple [keyTag, credential].
|
|
54
|
+
* @param redirectUri The client redirect URI to which the authorization server will redirect after completing the authorization process.
|
|
55
|
+
* @param appFetch (optional) fetch api implementation. Default: built-in fetch
|
|
56
|
+
* @returns The authorization response which contains code, state and iss
|
|
57
|
+
*/
|
|
58
|
+
completeEaaUserAuthorizationWithQueryMode(
|
|
59
|
+
requestObject: RequestObject,
|
|
60
|
+
issuerConf: IssuerConfig,
|
|
61
|
+
pid: [keyTag: string, credential: string],
|
|
62
|
+
redirectUri: string,
|
|
63
|
+
context?: {
|
|
64
|
+
appFetch?: GlobalFetch["fetch"];
|
|
65
|
+
}
|
|
66
|
+
): Promise<AuthorizationResult>;
|
|
67
|
+
|
|
46
68
|
/**
|
|
47
69
|
* WARNING: This function must be called after {@link getRequestedCredentialToBePresented}. The next function to be called is {@link authorizeAccess}.
|
|
48
70
|
*
|
|
@@ -51,8 +73,8 @@ export interface CompleteUserAuthorizationApi {
|
|
|
51
73
|
* Following this,the redirect_uri from the response is used to obtain the final authorization response.
|
|
52
74
|
* @since 1.0.0
|
|
53
75
|
*
|
|
54
|
-
* @param requestObject
|
|
55
|
-
* @param pid The
|
|
76
|
+
* @param requestObject The request object containing the necessary parameters for authorization.
|
|
77
|
+
* @param pid The PID to present as a tuple [keyTag, credential].
|
|
56
78
|
* @param appFetch (optional) fetch api implementation. Default: built-in fetch
|
|
57
79
|
* @returns the authorization response which contains code, state and iss
|
|
58
80
|
* @throws {ValidationFailed} if an error while validating the response
|
|
@@ -60,10 +82,9 @@ export interface CompleteUserAuthorizationApi {
|
|
|
60
82
|
completeUserAuthorizationWithFormPostJwtMode(
|
|
61
83
|
requestObject: RequestObject,
|
|
62
84
|
issuerConf: IssuerConfig,
|
|
63
|
-
pid: string,
|
|
85
|
+
pid: [keyTag: string, credential: string],
|
|
64
86
|
context: {
|
|
65
87
|
wiaCryptoContext: CryptoContext;
|
|
66
|
-
pidKeyTag: string;
|
|
67
88
|
appFetch?: GlobalFetch["fetch"];
|
|
68
89
|
}
|
|
69
90
|
): Promise<AuthorizationResult>;
|
|
@@ -60,6 +60,7 @@ export const IssuerConfig = z.object({
|
|
|
60
60
|
credential_configurations_supported: z.record(z.string(), CredentialConfig),
|
|
61
61
|
federation_entity: FederationEntityMetadata,
|
|
62
62
|
credential_issuance_batch_size: z.number().optional(),
|
|
63
|
+
encrypted_response_enc_values_supported: z.array(z.string()).optional(),
|
|
63
64
|
/**
|
|
64
65
|
* @deprecated
|
|
65
66
|
*/
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
type CryptoContext,
|
|
3
3
|
verify as verifyJwt,
|
|
4
4
|
} from "@pagopa/io-react-native-jwt";
|
|
5
|
-
import { type SDJwt, SDJwtInstance } from "@sd-jwt/core";
|
|
5
|
+
import { type SDJwt, type VerifierOptions, SDJwtInstance } from "@sd-jwt/core";
|
|
6
6
|
import { digest } from "@sd-jwt/crypto-nodejs";
|
|
7
7
|
import type { Verifier } from "@sd-jwt/types";
|
|
8
8
|
import { isPathEqual, isPrefixOf } from "../../../utils/parser";
|
|
@@ -153,12 +153,14 @@ const parseCredentialSdJwt = (
|
|
|
153
153
|
return processLevel(parsedCredentialRaw, []) as ParsedCredential;
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
+
type SdJwtInstanceVerifier = Verifier<VerifierOptions & { issuerKeys: JWK[] }>;
|
|
157
|
+
|
|
156
158
|
/**
|
|
157
159
|
* JWT verifier implementing the interface expected by the SD-JWT library.
|
|
158
160
|
* Verification is delegated to `io-react-native-jwt` to leverage its support for multiple algorithms.
|
|
159
161
|
* @returns Boolean indicating whether the verification succeeded or not
|
|
160
162
|
*/
|
|
161
|
-
const sdJwtInstanceVerifier:
|
|
163
|
+
const sdJwtInstanceVerifier: SdJwtInstanceVerifier = async (
|
|
162
164
|
data,
|
|
163
165
|
signature,
|
|
164
166
|
options
|
|
@@ -167,7 +169,9 @@ const sdJwtInstanceVerifier: Verifier<{ issuerKeys: JWK[] }> = async (
|
|
|
167
169
|
return false;
|
|
168
170
|
}
|
|
169
171
|
try {
|
|
170
|
-
await verifyJwt(`${data}.${signature}`, options.issuerKeys
|
|
172
|
+
await verifyJwt(`${data}.${signature}`, options.issuerKeys, {
|
|
173
|
+
clockTolerance: options.skewSeconds,
|
|
174
|
+
});
|
|
171
175
|
return true;
|
|
172
176
|
} catch {
|
|
173
177
|
return false;
|
|
@@ -200,7 +204,7 @@ async function verifyCredentialSdJwt(
|
|
|
200
204
|
});
|
|
201
205
|
|
|
202
206
|
const [verifiedCredential, holderBindingKey] = await Promise.all([
|
|
203
|
-
sdJwtInstance.verify(rawCredential, { issuerKeys }),
|
|
207
|
+
sdJwtInstance.verify(rawCredential, { issuerKeys, skewSeconds: 30 }),
|
|
204
208
|
holderBindingContext.getPublicKey(),
|
|
205
209
|
]);
|
|
206
210
|
|
|
@@ -64,5 +64,11 @@ export const startUserAuthorization: IssuanceApi["startUserAuthorization"] =
|
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
66
|
|
|
67
|
-
return {
|
|
67
|
+
return {
|
|
68
|
+
issuerRequestUri,
|
|
69
|
+
clientId,
|
|
70
|
+
codeVerifier,
|
|
71
|
+
credentialDefinition,
|
|
72
|
+
responseMode,
|
|
73
|
+
};
|
|
68
74
|
};
|