@pagopa/io-react-native-wallet 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/credential/issuance/README.md +44 -17
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js +5 -2
- package/lib/commonjs/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js +5 -1
- package/lib/commonjs/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.0.0/index.js +1 -0
- package/lib/commonjs/credential/issuance/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/issuance/v1.3.3/03-complete-user-authorization.js +1 -1
- 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 +147 -52
- 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 +1 -0
- package/lib/commonjs/credential/issuance/v1.3.3/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/api/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js +18 -12
- package/lib/commonjs/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js +3 -0
- package/lib/commonjs/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/index.js +0 -2
- package/lib/commonjs/credential/presentation/v1.0.0/index.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/mappers.js +23 -13
- package/lib/commonjs/credential/presentation/v1.0.0/mappers.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.0.0/types.js +25 -17
- package/lib/commonjs/credential/presentation/v1.0.0/types.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.3.3/05-verify-request-object.js +29 -6
- 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 +9 -6
- 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 +25 -13
- package/lib/commonjs/credential/presentation/v1.3.3/mappers.js.map +1 -1
- package/lib/commonjs/credential/presentation/v1.3.3/types.js +6 -3
- package/lib/commonjs/credential/presentation/v1.3.3/types.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js +26 -1
- package/lib/commonjs/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +4 -0
- package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js +5 -3
- package/lib/commonjs/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js +9 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/types.js +49 -1
- package/lib/commonjs/credentials-catalogue/v1.3.3/types.js.map +1 -1
- package/lib/commonjs/utils/callbacks.js +25 -6
- package/lib/commonjs/utils/callbacks.js.map +1 -1
- package/lib/commonjs/utils/crypto.js +58 -5
- package/lib/commonjs/utils/crypto.js.map +1 -1
- package/lib/module/credential/issuance/README.md +44 -17
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js +6 -3
- package/lib/module/credential/issuance/v1.0.0/03-complete-user-authorization.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js +4 -1
- package/lib/module/credential/issuance/v1.0.0/05-obtain-credential.js.map +1 -1
- package/lib/module/credential/issuance/v1.0.0/index.js +2 -1
- package/lib/module/credential/issuance/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/issuance/v1.3.3/03-complete-user-authorization.js +1 -1
- 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 +143 -49
- 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 +2 -1
- package/lib/module/credential/issuance/v1.3.3/index.js.map +1 -1
- package/lib/module/credential/presentation/api/types.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js +13 -7
- package/lib/module/credential/presentation/v1.0.0/05-verify-request-object.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js +4 -1
- package/lib/module/credential/presentation/v1.0.0/07-send-authorization-response.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/index.js +0 -2
- package/lib/module/credential/presentation/v1.0.0/index.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/mappers.js +23 -13
- package/lib/module/credential/presentation/v1.0.0/mappers.js.map +1 -1
- package/lib/module/credential/presentation/v1.0.0/types.js +23 -15
- package/lib/module/credential/presentation/v1.0.0/types.js.map +1 -1
- package/lib/module/credential/presentation/v1.3.3/05-verify-request-object.js +28 -6
- 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 +9 -6
- 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 +25 -13
- package/lib/module/credential/presentation/v1.3.3/mappers.js.map +1 -1
- package/lib/module/credential/presentation/v1.3.3/types.js +5 -2
- package/lib/module/credential/presentation/v1.3.3/types.js.map +1 -1
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js +24 -0
- package/lib/module/credentials-catalogue/api/DigitalCredentialsCatalogue.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js +5 -1
- package/lib/module/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js +5 -3
- package/lib/module/credentials-catalogue/v1.3.3/fetch-translations.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.3.3/mappers.js +9 -1
- package/lib/module/credentials-catalogue/v1.3.3/mappers.js.map +1 -1
- package/lib/module/credentials-catalogue/v1.3.3/types.js +47 -0
- package/lib/module/credentials-catalogue/v1.3.3/types.js.map +1 -1
- package/lib/module/utils/callbacks.js +26 -7
- package/lib/module/utils/callbacks.js.map +1 -1
- package/lib/module/utils/crypto.js +57 -6
- package/lib/module/utils/crypto.js.map +1 -1
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts +20 -0
- package/lib/typescript/credential/issuance/api/05-obtain-credential.d.ts.map +1 -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/05-obtain-credential.d.ts +1 -0
- package/lib/typescript/credential/issuance/v1.0.0/05-obtain-credential.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.3.3/05-obtain-credential.d.ts +23 -2
- package/lib/typescript/credential/issuance/v1.3.3/05-obtain-credential.d.ts.map +1 -1
- package/lib/typescript/credential/issuance/v1.3.3/index.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/04-verify-certificate-chain.d.ts +9 -2
- package/lib/typescript/credential/presentation/api/04-verify-certificate-chain.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/05-verify-request-object.d.ts +2 -2
- package/lib/typescript/credential/presentation/api/05-verify-request-object.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts +2 -2
- package/lib/typescript/credential/presentation/api/07-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/api/types.d.ts +18 -0
- package/lib/typescript/credential/presentation/api/types.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/05-verify-request-object.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/07-send-authorization-response.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/index.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts +21 -13
- package/lib/typescript/credential/presentation/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.0.0/types.d.ts +23 -15
- package/lib/typescript/credential/presentation/v1.0.0/types.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 +89 -79
- package/lib/typescript/credential/presentation/v1.3.3/mappers.d.ts.map +1 -1
- package/lib/typescript/credential/presentation/v1.3.3/types.d.ts +87 -79
- package/lib/typescript/credential/presentation/v1.3.3/types.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts +73 -0
- package/lib/typescript/credentials-catalogue/api/DigitalCredentialsCatalogue.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/api/index.d.ts +6 -5
- package/lib/typescript/credentials-catalogue/api/index.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts +25 -0
- package/lib/typescript/credentials-catalogue/v1.0.0/mappers.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.3.3/fetch-translations.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts +51 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/mappers.d.ts.map +1 -1
- package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts +33 -0
- package/lib/typescript/credentials-catalogue/v1.3.3/types.d.ts.map +1 -1
- package/lib/typescript/utils/callbacks.d.ts.map +1 -1
- package/lib/typescript/utils/crypto.d.ts +32 -15
- package/lib/typescript/utils/crypto.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/credential/issuance/README.md +44 -17
- package/src/credential/issuance/api/05-obtain-credential.ts +24 -0
- package/src/credential/issuance/v1.0.0/03-complete-user-authorization.ts +8 -3
- package/src/credential/issuance/v1.0.0/05-obtain-credential.ts +6 -0
- package/src/credential/issuance/v1.0.0/index.ts +5 -1
- package/src/credential/issuance/v1.3.3/03-complete-user-authorization.ts +1 -1
- package/src/credential/issuance/v1.3.3/05-obtain-credential.ts +175 -80
- package/src/credential/issuance/v1.3.3/index.ts +5 -1
- package/src/credential/presentation/api/04-verify-certificate-chain.ts +9 -2
- package/src/credential/presentation/api/05-verify-request-object.ts +2 -2
- package/src/credential/presentation/api/07-send-authorization-response.ts +2 -2
- package/src/credential/presentation/api/types.ts +16 -0
- package/src/credential/presentation/v1.0.0/05-verify-request-object.ts +21 -10
- package/src/credential/presentation/v1.0.0/07-send-authorization-response.ts +7 -0
- package/src/credential/presentation/v1.0.0/index.ts +0 -2
- package/src/credential/presentation/v1.0.0/mappers.ts +17 -17
- package/src/credential/presentation/v1.0.0/types.ts +23 -15
- package/src/credential/presentation/v1.3.3/05-verify-request-object.ts +63 -10
- package/src/credential/presentation/v1.3.3/07-send-authorization-response.ts +13 -4
- package/src/credential/presentation/v1.3.3/mappers.ts +19 -17
- package/src/credential/presentation/v1.3.3/types.ts +9 -3
- package/src/credentials-catalogue/api/DigitalCredentialsCatalogue.ts +32 -0
- package/src/credentials-catalogue/api/index.ts +6 -3
- package/src/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.ts +6 -0
- package/src/credentials-catalogue/v1.3.3/fetch-translations.ts +6 -3
- package/src/credentials-catalogue/v1.3.3/mappers.ts +17 -1
- package/src/credentials-catalogue/v1.3.3/types.ts +51 -0
- package/src/utils/callbacks.ts +29 -8
- package/src/utils/crypto.ts +86 -15
- package/lib/commonjs/credential/presentation/v1.0.0/04-verify-certificate-chain.js +0 -12
- package/lib/commonjs/credential/presentation/v1.0.0/04-verify-certificate-chain.js.map +0 -1
- package/lib/module/credential/presentation/v1.0.0/04-verify-certificate-chain.js +0 -5
- package/lib/module/credential/presentation/v1.0.0/04-verify-certificate-chain.js.map +0 -1
- package/lib/typescript/credential/presentation/v1.0.0/04-verify-certificate-chain.d.ts +0 -3
- package/lib/typescript/credential/presentation/v1.0.0/04-verify-certificate-chain.d.ts.map +0 -1
- package/src/credential/presentation/v1.0.0/04-verify-certificate-chain.ts +0 -10
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
export type
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
export type RawRequestObject = z.infer<typeof RawRequestObject>;
|
|
3
|
+
export declare const RawRequestObject: z.ZodObject<{
|
|
4
|
+
header: z.ZodObject<{
|
|
5
|
+
alg: z.ZodString;
|
|
6
|
+
kid: z.ZodString;
|
|
7
|
+
typ: z.ZodLiteral<"oauth-authz-req+jwt">;
|
|
8
|
+
trust_chain: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
payload: z.ZodObject<{
|
|
11
|
+
iss: z.ZodString;
|
|
12
|
+
iat: z.ZodNumber;
|
|
13
|
+
exp: z.ZodNumber;
|
|
14
|
+
state: z.ZodString;
|
|
15
|
+
nonce: z.ZodString;
|
|
16
|
+
response_uri: z.ZodString;
|
|
17
|
+
request_uri_method: z.ZodOptional<z.ZodString>;
|
|
18
|
+
response_type: z.ZodLiteral<"vp_token">;
|
|
19
|
+
response_mode: z.ZodLiteral<"direct_post.jwt">;
|
|
20
|
+
client_id: z.ZodString;
|
|
21
|
+
dcql_query: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
22
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
23
|
+
wallet_nonce: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
17
25
|
}, z.core.$strip>;
|
|
18
26
|
/**
|
|
19
27
|
* Authorization Response payload sent to the Relying Party.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.0.0/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;iBAsB3B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,8BAA8B,CACtC,CAAC;AACF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;mBAKzC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;iBAIhC,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,
|
|
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,CA4B1E,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;AAiBpD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,EAAE,qBAAqB,CAAC,4BAA4B,CA2DxF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,qBAAqB,CAAC,2BAA2B,
|
|
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;AAiBpD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,EAAE,qBAAqB,CAAC,4BAA4B,CA2DxF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,qBAAqB,CAAC,2BAA2B,CAkDtF,CAAC;AAEJ,eAAO,MAAM,8BAA8B,EAAE,qBAAqB,CAAC,gCAAgC,CAqBhG,CAAC"}
|
|
@@ -132,96 +132,106 @@ export declare const mapToRelyingPartyConfig: (input: {
|
|
|
132
132
|
encrypted_response_enc_values_supported?: string[] | undefined;
|
|
133
133
|
};
|
|
134
134
|
export declare const mapToRequestObject: (input: {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
135
|
+
header: {
|
|
136
|
+
[x: string]: unknown;
|
|
137
|
+
alg: string;
|
|
138
|
+
kid: string;
|
|
139
|
+
typ: "oauth-authz-req+jwt";
|
|
140
|
+
x5c: string[];
|
|
141
|
+
trust_chain?: [string, ...string[]] | undefined;
|
|
142
|
+
};
|
|
143
|
+
payload: {
|
|
144
144
|
[x: string]: unknown;
|
|
145
|
-
application_type: "web";
|
|
146
145
|
client_id: string;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
dcql_query: Record<string, any>;
|
|
147
|
+
nonce: string;
|
|
148
|
+
response_mode: "direct_post.jwt";
|
|
149
|
+
response_type: "vp_token";
|
|
150
|
+
response_uri: string;
|
|
151
|
+
state: string;
|
|
152
|
+
client_metadata?: {
|
|
153
|
+
[x: string]: unknown;
|
|
154
|
+
application_type: "web";
|
|
155
|
+
client_id: string;
|
|
156
|
+
client_name: string;
|
|
157
|
+
encrypted_response_enc_values_supported: string[];
|
|
158
|
+
jwks: {
|
|
159
|
+
keys: {
|
|
160
|
+
[x: string]: unknown;
|
|
161
|
+
kid: string;
|
|
162
|
+
kty: string;
|
|
163
|
+
alg?: string | undefined;
|
|
164
|
+
key_ops?: string[] | undefined;
|
|
165
|
+
use?: string | undefined;
|
|
166
|
+
x5c?: string[] | undefined;
|
|
167
|
+
x5t?: string | undefined;
|
|
168
|
+
"x5t#S256"?: string | undefined;
|
|
169
|
+
x5u?: string | undefined;
|
|
170
|
+
}[];
|
|
171
|
+
};
|
|
172
|
+
logo_uri: string;
|
|
173
|
+
request_uris: string[];
|
|
174
|
+
response_uris: string[];
|
|
175
|
+
vp_formats_supported: Record<string, {
|
|
176
|
+
alg?: string[] | undefined;
|
|
177
|
+
deviceauth_alg_values?: number[] | undefined;
|
|
178
|
+
issuerauth_alg_values?: number[] | undefined;
|
|
179
|
+
"kb-jwt_alg_values"?: string[] | undefined;
|
|
180
|
+
"sd-jwt_alg_values"?: string[] | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
erasure_endpoint?: string | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
request_uri?: string | undefined;
|
|
185
|
+
request_uri_method?: string | undefined;
|
|
186
|
+
scope?: string | undefined;
|
|
187
|
+
transaction_data?: string[] | undefined;
|
|
188
|
+
transaction_data_hashes_alg?: string[] | undefined;
|
|
189
|
+
wallet_nonce?: string | undefined;
|
|
190
|
+
} & {
|
|
191
|
+
iss: string;
|
|
192
|
+
aud?: string | undefined;
|
|
193
|
+
cnf?: {
|
|
194
|
+
[x: string]: unknown;
|
|
195
|
+
jkt?: string | undefined;
|
|
196
|
+
jwk?: {
|
|
151
197
|
[x: string]: unknown;
|
|
152
|
-
kid: string;
|
|
153
198
|
kty: string;
|
|
154
199
|
alg?: string | undefined;
|
|
200
|
+
crv?: string | undefined;
|
|
201
|
+
d?: string | undefined;
|
|
202
|
+
dp?: string | undefined;
|
|
203
|
+
dq?: string | undefined;
|
|
204
|
+
e?: string | undefined;
|
|
205
|
+
ext?: boolean | undefined;
|
|
206
|
+
k?: string | undefined;
|
|
155
207
|
key_ops?: string[] | undefined;
|
|
208
|
+
kid?: string | undefined;
|
|
209
|
+
n?: string | undefined;
|
|
210
|
+
oth?: {
|
|
211
|
+
[x: string]: unknown;
|
|
212
|
+
d?: string | undefined;
|
|
213
|
+
r?: string | undefined;
|
|
214
|
+
t?: string | undefined;
|
|
215
|
+
}[] | undefined;
|
|
216
|
+
p?: string | undefined;
|
|
217
|
+
q?: string | undefined;
|
|
218
|
+
qi?: string | undefined;
|
|
156
219
|
use?: string | undefined;
|
|
220
|
+
x?: string | undefined;
|
|
157
221
|
x5c?: string[] | undefined;
|
|
158
222
|
x5t?: string | undefined;
|
|
159
223
|
"x5t#S256"?: string | undefined;
|
|
160
224
|
x5u?: string | undefined;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
logo_uri: string;
|
|
164
|
-
request_uris: string[];
|
|
165
|
-
response_uris: string[];
|
|
166
|
-
vp_formats_supported: Record<string, {
|
|
167
|
-
alg?: string[] | undefined;
|
|
168
|
-
deviceauth_alg_values?: number[] | undefined;
|
|
169
|
-
issuerauth_alg_values?: number[] | undefined;
|
|
170
|
-
"kb-jwt_alg_values"?: string[] | undefined;
|
|
171
|
-
"sd-jwt_alg_values"?: string[] | undefined;
|
|
172
|
-
}>;
|
|
173
|
-
erasure_endpoint?: string | undefined;
|
|
174
|
-
} | undefined;
|
|
175
|
-
request_uri?: string | undefined;
|
|
176
|
-
request_uri_method?: string | undefined;
|
|
177
|
-
scope?: string | undefined;
|
|
178
|
-
transaction_data?: string[] | undefined;
|
|
179
|
-
transaction_data_hashes_alg?: string[] | undefined;
|
|
180
|
-
wallet_nonce?: string | undefined;
|
|
181
|
-
} & {
|
|
182
|
-
iss: string;
|
|
183
|
-
aud?: string | undefined;
|
|
184
|
-
cnf?: {
|
|
185
|
-
[x: string]: unknown;
|
|
186
|
-
jkt?: string | undefined;
|
|
187
|
-
jwk?: {
|
|
188
|
-
[x: string]: unknown;
|
|
189
|
-
kty: string;
|
|
190
|
-
alg?: string | undefined;
|
|
191
|
-
crv?: string | undefined;
|
|
192
|
-
d?: string | undefined;
|
|
193
|
-
dp?: string | undefined;
|
|
194
|
-
dq?: string | undefined;
|
|
195
|
-
e?: string | undefined;
|
|
196
|
-
ext?: boolean | undefined;
|
|
197
|
-
k?: string | undefined;
|
|
198
|
-
key_ops?: string[] | undefined;
|
|
199
|
-
kid?: string | undefined;
|
|
200
|
-
n?: string | undefined;
|
|
201
|
-
oth?: {
|
|
202
|
-
[x: string]: unknown;
|
|
203
|
-
d?: string | undefined;
|
|
204
|
-
r?: string | undefined;
|
|
205
|
-
t?: string | undefined;
|
|
206
|
-
}[] | undefined;
|
|
207
|
-
p?: string | undefined;
|
|
208
|
-
q?: string | undefined;
|
|
209
|
-
qi?: string | undefined;
|
|
210
|
-
use?: string | undefined;
|
|
211
|
-
x?: string | undefined;
|
|
212
|
-
x5c?: string[] | undefined;
|
|
213
|
-
x5t?: string | undefined;
|
|
214
|
-
"x5t#S256"?: string | undefined;
|
|
215
|
-
x5u?: string | undefined;
|
|
216
|
-
y?: string | undefined;
|
|
225
|
+
y?: string | undefined;
|
|
226
|
+
} | undefined;
|
|
217
227
|
} | undefined;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
228
|
+
exp?: number | undefined;
|
|
229
|
+
iat?: number | undefined;
|
|
230
|
+
jti?: string | undefined;
|
|
231
|
+
nbf?: number | undefined;
|
|
232
|
+
nonce?: string | undefined;
|
|
233
|
+
status?: Record<string, any> | undefined;
|
|
234
|
+
trust_chain?: [string, ...string[]] | undefined;
|
|
235
|
+
};
|
|
226
236
|
}) => RequestObject;
|
|
227
237
|
//# sourceMappingURL=mappers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/mappers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalC,CAAC;AAEH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/mappers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAalC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAc9B,CAAC"}
|
|
@@ -1,93 +1,101 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
export type RawRequestObject = z.infer<typeof RawRequestObject>;
|
|
3
|
+
export declare const RawRequestObject: z.ZodObject<{
|
|
4
|
+
header: z.ZodObject<{
|
|
5
|
+
alg: z.ZodString;
|
|
6
|
+
kid: z.ZodString;
|
|
7
|
+
typ: z.ZodLiteral<"oauth-authz-req+jwt">;
|
|
8
|
+
trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
9
|
+
x5c: z.ZodArray<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
payload: z.ZodIntersection<z.ZodObject<{
|
|
12
|
+
client_id: z.ZodString;
|
|
13
|
+
client_metadata: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
application_type: z.ZodLiteral<"web">;
|
|
15
|
+
client_id: z.ZodURL;
|
|
16
|
+
client_name: z.ZodString;
|
|
17
|
+
encrypted_response_enc_values_supported: z.ZodArray<z.ZodString>;
|
|
18
|
+
erasure_endpoint: z.ZodOptional<z.ZodURL>;
|
|
19
|
+
jwks: z.ZodObject<{
|
|
20
|
+
keys: z.ZodArray<z.ZodObject<{
|
|
21
|
+
alg: z.ZodOptional<z.ZodString>;
|
|
22
|
+
key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
kid: z.ZodString;
|
|
24
|
+
kty: z.ZodString;
|
|
25
|
+
use: z.ZodOptional<z.ZodString>;
|
|
26
|
+
x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
|
+
x5t: z.ZodOptional<z.ZodString>;
|
|
28
|
+
"x5t#S256": z.ZodOptional<z.ZodString>;
|
|
29
|
+
x5u: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
logo_uri: z.ZodURL;
|
|
33
|
+
request_uris: z.ZodArray<z.ZodURL>;
|
|
34
|
+
response_uris: z.ZodArray<z.ZodURL>;
|
|
35
|
+
vp_formats_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
36
|
+
alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
deviceauth_alg_values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
38
|
+
issuerauth_alg_values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
39
|
+
"kb-jwt_alg_values": z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
"sd-jwt_alg_values": z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
|
+
dcql_query: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
44
|
+
nonce: z.ZodString;
|
|
45
|
+
request_uri: z.ZodOptional<z.ZodURL>;
|
|
46
|
+
request_uri_method: z.ZodOptional<z.ZodString>;
|
|
47
|
+
response_mode: z.ZodLiteral<"direct_post.jwt">;
|
|
48
|
+
response_type: z.ZodLiteral<"vp_token">;
|
|
49
|
+
response_uri: z.ZodURL;
|
|
50
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
51
|
+
state: z.ZodString;
|
|
52
|
+
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
transaction_data_hashes_alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
54
|
+
wallet_nonce: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
56
|
+
iss: z.ZodString;
|
|
57
|
+
aud: z.ZodOptional<z.ZodString>;
|
|
58
|
+
cnf: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
jkt: z.ZodOptional<z.ZodString>;
|
|
60
|
+
jwk: z.ZodOptional<z.ZodObject<{
|
|
14
61
|
alg: z.ZodOptional<z.ZodString>;
|
|
62
|
+
crv: z.ZodOptional<z.ZodString>;
|
|
63
|
+
d: z.ZodOptional<z.ZodString>;
|
|
64
|
+
dp: z.ZodOptional<z.ZodString>;
|
|
65
|
+
dq: z.ZodOptional<z.ZodString>;
|
|
66
|
+
e: z.ZodOptional<z.ZodString>;
|
|
67
|
+
ext: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
k: z.ZodOptional<z.ZodString>;
|
|
15
69
|
key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
-
kid: z.ZodString
|
|
70
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
17
71
|
kty: z.ZodString;
|
|
72
|
+
n: z.ZodOptional<z.ZodString>;
|
|
73
|
+
oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
+
d: z.ZodOptional<z.ZodString>;
|
|
75
|
+
r: z.ZodOptional<z.ZodString>;
|
|
76
|
+
t: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$loose>>>;
|
|
78
|
+
p: z.ZodOptional<z.ZodString>;
|
|
79
|
+
q: z.ZodOptional<z.ZodString>;
|
|
80
|
+
qi: z.ZodOptional<z.ZodString>;
|
|
18
81
|
use: z.ZodOptional<z.ZodString>;
|
|
82
|
+
x: z.ZodOptional<z.ZodString>;
|
|
19
83
|
x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
84
|
x5t: z.ZodOptional<z.ZodString>;
|
|
21
85
|
"x5t#S256": z.ZodOptional<z.ZodString>;
|
|
22
86
|
x5u: z.ZodOptional<z.ZodString>;
|
|
87
|
+
y: z.ZodOptional<z.ZodString>;
|
|
23
88
|
}, z.core.$loose>>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
logo_uri: z.ZodURL;
|
|
26
|
-
request_uris: z.ZodArray<z.ZodURL>;
|
|
27
|
-
response_uris: z.ZodArray<z.ZodURL>;
|
|
28
|
-
vp_formats_supported: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
29
|
-
alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
-
deviceauth_alg_values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
31
|
-
issuerauth_alg_values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
32
|
-
"kb-jwt_alg_values": z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
|
-
"sd-jwt_alg_values": z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
-
}, z.core.$strip>>;
|
|
35
|
-
}, z.core.$loose>>;
|
|
36
|
-
dcql_query: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
37
|
-
nonce: z.ZodString;
|
|
38
|
-
request_uri: z.ZodOptional<z.ZodURL>;
|
|
39
|
-
request_uri_method: z.ZodOptional<z.ZodString>;
|
|
40
|
-
response_mode: z.ZodLiteral<"direct_post.jwt">;
|
|
41
|
-
response_type: z.ZodLiteral<"vp_token">;
|
|
42
|
-
response_uri: z.ZodURL;
|
|
43
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
44
|
-
state: z.ZodString;
|
|
45
|
-
transaction_data: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
-
transaction_data_hashes_alg: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
-
wallet_nonce: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
49
|
-
iss: z.ZodString;
|
|
50
|
-
aud: z.ZodOptional<z.ZodString>;
|
|
51
|
-
cnf: z.ZodOptional<z.ZodObject<{
|
|
52
|
-
jkt: z.ZodOptional<z.ZodString>;
|
|
53
|
-
jwk: z.ZodOptional<z.ZodObject<{
|
|
54
|
-
alg: z.ZodOptional<z.ZodString>;
|
|
55
|
-
crv: z.ZodOptional<z.ZodString>;
|
|
56
|
-
d: z.ZodOptional<z.ZodString>;
|
|
57
|
-
dp: z.ZodOptional<z.ZodString>;
|
|
58
|
-
dq: z.ZodOptional<z.ZodString>;
|
|
59
|
-
e: z.ZodOptional<z.ZodString>;
|
|
60
|
-
ext: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
-
k: z.ZodOptional<z.ZodString>;
|
|
62
|
-
key_ops: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
-
kid: z.ZodOptional<z.ZodString>;
|
|
64
|
-
kty: z.ZodString;
|
|
65
|
-
n: z.ZodOptional<z.ZodString>;
|
|
66
|
-
oth: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
67
|
-
d: z.ZodOptional<z.ZodString>;
|
|
68
|
-
r: z.ZodOptional<z.ZodString>;
|
|
69
|
-
t: z.ZodOptional<z.ZodString>;
|
|
70
|
-
}, z.core.$loose>>>;
|
|
71
|
-
p: z.ZodOptional<z.ZodString>;
|
|
72
|
-
q: z.ZodOptional<z.ZodString>;
|
|
73
|
-
qi: z.ZodOptional<z.ZodString>;
|
|
74
|
-
use: z.ZodOptional<z.ZodString>;
|
|
75
|
-
x: z.ZodOptional<z.ZodString>;
|
|
76
|
-
x5c: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
-
x5t: z.ZodOptional<z.ZodString>;
|
|
78
|
-
"x5t#S256": z.ZodOptional<z.ZodString>;
|
|
79
|
-
x5u: z.ZodOptional<z.ZodString>;
|
|
80
|
-
y: z.ZodOptional<z.ZodString>;
|
|
81
89
|
}, z.core.$loose>>;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}, z.core.$strip
|
|
90
|
+
exp: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
iat: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
93
|
+
nbf: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
nonce: z.ZodOptional<z.ZodString>;
|
|
95
|
+
status: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
96
|
+
trust_chain: z.ZodOptional<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
91
99
|
export type AuthorizationResponse = z.infer<typeof AuthorizationResponse>;
|
|
92
100
|
export declare const AuthorizationResponse: z.ZodObject<{
|
|
93
101
|
status: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/credential/presentation/v1.3.3/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAChE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC"}
|
|
@@ -123,8 +123,81 @@ export declare const DigitalCredential: z.ZodObject<{
|
|
|
123
123
|
"schema_uri#integrity": z.ZodOptional<z.ZodString>;
|
|
124
124
|
}, z.core.$strip>>>;
|
|
125
125
|
}, z.core.$strip>;
|
|
126
|
+
declare const TaxonomyPurpose: z.ZodObject<{
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
name_l10n_id: z.ZodString;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
export type TaxonomyPurpose = z.infer<typeof TaxonomyPurpose>;
|
|
131
|
+
declare const TaxonomyClass: z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
name_l10n_id: z.ZodString;
|
|
134
|
+
supported_purposes: z.ZodArray<z.ZodString>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type TaxonomyClass = z.infer<typeof TaxonomyClass>;
|
|
137
|
+
declare const TaxonomyDomain: z.ZodObject<{
|
|
138
|
+
id: z.ZodString;
|
|
139
|
+
name_l10n_id: z.ZodString;
|
|
140
|
+
description_l10n_id: z.ZodString;
|
|
141
|
+
classes: z.ZodArray<z.ZodObject<{
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
name_l10n_id: z.ZodString;
|
|
144
|
+
supported_purposes: z.ZodArray<z.ZodString>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
export type TaxonomyDomain = z.infer<typeof TaxonomyDomain>;
|
|
148
|
+
export declare const Taxonomy: z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
name_l10n_id: z.ZodString;
|
|
151
|
+
description_l10n_id: z.ZodString;
|
|
152
|
+
domains: z.ZodArray<z.ZodObject<{
|
|
153
|
+
id: z.ZodString;
|
|
154
|
+
name_l10n_id: z.ZodString;
|
|
155
|
+
description_l10n_id: z.ZodString;
|
|
156
|
+
classes: z.ZodArray<z.ZodObject<{
|
|
157
|
+
id: z.ZodString;
|
|
158
|
+
name_l10n_id: z.ZodString;
|
|
159
|
+
supported_purposes: z.ZodArray<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
purposes: z.ZodArray<z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
name_l10n_id: z.ZodString;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
localization: z.ZodOptional<z.ZodObject<{
|
|
167
|
+
available_locales: z.ZodArray<z.ZodString>;
|
|
168
|
+
base_uri: z.ZodString;
|
|
169
|
+
default_locale: z.ZodString;
|
|
170
|
+
version: z.ZodString;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
export type Taxonomy = z.infer<typeof Taxonomy>;
|
|
126
174
|
export declare const DigitalCredentialsCatalogue: z.ZodObject<{
|
|
127
175
|
taxonomy_uri: z.ZodString;
|
|
176
|
+
taxonomy: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
name_l10n_id: z.ZodString;
|
|
179
|
+
description_l10n_id: z.ZodString;
|
|
180
|
+
domains: z.ZodArray<z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
name_l10n_id: z.ZodString;
|
|
183
|
+
description_l10n_id: z.ZodString;
|
|
184
|
+
classes: z.ZodArray<z.ZodObject<{
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
name_l10n_id: z.ZodString;
|
|
187
|
+
supported_purposes: z.ZodArray<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
purposes: z.ZodArray<z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
name_l10n_id: z.ZodString;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
localization: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
available_locales: z.ZodArray<z.ZodString>;
|
|
196
|
+
base_uri: z.ZodString;
|
|
197
|
+
default_locale: z.ZodString;
|
|
198
|
+
version: z.ZodString;
|
|
199
|
+
}, z.core.$strip>>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
128
201
|
credentials: z.ZodArray<z.ZodObject<{
|
|
129
202
|
version: z.ZodString;
|
|
130
203
|
credential_type: 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;AAqC3E,QAAA,MAAM,eAAe;;;;;;;;;;;iBAWnB,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAO3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,KAAK;;;;iBAIhB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+B5B,CAAC;AAEH,eAAO,MAAM,2BAA2B
|
|
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;AAqC3E,QAAA,MAAM,eAAe;;;;;;;;;;;iBAWnB,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAO3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,KAAK;;;;iBAIhB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+B5B,CAAC;AAEH,QAAA,MAAM,eAAe;;;iBAGnB,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,QAAA,MAAM,aAAa;;;;iBAIjB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,QAAA,MAAM,cAAc;;;;;;;;;iBAKlB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { type CatalogueTranslations, type DigitalCredentialsCatalogue, type LocalizationInfo } from "./DigitalCredentialsCatalogue";
|
|
1
|
+
import { type CatalogueTranslations, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy } from "./DigitalCredentialsCatalogue";
|
|
2
2
|
type FetchContext = {
|
|
3
3
|
appFetch?: GlobalFetch["fetch"];
|
|
4
4
|
};
|
|
5
5
|
type FetchTranslationsLocalizations = {
|
|
6
6
|
catalogue?: LocalizationInfo;
|
|
7
7
|
authenticSources?: LocalizationInfo;
|
|
8
|
+
taxonomy?: LocalizationInfo;
|
|
8
9
|
};
|
|
9
10
|
export interface CredentialsCatalogueApi {
|
|
10
11
|
/**
|
|
@@ -18,11 +19,11 @@ export interface CredentialsCatalogueApi {
|
|
|
18
19
|
*/
|
|
19
20
|
fetchAndParseCatalogue(trustAnchorBaseUrl: string, ctx?: FetchContext): Promise<DigitalCredentialsCatalogue>;
|
|
20
21
|
/**
|
|
21
|
-
* Fetch locale bundle files for the credential catalogue
|
|
22
|
-
* For each requested locale, fetches translations from
|
|
22
|
+
* Fetch locale bundle files for the credential catalogue, authentic sources, and taxonomy.
|
|
23
|
+
* For each requested locale, fetches translations from all registries (if the locale
|
|
23
24
|
* is listed in their respective `available_locales`) and merges the keys.
|
|
24
25
|
* Locales not present in a registry's `available_locales` are silently skipped for that source.
|
|
25
|
-
* On key conflicts,
|
|
26
|
+
* On key conflicts, later sources (authenticSources, taxonomy) take precedence.
|
|
26
27
|
*
|
|
27
28
|
* Optional: not supported by all versions. Check for existence before calling.
|
|
28
29
|
*
|
|
@@ -34,5 +35,5 @@ export interface CredentialsCatalogueApi {
|
|
|
34
35
|
*/
|
|
35
36
|
fetchTranslations?(localizations: FetchTranslationsLocalizations, locales: string[], ctx?: FetchContext): Promise<CatalogueTranslations>;
|
|
36
37
|
}
|
|
37
|
-
export { type CatalogueTranslations, type DigitalCredentialsCatalogue, type LocalizationInfo, };
|
|
38
|
+
export { type CatalogueTranslations, type DigitalCredentialsCatalogue, type LocalizationInfo, type Taxonomy, };
|
|
38
39
|
//# 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,
|
|
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;CACnC;AAED,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,QAAQ,GACd,CAAC"}
|
|
@@ -78,6 +78,31 @@ export declare const mapToCredentialsCatalogue: (input: unknown) => {
|
|
|
78
78
|
}[];
|
|
79
79
|
iat: number;
|
|
80
80
|
exp: number;
|
|
81
|
+
taxonomy?: {
|
|
82
|
+
id: string;
|
|
83
|
+
name_l10n_id: string;
|
|
84
|
+
description_l10n_id: string;
|
|
85
|
+
domains: {
|
|
86
|
+
id: string;
|
|
87
|
+
name_l10n_id: string;
|
|
88
|
+
description_l10n_id: string;
|
|
89
|
+
classes: {
|
|
90
|
+
id: string;
|
|
91
|
+
name_l10n_id: string;
|
|
92
|
+
supported_purposes: string[];
|
|
93
|
+
}[];
|
|
94
|
+
}[];
|
|
95
|
+
purposes: {
|
|
96
|
+
id: string;
|
|
97
|
+
name_l10n_id: string;
|
|
98
|
+
}[];
|
|
99
|
+
localization?: {
|
|
100
|
+
available_locales: string[];
|
|
101
|
+
base_uri: string;
|
|
102
|
+
default_locale: string;
|
|
103
|
+
version: string;
|
|
104
|
+
} | undefined;
|
|
105
|
+
} | undefined;
|
|
81
106
|
localization?: {
|
|
82
107
|
available_locales: string[];
|
|
83
108
|
base_uri: string;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-and-parse-catalogue.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,uBAAuB,IAAI,GAAG,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"fetch-and-parse-catalogue.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.3.3/fetch-and-parse-catalogue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,uBAAuB,IAAI,GAAG,EAAE,MAAM,QAAQ,CAAC;AAW7D,eAAO,MAAM,sBAAsB,EAAE,GAAG,CAAC,wBAAwB,CA6ChE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-translations.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.3.3/fetch-translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,IAAI,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7D,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,GAAG,CAAC,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"fetch-translations.d.ts","sourceRoot":"","sources":["../../../../src/credentials-catalogue/v1.3.3/fetch-translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,IAAI,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7D,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,GAAG,CAAC,mBAAmB,CAAC,CA+BnE,CAAC"}
|